public void Deserialize(JSON_TrickParam json) { if (json == null) { return; } this.mIname = json.iname; this.mName = json.name; this.mExpr = json.expr; this.mDamageType = (eTrickDamageType)json.dmg_type; this.mDamageVal = (OInt)json.dmg_val; this.mCalcType = (SkillParamCalcTypes)json.calc; this.mElem = (EElement)json.elem; this.mAttackDetail = (AttackDetailTypes)json.atk_det; this.mBuffId = json.buff; this.mCondId = json.cond; this.mKnockBackRate = (OInt)json.kb_rate; this.mKnockBackVal = (OInt)json.kb_val; this.mTarget = (ESkillTarget)json.target; this.mVisualType = (eTrickVisualType)json.visual; this.mActionCount = (OInt)json.count; this.mValidClock = (OInt)json.clock; this.mIsNoOverWrite = (OBool)(json.is_no_ow != 0); this.mMarkerName = json.marker; this.mEffectName = json.effect; this.mEffTarget = (ESkillTarget)json.eff_target; this.mEffShape = (ESelectType)json.eff_shape; this.mEffScope = (OInt)json.eff_scope; this.mEffHeight = (OInt)json.eff_height; }
public void Deserialize(string language, JSON_TrickParam json) { this.Deserialize(json); this.localizeFields(language); }