SCHALE.GameServer/SCHALE.Common/FlatData/EventContentDiceRaceNodeExc...

184 lines
14 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 EventContentDiceRaceNodeExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static EventContentDiceRaceNodeExcel GetRootAsEventContentDiceRaceNodeExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceNodeExcel(_bb, new EventContentDiceRaceNodeExcel()); }
public static EventContentDiceRaceNodeExcel GetRootAsEventContentDiceRaceNodeExcel(ByteBuffer _bb, EventContentDiceRaceNodeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public EventContentDiceRaceNodeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long NodeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode; } }
public int MoveForwardTypeArg { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; }
public int RewardParcelTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<SCHALE.Common.FlatData.ParcelType> GetRewardParcelTypeBytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.ParcelType>(12, 4); }
#else
public ArraySegment<byte>? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(12); }
#endif
public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ParcelType[] a = new SCHALE.Common.FlatData.ParcelType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(p + i * 4); } return a; }
public long RewardParcelId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
public int RewardParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<long> GetRewardParcelIdBytes() { return __p.__vector_as_span<long>(14, 8); }
#else
public ArraySegment<byte>? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public long[] GetRewardParcelIdArray() { return __p.__vector_as_array<long>(14); }
public long RewardAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
public int RewardAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } }
#if ENABLE_SPAN_T
public Span<long> GetRewardAmountBytes() { return __p.__vector_as_span<long>(16, 8); }
#else
public ArraySegment<byte>? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(16); }
#endif
public long[] GetRewardAmountArray() { return __p.__vector_as_array<long>(16); }
public static Offset<SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel> CreateEventContentDiceRaceNodeExcel(FlatBufferBuilder builder,
long EventContentId = 0,
long NodeId = 0,
SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType_ = SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode,
int MoveForwardTypeArg = 0,
VectorOffset RewardParcelTypeOffset = default(VectorOffset),
VectorOffset RewardParcelIdOffset = default(VectorOffset),
VectorOffset RewardAmountOffset = default(VectorOffset)) {
builder.StartTable(7);
EventContentDiceRaceNodeExcel.AddNodeId(builder, NodeId);
EventContentDiceRaceNodeExcel.AddEventContentId(builder, EventContentId);
EventContentDiceRaceNodeExcel.AddRewardAmount(builder, RewardAmountOffset);
EventContentDiceRaceNodeExcel.AddRewardParcelId(builder, RewardParcelIdOffset);
EventContentDiceRaceNodeExcel.AddRewardParcelType(builder, RewardParcelTypeOffset);
EventContentDiceRaceNodeExcel.AddMoveForwardTypeArg(builder, MoveForwardTypeArg);
EventContentDiceRaceNodeExcel.AddEventContentDiceRaceNodeType_(builder, EventContentDiceRaceNodeType_);
return EventContentDiceRaceNodeExcel.EndEventContentDiceRaceNodeExcel(builder);
}
public static void StartEventContentDiceRaceNodeExcel(FlatBufferBuilder builder) { builder.StartTable(7); }
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
public static void AddNodeId(FlatBufferBuilder builder, long nodeId) { builder.AddLong(1, nodeId, 0); }
public static void AddEventContentDiceRaceNodeType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentDiceRaceNodeType eventContentDiceRaceNodeType_) { builder.AddInt(2, (int)eventContentDiceRaceNodeType_, 0); }
public static void AddMoveForwardTypeArg(FlatBufferBuilder builder, int moveForwardTypeArg) { builder.AddInt(3, moveForwardTypeArg, 0); }
public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(4, rewardParcelTypeOffset.Value, 0); }
public static VectorOffset CreateRewardParcelTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.ParcelType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.ParcelType>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddRewardParcelId(FlatBufferBuilder builder, VectorOffset rewardParcelIdOffset) { builder.AddOffset(5, rewardParcelIdOffset.Value, 0); }
public static VectorOffset CreateRewardParcelIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
public static void AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(6, rewardAmountOffset.Value, 0); }
public static VectorOffset CreateRewardAmountVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); }
public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
public static Offset<SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel> EndEventContentDiceRaceNodeExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel>(o);
}
public EventContentDiceRaceNodeExcelT UnPack() {
var _o = new EventContentDiceRaceNodeExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(EventContentDiceRaceNodeExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceNode");
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
_o.NodeId = TableEncryptionService.Convert(this.NodeId, key);
_o.EventContentDiceRaceNodeType_ = TableEncryptionService.Convert(this.EventContentDiceRaceNodeType_, key);
_o.MoveForwardTypeArg = TableEncryptionService.Convert(this.MoveForwardTypeArg, key);
_o.RewardParcelType = new List<SCHALE.Common.FlatData.ParcelType>();
for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));}
_o.RewardParcelId = new List<long>();
for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));}
_o.RewardAmount = new List<long>();
for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));}
}
public static Offset<SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel> Pack(FlatBufferBuilder builder, EventContentDiceRaceNodeExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel>);
var _RewardParcelType = default(VectorOffset);
if (_o.RewardParcelType != null) {
var __RewardParcelType = _o.RewardParcelType.ToArray();
_RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType);
}
var _RewardParcelId = default(VectorOffset);
if (_o.RewardParcelId != null) {
var __RewardParcelId = _o.RewardParcelId.ToArray();
_RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId);
}
var _RewardAmount = default(VectorOffset);
if (_o.RewardAmount != null) {
var __RewardAmount = _o.RewardAmount.ToArray();
_RewardAmount = CreateRewardAmountVector(builder, __RewardAmount);
}
return CreateEventContentDiceRaceNodeExcel(
builder,
_o.EventContentId,
_o.NodeId,
_o.EventContentDiceRaceNodeType_,
_o.MoveForwardTypeArg,
_RewardParcelType,
_RewardParcelId,
_RewardAmount);
}
}
public class EventContentDiceRaceNodeExcelT
{
public long EventContentId { get; set; }
public long NodeId { get; set; }
public SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType_ { get; set; }
public int MoveForwardTypeArg { get; set; }
public List<SCHALE.Common.FlatData.ParcelType> RewardParcelType { get; set; }
public List<long> RewardParcelId { get; set; }
public List<long> RewardAmount { get; set; }
public EventContentDiceRaceNodeExcelT() {
this.EventContentId = 0;
this.NodeId = 0;
this.EventContentDiceRaceNodeType_ = SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode;
this.MoveForwardTypeArg = 0;
this.RewardParcelType = null;
this.RewardParcelId = null;
this.RewardAmount = null;
}
}
static public class EventContentDiceRaceNodeExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*NodeId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*EventContentDiceRaceNodeType_*/, 4 /*SCHALE.Common.FlatData.EventContentDiceRaceNodeType*/, 4, false)
&& verifier.VerifyField(tablePos, 10 /*MoveForwardTypeArg*/, 4 /*int*/, 4, false)
&& verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false)
&& verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, false)
&& verifier.VerifyVectorOfData(tablePos, 16 /*RewardAmount*/, 8 /*long*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}