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

Public 成员函数

 SubsystemMemoryBankBlockBehavior ()
override bool OnEditInventoryItem (IInventory inventory, int slotIndex, ComponentPlayer componentPlayer)
override bool OnEditBlock (int x, int y, int z, int value, ComponentPlayer componentPlayer)
Public 成员函数 继承自 Game.SubsystemEditableItemBehavior< T >
 SubsystemEditableItemBehavior (int contents)
GetBlockData (Point3 point)
GetBlockData (MovingBlock movingBlock)
void SetBlockData (Point3 point, T t)
void SetBlockData (MovingBlock movingBlock, T t)
GetItemData (int id)
int StoreItemDataAtUniqueId (T t)
override void OnItemPlaced (int x, int y, int z, ref BlockPlacementData placementData, int itemValue)
override void OnItemHarvested (int x, int y, int z, int blockValue, ref BlockDropValue dropValue, ref int newBlockValue)
override void OnBlockRemoved (int value, int newValue, 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 Load (ValuesDictionary valuesDictionary)
override void Save (ValuesDictionary valuesDictionary)
int FindFreeItemId ()
void GarbageCollectItems (ReadOnlyList< ScannedItemData > allExistingItems)
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 OnBlockModified (int value, int oldValue, int x, int y, int z)
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 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 Dispose ()
virtual void Initialize (Project project, ValuesDictionary valuesDictionary)

静态 Public 属性

static string fName = "MemoryBankBlockBehavior"

属性

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

额外继承的成员函数

Public 属性 继承自 Game.SubsystemEditableItemBehavior< T >
SubsystemItemsScanner m_subsystemItemsScanner
int m_contents
Dictionary< int, T > m_itemsData = []
Dictionary< Point3, T > m_blocksData = []
Dictionary< MovingBlock, T > m_movingBlocksData = new()
包函数 继承自 GameEntitySystem.Subsystem
void DisposeInternal ()

详细描述

在文件 SubsystemMemoryBankBlockBehavior.cs4 行定义.

构造及析构函数说明

◆ SubsystemMemoryBankBlockBehavior()

Game.SubsystemMemoryBankBlockBehavior.SubsystemMemoryBankBlockBehavior ( )

在文件 SubsystemMemoryBankBlockBehavior.cs8 行定义.

成员函数说明

◆ OnEditBlock()

override bool Game.SubsystemMemoryBankBlockBehavior.OnEditBlock ( int x,
int y,
int z,
int value,
ComponentPlayer componentPlayer )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMemoryBankBlockBehavior.cs50 行定义.

函数调用图:

◆ OnEditInventoryItem()

override bool Game.SubsystemMemoryBankBlockBehavior.OnEditInventoryItem ( IInventory inventory,
int slotIndex,
ComponentPlayer componentPlayer )
virtual

重载 Game.SubsystemBlockBehavior .

在文件 SubsystemMemoryBankBlockBehavior.cs10 行定义.

函数调用图:

类成员变量说明

◆ fName

string Game.SubsystemMemoryBankBlockBehavior.fName = "MemoryBankBlockBehavior"
static

在文件 SubsystemMemoryBankBlockBehavior.cs6 行定义.

属性说明

◆ HandledBlocks

override int [] Game.SubsystemMemoryBankBlockBehavior.HandledBlocks
get

在文件 SubsystemMemoryBankBlockBehavior.cs5 行定义.


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