14 if (blockData !=
null) {
38 if (connectorDirection.HasValue) {
48 flag3 = num4 > 0 && num4 < 8;
58 int address = num2 + (num3 << 4);
62 m_voltage = memoryBankData !=
null ? memoryBankData.
Read(address) / 15f : 0f;
66 if (memoryBankData ==
null) {
70 memoryBankData.
Write(address, (
byte)MathF.Round(num * 15f));
74 m_voltage = memoryBankData !=
null ? memoryBankData.
Read(address) / 15f : 0f;
82 if (memoryBankData !=
null) {
83 memoryBankData.LastOutput = (byte)MathF.Round(
m_voltage * 15f);
int NeighborConnectorFace
ElectricElement NeighborElectricElement
ElectricConnectorType ConnectorType
ElectricConnectorType NeighborConnectorType
virtual float GetOutputVoltage(int face)
List< ElectricConnection > Connections
ReadOnlyList< CellFace > CellFaces
void Write(int address, byte data)
SubsystemMemoryBankBlockBehavior m_subsystemMemoryBankBlockBehavior
MemoryBankElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace)
override float GetOutputVoltage(int face)
RotateableElectricElement(SubsystemElectricity subsystemElectricity, CellFace cellFace)
static ? ElectricConnectorDirection GetConnectorDirection(int mountingFace, int rotation, int connectorFace)
virtual Subsystem FindSubsystem(Type type, string name, bool throwOnError)
ElectricConnectorDirection