// // 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 TimeAttackDungeonGeasExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static TimeAttackDungeonGeasExcel GetRootAsTimeAttackDungeonGeasExcel(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonGeasExcel(_bb, new TimeAttackDungeonGeasExcel()); } public static TimeAttackDungeonGeasExcel GetRootAsTimeAttackDungeonGeasExcel(ByteBuffer _bb, TimeAttackDungeonGeasExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public TimeAttackDungeonGeasExcel __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 SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None; } } public uint LocalizeEtcKey { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearDefaultPoint { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearTimeWeightPoint { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TimeWeightConst { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Difficulty { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int RecommandLevel { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long GroundId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string AllyPassiveSkillId(int j) { int o = __p.__offset(24); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int AllyPassiveSkillIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } public int AllyPassiveSkillLevel(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int AllyPassiveSkillLevelLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_span(26, 4); } #else public ArraySegment? GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(26); } #endif public int[] GetAllyPassiveSkillLevelArray() { return __p.__vector_as_array(26); } public string EnemyPassiveSkillId(int j) { int o = __p.__offset(28); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int EnemyPassiveSkillIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } public int EnemyPassiveSkillLevel(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } public int EnemyPassiveSkillLevelLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_span(30, 4); } #else public ArraySegment? GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(30); } #endif public int[] GetEnemyPassiveSkillLevelArray() { return __p.__vector_as_array(30); } public string GeasIconPath(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int GeasIconPathLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } public uint GeasLocalizeEtcKey(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } public int GeasLocalizeEtcKeyLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetGeasLocalizeEtcKeyBytes() { return __p.__vector_as_span(34, 4); } #else public ArraySegment? GetGeasLocalizeEtcKeyBytes() { return __p.__vector_as_arraysegment(34); } #endif public uint[] GetGeasLocalizeEtcKeyArray() { return __p.__vector_as_array(34); } public static Offset CreateTimeAttackDungeonGeasExcel(FlatBufferBuilder builder, long Id = 0, SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType = SCHALE.Common.FlatData.TimeAttackDungeonType.None, uint LocalizeEtcKey = 0, long BattleDuration = 0, long ClearDefaultPoint = 0, long ClearTimeWeightPoint = 0, long TimeWeightConst = 0, int Difficulty = 0, int RecommandLevel = 0, long GroundId = 0, VectorOffset AllyPassiveSkillIdOffset = default(VectorOffset), VectorOffset AllyPassiveSkillLevelOffset = default(VectorOffset), VectorOffset EnemyPassiveSkillIdOffset = default(VectorOffset), VectorOffset EnemyPassiveSkillLevelOffset = default(VectorOffset), VectorOffset GeasIconPathOffset = default(VectorOffset), VectorOffset GeasLocalizeEtcKeyOffset = default(VectorOffset)) { builder.StartTable(16); TimeAttackDungeonGeasExcel.AddGroundId(builder, GroundId); TimeAttackDungeonGeasExcel.AddTimeWeightConst(builder, TimeWeightConst); TimeAttackDungeonGeasExcel.AddClearTimeWeightPoint(builder, ClearTimeWeightPoint); TimeAttackDungeonGeasExcel.AddClearDefaultPoint(builder, ClearDefaultPoint); TimeAttackDungeonGeasExcel.AddBattleDuration(builder, BattleDuration); TimeAttackDungeonGeasExcel.AddId(builder, Id); TimeAttackDungeonGeasExcel.AddGeasLocalizeEtcKey(builder, GeasLocalizeEtcKeyOffset); TimeAttackDungeonGeasExcel.AddGeasIconPath(builder, GeasIconPathOffset); TimeAttackDungeonGeasExcel.AddEnemyPassiveSkillLevel(builder, EnemyPassiveSkillLevelOffset); TimeAttackDungeonGeasExcel.AddEnemyPassiveSkillId(builder, EnemyPassiveSkillIdOffset); TimeAttackDungeonGeasExcel.AddAllyPassiveSkillLevel(builder, AllyPassiveSkillLevelOffset); TimeAttackDungeonGeasExcel.AddAllyPassiveSkillId(builder, AllyPassiveSkillIdOffset); TimeAttackDungeonGeasExcel.AddRecommandLevel(builder, RecommandLevel); TimeAttackDungeonGeasExcel.AddDifficulty(builder, Difficulty); TimeAttackDungeonGeasExcel.AddLocalizeEtcKey(builder, LocalizeEtcKey); TimeAttackDungeonGeasExcel.AddTimeAttackDungeonType(builder, TimeAttackDungeonType); return TimeAttackDungeonGeasExcel.EndTimeAttackDungeonGeasExcel(builder); } public static void StartTimeAttackDungeonGeasExcel(FlatBufferBuilder builder) { builder.StartTable(16); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddTimeAttackDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TimeAttackDungeonType timeAttackDungeonType) { builder.AddInt(1, (int)timeAttackDungeonType, 0); } public static void AddLocalizeEtcKey(FlatBufferBuilder builder, uint localizeEtcKey) { builder.AddUint(2, localizeEtcKey, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(3, battleDuration, 0); } public static void AddClearDefaultPoint(FlatBufferBuilder builder, long clearDefaultPoint) { builder.AddLong(4, clearDefaultPoint, 0); } public static void AddClearTimeWeightPoint(FlatBufferBuilder builder, long clearTimeWeightPoint) { builder.AddLong(5, clearTimeWeightPoint, 0); } public static void AddTimeWeightConst(FlatBufferBuilder builder, long timeWeightConst) { builder.AddLong(6, timeWeightConst, 0); } public static void AddDifficulty(FlatBufferBuilder builder, int difficulty) { builder.AddInt(7, difficulty, 0); } public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(8, recommandLevel, 0); } public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(9, groundId, 0); } public static void AddAllyPassiveSkillId(FlatBufferBuilder builder, VectorOffset allyPassiveSkillIdOffset) { builder.AddOffset(10, allyPassiveSkillIdOffset.Value, 0); } public static VectorOffset CreateAllyPassiveSkillIdVector(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 CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartAllyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddAllyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset allyPassiveSkillLevelOffset) { builder.AddOffset(11, allyPassiveSkillLevelOffset.Value, 0); } public static VectorOffset CreateAllyPassiveSkillLevelVector(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 CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartAllyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddEnemyPassiveSkillId(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillIdOffset) { builder.AddOffset(12, enemyPassiveSkillIdOffset.Value, 0); } public static VectorOffset CreateEnemyPassiveSkillIdVector(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 CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartEnemyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddEnemyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillLevelOffset) { builder.AddOffset(13, enemyPassiveSkillLevelOffset.Value, 0); } public static VectorOffset CreateEnemyPassiveSkillLevelVector(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 CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartEnemyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddGeasIconPath(FlatBufferBuilder builder, VectorOffset geasIconPathOffset) { builder.AddOffset(14, geasIconPathOffset.Value, 0); } public static VectorOffset CreateGeasIconPathVector(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 CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartGeasIconPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddGeasLocalizeEtcKey(FlatBufferBuilder builder, VectorOffset geasLocalizeEtcKeyOffset) { builder.AddOffset(15, geasLocalizeEtcKeyOffset.Value, 0); } public static VectorOffset CreateGeasLocalizeEtcKeyVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartGeasLocalizeEtcKeyVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static Offset EndTimeAttackDungeonGeasExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class TimeAttackDungeonGeasExcelVerify { 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 /*TimeAttackDungeonType*/, 4 /*SCHALE.Common.FlatData.TimeAttackDungeonType*/, 4, false) && verifier.VerifyField(tablePos, 8 /*LocalizeEtcKey*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 10 /*BattleDuration*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*ClearDefaultPoint*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 14 /*ClearTimeWeightPoint*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 16 /*TimeWeightConst*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 18 /*Difficulty*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 20 /*RecommandLevel*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 22 /*GroundId*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfStrings(tablePos, 24 /*AllyPassiveSkillId*/, false) && verifier.VerifyVectorOfData(tablePos, 26 /*AllyPassiveSkillLevel*/, 4 /*int*/, false) && verifier.VerifyVectorOfStrings(tablePos, 28 /*EnemyPassiveSkillId*/, false) && verifier.VerifyVectorOfData(tablePos, 30 /*EnemyPassiveSkillLevel*/, 4 /*int*/, false) && verifier.VerifyVectorOfStrings(tablePos, 32 /*GeasIconPath*/, false) && verifier.VerifyVectorOfData(tablePos, 34 /*GeasLocalizeEtcKey*/, 4 /*uint*/, false) && verifier.VerifyTableEnd(tablePos); } } }