forked from Raphael/SCHALE.GameServer
71 lines
3.9 KiB
C#
71 lines
3.9 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 FieldRewardExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static FieldRewardExcel GetRootAsFieldRewardExcel(ByteBuffer _bb) { return GetRootAsFieldRewardExcel(_bb, new FieldRewardExcel()); }
|
|
public static FieldRewardExcel GetRootAsFieldRewardExcel(ByteBuffer _bb, FieldRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public FieldRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public int RewardProb { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } }
|
|
public long RewardId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public int RewardAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.FieldRewardExcel> CreateFieldRewardExcel(FlatBufferBuilder builder,
|
|
long GroupId = 0,
|
|
int RewardProb = 0,
|
|
SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None,
|
|
long RewardId = 0,
|
|
int RewardAmount = 0) {
|
|
builder.StartTable(5);
|
|
FieldRewardExcel.AddRewardId(builder, RewardId);
|
|
FieldRewardExcel.AddGroupId(builder, GroupId);
|
|
FieldRewardExcel.AddRewardAmount(builder, RewardAmount);
|
|
FieldRewardExcel.AddRewardParcelType(builder, RewardParcelType);
|
|
FieldRewardExcel.AddRewardProb(builder, RewardProb);
|
|
return FieldRewardExcel.EndFieldRewardExcel(builder);
|
|
}
|
|
|
|
public static void StartFieldRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
|
|
public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); }
|
|
public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(1, rewardProb, 0); }
|
|
public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(2, (int)rewardParcelType, 0); }
|
|
public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(3, rewardId, 0); }
|
|
public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(4, rewardAmount, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.FieldRewardExcel> EndFieldRewardExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.FieldRewardExcel>(o);
|
|
}
|
|
}
|
|
|
|
|
|
static public class FieldRewardExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*RewardProb*/, 4 /*int*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*RewardId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*RewardAmount*/, 4 /*int*/, 4, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|