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

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< Point3m_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.cs5 行定义.

成员函数说明

◆ AddRemoveMeter()

void Game.SubsystemMetersBlockBehavior.AddRemoveMeter ( int value,
int x,
int y,
int z )

在文件 SubsystemMetersBlockBehavior.cs317 行定义.

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

◆ CalculateTemperature()

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.cs120 行定义.

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

◆ GetHeat()

float Game.SubsystemMetersBlockBehavior.GetHeat ( int value)
static

在文件 SubsystemMetersBlockBehavior.cs284 行定义.

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

◆ GetThermometerReading()

int Game.SubsystemMetersBlockBehavior.GetThermometerReading ( int x,
int y,
int z )

在文件 SubsystemMetersBlockBehavior.cs104 行定义.

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

◆ Load()

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

◆ OnBlockAdded()

override void Game.SubsystemMetersBlockBehavior.OnBlockAdded ( int value,
int oldValue,
int x,
int y,
int z )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs50 行定义.

函数调用图:

◆ OnBlockGenerated()

override void Game.SubsystemMetersBlockBehavior.OnBlockGenerated ( int value,
int x,
int y,
int z,
bool isLoaded )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs62 行定义.

函数调用图:

◆ OnBlockModified()

override void Game.SubsystemMetersBlockBehavior.OnBlockModified ( int value,
int oldValue,
int x,
int y,
int z )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs58 行定义.

函数调用图:

◆ OnBlockRemoved()

override void Game.SubsystemMetersBlockBehavior.OnBlockRemoved ( int value,
int oldValue,
int x,
int y,
int z )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs54 行定义.

函数调用图:

◆ OnChunkDiscarding()

override void Game.SubsystemMetersBlockBehavior.OnChunkDiscarding ( TerrainChunk chunk)
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs66 行定义.

函数调用图:

◆ OnNeighborBlockChanged()

override void Game.SubsystemMetersBlockBehavior.OnNeighborBlockChanged ( int x,
int y,
int z,
int neighborX,
int neighborY,
int neighborZ )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMetersBlockBehavior.cs34 行定义.

函数调用图:

◆ SimulateThermometer()

void Game.SubsystemMetersBlockBehavior.SimulateThermometer ( int x,
int y,
int z,
bool invalidateTerrainOnChange )

在文件 SubsystemMetersBlockBehavior.cs289 行定义.

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

◆ Update()

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

实现了 Game.IUpdateable.

在文件 SubsystemMetersBlockBehavior.cs88 行定义.

函数调用图:

类成员变量说明

◆ m_diameter

const int Game.SubsystemMetersBlockBehavior.m_diameter = 64
static

在文件 SubsystemMetersBlockBehavior.cs20 行定义.

◆ m_diameterBits

const int Game.SubsystemMetersBlockBehavior.m_diameterBits = 6
static

在文件 SubsystemMetersBlockBehavior.cs18 行定义.

◆ m_diameterMask

const int Game.SubsystemMetersBlockBehavior.m_diameterMask = 63
static

在文件 SubsystemMetersBlockBehavior.cs22 行定义.

◆ m_radius

const int Game.SubsystemMetersBlockBehavior.m_radius = 32
static

在文件 SubsystemMetersBlockBehavior.cs24 行定义.

◆ m_subsystemSky

SubsystemSky Game.SubsystemMetersBlockBehavior.m_subsystemSky

在文件 SubsystemMetersBlockBehavior.cs10 行定义.

◆ m_subsystemTime

SubsystemTime Game.SubsystemMetersBlockBehavior.m_subsystemTime

在文件 SubsystemMetersBlockBehavior.cs6 行定义.

◆ m_subsystemWeather

SubsystemWeather Game.SubsystemMetersBlockBehavior.m_subsystemWeather

在文件 SubsystemMetersBlockBehavior.cs8 行定义.

◆ m_thermometersByPoint

Dictionary<Point3, int> Game.SubsystemMetersBlockBehavior.m_thermometersByPoint = []

在文件 SubsystemMetersBlockBehavior.cs12 行定义.

◆ m_thermometersToSimulate

DynamicArray<Point3> Game.SubsystemMetersBlockBehavior.m_thermometersToSimulate = []

在文件 SubsystemMetersBlockBehavior.cs14 行定义.

◆ m_thermometersToSimulateIndex

int Game.SubsystemMetersBlockBehavior.m_thermometersToSimulateIndex

在文件 SubsystemMetersBlockBehavior.cs16 行定义.

◆ m_toVisit

DynamicArray<int> Game.SubsystemMetersBlockBehavior.m_toVisit = []

在文件 SubsystemMetersBlockBehavior.cs26 行定义.

◆ m_visited

int [] Game.SubsystemMetersBlockBehavior.m_visited = new int[8192]

在文件 SubsystemMetersBlockBehavior.cs28 行定义.

属性说明

◆ HandledBlocks

override int [] Game.SubsystemMetersBlockBehavior.HandledBlocks
get

在文件 SubsystemMetersBlockBehavior.cs30 行定义.

◆ UpdateOrder

UpdateOrder Game.SubsystemMetersBlockBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 SubsystemMetersBlockBehavior.cs32 行定义.


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