|
Terraria v1.4.4.9
Terraria source code documentation
|
Classes | |
| struct | AmbienceSpawnInfo |
Public Member Functions | |
| AmbienceServer () | |
| void | Update () |
| void | ResetSpawnTime () |
| void | ForceEntitySpawn (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 = new Dictionary<SkyEntityType, Func<bool>>() |
| readonly Dictionary< SkyEntityType, Func< Player, bool > > | _secondarySpawnConditionsPerPlayer = new Dictionary<SkyEntityType, Func<Player, bool>>() |
| int | _updatesUntilNextAttempt |
| List< AmbienceSpawnInfo > | _forcedSpawns = new List<AmbienceSpawnInfo>() |
Static Private Attributes | |
| const int | MINIMUM_SECONDS_BETWEEN_SPAWNS = 10 |
| const int | MAXIMUM_SECONDS_BETWEEN_SPAWNS = 120 |
Definition at line 9 of file AmbienceServer.cs.