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

Public 成员函数

 PressurePlateElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
 
void Press (float pressure)
 
override float GetOutputVoltage (int face)
 
override bool Simulate ()
 
override void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
 
override void OnHitByProjectile (CellFace cellFace, WorldItem worldItem)
 
- 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 OnConnectionsChanged ()
 
int CalculateHighInputsCount ()
 

静态 Public 成员函数

static float PressureToVoltage (float pressure)
 
- 静态 Public 成员函数 继承自 Game.ElectricElement
static bool IsSignalHigh (float voltage)
 

Public 属性

float m_voltage
 
int m_lastPressFrameIndex
 
float m_pressure
 

额外继承的成员函数

- 属性 继承自 Game.ElectricElement
SubsystemElectricity SubsystemElectricity [get, set]
 
ReadOnlyList< CellFaceCellFaces [get, set]
 
List< ElectricConnectionConnections [get, set]
 

构造及析构函数说明

◆ PressurePlateElectricElement()

Game.PressurePlateElectricElement.PressurePlateElectricElement ( SubsystemElectricity subsystemElectricity,
CellFace cellFace )

成员函数说明

◆ GetOutputVoltage()

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

◆ OnCollide()

override void Game.PressurePlateElectricElement.OnCollide ( CellFace cellFace,
float velocity,
ComponentBody componentBody )
virtual

重载 Game.ElectricElement .

函数调用图:

◆ OnHitByProjectile()

override void Game.PressurePlateElectricElement.OnHitByProjectile ( CellFace cellFace,
WorldItem worldItem )
virtual

重载 Game.ElectricElement .

函数调用图:

◆ Press()

void Game.PressurePlateElectricElement.Press ( float pressure)
函数调用图:
这是这个函数的调用关系图:

◆ PressureToVoltage()

static float Game.PressurePlateElectricElement.PressureToVoltage ( float pressure)
static
这是这个函数的调用关系图:

◆ Simulate()

override bool Game.PressurePlateElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

函数调用图:

类成员变量说明

◆ m_lastPressFrameIndex

int Game.PressurePlateElectricElement.m_lastPressFrameIndex

◆ m_pressure

float Game.PressurePlateElectricElement.m_pressure

◆ m_voltage

float Game.PressurePlateElectricElement.m_voltage

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