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

◆ ProvideInfo()

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

Implements Terraria.GameContent.DoorOpeningHelper.DoorAutoHandler.

Definition at line 145 of file DoorOpeningHelper.cs.

146 {
147 Tile tile = Main.tile[tileCoords.X, tileCoords.Y];
148 Point tileCoordsForToggling = tileCoords;
149 tileCoordsForToggling.Y -= tile.frameY % 90 / 18;
150 DoorOpenCloseTogglingInfo result = default(DoorOpenCloseTogglingInfo);
151 result.handler = this;
152 result.tileCoordsForToggling = tileCoordsForToggling;
153 return result;
154 }

References Terraria.Main.tile.