SCHALE.GameServer/SCHALE.Common/FlatData/TacticSkipExcel.cs

85 lines
3.3 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 TacticSkipExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static TacticSkipExcel GetRootAsTacticSkipExcel(ByteBuffer _bb) { return GetRootAsTacticSkipExcel(_bb, new TacticSkipExcel()); }
public static TacticSkipExcel GetRootAsTacticSkipExcel(ByteBuffer _bb, TacticSkipExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public TacticSkipExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public int LevelDiff { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public long HPResult { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public static Offset<SCHALE.Common.FlatData.TacticSkipExcel> CreateTacticSkipExcel(FlatBufferBuilder builder,
int LevelDiff = 0,
long HPResult = 0) {
builder.StartTable(2);
TacticSkipExcel.AddHPResult(builder, HPResult);
TacticSkipExcel.AddLevelDiff(builder, LevelDiff);
return TacticSkipExcel.EndTacticSkipExcel(builder);
}
public static void StartTacticSkipExcel(FlatBufferBuilder builder) { builder.StartTable(2); }
public static void AddLevelDiff(FlatBufferBuilder builder, int levelDiff) { builder.AddInt(0, levelDiff, 0); }
public static void AddHPResult(FlatBufferBuilder builder, long hPResult) { builder.AddLong(1, hPResult, 0); }
public static Offset<SCHALE.Common.FlatData.TacticSkipExcel> EndTacticSkipExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.TacticSkipExcel>(o);
}
public TacticSkipExcelT UnPack() {
var _o = new TacticSkipExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(TacticSkipExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("TacticSkip");
_o.LevelDiff = TableEncryptionService.Convert(this.LevelDiff, key);
_o.HPResult = TableEncryptionService.Convert(this.HPResult, key);
}
public static Offset<SCHALE.Common.FlatData.TacticSkipExcel> Pack(FlatBufferBuilder builder, TacticSkipExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.TacticSkipExcel>);
return CreateTacticSkipExcel(
builder,
_o.LevelDiff,
_o.HPResult);
}
}
public class TacticSkipExcelT
{
public int LevelDiff { get; set; }
public long HPResult { get; set; }
public TacticSkipExcelT() {
this.LevelDiff = 0;
this.HPResult = 0;
}
}
static public class TacticSkipExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*LevelDiff*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 6 /*HPResult*/, 8 /*long*/, 8, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}