forked from Raphael/SCHALE.GameServer
201 lines
12 KiB
C#
201 lines
12 KiB
C#
// <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::SCHALE.Common.Crypto;
|
|
using global::Google.FlatBuffers;
|
|
|
|
public struct MemoryLobbyExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static MemoryLobbyExcel GetRootAsMemoryLobbyExcel(ByteBuffer _bb) { return GetRootAsMemoryLobbyExcel(_bb, new MemoryLobbyExcel()); }
|
|
public static MemoryLobbyExcel GetRootAsMemoryLobbyExcel(ByteBuffer _bb, MemoryLobbyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public MemoryLobbyExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public SCHALE.Common.FlatData.ProductionStep Productionstep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } }
|
|
public uint Localizeetcid { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public long Characterid { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string Prefabname { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetPrefabnameBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetPrefabnameBytes() { return __p.__vector_as_arraysegment(12); }
|
|
#endif
|
|
public byte[] GetPrefabnameArray() { return __p.__vector_as_array<byte>(12); }
|
|
public SCHALE.Common.FlatData.MemoryLobbyCategory Memorylobbycategory { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MemoryLobbyCategory.None; } }
|
|
public string SlottextureName { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetSlottextureNameBytes() { return __p.__vector_as_span<byte>(16, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetSlottextureNameBytes() { return __p.__vector_as_arraysegment(16); }
|
|
#endif
|
|
public byte[] GetSlottextureNameArray() { return __p.__vector_as_array<byte>(16); }
|
|
public string Rewardtexturename { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetRewardtexturenameBytes() { return __p.__vector_as_span<byte>(18, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetRewardtexturenameBytes() { return __p.__vector_as_arraysegment(18); }
|
|
#endif
|
|
public byte[] GetRewardtexturenameArray() { return __p.__vector_as_array<byte>(18); }
|
|
public long Bgmid { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string Audioclipjp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetAudioclipjpBytes() { return __p.__vector_as_span<byte>(22, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetAudioclipjpBytes() { return __p.__vector_as_arraysegment(22); }
|
|
#endif
|
|
public byte[] GetAudioclipjpArray() { return __p.__vector_as_array<byte>(22); }
|
|
public string Audioclipkr { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetAudioclipkrBytes() { return __p.__vector_as_span<byte>(24, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetAudioclipkrBytes() { return __p.__vector_as_arraysegment(24); }
|
|
#endif
|
|
public byte[] GetAudioclipkrArray() { return __p.__vector_as_array<byte>(24); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> CreateMemoryLobbyExcel(FlatBufferBuilder builder,
|
|
long id = 0,
|
|
SCHALE.Common.FlatData.ProductionStep productionstep = SCHALE.Common.FlatData.ProductionStep.ToDo,
|
|
uint localizeetcid = 0,
|
|
long characterid = 0,
|
|
StringOffset prefabnameOffset = default(StringOffset),
|
|
SCHALE.Common.FlatData.MemoryLobbyCategory memorylobbycategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None,
|
|
StringOffset slottexture_nameOffset = default(StringOffset),
|
|
StringOffset rewardtexturenameOffset = default(StringOffset),
|
|
long bgmid = 0,
|
|
StringOffset audioclipjpOffset = default(StringOffset),
|
|
StringOffset audioclipkrOffset = default(StringOffset)) {
|
|
builder.StartTable(11);
|
|
MemoryLobbyExcel.AddBgmid(builder, bgmid);
|
|
MemoryLobbyExcel.AddCharacterid(builder, characterid);
|
|
MemoryLobbyExcel.AddId(builder, id);
|
|
MemoryLobbyExcel.AddAudioclipkr(builder, audioclipkrOffset);
|
|
MemoryLobbyExcel.AddAudioclipjp(builder, audioclipjpOffset);
|
|
MemoryLobbyExcel.AddRewardtexturename(builder, rewardtexturenameOffset);
|
|
MemoryLobbyExcel.AddSlottextureName(builder, slottexture_nameOffset);
|
|
MemoryLobbyExcel.AddMemorylobbycategory(builder, memorylobbycategory);
|
|
MemoryLobbyExcel.AddPrefabname(builder, prefabnameOffset);
|
|
MemoryLobbyExcel.AddLocalizeetcid(builder, localizeetcid);
|
|
MemoryLobbyExcel.AddProductionstep(builder, productionstep);
|
|
return MemoryLobbyExcel.EndMemoryLobbyExcel(builder);
|
|
}
|
|
|
|
public static void StartMemoryLobbyExcel(FlatBufferBuilder builder) { builder.StartTable(11); }
|
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
|
|
public static void AddProductionstep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionstep) { builder.AddInt(1, (int)productionstep, 0); }
|
|
public static void AddLocalizeetcid(FlatBufferBuilder builder, uint localizeetcid) { builder.AddUint(2, localizeetcid, 0); }
|
|
public static void AddCharacterid(FlatBufferBuilder builder, long characterid) { builder.AddLong(3, characterid, 0); }
|
|
public static void AddPrefabname(FlatBufferBuilder builder, StringOffset prefabnameOffset) { builder.AddOffset(4, prefabnameOffset.Value, 0); }
|
|
public static void AddMemorylobbycategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MemoryLobbyCategory memorylobbycategory) { builder.AddInt(5, (int)memorylobbycategory, 0); }
|
|
public static void AddSlottextureName(FlatBufferBuilder builder, StringOffset slottextureNameOffset) { builder.AddOffset(6, slottextureNameOffset.Value, 0); }
|
|
public static void AddRewardtexturename(FlatBufferBuilder builder, StringOffset rewardtexturenameOffset) { builder.AddOffset(7, rewardtexturenameOffset.Value, 0); }
|
|
public static void AddBgmid(FlatBufferBuilder builder, long bgmid) { builder.AddLong(8, bgmid, 0); }
|
|
public static void AddAudioclipjp(FlatBufferBuilder builder, StringOffset audioclipjpOffset) { builder.AddOffset(9, audioclipjpOffset.Value, 0); }
|
|
public static void AddAudioclipkr(FlatBufferBuilder builder, StringOffset audioclipkrOffset) { builder.AddOffset(10, audioclipkrOffset.Value, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> EndMemoryLobbyExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.MemoryLobbyExcel>(o);
|
|
}
|
|
public MemoryLobbyExcelT UnPack() {
|
|
var _o = new MemoryLobbyExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(MemoryLobbyExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("MemoryLobby");
|
|
_o.Id = TableEncryptionService.Convert(this.Id, key);
|
|
_o.Productionstep = TableEncryptionService.Convert(this.Productionstep, key);
|
|
_o.Localizeetcid = TableEncryptionService.Convert(this.Localizeetcid, key);
|
|
_o.Characterid = TableEncryptionService.Convert(this.Characterid, key);
|
|
_o.Prefabname = TableEncryptionService.Convert(this.Prefabname, key);
|
|
_o.Memorylobbycategory = TableEncryptionService.Convert(this.Memorylobbycategory, key);
|
|
_o.SlottextureName = TableEncryptionService.Convert(this.SlottextureName, key);
|
|
_o.Rewardtexturename = TableEncryptionService.Convert(this.Rewardtexturename, key);
|
|
_o.Bgmid = TableEncryptionService.Convert(this.Bgmid, key);
|
|
_o.Audioclipjp = TableEncryptionService.Convert(this.Audioclipjp, key);
|
|
_o.Audioclipkr = TableEncryptionService.Convert(this.Audioclipkr, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> Pack(FlatBufferBuilder builder, MemoryLobbyExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.MemoryLobbyExcel>);
|
|
var _prefabname = _o.Prefabname == null ? default(StringOffset) : builder.CreateString(_o.Prefabname);
|
|
var _slottexture_name = _o.SlottextureName == null ? default(StringOffset) : builder.CreateString(_o.SlottextureName);
|
|
var _rewardtexturename = _o.Rewardtexturename == null ? default(StringOffset) : builder.CreateString(_o.Rewardtexturename);
|
|
var _audioclipjp = _o.Audioclipjp == null ? default(StringOffset) : builder.CreateString(_o.Audioclipjp);
|
|
var _audioclipkr = _o.Audioclipkr == null ? default(StringOffset) : builder.CreateString(_o.Audioclipkr);
|
|
return CreateMemoryLobbyExcel(
|
|
builder,
|
|
_o.Id,
|
|
_o.Productionstep,
|
|
_o.Localizeetcid,
|
|
_o.Characterid,
|
|
_prefabname,
|
|
_o.Memorylobbycategory,
|
|
_slottexture_name,
|
|
_rewardtexturename,
|
|
_o.Bgmid,
|
|
_audioclipjp,
|
|
_audioclipkr);
|
|
}
|
|
}
|
|
|
|
public class MemoryLobbyExcelT
|
|
{
|
|
public long Id { get; set; }
|
|
public SCHALE.Common.FlatData.ProductionStep Productionstep { get; set; }
|
|
public uint Localizeetcid { get; set; }
|
|
public long Characterid { get; set; }
|
|
public string Prefabname { get; set; }
|
|
public SCHALE.Common.FlatData.MemoryLobbyCategory Memorylobbycategory { get; set; }
|
|
public string SlottextureName { get; set; }
|
|
public string Rewardtexturename { get; set; }
|
|
public long Bgmid { get; set; }
|
|
public string Audioclipjp { get; set; }
|
|
public string Audioclipkr { get; set; }
|
|
|
|
public MemoryLobbyExcelT() {
|
|
this.Id = 0;
|
|
this.Productionstep = SCHALE.Common.FlatData.ProductionStep.ToDo;
|
|
this.Localizeetcid = 0;
|
|
this.Characterid = 0;
|
|
this.Prefabname = null;
|
|
this.Memorylobbycategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None;
|
|
this.SlottextureName = null;
|
|
this.Rewardtexturename = null;
|
|
this.Bgmid = 0;
|
|
this.Audioclipjp = null;
|
|
this.Audioclipkr = null;
|
|
}
|
|
}
|
|
|
|
|
|
static public class MemoryLobbyExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*Productionstep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*Localizeetcid*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*Characterid*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 12 /*Prefabname*/, false)
|
|
&& verifier.VerifyField(tablePos, 14 /*Memorylobbycategory*/, 4 /*SCHALE.Common.FlatData.MemoryLobbyCategory*/, 4, false)
|
|
&& verifier.VerifyString(tablePos, 16 /*SlottextureName*/, false)
|
|
&& verifier.VerifyString(tablePos, 18 /*Rewardtexturename*/, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*Bgmid*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 22 /*Audioclipjp*/, false)
|
|
&& verifier.VerifyString(tablePos, 24 /*Audioclipkr*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|