forked from Raphael/SCHALE.GameServer
220 lines
16 KiB
C#
220 lines
16 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 CafeInteractionExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static CafeInteractionExcel GetRootAsCafeInteractionExcel(ByteBuffer _bb) { return GetRootAsCafeInteractionExcel(_bb, new CafeInteractionExcel()); }
|
|
public static CafeInteractionExcel GetRootAsCafeInteractionExcel(ByteBuffer _bb, CafeInteractionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public CafeInteractionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public bool IgnoreIfUnobtained { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
public string IgnoreIfUnobtainedStartDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetIgnoreIfUnobtainedStartDateBytes() { return __p.__vector_as_span<byte>(8, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetIgnoreIfUnobtainedStartDateBytes() { return __p.__vector_as_arraysegment(8); }
|
|
#endif
|
|
public byte[] GetIgnoreIfUnobtainedStartDateArray() { return __p.__vector_as_array<byte>(8); }
|
|
public string IgnoreIfUnobtainedEndDate { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetIgnoreIfUnobtainedEndDateBytes() { return __p.__vector_as_span<byte>(10, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetIgnoreIfUnobtainedEndDateBytes() { return __p.__vector_as_arraysegment(10); }
|
|
#endif
|
|
public byte[] GetIgnoreIfUnobtainedEndDateArray() { return __p.__vector_as_array<byte>(10); }
|
|
public SCHALE.Common.FlatData.BubbleType BubbleType_(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.BubbleType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.BubbleType)0; }
|
|
public int BubbleType_Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<SCHALE.Common.FlatData.BubbleType> GetBubbleType_Bytes() { return __p.__vector_as_span<SCHALE.Common.FlatData.BubbleType>(12, 4); }
|
|
#else
|
|
public ArraySegment<byte>? GetBubbleType_Bytes() { return __p.__vector_as_arraysegment(12); }
|
|
#endif
|
|
public SCHALE.Common.FlatData.BubbleType[] GetBubbleType_Array() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.BubbleType[] a = new SCHALE.Common.FlatData.BubbleType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.BubbleType)__p.bb.GetInt(p + i * 4); } return a; }
|
|
public long BubbleDuration(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int BubbleDurationLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetBubbleDurationBytes() { return __p.__vector_as_span<long>(14, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetBubbleDurationBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public long[] GetBubbleDurationArray() { return __p.__vector_as_array<long>(14); }
|
|
public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } }
|
|
public long FavorEmoticonRewardId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long FavorEmoticonRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string CafeCharacterState(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
|
|
public int CafeCharacterStateLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CafeInteractionExcel> CreateCafeInteractionExcel(FlatBufferBuilder builder,
|
|
long CharacterId = 0,
|
|
bool IgnoreIfUnobtained = false,
|
|
StringOffset IgnoreIfUnobtainedStartDateOffset = default(StringOffset),
|
|
StringOffset IgnoreIfUnobtainedEndDateOffset = default(StringOffset),
|
|
VectorOffset BubbleType_Offset = default(VectorOffset),
|
|
VectorOffset BubbleDurationOffset = default(VectorOffset),
|
|
SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_,
|
|
long FavorEmoticonRewardId = 0,
|
|
long FavorEmoticonRewardAmount = 0,
|
|
VectorOffset CafeCharacterStateOffset = default(VectorOffset)) {
|
|
builder.StartTable(10);
|
|
CafeInteractionExcel.AddFavorEmoticonRewardAmount(builder, FavorEmoticonRewardAmount);
|
|
CafeInteractionExcel.AddFavorEmoticonRewardId(builder, FavorEmoticonRewardId);
|
|
CafeInteractionExcel.AddCharacterId(builder, CharacterId);
|
|
CafeInteractionExcel.AddCafeCharacterState(builder, CafeCharacterStateOffset);
|
|
CafeInteractionExcel.AddFavorEmoticonRewardParcelType(builder, FavorEmoticonRewardParcelType);
|
|
CafeInteractionExcel.AddBubbleDuration(builder, BubbleDurationOffset);
|
|
CafeInteractionExcel.AddBubbleType_(builder, BubbleType_Offset);
|
|
CafeInteractionExcel.AddIgnoreIfUnobtainedEndDate(builder, IgnoreIfUnobtainedEndDateOffset);
|
|
CafeInteractionExcel.AddIgnoreIfUnobtainedStartDate(builder, IgnoreIfUnobtainedStartDateOffset);
|
|
CafeInteractionExcel.AddIgnoreIfUnobtained(builder, IgnoreIfUnobtained);
|
|
return CafeInteractionExcel.EndCafeInteractionExcel(builder);
|
|
}
|
|
|
|
public static void StartCafeInteractionExcel(FlatBufferBuilder builder) { builder.StartTable(10); }
|
|
public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); }
|
|
public static void AddIgnoreIfUnobtained(FlatBufferBuilder builder, bool ignoreIfUnobtained) { builder.AddBool(1, ignoreIfUnobtained, false); }
|
|
public static void AddIgnoreIfUnobtainedStartDate(FlatBufferBuilder builder, StringOffset ignoreIfUnobtainedStartDateOffset) { builder.AddOffset(2, ignoreIfUnobtainedStartDateOffset.Value, 0); }
|
|
public static void AddIgnoreIfUnobtainedEndDate(FlatBufferBuilder builder, StringOffset ignoreIfUnobtainedEndDateOffset) { builder.AddOffset(3, ignoreIfUnobtainedEndDateOffset.Value, 0); }
|
|
public static void AddBubbleType_(FlatBufferBuilder builder, VectorOffset bubbleType_Offset) { builder.AddOffset(4, bubbleType_Offset.Value, 0); }
|
|
public static VectorOffset CreateBubbleType_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.BubbleType[] 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 CreateBubbleType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.BubbleType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateBubbleType_VectorBlock(FlatBufferBuilder builder, ArraySegment<SCHALE.Common.FlatData.BubbleType> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateBubbleType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<SCHALE.Common.FlatData.BubbleType>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartBubbleType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
public static void AddBubbleDuration(FlatBufferBuilder builder, VectorOffset bubbleDurationOffset) { builder.AddOffset(5, bubbleDurationOffset.Value, 0); }
|
|
public static VectorOffset CreateBubbleDurationVector(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 CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartBubbleDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddFavorEmoticonRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType favorEmoticonRewardParcelType) { builder.AddInt(6, (int)favorEmoticonRewardParcelType, 0); }
|
|
public static void AddFavorEmoticonRewardId(FlatBufferBuilder builder, long favorEmoticonRewardId) { builder.AddLong(7, favorEmoticonRewardId, 0); }
|
|
public static void AddFavorEmoticonRewardAmount(FlatBufferBuilder builder, long favorEmoticonRewardAmount) { builder.AddLong(8, favorEmoticonRewardAmount, 0); }
|
|
public static void AddCafeCharacterState(FlatBufferBuilder builder, VectorOffset cafeCharacterStateOffset) { builder.AddOffset(9, cafeCharacterStateOffset.Value, 0); }
|
|
public static VectorOffset CreateCafeCharacterStateVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); }
|
|
public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartCafeCharacterStateVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
public static Offset<SCHALE.Common.FlatData.CafeInteractionExcel> EndCafeInteractionExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.CafeInteractionExcel>(o);
|
|
}
|
|
public CafeInteractionExcelT UnPack() {
|
|
var _o = new CafeInteractionExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(CafeInteractionExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("CafeInteraction");
|
|
_o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key);
|
|
_o.IgnoreIfUnobtained = TableEncryptionService.Convert(this.IgnoreIfUnobtained, key);
|
|
_o.IgnoreIfUnobtainedStartDate = TableEncryptionService.Convert(this.IgnoreIfUnobtainedStartDate, key);
|
|
_o.IgnoreIfUnobtainedEndDate = TableEncryptionService.Convert(this.IgnoreIfUnobtainedEndDate, key);
|
|
_o.BubbleType_ = new List<SCHALE.Common.FlatData.BubbleType>();
|
|
for (var _j = 0; _j < this.BubbleType_Length; ++_j) {_o.BubbleType_.Add(TableEncryptionService.Convert(this.BubbleType_(_j), key));}
|
|
_o.BubbleDuration = new List<long>();
|
|
for (var _j = 0; _j < this.BubbleDurationLength; ++_j) {_o.BubbleDuration.Add(TableEncryptionService.Convert(this.BubbleDuration(_j), key));}
|
|
_o.FavorEmoticonRewardParcelType = TableEncryptionService.Convert(this.FavorEmoticonRewardParcelType, key);
|
|
_o.FavorEmoticonRewardId = TableEncryptionService.Convert(this.FavorEmoticonRewardId, key);
|
|
_o.FavorEmoticonRewardAmount = TableEncryptionService.Convert(this.FavorEmoticonRewardAmount, key);
|
|
_o.CafeCharacterState = new List<string>();
|
|
for (var _j = 0; _j < this.CafeCharacterStateLength; ++_j) {_o.CafeCharacterState.Add(TableEncryptionService.Convert(this.CafeCharacterState(_j), key));}
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.CafeInteractionExcel> Pack(FlatBufferBuilder builder, CafeInteractionExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CafeInteractionExcel>);
|
|
var _IgnoreIfUnobtainedStartDate = _o.IgnoreIfUnobtainedStartDate == null ? default(StringOffset) : builder.CreateString(_o.IgnoreIfUnobtainedStartDate);
|
|
var _IgnoreIfUnobtainedEndDate = _o.IgnoreIfUnobtainedEndDate == null ? default(StringOffset) : builder.CreateString(_o.IgnoreIfUnobtainedEndDate);
|
|
var _BubbleType_ = default(VectorOffset);
|
|
if (_o.BubbleType_ != null) {
|
|
var __BubbleType_ = _o.BubbleType_.ToArray();
|
|
_BubbleType_ = CreateBubbleType_Vector(builder, __BubbleType_);
|
|
}
|
|
var _BubbleDuration = default(VectorOffset);
|
|
if (_o.BubbleDuration != null) {
|
|
var __BubbleDuration = _o.BubbleDuration.ToArray();
|
|
_BubbleDuration = CreateBubbleDurationVector(builder, __BubbleDuration);
|
|
}
|
|
var _CafeCharacterState = default(VectorOffset);
|
|
if (_o.CafeCharacterState != null) {
|
|
var __CafeCharacterState = new StringOffset[_o.CafeCharacterState.Count];
|
|
for (var _j = 0; _j < __CafeCharacterState.Length; ++_j) { __CafeCharacterState[_j] = builder.CreateString(_o.CafeCharacterState[_j]); }
|
|
_CafeCharacterState = CreateCafeCharacterStateVector(builder, __CafeCharacterState);
|
|
}
|
|
return CreateCafeInteractionExcel(
|
|
builder,
|
|
_o.CharacterId,
|
|
_o.IgnoreIfUnobtained,
|
|
_IgnoreIfUnobtainedStartDate,
|
|
_IgnoreIfUnobtainedEndDate,
|
|
_BubbleType_,
|
|
_BubbleDuration,
|
|
_o.FavorEmoticonRewardParcelType,
|
|
_o.FavorEmoticonRewardId,
|
|
_o.FavorEmoticonRewardAmount,
|
|
_CafeCharacterState);
|
|
}
|
|
}
|
|
|
|
public class CafeInteractionExcelT
|
|
{
|
|
public long CharacterId { get; set; }
|
|
public bool IgnoreIfUnobtained { get; set; }
|
|
public string IgnoreIfUnobtainedStartDate { get; set; }
|
|
public string IgnoreIfUnobtainedEndDate { get; set; }
|
|
public List<SCHALE.Common.FlatData.BubbleType> BubbleType_ { get; set; }
|
|
public List<long> BubbleDuration { get; set; }
|
|
public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { get; set; }
|
|
public long FavorEmoticonRewardId { get; set; }
|
|
public long FavorEmoticonRewardAmount { get; set; }
|
|
public List<string> CafeCharacterState { get; set; }
|
|
|
|
public CafeInteractionExcelT() {
|
|
this.CharacterId = 0;
|
|
this.IgnoreIfUnobtained = false;
|
|
this.IgnoreIfUnobtainedStartDate = null;
|
|
this.IgnoreIfUnobtainedEndDate = null;
|
|
this.BubbleType_ = null;
|
|
this.BubbleDuration = null;
|
|
this.FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_;
|
|
this.FavorEmoticonRewardId = 0;
|
|
this.FavorEmoticonRewardAmount = 0;
|
|
this.CafeCharacterState = null;
|
|
}
|
|
}
|
|
|
|
|
|
static public class CafeInteractionExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*IgnoreIfUnobtained*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyString(tablePos, 8 /*IgnoreIfUnobtainedStartDate*/, false)
|
|
&& verifier.VerifyString(tablePos, 10 /*IgnoreIfUnobtainedEndDate*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 12 /*BubbleType_*/, 4 /*SCHALE.Common.FlatData.BubbleType*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 14 /*BubbleDuration*/, 8 /*long*/, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*FavorEmoticonRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 18 /*FavorEmoticonRewardId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*FavorEmoticonRewardAmount*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyVectorOfStrings(tablePos, 22 /*CafeCharacterState*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|