SCHALE.GameServer/SCHALE.Common/FlatData/EventContentSpecialOperatio...

56 lines
2.8 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;
using global::Google.FlatBuffers;
public struct EventContentSpecialOperationsExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static EventContentSpecialOperationsExcel GetRootAsEventContentSpecialOperationsExcel(ByteBuffer _bb) { return GetRootAsEventContentSpecialOperationsExcel(_bb, new EventContentSpecialOperationsExcel()); }
public static EventContentSpecialOperationsExcel GetRootAsEventContentSpecialOperationsExcel(ByteBuffer _bb, EventContentSpecialOperationsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public EventContentSpecialOperationsExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long PointItemId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.EventContentSpecialOperationsExcel> CreateEventContentSpecialOperationsExcel(FlatBufferBuilder builder,
long EventContentId = 0,
long PointItemId = 0) {
builder.StartTable(2);
EventContentSpecialOperationsExcel.AddPointItemId(builder, PointItemId);
EventContentSpecialOperationsExcel.AddEventContentId(builder, EventContentId);
return EventContentSpecialOperationsExcel.EndEventContentSpecialOperationsExcel(builder);
}
public static void StartEventContentSpecialOperationsExcel(FlatBufferBuilder builder) { builder.StartTable(2); }
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
public static void AddPointItemId(FlatBufferBuilder builder, long pointItemId) { builder.AddLong(1, pointItemId, 0); }
public static Offset<SCHALE.Common.FlatData.EventContentSpecialOperationsExcel> EndEventContentSpecialOperationsExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.EventContentSpecialOperationsExcel>(o);
}
}
static public class EventContentSpecialOperationsExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*PointItemId*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}