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