// // 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 LocalizeGachaShopExcel : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } public static LocalizeGachaShopExcel GetRootAsLocalizeGachaShopExcel(ByteBuffer _bb) { return GetRootAsLocalizeGachaShopExcel(_bb, new LocalizeGachaShopExcel()); } public static LocalizeGachaShopExcel GetRootAsLocalizeGachaShopExcel(ByteBuffer _bb, LocalizeGachaShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public LocalizeGachaShopExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long GachaShopId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string TabNameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTabNameKrBytes() { return __p.__vector_as_span(6, 1); } #else public ArraySegment? GetTabNameKrBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetTabNameKrArray() { return __p.__vector_as_array(6); } public string TabNameJp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTabNameJpBytes() { return __p.__vector_as_span(8, 1); } #else public ArraySegment? GetTabNameJpBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetTabNameJpArray() { return __p.__vector_as_array(8); } public string TitleNameKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTitleNameKrBytes() { return __p.__vector_as_span(10, 1); } #else public ArraySegment? GetTitleNameKrBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetTitleNameKrArray() { return __p.__vector_as_array(10); } public string TitleNameJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTitleNameJpBytes() { return __p.__vector_as_span(12, 1); } #else public ArraySegment? GetTitleNameJpBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetTitleNameJpArray() { return __p.__vector_as_array(12); } public string SubTitleKr { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSubTitleKrBytes() { return __p.__vector_as_span(14, 1); } #else public ArraySegment? GetSubTitleKrBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetSubTitleKrArray() { return __p.__vector_as_array(14); } public string SubTitleJp { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSubTitleJpBytes() { return __p.__vector_as_span(16, 1); } #else public ArraySegment? GetSubTitleJpBytes() { return __p.__vector_as_arraysegment(16); } #endif public byte[] GetSubTitleJpArray() { return __p.__vector_as_array(16); } public string GachaDescriptionKr { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGachaDescriptionKrBytes() { return __p.__vector_as_span(18, 1); } #else public ArraySegment? GetGachaDescriptionKrBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetGachaDescriptionKrArray() { return __p.__vector_as_array(18); } public string GachaDescriptionJp { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetGachaDescriptionJpBytes() { return __p.__vector_as_span(20, 1); } #else public ArraySegment? GetGachaDescriptionJpBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetGachaDescriptionJpArray() { return __p.__vector_as_array(20); } public static Offset CreateLocalizeGachaShopExcel(FlatBufferBuilder builder, long GachaShopId = 0, StringOffset TabNameKrOffset = default(StringOffset), StringOffset TabNameJpOffset = default(StringOffset), StringOffset TitleNameKrOffset = default(StringOffset), StringOffset TitleNameJpOffset = default(StringOffset), StringOffset SubTitleKrOffset = default(StringOffset), StringOffset SubTitleJpOffset = default(StringOffset), StringOffset GachaDescriptionKrOffset = default(StringOffset), StringOffset GachaDescriptionJpOffset = default(StringOffset)) { builder.StartTable(9); LocalizeGachaShopExcel.AddGachaShopId(builder, GachaShopId); LocalizeGachaShopExcel.AddGachaDescriptionJp(builder, GachaDescriptionJpOffset); LocalizeGachaShopExcel.AddGachaDescriptionKr(builder, GachaDescriptionKrOffset); LocalizeGachaShopExcel.AddSubTitleJp(builder, SubTitleJpOffset); LocalizeGachaShopExcel.AddSubTitleKr(builder, SubTitleKrOffset); LocalizeGachaShopExcel.AddTitleNameJp(builder, TitleNameJpOffset); LocalizeGachaShopExcel.AddTitleNameKr(builder, TitleNameKrOffset); LocalizeGachaShopExcel.AddTabNameJp(builder, TabNameJpOffset); LocalizeGachaShopExcel.AddTabNameKr(builder, TabNameKrOffset); return LocalizeGachaShopExcel.EndLocalizeGachaShopExcel(builder); } public static void StartLocalizeGachaShopExcel(FlatBufferBuilder builder) { builder.StartTable(9); } public static void AddGachaShopId(FlatBufferBuilder builder, long gachaShopId) { builder.AddLong(0, gachaShopId, 0); } public static void AddTabNameKr(FlatBufferBuilder builder, StringOffset tabNameKrOffset) { builder.AddOffset(1, tabNameKrOffset.Value, 0); } public static void AddTabNameJp(FlatBufferBuilder builder, StringOffset tabNameJpOffset) { builder.AddOffset(2, tabNameJpOffset.Value, 0); } public static void AddTitleNameKr(FlatBufferBuilder builder, StringOffset titleNameKrOffset) { builder.AddOffset(3, titleNameKrOffset.Value, 0); } public static void AddTitleNameJp(FlatBufferBuilder builder, StringOffset titleNameJpOffset) { builder.AddOffset(4, titleNameJpOffset.Value, 0); } public static void AddSubTitleKr(FlatBufferBuilder builder, StringOffset subTitleKrOffset) { builder.AddOffset(5, subTitleKrOffset.Value, 0); } public static void AddSubTitleJp(FlatBufferBuilder builder, StringOffset subTitleJpOffset) { builder.AddOffset(6, subTitleJpOffset.Value, 0); } public static void AddGachaDescriptionKr(FlatBufferBuilder builder, StringOffset gachaDescriptionKrOffset) { builder.AddOffset(7, gachaDescriptionKrOffset.Value, 0); } public static void AddGachaDescriptionJp(FlatBufferBuilder builder, StringOffset gachaDescriptionJpOffset) { builder.AddOffset(8, gachaDescriptionJpOffset.Value, 0); } public static Offset EndLocalizeGachaShopExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } } static public class LocalizeGachaShopExcelVerify { static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*GachaShopId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 6 /*TabNameKr*/, false) && verifier.VerifyString(tablePos, 8 /*TabNameJp*/, false) && verifier.VerifyString(tablePos, 10 /*TitleNameKr*/, false) && verifier.VerifyString(tablePos, 12 /*TitleNameJp*/, false) && verifier.VerifyString(tablePos, 14 /*SubTitleKr*/, false) && verifier.VerifyString(tablePos, 16 /*SubTitleJp*/, false) && verifier.VerifyString(tablePos, 18 /*GachaDescriptionKr*/, false) && verifier.VerifyString(tablePos, 20 /*GachaDescriptionJp*/, false) && verifier.VerifyTableEnd(tablePos); } } }