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

◆ LookForDoorsToOpen()

void Terraria.GameContent.DoorOpeningHelper.LookForDoorsToOpen ( Player player)
inline

Definition at line 382 of file DoorOpeningHelper.cs.

383 {
384 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
385 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
386 PlayerInfoForOpeningDoors playerInfoForOpeningDoor = GetPlayerInfoForOpeningDoor(player);
387 if (playerInfoForOpeningDoor.intendedOpeningDirection == 0 && player.velocity.X == 0f)
388 {
389 return;
390 }
391 Point tileCoords = default(Point);
392 for (int i = ((Rectangle)(ref playerInfoForOpeningDoor.tileCoordSpaceForCheckingForDoors)).Left; i <= ((Rectangle)(ref playerInfoForOpeningDoor.tileCoordSpaceForCheckingForDoors)).Right; i++)
393 {
394 for (int j = ((Rectangle)(ref playerInfoForOpeningDoor.tileCoordSpaceForCheckingForDoors)).Top; j <= ((Rectangle)(ref playerInfoForOpeningDoor.tileCoordSpaceForCheckingForDoors)).Bottom; j++)
395 {
396 tileCoords.X = i;
397 tileCoords.Y = j;
399 }
400 }
401 }
PlayerInfoForOpeningDoors GetPlayerInfoForOpeningDoor(Player player)
void TryAutoOpeningDoor(Point tileCoords, PlayerInfoForOpeningDoors playerInfo)

References Terraria.GameContent.DoorOpeningHelper.GetPlayerInfoForOpeningDoor(), Terraria.GameContent.DoorOpeningHelper.TryAutoOpeningDoor(), and Terraria.Entity.velocity.

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

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