// // 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 EliminateRaidStageExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static EliminateRaidStageExcel GetRootAsEliminateRaidStageExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageExcel(_bb, new EliminateRaidStageExcel()); } public static EliminateRaidStageExcel GetRootAsEliminateRaidStageExcel(ByteBuffer _bb, EliminateRaidStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public EliminateRaidStageExcel __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 bool UseBossIndex { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool UseBossAIPhaseSync { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string RaidBossGroup { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetRaidBossGroupBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetRaidBossGroupBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetRaidBossGroupArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } public long RaidEnterCostId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RaidEnterCostAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string BossSpinePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBossSpinePathBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetBossSpinePathBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetBossSpinePathArray() { return __p.__vector_as_array(18); } public string PortraitPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetPortraitPathBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetPortraitPathBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetPortraitPathArray() { return __p.__vector_as_array(20); } public string BGPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBGPathBytes() { return __p.__vector_as_span(22, 1); } #else public ArraySegment? GetBGPathBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetBGPathArray() { return __p.__vector_as_array(22); } public long RaidCharacterId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BossCharacterId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int BossCharacterIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetBossCharacterIdBytes() { return __p.__vector_as_span(26, 8); } #else public ArraySegment? GetBossCharacterIdBytes() { return __p.__vector_as_arraysegment(26); } #endif public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(26); } public SCHALE.Common.FlatData.Difficulty Difficulty_ { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.Difficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Difficulty.Normal; } } public bool IsOpen { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long MaxPlayerCount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RaidRoomLifeTime { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long BattleDuration { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GroundId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string GroundDevName { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGroundDevNameBytes() { return __p.__vector_as_span(40, 1); } #else public ArraySegment? GetGroundDevNameBytes() { return __p.__vector_as_arraysegment(40); } #endif public byte[] GetGroundDevNameArray() { return __p.__vector_as_array(40); } public string EnterTimeLine { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnterTimeLineBytes() { return __p.__vector_as_span(42, 1); } #else public ArraySegment? GetEnterTimeLineBytes() { return __p.__vector_as_arraysegment(42); } #endif public byte[] GetEnterTimeLineArray() { return __p.__vector_as_array(42); } public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } public long DefaultClearScore { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MaximumScore { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PerSecondMinusScore { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long HPPercentScore { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MinimumAcquisitionScore { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MaximumAcquisitionScore { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RaidRewardGroupId { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string BattleReadyTimelinePath(int j) { int o = __p.__offset(60); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int BattleReadyTimelinePathLength { get { int o = __p.__offset(60); return o != 0 ? __p.__vector_len(o) : 0; } } public int BattleReadyTimelinePhaseStart(int j) { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int BattleReadyTimelinePhaseStartLength { get { int o = __p.__offset(62); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_span(62, 4); } #else public ArraySegment? GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_arraysegment(62); } #endif public int[] GetBattleReadyTimelinePhaseStartArray() { return __p.__vector_as_array(62); } public int BattleReadyTimelinePhaseEnd(int j) { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int BattleReadyTimelinePhaseEndLength { get { int o = __p.__offset(64); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_span(64, 4); } #else public ArraySegment? GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_arraysegment(64); } #endif public int[] GetBattleReadyTimelinePhaseEndArray() { return __p.__vector_as_array(64); } public string VictoryTimelinePath { get { int o = __p.__offset(66); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(66, 1); } #else public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(66); } #endif public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(66); } public string PhaseChangeTimelinePath { get { int o = __p.__offset(68); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_span(68, 1); } #else public ArraySegment? GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_arraysegment(68); } #endif public byte[] GetPhaseChangeTimelinePathArray() { return __p.__vector_as_array(68); } public long TimeLinePhase { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public uint EnterScenarioKey { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public uint ClearScenarioKey { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public bool ShowSkillCard { get { int o = __p.__offset(76); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public uint BossBGInfoKey { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public static Offset CreateEliminateRaidStageExcel(FlatBufferBuilder builder, long Id = 0, bool UseBossIndex = false, bool UseBossAIPhaseSync = false, StringOffset RaidBossGroupOffset = default(StringOffset), SCHALE.Common.FlatData.ParcelType RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None, long RaidEnterCostId = 0, int RaidEnterCostAmount = 0, StringOffset BossSpinePathOffset = default(StringOffset), StringOffset PortraitPathOffset = default(StringOffset), StringOffset BGPathOffset = default(StringOffset), long RaidCharacterId = 0, VectorOffset BossCharacterIdOffset = default(VectorOffset), SCHALE.Common.FlatData.Difficulty Difficulty_ = SCHALE.Common.FlatData.Difficulty.Normal, bool IsOpen = false, long MaxPlayerCount = 0, int RaidRoomLifeTime = 0, long BattleDuration = 0, long GroundId = 0, StringOffset GroundDevNameOffset = default(StringOffset), StringOffset EnterTimeLineOffset = default(StringOffset), SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None, long DefaultClearScore = 0, long MaximumScore = 0, long PerSecondMinusScore = 0, long HPPercentScore = 0, long MinimumAcquisitionScore = 0, long MaximumAcquisitionScore = 0, long RaidRewardGroupId = 0, VectorOffset BattleReadyTimelinePathOffset = default(VectorOffset), VectorOffset BattleReadyTimelinePhaseStartOffset = default(VectorOffset), VectorOffset BattleReadyTimelinePhaseEndOffset = default(VectorOffset), StringOffset VictoryTimelinePathOffset = default(StringOffset), StringOffset PhaseChangeTimelinePathOffset = default(StringOffset), long TimeLinePhase = 0, uint EnterScenarioKey = 0, uint ClearScenarioKey = 0, bool ShowSkillCard = false, uint BossBGInfoKey = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base) { builder.StartTable(39); EliminateRaidStageExcel.AddTimeLinePhase(builder, TimeLinePhase); EliminateRaidStageExcel.AddRaidRewardGroupId(builder, RaidRewardGroupId); EliminateRaidStageExcel.AddMaximumAcquisitionScore(builder, MaximumAcquisitionScore); EliminateRaidStageExcel.AddMinimumAcquisitionScore(builder, MinimumAcquisitionScore); EliminateRaidStageExcel.AddHPPercentScore(builder, HPPercentScore); EliminateRaidStageExcel.AddPerSecondMinusScore(builder, PerSecondMinusScore); EliminateRaidStageExcel.AddMaximumScore(builder, MaximumScore); EliminateRaidStageExcel.AddDefaultClearScore(builder, DefaultClearScore); EliminateRaidStageExcel.AddGroundId(builder, GroundId); EliminateRaidStageExcel.AddBattleDuration(builder, BattleDuration); EliminateRaidStageExcel.AddMaxPlayerCount(builder, MaxPlayerCount); EliminateRaidStageExcel.AddRaidCharacterId(builder, RaidCharacterId); EliminateRaidStageExcel.AddRaidEnterCostId(builder, RaidEnterCostId); EliminateRaidStageExcel.AddId(builder, Id); EliminateRaidStageExcel.AddEchelonExtensionType_(builder, EchelonExtensionType_); EliminateRaidStageExcel.AddBossBGInfoKey(builder, BossBGInfoKey); EliminateRaidStageExcel.AddClearScenarioKey(builder, ClearScenarioKey); EliminateRaidStageExcel.AddEnterScenarioKey(builder, EnterScenarioKey); EliminateRaidStageExcel.AddPhaseChangeTimelinePath(builder, PhaseChangeTimelinePathOffset); EliminateRaidStageExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); EliminateRaidStageExcel.AddBattleReadyTimelinePhaseEnd(builder, BattleReadyTimelinePhaseEndOffset); EliminateRaidStageExcel.AddBattleReadyTimelinePhaseStart(builder, BattleReadyTimelinePhaseStartOffset); EliminateRaidStageExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); EliminateRaidStageExcel.AddTacticEnvironment_(builder, TacticEnvironment_); EliminateRaidStageExcel.AddEnterTimeLine(builder, EnterTimeLineOffset); EliminateRaidStageExcel.AddGroundDevName(builder, GroundDevNameOffset); EliminateRaidStageExcel.AddRaidRoomLifeTime(builder, RaidRoomLifeTime); EliminateRaidStageExcel.AddDifficulty_(builder, Difficulty_); EliminateRaidStageExcel.AddBossCharacterId(builder, BossCharacterIdOffset); EliminateRaidStageExcel.AddBGPath(builder, BGPathOffset); EliminateRaidStageExcel.AddPortraitPath(builder, PortraitPathOffset); EliminateRaidStageExcel.AddBossSpinePath(builder, BossSpinePathOffset); EliminateRaidStageExcel.AddRaidEnterCostAmount(builder, RaidEnterCostAmount); EliminateRaidStageExcel.AddRaidEnterCostType(builder, RaidEnterCostType); EliminateRaidStageExcel.AddRaidBossGroup(builder, RaidBossGroupOffset); EliminateRaidStageExcel.AddShowSkillCard(builder, ShowSkillCard); EliminateRaidStageExcel.AddIsOpen(builder, IsOpen); EliminateRaidStageExcel.AddUseBossAIPhaseSync(builder, UseBossAIPhaseSync); EliminateRaidStageExcel.AddUseBossIndex(builder, UseBossIndex); return EliminateRaidStageExcel.EndEliminateRaidStageExcel(builder); } public static void StartEliminateRaidStageExcel(FlatBufferBuilder builder) { builder.StartTable(39); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddUseBossIndex(FlatBufferBuilder builder, bool useBossIndex) { builder.AddBool(1, useBossIndex, false); } public static void AddUseBossAIPhaseSync(FlatBufferBuilder builder, bool useBossAIPhaseSync) { builder.AddBool(2, useBossAIPhaseSync, false); } public static void AddRaidBossGroup(FlatBufferBuilder builder, StringOffset raidBossGroupOffset) { builder.AddOffset(3, raidBossGroupOffset.Value, 0); } public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(4, (int)raidEnterCostType, 0); } public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(5, raidEnterCostId, 0); } public static void AddRaidEnterCostAmount(FlatBufferBuilder builder, int raidEnterCostAmount) { builder.AddInt(6, raidEnterCostAmount, 0); } public static void AddBossSpinePath(FlatBufferBuilder builder, StringOffset bossSpinePathOffset) { builder.AddOffset(7, bossSpinePathOffset.Value, 0); } public static void AddPortraitPath(FlatBufferBuilder builder, StringOffset portraitPathOffset) { builder.AddOffset(8, portraitPathOffset.Value, 0); } public static void AddBGPath(FlatBufferBuilder builder, StringOffset bGPathOffset) { builder.AddOffset(9, bGPathOffset.Value, 0); } public static void AddRaidCharacterId(FlatBufferBuilder builder, long raidCharacterId) { builder.AddLong(10, raidCharacterId, 0); } public static void AddBossCharacterId(FlatBufferBuilder builder, VectorOffset bossCharacterIdOffset) { builder.AddOffset(11, bossCharacterIdOffset.Value, 0); } public static VectorOffset CreateBossCharacterIdVector(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 CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartBossCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddDifficulty_(FlatBufferBuilder builder, SCHALE.Common.FlatData.Difficulty difficulty_) { builder.AddInt(12, (int)difficulty_, 0); } public static void AddIsOpen(FlatBufferBuilder builder, bool isOpen) { builder.AddBool(13, isOpen, false); } public static void AddMaxPlayerCount(FlatBufferBuilder builder, long maxPlayerCount) { builder.AddLong(14, maxPlayerCount, 0); } public static void AddRaidRoomLifeTime(FlatBufferBuilder builder, int raidRoomLifeTime) { builder.AddInt(15, raidRoomLifeTime, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(16, battleDuration, 0); } public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(17, groundId, 0); } public static void AddGroundDevName(FlatBufferBuilder builder, StringOffset groundDevNameOffset) { builder.AddOffset(18, groundDevNameOffset.Value, 0); } public static void AddEnterTimeLine(FlatBufferBuilder builder, StringOffset enterTimeLineOffset) { builder.AddOffset(19, enterTimeLineOffset.Value, 0); } public static void AddTacticEnvironment_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEnvironment tacticEnvironment_) { builder.AddInt(20, (int)tacticEnvironment_, 0); } public static void AddDefaultClearScore(FlatBufferBuilder builder, long defaultClearScore) { builder.AddLong(21, defaultClearScore, 0); } public static void AddMaximumScore(FlatBufferBuilder builder, long maximumScore) { builder.AddLong(22, maximumScore, 0); } public static void AddPerSecondMinusScore(FlatBufferBuilder builder, long perSecondMinusScore) { builder.AddLong(23, perSecondMinusScore, 0); } public static void AddHPPercentScore(FlatBufferBuilder builder, long hPPercentScore) { builder.AddLong(24, hPPercentScore, 0); } public static void AddMinimumAcquisitionScore(FlatBufferBuilder builder, long minimumAcquisitionScore) { builder.AddLong(25, minimumAcquisitionScore, 0); } public static void AddMaximumAcquisitionScore(FlatBufferBuilder builder, long maximumAcquisitionScore) { builder.AddLong(26, maximumAcquisitionScore, 0); } public static void AddRaidRewardGroupId(FlatBufferBuilder builder, long raidRewardGroupId) { builder.AddLong(27, raidRewardGroupId, 0); } public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePathOffset) { builder.AddOffset(28, battleReadyTimelinePathOffset.Value, 0); } public static VectorOffset CreateBattleReadyTimelinePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartBattleReadyTimelinePathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddBattleReadyTimelinePhaseStart(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseStartOffset) { builder.AddOffset(29, battleReadyTimelinePhaseStartOffset.Value, 0); } public static VectorOffset CreateBattleReadyTimelinePhaseStartVector(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 CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartBattleReadyTimelinePhaseStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddBattleReadyTimelinePhaseEnd(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseEndOffset) { builder.AddOffset(30, battleReadyTimelinePhaseEndOffset.Value, 0); } public static VectorOffset CreateBattleReadyTimelinePhaseEndVector(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 CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartBattleReadyTimelinePhaseEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(31, victoryTimelinePathOffset.Value, 0); } public static void AddPhaseChangeTimelinePath(FlatBufferBuilder builder, StringOffset phaseChangeTimelinePathOffset) { builder.AddOffset(32, phaseChangeTimelinePathOffset.Value, 0); } public static void AddTimeLinePhase(FlatBufferBuilder builder, long timeLinePhase) { builder.AddLong(33, timeLinePhase, 0); } public static void AddEnterScenarioKey(FlatBufferBuilder builder, uint enterScenarioKey) { builder.AddUint(34, enterScenarioKey, 0); } public static void AddClearScenarioKey(FlatBufferBuilder builder, uint clearScenarioKey) { builder.AddUint(35, clearScenarioKey, 0); } public static void AddShowSkillCard(FlatBufferBuilder builder, bool showSkillCard) { builder.AddBool(36, showSkillCard, false); } public static void AddBossBGInfoKey(FlatBufferBuilder builder, uint bossBGInfoKey) { builder.AddUint(37, bossBGInfoKey, 0); } public static void AddEchelonExtensionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType_) { builder.AddInt(38, (int)echelonExtensionType_, 0); } public static Offset EndEliminateRaidStageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } public EliminateRaidStageExcelT UnPack() { var _o = new EliminateRaidStageExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(EliminateRaidStageExcelT _o) { byte[] key = TableEncryptionService.CreateKey("EliminateRaidStage"); _o.Id = TableEncryptionService.Convert(this.Id, key); _o.UseBossIndex = TableEncryptionService.Convert(this.UseBossIndex, key); _o.UseBossAIPhaseSync = TableEncryptionService.Convert(this.UseBossAIPhaseSync, key); _o.RaidBossGroup = TableEncryptionService.Convert(this.RaidBossGroup, key); _o.RaidEnterCostType = TableEncryptionService.Convert(this.RaidEnterCostType, key); _o.RaidEnterCostId = TableEncryptionService.Convert(this.RaidEnterCostId, key); _o.RaidEnterCostAmount = TableEncryptionService.Convert(this.RaidEnterCostAmount, key); _o.BossSpinePath = TableEncryptionService.Convert(this.BossSpinePath, key); _o.PortraitPath = TableEncryptionService.Convert(this.PortraitPath, key); _o.BGPath = TableEncryptionService.Convert(this.BGPath, key); _o.RaidCharacterId = TableEncryptionService.Convert(this.RaidCharacterId, key); _o.BossCharacterId = new List(); for (var _j = 0; _j < this.BossCharacterIdLength; ++_j) {_o.BossCharacterId.Add(TableEncryptionService.Convert(this.BossCharacterId(_j), key));} _o.Difficulty_ = TableEncryptionService.Convert(this.Difficulty_, key); _o.IsOpen = TableEncryptionService.Convert(this.IsOpen, key); _o.MaxPlayerCount = TableEncryptionService.Convert(this.MaxPlayerCount, key); _o.RaidRoomLifeTime = TableEncryptionService.Convert(this.RaidRoomLifeTime, key); _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); _o.GroundDevName = TableEncryptionService.Convert(this.GroundDevName, key); _o.EnterTimeLine = TableEncryptionService.Convert(this.EnterTimeLine, key); _o.TacticEnvironment_ = TableEncryptionService.Convert(this.TacticEnvironment_, key); _o.DefaultClearScore = TableEncryptionService.Convert(this.DefaultClearScore, key); _o.MaximumScore = TableEncryptionService.Convert(this.MaximumScore, key); _o.PerSecondMinusScore = TableEncryptionService.Convert(this.PerSecondMinusScore, key); _o.HPPercentScore = TableEncryptionService.Convert(this.HPPercentScore, key); _o.MinimumAcquisitionScore = TableEncryptionService.Convert(this.MinimumAcquisitionScore, key); _o.MaximumAcquisitionScore = TableEncryptionService.Convert(this.MaximumAcquisitionScore, key); _o.RaidRewardGroupId = TableEncryptionService.Convert(this.RaidRewardGroupId, key); _o.BattleReadyTimelinePath = new List(); for (var _j = 0; _j < this.BattleReadyTimelinePathLength; ++_j) {_o.BattleReadyTimelinePath.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePath(_j), key));} _o.BattleReadyTimelinePhaseStart = new List(); for (var _j = 0; _j < this.BattleReadyTimelinePhaseStartLength; ++_j) {_o.BattleReadyTimelinePhaseStart.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseStart(_j), key));} _o.BattleReadyTimelinePhaseEnd = new List(); for (var _j = 0; _j < this.BattleReadyTimelinePhaseEndLength; ++_j) {_o.BattleReadyTimelinePhaseEnd.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseEnd(_j), key));} _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); _o.PhaseChangeTimelinePath = TableEncryptionService.Convert(this.PhaseChangeTimelinePath, key); _o.TimeLinePhase = TableEncryptionService.Convert(this.TimeLinePhase, key); _o.EnterScenarioKey = TableEncryptionService.Convert(this.EnterScenarioKey, key); _o.ClearScenarioKey = TableEncryptionService.Convert(this.ClearScenarioKey, key); _o.ShowSkillCard = TableEncryptionService.Convert(this.ShowSkillCard, key); _o.BossBGInfoKey = TableEncryptionService.Convert(this.BossBGInfoKey, key); _o.EchelonExtensionType_ = TableEncryptionService.Convert(this.EchelonExtensionType_, key); } public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageExcelT _o) { if (_o == null) return default(Offset); var _RaidBossGroup = _o.RaidBossGroup == null ? default(StringOffset) : builder.CreateString(_o.RaidBossGroup); var _BossSpinePath = _o.BossSpinePath == null ? default(StringOffset) : builder.CreateString(_o.BossSpinePath); var _PortraitPath = _o.PortraitPath == null ? default(StringOffset) : builder.CreateString(_o.PortraitPath); var _BGPath = _o.BGPath == null ? default(StringOffset) : builder.CreateString(_o.BGPath); var _BossCharacterId = default(VectorOffset); if (_o.BossCharacterId != null) { var __BossCharacterId = _o.BossCharacterId.ToArray(); _BossCharacterId = CreateBossCharacterIdVector(builder, __BossCharacterId); } var _GroundDevName = _o.GroundDevName == null ? default(StringOffset) : builder.CreateString(_o.GroundDevName); var _EnterTimeLine = _o.EnterTimeLine == null ? default(StringOffset) : builder.CreateString(_o.EnterTimeLine); var _BattleReadyTimelinePath = default(VectorOffset); if (_o.BattleReadyTimelinePath != null) { var __BattleReadyTimelinePath = new StringOffset[_o.BattleReadyTimelinePath.Count]; for (var _j = 0; _j < __BattleReadyTimelinePath.Length; ++_j) { __BattleReadyTimelinePath[_j] = builder.CreateString(_o.BattleReadyTimelinePath[_j]); } _BattleReadyTimelinePath = CreateBattleReadyTimelinePathVector(builder, __BattleReadyTimelinePath); } var _BattleReadyTimelinePhaseStart = default(VectorOffset); if (_o.BattleReadyTimelinePhaseStart != null) { var __BattleReadyTimelinePhaseStart = _o.BattleReadyTimelinePhaseStart.ToArray(); _BattleReadyTimelinePhaseStart = CreateBattleReadyTimelinePhaseStartVector(builder, __BattleReadyTimelinePhaseStart); } var _BattleReadyTimelinePhaseEnd = default(VectorOffset); if (_o.BattleReadyTimelinePhaseEnd != null) { var __BattleReadyTimelinePhaseEnd = _o.BattleReadyTimelinePhaseEnd.ToArray(); _BattleReadyTimelinePhaseEnd = CreateBattleReadyTimelinePhaseEndVector(builder, __BattleReadyTimelinePhaseEnd); } var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); var _PhaseChangeTimelinePath = _o.PhaseChangeTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.PhaseChangeTimelinePath); return CreateEliminateRaidStageExcel( builder, _o.Id, _o.UseBossIndex, _o.UseBossAIPhaseSync, _RaidBossGroup, _o.RaidEnterCostType, _o.RaidEnterCostId, _o.RaidEnterCostAmount, _BossSpinePath, _PortraitPath, _BGPath, _o.RaidCharacterId, _BossCharacterId, _o.Difficulty_, _o.IsOpen, _o.MaxPlayerCount, _o.RaidRoomLifeTime, _o.BattleDuration, _o.GroundId, _GroundDevName, _EnterTimeLine, _o.TacticEnvironment_, _o.DefaultClearScore, _o.MaximumScore, _o.PerSecondMinusScore, _o.HPPercentScore, _o.MinimumAcquisitionScore, _o.MaximumAcquisitionScore, _o.RaidRewardGroupId, _BattleReadyTimelinePath, _BattleReadyTimelinePhaseStart, _BattleReadyTimelinePhaseEnd, _VictoryTimelinePath, _PhaseChangeTimelinePath, _o.TimeLinePhase, _o.EnterScenarioKey, _o.ClearScenarioKey, _o.ShowSkillCard, _o.BossBGInfoKey, _o.EchelonExtensionType_); } } public class EliminateRaidStageExcelT { public long Id { get; set; } public bool UseBossIndex { get; set; } public bool UseBossAIPhaseSync { get; set; } public string RaidBossGroup { get; set; } public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get; set; } public long RaidEnterCostId { get; set; } public int RaidEnterCostAmount { get; set; } public string BossSpinePath { get; set; } public string PortraitPath { get; set; } public string BGPath { get; set; } public long RaidCharacterId { get; set; } public List BossCharacterId { get; set; } public SCHALE.Common.FlatData.Difficulty Difficulty_ { get; set; } public bool IsOpen { get; set; } public long MaxPlayerCount { get; set; } public int RaidRoomLifeTime { get; set; } public long BattleDuration { get; set; } public long GroundId { get; set; } public string GroundDevName { get; set; } public string EnterTimeLine { get; set; } public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get; set; } public long DefaultClearScore { get; set; } public long MaximumScore { get; set; } public long PerSecondMinusScore { get; set; } public long HPPercentScore { get; set; } public long MinimumAcquisitionScore { get; set; } public long MaximumAcquisitionScore { get; set; } public long RaidRewardGroupId { get; set; } public List BattleReadyTimelinePath { get; set; } public List BattleReadyTimelinePhaseStart { get; set; } public List BattleReadyTimelinePhaseEnd { get; set; } public string VictoryTimelinePath { get; set; } public string PhaseChangeTimelinePath { get; set; } public long TimeLinePhase { get; set; } public uint EnterScenarioKey { get; set; } public uint ClearScenarioKey { get; set; } public bool ShowSkillCard { get; set; } public uint BossBGInfoKey { get; set; } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get; set; } public EliminateRaidStageExcelT() { this.Id = 0; this.UseBossIndex = false; this.UseBossAIPhaseSync = false; this.RaidBossGroup = null; this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None; this.RaidEnterCostId = 0; this.RaidEnterCostAmount = 0; this.BossSpinePath = null; this.PortraitPath = null; this.BGPath = null; this.RaidCharacterId = 0; this.BossCharacterId = null; this.Difficulty_ = SCHALE.Common.FlatData.Difficulty.Normal; this.IsOpen = false; this.MaxPlayerCount = 0; this.RaidRoomLifeTime = 0; this.BattleDuration = 0; this.GroundId = 0; this.GroundDevName = null; this.EnterTimeLine = null; this.TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None; this.DefaultClearScore = 0; this.MaximumScore = 0; this.PerSecondMinusScore = 0; this.HPPercentScore = 0; this.MinimumAcquisitionScore = 0; this.MaximumAcquisitionScore = 0; this.RaidRewardGroupId = 0; this.BattleReadyTimelinePath = null; this.BattleReadyTimelinePhaseStart = null; this.BattleReadyTimelinePhaseEnd = null; this.VictoryTimelinePath = null; this.PhaseChangeTimelinePath = null; this.TimeLinePhase = 0; this.EnterScenarioKey = 0; this.ClearScenarioKey = 0; this.ShowSkillCard = false; this.BossBGInfoKey = 0; this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base; } } static public class EliminateRaidStageExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*UseBossIndex*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 8 /*UseBossAIPhaseSync*/, 1 /*bool*/, 1, false) && verifier.VerifyString(tablePos, 10 /*RaidBossGroup*/, false) && verifier.VerifyField(tablePos, 12 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) && verifier.VerifyField(tablePos, 14 /*RaidEnterCostId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 16 /*RaidEnterCostAmount*/, 4 /*int*/, 4, false) && verifier.VerifyString(tablePos, 18 /*BossSpinePath*/, false) && verifier.VerifyString(tablePos, 20 /*PortraitPath*/, false) && verifier.VerifyString(tablePos, 22 /*BGPath*/, false) && verifier.VerifyField(tablePos, 24 /*RaidCharacterId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 26 /*BossCharacterId*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 28 /*Difficulty_*/, 4 /*SCHALE.Common.FlatData.Difficulty*/, 4, false) && verifier.VerifyField(tablePos, 30 /*IsOpen*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 32 /*MaxPlayerCount*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 34 /*RaidRoomLifeTime*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 36 /*BattleDuration*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 38 /*GroundId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 40 /*GroundDevName*/, false) && verifier.VerifyString(tablePos, 42 /*EnterTimeLine*/, false) && verifier.VerifyField(tablePos, 44 /*TacticEnvironment_*/, 4 /*SCHALE.Common.FlatData.TacticEnvironment*/, 4, false) && verifier.VerifyField(tablePos, 46 /*DefaultClearScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 48 /*MaximumScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 50 /*PerSecondMinusScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 52 /*HPPercentScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 54 /*MinimumAcquisitionScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 56 /*MaximumAcquisitionScore*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 58 /*RaidRewardGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfStrings(tablePos, 60 /*BattleReadyTimelinePath*/, false) && verifier.VerifyVectorOfData(tablePos, 62 /*BattleReadyTimelinePhaseStart*/, 4 /*int*/, false) && verifier.VerifyVectorOfData(tablePos, 64 /*BattleReadyTimelinePhaseEnd*/, 4 /*int*/, false) && verifier.VerifyString(tablePos, 66 /*VictoryTimelinePath*/, false) && verifier.VerifyString(tablePos, 68 /*PhaseChangeTimelinePath*/, false) && verifier.VerifyField(tablePos, 70 /*TimeLinePhase*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 72 /*EnterScenarioKey*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 74 /*ClearScenarioKey*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 76 /*ShowSkillCard*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 78 /*BossBGInfoKey*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 80 /*EchelonExtensionType_*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }