vector3.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 vector3
  13. {
  14. public vector3(JSONNode _buf)
  15. {
  16. { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
  17. { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
  18. { if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; }
  19. }
  20. public static vector3 Deserializevector3(JSONNode _buf)
  21. {
  22. return new vector3(_buf);
  23. }
  24. public readonly float X;
  25. public readonly float Y;
  26. public readonly float Z;
  27. public void ResolveRef(Tables tables)
  28. {
  29. }
  30. public override string ToString()
  31. {
  32. return "{ "
  33. + "x:" + X + ","
  34. + "y:" + Y + ","
  35. + "z:" + Z + ","
  36. + "}";
  37. }
  38. }
  39. }