21 public virtual void Update(
float dt) {
52 if (cellFace.
Face != mountingFace) {
56 if (componentCreature !=
null) {
73 base.Load(valuesDictionary);
80 if (componentCreature !=
null) {
static int GetBlockIndex(string BlockName, bool throwIfNotFound=false)
通过方块名称来获取方块的Index
ComponentHealth ComponentHealth
virtual void OnSpiked(SubsystemBlockBehavior spikeBlockBehavior, float damage, CellFace cellFace, float velocity, ComponentBody componentBody, string causeOfDeath)
virtual float SpikeResilience
static int GetMountingFace(int data)
static int SetSpikesState(int data, bool spikesState)
static bool GetSpikesState(int data)
SubsystemTerrain SubsystemTerrain
override void OnCollide(CellFace cellFace, float velocity, ComponentBody componentBody)
virtual void Update(float dt)
bool RetractExtendSpikes(int x, int y, int z, bool extend)
override int[] HandledBlocks
override void Load(ValuesDictionary valuesDictionary)
SubsystemTime m_subsystemTime
override void OnEntityRemoved(Entity entity)
Vector3? m_closestSoundToPlay
SubsystemAudio m_subsystemAudio
Dictionary< ComponentCreature, double > m_lastInjuryTimes
static int ExtractContents(int value)
static int ReplaceData(int value, int data)
static int ExtractData(int value)
Component FindComponent(Type type, string name, bool throwOnError)
ValuesDictionary ValuesDictionary