コード例 #1
0
        public SolarSystem(Entity from)
            : base(from)
        {
            if (typeID != 5) // SolarSystems typeID
            {
                throw new Exception("Trying to load a non-solar system item like one");
            }

            solarSystemInfo = ItemDB.GetSolarSystemInfo(itemID);
        }
コード例 #2
0
ファイル: SystemManager.cs プロジェクト: Tratos/EVESharp
        public static bool LoadUnloadedSolarSystems()
        {
            // Get all the solarSystems not loaded and load them
            List <int> solarSystems = GeneralDB.GetUnloadedSolarSystems();

            // Load the not-loaded solar systems
            foreach (int solarSystemID in solarSystems)
            {
                // We can assume we dont have it in the list, as we've queryed for the non-loaded solarSystems
                SolarSystem solarSystem = new SolarSystem(ItemDB.LoadItem(solarSystemID), ItemDB.GetSolarSystemInfo(solarSystemID)); // Create the solarSystem class

                if (LoadSolarSystem(solarSystem) == false)
                {
                    return(false);
                }
            }
            return(true);
        }