CampBuffParam.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 CampBuffParam : Luban.BeanBase
  13. {
  14. public CampBuffParam(JSONNode _buf)
  15. {
  16. { var _j = _buf["HitProbability"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } HitProbability = _j; } } else { HitProbability = null; } }
  17. { var _j = _buf["Buff1"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsNumber) { throw new SerializationException(); } Buff1 = _j; } } else { Buff1 = null; } }
  18. }
  19. public static CampBuffParam DeserializeCampBuffParam(JSONNode _buf)
  20. {
  21. return new CampBuffParam(_buf);
  22. }
  23. public readonly int? HitProbability;
  24. public readonly int? Buff1;
  25. public const int __ID__ = 369699417;
  26. public override int GetTypeId() => __ID__;
  27. public void ResolveRef(Tables tables)
  28. {
  29. }
  30. public override string ToString()
  31. {
  32. return "{ "
  33. + "HitProbability:" + HitProbability + ","
  34. + "Buff1:" + Buff1 + ","
  35. + "}";
  36. }
  37. }
  38. }