TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UpdateHomeTileState()

void Terraria.NPC.UpdateHomeTileState ( bool homeless,
int x,
int y )
inline

Definition at line 56221 of file NPC.cs.

56222 {
56223 bool num = x != homeTileX || y != homeTileY || this.homeless != homeless;
56224 this.homeless = homeless;
56225 homeTileX = x;
56226 homeTileY = y;
56227 if (num && Main.netMode != 1)
56228 {
56229 byte householdStatus = WorldGen.TownManager.GetHouseholdStatus(this);
56230 NetMessage.SendData(60, -1, -1, null, whoAmI, homeTileX, homeTileY, (int)householdStatus);
56231 }
56232 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
int homeTileX
Definition NPC.cs:1180
bool homeless
Definition NPC.cs:1178
int homeTileY
Definition NPC.cs:1182

References Terraria.NPC.homeless, Terraria.NPC.homeTileX, Terraria.NPC.homeTileY, Terraria.Main.netMode, Terraria.NetMessage.SendData(), Terraria.WorldGen.TownManager, and Terraria.Entity.whoAmI.

Referenced by Terraria.NPC.AI_007_TownEntities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: