mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
57 lines
1.2 KiB
C#
57 lines
1.2 KiB
C#
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// <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 System.Text.Json;
|
||
|
|
||
|
|
||
|
namespace cfg
|
||
|
{
|
||
|
public partial struct vec4
|
||
|
{
|
||
|
public vec4(JsonElement _buf)
|
||
|
{
|
||
|
X = _buf.GetProperty("x").GetSingle();
|
||
|
Y = _buf.GetProperty("y").GetSingle();
|
||
|
Z = _buf.GetProperty("z").GetSingle();
|
||
|
W = _buf.GetProperty("w").GetSingle();
|
||
|
}
|
||
|
|
||
|
public static vec4 Deserializevec4(JsonElement _buf)
|
||
|
{
|
||
|
return new vec4(_buf);
|
||
|
}
|
||
|
|
||
|
public readonly float X;
|
||
|
public readonly float Y;
|
||
|
public readonly float Z;
|
||
|
public readonly float W;
|
||
|
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "x:" + X + ","
|
||
|
+ "y:" + Y + ","
|
||
|
+ "z:" + Z + ","
|
||
|
+ "w:" + W + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|