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

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< EntityGetOwnedEntities ()
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]
CellFaceDigCellFace [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.cs7 行定义.

成员函数说明

◆ AddHitValueParticleSystem()

void Game.ComponentMiner.AddHitValueParticleSystem ( float damage,
Entity attacker,
Entity attacked,
Vector3 hitPoint,
Vector3 hitDirection )
static

在文件 ComponentMiner.cs740 行定义.

函数调用图:

◆ Aim()

bool Game.ComponentMiner.Aim ( Ray3 aim,
AimState state )

在文件 ComponentMiner.cs558 行定义.

函数调用图:

◆ AttackBody() [1/2]

void Game.ComponentMiner.AttackBody ( Attackment attackment)
static

在文件 ComponentMiner.cs716 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ AttackBody() [2/2]

void Game.ComponentMiner.AttackBody ( ComponentBody target,
ComponentCreature attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower,
bool isMeleeAttack )
static

在文件 ComponentMiner.cs725 行定义.

函数调用图:

◆ CalculateDigTime()

virtual float Game.ComponentMiner.CalculateDigTime ( int digValue,
int toolValue )
virtual

在文件 ComponentMiner.cs850 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DamageActiveTool()

virtual void Game.ComponentMiner.DamageActiveTool ( int damageCount)
virtual

在文件 ComponentMiner.cs698 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Dig()

bool Game.ComponentMiner.Dig ( TerrainRaycastResult raycastResult)

在文件 ComponentMiner.cs128 行定义.

函数调用图:

◆ FindBestInventoryToolForDigging()

virtual int Game.ComponentMiner.FindBestInventoryToolForDigging ( int digValue)
virtual

在文件 ComponentMiner.cs927 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Hit()

void Game.ComponentMiner.Hit ( ComponentBody componentBody,
Vector3 hitPoint,
Vector3 hitDirection )

在文件 ComponentMiner.cs453 行定义.

函数调用图:

◆ Interact() [1/2]

bool Game.ComponentMiner.Interact ( MovingBlocksRaycastResult raycastResult)

在文件 ComponentMiner.cs434 行定义.

函数调用图:

◆ Interact() [2/2]

bool Game.ComponentMiner.Interact ( TerrainRaycastResult raycastResult)

在文件 ComponentMiner.cs420 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsBlockPlacingAllowed()

bool Game.ComponentMiner.IsBlockPlacingAllowed ( ComponentBody componentBody)
static

在文件 ComponentMiner.cs830 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ IsLevelSufficientForTool()

virtual bool Game.ComponentMiner.IsLevelSufficientForTool ( int toolValue)
virtual

在文件 ComponentMiner.cs903 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Load()

override void Game.ComponentMiner.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentMiner.cs798 行定义.

◆ Place() [1/2]

bool Game.ComponentMiner.Place ( TerrainRaycastResult raycastResult)

在文件 ComponentMiner.cs251 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Place() [2/2]

bool Game.ComponentMiner.Place ( TerrainRaycastResult raycastResult,
int value )

在文件 ComponentMiner.cs261 行定义.

函数调用图:

◆ Poke()

virtual void Game.ComponentMiner.Poke ( bool forceRestart)
virtual

在文件 ComponentMiner.cs124 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Raycast()

virtual object Game.ComponentMiner.Raycast ( Ray3 ray,
RaycastMode mode,
bool raycastTerrain = true,
bool raycastBodies = true,
bool raycastMovingBlocks = true,
float? Reach = null )
virtual

发出射线检测,检测玩家点击到的目标

参数
ray
mode发出射线的意图
raycastTerrain该射线是否和地形交互,为false时则忽略地形
raycastBodies该射线是否和生物等实体交互,为false时则忽略实体
raycastMovingBlocks该射线是否和移动方块交互,为false时则忽略移动方块
Reach进行Raycast的距离
返回

在文件 ComponentMiner.cs596 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Raycast< T >()

T? Game.ComponentMiner.Raycast< T > ( Ray3 ray,
RaycastMode mode,
bool raycastTerrain = true,
bool raycastBodies = true,
bool raycastMovingBlocks = true,
float? reach = null )
类型限制
T :struct 

在文件 ComponentMiner.cs682 行定义.

函数调用图:

◆ RemoveActiveTool()

virtual void Game.ComponentMiner.RemoveActiveTool ( int removeCount)
virtual

在文件 ComponentMiner.cs692 行定义.

这是这个函数的调用关系图:

◆ Save()

override void Game.ComponentMiner.Save ( ValuesDictionary valuesDictionary,
EntityToIdMap entityToIdMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentMiner.cs826 行定义.

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentMiner.cs761 行定义.

函数调用图:

◆ Use()

bool Game.ComponentMiner.Use ( Ray3 ray)

在文件 ComponentMiner.cs393 行定义.

函数调用图:

类成员变量说明

◆ fName

string Game.ComponentMiner.fName = "ComponentMiner"
static

在文件 ComponentMiner.cs36 行定义.

◆ m_basicHitInterval

double Game.ComponentMiner.m_basicHitInterval

在文件 ComponentMiner.cs53 行定义.

◆ m_canJumpToPlace

bool Game.ComponentMiner.m_canJumpToPlace = false

在文件 ComponentMiner.cs120 行定义.

◆ m_canSqueezeBlock

bool Game.ComponentMiner.m_canSqueezeBlock = true

在文件 ComponentMiner.cs118 行定义.

◆ m_componentHealth

ComponentHealth Game.ComponentMiner.m_componentHealth
private

在文件 ComponentMiner.cs24 行定义.

◆ m_digProgress

float Game.ComponentMiner.m_digProgress

在文件 ComponentMiner.cs32 行定义.

◆ m_digSpeedBasedOnStrengthFactor

bool Game.ComponentMiner.m_digSpeedBasedOnStrengthFactor = true

挖掘速度是否受玩家力量属性加成

在文件 ComponentMiner.cs81 行定义.

◆ m_digStartTime

double Game.ComponentMiner.m_digStartTime

在文件 ComponentMiner.cs30 行定义.

◆ m_lastDigFrameIndex

int Game.ComponentMiner.m_lastDigFrameIndex

在文件 ComponentMiner.cs38 行定义.

◆ m_lastHitTime

double Game.ComponentMiner.m_lastHitTime

在文件 ComponentMiner.cs34 行定义.

◆ m_lastPokingPhase

float Game.ComponentMiner.m_lastPokingPhase

在文件 ComponentMiner.cs40 行定义.

◆ m_lastToolHintTime

double Game.ComponentMiner.m_lastToolHintTime
private

在文件 ComponentMiner.cs42 行定义.

◆ m_random

Random Game.ComponentMiner.m_random = new()

在文件 ComponentMiner.cs26 行定义.

◆ m_subsystemAudio

SubsystemAudio Game.ComponentMiner.m_subsystemAudio

在文件 ComponentMiner.cs18 行定义.

◆ m_subsystemBlockBehaviors

SubsystemBlockBehaviors Game.ComponentMiner.m_subsystemBlockBehaviors

在文件 ComponentMiner.cs22 行定义.

◆ m_subsystemBodies

SubsystemBodies Game.ComponentMiner.m_subsystemBodies

在文件 ComponentMiner.cs10 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.ComponentMiner.m_subsystemGameInfo

在文件 ComponentMiner.cs14 行定义.

◆ m_subsystemMovingBlocks

SubsystemMovingBlocks Game.ComponentMiner.m_subsystemMovingBlocks

在文件 ComponentMiner.cs12 行定义.

◆ m_subsystemSoundMaterials

SubsystemSoundMaterials Game.ComponentMiner.m_subsystemSoundMaterials

在文件 ComponentMiner.cs20 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentMiner.m_subsystemTerrain

在文件 ComponentMiner.cs8 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentMiner.m_subsystemTime

在文件 ComponentMiner.cs16 行定义.

◆ s_random

Random Game.ComponentMiner.s_random = new()
static

在文件 ComponentMiner.cs28 行定义.

属性说明

◆ ActiveBlockValue

int Game.ComponentMiner.ActiveBlockValue
get

在文件 ComponentMiner.cs63 行定义.

◆ AttackPower

float Game.ComponentMiner.AttackPower
getset

在文件 ComponentMiner.cs72 行定义.

◆ AutoInteractRate

float Game.ComponentMiner.AutoInteractRate
getset

在文件 ComponentMiner.cs74 行定义.

◆ ComponentCreature

ComponentCreature Game.ComponentMiner.ComponentCreature
getset

在文件 ComponentMiner.cs55 行定义.

◆ ComponentFactors

ComponentFactors Game.ComponentMiner.ComponentFactors
getset

在文件 ComponentMiner.cs59 行定义.

◆ ComponentPlayer

ComponentPlayer Game.ComponentMiner.ComponentPlayer
getset

在文件 ComponentMiner.cs57 行定义.

◆ DigCellFace

CellFace? Game.ComponentMiner.DigCellFace
getset

在文件 ComponentMiner.cs98 行定义.

◆ DigProgress

float Game.ComponentMiner.DigProgress
get

在文件 ComponentMiner.cs109 行定义.

◆ DigSpeedFactor

float Game.ComponentMiner.DigSpeedFactor
get

在文件 ComponentMiner.cs83 行定义.

◆ DigTime

float Game.ComponentMiner.DigTime
get

在文件 ComponentMiner.cs100 行定义.

◆ HitInterval

virtual double Game.ComponentMiner.HitInterval
getset

伤害间隔(原版为0.66f)

在文件 ComponentMiner.cs47 行定义.

◆ Inventory

IInventory Game.ComponentMiner.Inventory
getset

在文件 ComponentMiner.cs61 行定义.

◆ PokingPhase

float Game.ComponentMiner.PokingPhase
getset

在文件 ComponentMiner.cs96 行定义.

◆ StrengthFactor

float Game.ComponentMiner.StrengthFactor
get

在文件 ComponentMiner.cs76 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentMiner.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentMiner.cs122 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Component/ComponentMiner.cs