|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| override void | OnNeighborBlockChanged (int x, int y, int z, int neighborX, int neighborY, int neighborZ) |
| override void | OnBlockAdded (int value, int oldValue, int x, int y, int z) |
| override void | OnBlockRemoved (int value, int oldValue, int x, int y, int z) |
| override void | OnBlockModified (int value, int oldValue, int x, int y, int z) |
| override void | OnBlockGenerated (int value, int x, int y, int z, bool isLoaded) |
| override void | OnChunkDiscarding (TerrainChunk chunk) |
| override void | Load (ValuesDictionary valuesDictionary) |
| virtual void | Update (float dt) |
| int | GetThermometerReading (int x, int y, int z) |
| void | CalculateTemperature (int x, int y, int z, float meterTemperature, float meterInsulation, out float targetTemperature, out float targetTemperatureFlux, out float environmentTemperature) |
| 计算温度 | |
| void | SimulateThermometer (int x, int y, int z, bool invalidateTerrainOnChange) |
| void | AddRemoveMeter (int value, int x, int y, int z) |
| Public 成员函数 继承自 Game.SubsystemBlockBehavior | |
| virtual void | OnChunkInitialized (TerrainChunk chunk) |
| virtual void | OnBlockStartMoving (int value, int newValue, int x, int y, int z, MovingBlock movingBlock) |
| virtual void | OnBlockStopMoving (int value, int oldValue, int x, int y, int z, MovingBlock movingBlock) |
| virtual bool | OnUse (Ray3 ray, ComponentMiner componentMiner) |
| virtual bool | OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner) |
| virtual bool | OnInteract (MovingBlocksRaycastResult movingBlocksRaycastResult, ComponentMiner componentMiner) |
| virtual bool | OnAim (Ray3 aim, ComponentMiner componentMiner, AimState state) |
| virtual bool | OnEditBlock (int x, int y, int z, int value, ComponentPlayer componentPlayer) |
| virtual bool | OnEditInventoryItem (IInventory inventory, int slotIndex, ComponentPlayer componentPlayer) |
| virtual void | OnItemPlaced (int x, int y, int z, ref BlockPlacementData placementData, int itemValue) |
| virtual void | OnItemHarvested (int x, int y, int z, int blockValue, ref BlockDropValue dropValue, ref int newBlockValue) |
| virtual void | OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody) |
| virtual void | OnExplosion (int value, int x, int y, int z, float damage) |
| virtual void | OnFiredAsProjectile (Projectile projectile) |
| virtual bool | OnHitAsProjectile (CellFace? cellFace, ComponentBody componentBody, WorldItem worldItem) |
| virtual void | OnHitByProjectile (CellFace cellFace, WorldItem worldItem) |
| virtual void | OnHitByProjectile (MovingBlock movingBlock, WorldItem worldItem) |
| virtual int | GetProcessInventoryItemCapacity (IInventory inventory, int slotIndex, int value) |
| virtual void | ProcessInventoryItem (IInventory inventory, int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount) |
| virtual void | OnPickableGathered (Pickable pickable, ComponentPickableGatherer target, Vector3 distanceToTarget) |
| Public 成员函数 继承自 GameEntitySystem.Subsystem | |
| virtual void | OnEntityAdded (Entity entity) |
| virtual void | OnEntityRemoved (Entity entity) |
| virtual void | Save (ValuesDictionary valuesDictionary) |
| virtual void | Dispose () |
| virtual void | Initialize (Project project, ValuesDictionary valuesDictionary) |
静态 Public 成员函数 | |
| static float | GetHeat (int value) |
Public 属性 | |
| SubsystemTime | m_subsystemTime |
| SubsystemWeather | m_subsystemWeather |
| SubsystemSky | m_subsystemSky |
| Dictionary< Point3, int > | m_thermometersByPoint = [] |
| DynamicArray< Point3 > | m_thermometersToSimulate = [] |
| int | m_thermometersToSimulateIndex |
| DynamicArray< int > | m_toVisit = [] |
| int[] | m_visited = new int[8192] |
静态 Public 属性 | |
| const int | m_diameterBits = 6 |
| const int | m_diameter = 64 |
| const int | m_diameterMask = 63 |
| const int | m_radius = 32 |
属性 | |
| override int[] | HandledBlocks [get] |
| UpdateOrder | UpdateOrder [get] |
| 属性 继承自 Game.SubsystemBlockBehavior | |
| virtual int[] | HandledBlocks [get] |
| SubsystemTerrain | SubsystemTerrain [get, set] |
| 属性 继承自 GameEntitySystem.Subsystem | |
| Project | Project [get] |
| ValuesDictionary | ValuesDictionary [get] |
| 属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
额外继承的成员函数 | |
| 包函数 继承自 GameEntitySystem.Subsystem | |
| void | DisposeInternal () |
在文件 SubsystemMetersBlockBehavior.cs 第 5 行定义.
| void Game.SubsystemMetersBlockBehavior.AddRemoveMeter | ( | int | value, |
| int | x, | ||
| int | y, | ||
| int | z ) |
| void Game.SubsystemMetersBlockBehavior.CalculateTemperature | ( | int | x, |
| int | y, | ||
| int | z, | ||
| float | meterTemperature, | ||
| float | meterInsulation, | ||
| out float | targetTemperature, | ||
| out float | targetTemperatureFlux, | ||
| out float | environmentTemperature ) |
计算温度
| x | 世界坐标 X |
| y | 世界坐标 Y |
| z | 世界坐标 Z |
| meterTemperature | 温度计(或者生物体)当前的温度(上一帧的温度) |
| meterInsulation | 隔热系数。如果这个值很高,外界温度对目标温度的影响会变慢(例如穿了厚衣服) |
| targetTemperature | 最终计算出的目标平衡温度(算上隔热后) |
| targetTemperatureFlux | 温度变化率(温度改变的速度) |
| environmentTemperature | 纯环境温度(不考虑自身隔热) |
在文件 SubsystemMetersBlockBehavior.cs 第 120 行定义.


