public virtual Solar CreateSolar(ArchSolar obj) { Solar solar = new Solar(this, ++lastSolarID, obj); solars[solar.id] = solar; return(solar); }
public SolarComponent(Solar solar, ArchSolarComponent arch) { this.id = arch.id; this.solar = solar; this.properties = new Dictionary <Type, SolarComponentProperty>(); this.hardpoints = new Dictionary <ulong, SolarComponentHardpoint>(); CreateProperties(arch); // should be first before creating hardpoints CreateHardpoints(arch); }
public virtual Solar GetSolar(uint id) { Solar s = null; if (solars.TryGetValue(id, out s)) { return(s); } return(null); }
public SolarControlPanel(Solar solar) { this.solar = solar; }
public SolarController(Solar solar) { this.solar = solar; }
public SolarControllerHuman(Solar solar) : base(solar) { }