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); }
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); }
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); }