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

◆ ForceUpdateBiomes()

void Terraria.Player.ForceUpdateBiomes ( )
inline

Definition at line 14759 of file Player.cs.

14760 {
14761 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
14762 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
14763 if (whoAmI == Main.myPlayer)
14764 {
14765 Main.GetAreaToLight(out var firstTileX, out var lastTileX, out var firstTileY, out var lastTileY);
14766 Rectangle value = default(Rectangle);
14767 ((Rectangle)(ref value))._002Ector(firstTileX, firstTileY, lastTileX - firstTileX, lastTileY - firstTileY);
14768 int num = 28;
14769 ((Rectangle)(ref value)).Inflate(num, num);
14770 Main.SceneMetrics.ScanAndExportToMain(new SceneMetricsScanSettings
14771 {
14772 VisualScanArea = value,
14773 BiomeScanCenterPositionInWorld = base.Center,
14774 ScanOreFinderData = accOreFinder
14775 });
14776 UpdateBiomes();
14777 }
14778 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
bool accOreFinder
Definition Player.cs:2761
void UpdateBiomes()
Definition Player.cs:14801

References Terraria.Player.accOreFinder, Terraria.Main.GetAreaToLight(), Terraria.Main.myPlayer, Terraria.Main.SceneMetrics, Terraria.Player.UpdateBiomes(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.Spawn(), and Terraria.Player.Teleport().

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