Exemplo n.º 1
0
        // TODO: Add orbital parameters - radius, eccentricity, phase, inclination

        /// <summary>
        /// Initializes a new instance of the <see cref="SpaceItem"/> class.
        /// </summary>
        public SpaceItem(SpaceItem parent, SolarSystem solarSystem)
        {
            this.parent      = parent;
            this.solarSystem = solarSystem;

            this.satellites = new Dictionary <string, SpaceItem>();
            this.minerals   = new Dictionary <string, SurveyInfo>();

            // TODO: Port the item templates.
            //foreach (KeyValuePair<string, StoreItem> min in GameEngine.Instance.ItemTemplates)
            //{
            //  if (min.Value.Type == ItemType.Mineral)
            //  {
            //    minerals.Add(min.Key, new SurveyInfo());
            //  }
            //}
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SurveyInfo"/> class.
 /// </summary>
 public SurveyInfo(SpaceItem parent)
 {
     this.parent = parent;
 }