// // 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 EventContentLocationRewardExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static EventContentLocationRewardExcel GetRootAsEventContentLocationRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentLocationRewardExcel(_bb, new EventContentLocationRewardExcel()); } public static EventContentLocationRewardExcel GetRootAsEventContentLocationRewardExcel(ByteBuffer _bb, EventContentLocationRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public EventContentLocationRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public string Location { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocationBytes() { return __p.__vector_as_span(4, 1); } #else public ArraySegment? GetLocationBytes() { return __p.__vector_as_arraysegment(4); } #endif public byte[] GetLocationArray() { return __p.__vector_as_array(4); } public long ScheduleGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OrderInGroup { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ProgressTexture { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetProgressTextureBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetProgressTextureBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetProgressTextureArray() { return __p.__vector_as_array(12); } public uint VoiceId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } public int VoiceIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetVoiceIdBytes() { return __p.__vector_as_span(14, 4); } #else public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(14); } #endif public uint[] GetVoiceIdArray() { return __p.__vector_as_array(14); } public uint LocalizeEtcId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public long LocationRank { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorExp { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long SecretStoneAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long SecretStoneProb { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ExtraFavorExp { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ExtraFavorExpProb { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType ExtraRewardParcelType(int j) { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int ExtraRewardParcelTypeLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetExtraRewardParcelTypeBytes() { return __p.__vector_as_span(30, 4); } #else public ArraySegment? GetExtraRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(30); } #endif public SCHALE.Common.FlatData.ParcelType[] GetExtraRewardParcelTypeArray() { int o = __p.__offset(30); 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 ExtraRewardParcelId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ExtraRewardParcelIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetExtraRewardParcelIdBytes() { return __p.__vector_as_span(32, 8); } #else public ArraySegment? GetExtraRewardParcelIdBytes() { return __p.__vector_as_arraysegment(32); } #endif public long[] GetExtraRewardParcelIdArray() { return __p.__vector_as_array(32); } public long ExtraRewardAmount(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ExtraRewardAmountLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetExtraRewardAmountBytes() { return __p.__vector_as_span(34, 8); } #else public ArraySegment? GetExtraRewardAmountBytes() { return __p.__vector_as_arraysegment(34); } #endif public long[] GetExtraRewardAmountArray() { return __p.__vector_as_array(34); } public long ExtraRewardProb(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ExtraRewardProbLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetExtraRewardProbBytes() { return __p.__vector_as_span(36, 8); } #else public ArraySegment? GetExtraRewardProbBytes() { return __p.__vector_as_arraysegment(36); } #endif public long[] GetExtraRewardProbArray() { return __p.__vector_as_array(36); } public bool IsExtraRewardDisplayed(int j) { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } public int IsExtraRewardDisplayedLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_span(38, 1); } #else public ArraySegment? GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_arraysegment(38); } #endif public bool[] GetIsExtraRewardDisplayedArray() { return __p.__vector_as_array(38); } public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int RewardParcelTypeLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(40, 4); } #else public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(40); } #endif public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(40); 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 RewardParcelId(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int RewardParcelIdLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(42, 8); } #else public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(42); } #endif public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(42); } public long RewardAmount(int j) { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int RewardAmountLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetRewardAmountBytes() { return __p.__vector_as_span(44, 8); } #else public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(44); } #endif public long[] GetRewardAmountArray() { return __p.__vector_as_array(44); } public static Offset CreateEventContentLocationRewardExcel(FlatBufferBuilder builder, StringOffset LocationOffset = default(StringOffset), long ScheduleGroupId = 0, long OrderInGroup = 0, long Id = 0, StringOffset ProgressTextureOffset = default(StringOffset), VectorOffset VoiceIdOffset = default(VectorOffset), uint LocalizeEtcId = 0, long LocationRank = 0, long FavorExp = 0, long SecretStoneAmount = 0, long SecretStoneProb = 0, long ExtraFavorExp = 0, long ExtraFavorExpProb = 0, VectorOffset ExtraRewardParcelTypeOffset = default(VectorOffset), VectorOffset ExtraRewardParcelIdOffset = default(VectorOffset), VectorOffset ExtraRewardAmountOffset = default(VectorOffset), VectorOffset ExtraRewardProbOffset = default(VectorOffset), VectorOffset IsExtraRewardDisplayedOffset = default(VectorOffset), VectorOffset RewardParcelTypeOffset = default(VectorOffset), VectorOffset RewardParcelIdOffset = default(VectorOffset), VectorOffset RewardAmountOffset = default(VectorOffset)) { builder.StartTable(21); EventContentLocationRewardExcel.AddExtraFavorExpProb(builder, ExtraFavorExpProb); EventContentLocationRewardExcel.AddExtraFavorExp(builder, ExtraFavorExp); EventContentLocationRewardExcel.AddSecretStoneProb(builder, SecretStoneProb); EventContentLocationRewardExcel.AddSecretStoneAmount(builder, SecretStoneAmount); EventContentLocationRewardExcel.AddFavorExp(builder, FavorExp); EventContentLocationRewardExcel.AddLocationRank(builder, LocationRank); EventContentLocationRewardExcel.AddId(builder, Id); EventContentLocationRewardExcel.AddOrderInGroup(builder, OrderInGroup); EventContentLocationRewardExcel.AddScheduleGroupId(builder, ScheduleGroupId); EventContentLocationRewardExcel.AddRewardAmount(builder, RewardAmountOffset); EventContentLocationRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); EventContentLocationRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); EventContentLocationRewardExcel.AddIsExtraRewardDisplayed(builder, IsExtraRewardDisplayedOffset); EventContentLocationRewardExcel.AddExtraRewardProb(builder, ExtraRewardProbOffset); EventContentLocationRewardExcel.AddExtraRewardAmount(builder, ExtraRewardAmountOffset); EventContentLocationRewardExcel.AddExtraRewardParcelId(builder, ExtraRewardParcelIdOffset); EventContentLocationRewardExcel.AddExtraRewardParcelType(builder, ExtraRewardParcelTypeOffset); EventContentLocationRewardExcel.AddLocalizeEtcId(builder, LocalizeEtcId); EventContentLocationRewardExcel.AddVoiceId(builder, VoiceIdOffset); EventContentLocationRewardExcel.AddProgressTexture(builder, ProgressTextureOffset); EventContentLocationRewardExcel.AddLocation(builder, LocationOffset); return EventContentLocationRewardExcel.EndEventContentLocationRewardExcel(builder); } public static void StartEventContentLocationRewardExcel(FlatBufferBuilder builder) { builder.StartTable(21); } public static void AddLocation(FlatBufferBuilder builder, StringOffset locationOffset) { builder.AddOffset(0, locationOffset.Value, 0); } public static void AddScheduleGroupId(FlatBufferBuilder builder, long scheduleGroupId) { builder.AddLong(1, scheduleGroupId, 0); } public static void AddOrderInGroup(FlatBufferBuilder builder, long orderInGroup) { builder.AddLong(2, orderInGroup, 0); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(3, id, 0); } public static void AddProgressTexture(FlatBufferBuilder builder, StringOffset progressTextureOffset) { builder.AddOffset(4, progressTextureOffset.Value, 0); } public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(5, voiceIdOffset.Value, 0); } public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(6, localizeEtcId, 0); } public static void AddLocationRank(FlatBufferBuilder builder, long locationRank) { builder.AddLong(7, locationRank, 0); } public static void AddFavorExp(FlatBufferBuilder builder, long favorExp) { builder.AddLong(8, favorExp, 0); } public static void AddSecretStoneAmount(FlatBufferBuilder builder, long secretStoneAmount) { builder.AddLong(9, secretStoneAmount, 0); } public static void AddSecretStoneProb(FlatBufferBuilder builder, long secretStoneProb) { builder.AddLong(10, secretStoneProb, 0); } public static void AddExtraFavorExp(FlatBufferBuilder builder, long extraFavorExp) { builder.AddLong(11, extraFavorExp, 0); } public static void AddExtraFavorExpProb(FlatBufferBuilder builder, long extraFavorExpProb) { builder.AddLong(12, extraFavorExpProb, 0); } public static void AddExtraRewardParcelType(FlatBufferBuilder builder, VectorOffset extraRewardParcelTypeOffset) { builder.AddOffset(13, extraRewardParcelTypeOffset.Value, 0); } public static VectorOffset CreateExtraRewardParcelTypeVector(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 CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartExtraRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddExtraRewardParcelId(FlatBufferBuilder builder, VectorOffset extraRewardParcelIdOffset) { builder.AddOffset(14, extraRewardParcelIdOffset.Value, 0); } public static VectorOffset CreateExtraRewardParcelIdVector(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 CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartExtraRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddExtraRewardAmount(FlatBufferBuilder builder, VectorOffset extraRewardAmountOffset) { builder.AddOffset(15, extraRewardAmountOffset.Value, 0); } public static VectorOffset CreateExtraRewardAmountVector(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 CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartExtraRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddExtraRewardProb(FlatBufferBuilder builder, VectorOffset extraRewardProbOffset) { builder.AddOffset(16, extraRewardProbOffset.Value, 0); } public static VectorOffset CreateExtraRewardProbVector(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 CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartExtraRewardProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddIsExtraRewardDisplayed(FlatBufferBuilder builder, VectorOffset isExtraRewardDisplayedOffset) { builder.AddOffset(17, isExtraRewardDisplayedOffset.Value, 0); } public static VectorOffset CreateIsExtraRewardDisplayedVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartIsExtraRewardDisplayedVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(18, rewardParcelTypeOffset.Value, 0); } public static VectorOffset CreateRewardParcelTypeVector(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 CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddRewardParcelId(FlatBufferBuilder builder, VectorOffset rewardParcelIdOffset) { builder.AddOffset(19, rewardParcelIdOffset.Value, 0); } public static VectorOffset CreateRewardParcelIdVector(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 CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(20, rewardAmountOffset.Value, 0); } public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static Offset EndEventContentLocationRewardExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class EventContentLocationRewardExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyString(tablePos, 4 /*Location*/, false) && verifier.VerifyField(tablePos, 6 /*ScheduleGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 8 /*OrderInGroup*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 10 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 12 /*ProgressTexture*/, false) && verifier.VerifyVectorOfData(tablePos, 14 /*VoiceId*/, 4 /*uint*/, false) && verifier.VerifyField(tablePos, 16 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 18 /*LocationRank*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*FavorExp*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 22 /*SecretStoneAmount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 24 /*SecretStoneProb*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 26 /*ExtraFavorExp*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 28 /*ExtraFavorExpProb*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 30 /*ExtraRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) && verifier.VerifyVectorOfData(tablePos, 32 /*ExtraRewardParcelId*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 34 /*ExtraRewardAmount*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 36 /*ExtraRewardProb*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 38 /*IsExtraRewardDisplayed*/, 1 /*bool*/, false) && verifier.VerifyVectorOfData(tablePos, 40 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) && verifier.VerifyVectorOfData(tablePos, 42 /*RewardParcelId*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 44 /*RewardAmount*/, 8 /*long*/, false) && verifier.VerifyTableEnd(tablePos); } } }