Ejemplo n.º 1
0
        public static void RegisterBroker([NotNull] Building_BackupPowerAttachment broker, bool update = false)
        {
            var comp = For(broker.Map);

            if (update)
            {
                comp.brokers.Remove(broker);
            }
            comp.brokers.AddSafe(broker);
        }
Ejemplo n.º 2
0
 public void CopySettingsTo(Building_BackupPowerAttachment other)
 {
     other.batteryRange = batteryRange;
 }
Ejemplo n.º 3
0
 public static void DeregisterBroker([NotNull] Building_BackupPowerAttachment broker)
 {
     For(broker.Map).brokers.RemoveSafe(broker);
 }
Ejemplo n.º 4
0
 public Command_BatteryRange(Building_BackupPowerAttachment parent)
 {
     this.parent = parent;
 }