terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SandstormSky.cs
Go to the documentation of this file.
1
using
System
;
2
using
Microsoft.Xna.Framework
;
3
using
Microsoft.Xna.Framework.Graphics
;
4
using
Terraria.Graphics.Effects
;
5
using
Terraria.Utilities
;
6
7
namespace
Terraria.GameContent.Skies
8
{
9
// Token: 0x020009D9 RID: 2521
10
public
class
SandstormSky
:
CustomSky
11
{
12
// Token: 0x06004A46 RID: 19014 RVA: 0x0026583C File Offset: 0x00263A3C
13
public
override
void
OnLoad
()
14
{
15
}
16
17
// Token: 0x06004A47 RID: 19015 RVA: 0x0026584C File Offset: 0x00263A4C
18
public
override
void
Update
(
GameTime
gameTime
)
19
{
20
if
(!
true
)
21
{
22
}
23
}
24
25
// Token: 0x06004A48 RID: 19016 RVA: 0x00265878 File Offset: 0x00263A78
26
public
override
void
Draw
(
SpriteBatch
spriteBatch,
float
minDepth,
float
maxDepth)
27
{
28
float
num =
Math
.
Min
(minDepth, maxDepth);
29
float
opacity
= this.
_opacity
;
30
Color
color2
;
31
Color
color =
color2
* num;
32
int
screenWidth =
Main
.
screenWidth
;
33
int
screenHeight =
Main
.
screenHeight
;
34
}
35
36
// Token: 0x06004A49 RID: 19017 RVA: 0x002658C0 File Offset: 0x00263AC0
37
public
override
void
Activate
(
Vector2
position,
params
object
[] args)
38
{
39
this._isActive
=
true
;
40
}
41
42
// Token: 0x06004A4A RID: 19018 RVA: 0x002658D4 File Offset: 0x00263AD4
43
public
override
void
Deactivate
(
params
object
[] args)
44
{
45
this._isLeaving
=
true
;
46
}
47
48
// Token: 0x06004A4B RID: 19019 RVA: 0x002658E8 File Offset: 0x00263AE8
49
public
override
void
Reset
()
50
{
51
}
52
53
// Token: 0x06004A4C RID: 19020 RVA: 0x002658F8 File Offset: 0x00263AF8
54
public
override
bool
IsActive
()
55
{
56
return
this.
_isActive
;
57
}
58
59
// Token: 0x06004A4D RID: 19021 RVA: 0x0026590C File Offset: 0x00263B0C
60
public
SandstormSky
()
61
{
62
}
63
64
// Token: 0x040084E2 RID: 34018
65
private
UnifiedRandom
_random
;
66
67
// Token: 0x040084E3 RID: 34019
68
private
bool
_isActive
;
69
70
// Token: 0x040084E4 RID: 34020
71
private
bool
_isLeaving
;
72
73
// Token: 0x040084E5 RID: 34021
74
private
float
_opacity
;
75
}
76
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.GameTime
Definition
GameTime.cs:7
Microsoft.Xna.Framework.Graphics.SpriteBatch
Definition
SpriteBatch.cs:14
System.Math.Min
static byte Min(byte val1, byte val2)
Definition
Math.cs:152
System.Math
Definition
Math.cs:11
Terraria.GameContent.Skies.SandstormSky.Reset
override void Reset()
Definition
SandstormSky.cs:49
Terraria.GameContent.Skies.SandstormSky.Draw
override void Draw(SpriteBatch spriteBatch, float minDepth, float maxDepth)
Definition
SandstormSky.cs:26
Terraria.GameContent.Skies.SandstormSky._random
UnifiedRandom _random
Definition
SandstormSky.cs:65
Terraria.GameContent.Skies.SandstormSky.OnLoad
override void OnLoad()
Definition
SandstormSky.cs:13
Terraria.GameContent.Skies.SandstormSky.Update
override void Update(GameTime gameTime)
Definition
SandstormSky.cs:18
Terraria.GameContent.Skies.SandstormSky.IsActive
override bool IsActive()
Definition
SandstormSky.cs:54
Terraria.GameContent.Skies.SandstormSky.Activate
override void Activate(Vector2 position, params object[] args)
Definition
SandstormSky.cs:37
Terraria.GameContent.Skies.SandstormSky.Deactivate
override void Deactivate(params object[] args)
Definition
SandstormSky.cs:43
Terraria.GameContent.Skies.SandstormSky.SandstormSky
SandstormSky()
Definition
SandstormSky.cs:60
Terraria.GameContent.Skies.SandstormSky._opacity
float _opacity
Definition
SandstormSky.cs:74
Terraria.GameContent.Skies.SandstormSky._isActive
bool _isActive
Definition
SandstormSky.cs:68
Terraria.GameContent.Skies.SandstormSky._isLeaving
bool _isLeaving
Definition
SandstormSky.cs:71
Terraria.GameContent.Skies.SandstormSky
Definition
SandstormSky.cs:11
Terraria.Graphics.Effects.CustomSky
Definition
CustomSky.cs:10
Terraria.Main.screenHeight
static int screenHeight
Definition
Main.cs:2015
Terraria.Main.screenWidth
static int screenWidth
Definition
Main.cs:2001
Terraria.Main
Definition
Main.cs:67
Terraria.Utilities.UnifiedRandom
Definition
UnifiedRandom.cs:8
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
System
Definition
__ComObject.cs:4
Terraria.GameContent.Skies
Definition
AmbientSky.cs:15
Terraria.Graphics.Effects
Definition
CustomSky.cs:7
Terraria.Utilities
Definition
Bits64.cs:5
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
source
Terraria
GameContent
Skies
SandstormSky.cs
Generated by
1.10.0