Example #1
0
        public static StateAlterationView Deserialize(System.IO.StreamReader input)
        {
            StateAlterationView _obj = new StateAlterationView();
            // Source
            int _obj_Source = Int32.Parse(input.ReadLine());

            _obj.Source = (int)_obj_Source;
            // SourceType
            StateAlterationSource _obj_SourceType = (StateAlterationSource)Int32.Parse(input.ReadLine());

            _obj.SourceType = (StateAlterationSource)_obj_SourceType;
            // Model
            StateAlterationModelView _obj_Model = StateAlterationModelView.Deserialize(input);

            _obj.Model = (StateAlterationModelView)_obj_Model;
            // Parameters
            StateAlterationParametersView _obj_Parameters = StateAlterationParametersView.Deserialize(input);

            _obj.Parameters = (StateAlterationParametersView)_obj_Parameters;
            // RemainingTime
            float _obj_RemainingTime = Single.Parse(input.ReadLine());

            _obj.RemainingTime = (float)_obj_RemainingTime;
            return(_obj);
        }
        public static StateAlterationParametersView Deserialize(System.IO.StreamReader input)
        {
            StateAlterationParametersView _obj = new StateAlterationParametersView();
            // DashTargetDirection
            Vector2 _obj_DashTargetDirection = Vector2.Deserialize(input);

            _obj.DashTargetDirection = (Vector2)_obj_DashTargetDirection;
            // DashTargetEntity
            int _obj_DashTargetEntity = Int32.Parse(input.ReadLine());

            _obj.DashTargetEntity = (int)_obj_DashTargetEntity;
            // DashTargetPosition
            Vector2 _obj_DashTargetPosition = Vector2.Deserialize(input);

            _obj.DashTargetPosition = (Vector2)_obj_DashTargetPosition;
            return(_obj);
        }
Example #3
0
 public StateAlterationView()
 {
     Model      = new StateAlterationModelView();
     Parameters = new StateAlterationParametersView();
 }