SCHALE.GameServer/SCHALE.Common/FlatData/MemoryLobbyExcel.cs

201 lines
12 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 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; } }
2024-11-08 10:52:05 +00:00
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; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetPrefabnameBytes() { return __p.__vector_as_span<byte>(12, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetPrefabnameBytes() { return __p.__vector_as_arraysegment(12); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
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; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetSlottextureNameBytes() { return __p.__vector_as_span<byte>(16, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetSlottextureNameBytes() { return __p.__vector_as_arraysegment(16); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
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; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetRewardtexturenameBytes() { return __p.__vector_as_span<byte>(18, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetRewardtexturenameBytes() { return __p.__vector_as_arraysegment(18); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
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; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetAudioclipjpBytes() { return __p.__vector_as_span<byte>(22, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetAudioclipjpBytes() { return __p.__vector_as_arraysegment(22); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
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; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetAudioclipkrBytes() { return __p.__vector_as_span<byte>(24, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetAudioclipkrBytes() { return __p.__vector_as_arraysegment(24); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
public byte[] GetAudioclipkrArray() { return __p.__vector_as_array<byte>(24); }
2024-04-21 00:21:57 +00:00
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> CreateMemoryLobbyExcel(FlatBufferBuilder builder,
2024-11-08 10:52:05 +00:00
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)) {
2024-04-21 00:21:57 +00:00
builder.StartTable(11);
2024-11-08 10:52:05 +00:00
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);
2024-04-21 00:21:57 +00:00
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); }
2024-11-08 10:52:05 +00:00
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); }
2024-04-21 00:21:57 +00:00
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> EndMemoryLobbyExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.MemoryLobbyExcel>(o);
}
2024-04-29 15:52:45 +00:00
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);
2024-11-08 10:52:05 +00:00
_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);
2024-04-29 15:52:45 +00:00
}
public static Offset<SCHALE.Common.FlatData.MemoryLobbyExcel> Pack(FlatBufferBuilder builder, MemoryLobbyExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.MemoryLobbyExcel>);
2024-11-08 10:52:05 +00:00
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);
2024-04-29 15:52:45 +00:00
return CreateMemoryLobbyExcel(
builder,
_o.Id,
2024-11-08 10:52:05 +00:00
_o.Productionstep,
_o.Localizeetcid,
_o.Characterid,
_prefabname,
_o.Memorylobbycategory,
_slottexture_name,
_rewardtexturename,
_o.Bgmid,
_audioclipjp,
_audioclipkr);
2024-04-29 15:52:45 +00:00
}
}
public class MemoryLobbyExcelT
{
public long Id { get; set; }
2024-11-08 10:52:05 +00:00
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; }
2024-04-29 15:52:45 +00:00
public MemoryLobbyExcelT() {
this.Id = 0;
2024-11-08 10:52:05 +00:00
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;
2024-04-29 15:52:45 +00:00
}
2024-04-21 00:21:57 +00:00
}
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)
2024-11-08 10:52:05 +00:00
&& 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)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyTableEnd(tablePos);
}
}
}