My Project v1
Project
载入中...
搜索中...
未找到
Game.MotionDetectorElectricElement
类 Game.MotionDetectorElectricElement 继承关系图:
Game.MotionDetectorElectricElement 的协作图:

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< ComponentBodym_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< CellFaceCellFaces [get, set]
 
List< ElectricConnectionConnections [get, set]
 

构造及析构函数说明

◆ MotionDetectorElectricElement()

Game.MotionDetectorElectricElement.MotionDetectorElectricElement ( SubsystemElectricity subsystemElectricity,
CellFace cellFace )
函数调用图:

成员函数说明

◆ CalculateMotionVoltage()

float Game.MotionDetectorElectricElement.CalculateMotionVoltage ( )
函数调用图:
这是这个函数的调用关系图:

◆ GetOutputVoltage()

override float Game.MotionDetectorElectricElement.GetOutputVoltage ( int face)
virtual

◆ Simulate()

override bool Game.MotionDetectorElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

函数调用图:

◆ TestPoint()

float Game.MotionDetectorElectricElement.TestPoint ( Vector3 p)
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_bodies

DynamicArray<ComponentBody> Game.MotionDetectorElectricElement.m_bodies = []

◆ m_center

Vector3 Game.MotionDetectorElectricElement.m_center

◆ m_corner1

Vector2 Game.MotionDetectorElectricElement.m_corner1

◆ m_corner2

Vector2 Game.MotionDetectorElectricElement.m_corner2

◆ m_direction

Vector3 Game.MotionDetectorElectricElement.m_direction

◆ m_pollingPeriod

const float Game.MotionDetectorElectricElement.m_pollingPeriod = 0.25f
static

◆ m_range

const float Game.MotionDetectorElectricElement.m_range = 8f
static

◆ m_speedThreshold

const float Game.MotionDetectorElectricElement.m_speedThreshold = 0.25f
static

◆ m_subsystemBodies

SubsystemBodies Game.MotionDetectorElectricElement.m_subsystemBodies

◆ m_subsystemMovingBlocks

SubsystemMovingBlocks Game.MotionDetectorElectricElement.m_subsystemMovingBlocks

◆ m_subsystemPickables

SubsystemPickables Game.MotionDetectorElectricElement.m_subsystemPickables

◆ m_subsystemProjectiles

SubsystemProjectiles Game.MotionDetectorElectricElement.m_subsystemProjectiles

◆ m_voltage

float Game.MotionDetectorElectricElement.m_voltage

该类的文档由以下文件生成: