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

◆ Draw()

override void Terraria.GameContent.Skies.AmbientSky.Draw ( SpriteBatch spriteBatch,
float minDepth,
float maxDepth )
inline

Definition at line 1400 of file AmbientSky.cs.

1401 {
1402 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
1403 if (Main.gameMenu && Main.netMode == 0 && SkyManager.Instance["Ambience"].IsActive())
1404 {
1405 _entities.Clear();
1406 SkyManager.Instance.Deactivate("Ambience");
1407 }
1409 {
1410 item.Value.Draw(spriteBatch, 3f, minDepth, maxDepth);
1411 }
1412 }
readonly SlotVector< SkyEntity > _entities

References Terraria.GameContent.Skies.AmbientSky._entities, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), Terraria.Main.gameMenu, Terraria.Graphics.Effects.SkyManager.Instance, System.item, and Terraria.Main.netMode.