Exemple #1
0
        protected override void OnLoad(ConfigNode configNode)
        {
            base.OnLoad(configNode);

            foreach (ConfigNode child in configNode.GetNodes("ORBIT_DETAIL"))
            {
                // Read all the orbit data
                OrbitData obData = new OrbitData();
                obData.type = child.GetValue("type");

                obData.contract = contract;
                obData.orbit    = new OrbitSnapshot(child.GetNode("ORBIT")).Load();
                obData.SetupRenderer();

                // Add to the global list
                orbits.Add(obData);
            }
        }
        protected override void OnLoad(ConfigNode configNode)
        {
            base.OnLoad(configNode);

            foreach (ConfigNode child in configNode.GetNodes("ORBIT_DETAIL"))
            {
                // Read all the orbit data
                OrbitData obData = new OrbitData();
                obData.type = child.GetValue("type");

                obData.contract = contract;
                obData.orbit = new OrbitSnapshot(child.GetNode("ORBIT")).Load();
                obData.SetupRenderer();

                // Add to the global list
                orbits.Add(obData);
            }
        }