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

◆ HasRoom()

bool Terraria.GameContent.TownRoomManager.HasRoom ( int npcID,
out Point roomPosition )
inline

Definition at line 38 of file TownRoomManager.cs.

39 {
40 if (!_hasRoom[npcID])
41 {
42 roomPosition = new Point(0, 0);
43 return false;
44 }
46 {
47 if (roomLocationPair.Item1 == npcID)
48 {
50 return true;
51 }
52 }
53 roomPosition = new Point(0, 0);
54 return false;
55 }
List< Tuple< int, Point > > _roomLocationPairs

References Terraria.GameContent.TownRoomManager._hasRoom, and Terraria.GameContent.TownRoomManager._roomLocationPairs.