| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- using Luban;
- using SimpleJSON;
- namespace cfg
- {
- public partial struct vector2
- {
- public vector2(JSONNode _buf)
- {
- { if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
- { if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
- }
- public static vector2 Deserializevector2(JSONNode _buf)
- {
- return new vector2(_buf);
- }
- public readonly float X;
- public readonly float Y;
-
- public void ResolveRef(Tables tables)
- {
- }
- public override string ToString()
- {
- return "{ "
- + "x:" + X + ","
- + "y:" + Y + ","
- + "}";
- }
- }
- }
|