// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct LogicEffectCommonVisualExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static LogicEffectCommonVisualExcel GetRootAsLogicEffectCommonVisualExcel(ByteBuffer _bb) { return GetRootAsLogicEffectCommonVisualExcel(_bb, new LogicEffectCommonVisualExcel()); } public static LogicEffectCommonVisualExcel GetRootAsLogicEffectCommonVisualExcel(ByteBuffer _bb, LogicEffectCommonVisualExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public LogicEffectCommonVisualExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint StringID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string IconSpriteName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetIconSpriteNameBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetIconSpriteNameBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetIconSpriteNameArray() { return __p.__vector_as_array(6); } public float IconDispelColor(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } public int IconDispelColorLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetIconDispelColorBytes() { return __p.__vector_as_span(8, 4); } #else public ArraySegment? GetIconDispelColorBytes() { return __p.__vector_as_arraysegment(8); } #endif public float[] GetIconDispelColorArray() { return __p.__vector_as_array(8); } public string ParticleEnterPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleEnterPathBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetParticleEnterPathBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetParticleEnterPathArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.EffectBone ParticleEnterSocket { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } public string ParticleLoopPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleLoopPathBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetParticleLoopPathBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetParticleLoopPathArray() { return __p.__vector_as_array(14); } public SCHALE.Common.FlatData.EffectBone ParticleLoopSocket { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } public string ParticleEndPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleEndPathBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetParticleEndPathBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetParticleEndPathArray() { return __p.__vector_as_array(18); } public SCHALE.Common.FlatData.EffectBone ParticleEndSocket { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } public string ParticleApplyPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleApplyPathBytes() { return __p.__vector_as_span(22, 1); } #else public ArraySegment? GetParticleApplyPathBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetParticleApplyPathArray() { return __p.__vector_as_array(22); } public SCHALE.Common.FlatData.EffectBone ParticleApplySocket { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } public string ParticleRemovedPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleRemovedPathBytes() { return __p.__vector_as_span(26, 1); } #else public ArraySegment? GetParticleRemovedPathBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetParticleRemovedPathArray() { return __p.__vector_as_array(26); } public SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } public static Offset CreateLogicEffectCommonVisualExcel(FlatBufferBuilder builder, uint StringID = 0, StringOffset IconSpriteNameOffset = default(StringOffset), VectorOffset IconDispelColorOffset = default(VectorOffset), StringOffset ParticleEnterPathOffset = default(StringOffset), SCHALE.Common.FlatData.EffectBone ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None, StringOffset ParticleLoopPathOffset = default(StringOffset), SCHALE.Common.FlatData.EffectBone ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None, StringOffset ParticleEndPathOffset = default(StringOffset), SCHALE.Common.FlatData.EffectBone ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None, StringOffset ParticleApplyPathOffset = default(StringOffset), SCHALE.Common.FlatData.EffectBone ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None, StringOffset ParticleRemovedPathOffset = default(StringOffset), SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None) { builder.StartTable(13); LogicEffectCommonVisualExcel.AddParticleRemovedSocket(builder, ParticleRemovedSocket); LogicEffectCommonVisualExcel.AddParticleRemovedPath(builder, ParticleRemovedPathOffset); LogicEffectCommonVisualExcel.AddParticleApplySocket(builder, ParticleApplySocket); LogicEffectCommonVisualExcel.AddParticleApplyPath(builder, ParticleApplyPathOffset); LogicEffectCommonVisualExcel.AddParticleEndSocket(builder, ParticleEndSocket); LogicEffectCommonVisualExcel.AddParticleEndPath(builder, ParticleEndPathOffset); LogicEffectCommonVisualExcel.AddParticleLoopSocket(builder, ParticleLoopSocket); LogicEffectCommonVisualExcel.AddParticleLoopPath(builder, ParticleLoopPathOffset); LogicEffectCommonVisualExcel.AddParticleEnterSocket(builder, ParticleEnterSocket); LogicEffectCommonVisualExcel.AddParticleEnterPath(builder, ParticleEnterPathOffset); LogicEffectCommonVisualExcel.AddIconDispelColor(builder, IconDispelColorOffset); LogicEffectCommonVisualExcel.AddIconSpriteName(builder, IconSpriteNameOffset); LogicEffectCommonVisualExcel.AddStringID(builder, StringID); return LogicEffectCommonVisualExcel.EndLogicEffectCommonVisualExcel(builder); } public static void StartLogicEffectCommonVisualExcel(FlatBufferBuilder builder) { builder.StartTable(13); } public static void AddStringID(FlatBufferBuilder builder, uint stringID) { builder.AddUint(0, stringID, 0); } public static void AddIconSpriteName(FlatBufferBuilder builder, StringOffset iconSpriteNameOffset) { builder.AddOffset(1, iconSpriteNameOffset.Value, 0); } public static void AddIconDispelColor(FlatBufferBuilder builder, VectorOffset iconDispelColorOffset) { builder.AddOffset(2, iconDispelColorOffset.Value, 0); } public static VectorOffset CreateIconDispelColorVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartIconDispelColorVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddParticleEnterPath(FlatBufferBuilder builder, StringOffset particleEnterPathOffset) { builder.AddOffset(3, particleEnterPathOffset.Value, 0); } public static void AddParticleEnterSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleEnterSocket) { builder.AddInt(4, (int)particleEnterSocket, 0); } public static void AddParticleLoopPath(FlatBufferBuilder builder, StringOffset particleLoopPathOffset) { builder.AddOffset(5, particleLoopPathOffset.Value, 0); } public static void AddParticleLoopSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleLoopSocket) { builder.AddInt(6, (int)particleLoopSocket, 0); } public static void AddParticleEndPath(FlatBufferBuilder builder, StringOffset particleEndPathOffset) { builder.AddOffset(7, particleEndPathOffset.Value, 0); } public static void AddParticleEndSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleEndSocket) { builder.AddInt(8, (int)particleEndSocket, 0); } public static void AddParticleApplyPath(FlatBufferBuilder builder, StringOffset particleApplyPathOffset) { builder.AddOffset(9, particleApplyPathOffset.Value, 0); } public static void AddParticleApplySocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleApplySocket) { builder.AddInt(10, (int)particleApplySocket, 0); } public static void AddParticleRemovedPath(FlatBufferBuilder builder, StringOffset particleRemovedPathOffset) { builder.AddOffset(11, particleRemovedPathOffset.Value, 0); } public static void AddParticleRemovedSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleRemovedSocket) { builder.AddInt(12, (int)particleRemovedSocket, 0); } public static Offset EndLogicEffectCommonVisualExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class LogicEffectCommonVisualExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*StringID*/, 4 /*uint*/, 4, false) && verifier.VerifyString(tablePos, 6 /*IconSpriteName*/, false) && verifier.VerifyVectorOfData(tablePos, 8 /*IconDispelColor*/, 4 /*float*/, false) && verifier.VerifyString(tablePos, 10 /*ParticleEnterPath*/, false) && verifier.VerifyField(tablePos, 12 /*ParticleEnterSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) && verifier.VerifyString(tablePos, 14 /*ParticleLoopPath*/, false) && verifier.VerifyField(tablePos, 16 /*ParticleLoopSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) && verifier.VerifyString(tablePos, 18 /*ParticleEndPath*/, false) && verifier.VerifyField(tablePos, 20 /*ParticleEndSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) && verifier.VerifyString(tablePos, 22 /*ParticleApplyPath*/, false) && verifier.VerifyField(tablePos, 24 /*ParticleApplySocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) && verifier.VerifyString(tablePos, 26 /*ParticleRemovedPath*/, false) && verifier.VerifyField(tablePos, 28 /*ParticleRemovedSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }