|
Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
|


Public 成员函数 | |
| virtual void | Poke (bool forceRestart) |
| bool | Dig (TerrainRaycastResult raycastResult) |
| bool | Place (TerrainRaycastResult raycastResult) |
| bool | Place (TerrainRaycastResult raycastResult, int value) |
| bool | Use (Ray3 ray) |
| bool | Interact (TerrainRaycastResult raycastResult) |
| bool | Interact (MovingBlocksRaycastResult raycastResult) |
| void | Hit (ComponentBody componentBody, Vector3 hitPoint, Vector3 hitDirection) |
| bool | Aim (Ray3 aim, AimState state) |
| virtual object | Raycast (Ray3 ray, RaycastMode mode, bool raycastTerrain=true, bool raycastBodies=true, bool raycastMovingBlocks=true, float? Reach=null) |
| 发出射线检测,检测玩家点击到的目标 | |
| T? | Raycast< T > (Ray3 ray, RaycastMode mode, bool raycastTerrain=true, bool raycastBodies=true, bool raycastMovingBlocks=true, float? reach=null) |
| virtual void | RemoveActiveTool (int removeCount) |
| virtual void | DamageActiveTool (int damageCount) |
| virtual void | Update (float dt) |
| override void | Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap) |
| override void | Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap) |
| virtual float | CalculateDigTime (int digValue, int toolValue) |
| virtual bool | IsLevelSufficientForTool (int toolValue) |
| virtual int | FindBestInventoryToolForDigging (int digValue) |
| Public 成员函数 继承自 GameEntitySystem.Component | |
| virtual IEnumerable< Entity > | GetOwnedEntities () |
| virtual void | OnEntityAdded () |
| virtual void | OnEntityRemoved () |
| virtual void | Dispose () |
| virtual void | InheritFromComponent (Component baseComponent) |
| virtual void | Initialize (Entity entity, ValuesDictionary valuesDictionary) |
静态 Public 成员函数 | |
| static void | AttackBody (Attackment attackment) |
| static void | AttackBody (ComponentBody target, ComponentCreature attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower, bool isMeleeAttack) |
| static void | AddHitValueParticleSystem (float damage, Entity attacker, Entity attacked, Vector3 hitPoint, Vector3 hitDirection) |
| static bool | IsBlockPlacingAllowed (ComponentBody componentBody) |
Public 属性 | |
| SubsystemTerrain | m_subsystemTerrain |
| SubsystemBodies | m_subsystemBodies |
| SubsystemMovingBlocks | m_subsystemMovingBlocks |
| SubsystemGameInfo | m_subsystemGameInfo |
| SubsystemTime | m_subsystemTime |
| SubsystemAudio | m_subsystemAudio |
| SubsystemSoundMaterials | m_subsystemSoundMaterials |
| SubsystemBlockBehaviors | m_subsystemBlockBehaviors |
| Random | m_random = new() |
| double | m_digStartTime |
| float | m_digProgress |
| double | m_lastHitTime |
| int | m_lastDigFrameIndex |
| float | m_lastPokingPhase |
| double | m_basicHitInterval |
| bool | m_digSpeedBasedOnStrengthFactor = true |
| 挖掘速度是否受玩家力量属性加成 | |
| bool | m_canSqueezeBlock = true |
| bool | m_canJumpToPlace = false |
| Public 属性 继承自 GameEntitySystem.Component | |
| Entity | m_entity |
| ValuesDictionary | m_valuesDictionary |
静态 Public 属性 | |
| static Random | s_random = new() |
| static string | fName = "ComponentMiner" |
属性 | |
| virtual double | HitInterval [get, set] |
| 伤害间隔(原版为0.66f) | |
| ComponentCreature | ComponentCreature [get, set] |
| ComponentPlayer | ComponentPlayer [get, set] |
| ComponentFactors | ComponentFactors [get, set] |
| IInventory | Inventory [get, set] |
| int | ActiveBlockValue [get] |
| float | AttackPower [get, set] |
| float | AutoInteractRate [get, set] |
| float | StrengthFactor [get] |
| float | DigSpeedFactor [get] |
| float | PokingPhase [get, set] |
| CellFace? | DigCellFace [get, set] |
| float | DigTime [get] |
| float | DigProgress [get] |
| UpdateOrder | UpdateOrder [get] |
| 属性 继承自 GameEntitySystem.Component | |
| ValuesDictionary | ValuesDictionary [get] |
| Entity | Entity [get] |
| Project | Project [get] |
| bool | IsAddedToProject [get] |
| 属性 继承自 Game.IUpdateable | |
| float | FloatUpdateOrder [get] |
Private 属性 | |
| ComponentHealth | m_componentHealth |
| double | m_lastToolHintTime |
额外继承的成员函数 | |
| 包函数 继承自 GameEntitySystem.Component | |
| void | DisposeInternal () |
在文件 ComponentMiner.cs 第 7 行定义.
|
static |
|
static |
|
virtual |
|
virtual |
| bool Game.ComponentMiner.Dig | ( | TerrainRaycastResult | raycastResult | ) |
|
virtual |
| void Game.ComponentMiner.Hit | ( | ComponentBody | componentBody, |
| Vector3 | hitPoint, | ||
| Vector3 | hitDirection ) |
| bool Game.ComponentMiner.Interact | ( | MovingBlocksRaycastResult | raycastResult | ) |
| bool Game.ComponentMiner.Interact | ( | TerrainRaycastResult | raycastResult | ) |
|
static |
|
virtual |
|
virtual |
重载 GameEntitySystem.Component .
在文件 ComponentMiner.cs 第 798 行定义.
| bool Game.ComponentMiner.Place | ( | TerrainRaycastResult | raycastResult | ) |
| bool Game.ComponentMiner.Place | ( | TerrainRaycastResult | raycastResult, |
| int | value ) |
|
virtual |
|
virtual |
发出射线检测,检测玩家点击到的目标
| ray | |
| mode | 发出射线的意图 |
| raycastTerrain | 该射线是否和地形交互,为false时则忽略地形 |
| raycastBodies | 该射线是否和生物等实体交互,为false时则忽略实体 |
| raycastMovingBlocks | 该射线是否和移动方块交互,为false时则忽略移动方块 |
| Reach | 进行Raycast的距离 |
在文件 ComponentMiner.cs 第 596 行定义.


| T? Game.ComponentMiner.Raycast< T > | ( | Ray3 | ray, |
| RaycastMode | mode, | ||
| bool | raycastTerrain = true, | ||
| bool | raycastBodies = true, | ||
| bool | raycastMovingBlocks = true, | ||
| float? | reach = null ) |
|
virtual |
|
virtual |
重载 GameEntitySystem.Component .
在文件 ComponentMiner.cs 第 826 行定义.
|
virtual |
| bool Game.ComponentMiner.Use | ( | Ray3 | ray | ) |
|
static |
在文件 ComponentMiner.cs 第 36 行定义.
| double Game.ComponentMiner.m_basicHitInterval |
在文件 ComponentMiner.cs 第 53 行定义.
| bool Game.ComponentMiner.m_canJumpToPlace = false |
在文件 ComponentMiner.cs 第 120 行定义.
| bool Game.ComponentMiner.m_canSqueezeBlock = true |
在文件 ComponentMiner.cs 第 118 行定义.
|
private |
在文件 ComponentMiner.cs 第 24 行定义.
| float Game.ComponentMiner.m_digProgress |
在文件 ComponentMiner.cs 第 32 行定义.
| bool Game.ComponentMiner.m_digSpeedBasedOnStrengthFactor = true |
挖掘速度是否受玩家力量属性加成
在文件 ComponentMiner.cs 第 81 行定义.
| double Game.ComponentMiner.m_digStartTime |
在文件 ComponentMiner.cs 第 30 行定义.
| int Game.ComponentMiner.m_lastDigFrameIndex |
在文件 ComponentMiner.cs 第 38 行定义.
| double Game.ComponentMiner.m_lastHitTime |
在文件 ComponentMiner.cs 第 34 行定义.
| float Game.ComponentMiner.m_lastPokingPhase |
在文件 ComponentMiner.cs 第 40 行定义.
|
private |
在文件 ComponentMiner.cs 第 42 行定义.
| Random Game.ComponentMiner.m_random = new() |
在文件 ComponentMiner.cs 第 26 行定义.
| SubsystemAudio Game.ComponentMiner.m_subsystemAudio |
在文件 ComponentMiner.cs 第 18 行定义.
| SubsystemBlockBehaviors Game.ComponentMiner.m_subsystemBlockBehaviors |
在文件 ComponentMiner.cs 第 22 行定义.
| SubsystemBodies Game.ComponentMiner.m_subsystemBodies |
在文件 ComponentMiner.cs 第 10 行定义.
| SubsystemGameInfo Game.ComponentMiner.m_subsystemGameInfo |
在文件 ComponentMiner.cs 第 14 行定义.
| SubsystemMovingBlocks Game.ComponentMiner.m_subsystemMovingBlocks |
在文件 ComponentMiner.cs 第 12 行定义.
| SubsystemSoundMaterials Game.ComponentMiner.m_subsystemSoundMaterials |
在文件 ComponentMiner.cs 第 20 行定义.
| SubsystemTerrain Game.ComponentMiner.m_subsystemTerrain |
在文件 ComponentMiner.cs 第 8 行定义.
| SubsystemTime Game.ComponentMiner.m_subsystemTime |
在文件 ComponentMiner.cs 第 16 行定义.
|
static |
在文件 ComponentMiner.cs 第 28 行定义.
|
get |
在文件 ComponentMiner.cs 第 63 行定义.
|
getset |
在文件 ComponentMiner.cs 第 72 行定义.
|
getset |
在文件 ComponentMiner.cs 第 74 行定义.
|
getset |
在文件 ComponentMiner.cs 第 55 行定义.
|
getset |
在文件 ComponentMiner.cs 第 59 行定义.
|
getset |
在文件 ComponentMiner.cs 第 57 行定义.
|
getset |
在文件 ComponentMiner.cs 第 98 行定义.
|
get |
在文件 ComponentMiner.cs 第 109 行定义.
|
get |
在文件 ComponentMiner.cs 第 83 行定义.
|
get |
在文件 ComponentMiner.cs 第 100 行定义.
|
getset |
伤害间隔(原版为0.66f)
在文件 ComponentMiner.cs 第 47 行定义.
|
getset |
在文件 ComponentMiner.cs 第 61 行定义.
|
getset |
在文件 ComponentMiner.cs 第 96 行定义.
|
get |
在文件 ComponentMiner.cs 第 76 行定义.
|
get |
实现了 Game.IUpdateable.
在文件 ComponentMiner.cs 第 122 行定义.