ResourcePath.cs 1.2 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 ResourcePath : Luban.BeanBase
  13. {
  14. public ResourcePath(JSONNode _buf)
  15. {
  16. { if(!_buf["package"].IsString) { throw new SerializationException(); } Package = _buf["package"]; }
  17. { if(!_buf["location"].IsString) { throw new SerializationException(); } Location = _buf["location"]; }
  18. }
  19. public static ResourcePath DeserializeResourcePath(JSONNode _buf)
  20. {
  21. return new ResourcePath(_buf);
  22. }
  23. public readonly string Package;
  24. public readonly string Location;
  25. public const int __ID__ = -220186253;
  26. public override int GetTypeId() => __ID__;
  27. public void ResolveRef(Tables tables)
  28. {
  29. }
  30. public override string ToString()
  31. {
  32. return "{ "
  33. + "package:" + Package + ","
  34. + "location:" + Location + ","
  35. + "}";
  36. }
  37. }
  38. }