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

◆ ProvideInfo()

DoorOpenCloseTogglingInfo Terraria.GameContent.DoorOpeningHelper.CommonDoorOpeningInfoProvider.ProvideInfo ( Point tileCoords)
inline

Implements Terraria.GameContent.DoorOpeningHelper.DoorAutoHandler.

Definition at line 59 of file DoorOpeningHelper.cs.

60 {
61 Tile tile = Main.tile[tileCoords.X, tileCoords.Y];
62 Point tileCoordsForToggling = tileCoords;
63 tileCoordsForToggling.Y -= tile.frameY % 54 / 18;
64 DoorOpenCloseTogglingInfo result = default(DoorOpenCloseTogglingInfo);
65 result.handler = this;
66 result.tileCoordsForToggling = tileCoordsForToggling;
67 return result;
68 }

References Terraria.Main.tile.