// // 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 MiniGameRhythmBgmExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static MiniGameRhythmBgmExcel GetRootAsMiniGameRhythmBgmExcel(ByteBuffer _bb) { return GetRootAsMiniGameRhythmBgmExcel(_bb, new MiniGameRhythmBgmExcel()); } public static MiniGameRhythmBgmExcel GetRootAsMiniGameRhythmBgmExcel(ByteBuffer _bb, MiniGameRhythmBgmExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public MiniGameRhythmBgmExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long RhythmBgmId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string StageSelectImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStageSelectImagePathBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetStageSelectImagePathBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetStageSelectImagePathArray() { return __p.__vector_as_array(8); } public long Bpm { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Bgm { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string BgmNameText { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBgmNameTextBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetBgmNameTextBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetBgmNameTextArray() { return __p.__vector_as_array(14); } public string BgmArtistText { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBgmArtistTextBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetBgmArtistTextBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetBgmArtistTextArray() { return __p.__vector_as_array(16); } public bool HasLyricist { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string BgmComposerText { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBgmComposerTextBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetBgmComposerTextBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetBgmComposerTextArray() { return __p.__vector_as_array(20); } public int BgmLength { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateMiniGameRhythmBgmExcel(FlatBufferBuilder builder, long RhythmBgmId = 0, long EventContentId = 0, StringOffset StageSelectImagePathOffset = default(StringOffset), long Bpm = 0, long Bgm = 0, StringOffset BgmNameTextOffset = default(StringOffset), StringOffset BgmArtistTextOffset = default(StringOffset), bool HasLyricist = false, StringOffset BgmComposerTextOffset = default(StringOffset), int BgmLength = 0) { builder.StartTable(10); MiniGameRhythmBgmExcel.AddBgm(builder, Bgm); MiniGameRhythmBgmExcel.AddBpm(builder, Bpm); MiniGameRhythmBgmExcel.AddEventContentId(builder, EventContentId); MiniGameRhythmBgmExcel.AddRhythmBgmId(builder, RhythmBgmId); MiniGameRhythmBgmExcel.AddBgmLength(builder, BgmLength); MiniGameRhythmBgmExcel.AddBgmComposerText(builder, BgmComposerTextOffset); MiniGameRhythmBgmExcel.AddBgmArtistText(builder, BgmArtistTextOffset); MiniGameRhythmBgmExcel.AddBgmNameText(builder, BgmNameTextOffset); MiniGameRhythmBgmExcel.AddStageSelectImagePath(builder, StageSelectImagePathOffset); MiniGameRhythmBgmExcel.AddHasLyricist(builder, HasLyricist); return MiniGameRhythmBgmExcel.EndMiniGameRhythmBgmExcel(builder); } public static void StartMiniGameRhythmBgmExcel(FlatBufferBuilder builder) { builder.StartTable(10); } public static void AddRhythmBgmId(FlatBufferBuilder builder, long rhythmBgmId) { builder.AddLong(0, rhythmBgmId, 0); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } public static void AddStageSelectImagePath(FlatBufferBuilder builder, StringOffset stageSelectImagePathOffset) { builder.AddOffset(2, stageSelectImagePathOffset.Value, 0); } public static void AddBpm(FlatBufferBuilder builder, long bpm) { builder.AddLong(3, bpm, 0); } public static void AddBgm(FlatBufferBuilder builder, long bgm) { builder.AddLong(4, bgm, 0); } public static void AddBgmNameText(FlatBufferBuilder builder, StringOffset bgmNameTextOffset) { builder.AddOffset(5, bgmNameTextOffset.Value, 0); } public static void AddBgmArtistText(FlatBufferBuilder builder, StringOffset bgmArtistTextOffset) { builder.AddOffset(6, bgmArtistTextOffset.Value, 0); } public static void AddHasLyricist(FlatBufferBuilder builder, bool hasLyricist) { builder.AddBool(7, hasLyricist, false); } public static void AddBgmComposerText(FlatBufferBuilder builder, StringOffset bgmComposerTextOffset) { builder.AddOffset(8, bgmComposerTextOffset.Value, 0); } public static void AddBgmLength(FlatBufferBuilder builder, int bgmLength) { builder.AddInt(9, bgmLength, 0); } public static Offset EndMiniGameRhythmBgmExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class MiniGameRhythmBgmExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*RhythmBgmId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*EventContentId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 8 /*StageSelectImagePath*/, false) && verifier.VerifyField(tablePos, 10 /*Bpm*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*Bgm*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 14 /*BgmNameText*/, false) && verifier.VerifyString(tablePos, 16 /*BgmArtistText*/, false) && verifier.VerifyField(tablePos, 18 /*HasLyricist*/, 1 /*bool*/, 1, false) && verifier.VerifyString(tablePos, 20 /*BgmComposerText*/, false) && verifier.VerifyField(tablePos, 22 /*BgmLength*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }