// // 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 ConstNewbieContentExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static ConstNewbieContentExcel GetRootAsConstNewbieContentExcel(ByteBuffer _bb) { return GetRootAsConstNewbieContentExcel(_bb, new ConstNewbieContentExcel()); } public static ConstNewbieContentExcel GetRootAsConstNewbieContentExcel(ByteBuffer _bb, ConstNewbieContentExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ConstNewbieContentExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public string NewbieGachaReleaseDate { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNewbieGachaReleaseDateBytes() { return __p.__vector_as_span(4, 1); } #else public ArraySegment? GetNewbieGachaReleaseDateBytes() { return __p.__vector_as_arraysegment(4); } #endif public byte[] GetNewbieGachaReleaseDateArray() { return __p.__vector_as_array(4); } public int NewbieGachaCheckDays { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int NewbieGachaTokenGraceTime { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string NewbieAttendanceReleaseDate { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNewbieAttendanceReleaseDateBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetNewbieAttendanceReleaseDateBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetNewbieAttendanceReleaseDateArray() { return __p.__vector_as_array(10); } public int NewbieAttendanceStartableEndDay { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int NewbieAttendanceEndDay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateConstNewbieContentExcel(FlatBufferBuilder builder, StringOffset NewbieGachaReleaseDateOffset = default(StringOffset), int NewbieGachaCheckDays = 0, int NewbieGachaTokenGraceTime = 0, StringOffset NewbieAttendanceReleaseDateOffset = default(StringOffset), int NewbieAttendanceStartableEndDay = 0, int NewbieAttendanceEndDay = 0) { builder.StartTable(6); ConstNewbieContentExcel.AddNewbieAttendanceEndDay(builder, NewbieAttendanceEndDay); ConstNewbieContentExcel.AddNewbieAttendanceStartableEndDay(builder, NewbieAttendanceStartableEndDay); ConstNewbieContentExcel.AddNewbieAttendanceReleaseDate(builder, NewbieAttendanceReleaseDateOffset); ConstNewbieContentExcel.AddNewbieGachaTokenGraceTime(builder, NewbieGachaTokenGraceTime); ConstNewbieContentExcel.AddNewbieGachaCheckDays(builder, NewbieGachaCheckDays); ConstNewbieContentExcel.AddNewbieGachaReleaseDate(builder, NewbieGachaReleaseDateOffset); return ConstNewbieContentExcel.EndConstNewbieContentExcel(builder); } public static void StartConstNewbieContentExcel(FlatBufferBuilder builder) { builder.StartTable(6); } public static void AddNewbieGachaReleaseDate(FlatBufferBuilder builder, StringOffset newbieGachaReleaseDateOffset) { builder.AddOffset(0, newbieGachaReleaseDateOffset.Value, 0); } public static void AddNewbieGachaCheckDays(FlatBufferBuilder builder, int newbieGachaCheckDays) { builder.AddInt(1, newbieGachaCheckDays, 0); } public static void AddNewbieGachaTokenGraceTime(FlatBufferBuilder builder, int newbieGachaTokenGraceTime) { builder.AddInt(2, newbieGachaTokenGraceTime, 0); } public static void AddNewbieAttendanceReleaseDate(FlatBufferBuilder builder, StringOffset newbieAttendanceReleaseDateOffset) { builder.AddOffset(3, newbieAttendanceReleaseDateOffset.Value, 0); } public static void AddNewbieAttendanceStartableEndDay(FlatBufferBuilder builder, int newbieAttendanceStartableEndDay) { builder.AddInt(4, newbieAttendanceStartableEndDay, 0); } public static void AddNewbieAttendanceEndDay(FlatBufferBuilder builder, int newbieAttendanceEndDay) { builder.AddInt(5, newbieAttendanceEndDay, 0); } public static Offset EndConstNewbieContentExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class ConstNewbieContentExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyString(tablePos, 4 /*NewbieGachaReleaseDate*/, false) && verifier.VerifyField(tablePos, 6 /*NewbieGachaCheckDays*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 8 /*NewbieGachaTokenGraceTime*/, 4 /*int*/, 4, false) && verifier.VerifyString(tablePos, 10 /*NewbieAttendanceReleaseDate*/, false) && verifier.VerifyField(tablePos, 12 /*NewbieAttendanceStartableEndDay*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 14 /*NewbieAttendanceEndDay*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } }