SCHALE.GameServer/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs

139 lines
8.2 KiB
C#
Raw Normal View History

2024-04-21 00:21:57 +00:00
// <auto-generated>
// automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>
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<byte> GetTabNameKrBytes() { return __p.__vector_as_span<byte>(6, 1); }
#else
public ArraySegment<byte>? GetTabNameKrBytes() { return __p.__vector_as_arraysegment(6); }
#endif
public byte[] GetTabNameKrArray() { return __p.__vector_as_array<byte>(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<byte> GetTabNameJpBytes() { return __p.__vector_as_span<byte>(8, 1); }
#else
public ArraySegment<byte>? GetTabNameJpBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public byte[] GetTabNameJpArray() { return __p.__vector_as_array<byte>(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<byte> GetTitleNameKrBytes() { return __p.__vector_as_span<byte>(10, 1); }
#else
public ArraySegment<byte>? GetTitleNameKrBytes() { return __p.__vector_as_arraysegment(10); }
#endif
public byte[] GetTitleNameKrArray() { return __p.__vector_as_array<byte>(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<byte> GetTitleNameJpBytes() { return __p.__vector_as_span<byte>(12, 1); }
#else
public ArraySegment<byte>? GetTitleNameJpBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public byte[] GetTitleNameJpArray() { return __p.__vector_as_array<byte>(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<byte> GetSubTitleKrBytes() { return __p.__vector_as_span<byte>(14, 1); }
#else
public ArraySegment<byte>? GetSubTitleKrBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetSubTitleKrArray() { return __p.__vector_as_array<byte>(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<byte> GetSubTitleJpBytes() { return __p.__vector_as_span<byte>(16, 1); }
#else
public ArraySegment<byte>? GetSubTitleJpBytes() { return __p.__vector_as_arraysegment(16); }
#endif
public byte[] GetSubTitleJpArray() { return __p.__vector_as_array<byte>(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<byte> GetGachaDescriptionKrBytes() { return __p.__vector_as_span<byte>(18, 1); }
#else
public ArraySegment<byte>? GetGachaDescriptionKrBytes() { return __p.__vector_as_arraysegment(18); }
#endif
public byte[] GetGachaDescriptionKrArray() { return __p.__vector_as_array<byte>(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<byte> GetGachaDescriptionJpBytes() { return __p.__vector_as_span<byte>(20, 1); }
#else
public ArraySegment<byte>? GetGachaDescriptionJpBytes() { return __p.__vector_as_arraysegment(20); }
#endif
public byte[] GetGachaDescriptionJpArray() { return __p.__vector_as_array<byte>(20); }
public static Offset<SCHALE.Common.FlatData.LocalizeGachaShopExcel> 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<SCHALE.Common.FlatData.LocalizeGachaShopExcel> EndLocalizeGachaShopExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.LocalizeGachaShopExcel>(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);
}
}
}