21 for (
int i = 0; i < 4; i++) {
22 int num = i % 2 == 0 ? 1 : -1;
23 int num2 = i / 2 == 0 ? 1 : -1;
24 Vector3 v =
new(cellFace.X + 0.5f, cellFace.Y + 0.5f, cellFace.Z + 0.5f);
42 for (
int i = 0; i < 4; i++) {
57 int num = (int)MathF.Round(
m_voltage * 15f);
58 for (
int i = 0; i < 4; i++) {
static int Max(int x1, int x2)
int NeighborConnectorFace
ElectricElement NeighborElectricElement
ElectricConnectorType ConnectorType
ElectricConnectorType NeighborConnectorType
virtual float GetOutputVoltage(int face)
List< ElectricConnection > Connections
ReadOnlyList< CellFace > CellFaces
static int GetColor(int data)
static int GetMountingFace(int data)
FourLedElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace) override void OnAdded()
SubsystemGlow m_subsystemGlow
override void OnRemoved()
static readonly Color[] LedColors
MountedElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace)
SubsystemTerrain SubsystemTerrain
virtual int GetCellValue(int x, int y, int z)
static int ExtractData(int value)
static Vector3 Cross(Vector3 v1, Vector3 v2)
static readonly Vector3 UnitX
static Vector3 FaceToVector3(int face)