forked from Raphael/SCHALE.GameServer
94 lines
4.4 KiB
C#
94 lines
4.4 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 ServiceActionExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static ServiceActionExcel GetRootAsServiceActionExcel(ByteBuffer _bb) { return GetRootAsServiceActionExcel(_bb, new ServiceActionExcel()); }
|
|
public static ServiceActionExcel GetRootAsServiceActionExcel(ByteBuffer _bb, ServiceActionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public ServiceActionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public SCHALE.Common.FlatData.ServiceActionType ServiceActionType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ServiceActionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ServiceActionType.ClanCreate; } }
|
|
public bool IsLegacy { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
public long GoodsId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ServiceActionExcel> CreateServiceActionExcel(FlatBufferBuilder builder,
|
|
SCHALE.Common.FlatData.ServiceActionType ServiceActionType_ = SCHALE.Common.FlatData.ServiceActionType.ClanCreate,
|
|
bool IsLegacy = false,
|
|
long GoodsId = 0) {
|
|
builder.StartTable(3);
|
|
ServiceActionExcel.AddGoodsId(builder, GoodsId);
|
|
ServiceActionExcel.AddServiceActionType_(builder, ServiceActionType_);
|
|
ServiceActionExcel.AddIsLegacy(builder, IsLegacy);
|
|
return ServiceActionExcel.EndServiceActionExcel(builder);
|
|
}
|
|
|
|
public static void StartServiceActionExcel(FlatBufferBuilder builder) { builder.StartTable(3); }
|
|
public static void AddServiceActionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ServiceActionType serviceActionType_) { builder.AddInt(0, (int)serviceActionType_, 0); }
|
|
public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(1, isLegacy, false); }
|
|
public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(2, goodsId, 0); }
|
|
public static Offset<SCHALE.Common.FlatData.ServiceActionExcel> EndServiceActionExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.ServiceActionExcel>(o);
|
|
}
|
|
public ServiceActionExcelT UnPack() {
|
|
var _o = new ServiceActionExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(ServiceActionExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("ServiceAction");
|
|
_o.ServiceActionType_ = TableEncryptionService.Convert(this.ServiceActionType_, key);
|
|
_o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key);
|
|
_o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.ServiceActionExcel> Pack(FlatBufferBuilder builder, ServiceActionExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ServiceActionExcel>);
|
|
return CreateServiceActionExcel(
|
|
builder,
|
|
_o.ServiceActionType_,
|
|
_o.IsLegacy,
|
|
_o.GoodsId);
|
|
}
|
|
}
|
|
|
|
public class ServiceActionExcelT
|
|
{
|
|
public SCHALE.Common.FlatData.ServiceActionType ServiceActionType_ { get; set; }
|
|
public bool IsLegacy { get; set; }
|
|
public long GoodsId { get; set; }
|
|
|
|
public ServiceActionExcelT() {
|
|
this.ServiceActionType_ = SCHALE.Common.FlatData.ServiceActionType.ClanCreate;
|
|
this.IsLegacy = false;
|
|
this.GoodsId = 0;
|
|
}
|
|
}
|
|
|
|
|
|
static public class ServiceActionExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*ServiceActionType_*/, 4 /*SCHALE.Common.FlatData.ServiceActionType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*IsLegacy*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*GoodsId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|