// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::Google.FlatBuffers; public struct WorldRaidBossGroupExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static WorldRaidBossGroupExcel GetRootAsWorldRaidBossGroupExcel(ByteBuffer _bb) { return GetRootAsWorldRaidBossGroupExcel(_bb, new WorldRaidBossGroupExcel()); } public static WorldRaidBossGroupExcel GetRootAsWorldRaidBossGroupExcel(ByteBuffer _bb, WorldRaidBossGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public WorldRaidBossGroupExcel __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 long WorldRaidBossGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string WorldBossName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetWorldBossNameBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetWorldBossNameBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetWorldBossNameArray() { return __p.__vector_as_array(8); } public string WorldBossPopupPortrait { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetWorldBossPopupPortraitBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetWorldBossPopupPortraitBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetWorldBossPopupPortraitArray() { return __p.__vector_as_array(10); } public string WorldBossPopupBG { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetWorldBossPopupBGBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetWorldBossPopupBGBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetWorldBossPopupBGArray() { return __p.__vector_as_array(12); } public string WorldBossParcelPortrait { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetWorldBossParcelPortraitBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetWorldBossParcelPortraitBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetWorldBossParcelPortraitArray() { return __p.__vector_as_array(14); } public string WorldBossListParcel { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetWorldBossListParcelBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetWorldBossListParcelBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetWorldBossListParcelArray() { return __p.__vector_as_array(16); } public long WorldBossHP { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool UIHideBeforeSpawn { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool HideAnotherBossKilled { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long WorldBossClearRewardGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long AnotherBossKilled(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int AnotherBossKilledLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetAnotherBossKilledBytes() { return __p.__vector_as_span(26, 8); } #else public ArraySegment? GetAnotherBossKilledBytes() { return __p.__vector_as_arraysegment(26); } #endif public long[] GetAnotherBossKilledArray() { return __p.__vector_as_array(26); } public long EchelonConstraintGroupId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ExclusiveOperatorBossSpawn { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetExclusiveOperatorBossSpawnBytes() { return __p.__vector_as_span(30, 1); } #else public ArraySegment? GetExclusiveOperatorBossSpawnBytes() { return __p.__vector_as_arraysegment(30); } #endif public byte[] GetExclusiveOperatorBossSpawnArray() { return __p.__vector_as_array(30); } public string ExclusiveOperatorBossKill { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetExclusiveOperatorBossKillBytes() { return __p.__vector_as_span(32, 1); } #else public ArraySegment? GetExclusiveOperatorBossKillBytes() { return __p.__vector_as_arraysegment(32); } #endif public byte[] GetExclusiveOperatorBossKillArray() { return __p.__vector_as_array(32); } public string ExclusiveOperatorScenarioBattle { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetExclusiveOperatorScenarioBattleBytes() { return __p.__vector_as_span(34, 1); } #else public ArraySegment? GetExclusiveOperatorScenarioBattleBytes() { return __p.__vector_as_arraysegment(34); } #endif public byte[] GetExclusiveOperatorScenarioBattleArray() { return __p.__vector_as_array(34); } public string ExclusiveOperatorBossDamaged { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetExclusiveOperatorBossDamagedBytes() { return __p.__vector_as_span(36, 1); } #else public ArraySegment? GetExclusiveOperatorBossDamagedBytes() { return __p.__vector_as_arraysegment(36); } #endif public byte[] GetExclusiveOperatorBossDamagedArray() { return __p.__vector_as_array(36); } public long BossGroupOpenCondition { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateWorldRaidBossGroupExcel(FlatBufferBuilder builder, long Id = 0, long WorldRaidBossGroupId = 0, StringOffset WorldBossNameOffset = default(StringOffset), StringOffset WorldBossPopupPortraitOffset = default(StringOffset), StringOffset WorldBossPopupBGOffset = default(StringOffset), StringOffset WorldBossParcelPortraitOffset = default(StringOffset), StringOffset WorldBossListParcelOffset = default(StringOffset), long WorldBossHP = 0, bool UIHideBeforeSpawn = false, bool HideAnotherBossKilled = false, long WorldBossClearRewardGroupId = 0, VectorOffset AnotherBossKilledOffset = default(VectorOffset), long EchelonConstraintGroupId = 0, StringOffset ExclusiveOperatorBossSpawnOffset = default(StringOffset), StringOffset ExclusiveOperatorBossKillOffset = default(StringOffset), StringOffset ExclusiveOperatorScenarioBattleOffset = default(StringOffset), StringOffset ExclusiveOperatorBossDamagedOffset = default(StringOffset), long BossGroupOpenCondition = 0) { builder.StartTable(18); WorldRaidBossGroupExcel.AddBossGroupOpenCondition(builder, BossGroupOpenCondition); WorldRaidBossGroupExcel.AddEchelonConstraintGroupId(builder, EchelonConstraintGroupId); WorldRaidBossGroupExcel.AddWorldBossClearRewardGroupId(builder, WorldBossClearRewardGroupId); WorldRaidBossGroupExcel.AddWorldBossHP(builder, WorldBossHP); WorldRaidBossGroupExcel.AddWorldRaidBossGroupId(builder, WorldRaidBossGroupId); WorldRaidBossGroupExcel.AddId(builder, Id); WorldRaidBossGroupExcel.AddExclusiveOperatorBossDamaged(builder, ExclusiveOperatorBossDamagedOffset); WorldRaidBossGroupExcel.AddExclusiveOperatorScenarioBattle(builder, ExclusiveOperatorScenarioBattleOffset); WorldRaidBossGroupExcel.AddExclusiveOperatorBossKill(builder, ExclusiveOperatorBossKillOffset); WorldRaidBossGroupExcel.AddExclusiveOperatorBossSpawn(builder, ExclusiveOperatorBossSpawnOffset); WorldRaidBossGroupExcel.AddAnotherBossKilled(builder, AnotherBossKilledOffset); WorldRaidBossGroupExcel.AddWorldBossListParcel(builder, WorldBossListParcelOffset); WorldRaidBossGroupExcel.AddWorldBossParcelPortrait(builder, WorldBossParcelPortraitOffset); WorldRaidBossGroupExcel.AddWorldBossPopupBG(builder, WorldBossPopupBGOffset); WorldRaidBossGroupExcel.AddWorldBossPopupPortrait(builder, WorldBossPopupPortraitOffset); WorldRaidBossGroupExcel.AddWorldBossName(builder, WorldBossNameOffset); WorldRaidBossGroupExcel.AddHideAnotherBossKilled(builder, HideAnotherBossKilled); WorldRaidBossGroupExcel.AddUIHideBeforeSpawn(builder, UIHideBeforeSpawn); return WorldRaidBossGroupExcel.EndWorldRaidBossGroupExcel(builder); } public static void StartWorldRaidBossGroupExcel(FlatBufferBuilder builder) { builder.StartTable(18); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddWorldRaidBossGroupId(FlatBufferBuilder builder, long worldRaidBossGroupId) { builder.AddLong(1, worldRaidBossGroupId, 0); } public static void AddWorldBossName(FlatBufferBuilder builder, StringOffset worldBossNameOffset) { builder.AddOffset(2, worldBossNameOffset.Value, 0); } public static void AddWorldBossPopupPortrait(FlatBufferBuilder builder, StringOffset worldBossPopupPortraitOffset) { builder.AddOffset(3, worldBossPopupPortraitOffset.Value, 0); } public static void AddWorldBossPopupBG(FlatBufferBuilder builder, StringOffset worldBossPopupBGOffset) { builder.AddOffset(4, worldBossPopupBGOffset.Value, 0); } public static void AddWorldBossParcelPortrait(FlatBufferBuilder builder, StringOffset worldBossParcelPortraitOffset) { builder.AddOffset(5, worldBossParcelPortraitOffset.Value, 0); } public static void AddWorldBossListParcel(FlatBufferBuilder builder, StringOffset worldBossListParcelOffset) { builder.AddOffset(6, worldBossListParcelOffset.Value, 0); } public static void AddWorldBossHP(FlatBufferBuilder builder, long worldBossHP) { builder.AddLong(7, worldBossHP, 0); } public static void AddUIHideBeforeSpawn(FlatBufferBuilder builder, bool uIHideBeforeSpawn) { builder.AddBool(8, uIHideBeforeSpawn, false); } public static void AddHideAnotherBossKilled(FlatBufferBuilder builder, bool hideAnotherBossKilled) { builder.AddBool(9, hideAnotherBossKilled, false); } public static void AddWorldBossClearRewardGroupId(FlatBufferBuilder builder, long worldBossClearRewardGroupId) { builder.AddLong(10, worldBossClearRewardGroupId, 0); } public static void AddAnotherBossKilled(FlatBufferBuilder builder, VectorOffset anotherBossKilledOffset) { builder.AddOffset(11, anotherBossKilledOffset.Value, 0); } public static VectorOffset CreateAnotherBossKilledVector(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 CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartAnotherBossKilledVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddEchelonConstraintGroupId(FlatBufferBuilder builder, long echelonConstraintGroupId) { builder.AddLong(12, echelonConstraintGroupId, 0); } public static void AddExclusiveOperatorBossSpawn(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossSpawnOffset) { builder.AddOffset(13, exclusiveOperatorBossSpawnOffset.Value, 0); } public static void AddExclusiveOperatorBossKill(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossKillOffset) { builder.AddOffset(14, exclusiveOperatorBossKillOffset.Value, 0); } public static void AddExclusiveOperatorScenarioBattle(FlatBufferBuilder builder, StringOffset exclusiveOperatorScenarioBattleOffset) { builder.AddOffset(15, exclusiveOperatorScenarioBattleOffset.Value, 0); } public static void AddExclusiveOperatorBossDamaged(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossDamagedOffset) { builder.AddOffset(16, exclusiveOperatorBossDamagedOffset.Value, 0); } public static void AddBossGroupOpenCondition(FlatBufferBuilder builder, long bossGroupOpenCondition) { builder.AddLong(17, bossGroupOpenCondition, 0); } public static Offset EndWorldRaidBossGroupExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class WorldRaidBossGroupExcelVerify { 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 /*WorldRaidBossGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 8 /*WorldBossName*/, false) && verifier.VerifyString(tablePos, 10 /*WorldBossPopupPortrait*/, false) && verifier.VerifyString(tablePos, 12 /*WorldBossPopupBG*/, false) && verifier.VerifyString(tablePos, 14 /*WorldBossParcelPortrait*/, false) && verifier.VerifyString(tablePos, 16 /*WorldBossListParcel*/, false) && verifier.VerifyField(tablePos, 18 /*WorldBossHP*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*UIHideBeforeSpawn*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 22 /*HideAnotherBossKilled*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 24 /*WorldBossClearRewardGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 26 /*AnotherBossKilled*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 28 /*EchelonConstraintGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 30 /*ExclusiveOperatorBossSpawn*/, false) && verifier.VerifyString(tablePos, 32 /*ExclusiveOperatorBossKill*/, false) && verifier.VerifyString(tablePos, 34 /*ExclusiveOperatorScenarioBattle*/, false) && verifier.VerifyString(tablePos, 36 /*ExclusiveOperatorBossDamaged*/, false) && verifier.VerifyField(tablePos, 38 /*BossGroupOpenCondition*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } }