// // 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 WeekDungeonGroupBuffExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static WeekDungeonGroupBuffExcel GetRootAsWeekDungeonGroupBuffExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonGroupBuffExcel(_bb, new WeekDungeonGroupBuffExcel()); } public static WeekDungeonGroupBuffExcel GetRootAsWeekDungeonGroupBuffExcel(ByteBuffer _bb, WeekDungeonGroupBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public WeekDungeonGroupBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long WeekDungeonBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.School School { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public uint FormationLocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string SkillGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSkillGroupIdBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array(12); } public static Offset CreateWeekDungeonGroupBuffExcel(FlatBufferBuilder builder, long WeekDungeonBuffId = 0, SCHALE.Common.FlatData.School School = SCHALE.Common.FlatData.School.None, uint RecommandLocalizeEtcId = 0, uint FormationLocalizeEtcId = 0, StringOffset SkillGroupIdOffset = default(StringOffset)) { builder.StartTable(5); WeekDungeonGroupBuffExcel.AddWeekDungeonBuffId(builder, WeekDungeonBuffId); WeekDungeonGroupBuffExcel.AddSkillGroupId(builder, SkillGroupIdOffset); WeekDungeonGroupBuffExcel.AddFormationLocalizeEtcId(builder, FormationLocalizeEtcId); WeekDungeonGroupBuffExcel.AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId); WeekDungeonGroupBuffExcel.AddSchool(builder, School); return WeekDungeonGroupBuffExcel.EndWeekDungeonGroupBuffExcel(builder); } public static void StartWeekDungeonGroupBuffExcel(FlatBufferBuilder builder) { builder.StartTable(5); } public static void AddWeekDungeonBuffId(FlatBufferBuilder builder, long weekDungeonBuffId) { builder.AddLong(0, weekDungeonBuffId, 0); } public static void AddSchool(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school) { builder.AddInt(1, (int)school, 0); } public static void AddRecommandLocalizeEtcId(FlatBufferBuilder builder, uint recommandLocalizeEtcId) { builder.AddUint(2, recommandLocalizeEtcId, 0); } public static void AddFormationLocalizeEtcId(FlatBufferBuilder builder, uint formationLocalizeEtcId) { builder.AddUint(3, formationLocalizeEtcId, 0); } public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(4, skillGroupIdOffset.Value, 0); } public static Offset EndWeekDungeonGroupBuffExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class WeekDungeonGroupBuffExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*WeekDungeonBuffId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*School*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) && verifier.VerifyField(tablePos, 8 /*RecommandLocalizeEtcId*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 10 /*FormationLocalizeEtcId*/, 4 /*uint*/, 4, false) && verifier.VerifyString(tablePos, 12 /*SkillGroupId*/, false) && verifier.VerifyTableEnd(tablePos); } } }