TempPoolParam.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 partial struct TempPoolParam
  13. {
  14. public TempPoolParam(JSONNode _buf)
  15. {
  16. { if(!_buf["GeneralCfgId"].IsNumber) { throw new SerializationException(); } GeneralCfgId = _buf["GeneralCfgId"]; }
  17. { if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
  18. { if(!_buf["Star"].IsNumber) { throw new SerializationException(); } Star = _buf["Star"]; }
  19. }
  20. public static TempPoolParam DeserializeTempPoolParam(JSONNode _buf)
  21. {
  22. return new TempPoolParam(_buf);
  23. }
  24. public readonly int GeneralCfgId;
  25. public readonly int Level;
  26. public readonly int Star;
  27. public void ResolveRef(Tables tables)
  28. {
  29. }
  30. public override string ToString()
  31. {
  32. return "{ "
  33. + "GeneralCfgId:" + GeneralCfgId + ","
  34. + "Level:" + Level + ","
  35. + "Star:" + Star + ","
  36. + "}";
  37. }
  38. }
  39. }