// // 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 MiniGameDefenseStageExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static MiniGameDefenseStageExcel GetRootAsMiniGameDefenseStageExcel(ByteBuffer _bb) { return GetRootAsMiniGameDefenseStageExcel(_bb, new MiniGameDefenseStageExcel()); } public static MiniGameDefenseStageExcel GetRootAsMiniGameDefenseStageExcel(ByteBuffer _bb, MiniGameDefenseStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public MiniGameDefenseStageExcel __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 uint StageDifficultyLocalize { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public int StageNumber { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageDisplay { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long PrevStageId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public long BattleDuration { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); 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(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long EventContentStageRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EnterScenarioGroupId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int EnterScenarioGroupIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(32, 8); } #else public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(32); } #endif public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(32); } public long ClearScenarioGroupId(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ClearScenarioGroupIdLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(34, 8); } #else public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(34); } #endif public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(34); } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(36); 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(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long GroundID { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(44); 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(44); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetStarGoalBytes() { return __p.__vector_as_span(44, 4); } #else public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(44); } #endif public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(44); 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(46); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int StarGoalAmountLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(46, 4); } #else public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(46); } #endif public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(46); } public string DefenseFormationBGPrefab { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDefenseFormationBGPrefabBytes() { return __p.__vector_as_span(48, 1); } #else public ArraySegment? GetDefenseFormationBGPrefabBytes() { return __p.__vector_as_arraysegment(48); } #endif public byte[] GetDefenseFormationBGPrefabArray() { return __p.__vector_as_array(48); } public float DefenseFormationBGPrefabScale { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public long FixedEchelon { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MininageDefenseFixedStatId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public uint StageHint { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateMiniGameDefenseStageExcel(FlatBufferBuilder builder, long Id = 0, StringOffset NameOffset = default(StringOffset), long EventContentId = 0, SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, uint StageDifficultyLocalize = 0, int StageNumber = 0, int StageDisplay = 0, long PrevStageId = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base, long BattleDuration = 0, SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, long StageEnterCostId = 0, int StageEnterCostAmount = 0, long EventContentStageRewardId = 0, VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, long GroundID = 0, SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, VectorOffset StarGoalOffset = default(VectorOffset), VectorOffset StarGoalAmountOffset = default(VectorOffset), StringOffset DefenseFormationBGPrefabOffset = default(StringOffset), float DefenseFormationBGPrefabScale = 0.0f, long FixedEchelon = 0, long MininageDefenseFixedStatId = 0, uint StageHint = 0) { builder.StartTable(27); MiniGameDefenseStageExcel.AddMininageDefenseFixedStatId(builder, MininageDefenseFixedStatId); MiniGameDefenseStageExcel.AddFixedEchelon(builder, FixedEchelon); MiniGameDefenseStageExcel.AddGroundID(builder, GroundID); MiniGameDefenseStageExcel.AddEventContentStageRewardId(builder, EventContentStageRewardId); MiniGameDefenseStageExcel.AddStageEnterCostId(builder, StageEnterCostId); MiniGameDefenseStageExcel.AddBattleDuration(builder, BattleDuration); MiniGameDefenseStageExcel.AddPrevStageId(builder, PrevStageId); MiniGameDefenseStageExcel.AddEventContentId(builder, EventContentId); MiniGameDefenseStageExcel.AddId(builder, Id); MiniGameDefenseStageExcel.AddStageHint(builder, StageHint); MiniGameDefenseStageExcel.AddDefenseFormationBGPrefabScale(builder, DefenseFormationBGPrefabScale); MiniGameDefenseStageExcel.AddDefenseFormationBGPrefab(builder, DefenseFormationBGPrefabOffset); MiniGameDefenseStageExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); MiniGameDefenseStageExcel.AddStarGoal(builder, StarGoalOffset); MiniGameDefenseStageExcel.AddContentType_(builder, ContentType_); MiniGameDefenseStageExcel.AddRecommandLevel(builder, RecommandLevel); MiniGameDefenseStageExcel.AddStageTopography_(builder, StageTopography_); MiniGameDefenseStageExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); MiniGameDefenseStageExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); MiniGameDefenseStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); MiniGameDefenseStageExcel.AddStageEnterCostType(builder, StageEnterCostType); MiniGameDefenseStageExcel.AddEchelonExtensionType_(builder, EchelonExtensionType_); MiniGameDefenseStageExcel.AddStageDisplay(builder, StageDisplay); MiniGameDefenseStageExcel.AddStageNumber(builder, StageNumber); MiniGameDefenseStageExcel.AddStageDifficultyLocalize(builder, StageDifficultyLocalize); MiniGameDefenseStageExcel.AddStageDifficulty_(builder, StageDifficulty_); MiniGameDefenseStageExcel.AddName(builder, NameOffset); return MiniGameDefenseStageExcel.EndMiniGameDefenseStageExcel(builder); } public static void StartMiniGameDefenseStageExcel(FlatBufferBuilder builder) { builder.StartTable(27); } 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 AddStageDifficultyLocalize(FlatBufferBuilder builder, uint stageDifficultyLocalize) { builder.AddUint(4, stageDifficultyLocalize, 0); } public static void AddStageNumber(FlatBufferBuilder builder, int stageNumber) { builder.AddInt(5, stageNumber, 0); } public static void AddStageDisplay(FlatBufferBuilder builder, int stageDisplay) { builder.AddInt(6, stageDisplay, 0); } public static void AddPrevStageId(FlatBufferBuilder builder, long prevStageId) { builder.AddLong(7, prevStageId, 0); } public static void AddEchelonExtensionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType_) { builder.AddInt(8, (int)echelonExtensionType_, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(9, battleDuration, 0); } public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(10, (int)stageEnterCostType, 0); } public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(11, stageEnterCostId, 0); } public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(12, stageEnterCostAmount, 0); } public static void AddEventContentStageRewardId(FlatBufferBuilder builder, long eventContentStageRewardId) { builder.AddLong(13, eventContentStageRewardId, 0); } public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(14, 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(15, 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 AddStageTopography_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography_) { builder.AddInt(16, (int)stageTopography_, 0); } public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(17, recommandLevel, 0); } public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(18, groundID, 0); } public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(19, (int)contentType_, 0); } public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(20, 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(21, 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 AddDefenseFormationBGPrefab(FlatBufferBuilder builder, StringOffset defenseFormationBGPrefabOffset) { builder.AddOffset(22, defenseFormationBGPrefabOffset.Value, 0); } public static void AddDefenseFormationBGPrefabScale(FlatBufferBuilder builder, float defenseFormationBGPrefabScale) { builder.AddFloat(23, defenseFormationBGPrefabScale, 0.0f); } public static void AddFixedEchelon(FlatBufferBuilder builder, long fixedEchelon) { builder.AddLong(24, fixedEchelon, 0); } public static void AddMininageDefenseFixedStatId(FlatBufferBuilder builder, long mininageDefenseFixedStatId) { builder.AddLong(25, mininageDefenseFixedStatId, 0); } public static void AddStageHint(FlatBufferBuilder builder, uint stageHint) { builder.AddUint(26, stageHint, 0); } public static Offset EndMiniGameDefenseStageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public MiniGameDefenseStageExcelT UnPack() { var _o = new MiniGameDefenseStageExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(MiniGameDefenseStageExcelT _o) { byte[] key = TableEncryptionService.CreateKey("MiniGameDefenseStage"); _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.StageDifficultyLocalize = TableEncryptionService.Convert(this.StageDifficultyLocalize, key); _o.StageNumber = TableEncryptionService.Convert(this.StageNumber, key); _o.StageDisplay = TableEncryptionService.Convert(this.StageDisplay, key); _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); _o.EchelonExtensionType_ = TableEncryptionService.Convert(this.EchelonExtensionType_, 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.EventContentStageRewardId = TableEncryptionService.Convert(this.EventContentStageRewardId, 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.StageTopography_ = TableEncryptionService.Convert(this.StageTopography_, key); _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); _o.GroundID = TableEncryptionService.Convert(this.GroundID, key); _o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, 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.DefenseFormationBGPrefab = TableEncryptionService.Convert(this.DefenseFormationBGPrefab, key); _o.DefenseFormationBGPrefabScale = TableEncryptionService.Convert(this.DefenseFormationBGPrefabScale, key); _o.FixedEchelon = TableEncryptionService.Convert(this.FixedEchelon, key); _o.MininageDefenseFixedStatId = TableEncryptionService.Convert(this.MininageDefenseFixedStatId, key); _o.StageHint = TableEncryptionService.Convert(this.StageHint, key); } public static Offset Pack(FlatBufferBuilder builder, MiniGameDefenseStageExcelT _o) { if (_o == null) return default(Offset); var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); 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 _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); } var _DefenseFormationBGPrefab = _o.DefenseFormationBGPrefab == null ? default(StringOffset) : builder.CreateString(_o.DefenseFormationBGPrefab); return CreateMiniGameDefenseStageExcel( builder, _o.Id, _Name, _o.EventContentId, _o.StageDifficulty_, _o.StageDifficultyLocalize, _o.StageNumber, _o.StageDisplay, _o.PrevStageId, _o.EchelonExtensionType_, _o.BattleDuration, _o.StageEnterCostType, _o.StageEnterCostId, _o.StageEnterCostAmount, _o.EventContentStageRewardId, _EnterScenarioGroupId, _ClearScenarioGroupId, _o.StageTopography_, _o.RecommandLevel, _o.GroundID, _o.ContentType_, _StarGoal, _StarGoalAmount, _DefenseFormationBGPrefab, _o.DefenseFormationBGPrefabScale, _o.FixedEchelon, _o.MininageDefenseFixedStatId, _o.StageHint); } } public class MiniGameDefenseStageExcelT { public long Id { get; set; } public string Name { get; set; } public long EventContentId { get; set; } public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get; set; } public uint StageDifficultyLocalize { get; set; } public int StageNumber { get; set; } public int StageDisplay { get; set; } public long PrevStageId { get; set; } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { 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 long EventContentStageRewardId { get; set; } public List EnterScenarioGroupId { get; set; } public List ClearScenarioGroupId { get; set; } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get; set; } public int RecommandLevel { get; set; } public long GroundID { get; set; } public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; } public List StarGoal { get; set; } public List StarGoalAmount { get; set; } public string DefenseFormationBGPrefab { get; set; } public float DefenseFormationBGPrefabScale { get; set; } public long FixedEchelon { get; set; } public long MininageDefenseFixedStatId { get; set; } public uint StageHint { get; set; } public MiniGameDefenseStageExcelT() { this.Id = 0; this.Name = null; this.EventContentId = 0; this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; this.StageDifficultyLocalize = 0; this.StageNumber = 0; this.StageDisplay = 0; this.PrevStageId = 0; this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base; this.BattleDuration = 0; this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.EventContentStageRewardId = 0; this.EnterScenarioGroupId = null; this.ClearScenarioGroupId = null; this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.GroundID = 0; this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; this.StarGoal = null; this.StarGoalAmount = null; this.DefenseFormationBGPrefab = null; this.DefenseFormationBGPrefabScale = 0.0f; this.FixedEchelon = 0; this.MininageDefenseFixedStatId = 0; this.StageHint = 0; } } static public class MiniGameDefenseStageExcelVerify { 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.VerifyField(tablePos, 12 /*StageDifficultyLocalize*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 14 /*StageNumber*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 16 /*StageDisplay*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 18 /*PrevStageId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*EchelonExtensionType_*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyField(tablePos, 22 /*BattleDuration*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 24 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) && verifier.VerifyField(tablePos, 26 /*StageEnterCostId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 28 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 30 /*EventContentStageRewardId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 32 /*EnterScenarioGroupId*/, 8 /*long*/, false) && verifier.VerifyVectorOfData(tablePos, 34 /*ClearScenarioGroupId*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 36 /*StageTopography_*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) && verifier.VerifyField(tablePos, 38 /*RecommandLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 40 /*GroundID*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 42 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) && verifier.VerifyVectorOfData(tablePos, 44 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) && verifier.VerifyVectorOfData(tablePos, 46 /*StarGoalAmount*/, 4 /*int*/, false) && verifier.VerifyString(tablePos, 48 /*DefenseFormationBGPrefab*/, false) && verifier.VerifyField(tablePos, 50 /*DefenseFormationBGPrefabScale*/, 4 /*float*/, 4, false) && verifier.VerifyField(tablePos, 52 /*FixedEchelon*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 54 /*MininageDefenseFixedStatId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 56 /*StageHint*/, 4 /*uint*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }