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

Public 成员函数

 SevenSegmentDisplayElectricElement (SubsystemElectricity subsystemElectricity, CellFace cellFace)
 
override void OnAdded ()
 
override void OnRemoved ()
 
override bool Simulate ()
 
- 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 float GetOutputVoltage (int face)
 
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 属性

SubsystemGlow m_subsystemGlow
 
float m_voltage = 1f / 0f
 
GlowPoint[] m_glowPoints = new GlowPoint[7]
 
Color m_color
 
Vector2[] m_centers
 
Vector2[] m_sizes
 
int[] m_patterns
 

额外继承的成员函数

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

构造及析构函数说明

◆ SevenSegmentDisplayElectricElement()

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

成员函数说明

◆ OnAdded()

override void Game.SevenSegmentDisplayElectricElement.OnAdded ( )
virtual

重载 Game.ElectricElement .

函数调用图:

◆ OnRemoved()

override void Game.SevenSegmentDisplayElectricElement.OnRemoved ( )
virtual

重载 Game.ElectricElement .

函数调用图:

◆ Simulate()

override bool Game.SevenSegmentDisplayElectricElement.Simulate ( )
virtual

重载 Game.ElectricElement .

函数调用图:

类成员变量说明

◆ m_centers

Vector2 [] Game.SevenSegmentDisplayElectricElement.m_centers
初始值:
= new Vector2[7]
{
new(0f, 6f),
new(-4f, 3f),
new(-4f, -3f),
new(0f, -6f),
new(4f, -3f),
new(4f, 3f),
new(0f, 0f)
}

◆ m_color

Color Game.SevenSegmentDisplayElectricElement.m_color

◆ m_glowPoints

GlowPoint [] Game.SevenSegmentDisplayElectricElement.m_glowPoints = new GlowPoint[7]

◆ m_patterns

int [] Game.SevenSegmentDisplayElectricElement.m_patterns
初始值:
= new int[16]
{
63,
6,
91,
79,
102,
109,
125,
7,
127,
111,
119,
124,
57,
94,
121,
113
}

◆ m_sizes

Vector2 [] Game.SevenSegmentDisplayElectricElement.m_sizes
初始值:
= new Vector2[7]
{
new(3.2f, 1f),
new(1f, 2.3f),
new(1f, 2.3f),
new(3.2f, 1f),
new(1f, 2.3f),
new(1f, 2.3f),
new(3.2f, 1f)
}

◆ m_subsystemGlow

SubsystemGlow Game.SevenSegmentDisplayElectricElement.m_subsystemGlow

◆ m_voltage

float Game.SevenSegmentDisplayElectricElement.m_voltage = 1f / 0f

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