Ejemplo n.º 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 PassiveEquipmentUpgradeModelView Deserialize(System.IO.StreamReader input)
        {
            PassiveEquipmentUpgradeModelView _obj = new PassiveEquipmentUpgradeModelView();
            // PassiveAlterations
            List <StateAlterationModelView> _obj_PassiveAlterations = new List <StateAlterationModelView>();
            int _obj_PassiveAlterations_count = Int32.Parse(input.ReadLine());

            for (int _obj_PassiveAlterations_i = 0; _obj_PassiveAlterations_i < _obj_PassiveAlterations_count; _obj_PassiveAlterations_i++)
            {
                StateAlterationModelView _obj_PassiveAlterations_e = StateAlterationModelView.Deserialize(input);
                _obj_PassiveAlterations.Add((StateAlterationModelView)_obj_PassiveAlterations_e);
            }
            _obj.PassiveAlterations = (List <StateAlterationModelView>)_obj_PassiveAlterations;
            // Cost
            float _obj_Cost = Single.Parse(input.ReadLine());

            _obj.Cost = (float)_obj_Cost;
            return(_obj);
        }
        public static WeaponEnchantModelView Deserialize(System.IO.StreamReader input)
        {
            WeaponEnchantModelView _obj = new WeaponEnchantModelView();
            // ID
            int _obj_ID = Int32.Parse(input.ReadLine());

            _obj.ID = (int)_obj_ID;
            // OnHitEffects
            List <StateAlterationModelView> _obj_OnHitEffects = new List <StateAlterationModelView>();
            int _obj_OnHitEffects_count = Int32.Parse(input.ReadLine());

            for (int _obj_OnHitEffects_i = 0; _obj_OnHitEffects_i < _obj_OnHitEffects_count; _obj_OnHitEffects_i++)
            {
                StateAlterationModelView _obj_OnHitEffects_e = StateAlterationModelView.Deserialize(input);
                _obj_OnHitEffects.Add((StateAlterationModelView)_obj_OnHitEffects_e);
            }
            _obj.OnHitEffects = (List <StateAlterationModelView>)_obj_OnHitEffects;
            // CastingEffects
            List <StateAlterationModelView> _obj_CastingEffects = new List <StateAlterationModelView>();
            int _obj_CastingEffects_count = Int32.Parse(input.ReadLine());

            for (int _obj_CastingEffects_i = 0; _obj_CastingEffects_i < _obj_CastingEffects_count; _obj_CastingEffects_i++)
            {
                StateAlterationModelView _obj_CastingEffects_e = StateAlterationModelView.Deserialize(input);
                _obj_CastingEffects.Add((StateAlterationModelView)_obj_CastingEffects_e);
            }
            _obj.CastingEffects = (List <StateAlterationModelView>)_obj_CastingEffects;
            // PassiveEffects
            List <StateAlterationModelView> _obj_PassiveEffects = new List <StateAlterationModelView>();
            int _obj_PassiveEffects_count = Int32.Parse(input.ReadLine());

            for (int _obj_PassiveEffects_i = 0; _obj_PassiveEffects_i < _obj_PassiveEffects_count; _obj_PassiveEffects_i++)
            {
                StateAlterationModelView _obj_PassiveEffects_e = StateAlterationModelView.Deserialize(input);
                _obj_PassiveEffects.Add((StateAlterationModelView)_obj_PassiveEffects_e);
            }
            _obj.PassiveEffects = (List <StateAlterationModelView>)_obj_PassiveEffects;
            return(_obj);
        }
        public static SpellLevelDescriptionView Deserialize(System.IO.StreamReader input)
        {
            SpellLevelDescriptionView _obj = new SpellLevelDescriptionView();
            // BaseCooldown
            float _obj_BaseCooldown = Single.Parse(input.ReadLine());

            _obj.BaseCooldown = (float)_obj_BaseCooldown;
            // CastingTime
            float _obj_CastingTime = Single.Parse(input.ReadLine());

            _obj.CastingTime = (float)_obj_CastingTime;
            // CastingTimeAlterations
            List <StateAlterationModelView> _obj_CastingTimeAlterations = new List <StateAlterationModelView>();
            int _obj_CastingTimeAlterations_count = Int32.Parse(input.ReadLine());

            for (int _obj_CastingTimeAlterations_i = 0; _obj_CastingTimeAlterations_i < _obj_CastingTimeAlterations_count; _obj_CastingTimeAlterations_i++)
            {
                StateAlterationModelView _obj_CastingTimeAlterations_e = StateAlterationModelView.Deserialize(input);
                _obj_CastingTimeAlterations.Add((StateAlterationModelView)_obj_CastingTimeAlterations_e);
            }
            _obj.CastingTimeAlterations = (List <StateAlterationModelView>)_obj_CastingTimeAlterations;
            // TargetType
            SpellTargetInfoView _obj_TargetType = SpellTargetInfoView.Deserialize(input);

            _obj.TargetType = (SpellTargetInfoView)_obj_TargetType;
            // OnHitEffects
            List <StateAlterationModelView> _obj_OnHitEffects = new List <StateAlterationModelView>();
            int _obj_OnHitEffects_count = Int32.Parse(input.ReadLine());

            for (int _obj_OnHitEffects_i = 0; _obj_OnHitEffects_i < _obj_OnHitEffects_count; _obj_OnHitEffects_i++)
            {
                StateAlterationModelView _obj_OnHitEffects_e = StateAlterationModelView.Deserialize(input);
                _obj_OnHitEffects.Add((StateAlterationModelView)_obj_OnHitEffects_e);
            }
            _obj.OnHitEffects = (List <StateAlterationModelView>)_obj_OnHitEffects;
            return(_obj);
        }