Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ElectricElementabstract
类 Game.ElectricElement 继承关系图:

Public 成员函数

 ElectricElement (SubsystemElectricity subsystemElectricity, IEnumerable< CellFace > cellFaces)
 ElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
virtual float GetOutputVoltage (int face)
virtual bool Simulate ()
virtual void OnAdded ()
virtual void OnRemoved ()
virtual void OnNeighborBlockChanged (CellFace cellFace, int neighborX, int neighborY, int neighborZ)
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 成员函数

static bool IsSignalHigh (float voltage)

属性

SubsystemElectricity SubsystemElectricity [get, set]
ReadOnlyList< CellFaceCellFaces [get, set]
List< ElectricConnectionConnections [get, set]

详细描述

在文件 ElectricElement.cs4 行定义.

构造及析构函数说明

◆ ElectricElement() [1/2]

Game.ElectricElement.ElectricElement ( SubsystemElectricity subsystemElectricity,
IEnumerable< CellFace > cellFaces )

在文件 ElectricElement.cs11 行定义.

◆ ElectricElement() [2/2]

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

在文件 ElectricElement.cs17 行定义.

成员函数说明

◆ CalculateHighInputsCount()

int Game.ElectricElement.CalculateHighInputsCount ( )

在文件 ElectricElement.cs42 行定义.

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

◆ GetOutputVoltage()

◆ IsSignalHigh()

bool Game.ElectricElement.IsSignalHigh ( float voltage)
static

在文件 ElectricElement.cs40 行定义.

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

◆ OnAdded()

◆ OnCollide()

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

Game.PressurePlateElectricElement 重载.

在文件 ElectricElement.cs34 行定义.

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

◆ OnConnectionsChanged()

virtual void Game.ElectricElement.OnConnectionsChanged ( )
virtual

在文件 ElectricElement.cs38 行定义.

◆ OnHitByProjectile()

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

◆ OnInteract()

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

◆ OnNeighborBlockChanged()

virtual void Game.ElectricElement.OnNeighborBlockChanged ( CellFace cellFace,
int neighborX,
int neighborY,
int neighborZ )
virtual

◆ OnRemoved()

virtual void Game.ElectricElement.OnRemoved ( )
virtual

◆ Simulate()

virtual bool Game.ElectricElement.Simulate ( )
virtual

属性说明

◆ CellFaces

ReadOnlyList<CellFace> Game.ElectricElement.CellFaces
getset

在文件 ElectricElement.cs7 行定义.

◆ Connections

List<ElectricConnection> Game.ElectricElement.Connections
getset

在文件 ElectricElement.cs9 行定义.

◆ SubsystemElectricity

SubsystemElectricity Game.ElectricElement.SubsystemElectricity
getset

在文件 ElectricElement.cs5 行定义.


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