SCHALE.GameServer/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs

139 lines
7.1 KiB
C#
Raw Permalink Normal View History

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 GachaElementRecursiveExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static GachaElementRecursiveExcel GetRootAsGachaElementRecursiveExcel(ByteBuffer _bb) { return GetRootAsGachaElementRecursiveExcel(_bb, new GachaElementRecursiveExcel()); }
public static GachaElementRecursiveExcel GetRootAsGachaElementRecursiveExcel(ByteBuffer _bb, GachaElementRecursiveExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public GachaElementRecursiveExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long ID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long GachaGroupID { 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; } }
2024-04-21 00:21:57 +00:00
public long ParcelID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public int ParcelAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int ParcelAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int Prob { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public int State { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public static Offset<SCHALE.Common.FlatData.GachaElementRecursiveExcel> CreateGachaElementRecursiveExcel(FlatBufferBuilder builder,
long ID = 0,
long GachaGroupID = 0,
SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None,
2024-04-21 00:21:57 +00:00
long ParcelID = 0,
int ParcelAmountMin = 0,
int ParcelAmountMax = 0,
int Prob = 0,
int State = 0) {
builder.StartTable(8);
GachaElementRecursiveExcel.AddParcelID(builder, ParcelID);
GachaElementRecursiveExcel.AddGachaGroupID(builder, GachaGroupID);
GachaElementRecursiveExcel.AddID(builder, ID);
GachaElementRecursiveExcel.AddState(builder, State);
GachaElementRecursiveExcel.AddProb(builder, Prob);
GachaElementRecursiveExcel.AddParcelAmountMax(builder, ParcelAmountMax);
GachaElementRecursiveExcel.AddParcelAmountMin(builder, ParcelAmountMin);
GachaElementRecursiveExcel.AddParcelType(builder, ParcelType);
2024-04-21 00:21:57 +00:00
return GachaElementRecursiveExcel.EndGachaElementRecursiveExcel(builder);
}
public static void StartGachaElementRecursiveExcel(FlatBufferBuilder builder) { builder.StartTable(8); }
public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); }
public static void AddGachaGroupID(FlatBufferBuilder builder, long gachaGroupID) { builder.AddLong(1, gachaGroupID, 0); }
public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(2, (int)parcelType, 0); }
2024-04-21 00:21:57 +00:00
public static void AddParcelID(FlatBufferBuilder builder, long parcelID) { builder.AddLong(3, parcelID, 0); }
public static void AddParcelAmountMin(FlatBufferBuilder builder, int parcelAmountMin) { builder.AddInt(4, parcelAmountMin, 0); }
public static void AddParcelAmountMax(FlatBufferBuilder builder, int parcelAmountMax) { builder.AddInt(5, parcelAmountMax, 0); }
public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(6, prob, 0); }
public static void AddState(FlatBufferBuilder builder, int state) { builder.AddInt(7, state, 0); }
public static Offset<SCHALE.Common.FlatData.GachaElementRecursiveExcel> EndGachaElementRecursiveExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.GachaElementRecursiveExcel>(o);
}
2024-04-29 15:52:45 +00:00
public GachaElementRecursiveExcelT UnPack() {
var _o = new GachaElementRecursiveExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(GachaElementRecursiveExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("GachaElementRecursive");
_o.ID = TableEncryptionService.Convert(this.ID, key);
_o.GachaGroupID = TableEncryptionService.Convert(this.GachaGroupID, key);
_o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key);
2024-04-29 15:52:45 +00:00
_o.ParcelID = TableEncryptionService.Convert(this.ParcelID, key);
_o.ParcelAmountMin = TableEncryptionService.Convert(this.ParcelAmountMin, key);
_o.ParcelAmountMax = TableEncryptionService.Convert(this.ParcelAmountMax, key);
_o.Prob = TableEncryptionService.Convert(this.Prob, key);
_o.State = TableEncryptionService.Convert(this.State, key);
}
public static Offset<SCHALE.Common.FlatData.GachaElementRecursiveExcel> Pack(FlatBufferBuilder builder, GachaElementRecursiveExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.GachaElementRecursiveExcel>);
return CreateGachaElementRecursiveExcel(
builder,
_o.ID,
_o.GachaGroupID,
_o.ParcelType,
2024-04-29 15:52:45 +00:00
_o.ParcelID,
_o.ParcelAmountMin,
_o.ParcelAmountMax,
_o.Prob,
_o.State);
}
}
public class GachaElementRecursiveExcelT
{
public long ID { get; set; }
public long GachaGroupID { get; set; }
public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; }
2024-04-29 15:52:45 +00:00
public long ParcelID { get; set; }
public int ParcelAmountMin { get; set; }
public int ParcelAmountMax { get; set; }
public int Prob { get; set; }
public int State { get; set; }
public GachaElementRecursiveExcelT() {
this.ID = 0;
this.GachaGroupID = 0;
this.ParcelType = SCHALE.Common.FlatData.ParcelType.None;
2024-04-29 15:52:45 +00:00
this.ParcelID = 0;
this.ParcelAmountMin = 0;
this.ParcelAmountMax = 0;
this.Prob = 0;
this.State = 0;
}
2024-04-21 00:21:57 +00:00
}
static public class GachaElementRecursiveExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*ID*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*GachaGroupID*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 10 /*ParcelID*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*ParcelAmountMin*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 14 /*ParcelAmountMax*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 16 /*Prob*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 18 /*State*/, 4 /*int*/, 4, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}