|
static |
| int Game.SubsystemMetersBlockBehavior.GetThermometerReading | ( | int | x, |
| int | y, | ||
| int | z ) |
|
virtual |
重载 Game.SubsystemBlockBehavior .
在文件 SubsystemMetersBlockBehavior.cs 第 81 行定义.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void Game.SubsystemMetersBlockBehavior.SimulateThermometer | ( | int | x, |
| int | y, | ||
| int | z, | ||
| bool | invalidateTerrainOnChange ) |
|
virtual |
|
static |
在文件 SubsystemMetersBlockBehavior.cs 第 20 行定义.
|
static |
在文件 SubsystemMetersBlockBehavior.cs 第 18 行定义.
|
static |
在文件 SubsystemMetersBlockBehavior.cs 第 22 行定义.
|
static |
在文件 SubsystemMetersBlockBehavior.cs 第 24 行定义.
| SubsystemSky Game.SubsystemMetersBlockBehavior.m_subsystemSky |
在文件 SubsystemMetersBlockBehavior.cs 第 10 行定义.
| SubsystemTime Game.SubsystemMetersBlockBehavior.m_subsystemTime |
在文件 SubsystemMetersBlockBehavior.cs 第 6 行定义.
| SubsystemWeather Game.SubsystemMetersBlockBehavior.m_subsystemWeather |
在文件 SubsystemMetersBlockBehavior.cs 第 8 行定义.
| Dictionary<Point3, int> Game.SubsystemMetersBlockBehavior.m_thermometersByPoint = [] |
在文件 SubsystemMetersBlockBehavior.cs 第 12 行定义.
| DynamicArray<Point3> Game.SubsystemMetersBlockBehavior.m_thermometersToSimulate = [] |
在文件 SubsystemMetersBlockBehavior.cs 第 14 行定义.
| int Game.SubsystemMetersBlockBehavior.m_thermometersToSimulateIndex |
在文件 SubsystemMetersBlockBehavior.cs 第 16 行定义.
| DynamicArray<int> Game.SubsystemMetersBlockBehavior.m_toVisit = [] |
在文件 SubsystemMetersBlockBehavior.cs 第 26 行定义.
| int [] Game.SubsystemMetersBlockBehavior.m_visited = new int[8192] |
在文件 SubsystemMetersBlockBehavior.cs 第 28 行定义.
|
get |
在文件 SubsystemMetersBlockBehavior.cs 第 30 行定义.
|
get |
实现了 Game.IUpdateable.
在文件 SubsystemMetersBlockBehavior.cs 第 32 行定义.