ScienceParam.cs 1.1 KB

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