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

◆ UpdateNPC_CastLights()

void Terraria.NPC.UpdateNPC_CastLights ( )
inlineprivate

Definition at line 8983 of file NPC.cs.

8984 {
8985 int num = this.type;
8986 float x = this.position.X;
8987 float y = this.position.Y;
8988 float x2 = this.netOffset.X;
8989 float y2 = this.netOffset.Y;
8990 if (num == 0)
8991 {
8992 }
8993 Vector2 center = base.Center;
8994 long num2 = 0L;
8995 Vector2 center2 = base.Center;
8996 if (num == 0)
8997 {
8998 }
8999 int num3 = 32640;
9000 Color color = Lighting.GetColor(1073741824, (int)num2);
9001 if (num3 == 0)
9002 {
9003 }
9004 float x3 = this.position.X;
9005 float y3 = this.position.Y;
9006 int width = this.width;
9007 bool wet = this.wet;
9008 if (num == 0)
9009 {
9010 }
9011 if (num3 == 0)
9012 {
9013 }
9014 float x4 = this.position.X;
9015 float y4 = this.position.Y;
9016 float x5 = this.netOffset.X;
9017 float y5 = this.netOffset.Y;
9018 if (this.type == 0)
9019 {
9020 }
9021 int num4 = this.townNpcVariationIndex;
9022 Vector2 center3 = base.Center;
9023 Vector2 center4 = base.Center;
9024 if (this.type == 0)
9025 {
9026 }
9027 int num5 = this.type;
9028 Vector2 center5 = base.Center;
9029 Vector2 center6 = base.Center;
9030 if (this.type == 0)
9031 {
9032 }
9033 Vector2 center7 = base.Center;
9034 Vector2 center8 = base.Center;
9035 float[] array = this.ai;
9036 Vector2 top = base.Top;
9037 if (array == null)
9038 {
9039 }
9040 int num6 = this.type;
9041 int width2 = this.width;
9042 float x6 = this.position.X;
9043 float y6 = this.position.Y;
9044 if (num6 == 0)
9045 {
9046 }
9047 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
int townNpcVariationIndex
Definition NPC.cs:11126
float[] ai
Definition NPC.cs:11384
Color color
Definition NPC.cs:11444

References Terraria.NPC.ai, System.array, Terraria.NPC.color, Terraria.Lighting.GetColor(), j__TPar, System.L, Terraria.NPC.netOffset, Terraria.Entity.position, Terraria.NPC.townNpcVariationIndex, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.UpdateNPC().