// // 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 StoryStrategyExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static StoryStrategyExcel GetRootAsStoryStrategyExcel(ByteBuffer _bb) { return GetRootAsStoryStrategyExcel(_bb, new StoryStrategyExcel()); } public static StoryStrategyExcel GetRootAsStoryStrategyExcel(ByteBuffer _bb, StoryStrategyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public StoryStrategyExcel __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 Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetNameArray() { return __p.__vector_as_array(6); } public string Localize { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetLocalizeBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetLocalizeBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetLocalizeArray() { return __p.__vector_as_array(8); } public int StageEnterEchelonCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long BattleDuration { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long WhiteListId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string StrategyMap { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStrategyMapBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetStrategyMapArray() { return __p.__vector_as_array(16); } public string StrategyMapBG { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(18); } public int MaxTurn { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } public long BGMId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string FirstClearReportEventName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetFirstClearReportEventNameBytes() { return __p.__vector_as_span(30, 1); } #else public ArraySegment? GetFirstClearReportEventNameBytes() { return __p.__vector_as_arraysegment(30); } #endif public byte[] GetFirstClearReportEventNameArray() { return __p.__vector_as_array(30); } public static Offset CreateStoryStrategyExcel(FlatBufferBuilder builder, long Id = 0, StringOffset NameOffset = default(StringOffset), StringOffset LocalizeOffset = default(StringOffset), int StageEnterEchelonCount = 0, long BattleDuration = 0, long WhiteListId = 0, StringOffset StrategyMapOffset = default(StringOffset), StringOffset StrategyMapBGOffset = default(StringOffset), int MaxTurn = 0, SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, long BGMId = 0, StringOffset FirstClearReportEventNameOffset = default(StringOffset)) { builder.StartTable(14); StoryStrategyExcel.AddBGMId(builder, BGMId); StoryStrategyExcel.AddWhiteListId(builder, WhiteListId); StoryStrategyExcel.AddBattleDuration(builder, BattleDuration); StoryStrategyExcel.AddId(builder, Id); StoryStrategyExcel.AddFirstClearReportEventName(builder, FirstClearReportEventNameOffset); StoryStrategyExcel.AddContentType(builder, ContentType); StoryStrategyExcel.AddStrategyEnvironment(builder, StrategyEnvironment); StoryStrategyExcel.AddStageTopography(builder, StageTopography); StoryStrategyExcel.AddMaxTurn(builder, MaxTurn); StoryStrategyExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); StoryStrategyExcel.AddStrategyMap(builder, StrategyMapOffset); StoryStrategyExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); StoryStrategyExcel.AddLocalize(builder, LocalizeOffset); StoryStrategyExcel.AddName(builder, NameOffset); return StoryStrategyExcel.EndStoryStrategyExcel(builder); } public static void StartStoryStrategyExcel(FlatBufferBuilder builder) { builder.StartTable(14); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } public static void AddLocalize(FlatBufferBuilder builder, StringOffset localizeOffset) { builder.AddOffset(2, localizeOffset.Value, 0); } public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(3, stageEnterEchelonCount, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(4, battleDuration, 0); } public static void AddWhiteListId(FlatBufferBuilder builder, long whiteListId) { builder.AddLong(5, whiteListId, 0); } public static void AddStrategyMap(FlatBufferBuilder builder, StringOffset strategyMapOffset) { builder.AddOffset(6, strategyMapOffset.Value, 0); } public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(7, strategyMapBGOffset.Value, 0); } public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(8, maxTurn, 0); } public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(9, (int)stageTopography, 0); } public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(10, (int)strategyEnvironment, 0); } public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(11, (int)contentType, 0); } public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(12, bGMId, 0); } public static void AddFirstClearReportEventName(FlatBufferBuilder builder, StringOffset firstClearReportEventNameOffset) { builder.AddOffset(13, firstClearReportEventNameOffset.Value, 0); } public static Offset EndStoryStrategyExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class StoryStrategyExcelVerify { 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 /*Name*/, false) && verifier.VerifyString(tablePos, 8 /*Localize*/, false) && verifier.VerifyField(tablePos, 10 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 12 /*BattleDuration*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 14 /*WhiteListId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 16 /*StrategyMap*/, false) && verifier.VerifyString(tablePos, 18 /*StrategyMapBG*/, false) && verifier.VerifyField(tablePos, 20 /*MaxTurn*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 22 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) && verifier.VerifyField(tablePos, 24 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) && verifier.VerifyField(tablePos, 26 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) && verifier.VerifyField(tablePos, 28 /*BGMId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 30 /*FirstClearReportEventName*/, false) && verifier.VerifyTableEnd(tablePos); } } }