Beispiel #1
0
        public static T Decode <T>(BinaryInput input) where T : IEncodable, new()
        {
            IEncodable result = new T();

            result.Decode(input);

            return((T)result);
        }
Beispiel #2
0
        public static T Decode <T>(Stream stream, GraphicsDevice graphicsDevice) where T : IEncodable, new()
        {
            BinaryInput input = new BinaryInput(stream, graphicsDevice);

            IEncodable result = new T();

            result.Decode(input);

            return((T)result);
        }
Beispiel #3
0
 public IEncodable Decode(General.Encoding.BinaryInput stream)
 {
     return(this);
 }