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

Public 成员函数

override void OnBlockGenerated (int value, int x, int y, int z, bool isLoaded)
override void OnBlockAdded (int value, int oldValue, int x, int y, int z)
override void OnBlockRemoved (int value, int newValue, int x, int y, int z)
override void OnBlockModified (int value, int oldValue, int x, int y, int z)
override void OnBlockStartMoving (int value, int newValue, int x, int y, int z, MovingBlock movingBlock)
override void OnBlockStopMoving (int value, int oldValue, int x, int y, int z, MovingBlock movingBlock)
override void OnChunkDiscarding (TerrainChunk chunk)
override void OnNeighborBlockChanged (int x, int y, int z, int neighborX, int neighborY, int neighborZ)
override bool OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner)
override void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
override void OnHitByProjectile (CellFace cellFace, WorldItem worldItem)
override void Load (ValuesDictionary valuesDictionary)
Public 成员函数 继承自 Game.SubsystemBlockBehavior
virtual void OnChunkInitialized (TerrainChunk chunk)
virtual bool OnUse (Ray3 ray, 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 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 (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 属性

SubsystemElectricity m_subsystemElectricity

属性

override int[] HandledBlocks [get]
属性 继承自 Game.SubsystemBlockBehavior
virtual int[] HandledBlocks [get]
SubsystemTerrain SubsystemTerrain [get, set]
属性 继承自 GameEntitySystem.Subsystem
Project Project [get]
ValuesDictionary ValuesDictionary [get]

额外继承的成员函数

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

详细描述

在文件 SubsystemElectricBlockBehavior.cs5 行定义.

成员函数说明

◆ Load()

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

◆ OnBlockAdded()

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

◆ OnBlockGenerated()

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

◆ OnBlockModified()

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

◆ OnBlockRemoved()

override void Game.SubsystemElectricBlockBehavior.OnBlockRemoved ( int value,
int newValue,
int x,
int y,
int z )
virtual

◆ OnBlockStartMoving()

override void Game.SubsystemElectricBlockBehavior.OnBlockStartMoving ( int value,
int newValue,
int x,
int y,
int z,
MovingBlock movingBlock )
virtual

◆ OnBlockStopMoving()

override void Game.SubsystemElectricBlockBehavior.OnBlockStopMoving ( int value,
int oldValue,
int x,
int y,
int z,
MovingBlock movingBlock )
virtual

◆ OnChunkDiscarding()

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

◆ OnCollide()

override void Game.SubsystemElectricBlockBehavior.OnCollide ( CellFace cellFace,
float velocity,
ComponentBody componentBody )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemElectricBlockBehavior.cs120 行定义.

函数调用图:

◆ OnHitByProjectile()

override void Game.SubsystemElectricBlockBehavior.OnHitByProjectile ( CellFace cellFace,
WorldItem worldItem )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemElectricBlockBehavior.cs140 行定义.

函数调用图:

◆ OnInteract()

override bool Game.SubsystemElectricBlockBehavior.OnInteract ( TerrainRaycastResult raycastResult,
ComponentMiner componentMiner )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemElectricBlockBehavior.cs107 行定义.

函数调用图:

◆ OnNeighborBlockChanged()

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

类成员变量说明

◆ m_subsystemElectricity

SubsystemElectricity Game.SubsystemElectricBlockBehavior.m_subsystemElectricity

在文件 SubsystemElectricBlockBehavior.cs6 行定义.

属性说明

◆ HandledBlocks

override int [] Game.SubsystemElectricBlockBehavior.HandledBlocks
get

在文件 SubsystemElectricBlockBehavior.cs8 行定义.


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