// // 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 ShopRecruitExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static ShopRecruitExcel GetRootAsShopRecruitExcel(ByteBuffer _bb) { return GetRootAsShopRecruitExcel(_bb, new ShopRecruitExcel()); } public static ShopRecruitExcel GetRootAsShopRecruitExcel(ByteBuffer _bb, ShopRecruitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ShopRecruitExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } public bool IsLegacy { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long OneGachaGoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TenGachaGoodsId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string GoodsDevName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGoodsDevNameBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetGoodsDevNameBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetGoodsDevNameArray() { return __p.__vector_as_array(14); } public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GachaDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaDisplayTag.None; } } public long DisplayOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string GachaBannerPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGachaBannerPathBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetGachaBannerPathBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetGachaBannerPathArray() { return __p.__vector_as_array(20); } public long VideoId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int VideoIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetVideoIdBytes() { return __p.__vector_as_span(22, 8); } #else public ArraySegment? GetVideoIdBytes() { return __p.__vector_as_arraysegment(22); } #endif public long[] GetVideoIdArray() { return __p.__vector_as_array(22); } public long LinkedRobbyBannerId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long InfoCharacterId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int InfoCharacterIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetInfoCharacterIdBytes() { return __p.__vector_as_span(26, 8); } #else public ArraySegment? GetInfoCharacterIdBytes() { return __p.__vector_as_arraysegment(26); } #endif public long[] GetInfoCharacterIdArray() { return __p.__vector_as_array(26); } public string SalePeriodFrom { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(28, 1); } #else public ArraySegment? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(28); } #endif public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array(28); } public string SalePeriodTo { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSalePeriodToBytes() { return __p.__vector_as_span(30, 1); } #else public ArraySegment? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(30); } #endif public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(30); } public long RecruitCoinId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RecruitSellectionShopId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCooltimeMin { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCountLimit { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } public bool IsNewbie { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool IsSelectRecruit { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long DirectPayInvisibleTokenId { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DirectPayAndroidShopCashId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DirectPayAppleShopCashId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateShopRecruitExcel(FlatBufferBuilder builder, long Id = 0, SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, bool IsLegacy = false, long OneGachaGoodsId = 0, long TenGachaGoodsId = 0, StringOffset GoodsDevNameOffset = default(StringOffset), SCHALE.Common.FlatData.GachaDisplayTag DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None, long DisplayOrder = 0, StringOffset GachaBannerPathOffset = default(StringOffset), VectorOffset VideoIdOffset = default(VectorOffset), long LinkedRobbyBannerId = 0, VectorOffset InfoCharacterIdOffset = default(VectorOffset), StringOffset SalePeriodFromOffset = default(StringOffset), StringOffset SalePeriodToOffset = default(StringOffset), long RecruitCoinId = 0, long RecruitSellectionShopId = 0, long PurchaseCooltimeMin = 0, long PurchaseCountLimit = 0, SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None, bool IsNewbie = false, bool IsSelectRecruit = false, long DirectPayInvisibleTokenId = 0, long DirectPayAndroidShopCashId = 0, long DirectPayAppleShopCashId = 0) { builder.StartTable(24); ShopRecruitExcel.AddDirectPayAppleShopCashId(builder, DirectPayAppleShopCashId); ShopRecruitExcel.AddDirectPayAndroidShopCashId(builder, DirectPayAndroidShopCashId); ShopRecruitExcel.AddDirectPayInvisibleTokenId(builder, DirectPayInvisibleTokenId); ShopRecruitExcel.AddPurchaseCountLimit(builder, PurchaseCountLimit); ShopRecruitExcel.AddPurchaseCooltimeMin(builder, PurchaseCooltimeMin); ShopRecruitExcel.AddRecruitSellectionShopId(builder, RecruitSellectionShopId); ShopRecruitExcel.AddRecruitCoinId(builder, RecruitCoinId); ShopRecruitExcel.AddLinkedRobbyBannerId(builder, LinkedRobbyBannerId); ShopRecruitExcel.AddDisplayOrder(builder, DisplayOrder); ShopRecruitExcel.AddTenGachaGoodsId(builder, TenGachaGoodsId); ShopRecruitExcel.AddOneGachaGoodsId(builder, OneGachaGoodsId); ShopRecruitExcel.AddId(builder, Id); ShopRecruitExcel.AddPurchaseCountResetType(builder, PurchaseCountResetType); ShopRecruitExcel.AddSalePeriodTo(builder, SalePeriodToOffset); ShopRecruitExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset); ShopRecruitExcel.AddInfoCharacterId(builder, InfoCharacterIdOffset); ShopRecruitExcel.AddVideoId(builder, VideoIdOffset); ShopRecruitExcel.AddGachaBannerPath(builder, GachaBannerPathOffset); ShopRecruitExcel.AddDisplayTag(builder, DisplayTag); ShopRecruitExcel.AddGoodsDevName(builder, GoodsDevNameOffset); ShopRecruitExcel.AddCategoryType(builder, CategoryType); ShopRecruitExcel.AddIsSelectRecruit(builder, IsSelectRecruit); ShopRecruitExcel.AddIsNewbie(builder, IsNewbie); ShopRecruitExcel.AddIsLegacy(builder, IsLegacy); return ShopRecruitExcel.EndShopRecruitExcel(builder); } public static void StartShopRecruitExcel(FlatBufferBuilder builder) { builder.StartTable(24); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(1, (int)categoryType, 0); } public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(2, isLegacy, false); } public static void AddOneGachaGoodsId(FlatBufferBuilder builder, long oneGachaGoodsId) { builder.AddLong(3, oneGachaGoodsId, 0); } public static void AddTenGachaGoodsId(FlatBufferBuilder builder, long tenGachaGoodsId) { builder.AddLong(4, tenGachaGoodsId, 0); } public static void AddGoodsDevName(FlatBufferBuilder builder, StringOffset goodsDevNameOffset) { builder.AddOffset(5, goodsDevNameOffset.Value, 0); } public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.GachaDisplayTag displayTag) { builder.AddInt(6, (int)displayTag, 0); } public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(7, displayOrder, 0); } public static void AddGachaBannerPath(FlatBufferBuilder builder, StringOffset gachaBannerPathOffset) { builder.AddOffset(8, gachaBannerPathOffset.Value, 0); } public static void AddVideoId(FlatBufferBuilder builder, VectorOffset videoIdOffset) { builder.AddOffset(9, videoIdOffset.Value, 0); } public static VectorOffset CreateVideoIdVector(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 CreateVideoIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateVideoIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateVideoIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartVideoIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddLinkedRobbyBannerId(FlatBufferBuilder builder, long linkedRobbyBannerId) { builder.AddLong(10, linkedRobbyBannerId, 0); } public static void AddInfoCharacterId(FlatBufferBuilder builder, VectorOffset infoCharacterIdOffset) { builder.AddOffset(11, infoCharacterIdOffset.Value, 0); } public static VectorOffset CreateInfoCharacterIdVector(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 CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartInfoCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(12, salePeriodFromOffset.Value, 0); } public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(13, salePeriodToOffset.Value, 0); } public static void AddRecruitCoinId(FlatBufferBuilder builder, long recruitCoinId) { builder.AddLong(14, recruitCoinId, 0); } public static void AddRecruitSellectionShopId(FlatBufferBuilder builder, long recruitSellectionShopId) { builder.AddLong(15, recruitSellectionShopId, 0); } public static void AddPurchaseCooltimeMin(FlatBufferBuilder builder, long purchaseCooltimeMin) { builder.AddLong(16, purchaseCooltimeMin, 0); } public static void AddPurchaseCountLimit(FlatBufferBuilder builder, long purchaseCountLimit) { builder.AddLong(17, purchaseCountLimit, 0); } public static void AddPurchaseCountResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseCountResetType purchaseCountResetType) { builder.AddInt(18, (int)purchaseCountResetType, 0); } public static void AddIsNewbie(FlatBufferBuilder builder, bool isNewbie) { builder.AddBool(19, isNewbie, false); } public static void AddIsSelectRecruit(FlatBufferBuilder builder, bool isSelectRecruit) { builder.AddBool(20, isSelectRecruit, false); } public static void AddDirectPayInvisibleTokenId(FlatBufferBuilder builder, long directPayInvisibleTokenId) { builder.AddLong(21, directPayInvisibleTokenId, 0); } public static void AddDirectPayAndroidShopCashId(FlatBufferBuilder builder, long directPayAndroidShopCashId) { builder.AddLong(22, directPayAndroidShopCashId, 0); } public static void AddDirectPayAppleShopCashId(FlatBufferBuilder builder, long directPayAppleShopCashId) { builder.AddLong(23, directPayAppleShopCashId, 0); } public static Offset EndShopRecruitExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class ShopRecruitExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) && verifier.VerifyField(tablePos, 8 /*IsLegacy*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 10 /*OneGachaGoodsId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*TenGachaGoodsId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 14 /*GoodsDevName*/, false) && verifier.VerifyField(tablePos, 16 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.GachaDisplayTag*/, 4, false) && verifier.VerifyField(tablePos, 18 /*DisplayOrder*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 20 /*GachaBannerPath*/, false) && verifier.VerifyVectorOfData(tablePos, 22 /*VideoId*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 24 /*LinkedRobbyBannerId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 26 /*InfoCharacterId*/, 8 /*long*/, false) && verifier.VerifyString(tablePos, 28 /*SalePeriodFrom*/, false) && verifier.VerifyString(tablePos, 30 /*SalePeriodTo*/, false) && verifier.VerifyField(tablePos, 32 /*RecruitCoinId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 34 /*RecruitSellectionShopId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 36 /*PurchaseCooltimeMin*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 38 /*PurchaseCountLimit*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 40 /*PurchaseCountResetType*/, 4 /*SCHALE.Common.FlatData.PurchaseCountResetType*/, 4, false) && verifier.VerifyField(tablePos, 42 /*IsNewbie*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 44 /*IsSelectRecruit*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 46 /*DirectPayInvisibleTokenId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 48 /*DirectPayAndroidShopCashId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 50 /*DirectPayAppleShopCashId*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } }