Ejemplo n.º 1
0
        public virtual Solar CreateSolar(ArchSolar obj)
        {
            Solar solar = new Solar(this, ++lastSolarID, obj);

            solars[solar.id] = solar;

            return(solar);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public virtual Solar GetSolar(uint id)
        {
            Solar s = null;

            if (solars.TryGetValue(id, out s))
            {
                return(s);
            }

            return(null);
        }
Ejemplo n.º 4
0
 public SolarControlPanel(Solar solar)
 {
     this.solar = solar;
 }
Ejemplo n.º 5
0
 public SolarController(Solar solar)
 {
     this.solar = solar;
 }
Ejemplo n.º 6
0
 public SolarControllerHuman(Solar solar) : base(solar)
 {
 }