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

◆ TryGetHandler()

bool Terraria.GameContent.DoorOpeningHelper.TryGetHandler ( Point tileCoords,
out DoorAutoHandler infoProvider )
inlineprivate

Definition at line 361 of file DoorOpeningHelper.cs.

362 {
363 infoProvider = null;
364 if (!WorldGen.InWorld(tileCoords.X, tileCoords.Y, 3))
365 {
366 return false;
367 }
368 Tile tile = Main.tile[tileCoords.X, tileCoords.Y];
369 if (tile == null)
370 {
371 return false;
372 }
374 {
375 return false;
376 }
377 return true;
378 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< int, DoorAutoHandler > _handlerByTileType

References Terraria.GameContent.DoorOpeningHelper._handlerByTileType, Terraria.WorldGen.InWorld(), Terraria.Main.tile, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and Terraria.Tile.type.

Referenced by Terraria.GameContent.DoorOpeningHelper.TryAutoOpeningDoor().