forked from Raphael/SCHALE.GameServer
148 lines
8.6 KiB
C#
148 lines
8.6 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::SCHALE.Common.Crypto;
|
|
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);
|
|
}
|
|
public ParcelAutoSynthExcelT UnPack() {
|
|
var _o = new ParcelAutoSynthExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(ParcelAutoSynthExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("ParcelAutoSynth");
|
|
_o.RequireParcelType = TableEncryptionService.Convert(this.RequireParcelType, key);
|
|
_o.RequireParcelId = TableEncryptionService.Convert(this.RequireParcelId, key);
|
|
_o.RequireParcelAmount = TableEncryptionService.Convert(this.RequireParcelAmount, key);
|
|
_o.SynthStartAmount = TableEncryptionService.Convert(this.SynthStartAmount, key);
|
|
_o.SynthEndAmount = TableEncryptionService.Convert(this.SynthEndAmount, key);
|
|
_o.SynthMaxItem = TableEncryptionService.Convert(this.SynthMaxItem, key);
|
|
_o.ResultParcelType = TableEncryptionService.Convert(this.ResultParcelType, key);
|
|
_o.ResultParcelId = TableEncryptionService.Convert(this.ResultParcelId, key);
|
|
_o.ResultParcelAmount = TableEncryptionService.Convert(this.ResultParcelAmount, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.ParcelAutoSynthExcel> Pack(FlatBufferBuilder builder, ParcelAutoSynthExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ParcelAutoSynthExcel>);
|
|
return CreateParcelAutoSynthExcel(
|
|
builder,
|
|
_o.RequireParcelType,
|
|
_o.RequireParcelId,
|
|
_o.RequireParcelAmount,
|
|
_o.SynthStartAmount,
|
|
_o.SynthEndAmount,
|
|
_o.SynthMaxItem,
|
|
_o.ResultParcelType,
|
|
_o.ResultParcelId,
|
|
_o.ResultParcelAmount);
|
|
}
|
|
}
|
|
|
|
public class ParcelAutoSynthExcelT
|
|
{
|
|
public SCHALE.Common.FlatData.ParcelType RequireParcelType { get; set; }
|
|
public long RequireParcelId { get; set; }
|
|
public long RequireParcelAmount { get; set; }
|
|
public long SynthStartAmount { get; set; }
|
|
public long SynthEndAmount { get; set; }
|
|
public bool SynthMaxItem { get; set; }
|
|
public SCHALE.Common.FlatData.ParcelType ResultParcelType { get; set; }
|
|
public long ResultParcelId { get; set; }
|
|
public long ResultParcelAmount { get; set; }
|
|
|
|
public ParcelAutoSynthExcelT() {
|
|
this.RequireParcelType = SCHALE.Common.FlatData.ParcelType.None;
|
|
this.RequireParcelId = 0;
|
|
this.RequireParcelAmount = 0;
|
|
this.SynthStartAmount = 0;
|
|
this.SynthEndAmount = 0;
|
|
this.SynthMaxItem = false;
|
|
this.ResultParcelType = SCHALE.Common.FlatData.ParcelType.None;
|
|
this.ResultParcelId = 0;
|
|
this.ResultParcelAmount = 0;
|
|
}
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
}
|