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

Public 成员函数

virtual void Update (float dt)
bool RetractExtendSpikes (int x, int y, int z, bool extend)
override void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
override void Load (ValuesDictionary valuesDictionary)
override void OnEntityRemoved (Entity entity)
Public 成员函数 继承自 Game.SubsystemBlockBehavior
virtual void OnChunkInitialized (TerrainChunk chunk)
virtual void OnChunkDiscarding (TerrainChunk chunk)
virtual void OnBlockGenerated (int value, int x, int y, int z, bool isLoaded)
virtual void OnBlockAdded (int value, int oldValue, int x, int y, int z)
virtual void OnBlockRemoved (int value, int newValue, int x, int y, int z)
virtual void OnBlockModified (int value, int oldValue, int x, int y, int z)
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 void OnNeighborBlockChanged (int x, int y, int z, int neighborX, int neighborY, int neighborZ)
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 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 Save (ValuesDictionary valuesDictionary)
virtual void Dispose ()
virtual void Initialize (Project project, ValuesDictionary valuesDictionary)

Public 属性

SubsystemAudio m_subsystemAudio
SubsystemTime m_subsystemTime
Vector3m_closestSoundToPlay
Dictionary< ComponentCreature, double > m_lastInjuryTimes = []

静态 Public 属性

static Random m_random = new()

属性

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 ()

详细描述

在文件 SubsystemSpikesBlockBehavior.cs6 行定义.

成员函数说明

◆ Load()

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

◆ OnCollide()

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

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemSpikesBlockBehavior.cs46 行定义.

函数调用图:

◆ OnEntityRemoved()

override void Game.SubsystemSpikesBlockBehavior.OnEntityRemoved ( Entity entity)
virtual

重载 GameEntitySystem.Subsystem .

在文件 SubsystemSpikesBlockBehavior.cs78 行定义.

函数调用图:

◆ RetractExtendSpikes()

bool Game.SubsystemSpikesBlockBehavior.RetractExtendSpikes ( int x,
int y,
int z,
bool extend )

在文件 SubsystemSpikesBlockBehavior.cs28 行定义.

函数调用图:

◆ Update()

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

实现了 Game.IUpdateable.

在文件 SubsystemSpikesBlockBehavior.cs21 行定义.

类成员变量说明

◆ m_closestSoundToPlay

Vector3? Game.SubsystemSpikesBlockBehavior.m_closestSoundToPlay

在文件 SubsystemSpikesBlockBehavior.cs13 行定义.

◆ m_lastInjuryTimes

Dictionary<ComponentCreature, double> Game.SubsystemSpikesBlockBehavior.m_lastInjuryTimes = []

在文件 SubsystemSpikesBlockBehavior.cs15 行定义.

◆ m_random

Random Game.SubsystemSpikesBlockBehavior.m_random = new()
static

在文件 SubsystemSpikesBlockBehavior.cs7 行定义.

◆ m_subsystemAudio

SubsystemAudio Game.SubsystemSpikesBlockBehavior.m_subsystemAudio

在文件 SubsystemSpikesBlockBehavior.cs9 行定义.

◆ m_subsystemTime

SubsystemTime Game.SubsystemSpikesBlockBehavior.m_subsystemTime

在文件 SubsystemSpikesBlockBehavior.cs11 行定义.

属性说明

◆ HandledBlocks

override int [] Game.SubsystemSpikesBlockBehavior.HandledBlocks
get

在文件 SubsystemSpikesBlockBehavior.cs17 行定义.

◆ UpdateOrder

UpdateOrder Game.SubsystemSpikesBlockBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 SubsystemSpikesBlockBehavior.cs19 行定义.


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