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

Public 成员函数

RealTimeClockElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace) override float GetOutputVoltage (int face)
override bool Simulate ()
int GetClockValue ()
Public 成员函数 继承自 Game.RotateableElectricElement
 RotateableElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
override bool OnInteract (TerrainRaycastResult raycastResult, ComponentMiner componentMiner)
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 OnHitByProjectile (CellFace cellFace, WorldItem worldItem)
virtual void OnConnectionsChanged ()
int CalculateHighInputsCount ()

Public 属性

SubsystemTimeOfDay m_subsystemTimeOfDay
int m_lastClockValue = -1

静态 Public 属性

const int m_periodsPerDay = 4096

额外继承的成员函数

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

详细描述

在文件 RealTimeClockElectricElement.cs4 行定义.

成员函数说明

◆ GetClockValue()

int Game.RealTimeClockElectricElement.GetClockValue ( )

在文件 RealTimeClockElectricElement.cs49 行定义.

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

◆ GetOutputVoltage()

RealTimeClockElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace) override float Game.RealTimeClockElectricElement.GetOutputVoltage ( int face)
virtual

重载 Game.ElectricElement .

在文件 RealTimeClockElectricElement.cs14 行定义.

函数调用图:

◆ Simulate()

override bool Game.RealTimeClockElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

在文件 RealTimeClockElectricElement.cs36 行定义.

函数调用图:

类成员变量说明

◆ m_lastClockValue

int Game.RealTimeClockElectricElement.m_lastClockValue = -1

在文件 RealTimeClockElectricElement.cs7 行定义.

◆ m_periodsPerDay

const int Game.RealTimeClockElectricElement.m_periodsPerDay = 4096
static

在文件 RealTimeClockElectricElement.cs9 行定义.

◆ m_subsystemTimeOfDay

SubsystemTimeOfDay Game.RealTimeClockElectricElement.m_subsystemTimeOfDay

在文件 RealTimeClockElectricElement.cs5 行定义.


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