BuffCoefficientModel.cs 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Changes to this file may cause incorrect behavior and will be lost if
  5. // the code is regenerated.
  6. // </auto-generated>
  7. //------------------------------------------------------------------------------
  8. using Luban;
  9. using SimpleJSON;
  10. namespace cfg
  11. {
  12. public sealed partial class BuffCoefficientModel : Luban.BeanBase
  13. {
  14. public BuffCoefficientModel(JSONNode _buf)
  15. {
  16. { var _j = _buf["DamageCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient1 = _j; } } else { DamageCoefficient1 = null; } }
  17. { var _j = _buf["DamageCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient2 = _j; } } else { DamageCoefficient2 = null; } }
  18. { var _j = _buf["DamageCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } DamageCoefficient3 = _j; } } else { DamageCoefficient3 = null; } }
  19. { var _j = _buf["TreatmentCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient1 = _j; } } else { TreatmentCoefficient1 = null; } }
  20. { var _j = _buf["TreatmentCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient2 = _j; } } else { TreatmentCoefficient2 = null; } }
  21. { var _j = _buf["TreatmentCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } TreatmentCoefficient3 = _j; } } else { TreatmentCoefficient3 = null; } }
  22. { var _j = _buf["BuffCoefficient1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient1 = _j; } } else { BuffCoefficient1 = null; } }
  23. { var _j = _buf["BuffCoefficient2"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient2 = _j; } } else { BuffCoefficient2 = null; } }
  24. { var _j = _buf["BuffCoefficient3"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } BuffCoefficient3 = _j; } } else { BuffCoefficient3 = null; } }
  25. }
  26. public static BuffCoefficientModel DeserializeBuffCoefficientModel(JSONNode _buf)
  27. {
  28. return new BuffCoefficientModel(_buf);
  29. }
  30. public readonly double? DamageCoefficient1;
  31. public readonly double? DamageCoefficient2;
  32. public readonly double? DamageCoefficient3;
  33. public readonly double? TreatmentCoefficient1;
  34. public readonly double? TreatmentCoefficient2;
  35. public readonly double? TreatmentCoefficient3;
  36. public readonly double? BuffCoefficient1;
  37. public readonly double? BuffCoefficient2;
  38. public readonly double? BuffCoefficient3;
  39. public const int __ID__ = 1017159047;
  40. public override int GetTypeId() => __ID__;
  41. public void ResolveRef(Tables tables)
  42. {
  43. }
  44. public override string ToString()
  45. {
  46. return "{ "
  47. + "DamageCoefficient1:" + DamageCoefficient1 + ","
  48. + "DamageCoefficient2:" + DamageCoefficient2 + ","
  49. + "DamageCoefficient3:" + DamageCoefficient3 + ","
  50. + "TreatmentCoefficient1:" + TreatmentCoefficient1 + ","
  51. + "TreatmentCoefficient2:" + TreatmentCoefficient2 + ","
  52. + "TreatmentCoefficient3:" + TreatmentCoefficient3 + ","
  53. + "BuffCoefficient1:" + BuffCoefficient1 + ","
  54. + "BuffCoefficient2:" + BuffCoefficient2 + ","
  55. + "BuffCoefficient3:" + BuffCoefficient3 + ","
  56. + "}";
  57. }
  58. }
  59. }