// // 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 GuideMissionSeasonExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static GuideMissionSeasonExcel GetRootAsGuideMissionSeasonExcel(ByteBuffer _bb) { return GetRootAsGuideMissionSeasonExcel(_bb, new GuideMissionSeasonExcel()); } public static GuideMissionSeasonExcel GetRootAsGuideMissionSeasonExcel(ByteBuffer _bb, GuideMissionSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public GuideMissionSeasonExcel __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 string TitleLocalizeCode { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTitleLocalizeCodeBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetTitleLocalizeCodeBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetTitleLocalizeCodeArray() { return __p.__vector_as_array(6); } public string PermanentInfomationLocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetPermanentInfomationLocalizeCodeBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetPermanentInfomationLocalizeCodeBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetPermanentInfomationLocalizeCodeArray() { return __p.__vector_as_array(8); } public string InfomationLocalizeCode { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetInfomationLocalizeCodeBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetInfomationLocalizeCodeBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetInfomationLocalizeCodeArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } public bool Enabled { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string BannerOpenDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBannerOpenDateBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetBannerOpenDateBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetBannerOpenDateArray() { return __p.__vector_as_array(16); } public string StartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStartDateBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetStartDateArray() { return __p.__vector_as_array(18); } public string StartableEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStartableEndDateBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetStartableEndDateBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetStartableEndDateArray() { return __p.__vector_as_array(20); } public string EndDate { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEndDateBytes() { return __p.__vector_as_span(22, 1); } #else public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetEndDateArray() { return __p.__vector_as_array(22); } public bool CloseBannerAfterCompletion { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long MaximumLoginCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ExpiryDate { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long SpineCharacterId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string RequirementParcelImage { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetRequirementParcelImageBytes() { return __p.__vector_as_span(32, 1); } #else public ArraySegment? GetRequirementParcelImageBytes() { return __p.__vector_as_arraysegment(32); } #endif public byte[] GetRequirementParcelImageArray() { return __p.__vector_as_array(32); } public string RewardImage { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetRewardImageBytes() { return __p.__vector_as_span(34, 1); } #else public ArraySegment? GetRewardImageBytes() { return __p.__vector_as_arraysegment(34); } #endif public byte[] GetRewardImageArray() { return __p.__vector_as_array(34); } public string LobbyBannerImage { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLobbyBannerImageBytes() { return __p.__vector_as_span(36, 1); } #else public ArraySegment? GetLobbyBannerImageBytes() { return __p.__vector_as_arraysegment(36); } #endif public byte[] GetLobbyBannerImageArray() { return __p.__vector_as_array(36); } public string BackgroundImage { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBackgroundImageBytes() { return __p.__vector_as_span(38, 1); } #else public ArraySegment? GetBackgroundImageBytes() { return __p.__vector_as_arraysegment(38); } #endif public byte[] GetBackgroundImageArray() { return __p.__vector_as_array(38); } public string TitleImage { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTitleImageBytes() { return __p.__vector_as_span(40, 1); } #else public ArraySegment? GetTitleImageBytes() { return __p.__vector_as_arraysegment(40); } #endif public byte[] GetTitleImageArray() { return __p.__vector_as_array(40); } public SCHALE.Common.FlatData.ParcelType RequirementParcelType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } public long RequirementParcelId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RequirementParcelAmount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.GuideMissionTabType TabType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionTabType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GuideMissionTabType.None; } } public bool IsPermanent { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long PreSeasonId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateGuideMissionSeasonExcel(FlatBufferBuilder builder, long Id = 0, StringOffset TitleLocalizeCodeOffset = default(StringOffset), StringOffset PermanentInfomationLocalizeCodeOffset = default(StringOffset), StringOffset InfomationLocalizeCodeOffset = default(StringOffset), SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, bool Enabled = false, StringOffset BannerOpenDateOffset = default(StringOffset), StringOffset StartDateOffset = default(StringOffset), StringOffset StartableEndDateOffset = default(StringOffset), StringOffset EndDateOffset = default(StringOffset), bool CloseBannerAfterCompletion = false, long MaximumLoginCount = 0, long ExpiryDate = 0, long SpineCharacterId = 0, StringOffset RequirementParcelImageOffset = default(StringOffset), StringOffset RewardImageOffset = default(StringOffset), StringOffset LobbyBannerImageOffset = default(StringOffset), StringOffset BackgroundImageOffset = default(StringOffset), StringOffset TitleImageOffset = default(StringOffset), SCHALE.Common.FlatData.ParcelType RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None, long RequirementParcelId = 0, int RequirementParcelAmount = 0, SCHALE.Common.FlatData.GuideMissionTabType TabType = SCHALE.Common.FlatData.GuideMissionTabType.None, bool IsPermanent = false, long PreSeasonId = 0) { builder.StartTable(25); GuideMissionSeasonExcel.AddPreSeasonId(builder, PreSeasonId); GuideMissionSeasonExcel.AddRequirementParcelId(builder, RequirementParcelId); GuideMissionSeasonExcel.AddSpineCharacterId(builder, SpineCharacterId); GuideMissionSeasonExcel.AddExpiryDate(builder, ExpiryDate); GuideMissionSeasonExcel.AddMaximumLoginCount(builder, MaximumLoginCount); GuideMissionSeasonExcel.AddId(builder, Id); GuideMissionSeasonExcel.AddTabType(builder, TabType); GuideMissionSeasonExcel.AddRequirementParcelAmount(builder, RequirementParcelAmount); GuideMissionSeasonExcel.AddRequirementParcelType(builder, RequirementParcelType); GuideMissionSeasonExcel.AddTitleImage(builder, TitleImageOffset); GuideMissionSeasonExcel.AddBackgroundImage(builder, BackgroundImageOffset); GuideMissionSeasonExcel.AddLobbyBannerImage(builder, LobbyBannerImageOffset); GuideMissionSeasonExcel.AddRewardImage(builder, RewardImageOffset); GuideMissionSeasonExcel.AddRequirementParcelImage(builder, RequirementParcelImageOffset); GuideMissionSeasonExcel.AddEndDate(builder, EndDateOffset); GuideMissionSeasonExcel.AddStartableEndDate(builder, StartableEndDateOffset); GuideMissionSeasonExcel.AddStartDate(builder, StartDateOffset); GuideMissionSeasonExcel.AddBannerOpenDate(builder, BannerOpenDateOffset); GuideMissionSeasonExcel.AddAccountType(builder, AccountType); GuideMissionSeasonExcel.AddInfomationLocalizeCode(builder, InfomationLocalizeCodeOffset); GuideMissionSeasonExcel.AddPermanentInfomationLocalizeCode(builder, PermanentInfomationLocalizeCodeOffset); GuideMissionSeasonExcel.AddTitleLocalizeCode(builder, TitleLocalizeCodeOffset); GuideMissionSeasonExcel.AddIsPermanent(builder, IsPermanent); GuideMissionSeasonExcel.AddCloseBannerAfterCompletion(builder, CloseBannerAfterCompletion); GuideMissionSeasonExcel.AddEnabled(builder, Enabled); return GuideMissionSeasonExcel.EndGuideMissionSeasonExcel(builder); } public static void StartGuideMissionSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(25); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddTitleLocalizeCode(FlatBufferBuilder builder, StringOffset titleLocalizeCodeOffset) { builder.AddOffset(1, titleLocalizeCodeOffset.Value, 0); } public static void AddPermanentInfomationLocalizeCode(FlatBufferBuilder builder, StringOffset permanentInfomationLocalizeCodeOffset) { builder.AddOffset(2, permanentInfomationLocalizeCodeOffset.Value, 0); } public static void AddInfomationLocalizeCode(FlatBufferBuilder builder, StringOffset infomationLocalizeCodeOffset) { builder.AddOffset(3, infomationLocalizeCodeOffset.Value, 0); } public static void AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(4, (int)accountType, 0); } public static void AddEnabled(FlatBufferBuilder builder, bool enabled) { builder.AddBool(5, enabled, false); } public static void AddBannerOpenDate(FlatBufferBuilder builder, StringOffset bannerOpenDateOffset) { builder.AddOffset(6, bannerOpenDateOffset.Value, 0); } public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(7, startDateOffset.Value, 0); } public static void AddStartableEndDate(FlatBufferBuilder builder, StringOffset startableEndDateOffset) { builder.AddOffset(8, startableEndDateOffset.Value, 0); } public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(9, endDateOffset.Value, 0); } public static void AddCloseBannerAfterCompletion(FlatBufferBuilder builder, bool closeBannerAfterCompletion) { builder.AddBool(10, closeBannerAfterCompletion, false); } public static void AddMaximumLoginCount(FlatBufferBuilder builder, long maximumLoginCount) { builder.AddLong(11, maximumLoginCount, 0); } public static void AddExpiryDate(FlatBufferBuilder builder, long expiryDate) { builder.AddLong(12, expiryDate, 0); } public static void AddSpineCharacterId(FlatBufferBuilder builder, long spineCharacterId) { builder.AddLong(13, spineCharacterId, 0); } public static void AddRequirementParcelImage(FlatBufferBuilder builder, StringOffset requirementParcelImageOffset) { builder.AddOffset(14, requirementParcelImageOffset.Value, 0); } public static void AddRewardImage(FlatBufferBuilder builder, StringOffset rewardImageOffset) { builder.AddOffset(15, rewardImageOffset.Value, 0); } public static void AddLobbyBannerImage(FlatBufferBuilder builder, StringOffset lobbyBannerImageOffset) { builder.AddOffset(16, lobbyBannerImageOffset.Value, 0); } public static void AddBackgroundImage(FlatBufferBuilder builder, StringOffset backgroundImageOffset) { builder.AddOffset(17, backgroundImageOffset.Value, 0); } public static void AddTitleImage(FlatBufferBuilder builder, StringOffset titleImageOffset) { builder.AddOffset(18, titleImageOffset.Value, 0); } public static void AddRequirementParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType requirementParcelType) { builder.AddInt(19, (int)requirementParcelType, 0); } public static void AddRequirementParcelId(FlatBufferBuilder builder, long requirementParcelId) { builder.AddLong(20, requirementParcelId, 0); } public static void AddRequirementParcelAmount(FlatBufferBuilder builder, int requirementParcelAmount) { builder.AddInt(21, requirementParcelAmount, 0); } public static void AddTabType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GuideMissionTabType tabType) { builder.AddInt(22, (int)tabType, 0); } public static void AddIsPermanent(FlatBufferBuilder builder, bool isPermanent) { builder.AddBool(23, isPermanent, false); } public static void AddPreSeasonId(FlatBufferBuilder builder, long preSeasonId) { builder.AddLong(24, preSeasonId, 0); } public static Offset EndGuideMissionSeasonExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class GuideMissionSeasonExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 6 /*TitleLocalizeCode*/, false) && verifier.VerifyString(tablePos, 8 /*PermanentInfomationLocalizeCode*/, false) && verifier.VerifyString(tablePos, 10 /*InfomationLocalizeCode*/, false) && verifier.VerifyField(tablePos, 12 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) && verifier.VerifyField(tablePos, 14 /*Enabled*/, 1 /*bool*/, 1, false) && verifier.VerifyString(tablePos, 16 /*BannerOpenDate*/, false) && verifier.VerifyString(tablePos, 18 /*StartDate*/, false) && verifier.VerifyString(tablePos, 20 /*StartableEndDate*/, false) && verifier.VerifyString(tablePos, 22 /*EndDate*/, false) && verifier.VerifyField(tablePos, 24 /*CloseBannerAfterCompletion*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 26 /*MaximumLoginCount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 28 /*ExpiryDate*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 30 /*SpineCharacterId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 32 /*RequirementParcelImage*/, false) && verifier.VerifyString(tablePos, 34 /*RewardImage*/, false) && verifier.VerifyString(tablePos, 36 /*LobbyBannerImage*/, false) && verifier.VerifyString(tablePos, 38 /*BackgroundImage*/, false) && verifier.VerifyString(tablePos, 40 /*TitleImage*/, false) && verifier.VerifyField(tablePos, 42 /*RequirementParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) && verifier.VerifyField(tablePos, 44 /*RequirementParcelId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 46 /*RequirementParcelAmount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 48 /*TabType*/, 4 /*SCHALE.Common.FlatData.GuideMissionTabType*/, 4, false) && verifier.VerifyField(tablePos, 50 /*IsPermanent*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 52 /*PreSeasonId*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } }