Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 static void Main()
 {
     using (var game = new VigilServer())
         game.Run();
 }