vector4.cs 1.3 KB

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