SCHALE.GameServer/SCHALE.Common/FlatData/RootMotionFlat.cs

78 lines
6.4 KiB
C#
Raw Normal View History

2024-04-21 00:21:57 +00:00
// <auto-generated>
// automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>
namespace SCHALE.Common.FlatData
{
using global::System;
using global::System.Collections.Generic;
using global::Google.FlatBuffers;
public struct RootMotionFlat : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static RootMotionFlat GetRootAsRootMotionFlat(ByteBuffer _bb) { return GetRootAsRootMotionFlat(_bb, new RootMotionFlat()); }
public static RootMotionFlat GetRootAsRootMotionFlat(ByteBuffer _bb, RootMotionFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public RootMotionFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public SCHALE.Common.FlatData.Form? Forms(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Form?)(new SCHALE.Common.FlatData.Form()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
public int FormsLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } }
public SCHALE.Common.FlatData.Motion? ExSkills(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; }
public int ExSkillsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } }
public SCHALE.Common.FlatData.Motion? MoveLeft { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
public SCHALE.Common.FlatData.Motion? MoveRight { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } }
public static Offset<SCHALE.Common.FlatData.RootMotionFlat> CreateRootMotionFlat(FlatBufferBuilder builder,
VectorOffset FormsOffset = default(VectorOffset),
VectorOffset ExSkillsOffset = default(VectorOffset),
Offset<SCHALE.Common.FlatData.Motion> MoveLeftOffset = default(Offset<SCHALE.Common.FlatData.Motion>),
Offset<SCHALE.Common.FlatData.Motion> MoveRightOffset = default(Offset<SCHALE.Common.FlatData.Motion>)) {
builder.StartTable(4);
RootMotionFlat.AddMoveRight(builder, MoveRightOffset);
RootMotionFlat.AddMoveLeft(builder, MoveLeftOffset);
RootMotionFlat.AddExSkills(builder, ExSkillsOffset);
RootMotionFlat.AddForms(builder, FormsOffset);
return RootMotionFlat.EndRootMotionFlat(builder);
}
public static void StartRootMotionFlat(FlatBufferBuilder builder) { builder.StartTable(4); }
public static void AddForms(FlatBufferBuilder builder, VectorOffset formsOffset) { builder.AddOffset(0, formsOffset.Value, 0); }
public static VectorOffset CreateFormsVector(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Form>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
public static VectorOffset CreateFormsVectorBlock(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Form>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateFormsVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<SCHALE.Common.FlatData.Form>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateFormsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<SCHALE.Common.FlatData.Form>>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartFormsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddExSkills(FlatBufferBuilder builder, VectorOffset exSkillsOffset) { builder.AddOffset(1, exSkillsOffset.Value, 0); }
public static VectorOffset CreateExSkillsVector(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Motion>[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
public static VectorOffset CreateExSkillsVectorBlock(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Motion>[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateExSkillsVectorBlock(FlatBufferBuilder builder, ArraySegment<Offset<SCHALE.Common.FlatData.Motion>> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateExSkillsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Offset<SCHALE.Common.FlatData.Motion>>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartExSkillsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddMoveLeft(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Motion> moveLeftOffset) { builder.AddOffset(2, moveLeftOffset.Value, 0); }
public static void AddMoveRight(FlatBufferBuilder builder, Offset<SCHALE.Common.FlatData.Motion> moveRightOffset) { builder.AddOffset(3, moveRightOffset.Value, 0); }
public static Offset<SCHALE.Common.FlatData.RootMotionFlat> EndRootMotionFlat(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.RootMotionFlat>(o);
}
}
static public class RootMotionFlatVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyVectorOfTables(tablePos, 4 /*Forms*/, SCHALE.Common.FlatData.FormVerify.Verify, false)
&& verifier.VerifyVectorOfTables(tablePos, 6 /*ExSkills*/, SCHALE.Common.FlatData.MotionVerify.Verify, false)
&& verifier.VerifyTable(tablePos, 8 /*MoveLeft*/, SCHALE.Common.FlatData.MotionVerify.Verify, false)
&& verifier.VerifyTable(tablePos, 10 /*MoveRight*/, SCHALE.Common.FlatData.MotionVerify.Verify, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}