Esempio n. 1
0
        public override void OnLoad(ConfigNode basenode)
        {
            base.OnLoad(basenode);
            instance = this;
            print("Loading pipeline network manager!");
            var shiplist = basenode.GetNodes("ship");
            foreach(var shipNode in shiplist)
            {
                var loadship = pipelineShip.loadConfig(shipNode);
                if(loadship != null)
                    ships[loadship.id] = loadship;

            }
            updateNetworks();
           
        }
Esempio n. 2
0
 public PipeLineNetworkManager()
 {
     instance = this;
     ships = new Dictionary<string, pipelineShip>();
     Networks = new Dictionary<string, List<pipelineShip>>();
 }