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

204 lines
11 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;
2024-04-29 15:52:45 +00:00
using global::SCHALE.Common.Crypto;
2024-04-21 00:21:57 +00:00
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);
}
2024-04-29 15:52:45 +00:00
public LocalizeGachaShopExcelT UnPack() {
var _o = new LocalizeGachaShopExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(LocalizeGachaShopExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("LocalizeGachaShop");
_o.GachaShopId = TableEncryptionService.Convert(this.GachaShopId, key);
_o.TabNameKr = TableEncryptionService.Convert(this.TabNameKr, key);
_o.TabNameJp = TableEncryptionService.Convert(this.TabNameJp, key);
_o.TitleNameKr = TableEncryptionService.Convert(this.TitleNameKr, key);
_o.TitleNameJp = TableEncryptionService.Convert(this.TitleNameJp, key);
_o.SubTitleKr = TableEncryptionService.Convert(this.SubTitleKr, key);
_o.SubTitleJp = TableEncryptionService.Convert(this.SubTitleJp, key);
_o.GachaDescriptionKr = TableEncryptionService.Convert(this.GachaDescriptionKr, key);
_o.GachaDescriptionJp = TableEncryptionService.Convert(this.GachaDescriptionJp, key);
}
public static Offset<SCHALE.Common.FlatData.LocalizeGachaShopExcel> Pack(FlatBufferBuilder builder, LocalizeGachaShopExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.LocalizeGachaShopExcel>);
var _TabNameKr = _o.TabNameKr == null ? default(StringOffset) : builder.CreateString(_o.TabNameKr);
var _TabNameJp = _o.TabNameJp == null ? default(StringOffset) : builder.CreateString(_o.TabNameJp);
var _TitleNameKr = _o.TitleNameKr == null ? default(StringOffset) : builder.CreateString(_o.TitleNameKr);
var _TitleNameJp = _o.TitleNameJp == null ? default(StringOffset) : builder.CreateString(_o.TitleNameJp);
var _SubTitleKr = _o.SubTitleKr == null ? default(StringOffset) : builder.CreateString(_o.SubTitleKr);
var _SubTitleJp = _o.SubTitleJp == null ? default(StringOffset) : builder.CreateString(_o.SubTitleJp);
var _GachaDescriptionKr = _o.GachaDescriptionKr == null ? default(StringOffset) : builder.CreateString(_o.GachaDescriptionKr);
var _GachaDescriptionJp = _o.GachaDescriptionJp == null ? default(StringOffset) : builder.CreateString(_o.GachaDescriptionJp);
return CreateLocalizeGachaShopExcel(
builder,
_o.GachaShopId,
_TabNameKr,
_TabNameJp,
_TitleNameKr,
_TitleNameJp,
_SubTitleKr,
_SubTitleJp,
_GachaDescriptionKr,
_GachaDescriptionJp);
}
}
public class LocalizeGachaShopExcelT
{
public long GachaShopId { get; set; }
public string TabNameKr { get; set; }
public string TabNameJp { get; set; }
public string TitleNameKr { get; set; }
public string TitleNameJp { get; set; }
public string SubTitleKr { get; set; }
public string SubTitleJp { get; set; }
public string GachaDescriptionKr { get; set; }
public string GachaDescriptionJp { get; set; }
public LocalizeGachaShopExcelT() {
this.GachaShopId = 0;
this.TabNameKr = null;
this.TabNameJp = null;
this.TitleNameKr = null;
this.TitleNameJp = null;
this.SubTitleKr = null;
this.SubTitleJp = null;
this.GachaDescriptionKr = null;
this.GachaDescriptionJp = null;
}
2024-04-21 00:21:57 +00:00
}
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);
}
}
}