forked from Raphael/SCHALE.GameServer
71 lines
3.4 KiB
C#
71 lines
3.4 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::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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|