terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.GameContent.Ambience.AmbienceServer Class Reference
+ Collaboration diagram for Terraria.GameContent.Ambience.AmbienceServer:

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 15 of file AmbienceServer.cs.


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