SCHALE.GameServer/SCHALE.Common/FlatData/LocalizeEtcExcel.cs

140 lines
6.6 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 LocalizeEtcExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb) { return GetRootAsLocalizeEtcExcel(_bb, new LocalizeEtcExcel()); }
public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb, LocalizeEtcExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public LocalizeEtcExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetNameKrBytes() { return __p.__vector_as_span<byte>(6, 1); }
#else
public ArraySegment<byte>? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); }
#endif
public byte[] GetNameKrArray() { return __p.__vector_as_array<byte>(6); }
public string DescriptionKr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetDescriptionKrBytes() { return __p.__vector_as_span<byte>(8, 1); }
#else
public ArraySegment<byte>? GetDescriptionKrBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public byte[] GetDescriptionKrArray() { return __p.__vector_as_array<byte>(8); }
public string NameJp { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetNameJpBytes() { return __p.__vector_as_span<byte>(10, 1); }
#else
public ArraySegment<byte>? GetNameJpBytes() { return __p.__vector_as_arraysegment(10); }
#endif
public byte[] GetNameJpArray() { return __p.__vector_as_array<byte>(10); }
public string DescriptionJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetDescriptionJpBytes() { return __p.__vector_as_span<byte>(12, 1); }
#else
public ArraySegment<byte>? GetDescriptionJpBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public byte[] GetDescriptionJpArray() { return __p.__vector_as_array<byte>(12); }
public static Offset<SCHALE.Common.FlatData.LocalizeEtcExcel> CreateLocalizeEtcExcel(FlatBufferBuilder builder,
uint Key = 0,
StringOffset NameKrOffset = default(StringOffset),
StringOffset DescriptionKrOffset = default(StringOffset),
StringOffset NameJpOffset = default(StringOffset),
StringOffset DescriptionJpOffset = default(StringOffset)) {
builder.StartTable(5);
LocalizeEtcExcel.AddDescriptionJp(builder, DescriptionJpOffset);
LocalizeEtcExcel.AddNameJp(builder, NameJpOffset);
LocalizeEtcExcel.AddDescriptionKr(builder, DescriptionKrOffset);
LocalizeEtcExcel.AddNameKr(builder, NameKrOffset);
LocalizeEtcExcel.AddKey(builder, Key);
return LocalizeEtcExcel.EndLocalizeEtcExcel(builder);
}
public static void StartLocalizeEtcExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); }
public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); }
public static void AddDescriptionKr(FlatBufferBuilder builder, StringOffset descriptionKrOffset) { builder.AddOffset(2, descriptionKrOffset.Value, 0); }
public static void AddNameJp(FlatBufferBuilder builder, StringOffset nameJpOffset) { builder.AddOffset(3, nameJpOffset.Value, 0); }
public static void AddDescriptionJp(FlatBufferBuilder builder, StringOffset descriptionJpOffset) { builder.AddOffset(4, descriptionJpOffset.Value, 0); }
public static Offset<SCHALE.Common.FlatData.LocalizeEtcExcel> EndLocalizeEtcExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.LocalizeEtcExcel>(o);
}
2024-04-29 15:52:45 +00:00
public LocalizeEtcExcelT UnPack() {
var _o = new LocalizeEtcExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(LocalizeEtcExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("LocalizeEtc");
_o.Key = TableEncryptionService.Convert(this.Key, key);
_o.NameKr = TableEncryptionService.Convert(this.NameKr, key);
_o.DescriptionKr = TableEncryptionService.Convert(this.DescriptionKr, key);
_o.NameJp = TableEncryptionService.Convert(this.NameJp, key);
_o.DescriptionJp = TableEncryptionService.Convert(this.DescriptionJp, key);
}
public static Offset<SCHALE.Common.FlatData.LocalizeEtcExcel> Pack(FlatBufferBuilder builder, LocalizeEtcExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.LocalizeEtcExcel>);
var _NameKr = _o.NameKr == null ? default(StringOffset) : builder.CreateString(_o.NameKr);
var _DescriptionKr = _o.DescriptionKr == null ? default(StringOffset) : builder.CreateString(_o.DescriptionKr);
var _NameJp = _o.NameJp == null ? default(StringOffset) : builder.CreateString(_o.NameJp);
var _DescriptionJp = _o.DescriptionJp == null ? default(StringOffset) : builder.CreateString(_o.DescriptionJp);
return CreateLocalizeEtcExcel(
builder,
_o.Key,
_NameKr,
_DescriptionKr,
_NameJp,
_DescriptionJp);
}
}
public class LocalizeEtcExcelT
{
public uint Key { get; set; }
public string NameKr { get; set; }
public string DescriptionKr { get; set; }
public string NameJp { get; set; }
public string DescriptionJp { get; set; }
public LocalizeEtcExcelT() {
this.Key = 0;
this.NameKr = null;
this.DescriptionKr = null;
this.NameJp = null;
this.DescriptionJp = null;
}
2024-04-21 00:21:57 +00:00
}
static public class LocalizeEtcExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false)
&& verifier.VerifyString(tablePos, 6 /*NameKr*/, false)
&& verifier.VerifyString(tablePos, 8 /*DescriptionKr*/, false)
&& verifier.VerifyString(tablePos, 10 /*NameJp*/, false)
&& verifier.VerifyString(tablePos, 12 /*DescriptionJp*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}