// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionOpenStageConditionExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb) { return GetRootAsGuideMissionOpenStageConditionExcel(_bb, new GuideMissionOpenStageConditionExcel()); } public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb, GuideMissionOpenStageConditionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public GuideMissionOpenStageConditionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OrderNumber { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string TabLocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTabLocalizeCodeBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetTabLocalizeCodeBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetTabLocalizeCodeArray() { return __p.__vector_as_array(8); } public long ClearScenarioModeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string LockScenarioTextLocailzeCode { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetLockScenarioTextLocailzeCodeArray() { return __p.__vector_as_array(12); } public string ShortcutScenarioUI { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetShortcutScenarioUIBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetShortcutScenarioUIBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetShortcutScenarioUIArray() { return __p.__vector_as_array(14); } public long ClearStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string LockStageTextLocailzeCode { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetLockStageTextLocailzeCodeArray() { return __p.__vector_as_array(18); } public string ShortcutStageUI { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetShortcutStageUIBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetShortcutStageUIBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetShortcutStageUIArray() { return __p.__vector_as_array(20); } public static Offset CreateGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder, long SeasonId = 0, long OrderNumber = 0, StringOffset TabLocalizeCodeOffset = default(StringOffset), long ClearScenarioModeId = 0, StringOffset LockScenarioTextLocailzeCodeOffset = default(StringOffset), StringOffset ShortcutScenarioUIOffset = default(StringOffset), long ClearStageId = 0, StringOffset LockStageTextLocailzeCodeOffset = default(StringOffset), StringOffset ShortcutStageUIOffset = default(StringOffset)) { builder.StartTable(9); GuideMissionOpenStageConditionExcel.AddClearStageId(builder, ClearStageId); GuideMissionOpenStageConditionExcel.AddClearScenarioModeId(builder, ClearScenarioModeId); GuideMissionOpenStageConditionExcel.AddOrderNumber(builder, OrderNumber); GuideMissionOpenStageConditionExcel.AddSeasonId(builder, SeasonId); GuideMissionOpenStageConditionExcel.AddShortcutStageUI(builder, ShortcutStageUIOffset); GuideMissionOpenStageConditionExcel.AddLockStageTextLocailzeCode(builder, LockStageTextLocailzeCodeOffset); GuideMissionOpenStageConditionExcel.AddShortcutScenarioUI(builder, ShortcutScenarioUIOffset); GuideMissionOpenStageConditionExcel.AddLockScenarioTextLocailzeCode(builder, LockScenarioTextLocailzeCodeOffset); GuideMissionOpenStageConditionExcel.AddTabLocalizeCode(builder, TabLocalizeCodeOffset); return GuideMissionOpenStageConditionExcel.EndGuideMissionOpenStageConditionExcel(builder); } public static void StartGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) { builder.StartTable(9); } public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } public static void AddOrderNumber(FlatBufferBuilder builder, long orderNumber) { builder.AddLong(1, orderNumber, 0); } public static void AddTabLocalizeCode(FlatBufferBuilder builder, StringOffset tabLocalizeCodeOffset) { builder.AddOffset(2, tabLocalizeCodeOffset.Value, 0); } public static void AddClearScenarioModeId(FlatBufferBuilder builder, long clearScenarioModeId) { builder.AddLong(3, clearScenarioModeId, 0); } public static void AddLockScenarioTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockScenarioTextLocailzeCodeOffset) { builder.AddOffset(4, lockScenarioTextLocailzeCodeOffset.Value, 0); } public static void AddShortcutScenarioUI(FlatBufferBuilder builder, StringOffset shortcutScenarioUIOffset) { builder.AddOffset(5, shortcutScenarioUIOffset.Value, 0); } public static void AddClearStageId(FlatBufferBuilder builder, long clearStageId) { builder.AddLong(6, clearStageId, 0); } public static void AddLockStageTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockStageTextLocailzeCodeOffset) { builder.AddOffset(7, lockStageTextLocailzeCodeOffset.Value, 0); } public static void AddShortcutStageUI(FlatBufferBuilder builder, StringOffset shortcutStageUIOffset) { builder.AddOffset(8, shortcutStageUIOffset.Value, 0); } public static Offset EndGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public GuideMissionOpenStageConditionExcelT UnPack() { var _o = new GuideMissionOpenStageConditionExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(GuideMissionOpenStageConditionExcelT _o) { byte[] key = TableEncryptionService.CreateKey("GuideMissionOpenStageCondition"); _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); _o.OrderNumber = TableEncryptionService.Convert(this.OrderNumber, key); _o.TabLocalizeCode = TableEncryptionService.Convert(this.TabLocalizeCode, key); _o.ClearScenarioModeId = TableEncryptionService.Convert(this.ClearScenarioModeId, key); _o.LockScenarioTextLocailzeCode = TableEncryptionService.Convert(this.LockScenarioTextLocailzeCode, key); _o.ShortcutScenarioUI = TableEncryptionService.Convert(this.ShortcutScenarioUI, key); _o.ClearStageId = TableEncryptionService.Convert(this.ClearStageId, key); _o.LockStageTextLocailzeCode = TableEncryptionService.Convert(this.LockStageTextLocailzeCode, key); _o.ShortcutStageUI = TableEncryptionService.Convert(this.ShortcutStageUI, key); } public static Offset Pack(FlatBufferBuilder builder, GuideMissionOpenStageConditionExcelT _o) { if (_o == null) return default(Offset); var _TabLocalizeCode = _o.TabLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.TabLocalizeCode); var _LockScenarioTextLocailzeCode = _o.LockScenarioTextLocailzeCode == null ? default(StringOffset) : builder.CreateString(_o.LockScenarioTextLocailzeCode); var _ShortcutScenarioUI = _o.ShortcutScenarioUI == null ? default(StringOffset) : builder.CreateString(_o.ShortcutScenarioUI); var _LockStageTextLocailzeCode = _o.LockStageTextLocailzeCode == null ? default(StringOffset) : builder.CreateString(_o.LockStageTextLocailzeCode); var _ShortcutStageUI = _o.ShortcutStageUI == null ? default(StringOffset) : builder.CreateString(_o.ShortcutStageUI); return CreateGuideMissionOpenStageConditionExcel( builder, _o.SeasonId, _o.OrderNumber, _TabLocalizeCode, _o.ClearScenarioModeId, _LockScenarioTextLocailzeCode, _ShortcutScenarioUI, _o.ClearStageId, _LockStageTextLocailzeCode, _ShortcutStageUI); } } public class GuideMissionOpenStageConditionExcelT { public long SeasonId { get; set; } public long OrderNumber { get; set; } public string TabLocalizeCode { get; set; } public long ClearScenarioModeId { get; set; } public string LockScenarioTextLocailzeCode { get; set; } public string ShortcutScenarioUI { get; set; } public long ClearStageId { get; set; } public string LockStageTextLocailzeCode { get; set; } public string ShortcutStageUI { get; set; } public GuideMissionOpenStageConditionExcelT() { this.SeasonId = 0; this.OrderNumber = 0; this.TabLocalizeCode = null; this.ClearScenarioModeId = 0; this.LockScenarioTextLocailzeCode = null; this.ShortcutScenarioUI = null; this.ClearStageId = 0; this.LockStageTextLocailzeCode = null; this.ShortcutStageUI = null; } } static public class GuideMissionOpenStageConditionExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*OrderNumber*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 8 /*TabLocalizeCode*/, false) && verifier.VerifyField(tablePos, 10 /*ClearScenarioModeId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 12 /*LockScenarioTextLocailzeCode*/, false) && verifier.VerifyString(tablePos, 14 /*ShortcutScenarioUI*/, false) && verifier.VerifyField(tablePos, 16 /*ClearStageId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 18 /*LockStageTextLocailzeCode*/, false) && verifier.VerifyString(tablePos, 20 /*ShortcutStageUI*/, false) && verifier.VerifyTableEnd(tablePos); } } }