forked from Raphael/SCHALE.GameServer
155 lines
11 KiB
C#
155 lines
11 KiB
C#
|
// <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;
|
||
|
using global::Google.FlatBuffers;
|
||
|
|
||
|
public struct ShopCashExcel : IFlatbufferObject
|
||
|
{
|
||
|
private Table __p;
|
||
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
||
|
public static ShopCashExcel GetRootAsShopCashExcel(ByteBuffer _bb) { return GetRootAsShopCashExcel(_bb, new ShopCashExcel()); }
|
||
|
public static ShopCashExcel GetRootAsShopCashExcel(ByteBuffer _bb, ShopCashExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||
|
public ShopCashExcel __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 long CashProductId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public SCHALE.Common.FlatData.PurchaseSourceType PackageType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PurchaseSourceType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseSourceType.None; } }
|
||
|
public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
||
|
public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetIconPathBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetIconPathBytes() { return __p.__vector_as_arraysegment(12); }
|
||
|
#endif
|
||
|
public byte[] GetIconPathArray() { return __p.__vector_as_array<byte>(12); }
|
||
|
public long DisplayOrder { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long RenewalDisplayOrder { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public SCHALE.Common.FlatData.ProductCategory CategoryType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ProductCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductCategory.None; } }
|
||
|
public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } }
|
||
|
public string SalePeriodFrom { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetSalePeriodFromBytes() { return __p.__vector_as_span<byte>(22, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(22); }
|
||
|
#endif
|
||
|
public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array<byte>(22); }
|
||
|
public string SalePeriodTo { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetSalePeriodToBytes() { return __p.__vector_as_span<byte>(24, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(24); }
|
||
|
#endif
|
||
|
public byte[] GetSalePeriodToArray() { return __p.__vector_as_array<byte>(24); }
|
||
|
public bool PeriodTag { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
public long AccountLevelLimit { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public bool AccountLevelHide { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
public long ClearMissionLimit { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public bool ClearMissionHide { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
public string PurchaseReportEventName { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
||
|
#if ENABLE_SPAN_T
|
||
|
public Span<byte> GetPurchaseReportEventNameBytes() { return __p.__vector_as_span<byte>(36, 1); }
|
||
|
#else
|
||
|
public ArraySegment<byte>? GetPurchaseReportEventNameBytes() { return __p.__vector_as_arraysegment(36); }
|
||
|
#endif
|
||
|
public byte[] GetPurchaseReportEventNameArray() { return __p.__vector_as_array<byte>(36); }
|
||
|
|
||
|
public static Offset<SCHALE.Common.FlatData.ShopCashExcel> CreateShopCashExcel(FlatBufferBuilder builder,
|
||
|
long Id = 0,
|
||
|
long CashProductId = 0,
|
||
|
SCHALE.Common.FlatData.PurchaseSourceType PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None,
|
||
|
uint LocalizeEtcId = 0,
|
||
|
StringOffset IconPathOffset = default(StringOffset),
|
||
|
long DisplayOrder = 0,
|
||
|
long RenewalDisplayOrder = 0,
|
||
|
SCHALE.Common.FlatData.ProductCategory CategoryType = SCHALE.Common.FlatData.ProductCategory.None,
|
||
|
SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None,
|
||
|
StringOffset SalePeriodFromOffset = default(StringOffset),
|
||
|
StringOffset SalePeriodToOffset = default(StringOffset),
|
||
|
bool PeriodTag = false,
|
||
|
long AccountLevelLimit = 0,
|
||
|
bool AccountLevelHide = false,
|
||
|
long ClearMissionLimit = 0,
|
||
|
bool ClearMissionHide = false,
|
||
|
StringOffset PurchaseReportEventNameOffset = default(StringOffset)) {
|
||
|
builder.StartTable(17);
|
||
|
ShopCashExcel.AddClearMissionLimit(builder, ClearMissionLimit);
|
||
|
ShopCashExcel.AddAccountLevelLimit(builder, AccountLevelLimit);
|
||
|
ShopCashExcel.AddRenewalDisplayOrder(builder, RenewalDisplayOrder);
|
||
|
ShopCashExcel.AddDisplayOrder(builder, DisplayOrder);
|
||
|
ShopCashExcel.AddCashProductId(builder, CashProductId);
|
||
|
ShopCashExcel.AddId(builder, Id);
|
||
|
ShopCashExcel.AddPurchaseReportEventName(builder, PurchaseReportEventNameOffset);
|
||
|
ShopCashExcel.AddSalePeriodTo(builder, SalePeriodToOffset);
|
||
|
ShopCashExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset);
|
||
|
ShopCashExcel.AddDisplayTag(builder, DisplayTag);
|
||
|
ShopCashExcel.AddCategoryType(builder, CategoryType);
|
||
|
ShopCashExcel.AddIconPath(builder, IconPathOffset);
|
||
|
ShopCashExcel.AddLocalizeEtcId(builder, LocalizeEtcId);
|
||
|
ShopCashExcel.AddPackageType(builder, PackageType);
|
||
|
ShopCashExcel.AddClearMissionHide(builder, ClearMissionHide);
|
||
|
ShopCashExcel.AddAccountLevelHide(builder, AccountLevelHide);
|
||
|
ShopCashExcel.AddPeriodTag(builder, PeriodTag);
|
||
|
return ShopCashExcel.EndShopCashExcel(builder);
|
||
|
}
|
||
|
|
||
|
public static void StartShopCashExcel(FlatBufferBuilder builder) { builder.StartTable(17); }
|
||
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
|
||
|
public static void AddCashProductId(FlatBufferBuilder builder, long cashProductId) { builder.AddLong(1, cashProductId, 0); }
|
||
|
public static void AddPackageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseSourceType packageType) { builder.AddInt(2, (int)packageType, 0); }
|
||
|
public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(3, localizeEtcId, 0); }
|
||
|
public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(4, iconPathOffset.Value, 0); }
|
||
|
public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(5, displayOrder, 0); }
|
||
|
public static void AddRenewalDisplayOrder(FlatBufferBuilder builder, long renewalDisplayOrder) { builder.AddLong(6, renewalDisplayOrder, 0); }
|
||
|
public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductCategory categoryType) { builder.AddInt(7, (int)categoryType, 0); }
|
||
|
public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(8, (int)displayTag, 0); }
|
||
|
public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(9, salePeriodFromOffset.Value, 0); }
|
||
|
public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(10, salePeriodToOffset.Value, 0); }
|
||
|
public static void AddPeriodTag(FlatBufferBuilder builder, bool periodTag) { builder.AddBool(11, periodTag, false); }
|
||
|
public static void AddAccountLevelLimit(FlatBufferBuilder builder, long accountLevelLimit) { builder.AddLong(12, accountLevelLimit, 0); }
|
||
|
public static void AddAccountLevelHide(FlatBufferBuilder builder, bool accountLevelHide) { builder.AddBool(13, accountLevelHide, false); }
|
||
|
public static void AddClearMissionLimit(FlatBufferBuilder builder, long clearMissionLimit) { builder.AddLong(14, clearMissionLimit, 0); }
|
||
|
public static void AddClearMissionHide(FlatBufferBuilder builder, bool clearMissionHide) { builder.AddBool(15, clearMissionHide, false); }
|
||
|
public static void AddPurchaseReportEventName(FlatBufferBuilder builder, StringOffset purchaseReportEventNameOffset) { builder.AddOffset(16, purchaseReportEventNameOffset.Value, 0); }
|
||
|
public static Offset<SCHALE.Common.FlatData.ShopCashExcel> EndShopCashExcel(FlatBufferBuilder builder) {
|
||
|
int o = builder.EndTable();
|
||
|
return new Offset<SCHALE.Common.FlatData.ShopCashExcel>(o);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
static public class ShopCashExcelVerify
|
||
|
{
|
||
|
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 /*CashProductId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 8 /*PackageType*/, 4 /*SCHALE.Common.FlatData.PurchaseSourceType*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false)
|
||
|
&& verifier.VerifyString(tablePos, 12 /*IconPath*/, false)
|
||
|
&& verifier.VerifyField(tablePos, 14 /*DisplayOrder*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 16 /*RenewalDisplayOrder*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 18 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ProductCategory*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 20 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false)
|
||
|
&& verifier.VerifyString(tablePos, 22 /*SalePeriodFrom*/, false)
|
||
|
&& verifier.VerifyString(tablePos, 24 /*SalePeriodTo*/, false)
|
||
|
&& verifier.VerifyField(tablePos, 26 /*PeriodTag*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyField(tablePos, 28 /*AccountLevelLimit*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 30 /*AccountLevelHide*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyField(tablePos, 32 /*ClearMissionLimit*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 34 /*ClearMissionHide*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyString(tablePos, 36 /*PurchaseReportEventName*/, false)
|
||
|
&& verifier.VerifyTableEnd(tablePos);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|