Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ButtonElectricElement
类 Game.ButtonElectricElement 继承关系图:
Game.ButtonElectricElement 的协作图:

Public 成员函数

 ButtonElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace, int value)
void Press ()
override float GetOutputVoltage (int face)
override bool Simulate ()
override bool OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner)
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 void OnCollide (CellFace cellFace, float velocity, ComponentBody componentBody)
virtual void OnConnectionsChanged ()
int CalculateHighInputsCount ()

Public 属性

float m_pressedVoltage
float m_voltage
bool m_wasPressed

额外继承的成员函数

静态 Public 成员函数 继承自 Game.ElectricElement
static bool IsSignalHigh (float voltage)
属性 继承自 Game.ElectricElement
SubsystemElectricity SubsystemElectricity [get, set]
ReadOnlyList< CellFaceCellFaces [get, set]
List< ElectricConnectionConnections [get, set]

详细描述

在文件 ButtonElectricElement.cs4 行定义.

构造及析构函数说明

◆ ButtonElectricElement()

Game.ButtonElectricElement.ButtonElectricElement ( SubsystemElectricity subsystemElectricity,
CellFace cellFace,
int value )

在文件 ButtonElectricElement.cs11 行定义.

函数调用图:

成员函数说明

◆ GetOutputVoltage()

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

重载 Game.ElectricElement .

在文件 ButtonElectricElement.cs26 行定义.

◆ OnHitByProjectile()

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

重载 Game.ElectricElement .

在文件 ButtonElectricElement.cs46 行定义.

函数调用图:

◆ OnInteract()

override bool Game.ButtonElectricElement.OnInteract ( TerrainRaycastResult raycastResult,
ComponentMiner componentMiner )
virtual

重载 Game.ElectricElement .

在文件 ButtonElectricElement.cs41 行定义.

函数调用图:

◆ Press()

void Game.ButtonElectricElement.Press ( )

在文件 ButtonElectricElement.cs16 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Simulate()

override bool Game.ButtonElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

在文件 ButtonElectricElement.cs28 行定义.

函数调用图:

类成员变量说明

◆ m_pressedVoltage

float Game.ButtonElectricElement.m_pressedVoltage

在文件 ButtonElectricElement.cs5 行定义.

◆ m_voltage

float Game.ButtonElectricElement.m_voltage

在文件 ButtonElectricElement.cs7 行定义.

◆ m_wasPressed

bool Game.ButtonElectricElement.m_wasPressed

在文件 ButtonElectricElement.cs9 行定义.


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