Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.SubsystemWeather
类 Game.SubsystemWeather 继承关系图:
Game.SubsystemWeather 的协作图:

Public 成员函数

virtual PrecipitationShaftInfo GetPrecipitationShaftInfo (int x, int z)
virtual void ManualLightingStrike (Vector3 position, Vector3 direction)
virtual void ManualPrecipitationStart ()
virtual void ManualPrecipitationEnd ()
virtual void ManualFogStart ()
virtual void ManualFogEnd ()
virtual void Draw (Camera camera, int drawOrder)
virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary)
override void Save (ValuesDictionary valuesDictionary)
virtual void UpdatePrecipitation (float dt)
virtual void UpdateLightning (float dt)
virtual void UpdateFog (float dt)
virtual Dictionary< Point2, PrecipitationShaftParticleSystemGetActiveShafts (GameWidget gameWidget)
virtual void FreezeThawAndDepositSnow (TerrainChunk chunk, float freezeProbability, float thawProbability, bool forceDepositSnow)
Public 成员函数 继承自 GameEntitySystem.Subsystem
virtual void OnEntityAdded (Entity entity)
virtual void OnEntityRemoved (Entity entity)
virtual void Dispose ()
virtual void Initialize (Project project, ValuesDictionary valuesDictionary)

Public 属性

SubsystemGameInfo m_subsystemGameInfo
SubsystemBlocksScanner m_subsystemBlocksScanner
SubsystemParticles m_subsystemParticles
SubsystemAudio m_subsystemAudio
SubsystemSeasons m_subsystemSeasons
Random m_random = new()
Dictionary< GameWidget, Dictionary< Point2, PrecipitationShaftParticleSystem > > m_activeShafts = []
List< PrecipitationShaftParticleSystemm_toRemove = []
Dictionary< GameWidget, Vector2?> m_lastShaftsUpdatePositions = []
float m_targetRainSoundVolume
double m_precipitationStartTime
double m_precipitationEndTime
float m_precipitationRampTime
float m_lightningIntensity
double m_fogStartTime
double m_fogEndTime
float m_fogRampTime
float m_rainVolumeFactor
Sound m_rainSound
int[] m_shuffledOrder

静态 Public 属性

const int m_rainSoundRadius = 7
static int[] m_drawOrders = [50]
static Func< int, int > GetTemperatureAdjustmentAtHeight
static Func< int, int, bool > IsPlaceFrozen = (temperature, y) => temperature + GetTemperatureAdjustmentAtHeight(y) <= 0
static Func< int, int, bool > ShaftHasSnowOnIce = (x, z) => MathUtils.Hash((uint)((x & 0xFFFF) | (z << 16))) > 429496729

属性

SubsystemTerrain SubsystemTerrain [get, set]
SubsystemSky SubsystemSky [get, set]
SubsystemTime SubsystemTime [get, set]
virtual RainSplashParticleSystem RainSplashParticleSystem [get, set]
virtual SnowSplashParticleSystem SnowSplashParticleSystem [get, set]
virtual Color RainColor [get, set]
virtual Color SnowColor [get, set]
virtual float PrecipitationIntensity [get, set]
virtual int FogSeed [get, set]
virtual float FogProgress [get, set]
virtual float FogIntensity [get, set]
virtual bool IsPrecipitationStarted [get]
virtual bool IsFogStarted [get]
int[] DrawOrders [get]
UpdateOrder UpdateOrder [get]
属性 继承自 GameEntitySystem.Subsystem
Project Project [get]
ValuesDictionary ValuesDictionary [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

包函数 继承自 GameEntitySystem.Subsystem
void DisposeInternal ()

详细描述

在文件 SubsystemWeather.cs7 行定义.

成员函数说明

◆ Draw()

virtual void Game.SubsystemWeather.Draw ( Camera camera,
int drawOrder )
virtual

实现了 Game.IDrawable.

在文件 SubsystemWeather.cs172 行定义.

函数调用图:

◆ FreezeThawAndDepositSnow()

virtual void Game.SubsystemWeather.FreezeThawAndDepositSnow ( TerrainChunk chunk,
float freezeProbability,
float thawProbability,
bool forceDepositSnow )
virtual

在文件 SubsystemWeather.cs454 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetActiveShafts()

virtual Dictionary< Point2, PrecipitationShaftParticleSystem > Game.SubsystemWeather.GetActiveShafts ( GameWidget gameWidget)
virtual

在文件 SubsystemWeather.cs446 行定义.

这是这个函数的调用关系图:

◆ GetPrecipitationShaftInfo()

virtual PrecipitationShaftInfo Game.SubsystemWeather.GetPrecipitationShaftInfo ( int x,
int z )
virtual

在文件 SubsystemWeather.cs102 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Load()

override void Game.SubsystemWeather.Load ( ValuesDictionary valuesDictionary)
virtual

重载 GameEntitySystem.Subsystem .

在文件 SubsystemWeather.cs230 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ManualFogEnd()

virtual void Game.SubsystemWeather.ManualFogEnd ( )
virtual

在文件 SubsystemWeather.cs167 行定义.

◆ ManualFogStart()

virtual void Game.SubsystemWeather.ManualFogStart ( )
virtual

在文件 SubsystemWeather.cs161 行定义.

◆ ManualLightingStrike()

virtual void Game.SubsystemWeather.ManualLightingStrike ( Vector3 position,
Vector3 direction )
virtual

在文件 SubsystemWeather.cs130 行定义.

函数调用图:

◆ ManualPrecipitationEnd()

virtual void Game.SubsystemWeather.ManualPrecipitationEnd ( )
virtual

在文件 SubsystemWeather.cs156 行定义.

◆ ManualPrecipitationStart()

virtual void Game.SubsystemWeather.ManualPrecipitationStart ( )
virtual

在文件 SubsystemWeather.cs150 行定义.

◆ Save()

override void Game.SubsystemWeather.Save ( ValuesDictionary valuesDictionary)
virtual

重载 GameEntitySystem.Subsystem .

在文件 SubsystemWeather.cs276 行定义.

◆ Update()

virtual void Game.SubsystemWeather.Update ( float dt)
virtual

实现了 Game.IUpdateable.

在文件 SubsystemWeather.cs224 行定义.

函数调用图:

◆ UpdateFog()

virtual void Game.SubsystemWeather.UpdateFog ( float dt)
virtual

在文件 SubsystemWeather.cs417 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ UpdateLightning()

virtual void Game.SubsystemWeather.UpdateLightning ( float dt)
virtual

在文件 SubsystemWeather.cs386 行定义.

这是这个函数的调用关系图:

◆ UpdatePrecipitation()

virtual void Game.SubsystemWeather.UpdatePrecipitation ( float dt)
virtual

在文件 SubsystemWeather.cs289 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ GetTemperatureAdjustmentAtHeight

Func<int, int> Game.SubsystemWeather.GetTemperatureAdjustmentAtHeight
static
初始值:
=
y => (int)MathF.Round(y > 64 ? -0.0008f * MathUtils.Sqr(y - 64) : 0.1f * (64 - y))

在文件 SubsystemWeather.cs96 行定义.

◆ IsPlaceFrozen

Func<int, int, bool> Game.SubsystemWeather.IsPlaceFrozen = (temperature, y) => temperature + GetTemperatureAdjustmentAtHeight(y) <= 0
static

在文件 SubsystemWeather.cs99 行定义.

◆ m_activeShafts

Dictionary<GameWidget, Dictionary<Point2, PrecipitationShaftParticleSystem> > Game.SubsystemWeather.m_activeShafts = []

在文件 SubsystemWeather.cs20 行定义.

◆ m_drawOrders

int [] Game.SubsystemWeather.m_drawOrders = [50]
static

在文件 SubsystemWeather.cs50 行定义.

◆ m_fogEndTime

double Game.SubsystemWeather.m_fogEndTime

在文件 SubsystemWeather.cs38 行定义.

◆ m_fogRampTime

float Game.SubsystemWeather.m_fogRampTime

在文件 SubsystemWeather.cs40 行定义.

◆ m_fogStartTime

double Game.SubsystemWeather.m_fogStartTime

在文件 SubsystemWeather.cs36 行定义.

◆ m_lastShaftsUpdatePositions

Dictionary<GameWidget, Vector2?> Game.SubsystemWeather.m_lastShaftsUpdatePositions = []

在文件 SubsystemWeather.cs24 行定义.

◆ m_lightningIntensity

float Game.SubsystemWeather.m_lightningIntensity

在文件 SubsystemWeather.cs34 行定义.

◆ m_precipitationEndTime

double Game.SubsystemWeather.m_precipitationEndTime

在文件 SubsystemWeather.cs30 行定义.

◆ m_precipitationRampTime

float Game.SubsystemWeather.m_precipitationRampTime

在文件 SubsystemWeather.cs32 行定义.

◆ m_precipitationStartTime

double Game.SubsystemWeather.m_precipitationStartTime

在文件 SubsystemWeather.cs28 行定义.

◆ m_rainSound

Sound Game.SubsystemWeather.m_rainSound

在文件 SubsystemWeather.cs46 行定义.

◆ m_rainSoundRadius

const int Game.SubsystemWeather.m_rainSoundRadius = 7
static

在文件 SubsystemWeather.cs42 行定义.

◆ m_rainVolumeFactor

float Game.SubsystemWeather.m_rainVolumeFactor

在文件 SubsystemWeather.cs44 行定义.

◆ m_random

Random Game.SubsystemWeather.m_random = new()

在文件 SubsystemWeather.cs18 行定义.

◆ m_shuffledOrder

int [] Game.SubsystemWeather.m_shuffledOrder

在文件 SubsystemWeather.cs48 行定义.

◆ m_subsystemAudio

SubsystemAudio Game.SubsystemWeather.m_subsystemAudio

在文件 SubsystemWeather.cs14 行定义.

◆ m_subsystemBlocksScanner

SubsystemBlocksScanner Game.SubsystemWeather.m_subsystemBlocksScanner

在文件 SubsystemWeather.cs10 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.SubsystemWeather.m_subsystemGameInfo

在文件 SubsystemWeather.cs8 行定义.

◆ m_subsystemParticles

SubsystemParticles Game.SubsystemWeather.m_subsystemParticles

在文件 SubsystemWeather.cs12 行定义.

◆ m_subsystemSeasons

SubsystemSeasons Game.SubsystemWeather.m_subsystemSeasons

在文件 SubsystemWeather.cs16 行定义.

◆ m_targetRainSoundVolume

float Game.SubsystemWeather.m_targetRainSoundVolume

在文件 SubsystemWeather.cs26 行定义.

◆ m_toRemove

List<PrecipitationShaftParticleSystem> Game.SubsystemWeather.m_toRemove = []

在文件 SubsystemWeather.cs22 行定义.

◆ ShaftHasSnowOnIce

Func<int, int, bool> Game.SubsystemWeather.ShaftHasSnowOnIce = (x, z) => MathUtils.Hash((uint)((x & 0xFFFF) | (z << 16))) > 429496729
static

在文件 SubsystemWeather.cs100 行定义.

属性说明

◆ DrawOrders

int [] Game.SubsystemWeather.DrawOrders
get

实现了 Game.IDrawable.

在文件 SubsystemWeather.cs92 行定义.

◆ FogIntensity

virtual float Game.SubsystemWeather.FogIntensity
getset

在文件 SubsystemWeather.cs72 行定义.

◆ FogProgress

virtual float Game.SubsystemWeather.FogProgress
getset

在文件 SubsystemWeather.cs70 行定义.

◆ FogSeed

virtual int Game.SubsystemWeather.FogSeed
getset

在文件 SubsystemWeather.cs68 行定义.

◆ IsFogStarted

virtual bool Game.SubsystemWeather.IsFogStarted
get

在文件 SubsystemWeather.cs83 行定义.

◆ IsPrecipitationStarted

virtual bool Game.SubsystemWeather.IsPrecipitationStarted
get

在文件 SubsystemWeather.cs74 行定义.

◆ PrecipitationIntensity

virtual float Game.SubsystemWeather.PrecipitationIntensity
getset

在文件 SubsystemWeather.cs66 行定义.

◆ RainColor

virtual Color Game.SubsystemWeather.RainColor
getset

在文件 SubsystemWeather.cs62 行定义.

◆ RainSplashParticleSystem

virtual RainSplashParticleSystem Game.SubsystemWeather.RainSplashParticleSystem
getset

在文件 SubsystemWeather.cs58 行定义.

◆ SnowColor

virtual Color Game.SubsystemWeather.SnowColor
getset

在文件 SubsystemWeather.cs64 行定义.

◆ SnowSplashParticleSystem

virtual SnowSplashParticleSystem Game.SubsystemWeather.SnowSplashParticleSystem
getset

在文件 SubsystemWeather.cs60 行定义.

◆ SubsystemSky

SubsystemSky Game.SubsystemWeather.SubsystemSky
getset

在文件 SubsystemWeather.cs54 行定义.

◆ SubsystemTerrain

SubsystemTerrain Game.SubsystemWeather.SubsystemTerrain
getset

在文件 SubsystemWeather.cs52 行定义.

◆ SubsystemTime

SubsystemTime Game.SubsystemWeather.SubsystemTime
getset

在文件 SubsystemWeather.cs56 行定义.

◆ UpdateOrder

UpdateOrder Game.SubsystemWeather.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 SubsystemWeather.cs94 行定义.


该类的文档由以下文件生成: