91 lines
6.2 KiB
C#
91 lines
6.2 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 ParcelAutoSynthExcel : IFlatbufferObject
|
||
|
{
|
||
|
private Table __p;
|
||
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
||
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
||
|
public static ParcelAutoSynthExcel GetRootAsParcelAutoSynthExcel(ByteBuffer _bb) { return GetRootAsParcelAutoSynthExcel(_bb, new ParcelAutoSynthExcel()); }
|
||
|
public static ParcelAutoSynthExcel GetRootAsParcelAutoSynthExcel(ByteBuffer _bb, ParcelAutoSynthExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
||
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
||
|
public ParcelAutoSynthExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
||
|
|
||
|
public SCHALE.Common.FlatData.ParcelType RequireParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } }
|
||
|
public long RequireParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long RequireParcelAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long SynthStartAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long SynthEndAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public bool SynthMaxItem { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
||
|
public SCHALE.Common.FlatData.ParcelType ResultParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } }
|
||
|
public long ResultParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
public long ResultParcelAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
||
|
|
||
|
public static Offset<SCHALE.Common.FlatData.ParcelAutoSynthExcel> CreateParcelAutoSynthExcel(FlatBufferBuilder builder,
|
||
|
SCHALE.Common.FlatData.ParcelType RequireParcelType = SCHALE.Common.FlatData.ParcelType.None,
|
||
|
long RequireParcelId = 0,
|
||
|
long RequireParcelAmount = 0,
|
||
|
long SynthStartAmount = 0,
|
||
|
long SynthEndAmount = 0,
|
||
|
bool SynthMaxItem = false,
|
||
|
SCHALE.Common.FlatData.ParcelType ResultParcelType = SCHALE.Common.FlatData.ParcelType.None,
|
||
|
long ResultParcelId = 0,
|
||
|
long ResultParcelAmount = 0) {
|
||
|
builder.StartTable(9);
|
||
|
ParcelAutoSynthExcel.AddResultParcelAmount(builder, ResultParcelAmount);
|
||
|
ParcelAutoSynthExcel.AddResultParcelId(builder, ResultParcelId);
|
||
|
ParcelAutoSynthExcel.AddSynthEndAmount(builder, SynthEndAmount);
|
||
|
ParcelAutoSynthExcel.AddSynthStartAmount(builder, SynthStartAmount);
|
||
|
ParcelAutoSynthExcel.AddRequireParcelAmount(builder, RequireParcelAmount);
|
||
|
ParcelAutoSynthExcel.AddRequireParcelId(builder, RequireParcelId);
|
||
|
ParcelAutoSynthExcel.AddResultParcelType(builder, ResultParcelType);
|
||
|
ParcelAutoSynthExcel.AddRequireParcelType(builder, RequireParcelType);
|
||
|
ParcelAutoSynthExcel.AddSynthMaxItem(builder, SynthMaxItem);
|
||
|
return ParcelAutoSynthExcel.EndParcelAutoSynthExcel(builder);
|
||
|
}
|
||
|
|
||
|
public static void StartParcelAutoSynthExcel(FlatBufferBuilder builder) { builder.StartTable(9); }
|
||
|
public static void AddRequireParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType requireParcelType) { builder.AddInt(0, (int)requireParcelType, 0); }
|
||
|
public static void AddRequireParcelId(FlatBufferBuilder builder, long requireParcelId) { builder.AddLong(1, requireParcelId, 0); }
|
||
|
public static void AddRequireParcelAmount(FlatBufferBuilder builder, long requireParcelAmount) { builder.AddLong(2, requireParcelAmount, 0); }
|
||
|
public static void AddSynthStartAmount(FlatBufferBuilder builder, long synthStartAmount) { builder.AddLong(3, synthStartAmount, 0); }
|
||
|
public static void AddSynthEndAmount(FlatBufferBuilder builder, long synthEndAmount) { builder.AddLong(4, synthEndAmount, 0); }
|
||
|
public static void AddSynthMaxItem(FlatBufferBuilder builder, bool synthMaxItem) { builder.AddBool(5, synthMaxItem, false); }
|
||
|
public static void AddResultParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType resultParcelType) { builder.AddInt(6, (int)resultParcelType, 0); }
|
||
|
public static void AddResultParcelId(FlatBufferBuilder builder, long resultParcelId) { builder.AddLong(7, resultParcelId, 0); }
|
||
|
public static void AddResultParcelAmount(FlatBufferBuilder builder, long resultParcelAmount) { builder.AddLong(8, resultParcelAmount, 0); }
|
||
|
public static Offset<SCHALE.Common.FlatData.ParcelAutoSynthExcel> EndParcelAutoSynthExcel(FlatBufferBuilder builder) {
|
||
|
int o = builder.EndTable();
|
||
|
return new Offset<SCHALE.Common.FlatData.ParcelAutoSynthExcel>(o);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
static public class ParcelAutoSynthExcelVerify
|
||
|
{
|
||
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
||
|
{
|
||
|
return verifier.VerifyTableStart(tablePos)
|
||
|
&& verifier.VerifyField(tablePos, 4 /*RequireParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 6 /*RequireParcelId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 8 /*RequireParcelAmount*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 10 /*SynthStartAmount*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 12 /*SynthEndAmount*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 14 /*SynthMaxItem*/, 1 /*bool*/, 1, false)
|
||
|
&& verifier.VerifyField(tablePos, 16 /*ResultParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
||
|
&& verifier.VerifyField(tablePos, 18 /*ResultParcelId*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyField(tablePos, 20 /*ResultParcelAmount*/, 8 /*long*/, 8, false)
|
||
|
&& verifier.VerifyTableEnd(tablePos);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|