236 lines
16 KiB
C#
236 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 AcademyFavorScheduleExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static AcademyFavorScheduleExcel GetRootAsAcademyFavorScheduleExcel(ByteBuffer _bb) { return GetRootAsAcademyFavorScheduleExcel(_bb, new AcademyFavorScheduleExcel()); }
|
|
public static AcademyFavorScheduleExcel GetRootAsAcademyFavorScheduleExcel(ByteBuffer _bb, AcademyFavorScheduleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public AcademyFavorScheduleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long CharacterId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long ScheduleGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long OrderInGroup { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public string Location { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetLocationBytes() { return __p.__vector_as_span<byte>(12, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetLocationBytes() { return __p.__vector_as_arraysegment(12); }
|
|
#endif
|
|
public byte[] GetLocationArray() { return __p.__vector_as_array<byte>(12); }
|
|
public uint LocalizeScenarioId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public long FavorRank { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long SecretStoneAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long ScenarioSriptGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(22); 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(22); 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>(22, 4); }
|
|
#else
|
|
public ArraySegment<byte>? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(22); }
|
|
#endif
|
|
public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(22); 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(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int RewardParcelIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetRewardParcelIdBytes() { return __p.__vector_as_span<long>(24, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(24); }
|
|
#endif
|
|
public long[] GetRewardParcelIdArray() { return __p.__vector_as_array<long>(24); }
|
|
public long RewardAmount(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int RewardAmountLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetRewardAmountBytes() { return __p.__vector_as_span<long>(26, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(26); }
|
|
#endif
|
|
public long[] GetRewardAmountArray() { return __p.__vector_as_array<long>(26); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.AcademyFavorScheduleExcel> CreateAcademyFavorScheduleExcel(FlatBufferBuilder builder,
|
|
long Id = 0,
|
|
long CharacterId = 0,
|
|
long ScheduleGroupId = 0,
|
|
long OrderInGroup = 0,
|
|
StringOffset LocationOffset = default(StringOffset),
|
|
uint LocalizeScenarioId = 0,
|
|
long FavorRank = 0,
|
|
long SecretStoneAmount = 0,
|
|
long ScenarioSriptGroupId = 0,
|
|
VectorOffset RewardParcelTypeOffset = default(VectorOffset),
|
|
VectorOffset RewardParcelIdOffset = default(VectorOffset),
|
|
VectorOffset RewardAmountOffset = default(VectorOffset)) {
|
|
builder.StartTable(12);
|
|
AcademyFavorScheduleExcel.AddScenarioSriptGroupId(builder, ScenarioSriptGroupId);
|
|
AcademyFavorScheduleExcel.AddSecretStoneAmount(builder, SecretStoneAmount);
|
|
AcademyFavorScheduleExcel.AddFavorRank(builder, FavorRank);
|
|
AcademyFavorScheduleExcel.AddOrderInGroup(builder, OrderInGroup);
|
|
AcademyFavorScheduleExcel.AddScheduleGroupId(builder, ScheduleGroupId);
|
|
AcademyFavorScheduleExcel.AddCharacterId(builder, CharacterId);
|
|
AcademyFavorScheduleExcel.AddId(builder, Id);
|
|
AcademyFavorScheduleExcel.AddRewardAmount(builder, RewardAmountOffset);
|
|
AcademyFavorScheduleExcel.AddRewardParcelId(builder, RewardParcelIdOffset);
|
|
AcademyFavorScheduleExcel.AddRewardParcelType(builder, RewardParcelTypeOffset);
|
|
AcademyFavorScheduleExcel.AddLocalizeScenarioId(builder, LocalizeScenarioId);
|
|
AcademyFavorScheduleExcel.AddLocation(builder, LocationOffset);
|
|
return AcademyFavorScheduleExcel.EndAcademyFavorScheduleExcel(builder);
|
|
}
|
|
|
|
public static void StartAcademyFavorScheduleExcel(FlatBufferBuilder builder) { builder.StartTable(12); }
|
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
|
|
public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(1, characterId, 0); }
|
|
public static void AddScheduleGroupId(FlatBufferBuilder builder, long scheduleGroupId) { builder.AddLong(2, scheduleGroupId, 0); }
|
|
public static void AddOrderInGroup(FlatBufferBuilder builder, long orderInGroup) { builder.AddLong(3, orderInGroup, 0); }
|
|
public static void AddLocation(FlatBufferBuilder builder, StringOffset locationOffset) { builder.AddOffset(4, locationOffset.Value, 0); }
|
|
public static void AddLocalizeScenarioId(FlatBufferBuilder builder, uint localizeScenarioId) { builder.AddUint(5, localizeScenarioId, 0); }
|
|
public static void AddFavorRank(FlatBufferBuilder builder, long favorRank) { builder.AddLong(6, favorRank, 0); }
|
|
public static void AddSecretStoneAmount(FlatBufferBuilder builder, long secretStoneAmount) { builder.AddLong(7, secretStoneAmount, 0); }
|
|
public static void AddScenarioSriptGroupId(FlatBufferBuilder builder, long scenarioSriptGroupId) { builder.AddLong(8, scenarioSriptGroupId, 0); }
|
|
public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(9, 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(10, 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(11, 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.AcademyFavorScheduleExcel> EndAcademyFavorScheduleExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.AcademyFavorScheduleExcel>(o);
|
|
}
|
|
public AcademyFavorScheduleExcelT UnPack() {
|
|
var _o = new AcademyFavorScheduleExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(AcademyFavorScheduleExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("AcademyFavorSchedule");
|
|
_o.Id = TableEncryptionService.Convert(this.Id, key);
|
|
_o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key);
|
|
_o.ScheduleGroupId = TableEncryptionService.Convert(this.ScheduleGroupId, key);
|
|
_o.OrderInGroup = TableEncryptionService.Convert(this.OrderInGroup, key);
|
|
_o.Location = TableEncryptionService.Convert(this.Location, key);
|
|
_o.LocalizeScenarioId = TableEncryptionService.Convert(this.LocalizeScenarioId, key);
|
|
_o.FavorRank = TableEncryptionService.Convert(this.FavorRank, key);
|
|
_o.SecretStoneAmount = TableEncryptionService.Convert(this.SecretStoneAmount, key);
|
|
_o.ScenarioSriptGroupId = TableEncryptionService.Convert(this.ScenarioSriptGroupId, 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.AcademyFavorScheduleExcel> Pack(FlatBufferBuilder builder, AcademyFavorScheduleExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.AcademyFavorScheduleExcel>);
|
|
var _Location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location);
|
|
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 CreateAcademyFavorScheduleExcel(
|
|
builder,
|
|
_o.Id,
|
|
_o.CharacterId,
|
|
_o.ScheduleGroupId,
|
|
_o.OrderInGroup,
|
|
_Location,
|
|
_o.LocalizeScenarioId,
|
|
_o.FavorRank,
|
|
_o.SecretStoneAmount,
|
|
_o.ScenarioSriptGroupId,
|
|
_RewardParcelType,
|
|
_RewardParcelId,
|
|
_RewardAmount);
|
|
}
|
|
}
|
|
|
|
public class AcademyFavorScheduleExcelT
|
|
{
|
|
public long Id { get; set; }
|
|
public long CharacterId { get; set; }
|
|
public long ScheduleGroupId { get; set; }
|
|
public long OrderInGroup { get; set; }
|
|
public string Location { get; set; }
|
|
public uint LocalizeScenarioId { get; set; }
|
|
public long FavorRank { get; set; }
|
|
public long SecretStoneAmount { get; set; }
|
|
public long ScenarioSriptGroupId { get; set; }
|
|
public List<SCHALE.Common.FlatData.ParcelType> RewardParcelType { get; set; }
|
|
public List<long> RewardParcelId { get; set; }
|
|
public List<long> RewardAmount { get; set; }
|
|
|
|
public AcademyFavorScheduleExcelT() {
|
|
this.Id = 0;
|
|
this.CharacterId = 0;
|
|
this.ScheduleGroupId = 0;
|
|
this.OrderInGroup = 0;
|
|
this.Location = null;
|
|
this.LocalizeScenarioId = 0;
|
|
this.FavorRank = 0;
|
|
this.SecretStoneAmount = 0;
|
|
this.ScenarioSriptGroupId = 0;
|
|
this.RewardParcelType = null;
|
|
this.RewardParcelId = null;
|
|
this.RewardAmount = null;
|
|
}
|
|
}
|
|
|
|
|
|
static public class AcademyFavorScheduleExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 6 /*CharacterId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*ScheduleGroupId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*OrderInGroup*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 12 /*Location*/, false)
|
|
&& verifier.VerifyField(tablePos, 14 /*LocalizeScenarioId*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*FavorRank*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 18 /*SecretStoneAmount*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*ScenarioSriptGroupId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 22 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 26 /*RewardAmount*/, 8 /*long*/, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|