Ejemplo n.º 1
0
        public static SpellcastBaseView Deserialize(System.IO.StreamReader input)
        {
            SpellcastBaseView _obj = new SpellcastBaseView();
            // Shape
            GenericShapeView _obj_Shape = GenericShapeView.Deserialize(input);

            _obj.Shape = (GenericShapeView)_obj_Shape;
            // Name
            string _obj_Name = input.ReadLine();

            _obj.Name = (string)_obj_Name;
            return(_obj);
        }
Ejemplo n.º 2
0
        public static GenericShapeView Deserialize(System.IO.StreamReader input)
        {
            GenericShapeView _obj = new GenericShapeView();
            // Position
            Vector2 _obj_Position = Vector2.Deserialize(input);

            _obj.Position = (Vector2)_obj_Position;
            // Radius
            float _obj_Radius = Single.Parse(input.ReadLine());

            _obj.Radius = (float)_obj_Radius;
            // Size
            Vector2 _obj_Size = Vector2.Deserialize(input);

            _obj.Size = (Vector2)_obj_Size;
            // ShapeType
            GenericShapeType _obj_ShapeType = (GenericShapeType)Int32.Parse(input.ReadLine());

            _obj.ShapeType = (GenericShapeType)_obj_ShapeType;
            return(_obj);
        }
Ejemplo n.º 3
0
 public SpellcastBaseView()
 {
     Shape = new GenericShapeView();
 }