| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- using Luban;
- using SimpleJSON;
- namespace cfg
- {
- public sealed partial class BuffCoefficientModel : Luban.BeanBase
- {
- public BuffCoefficientModel(JSONNode _buf)
- {
- { var _j = _buf["DamageCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient1 = _j; } } else { DamageCoefficient1 = null; } }
- { var _j = _buf["DamageCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient2 = _j; } } else { DamageCoefficient2 = null; } }
- { var _j = _buf["DamageCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient3 = _j; } } else { DamageCoefficient3 = null; } }
- { var _j = _buf["TreatmentCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient1 = _j; } } else { TreatmentCoefficient1 = null; } }
- { var _j = _buf["TreatmentCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient2 = _j; } } else { TreatmentCoefficient2 = null; } }
- { var _j = _buf["TreatmentCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient3 = _j; } } else { TreatmentCoefficient3 = null; } }
- { var _j = _buf["BuffCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient1 = _j; } } else { BuffCoefficient1 = null; } }
- { var _j = _buf["BuffCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient2 = _j; } } else { BuffCoefficient2 = null; } }
- { var _j = _buf["BuffCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient3 = _j; } } else { BuffCoefficient3 = null; } }
- }
- public static BuffCoefficientModel DeserializeBuffCoefficientModel(JSONNode _buf)
- {
- return new BuffCoefficientModel(_buf);
- }
- public readonly double? DamageCoefficient1;
- public readonly double? DamageCoefficient2;
- public readonly double? DamageCoefficient3;
- public readonly double? TreatmentCoefficient1;
- public readonly double? TreatmentCoefficient2;
- public readonly double? TreatmentCoefficient3;
- public readonly double? BuffCoefficient1;
- public readonly double? BuffCoefficient2;
- public readonly double? BuffCoefficient3;
-
- public const int __ID__ = 1017159047;
- public override int GetTypeId() => __ID__;
- public void ResolveRef(Tables tables)
- {
- }
- public override string ToString()
- {
- return "{ "
- + "DamageCoefficient1:" + DamageCoefficient1 + ","
- + "DamageCoefficient2:" + DamageCoefficient2 + ","
- + "DamageCoefficient3:" + DamageCoefficient3 + ","
- + "TreatmentCoefficient1:" + TreatmentCoefficient1 + ","
- + "TreatmentCoefficient2:" + TreatmentCoefficient2 + ","
- + "TreatmentCoefficient3:" + TreatmentCoefficient3 + ","
- + "BuffCoefficient1:" + BuffCoefficient1 + ","
- + "BuffCoefficient2:" + BuffCoefficient2 + ","
- + "BuffCoefficient3:" + BuffCoefficient3 + ","
- + "}";
- }
- }
- }
|