mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
52
luban_examples/Projects/CfgValidator/Gen/vec3.cs
Normal file
52
luban_examples/Projects/CfgValidator/Gen/vec3.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 vec3
|
||||
{
|
||||
public vec3(JsonElement _buf)
|
||||
{
|
||||
X = _buf.GetProperty("x").GetSingle();
|
||||
Y = _buf.GetProperty("y").GetSingle();
|
||||
Z = _buf.GetProperty("z").GetSingle();
|
||||
}
|
||||
|
||||
public static vec3 Deserializevec3(JsonElement _buf)
|
||||
{
|
||||
return new vec3(_buf);
|
||||
}
|
||||
|
||||
public readonly float X;
|
||||
public readonly float Y;
|
||||
public readonly float Z;
|
||||
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x:" + X + ","
|
||||
+ "y:" + Y + ","
|
||||
+ "z:" + Z + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user