33 lines
981 B
C#
33 lines
981 B
C#
// <auto-generated>
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
// </auto-generated>
|
|
|
|
namespace NetData
|
|
{
|
|
|
|
using global::System;
|
|
using global::System.Collections.Generic;
|
|
using global::FlatBuffers;
|
|
|
|
public struct Vec3 : IFlatbufferObject
|
|
{
|
|
private Struct __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Struct(_i, _bb); }
|
|
public Vec3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public float X { get { return __p.bb.GetFloat(__p.bb_pos + 0); } }
|
|
public float Y { get { return __p.bb.GetFloat(__p.bb_pos + 4); } }
|
|
public float Z { get { return __p.bb.GetFloat(__p.bb_pos + 8); } }
|
|
|
|
public static Offset<NetData.Vec3> CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z) {
|
|
builder.Prep(4, 12);
|
|
builder.PutFloat(Z);
|
|
builder.PutFloat(Y);
|
|
builder.PutFloat(X);
|
|
return new Offset<NetData.Vec3>(builder.Offset);
|
|
}
|
|
};
|
|
|
|
|
|
}
|