X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FMap.cs;fp=CarFire%2FCarFire%2FCarFire%2FMap.cs;h=0e66b139221bf27d1206517e32461d3993fa879c;hp=f4d7ea4fa61a2637b90abff61392efcf52d58ce1;hb=3ca5852a7df47d4129743ed449816c7c7347b699;hpb=beb1ce501897ce4c00f7e97c6923ba0af2451732 diff --git a/CarFire/CarFire/CarFire/Map.cs b/CarFire/CarFire/CarFire/Map.cs index f4d7ea4..0e66b13 100644 --- a/CarFire/CarFire/CarFire/Map.cs +++ b/CarFire/CarFire/CarFire/Map.cs @@ -22,29 +22,6 @@ namespace CarFire // DEBUG: Tilesets not implemented at all. public static Texture2D DefaultTile; - #region Public Exceptions - - /// - /// This exception is thrown during the loading of a map if any - /// part of the map file is inconsistent with the expected format - /// and order. - /// - public class RuntimeException : System.ApplicationException - { - public RuntimeException() { } - - public RuntimeException(string message) : - base(message) { } - - public RuntimeException(string message, System.Exception inner) : - base(message, inner) { } - - protected RuntimeException(SerializationInfo info, StreamingContext context) : - base(info, context) { } - } - - #endregion - #region Public Constants @@ -452,13 +429,13 @@ namespace CarFire entity.LoadContent(game.ContentManager); list.Add(entity); } - else throw new RuntimeException(); + else throw new Exception(); } #pragma warning disable 0168 catch (System.Exception ex) #pragma warning restore 0168 { - throw new RuntimeException("Entity of type " + typename + " not loaded because an entity class can't be found."); + throw new Exception("Entity of type " + typename + " not loaded because an entity class can't be found."); } } else @@ -492,7 +469,7 @@ namespace CarFire ((IEntity)entity).LoadContent(game.ContentManager); list.Add(entity); } - else throw new RuntimeException("Entity of type " + typename + " not loaded because an entity class can't be found."); + else throw new Exception("Entity of type " + typename + " not loaded because an entity class can't be found."); } }