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