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;
|
2024-04-29 15:52:45 +00:00
|
|
|
using global::SCHALE.Common.Crypto;
|
2024-04-21 00:21:57 +00:00
|
|
|
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<byte> GetGoodsDevNameBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetGoodsDevNameBytes() { return __p.__vector_as_arraysegment(14); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetGoodsDevNameArray() { return __p.__vector_as_array<byte>(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<byte> GetGachaBannerPathBytes() { return __p.__vector_as_span<byte>(20, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetGachaBannerPathBytes() { return __p.__vector_as_arraysegment(20); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetGachaBannerPathArray() { return __p.__vector_as_array<byte>(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<long> GetVideoIdBytes() { return __p.__vector_as_span<long>(22, 8); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetVideoIdBytes() { return __p.__vector_as_arraysegment(22); }
|
|
|
|
#endif
|
|
|
|
public long[] GetVideoIdArray() { return __p.__vector_as_array<long>(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<long> GetInfoCharacterIdBytes() { return __p.__vector_as_span<long>(26, 8); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetInfoCharacterIdBytes() { return __p.__vector_as_arraysegment(26); }
|
|
|
|
#endif
|
|
|
|
public long[] GetInfoCharacterIdArray() { return __p.__vector_as_array<long>(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<byte> GetSalePeriodFromBytes() { return __p.__vector_as_span<byte>(28, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(28); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array<byte>(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<byte> GetSalePeriodToBytes() { return __p.__vector_as_span<byte>(30, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(30); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetSalePeriodToArray() { return __p.__vector_as_array<byte>(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<SCHALE.Common.FlatData.ShopRecruitExcel> 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<long> 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<long>(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<long> 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<long>(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<SCHALE.Common.FlatData.ShopRecruitExcel> EndShopRecruitExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.ShopRecruitExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public ShopRecruitExcelT UnPack() {
|
|
|
|
var _o = new ShopRecruitExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(ShopRecruitExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("ShopRecruit");
|
|
|
|
_o.Id = TableEncryptionService.Convert(this.Id, key);
|
|
|
|
_o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key);
|
|
|
|
_o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key);
|
|
|
|
_o.OneGachaGoodsId = TableEncryptionService.Convert(this.OneGachaGoodsId, key);
|
|
|
|
_o.TenGachaGoodsId = TableEncryptionService.Convert(this.TenGachaGoodsId, key);
|
|
|
|
_o.GoodsDevName = TableEncryptionService.Convert(this.GoodsDevName, key);
|
|
|
|
_o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key);
|
|
|
|
_o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key);
|
|
|
|
_o.GachaBannerPath = TableEncryptionService.Convert(this.GachaBannerPath, key);
|
|
|
|
_o.VideoId = new List<long>();
|
|
|
|
for (var _j = 0; _j < this.VideoIdLength; ++_j) {_o.VideoId.Add(TableEncryptionService.Convert(this.VideoId(_j), key));}
|
|
|
|
_o.LinkedRobbyBannerId = TableEncryptionService.Convert(this.LinkedRobbyBannerId, key);
|
|
|
|
_o.InfoCharacterId = new List<long>();
|
|
|
|
for (var _j = 0; _j < this.InfoCharacterIdLength; ++_j) {_o.InfoCharacterId.Add(TableEncryptionService.Convert(this.InfoCharacterId(_j), key));}
|
|
|
|
_o.SalePeriodFrom = TableEncryptionService.Convert(this.SalePeriodFrom, key);
|
|
|
|
_o.SalePeriodTo = TableEncryptionService.Convert(this.SalePeriodTo, key);
|
|
|
|
_o.RecruitCoinId = TableEncryptionService.Convert(this.RecruitCoinId, key);
|
|
|
|
_o.RecruitSellectionShopId = TableEncryptionService.Convert(this.RecruitSellectionShopId, key);
|
|
|
|
_o.PurchaseCooltimeMin = TableEncryptionService.Convert(this.PurchaseCooltimeMin, key);
|
|
|
|
_o.PurchaseCountLimit = TableEncryptionService.Convert(this.PurchaseCountLimit, key);
|
|
|
|
_o.PurchaseCountResetType = TableEncryptionService.Convert(this.PurchaseCountResetType, key);
|
|
|
|
_o.IsNewbie = TableEncryptionService.Convert(this.IsNewbie, key);
|
|
|
|
_o.IsSelectRecruit = TableEncryptionService.Convert(this.IsSelectRecruit, key);
|
|
|
|
_o.DirectPayInvisibleTokenId = TableEncryptionService.Convert(this.DirectPayInvisibleTokenId, key);
|
|
|
|
_o.DirectPayAndroidShopCashId = TableEncryptionService.Convert(this.DirectPayAndroidShopCashId, key);
|
|
|
|
_o.DirectPayAppleShopCashId = TableEncryptionService.Convert(this.DirectPayAppleShopCashId, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ShopRecruitExcel> Pack(FlatBufferBuilder builder, ShopRecruitExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ShopRecruitExcel>);
|
|
|
|
var _GoodsDevName = _o.GoodsDevName == null ? default(StringOffset) : builder.CreateString(_o.GoodsDevName);
|
|
|
|
var _GachaBannerPath = _o.GachaBannerPath == null ? default(StringOffset) : builder.CreateString(_o.GachaBannerPath);
|
|
|
|
var _VideoId = default(VectorOffset);
|
|
|
|
if (_o.VideoId != null) {
|
|
|
|
var __VideoId = _o.VideoId.ToArray();
|
|
|
|
_VideoId = CreateVideoIdVector(builder, __VideoId);
|
|
|
|
}
|
|
|
|
var _InfoCharacterId = default(VectorOffset);
|
|
|
|
if (_o.InfoCharacterId != null) {
|
|
|
|
var __InfoCharacterId = _o.InfoCharacterId.ToArray();
|
|
|
|
_InfoCharacterId = CreateInfoCharacterIdVector(builder, __InfoCharacterId);
|
|
|
|
}
|
|
|
|
var _SalePeriodFrom = _o.SalePeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodFrom);
|
|
|
|
var _SalePeriodTo = _o.SalePeriodTo == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodTo);
|
|
|
|
return CreateShopRecruitExcel(
|
|
|
|
builder,
|
|
|
|
_o.Id,
|
|
|
|
_o.CategoryType,
|
|
|
|
_o.IsLegacy,
|
|
|
|
_o.OneGachaGoodsId,
|
|
|
|
_o.TenGachaGoodsId,
|
|
|
|
_GoodsDevName,
|
|
|
|
_o.DisplayTag,
|
|
|
|
_o.DisplayOrder,
|
|
|
|
_GachaBannerPath,
|
|
|
|
_VideoId,
|
|
|
|
_o.LinkedRobbyBannerId,
|
|
|
|
_InfoCharacterId,
|
|
|
|
_SalePeriodFrom,
|
|
|
|
_SalePeriodTo,
|
|
|
|
_o.RecruitCoinId,
|
|
|
|
_o.RecruitSellectionShopId,
|
|
|
|
_o.PurchaseCooltimeMin,
|
|
|
|
_o.PurchaseCountLimit,
|
|
|
|
_o.PurchaseCountResetType,
|
|
|
|
_o.IsNewbie,
|
|
|
|
_o.IsSelectRecruit,
|
|
|
|
_o.DirectPayInvisibleTokenId,
|
|
|
|
_o.DirectPayAndroidShopCashId,
|
|
|
|
_o.DirectPayAppleShopCashId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ShopRecruitExcelT
|
|
|
|
{
|
|
|
|
public long Id { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; }
|
|
|
|
public bool IsLegacy { get; set; }
|
|
|
|
public long OneGachaGoodsId { get; set; }
|
|
|
|
public long TenGachaGoodsId { get; set; }
|
|
|
|
public string GoodsDevName { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get; set; }
|
|
|
|
public long DisplayOrder { get; set; }
|
|
|
|
public string GachaBannerPath { get; set; }
|
|
|
|
public List<long> VideoId { get; set; }
|
|
|
|
public long LinkedRobbyBannerId { get; set; }
|
|
|
|
public List<long> InfoCharacterId { get; set; }
|
|
|
|
public string SalePeriodFrom { get; set; }
|
|
|
|
public string SalePeriodTo { get; set; }
|
|
|
|
public long RecruitCoinId { get; set; }
|
|
|
|
public long RecruitSellectionShopId { get; set; }
|
|
|
|
public long PurchaseCooltimeMin { get; set; }
|
|
|
|
public long PurchaseCountLimit { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get; set; }
|
|
|
|
public bool IsNewbie { get; set; }
|
|
|
|
public bool IsSelectRecruit { get; set; }
|
|
|
|
public long DirectPayInvisibleTokenId { get; set; }
|
|
|
|
public long DirectPayAndroidShopCashId { get; set; }
|
|
|
|
public long DirectPayAppleShopCashId { get; set; }
|
|
|
|
|
|
|
|
public ShopRecruitExcelT() {
|
|
|
|
this.Id = 0;
|
|
|
|
this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General;
|
|
|
|
this.IsLegacy = false;
|
|
|
|
this.OneGachaGoodsId = 0;
|
|
|
|
this.TenGachaGoodsId = 0;
|
|
|
|
this.GoodsDevName = null;
|
|
|
|
this.DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None;
|
|
|
|
this.DisplayOrder = 0;
|
|
|
|
this.GachaBannerPath = null;
|
|
|
|
this.VideoId = null;
|
|
|
|
this.LinkedRobbyBannerId = 0;
|
|
|
|
this.InfoCharacterId = null;
|
|
|
|
this.SalePeriodFrom = null;
|
|
|
|
this.SalePeriodTo = null;
|
|
|
|
this.RecruitCoinId = 0;
|
|
|
|
this.RecruitSellectionShopId = 0;
|
|
|
|
this.PurchaseCooltimeMin = 0;
|
|
|
|
this.PurchaseCountLimit = 0;
|
|
|
|
this.PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None;
|
|
|
|
this.IsNewbie = false;
|
|
|
|
this.IsSelectRecruit = false;
|
|
|
|
this.DirectPayInvisibleTokenId = 0;
|
|
|
|
this.DirectPayAndroidShopCashId = 0;
|
|
|
|
this.DirectPayAppleShopCashId = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|