|
My Project v1
Project
|


Public 成员函数 | |
| MotionDetectorElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace) | |
| override float | GetOutputVoltage (int face) |
| override bool | Simulate () |
| float | CalculateMotionVoltage () |
| float | TestPoint (Vector3 p) |
Public 成员函数 继承自 Game.MountedElectricElement | |
| MountedElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace) | |
| override void | OnNeighborBlockChanged (CellFace cellFace, int neighborX, int neighborY, int neighborZ) |
Public 成员函数 继承自 Game.ElectricElement | |
| ElectricElement (SubsystemElectricity subsystemElectricity, IEnumerable< CellFace > cellFaces) | |
| ElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace) | |
| virtual void | OnAdded () |
| virtual void | OnRemoved () |
| virtual bool | OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner) |
| virtual void | OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody) |
| virtual void | OnHitByProjectile (CellFace cellFace, WorldItem worldItem) |
| virtual void | OnConnectionsChanged () |
| int | CalculateHighInputsCount () |
Public 属性 | |
| SubsystemBodies | m_subsystemBodies |
| SubsystemMovingBlocks | m_subsystemMovingBlocks |
| SubsystemProjectiles | m_subsystemProjectiles |
| SubsystemPickables | m_subsystemPickables |
| float | m_voltage |
| Vector3 | m_center |
| Vector3 | m_direction |
| Vector2 | m_corner1 |
| Vector2 | m_corner2 |
| DynamicArray< ComponentBody > | m_bodies = [] |
静态 Public 属性 | |
| const float | m_range = 8f |
| const float | m_speedThreshold = 0.25f |
| const float | m_pollingPeriod = 0.25f |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 Game.ElectricElement | |
| static bool | IsSignalHigh (float voltage) |
属性 继承自 Game.ElectricElement | |
| SubsystemElectricity | SubsystemElectricity [get, set] |
| ReadOnlyList< CellFace > | CellFaces [get, set] |
| List< ElectricConnection > | Connections [get, set] |
| Game.MotionDetectorElectricElement.MotionDetectorElectricElement | ( | SubsystemElectricity | subsystemElectricity, |
| CellFace | cellFace ) |

| float Game.MotionDetectorElectricElement.CalculateMotionVoltage | ( | ) |


|
virtual |
重载 Game.ElectricElement .
|
virtual |
| float Game.MotionDetectorElectricElement.TestPoint | ( | Vector3 | p | ) |


| DynamicArray<ComponentBody> Game.MotionDetectorElectricElement.m_bodies = [] |
| Vector3 Game.MotionDetectorElectricElement.m_center |
| Vector2 Game.MotionDetectorElectricElement.m_corner1 |
| Vector2 Game.MotionDetectorElectricElement.m_corner2 |
| Vector3 Game.MotionDetectorElectricElement.m_direction |
|
static |
|
static |
|
static |
| SubsystemBodies Game.MotionDetectorElectricElement.m_subsystemBodies |
| SubsystemMovingBlocks Game.MotionDetectorElectricElement.m_subsystemMovingBlocks |
| SubsystemPickables Game.MotionDetectorElectricElement.m_subsystemPickables |
| SubsystemProjectiles Game.MotionDetectorElectricElement.m_subsystemProjectiles |
| float Game.MotionDetectorElectricElement.m_voltage |