vector2.cs 1.0 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 vector2
  13. {
  14. public vector2(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. }
  19. public static vector2 Deserializevector2(JSONNode _buf)
  20. {
  21. return new vector2(_buf);
  22. }
  23. public readonly float X;
  24. public readonly float Y;
  25. public void ResolveRef(Tables tables)
  26. {
  27. }
  28. public override string ToString()
  29. {
  30. return "{ "
  31. + "x:" + X + ","
  32. + "y:" + Y + ","
  33. + "}";
  34. }
  35. }
  36. }