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;
|
2024-04-29 15:52:45 +00:00
|
|
|
using global::SCHALE.Common.Crypto;
|
2024-04-21 00:21:57 +00:00
|
|
|
using global::Google.FlatBuffers;
|
|
|
|
|
|
|
|
public struct PresetParcelsExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static PresetParcelsExcel GetRootAsPresetParcelsExcel(ByteBuffer _bb) { return GetRootAsPresetParcelsExcel(_bb, new PresetParcelsExcel()); }
|
|
|
|
public static PresetParcelsExcel GetRootAsPresetParcelsExcel(ByteBuffer _bb, PresetParcelsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public PresetParcelsExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
2024-12-29 16:52:25 +00:00
|
|
|
public SCHALE.Common.FlatData.ParcelType ParcelType_ { 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_; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long ParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long PresetGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long ParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.PresetParcelsExcel> CreatePresetParcelsExcel(FlatBufferBuilder builder,
|
2024-12-29 16:52:25 +00:00
|
|
|
SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_,
|
2024-04-21 00:21:57 +00:00
|
|
|
long ParcelId = 0,
|
|
|
|
long PresetGroupId = 0,
|
|
|
|
long ParcelAmount = 0) {
|
|
|
|
builder.StartTable(4);
|
|
|
|
PresetParcelsExcel.AddParcelAmount(builder, ParcelAmount);
|
|
|
|
PresetParcelsExcel.AddPresetGroupId(builder, PresetGroupId);
|
|
|
|
PresetParcelsExcel.AddParcelId(builder, ParcelId);
|
2024-11-08 10:52:05 +00:00
|
|
|
PresetParcelsExcel.AddParcelType_(builder, ParcelType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
return PresetParcelsExcel.EndPresetParcelsExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartPresetParcelsExcel(FlatBufferBuilder builder) { builder.StartTable(4); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddParcelType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType_) { builder.AddInt(0, (int)parcelType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(1, parcelId, 0); }
|
|
|
|
public static void AddPresetGroupId(FlatBufferBuilder builder, long presetGroupId) { builder.AddLong(2, presetGroupId, 0); }
|
|
|
|
public static void AddParcelAmount(FlatBufferBuilder builder, long parcelAmount) { builder.AddLong(3, parcelAmount, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.PresetParcelsExcel> EndPresetParcelsExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.PresetParcelsExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public PresetParcelsExcelT UnPack() {
|
|
|
|
var _o = new PresetParcelsExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(PresetParcelsExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("PresetParcels");
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ParcelType_ = TableEncryptionService.Convert(this.ParcelType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key);
|
|
|
|
_o.PresetGroupId = TableEncryptionService.Convert(this.PresetGroupId, key);
|
|
|
|
_o.ParcelAmount = TableEncryptionService.Convert(this.ParcelAmount, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.PresetParcelsExcel> Pack(FlatBufferBuilder builder, PresetParcelsExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.PresetParcelsExcel>);
|
|
|
|
return CreatePresetParcelsExcel(
|
|
|
|
builder,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ParcelType_,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ParcelId,
|
|
|
|
_o.PresetGroupId,
|
|
|
|
_o.ParcelAmount);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class PresetParcelsExcelT
|
|
|
|
{
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.ParcelType ParcelType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long ParcelId { get; set; }
|
|
|
|
public long PresetGroupId { get; set; }
|
|
|
|
public long ParcelAmount { get; set; }
|
|
|
|
|
|
|
|
public PresetParcelsExcelT() {
|
2024-12-29 16:52:25 +00:00
|
|
|
this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.ParcelId = 0;
|
|
|
|
this.PresetGroupId = 0;
|
|
|
|
this.ParcelAmount = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class PresetParcelsExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 4 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*ParcelId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 8 /*PresetGroupId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 10 /*ParcelAmount*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|