28 m_intensity = Math.Clamp((
int)MathF.Round((num2 - 0.5f) * 30f), 0, 15);
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
LightBulbElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace, int value)
int m_lastChangeCircuitStep
static int SetLightIntensity(int data, int intensity)
static int GetLightIntensity(int data)
MountedElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace)
SubsystemTerrain SubsystemTerrain
void QueueElectricElementForSimulation(ElectricElement electricElement, int circuitStep)
virtual void ChangeCell(int x, int y, int z, int value, bool updateModificationCounter=true, MovingBlock movingBlock=null)
static int ReplaceData(int value, int data)
virtual int GetCellValue(int x, int y, int z)
static int ExtractData(int value)