34 public override void OnPoll(
int value,
int x,
int y,
int z,
int pollPass) {
52 if (componentHealth !=
null) {
70 base.Load(valuesDictionary);
static int GetBlockIndex(string BlockName, bool throwIfNotFound=false)
通过方块名称来获取方块的Index
virtual void OnSpiked(SubsystemBlockBehavior spikeBlockBehavior, float damage, CellFace cellFace, float velocity, ComponentBody componentBody, string causeOfDeath)
virtual float SpikeResilience
override void OnNeighborBlockChanged(int x, int y, int z, int neighborX, int neighborY, int neighborZ)
override void OnPoll(int value, int x, int y, int z, int pollPass)
override int[] HandledBlocks
SubsystemTime m_subsystemTime
SubsystemCellChangeQueue m_subsystemCellChangeQueue
override void Load(ValuesDictionary valuesDictionary)
override void OnCollide(CellFace cellFace, float velocity, ComponentBody componentBody)
SubsystemGameInfo m_subsystemGameInfo
virtual void DestroyCell(int toolLevel, int x, int y, int z, int newValue, bool noDrop, bool noParticleSystem, MovingBlock movingBlock=null)
static int ExtractContents(int value)
virtual int GetCellValue(int x, int y, int z)
virtual int GetCellContents(int x, int y, int z)
static int ExtractLight(int value)
static int MakeBlockValue(int contents)
Component FindComponent(Type type, string name, bool throwOnError)
ValuesDictionary ValuesDictionary