forked from Raphael/SCHALE.GameServer
112 lines
4.7 KiB
C#
112 lines
4.7 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 BGMUIExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static BGMUIExcel GetRootAsBGMUIExcel(ByteBuffer _bb) { return GetRootAsBGMUIExcel(_bb, new BGMUIExcel()); }
|
|
public static BGMUIExcel GetRootAsBGMUIExcel(ByteBuffer _bb, BGMUIExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public BGMUIExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public uint UIPrefab { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public long BGMId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long BGMId2nd { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long BGMId3rd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long EventContentId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.BGMUIExcel> CreateBGMUIExcel(FlatBufferBuilder builder,
|
|
uint UIPrefab = 0,
|
|
long BGMId = 0,
|
|
long BGMId2nd = 0,
|
|
long BGMId3rd = 0,
|
|
long EventContentId = 0) {
|
|
builder.StartTable(5);
|
|
BGMUIExcel.AddEventContentId(builder, EventContentId);
|
|
BGMUIExcel.AddBGMId3rd(builder, BGMId3rd);
|
|
BGMUIExcel.AddBGMId2nd(builder, BGMId2nd);
|
|
BGMUIExcel.AddBGMId(builder, BGMId);
|
|
BGMUIExcel.AddUIPrefab(builder, UIPrefab);
|
|
return BGMUIExcel.EndBGMUIExcel(builder);
|
|
}
|
|
|
|
public static void StartBGMUIExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
|
|
public static void AddUIPrefab(FlatBufferBuilder builder, uint uIPrefab) { builder.AddUint(0, uIPrefab, 0); }
|
|
public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(1, bGMId, 0); }
|
|
public static void AddBGMId2nd(FlatBufferBuilder builder, long bGMId2nd) { builder.AddLong(2, bGMId2nd, 0); }
|
|
public static void AddBGMId3rd(FlatBufferBuilder builder, long bGMId3rd) { builder.AddLong(3, bGMId3rd, 0); }
|
|
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(4, eventContentId, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.BGMUIExcel> EndBGMUIExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.BGMUIExcel>(o);
|
|
}
|
|
public BGMUIExcelT UnPack() {
|
|
var _o = new BGMUIExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(BGMUIExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("BGMUI");
|
|
_o.UIPrefab = TableEncryptionService.Convert(this.UIPrefab, key);
|
|
_o.BGMId = TableEncryptionService.Convert(this.BGMId, key);
|
|
_o.BGMId2nd = TableEncryptionService.Convert(this.BGMId2nd, key);
|
|
_o.BGMId3rd = TableEncryptionService.Convert(this.BGMId3rd, key);
|
|
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.BGMUIExcel> Pack(FlatBufferBuilder builder, BGMUIExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.BGMUIExcel>);
|
|
return CreateBGMUIExcel(
|
|
builder,
|
|
_o.UIPrefab,
|
|
_o.BGMId,
|
|
_o.BGMId2nd,
|
|
_o.BGMId3rd,
|
|
_o.EventContentId);
|
|
}
|
|
}
|
|
|
|
public class BGMUIExcelT
|
|
{
|
|
public uint UIPrefab { get; set; }
|
|
public long BGMId { get; set; }
|
|
public long BGMId2nd { get; set; }
|
|
public long BGMId3rd { get; set; }
|
|
public long EventContentId { get; set; }
|
|
|
|
public BGMUIExcelT() {
|
|
this.UIPrefab = 0;
|
|
this.BGMId = 0;
|
|
this.BGMId2nd = 0;
|
|
this.BGMId3rd = 0;
|
|
this.EventContentId = 0;
|
|
}
|
|
}
|
|
|
|
|
|
static public class BGMUIExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*UIPrefab*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*BGMId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*BGMId2nd*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*BGMId3rd*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*EventContentId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|