My Project v1
Project
载入中...
搜索中...
未找到
Game.SubsystemMagnetBlockBehavior
类 Game.SubsystemMagnetBlockBehavior 继承关系图:
Game.SubsystemMagnetBlockBehavior 的协作图:

Public 成员函数

Vector3 FindNearestCompassTarget (Vector3 compassPosition)
 
override void Load (ValuesDictionary valuesDictionary)
 
override void Save (ValuesDictionary valuesDictionary)
 
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 OnNeighborBlockChanged (int x, int y, int z, int neighborX, int neighborY, int neighborZ)
 
- 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 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 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 属性

SubsystemPlayers m_subsystemPlayers
 
DynamicArray< Vector3m_magnets = []
 

静态 Public 属性

const int MaxMagnets = 8
 

属性

override int[] HandledBlocks [get]
 
int MagnetsCount [get]
 
- 属性 继承自 Game.SubsystemBlockBehavior
virtual int[] HandledBlocks [get]
 
SubsystemTerrain SubsystemTerrain [get, set]
 

成员函数说明

◆ FindNearestCompassTarget()

Vector3 Game.SubsystemMagnetBlockBehavior.FindNearestCompassTarget ( Vector3 compassPosition)

◆ Load()

override void Game.SubsystemMagnetBlockBehavior.Load ( ValuesDictionary valuesDictionary)

◆ OnBlockAdded()

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

◆ OnBlockRemoved()

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

◆ OnNeighborBlockChanged()

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

重载 Game.SubsystemBlockBehavior .

函数调用图:

◆ Save()

override void Game.SubsystemMagnetBlockBehavior.Save ( ValuesDictionary valuesDictionary)

类成员变量说明

◆ m_magnets

DynamicArray<Vector3> Game.SubsystemMagnetBlockBehavior.m_magnets = []

◆ m_subsystemPlayers

SubsystemPlayers Game.SubsystemMagnetBlockBehavior.m_subsystemPlayers

◆ MaxMagnets

const int Game.SubsystemMagnetBlockBehavior.MaxMagnets = 8
static

属性说明

◆ HandledBlocks

override int [] Game.SubsystemMagnetBlockBehavior.HandledBlocks
get

◆ MagnetsCount

int Game.SubsystemMagnetBlockBehavior.MagnetsCount
get

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