public void Load(VigilServer game) { foreach (ShipType type in Enum.GetValues(typeof(ShipType)).Cast <ShipType>()) { string textureName = type.ToString(); Texture2D texture; try { texture = game.Content.Load <Texture2D>(textureName); } catch { continue; } _ShipTextures.Add(new ShipTexture(type, texture)); } }
static void Main() { using (var game = new VigilServer()) game.Run(); }