forked from Raphael/SCHALE.GameServer
85 lines
4.3 KiB
C#
85 lines
4.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 AssistEchelonTypeConvertExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static AssistEchelonTypeConvertExcel GetRootAsAssistEchelonTypeConvertExcel(ByteBuffer _bb) { return GetRootAsAssistEchelonTypeConvertExcel(_bb, new AssistEchelonTypeConvertExcel()); }
|
|
public static AssistEchelonTypeConvertExcel GetRootAsAssistEchelonTypeConvertExcel(ByteBuffer _bb, AssistEchelonTypeConvertExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public AssistEchelonTypeConvertExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public SCHALE.Common.FlatData.EchelonType Contents { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } }
|
|
public SCHALE.Common.FlatData.EchelonType ConvertTo { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel> CreateAssistEchelonTypeConvertExcel(FlatBufferBuilder builder,
|
|
SCHALE.Common.FlatData.EchelonType Contents = SCHALE.Common.FlatData.EchelonType.None,
|
|
SCHALE.Common.FlatData.EchelonType ConvertTo = SCHALE.Common.FlatData.EchelonType.None) {
|
|
builder.StartTable(2);
|
|
AssistEchelonTypeConvertExcel.AddConvertTo(builder, ConvertTo);
|
|
AssistEchelonTypeConvertExcel.AddContents(builder, Contents);
|
|
return AssistEchelonTypeConvertExcel.EndAssistEchelonTypeConvertExcel(builder);
|
|
}
|
|
|
|
public static void StartAssistEchelonTypeConvertExcel(FlatBufferBuilder builder) { builder.StartTable(2); }
|
|
public static void AddContents(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonType contents) { builder.AddInt(0, (int)contents, 0); }
|
|
public static void AddConvertTo(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonType convertTo) { builder.AddInt(1, (int)convertTo, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel> EndAssistEchelonTypeConvertExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel>(o);
|
|
}
|
|
public AssistEchelonTypeConvertExcelT UnPack() {
|
|
var _o = new AssistEchelonTypeConvertExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(AssistEchelonTypeConvertExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("AssistEchelonTypeConvert");
|
|
_o.Contents = TableEncryptionService.Convert(this.Contents, key);
|
|
_o.ConvertTo = TableEncryptionService.Convert(this.ConvertTo, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel> Pack(FlatBufferBuilder builder, AssistEchelonTypeConvertExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel>);
|
|
return CreateAssistEchelonTypeConvertExcel(
|
|
builder,
|
|
_o.Contents,
|
|
_o.ConvertTo);
|
|
}
|
|
}
|
|
|
|
public class AssistEchelonTypeConvertExcelT
|
|
{
|
|
public SCHALE.Common.FlatData.EchelonType Contents { get; set; }
|
|
public SCHALE.Common.FlatData.EchelonType ConvertTo { get; set; }
|
|
|
|
public AssistEchelonTypeConvertExcelT() {
|
|
this.Contents = SCHALE.Common.FlatData.EchelonType.None;
|
|
this.ConvertTo = SCHALE.Common.FlatData.EchelonType.None;
|
|
}
|
|
}
|
|
|
|
|
|
static public class AssistEchelonTypeConvertExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*Contents*/, 4 /*SCHALE.Common.FlatData.EchelonType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*ConvertTo*/, 4 /*SCHALE.Common.FlatData.EchelonType*/, 4, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|