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); }
public static StateAlterationModelView Deserialize(System.IO.StreamReader input) { StateAlterationModelView _obj = new StateAlterationModelView(); // Type StateAlterationType _obj_Type = (StateAlterationType)Int32.Parse(input.ReadLine()); _obj.Type = (StateAlterationType)_obj_Type; // BaseDuration float _obj_BaseDuration = Single.Parse(input.ReadLine()); _obj.BaseDuration = (float)_obj_BaseDuration; // DashGoThroughWall bool _obj_DashGoThroughWall = Int32.Parse(input.ReadLine()) == 0 ? false : true; _obj.DashGoThroughWall = (bool)_obj_DashGoThroughWall; // DashDirType DashDirectionType _obj_DashDirType = (DashDirectionType)Int32.Parse(input.ReadLine()); _obj.DashDirType = (DashDirectionType)_obj_DashDirType; // FlatValue float _obj_FlatValue = Single.Parse(input.ReadLine()); _obj.FlatValue = (float)_obj_FlatValue; // SourcePercentADValue float _obj_SourcePercentADValue = Single.Parse(input.ReadLine()); _obj.SourcePercentADValue = (float)_obj_SourcePercentADValue; // SourcePercentHPValue float _obj_SourcePercentHPValue = Single.Parse(input.ReadLine()); _obj.SourcePercentHPValue = (float)_obj_SourcePercentHPValue; // SourcePercentMaxHPValue float _obj_SourcePercentMaxHPValue = Single.Parse(input.ReadLine()); _obj.SourcePercentMaxHPValue = (float)_obj_SourcePercentMaxHPValue; // SourcePercentArmorValue float _obj_SourcePercentArmorValue = Single.Parse(input.ReadLine()); _obj.SourcePercentArmorValue = (float)_obj_SourcePercentArmorValue; // SourcePercentAPValue float _obj_SourcePercentAPValue = Single.Parse(input.ReadLine()); _obj.SourcePercentAPValue = (float)_obj_SourcePercentAPValue; // SourcePercentRMValue float _obj_SourcePercentRMValue = Single.Parse(input.ReadLine()); _obj.SourcePercentRMValue = (float)_obj_SourcePercentRMValue; // DestPercentADValue float _obj_DestPercentADValue = Single.Parse(input.ReadLine()); _obj.DestPercentADValue = (float)_obj_DestPercentADValue; // DestPercentHPValue float _obj_DestPercentHPValue = Single.Parse(input.ReadLine()); _obj.DestPercentHPValue = (float)_obj_DestPercentHPValue; // DestPercentMaxHPValue float _obj_DestPercentMaxHPValue = Single.Parse(input.ReadLine()); _obj.DestPercentMaxHPValue = (float)_obj_DestPercentMaxHPValue; // DestPercentArmorValue float _obj_DestPercentArmorValue = Single.Parse(input.ReadLine()); _obj.DestPercentArmorValue = (float)_obj_DestPercentArmorValue; // DestPercentAPValue float _obj_DestPercentAPValue = Single.Parse(input.ReadLine()); _obj.DestPercentAPValue = (float)_obj_DestPercentAPValue; // DestPercentRMValue float _obj_DestPercentRMValue = Single.Parse(input.ReadLine()); _obj.DestPercentRMValue = (float)_obj_DestPercentRMValue; // StructureBonus float _obj_StructureBonus = Single.Parse(input.ReadLine()); _obj.StructureBonus = (float)_obj_StructureBonus; // MonsterBonus float _obj_MonsterBonus = Single.Parse(input.ReadLine()); _obj.MonsterBonus = (float)_obj_MonsterBonus; // VirusBonus float _obj_VirusBonus = Single.Parse(input.ReadLine()); _obj.VirusBonus = (float)_obj_VirusBonus; return(_obj); }
public StateAlterationView() { Model = new StateAlterationModelView(); Parameters = new StateAlterationParametersView(); }