My Project v1
Project
载入中...
搜索中...
未找到
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)
 
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)
 
override void Load (ValuesDictionary valuesDictionary)
 
virtual void OnPickableGathered (Pickable pickable, ComponentPickableGatherer target, Vector3 distanceToTarget)
 
- Public 成员函数 继承自 Game.IUpdateable

静态 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]
 
- 属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]
 

成员函数说明

◆ AddRemoveMeter()

void Game.SubsystemMetersBlockBehavior.AddRemoveMeter ( int value,
int x,
int y,
int z )
函数调用图:
这是这个函数的调用关系图:

◆ CalculateTemperature()

void Game.SubsystemMetersBlockBehavior.CalculateTemperature ( int x,
int y,
int z,
float meterTemperature,
float meterInsulation,
out float targetTemperature,
out float targetTemperatureFlux,
out float environmentTemperature )
函数调用图:
这是这个函数的调用关系图:

◆ GetHeat()

static float Game.SubsystemMetersBlockBehavior.GetHeat ( int value)
static
函数调用图:
这是这个函数的调用关系图:

◆ GetThermometerReading()

int Game.SubsystemMetersBlockBehavior.GetThermometerReading ( int x,
int y,
int z )
这是这个函数的调用关系图:

◆ Load()

override void Game.SubsystemMetersBlockBehavior.Load ( ValuesDictionary valuesDictionary)

◆ OnBlockAdded()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ OnBlockGenerated()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ OnBlockModified()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ OnBlockRemoved()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ OnChunkDiscarding()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ OnNeighborBlockChanged()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ SimulateThermometer()

void Game.SubsystemMetersBlockBehavior.SimulateThermometer ( int x,
int y,
int z,
bool invalidateTerrainOnChange )
函数调用图:
这是这个函数的调用关系图:

◆ Update()

void Game.SubsystemMetersBlockBehavior.Update ( float dt)

实现了 Game.IUpdateable.

函数调用图:

类成员变量说明

◆ m_diameter

const int Game.SubsystemMetersBlockBehavior.m_diameter = 64
static

◆ m_diameterBits

const int Game.SubsystemMetersBlockBehavior.m_diameterBits = 6
static

◆ m_diameterMask

const int Game.SubsystemMetersBlockBehavior.m_diameterMask = 63
static

◆ m_radius

const int Game.SubsystemMetersBlockBehavior.m_radius = 32
static

◆ m_subsystemSky

SubsystemSky Game.SubsystemMetersBlockBehavior.m_subsystemSky

◆ m_subsystemTime

SubsystemTime Game.SubsystemMetersBlockBehavior.m_subsystemTime

◆ m_subsystemWeather

SubsystemWeather Game.SubsystemMetersBlockBehavior.m_subsystemWeather

◆ m_thermometersByPoint

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

◆ m_thermometersToSimulate

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

◆ m_thermometersToSimulateIndex

int Game.SubsystemMetersBlockBehavior.m_thermometersToSimulateIndex

◆ m_toVisit

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

◆ m_visited

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

属性说明

◆ HandledBlocks

override int [] Game.SubsystemMetersBlockBehavior.HandledBlocks
get

◆ UpdateOrder

UpdateOrder Game.SubsystemMetersBlockBehavior.UpdateOrder
get

实现了 Game.IUpdateable.


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