SCHALE.GameServer/SCHALE.Common/FlatData/StrategyObjectBuffDefineExc...

126 lines
6.6 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 StrategyObjectBuffDefineExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static StrategyObjectBuffDefineExcel GetRootAsStrategyObjectBuffDefineExcel(ByteBuffer _bb) { return GetRootAsStrategyObjectBuffDefineExcel(_bb, new StrategyObjectBuffDefineExcel()); }
public static StrategyObjectBuffDefineExcel GetRootAsStrategyObjectBuffDefineExcel(ByteBuffer _bb, StrategyObjectBuffDefineExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public StrategyObjectBuffDefineExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long StrategyObjectBuffID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public int StrategyObjectTurn { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public string SkillGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetSkillGroupIdBytes() { return __p.__vector_as_span<byte>(8, 1); }
#else
public ArraySegment<byte>? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array<byte>(8); }
public uint LocalizeCodeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetIconPathBytes() { return __p.__vector_as_span<byte>(12, 1); }
#else
public ArraySegment<byte>? GetIconPathBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public byte[] GetIconPathArray() { return __p.__vector_as_array<byte>(12); }
public static Offset<SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel> CreateStrategyObjectBuffDefineExcel(FlatBufferBuilder builder,
long StrategyObjectBuffID = 0,
int StrategyObjectTurn = 0,
StringOffset SkillGroupIdOffset = default(StringOffset),
uint LocalizeCodeId = 0,
StringOffset IconPathOffset = default(StringOffset)) {
builder.StartTable(5);
StrategyObjectBuffDefineExcel.AddStrategyObjectBuffID(builder, StrategyObjectBuffID);
StrategyObjectBuffDefineExcel.AddIconPath(builder, IconPathOffset);
StrategyObjectBuffDefineExcel.AddLocalizeCodeId(builder, LocalizeCodeId);
StrategyObjectBuffDefineExcel.AddSkillGroupId(builder, SkillGroupIdOffset);
StrategyObjectBuffDefineExcel.AddStrategyObjectTurn(builder, StrategyObjectTurn);
return StrategyObjectBuffDefineExcel.EndStrategyObjectBuffDefineExcel(builder);
}
public static void StartStrategyObjectBuffDefineExcel(FlatBufferBuilder builder) { builder.StartTable(5); }
public static void AddStrategyObjectBuffID(FlatBufferBuilder builder, long strategyObjectBuffID) { builder.AddLong(0, strategyObjectBuffID, 0); }
public static void AddStrategyObjectTurn(FlatBufferBuilder builder, int strategyObjectTurn) { builder.AddInt(1, strategyObjectTurn, 0); }
public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(2, skillGroupIdOffset.Value, 0); }
public static void AddLocalizeCodeId(FlatBufferBuilder builder, uint localizeCodeId) { builder.AddUint(3, localizeCodeId, 0); }
public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(4, iconPathOffset.Value, 0); }
public static Offset<SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel> EndStrategyObjectBuffDefineExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel>(o);
}
public StrategyObjectBuffDefineExcelT UnPack() {
var _o = new StrategyObjectBuffDefineExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(StrategyObjectBuffDefineExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("StrategyObjectBuffDefine");
_o.StrategyObjectBuffID = TableEncryptionService.Convert(this.StrategyObjectBuffID, key);
_o.StrategyObjectTurn = TableEncryptionService.Convert(this.StrategyObjectTurn, key);
_o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key);
_o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key);
_o.IconPath = TableEncryptionService.Convert(this.IconPath, key);
}
public static Offset<SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel> Pack(FlatBufferBuilder builder, StrategyObjectBuffDefineExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel>);
var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId);
var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath);
return CreateStrategyObjectBuffDefineExcel(
builder,
_o.StrategyObjectBuffID,
_o.StrategyObjectTurn,
_SkillGroupId,
_o.LocalizeCodeId,
_IconPath);
}
}
public class StrategyObjectBuffDefineExcelT
{
public long StrategyObjectBuffID { get; set; }
public int StrategyObjectTurn { get; set; }
public string SkillGroupId { get; set; }
public uint LocalizeCodeId { get; set; }
public string IconPath { get; set; }
public StrategyObjectBuffDefineExcelT() {
this.StrategyObjectBuffID = 0;
this.StrategyObjectTurn = 0;
this.SkillGroupId = null;
this.LocalizeCodeId = 0;
this.IconPath = null;
}
}
static public class StrategyObjectBuffDefineExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*StrategyObjectBuffID*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*StrategyObjectTurn*/, 4 /*int*/, 4, false)
&& verifier.VerifyString(tablePos, 8 /*SkillGroupId*/, false)
&& verifier.VerifyField(tablePos, 10 /*LocalizeCodeId*/, 4 /*uint*/, 4, false)
&& verifier.VerifyString(tablePos, 12 /*IconPath*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}