terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Terraria.GameContent.Ambience.AmbienceServer Class Reference

Classes

struct  AmbienceSpawnInfo
 

Public Member Functions

 AmbienceServer ()
 
void Update ()
 
void ResetSpawnTime ()
 
void ForceEntitySpawn (AmbienceServer.AmbienceSpawnInfo info)
 

Private Member Functions

bool IsPlayerAtRightHeightForType (SkyEntityType type, Player plr)
 
void SpawnForcedEntities ()
 
void SpawnForPlayer (Player player, SkyEntityType type)
 

Static Private Member Functions

static bool IsSunnyDay ()
 
static bool IsSunset ()
 
static bool IsCalmNight ()
 
static void FindPlayerThatCanSeeBackgroundAmbience ([Out] Player player)
 
static bool IsPlayerInAPlaceWhereTheyCanSeeAmbience (Player plr)
 
static bool IsPlayerInAPlaceWhereTheyCanSeeAmbienceSky (Player plr)
 
static bool IsPlayerInAPlaceWhereTheyCanSeeAmbienceHell (Player plr)
 

Private Attributes

readonly Dictionary< SkyEntityType, Func< bool > > _spawnConditions
 
readonly Dictionary< SkyEntityType, Func< Player, bool > > _secondarySpawnConditionsPerPlayer
 
int _updatesUntilNextAttempt
 
List< AmbienceServer.AmbienceSpawnInfo_forcedSpawns
 

Static Private Attributes

const int MINIMUM_SECONDS_BETWEEN_SPAWNS = 10
 
const int MAXIMUM_SECONDS_BETWEEN_SPAWNS = 120
 

Detailed Description

Definition at line 12 of file AmbienceServer.cs.


The documentation for this class was generated from the following file: