SCHALE.GameServer/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs

121 lines
6.7 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 RecipeSelectionGroupExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static RecipeSelectionGroupExcel GetRootAsRecipeSelectionGroupExcel(ByteBuffer _bb) { return GetRootAsRecipeSelectionGroupExcel(_bb, new RecipeSelectionGroupExcel()); }
public static RecipeSelectionGroupExcel GetRootAsRecipeSelectionGroupExcel(ByteBuffer _bb, RecipeSelectionGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public RecipeSelectionGroupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long RecipeSelectionGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long RecipeSelectionGroupComponentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.ParcelType ParcelType_ { 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 ParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long ResultAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long ResultAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.RecipeSelectionGroupExcel> CreateRecipeSelectionGroupExcel(FlatBufferBuilder builder,
long RecipeSelectionGroupId = 0,
long RecipeSelectionGroupComponentId = 0,
SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None,
long ParcelId = 0,
long ResultAmountMin = 0,
long ResultAmountMax = 0) {
builder.StartTable(6);
RecipeSelectionGroupExcel.AddResultAmountMax(builder, ResultAmountMax);
RecipeSelectionGroupExcel.AddResultAmountMin(builder, ResultAmountMin);
RecipeSelectionGroupExcel.AddParcelId(builder, ParcelId);
RecipeSelectionGroupExcel.AddRecipeSelectionGroupComponentId(builder, RecipeSelectionGroupComponentId);
RecipeSelectionGroupExcel.AddRecipeSelectionGroupId(builder, RecipeSelectionGroupId);
RecipeSelectionGroupExcel.AddParcelType_(builder, ParcelType_);
return RecipeSelectionGroupExcel.EndRecipeSelectionGroupExcel(builder);
}
public static void StartRecipeSelectionGroupExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
public static void AddRecipeSelectionGroupId(FlatBufferBuilder builder, long recipeSelectionGroupId) { builder.AddLong(0, recipeSelectionGroupId, 0); }
public static void AddRecipeSelectionGroupComponentId(FlatBufferBuilder builder, long recipeSelectionGroupComponentId) { builder.AddLong(1, recipeSelectionGroupComponentId, 0); }
public static void AddParcelType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType_) { builder.AddInt(2, (int)parcelType_, 0); }
public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(3, parcelId, 0); }
public static void AddResultAmountMin(FlatBufferBuilder builder, long resultAmountMin) { builder.AddLong(4, resultAmountMin, 0); }
public static void AddResultAmountMax(FlatBufferBuilder builder, long resultAmountMax) { builder.AddLong(5, resultAmountMax, 0); }
public static Offset<SCHALE.Common.FlatData.RecipeSelectionGroupExcel> EndRecipeSelectionGroupExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.RecipeSelectionGroupExcel>(o);
}
public RecipeSelectionGroupExcelT UnPack() {
var _o = new RecipeSelectionGroupExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(RecipeSelectionGroupExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("RecipeSelectionGroup");
_o.RecipeSelectionGroupId = TableEncryptionService.Convert(this.RecipeSelectionGroupId, key);
_o.RecipeSelectionGroupComponentId = TableEncryptionService.Convert(this.RecipeSelectionGroupComponentId, key);
_o.ParcelType_ = TableEncryptionService.Convert(this.ParcelType_, key);
_o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key);
_o.ResultAmountMin = TableEncryptionService.Convert(this.ResultAmountMin, key);
_o.ResultAmountMax = TableEncryptionService.Convert(this.ResultAmountMax, key);
}
public static Offset<SCHALE.Common.FlatData.RecipeSelectionGroupExcel> Pack(FlatBufferBuilder builder, RecipeSelectionGroupExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.RecipeSelectionGroupExcel>);
return CreateRecipeSelectionGroupExcel(
builder,
_o.RecipeSelectionGroupId,
_o.RecipeSelectionGroupComponentId,
_o.ParcelType_,
_o.ParcelId,
_o.ResultAmountMin,
_o.ResultAmountMax);
}
}
public class RecipeSelectionGroupExcelT
{
public long RecipeSelectionGroupId { get; set; }
public long RecipeSelectionGroupComponentId { get; set; }
public SCHALE.Common.FlatData.ParcelType ParcelType_ { get; set; }
public long ParcelId { get; set; }
public long ResultAmountMin { get; set; }
public long ResultAmountMax { get; set; }
public RecipeSelectionGroupExcelT() {
this.RecipeSelectionGroupId = 0;
this.RecipeSelectionGroupComponentId = 0;
this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None;
this.ParcelId = 0;
this.ResultAmountMin = 0;
this.ResultAmountMax = 0;
}
}
static public class RecipeSelectionGroupExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*RecipeSelectionGroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*RecipeSelectionGroupComponentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
&& verifier.VerifyField(tablePos, 10 /*ParcelId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*ResultAmountMin*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 14 /*ResultAmountMax*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}