// // 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 EliminateRaidStageSeasonRewardExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static EliminateRaidStageSeasonRewardExcel GetRootAsEliminateRaidStageSeasonRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageSeasonRewardExcel(_bb, new EliminateRaidStageSeasonRewardExcel()); } public static EliminateRaidStageSeasonRewardExcel GetRootAsEliminateRaidStageSeasonRewardExcel(ByteBuffer _bb, EliminateRaidStageSeasonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public EliminateRaidStageSeasonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long SeasonRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType SeasonRewardParcelType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int SeasonRewardParcelTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_span(6, 4); } #else public ArraySegment? GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(6); } #endif public SCHALE.Common.FlatData.ParcelType[] GetSeasonRewardParcelTypeArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ParcelType[] a = new SCHALE.Common.FlatData.ParcelType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(p + i * 4); } return a; } public long SeasonRewardParcelUniqueId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int SeasonRewardParcelUniqueIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_span(8, 8); } #else public ArraySegment? GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(8); } #endif public long[] GetSeasonRewardParcelUniqueIdArray() { return __p.__vector_as_array(8); } public string SeasonRewardParcelUniqueName(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int SeasonRewardParcelUniqueNameLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } public long SeasonRewardAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int SeasonRewardAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetSeasonRewardAmountBytes() { return __p.__vector_as_span(12, 8); } #else public ArraySegment? GetSeasonRewardAmountBytes() { return __p.__vector_as_arraysegment(12); } #endif public long[] GetSeasonRewardAmountArray() { return __p.__vector_as_array(12); } public static Offset CreateEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder, long SeasonRewardId = 0, VectorOffset SeasonRewardParcelTypeOffset = default(VectorOffset), VectorOffset SeasonRewardParcelUniqueIdOffset = default(VectorOffset), VectorOffset SeasonRewardParcelUniqueNameOffset = default(VectorOffset), VectorOffset SeasonRewardAmountOffset = default(VectorOffset)) { builder.StartTable(5); EliminateRaidStageSeasonRewardExcel.AddSeasonRewardId(builder, SeasonRewardId); EliminateRaidStageSeasonRewardExcel.AddSeasonRewardAmount(builder, SeasonRewardAmountOffset); EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueName(builder, SeasonRewardParcelUniqueNameOffset); EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueId(builder, SeasonRewardParcelUniqueIdOffset); EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelType(builder, SeasonRewardParcelTypeOffset); return EliminateRaidStageSeasonRewardExcel.EndEliminateRaidStageSeasonRewardExcel(builder); } public static void StartEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } public static void AddSeasonRewardId(FlatBufferBuilder builder, long seasonRewardId) { builder.AddLong(0, seasonRewardId, 0); } public static void AddSeasonRewardParcelType(FlatBufferBuilder builder, VectorOffset seasonRewardParcelTypeOffset) { builder.AddOffset(1, seasonRewardParcelTypeOffset.Value, 0); } public static VectorOffset CreateSeasonRewardParcelTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartSeasonRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddSeasonRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueIdOffset) { builder.AddOffset(2, seasonRewardParcelUniqueIdOffset.Value, 0); } public static VectorOffset CreateSeasonRewardParcelUniqueIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartSeasonRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddSeasonRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueNameOffset) { builder.AddOffset(3, seasonRewardParcelUniqueNameOffset.Value, 0); } public static VectorOffset CreateSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] 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 CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddSeasonRewardAmount(FlatBufferBuilder builder, VectorOffset seasonRewardAmountOffset) { builder.AddOffset(4, seasonRewardAmountOffset.Value, 0); } public static VectorOffset CreateSeasonRewardAmountVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartSeasonRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static Offset EndEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class EliminateRaidStageSeasonRewardExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*SeasonRewardId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 6 /*SeasonRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) && verifier.VerifyVectorOfData(tablePos, 8 /*SeasonRewardParcelUniqueId*/, 8 /*long*/, false) && verifier.VerifyVectorOfStrings(tablePos, 10 /*SeasonRewardParcelUniqueName*/, false) && verifier.VerifyVectorOfData(tablePos, 12 /*SeasonRewardAmount*/, 8 /*long*/, false) && verifier.VerifyTableEnd(tablePos); } } }