|
My Project v1
Project
|


类 | |
| class | QueuedAction |
Public 成员函数 | |
| void | AdjustPiston (Point3 position, int length) |
| void | Update (float dt) |
| override bool | OnEditInventoryItem (IInventory inventory, int slotIndex, ComponentPlayer componentPlayer) |
| override bool | OnEditBlock (int x, int y, int z, int value, ComponentPlayer componentPlayer) |
| override void | OnBlockRemoved (int value, int newValue, int x, int y, int z) |
| override void | OnChunkDiscarding (TerrainChunk chunk) |
| override void | Load (ValuesDictionary valuesDictionary) |
| void | ProcessQueuedActions () |
| void | UpdateMovableBlocks () |
| bool | MovePiston (Point3 position, int length) |
| void | StopPiston (Point3 position) |
| void | MovingBlocksCollidedWithTerrain (IMovingBlockSet movingBlockSet, Point3 p) |
| void | MovingBlocksStopped (IMovingBlockSet movingBlockSet) |
Public 成员函数 继承自 Game.SubsystemBlockBehavior | |
| virtual void | OnChunkInitialized (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 | 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 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 void | GetSpeedAndSmoothness (int pistonSpeed, out float speed, out Vector2 smoothness) |
| static bool | IsBlockMovable (int value, int pistonFace, int y, out bool isEnd) |
| static bool | IsBlockBlocking (int value) |
Public 属性 | |
| SubsystemTime | m_subsystemTime |
| SubsystemTerrain | m_subsystemTerrain |
| SubsystemAudio | m_subsystemAudio |
| SubsystemMovingBlocks | m_subsystemMovingBlocks |
| SubsystemPlayers | m_subsystemPlayers |
| bool | m_allowPistonHeadRemove |
| Dictionary< Point3, QueuedAction > | m_actions = [] |
| List< KeyValuePair< Point3, QueuedAction > > | m_tmpActions = [] |
| DynamicArray< MovingBlock > | m_movingBlocks = [] |
静态 Public 属性 | |
| const string | IdString = "Piston" |
| const int | PistonMaxMovedBlocks = 8 |
| const int | PistonMaxExtension = 8 |
| const int | PistonMaxSpeedSetting = 3 |
属性 | |
| UpdateOrder | UpdateOrder [get] |
| override int[] | HandledBlocks [get] |
属性 继承自 Game.SubsystemBlockBehavior | |
| virtual int[] | HandledBlocks [get] |
| SubsystemTerrain | SubsystemTerrain [get, set] |
属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
| void Game.SubsystemPistonBlockBehavior.AdjustPiston | ( | Point3 | position, |
| int | length ) |
|
static |

|
static |


|
static |


| override void Game.SubsystemPistonBlockBehavior.Load | ( | ValuesDictionary | valuesDictionary | ) |

| bool Game.SubsystemPistonBlockBehavior.MovePiston | ( | Point3 | position, |
| int | length ) |


| void Game.SubsystemPistonBlockBehavior.MovingBlocksCollidedWithTerrain | ( | IMovingBlockSet | movingBlockSet, |
| Point3 | p ) |


| void Game.SubsystemPistonBlockBehavior.MovingBlocksStopped | ( | IMovingBlockSet | movingBlockSet | ) |


|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void Game.SubsystemPistonBlockBehavior.ProcessQueuedActions | ( | ) |


| void Game.SubsystemPistonBlockBehavior.StopPiston | ( | Point3 | position | ) |


| void Game.SubsystemPistonBlockBehavior.Update | ( | float | dt | ) |
| void Game.SubsystemPistonBlockBehavior.UpdateMovableBlocks | ( | ) |


|
static |
| Dictionary<Point3, QueuedAction> Game.SubsystemPistonBlockBehavior.m_actions = [] |
| bool Game.SubsystemPistonBlockBehavior.m_allowPistonHeadRemove |
| DynamicArray<MovingBlock> Game.SubsystemPistonBlockBehavior.m_movingBlocks = [] |
| SubsystemAudio Game.SubsystemPistonBlockBehavior.m_subsystemAudio |
| SubsystemMovingBlocks Game.SubsystemPistonBlockBehavior.m_subsystemMovingBlocks |
| SubsystemPlayers Game.SubsystemPistonBlockBehavior.m_subsystemPlayers |
| SubsystemTerrain Game.SubsystemPistonBlockBehavior.m_subsystemTerrain |
| SubsystemTime Game.SubsystemPistonBlockBehavior.m_subsystemTime |
| List<KeyValuePair<Point3, QueuedAction> > Game.SubsystemPistonBlockBehavior.m_tmpActions = [] |
|
static |
|
static |
|
static |
|
get |
|
get |
实现了 Game.IUpdateable.