示例#1
0
        public static List <AllowedShipHulls> createAllowedShipHulls(Core.User player)
        {
            List <AllowedShipHulls> allowedShipHulls = new List <AllowedShipHulls>();

            foreach (var hull in Core.Core.Instance.ShipHulls.Where(e => e != null))
            {
                if (player.hasGameObjectEnabled(5, hull.id))
                {
                    allowedShipHulls.Add(new AllowedShipHulls(hull.id));
                }
            }

            return(allowedShipHulls);
        }
示例#2
0
        public static List <AllowedModule> createAllowedModules(Core.User player)
        {
            List <AllowedModule> allowedModules = new List <AllowedModule>();

            foreach (var module in Core.Core.Instance.Modules.Where(e => e != null))
            {
                if (player.hasGameObjectEnabled(4, module.id))
                {
                    allowedModules.Add(new AllowedModule(module.id));
                }
            }

            return(allowedModules);
        }
示例#3
0
        public static List <AllowedBuilding> createAllowedBuildings(Core.User player)
        {
            List <AllowedBuilding> allowedBuildings = new List <AllowedBuilding>();

            foreach (var building in Core.Core.Instance.Buildings.Where(e => e != null))
            {
                if (player.hasGameObjectEnabled(3, building.id))
                {
                    allowedBuildings.Add(new AllowedBuilding(building.id));
                }
            }

            return(allowedBuildings);
        }