// // 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 EventContentStageExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static EventContentStageExcel GetRootAsEventContentStageExcel(ByteBuffer _bb) { return GetRootAsEventContentStageExcel(_bb, new EventContentStageExcel()); } public static EventContentStageExcel GetRootAsEventContentStageExcel(ByteBuffer _bb, EventContentStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public EventContentStageExcel __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 long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } public string StageNumber { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStageNumberBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetStageNumberBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetStageNumberArray() { return __p.__vector_as_array(12); } public int StageDisplay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long PrevStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenDate { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenEventPoint { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenConditionScenarioPermanentSubEventId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PrevStageSubEventId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenConditionScenarioId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } public long OpenConditionContentId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BattleDuration { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } public long StageEnterCostId { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageEnterEchelonCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long StarConditionTacticRankSCount { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StarConditionTurnCount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EnterScenarioGroupId(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int EnterScenarioGroupIdLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(46, 8); } #else public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(46); } #endif public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(46); } public long ClearScenarioGroupId(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ClearScenarioGroupIdLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(48, 8); } #else public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(48); } #endif public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(48); } public string StrategyMap { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStrategyMapBytes() { return __p.__vector_as_span(50, 1); } #else public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(50); } #endif public byte[] GetStrategyMapArray() { return __p.__vector_as_array(50); } public string StrategyMapBG { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(52, 1); } #else public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(52); } #endif public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(52); } public long EventContentStageRewardId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int MaxTurn { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } public int RecommandLevel { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string BgmId { get { int o = __p.__offset(62); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBgmIdBytes() { return __p.__vector_as_span(62, 1); } #else public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(62); } #endif public byte[] GetBgmIdArray() { return __p.__vector_as_array(62); } public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(64); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } public long GroundID { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(68); 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(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool InstantClear { get { int o = __p.__offset(72); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long BuffContentId { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FixedEchelonId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool ChallengeDisplay { get { int o = __p.__offset(78); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StarGoalType)0; } public int StarGoalLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetStarGoalBytes() { return __p.__vector_as_span(80, 4); } #else public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(80); } #endif public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(80); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StarGoalType[] a = new SCHALE.Common.FlatData.StarGoalType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(p + i * 4); } return a; } public int StarGoalAmount(int j) { int o = __p.__offset(82); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int StarGoalAmountLength { get { int o = __p.__offset(82); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(82, 4); } #else public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(82); } #endif public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(82); } public bool IsDefeatBattle { get { int o = __p.__offset(84); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public uint StageHint { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(88); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public static Offset CreateEventContentStageExcel(FlatBufferBuilder builder, long Id = 0, StringOffset NameOffset = default(StringOffset), long EventContentId = 0, SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, StringOffset StageNumberOffset = default(StringOffset), int StageDisplay = 0, long PrevStageId = 0, long OpenDate = 0, long OpenEventPoint = 0, long OpenConditionScenarioPermanentSubEventId = 0, long PrevStageSubEventId = 0, long OpenConditionScenarioId = 0, SCHALE.Common.FlatData.EventContentType OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage, long OpenConditionContentId = 0, long BattleDuration = 0, SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, long StageEnterCostId = 0, int StageEnterCostAmount = 0, int StageEnterEchelonCount = 0, long StarConditionTacticRankSCount = 0, long StarConditionTurnCount = 0, VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), StringOffset StrategyMapOffset = default(StringOffset), StringOffset StrategyMapBGOffset = default(StringOffset), long EventContentStageRewardId = 0, int MaxTurn = 0, SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, StringOffset BgmIdOffset = default(StringOffset), SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None, long GroundID = 0, SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, long BGMId = 0, bool InstantClear = false, long BuffContentId = 0, long FixedEchelonId = 0, bool ChallengeDisplay = false, VectorOffset StarGoalOffset = default(VectorOffset), VectorOffset StarGoalAmountOffset = default(VectorOffset), bool IsDefeatBattle = false, uint StageHint = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base) { builder.StartTable(43); EventContentStageExcel.AddFixedEchelonId(builder, FixedEchelonId); EventContentStageExcel.AddBuffContentId(builder, BuffContentId); EventContentStageExcel.AddBGMId(builder, BGMId); EventContentStageExcel.AddGroundID(builder, GroundID); EventContentStageExcel.AddEventContentStageRewardId(builder, EventContentStageRewardId); EventContentStageExcel.AddStarConditionTurnCount(builder, StarConditionTurnCount); EventContentStageExcel.AddStarConditionTacticRankSCount(builder, StarConditionTacticRankSCount); EventContentStageExcel.AddStageEnterCostId(builder, StageEnterCostId); EventContentStageExcel.AddBattleDuration(builder, BattleDuration); EventContentStageExcel.AddOpenConditionContentId(builder, OpenConditionContentId); EventContentStageExcel.AddOpenConditionScenarioId(builder, OpenConditionScenarioId); EventContentStageExcel.AddPrevStageSubEventId(builder, PrevStageSubEventId); EventContentStageExcel.AddOpenConditionScenarioPermanentSubEventId(builder, OpenConditionScenarioPermanentSubEventId); EventContentStageExcel.AddOpenEventPoint(builder, OpenEventPoint); EventContentStageExcel.AddOpenDate(builder, OpenDate); EventContentStageExcel.AddPrevStageId(builder, PrevStageId); EventContentStageExcel.AddEventContentId(builder, EventContentId); EventContentStageExcel.AddId(builder, Id); EventContentStageExcel.AddEchelonExtensionType_(builder, EchelonExtensionType_); EventContentStageExcel.AddStageHint(builder, StageHint); EventContentStageExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); EventContentStageExcel.AddStarGoal(builder, StarGoalOffset); EventContentStageExcel.AddContentType_(builder, ContentType_); EventContentStageExcel.AddStrategyEnvironment_(builder, StrategyEnvironment_); EventContentStageExcel.AddBgmId(builder, BgmIdOffset); EventContentStageExcel.AddRecommandLevel(builder, RecommandLevel); EventContentStageExcel.AddStageTopography_(builder, StageTopography_); EventContentStageExcel.AddMaxTurn(builder, MaxTurn); EventContentStageExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); EventContentStageExcel.AddStrategyMap(builder, StrategyMapOffset); EventContentStageExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); EventContentStageExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); EventContentStageExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); EventContentStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); EventContentStageExcel.AddStageEnterCostType(builder, StageEnterCostType); EventContentStageExcel.AddOpenConditionContentType(builder, OpenConditionContentType); EventContentStageExcel.AddStageDisplay(builder, StageDisplay); EventContentStageExcel.AddStageNumber(builder, StageNumberOffset); EventContentStageExcel.AddStageDifficulty_(builder, StageDifficulty_); EventContentStageExcel.AddName(builder, NameOffset); EventContentStageExcel.AddIsDefeatBattle(builder, IsDefeatBattle); EventContentStageExcel.AddChallengeDisplay(builder, ChallengeDisplay); EventContentStageExcel.AddInstantClear(builder, InstantClear); return EventContentStageExcel.EndEventContentStageExcel(builder); } public static void StartEventContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(43); } 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 AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } public static void AddStageDifficulty_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty stageDifficulty_) { builder.AddInt(3, (int)stageDifficulty_, 0); } public static void AddStageNumber(FlatBufferBuilder builder, StringOffset stageNumberOffset) { builder.AddOffset(4, stageNumberOffset.Value, 0); } public static void AddStageDisplay(FlatBufferBuilder builder, int stageDisplay) { builder.AddInt(5, stageDisplay, 0); } public static void AddPrevStageId(FlatBufferBuilder builder, long prevStageId) { builder.AddLong(6, prevStageId, 0); } public static void AddOpenDate(FlatBufferBuilder builder, long openDate) { builder.AddLong(7, openDate, 0); } public static void AddOpenEventPoint(FlatBufferBuilder builder, long openEventPoint) { builder.AddLong(8, openEventPoint, 0); } public static void AddOpenConditionScenarioPermanentSubEventId(FlatBufferBuilder builder, long openConditionScenarioPermanentSubEventId) { builder.AddLong(9, openConditionScenarioPermanentSubEventId, 0); } public static void AddPrevStageSubEventId(FlatBufferBuilder builder, long prevStageSubEventId) { builder.AddLong(10, prevStageSubEventId, 0); } public static void AddOpenConditionScenarioId(FlatBufferBuilder builder, long openConditionScenarioId) { builder.AddLong(11, openConditionScenarioId, 0); } public static void AddOpenConditionContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType openConditionContentType) { builder.AddInt(12, (int)openConditionContentType, 0); } public static void AddOpenConditionContentId(FlatBufferBuilder builder, long openConditionContentId) { builder.AddLong(13, openConditionContentId, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(14, battleDuration, 0); } public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(15, (int)stageEnterCostType, 0); } public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(16, stageEnterCostId, 0); } public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(17, stageEnterCostAmount, 0); } public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(18, stageEnterEchelonCount, 0); } public static void AddStarConditionTacticRankSCount(FlatBufferBuilder builder, long starConditionTacticRankSCount) { builder.AddLong(19, starConditionTacticRankSCount, 0); } public static void AddStarConditionTurnCount(FlatBufferBuilder builder, long starConditionTurnCount) { builder.AddLong(20, starConditionTurnCount, 0); } public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(21, enterScenarioGroupIdOffset.Value, 0); } public static VectorOffset CreateEnterScenarioGroupIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartEnterScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddClearScenarioGroupId(FlatBufferBuilder builder, VectorOffset clearScenarioGroupIdOffset) { builder.AddOffset(22, clearScenarioGroupIdOffset.Value, 0); } public static VectorOffset CreateClearScenarioGroupIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartClearScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddStrategyMap(FlatBufferBuilder builder, StringOffset strategyMapOffset) { builder.AddOffset(23, strategyMapOffset.Value, 0); } public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(24, strategyMapBGOffset.Value, 0); } public static void AddEventContentStageRewardId(FlatBufferBuilder builder, long eventContentStageRewardId) { builder.AddLong(25, eventContentStageRewardId, 0); } public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(26, maxTurn, 0); } public static void AddStageTopography_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography_) { builder.AddInt(27, (int)stageTopography_, 0); } public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(28, recommandLevel, 0); } public static void AddBgmId(FlatBufferBuilder builder, StringOffset bgmIdOffset) { builder.AddOffset(29, bgmIdOffset.Value, 0); } public static void AddStrategyEnvironment_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment_) { builder.AddInt(30, (int)strategyEnvironment_, 0); } public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(31, groundID, 0); } public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(32, (int)contentType_, 0); } public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(33, bGMId, 0); } public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(34, instantClear, false); } public static void AddBuffContentId(FlatBufferBuilder builder, long buffContentId) { builder.AddLong(35, buffContentId, 0); } public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(36, fixedEchelonId, 0); } public static void AddChallengeDisplay(FlatBufferBuilder builder, bool challengeDisplay) { builder.AddBool(37, challengeDisplay, false); } public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(38, starGoalOffset.Value, 0); } public static VectorOffset CreateStarGoalVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.StarGoalType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.StarGoalType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStarGoalVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddStarGoalAmount(FlatBufferBuilder builder, VectorOffset starGoalAmountOffset) { builder.AddOffset(39, starGoalAmountOffset.Value, 0); } public static VectorOffset CreateStarGoalAmountVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStarGoalAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddIsDefeatBattle(FlatBufferBuilder builder, bool isDefeatBattle) { builder.AddBool(40, isDefeatBattle, false); } public static void AddStageHint(FlatBufferBuilder builder, uint stageHint) { builder.AddUint(41, stageHint, 0); } public static void AddEchelonExtensionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType_) { builder.AddInt(42, (int)echelonExtensionType_, 0); } public static Offset EndEventContentStageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public EventContentStageExcelT UnPack() { var _o = new EventContentStageExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(EventContentStageExcelT _o) { byte[] key = TableEncryptionService.CreateKey("EventContentStage"); _o.Id = TableEncryptionService.Convert(this.Id, key); _o.Name = TableEncryptionService.Convert(this.Name, key); _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); _o.StageDifficulty_ = TableEncryptionService.Convert(this.StageDifficulty_, key); _o.StageNumber = TableEncryptionService.Convert(this.StageNumber, key); _o.StageDisplay = TableEncryptionService.Convert(this.StageDisplay, key); _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); _o.OpenDate = TableEncryptionService.Convert(this.OpenDate, key); _o.OpenEventPoint = TableEncryptionService.Convert(this.OpenEventPoint, key); _o.OpenConditionScenarioPermanentSubEventId = TableEncryptionService.Convert(this.OpenConditionScenarioPermanentSubEventId, key); _o.PrevStageSubEventId = TableEncryptionService.Convert(this.PrevStageSubEventId, key); _o.OpenConditionScenarioId = TableEncryptionService.Convert(this.OpenConditionScenarioId, key); _o.OpenConditionContentType = TableEncryptionService.Convert(this.OpenConditionContentType, key); _o.OpenConditionContentId = TableEncryptionService.Convert(this.OpenConditionContentId, key); _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); _o.StageEnterCostType = TableEncryptionService.Convert(this.StageEnterCostType, key); _o.StageEnterCostId = TableEncryptionService.Convert(this.StageEnterCostId, key); _o.StageEnterCostAmount = TableEncryptionService.Convert(this.StageEnterCostAmount, key); _o.StageEnterEchelonCount = TableEncryptionService.Convert(this.StageEnterEchelonCount, key); _o.StarConditionTacticRankSCount = TableEncryptionService.Convert(this.StarConditionTacticRankSCount, key); _o.StarConditionTurnCount = TableEncryptionService.Convert(this.StarConditionTurnCount, key); _o.EnterScenarioGroupId = new List(); for (var _j = 0; _j < this.EnterScenarioGroupIdLength; ++_j) {_o.EnterScenarioGroupId.Add(TableEncryptionService.Convert(this.EnterScenarioGroupId(_j), key));} _o.ClearScenarioGroupId = new List(); for (var _j = 0; _j < this.ClearScenarioGroupIdLength; ++_j) {_o.ClearScenarioGroupId.Add(TableEncryptionService.Convert(this.ClearScenarioGroupId(_j), key));} _o.StrategyMap = TableEncryptionService.Convert(this.StrategyMap, key); _o.StrategyMapBG = TableEncryptionService.Convert(this.StrategyMapBG, key); _o.EventContentStageRewardId = TableEncryptionService.Convert(this.EventContentStageRewardId, key); _o.MaxTurn = TableEncryptionService.Convert(this.MaxTurn, key); _o.StageTopography_ = TableEncryptionService.Convert(this.StageTopography_, key); _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); _o.StrategyEnvironment_ = TableEncryptionService.Convert(this.StrategyEnvironment_, key); _o.GroundID = TableEncryptionService.Convert(this.GroundID, key); _o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, key); _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); _o.InstantClear = TableEncryptionService.Convert(this.InstantClear, key); _o.BuffContentId = TableEncryptionService.Convert(this.BuffContentId, key); _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); _o.ChallengeDisplay = TableEncryptionService.Convert(this.ChallengeDisplay, key); _o.StarGoal = new List(); for (var _j = 0; _j < this.StarGoalLength; ++_j) {_o.StarGoal.Add(TableEncryptionService.Convert(this.StarGoal(_j), key));} _o.StarGoalAmount = new List(); for (var _j = 0; _j < this.StarGoalAmountLength; ++_j) {_o.StarGoalAmount.Add(TableEncryptionService.Convert(this.StarGoalAmount(_j), key));} _o.IsDefeatBattle = TableEncryptionService.Convert(this.IsDefeatBattle, key); _o.StageHint = TableEncryptionService.Convert(this.StageHint, key); _o.EchelonExtensionType_ = TableEncryptionService.Convert(this.EchelonExtensionType_, key); } public static Offset Pack(FlatBufferBuilder builder, EventContentStageExcelT _o) { if (_o == null) return default(Offset); var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); var _StageNumber = _o.StageNumber == null ? default(StringOffset) : builder.CreateString(_o.StageNumber); var _EnterScenarioGroupId = default(VectorOffset); if (_o.EnterScenarioGroupId != null) { var __EnterScenarioGroupId = _o.EnterScenarioGroupId.ToArray(); _EnterScenarioGroupId = CreateEnterScenarioGroupIdVector(builder, __EnterScenarioGroupId); } var _ClearScenarioGroupId = default(VectorOffset); if (_o.ClearScenarioGroupId != null) { var __ClearScenarioGroupId = _o.ClearScenarioGroupId.ToArray(); _ClearScenarioGroupId = CreateClearScenarioGroupIdVector(builder, __ClearScenarioGroupId); } var _StrategyMap = _o.StrategyMap == null ? default(StringOffset) : builder.CreateString(_o.StrategyMap); var _StrategyMapBG = _o.StrategyMapBG == null ? default(StringOffset) : builder.CreateString(_o.StrategyMapBG); var _BgmId = _o.BgmId == null ? default(StringOffset) : builder.CreateString(_o.BgmId); var _StarGoal = default(VectorOffset); if (_o.StarGoal != null) { var __StarGoal = _o.StarGoal.ToArray(); _StarGoal = CreateStarGoalVector(builder, __StarGoal); } var _StarGoalAmount = default(VectorOffset); if (_o.StarGoalAmount != null) { var __StarGoalAmount = _o.StarGoalAmount.ToArray(); _StarGoalAmount = CreateStarGoalAmountVector(builder, __StarGoalAmount); } return CreateEventContentStageExcel( builder, _o.Id, _Name, _o.EventContentId, _o.StageDifficulty_, _StageNumber, _o.StageDisplay, _o.PrevStageId, _o.OpenDate, _o.OpenEventPoint, _o.OpenConditionScenarioPermanentSubEventId, _o.PrevStageSubEventId, _o.OpenConditionScenarioId, _o.OpenConditionContentType, _o.OpenConditionContentId, _o.BattleDuration, _o.StageEnterCostType, _o.StageEnterCostId, _o.StageEnterCostAmount, _o.StageEnterEchelonCount, _o.StarConditionTacticRankSCount, _o.StarConditionTurnCount, _EnterScenarioGroupId, _ClearScenarioGroupId, _StrategyMap, _StrategyMapBG, _o.EventContentStageRewardId, _o.MaxTurn, _o.StageTopography_, _o.RecommandLevel, _BgmId, _o.StrategyEnvironment_, _o.GroundID, _o.ContentType_, _o.BGMId, _o.InstantClear, _o.BuffContentId, _o.FixedEchelonId, _o.ChallengeDisplay, _StarGoal, _StarGoalAmount, _o.IsDefeatBattle, _o.StageHint, _o.EchelonExtensionType_); } } public class EventContentStageExcelT { public long Id { get; set; } public string Name { get; set; } public long EventContentId { get; set; } public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get; set; } public string StageNumber { get; set; } public int StageDisplay { get; set; } public long PrevStageId { get; set; } public long OpenDate { get; set; } public long OpenEventPoint { get; set; } public long OpenConditionScenarioPermanentSubEventId { get; set; } public long PrevStageSubEventId { get; set; } public long OpenConditionScenarioId { get; set; } public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get; set; } public long OpenConditionContentId { get; set; } public long BattleDuration { get; set; } public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get; set; } public long StageEnterCostId { get; set; } public int StageEnterCostAmount { get; set; } public int StageEnterEchelonCount { get; set; } public long StarConditionTacticRankSCount { get; set; } public long StarConditionTurnCount { get; set; } public List EnterScenarioGroupId { get; set; } public List ClearScenarioGroupId { get; set; } public string StrategyMap { get; set; } public string StrategyMapBG { get; set; } public long EventContentStageRewardId { get; set; } public int MaxTurn { get; set; } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get; set; } public int RecommandLevel { get; set; } public string BgmId { get; set; } public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get; set; } public long GroundID { get; set; } public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; } public long BGMId { get; set; } public bool InstantClear { get; set; } public long BuffContentId { get; set; } public long FixedEchelonId { get; set; } public bool ChallengeDisplay { get; set; } public List StarGoal { get; set; } public List StarGoalAmount { get; set; } public bool IsDefeatBattle { get; set; } public uint StageHint { get; set; } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get; set; } public EventContentStageExcelT() { this.Id = 0; this.Name = null; this.EventContentId = 0; this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; this.StageNumber = null; this.StageDisplay = 0; this.PrevStageId = 0; this.OpenDate = 0; this.OpenEventPoint = 0; this.OpenConditionScenarioPermanentSubEventId = 0; this.PrevStageSubEventId = 0; this.OpenConditionScenarioId = 0; this.OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage; this.OpenConditionContentId = 0; this.BattleDuration = 0; this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.StageEnterEchelonCount = 0; this.StarConditionTacticRankSCount = 0; this.StarConditionTurnCount = 0; this.EnterScenarioGroupId = null; this.ClearScenarioGroupId = null; this.StrategyMap = null; this.StrategyMapBG = null; this.EventContentStageRewardId = 0; this.MaxTurn = 0; this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.BgmId = null; this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None; this.GroundID = 0; this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; this.BGMId = 0; this.InstantClear = false; this.BuffContentId = 0; this.FixedEchelonId = 0; this.ChallengeDisplay = false; this.StarGoal = null; this.StarGoalAmount = null; this.IsDefeatBattle = false; this.StageHint = 0; this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base; } } static public class EventContentStageExcelVerify { 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.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 10 /*StageDifficulty_*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) && verifier.VerifyString(tablePos, 12 /*StageNumber*/, false) && verifier.VerifyField(tablePos, 14 /*StageDisplay*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 16 /*PrevStageId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 18 /*OpenDate*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*OpenEventPoint*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 22 /*OpenConditionScenarioPermanentSubEventId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 24 /*PrevStageSubEventId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 26 /*OpenConditionScenarioId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 28 /*OpenConditionContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) && verifier.VerifyField(tablePos, 30 /*OpenConditionContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 32 /*BattleDuration*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 34 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) && verifier.VerifyField(tablePos, 36 /*StageEnterCostId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 38 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 40 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 42 /*StarConditionTacticRankSCount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 44 /*StarConditionTurnCount*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 46 /*EnterScenarioGroupId*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 48 /*ClearScenarioGroupId*/, 8 /*long*/, false) && verifier.VerifyString(tablePos, 50 /*StrategyMap*/, false) && verifier.VerifyString(tablePos, 52 /*StrategyMapBG*/, false) && verifier.VerifyField(tablePos, 54 /*EventContentStageRewardId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 56 /*MaxTurn*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 58 /*StageTopography_*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) && verifier.VerifyField(tablePos, 60 /*RecommandLevel*/, 4 /*int*/, 4, false) && verifier.VerifyString(tablePos, 62 /*BgmId*/, false) && verifier.VerifyField(tablePos, 64 /*StrategyEnvironment_*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) && verifier.VerifyField(tablePos, 66 /*GroundID*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 68 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) && verifier.VerifyField(tablePos, 70 /*BGMId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 72 /*InstantClear*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 74 /*BuffContentId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 76 /*FixedEchelonId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 78 /*ChallengeDisplay*/, 1 /*bool*/, 1, false) && verifier.VerifyVectorOfData(tablePos, 80 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) && verifier.VerifyVectorOfData(tablePos, 82 /*StarGoalAmount*/, 4 /*int*/, false) && verifier.VerifyField(tablePos, 84 /*IsDefeatBattle*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 86 /*StageHint*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 88 /*EchelonExtensionType_*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }