// // 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 MinigameTBGEncounterExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static MinigameTBGEncounterExcel GetRootAsMinigameTBGEncounterExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterExcel(_bb, new MinigameTBGEncounterExcel()); } public static MinigameTBGEncounterExcel GetRootAsMinigameTBGEncounterExcel(ByteBuffer _bb, MinigameTBGEncounterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public MinigameTBGEncounterExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool AllThema { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int ThemaIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None; } } public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None; } } public string EnemyImagePath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnemyImagePathBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetEnemyImagePathBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetEnemyImagePathArray() { return __p.__vector_as_array(16); } public string EnemyPrefabName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnemyPrefabNameBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetEnemyPrefabNameBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetEnemyPrefabNameArray() { return __p.__vector_as_array(18); } public string EnemyNameLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnemyNameLocalizeBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetEnemyNameLocalizeBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetEnemyNameLocalizeArray() { return __p.__vector_as_array(20); } public long OptionGroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool RewardHide { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string EncounterTitleLocalize { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEncounterTitleLocalizeBytes() { return __p.__vector_as_span(26, 1); } #else public ArraySegment? GetEncounterTitleLocalizeBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetEncounterTitleLocalizeArray() { return __p.__vector_as_array(26); } public string StoryImagePath { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStoryImagePathBytes() { return __p.__vector_as_span(28, 1); } #else public ArraySegment? GetStoryImagePathBytes() { return __p.__vector_as_arraysegment(28); } #endif public byte[] GetStoryImagePathArray() { return __p.__vector_as_array(28); } public string BeforeStoryLocalize { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBeforeStoryLocalizeBytes() { return __p.__vector_as_span(30, 1); } #else public ArraySegment? GetBeforeStoryLocalizeBytes() { return __p.__vector_as_arraysegment(30); } #endif public byte[] GetBeforeStoryLocalizeArray() { return __p.__vector_as_array(30); } public string BeforeStoryOption1Localize { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBeforeStoryOption1LocalizeBytes() { return __p.__vector_as_span(32, 1); } #else public ArraySegment? GetBeforeStoryOption1LocalizeBytes() { return __p.__vector_as_arraysegment(32); } #endif public byte[] GetBeforeStoryOption1LocalizeArray() { return __p.__vector_as_array(32); } public string BeforeStoryOption2Localize { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBeforeStoryOption2LocalizeBytes() { return __p.__vector_as_span(34, 1); } #else public ArraySegment? GetBeforeStoryOption2LocalizeBytes() { return __p.__vector_as_arraysegment(34); } #endif public byte[] GetBeforeStoryOption2LocalizeArray() { return __p.__vector_as_array(34); } public string BeforeStoryOption3Localize { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBeforeStoryOption3LocalizeBytes() { return __p.__vector_as_span(36, 1); } #else public ArraySegment? GetBeforeStoryOption3LocalizeBytes() { return __p.__vector_as_arraysegment(36); } #endif public byte[] GetBeforeStoryOption3LocalizeArray() { return __p.__vector_as_array(36); } public string AllyAttackLocalize { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetAllyAttackLocalizeBytes() { return __p.__vector_as_span(38, 1); } #else public ArraySegment? GetAllyAttackLocalizeBytes() { return __p.__vector_as_arraysegment(38); } #endif public byte[] GetAllyAttackLocalizeArray() { return __p.__vector_as_array(38); } public string EnemyAttackLocalize { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnemyAttackLocalizeBytes() { return __p.__vector_as_span(40, 1); } #else public ArraySegment? GetEnemyAttackLocalizeBytes() { return __p.__vector_as_arraysegment(40); } #endif public byte[] GetEnemyAttackLocalizeArray() { return __p.__vector_as_array(40); } public string AttackDefenceLocalize { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetAttackDefenceLocalizeBytes() { return __p.__vector_as_span(42, 1); } #else public ArraySegment? GetAttackDefenceLocalizeBytes() { return __p.__vector_as_arraysegment(42); } #endif public byte[] GetAttackDefenceLocalizeArray() { return __p.__vector_as_array(42); } public string ClearStoryLocalize { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetClearStoryLocalizeBytes() { return __p.__vector_as_span(44, 1); } #else public ArraySegment? GetClearStoryLocalizeBytes() { return __p.__vector_as_arraysegment(44); } #endif public byte[] GetClearStoryLocalizeArray() { return __p.__vector_as_array(44); } public string DefeatStoryLocalize { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDefeatStoryLocalizeBytes() { return __p.__vector_as_span(46, 1); } #else public ArraySegment? GetDefeatStoryLocalizeBytes() { return __p.__vector_as_arraysegment(46); } #endif public byte[] GetDefeatStoryLocalizeArray() { return __p.__vector_as_array(46); } public string RunawayStoryLocalize { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetRunawayStoryLocalizeBytes() { return __p.__vector_as_span(48, 1); } #else public ArraySegment? GetRunawayStoryLocalizeBytes() { return __p.__vector_as_arraysegment(48); } #endif public byte[] GetRunawayStoryLocalizeArray() { return __p.__vector_as_array(48); } public static Offset CreateMinigameTBGEncounterExcel(FlatBufferBuilder builder, long EventContentId = 0, long UniqueId = 0, bool AllThema = false, int ThemaIndex = 0, SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None, SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None, StringOffset EnemyImagePathOffset = default(StringOffset), StringOffset EnemyPrefabNameOffset = default(StringOffset), StringOffset EnemyNameLocalizeOffset = default(StringOffset), long OptionGroupId = 0, bool RewardHide = false, StringOffset EncounterTitleLocalizeOffset = default(StringOffset), StringOffset StoryImagePathOffset = default(StringOffset), StringOffset BeforeStoryLocalizeOffset = default(StringOffset), StringOffset BeforeStoryOption1LocalizeOffset = default(StringOffset), StringOffset BeforeStoryOption2LocalizeOffset = default(StringOffset), StringOffset BeforeStoryOption3LocalizeOffset = default(StringOffset), StringOffset AllyAttackLocalizeOffset = default(StringOffset), StringOffset EnemyAttackLocalizeOffset = default(StringOffset), StringOffset AttackDefenceLocalizeOffset = default(StringOffset), StringOffset ClearStoryLocalizeOffset = default(StringOffset), StringOffset DefeatStoryLocalizeOffset = default(StringOffset), StringOffset RunawayStoryLocalizeOffset = default(StringOffset)) { builder.StartTable(23); MinigameTBGEncounterExcel.AddOptionGroupId(builder, OptionGroupId); MinigameTBGEncounterExcel.AddUniqueId(builder, UniqueId); MinigameTBGEncounterExcel.AddEventContentId(builder, EventContentId); MinigameTBGEncounterExcel.AddRunawayStoryLocalize(builder, RunawayStoryLocalizeOffset); MinigameTBGEncounterExcel.AddDefeatStoryLocalize(builder, DefeatStoryLocalizeOffset); MinigameTBGEncounterExcel.AddClearStoryLocalize(builder, ClearStoryLocalizeOffset); MinigameTBGEncounterExcel.AddAttackDefenceLocalize(builder, AttackDefenceLocalizeOffset); MinigameTBGEncounterExcel.AddEnemyAttackLocalize(builder, EnemyAttackLocalizeOffset); MinigameTBGEncounterExcel.AddAllyAttackLocalize(builder, AllyAttackLocalizeOffset); MinigameTBGEncounterExcel.AddBeforeStoryOption3Localize(builder, BeforeStoryOption3LocalizeOffset); MinigameTBGEncounterExcel.AddBeforeStoryOption2Localize(builder, BeforeStoryOption2LocalizeOffset); MinigameTBGEncounterExcel.AddBeforeStoryOption1Localize(builder, BeforeStoryOption1LocalizeOffset); MinigameTBGEncounterExcel.AddBeforeStoryLocalize(builder, BeforeStoryLocalizeOffset); MinigameTBGEncounterExcel.AddStoryImagePath(builder, StoryImagePathOffset); MinigameTBGEncounterExcel.AddEncounterTitleLocalize(builder, EncounterTitleLocalizeOffset); MinigameTBGEncounterExcel.AddEnemyNameLocalize(builder, EnemyNameLocalizeOffset); MinigameTBGEncounterExcel.AddEnemyPrefabName(builder, EnemyPrefabNameOffset); MinigameTBGEncounterExcel.AddEnemyImagePath(builder, EnemyImagePathOffset); MinigameTBGEncounterExcel.AddObjectType(builder, ObjectType); MinigameTBGEncounterExcel.AddThemaType(builder, ThemaType); MinigameTBGEncounterExcel.AddThemaIndex(builder, ThemaIndex); MinigameTBGEncounterExcel.AddRewardHide(builder, RewardHide); MinigameTBGEncounterExcel.AddAllThema(builder, AllThema); return MinigameTBGEncounterExcel.EndMinigameTBGEncounterExcel(builder); } public static void StartMinigameTBGEncounterExcel(FlatBufferBuilder builder) { builder.StartTable(23); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } public static void AddAllThema(FlatBufferBuilder builder, bool allThema) { builder.AddBool(2, allThema, false); } public static void AddThemaIndex(FlatBufferBuilder builder, int themaIndex) { builder.AddInt(3, themaIndex, 0); } public static void AddThemaType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGThemaType themaType) { builder.AddInt(4, (int)themaType, 0); } public static void AddObjectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGObjectType objectType) { builder.AddInt(5, (int)objectType, 0); } public static void AddEnemyImagePath(FlatBufferBuilder builder, StringOffset enemyImagePathOffset) { builder.AddOffset(6, enemyImagePathOffset.Value, 0); } public static void AddEnemyPrefabName(FlatBufferBuilder builder, StringOffset enemyPrefabNameOffset) { builder.AddOffset(7, enemyPrefabNameOffset.Value, 0); } public static void AddEnemyNameLocalize(FlatBufferBuilder builder, StringOffset enemyNameLocalizeOffset) { builder.AddOffset(8, enemyNameLocalizeOffset.Value, 0); } public static void AddOptionGroupId(FlatBufferBuilder builder, long optionGroupId) { builder.AddLong(9, optionGroupId, 0); } public static void AddRewardHide(FlatBufferBuilder builder, bool rewardHide) { builder.AddBool(10, rewardHide, false); } public static void AddEncounterTitleLocalize(FlatBufferBuilder builder, StringOffset encounterTitleLocalizeOffset) { builder.AddOffset(11, encounterTitleLocalizeOffset.Value, 0); } public static void AddStoryImagePath(FlatBufferBuilder builder, StringOffset storyImagePathOffset) { builder.AddOffset(12, storyImagePathOffset.Value, 0); } public static void AddBeforeStoryLocalize(FlatBufferBuilder builder, StringOffset beforeStoryLocalizeOffset) { builder.AddOffset(13, beforeStoryLocalizeOffset.Value, 0); } public static void AddBeforeStoryOption1Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption1LocalizeOffset) { builder.AddOffset(14, beforeStoryOption1LocalizeOffset.Value, 0); } public static void AddBeforeStoryOption2Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption2LocalizeOffset) { builder.AddOffset(15, beforeStoryOption2LocalizeOffset.Value, 0); } public static void AddBeforeStoryOption3Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption3LocalizeOffset) { builder.AddOffset(16, beforeStoryOption3LocalizeOffset.Value, 0); } public static void AddAllyAttackLocalize(FlatBufferBuilder builder, StringOffset allyAttackLocalizeOffset) { builder.AddOffset(17, allyAttackLocalizeOffset.Value, 0); } public static void AddEnemyAttackLocalize(FlatBufferBuilder builder, StringOffset enemyAttackLocalizeOffset) { builder.AddOffset(18, enemyAttackLocalizeOffset.Value, 0); } public static void AddAttackDefenceLocalize(FlatBufferBuilder builder, StringOffset attackDefenceLocalizeOffset) { builder.AddOffset(19, attackDefenceLocalizeOffset.Value, 0); } public static void AddClearStoryLocalize(FlatBufferBuilder builder, StringOffset clearStoryLocalizeOffset) { builder.AddOffset(20, clearStoryLocalizeOffset.Value, 0); } public static void AddDefeatStoryLocalize(FlatBufferBuilder builder, StringOffset defeatStoryLocalizeOffset) { builder.AddOffset(21, defeatStoryLocalizeOffset.Value, 0); } public static void AddRunawayStoryLocalize(FlatBufferBuilder builder, StringOffset runawayStoryLocalizeOffset) { builder.AddOffset(22, runawayStoryLocalizeOffset.Value, 0); } public static Offset EndMinigameTBGEncounterExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class MinigameTBGEncounterExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 8 /*AllThema*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 10 /*ThemaIndex*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 12 /*ThemaType*/, 4 /*SCHALE.Common.FlatData.TBGThemaType*/, 4, false) && verifier.VerifyField(tablePos, 14 /*ObjectType*/, 4 /*SCHALE.Common.FlatData.TBGObjectType*/, 4, false) && verifier.VerifyString(tablePos, 16 /*EnemyImagePath*/, false) && verifier.VerifyString(tablePos, 18 /*EnemyPrefabName*/, false) && verifier.VerifyString(tablePos, 20 /*EnemyNameLocalize*/, false) && verifier.VerifyField(tablePos, 22 /*OptionGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 24 /*RewardHide*/, 1 /*bool*/, 1, false) && verifier.VerifyString(tablePos, 26 /*EncounterTitleLocalize*/, false) && verifier.VerifyString(tablePos, 28 /*StoryImagePath*/, false) && verifier.VerifyString(tablePos, 30 /*BeforeStoryLocalize*/, false) && verifier.VerifyString(tablePos, 32 /*BeforeStoryOption1Localize*/, false) && verifier.VerifyString(tablePos, 34 /*BeforeStoryOption2Localize*/, false) && verifier.VerifyString(tablePos, 36 /*BeforeStoryOption3Localize*/, false) && verifier.VerifyString(tablePos, 38 /*AllyAttackLocalize*/, false) && verifier.VerifyString(tablePos, 40 /*EnemyAttackLocalize*/, false) && verifier.VerifyString(tablePos, 42 /*AttackDefenceLocalize*/, false) && verifier.VerifyString(tablePos, 44 /*ClearStoryLocalize*/, false) && verifier.VerifyString(tablePos, 46 /*DefeatStoryLocalize*/, false) && verifier.VerifyString(tablePos, 48 /*RunawayStoryLocalize*/, false) && verifier.VerifyTableEnd(tablePos); } } }