forked from Raphael/SCHALE.GameServer
304 lines
22 KiB
C#
304 lines
22 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 CampaignChapterExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static CampaignChapterExcel GetRootAsCampaignChapterExcel(ByteBuffer _bb) { return GetRootAsCampaignChapterExcel(_bb, new CampaignChapterExcel()); }
|
|
public static CampaignChapterExcel GetRootAsCampaignChapterExcel(ByteBuffer _bb, CampaignChapterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public CampaignChapterExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetNameBytes() { return __p.__vector_as_span<byte>(6, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetNameBytes() { return __p.__vector_as_arraysegment(6); }
|
|
#endif
|
|
public byte[] GetNameArray() { return __p.__vector_as_array<byte>(6); }
|
|
public string NormalImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetNormalImagePathBytes() { return __p.__vector_as_span<byte>(8, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetNormalImagePathBytes() { return __p.__vector_as_arraysegment(8); }
|
|
#endif
|
|
public byte[] GetNormalImagePathArray() { return __p.__vector_as_array<byte>(8); }
|
|
public string HardImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetHardImagePathBytes() { return __p.__vector_as_span<byte>(10, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetHardImagePathBytes() { return __p.__vector_as_arraysegment(10); }
|
|
#endif
|
|
public byte[] GetHardImagePathArray() { return __p.__vector_as_array<byte>(10); }
|
|
public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long PreChapterId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int PreChapterIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetPreChapterIdBytes() { return __p.__vector_as_span<long>(14, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetPreChapterIdBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public long[] GetPreChapterIdArray() { return __p.__vector_as_array<long>(14); }
|
|
public long ChapterRewardId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long ChapterHardRewardId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long ChapterVeryHardRewardId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long NormalCampaignStageId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int NormalCampaignStageIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetNormalCampaignStageIdBytes() { return __p.__vector_as_span<long>(22, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetNormalCampaignStageIdBytes() { return __p.__vector_as_arraysegment(22); }
|
|
#endif
|
|
public long[] GetNormalCampaignStageIdArray() { return __p.__vector_as_array<long>(22); }
|
|
public long NormalExtraStageId(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int NormalExtraStageIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetNormalExtraStageIdBytes() { return __p.__vector_as_span<long>(24, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetNormalExtraStageIdBytes() { return __p.__vector_as_arraysegment(24); }
|
|
#endif
|
|
public long[] GetNormalExtraStageIdArray() { return __p.__vector_as_array<long>(24); }
|
|
public long HardCampaignStageId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int HardCampaignStageIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetHardCampaignStageIdBytes() { return __p.__vector_as_span<long>(26, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetHardCampaignStageIdBytes() { return __p.__vector_as_arraysegment(26); }
|
|
#endif
|
|
public long[] GetHardCampaignStageIdArray() { return __p.__vector_as_array<long>(26); }
|
|
public long VeryHardCampaignStageId(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; }
|
|
public int VeryHardCampaignStageIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<long> GetVeryHardCampaignStageIdBytes() { return __p.__vector_as_span<long>(28, 8); }
|
|
#else
|
|
public ArraySegment<byte>? GetVeryHardCampaignStageIdBytes() { return __p.__vector_as_arraysegment(28); }
|
|
#endif
|
|
public long[] GetVeryHardCampaignStageIdArray() { return __p.__vector_as_array<long>(28); }
|
|
public bool IsTacticSkip { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CampaignChapterExcel> CreateCampaignChapterExcel(FlatBufferBuilder builder,
|
|
long Id = 0,
|
|
StringOffset NameOffset = default(StringOffset),
|
|
StringOffset NormalImagePathOffset = default(StringOffset),
|
|
StringOffset HardImagePathOffset = default(StringOffset),
|
|
long Order = 0,
|
|
VectorOffset PreChapterIdOffset = default(VectorOffset),
|
|
long ChapterRewardId = 0,
|
|
long ChapterHardRewardId = 0,
|
|
long ChapterVeryHardRewardId = 0,
|
|
VectorOffset NormalCampaignStageIdOffset = default(VectorOffset),
|
|
VectorOffset NormalExtraStageIdOffset = default(VectorOffset),
|
|
VectorOffset HardCampaignStageIdOffset = default(VectorOffset),
|
|
VectorOffset VeryHardCampaignStageIdOffset = default(VectorOffset),
|
|
bool IsTacticSkip = false) {
|
|
builder.StartTable(14);
|
|
CampaignChapterExcel.AddChapterVeryHardRewardId(builder, ChapterVeryHardRewardId);
|
|
CampaignChapterExcel.AddChapterHardRewardId(builder, ChapterHardRewardId);
|
|
CampaignChapterExcel.AddChapterRewardId(builder, ChapterRewardId);
|
|
CampaignChapterExcel.AddOrder(builder, Order);
|
|
CampaignChapterExcel.AddId(builder, Id);
|
|
CampaignChapterExcel.AddVeryHardCampaignStageId(builder, VeryHardCampaignStageIdOffset);
|
|
CampaignChapterExcel.AddHardCampaignStageId(builder, HardCampaignStageIdOffset);
|
|
CampaignChapterExcel.AddNormalExtraStageId(builder, NormalExtraStageIdOffset);
|
|
CampaignChapterExcel.AddNormalCampaignStageId(builder, NormalCampaignStageIdOffset);
|
|
CampaignChapterExcel.AddPreChapterId(builder, PreChapterIdOffset);
|
|
CampaignChapterExcel.AddHardImagePath(builder, HardImagePathOffset);
|
|
CampaignChapterExcel.AddNormalImagePath(builder, NormalImagePathOffset);
|
|
CampaignChapterExcel.AddName(builder, NameOffset);
|
|
CampaignChapterExcel.AddIsTacticSkip(builder, IsTacticSkip);
|
|
return CampaignChapterExcel.EndCampaignChapterExcel(builder);
|
|
}
|
|
|
|
public static void StartCampaignChapterExcel(FlatBufferBuilder builder) { builder.StartTable(14); }
|
|
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
|
|
public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); }
|
|
public static void AddNormalImagePath(FlatBufferBuilder builder, StringOffset normalImagePathOffset) { builder.AddOffset(2, normalImagePathOffset.Value, 0); }
|
|
public static void AddHardImagePath(FlatBufferBuilder builder, StringOffset hardImagePathOffset) { builder.AddOffset(3, hardImagePathOffset.Value, 0); }
|
|
public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(4, order, 0); }
|
|
public static void AddPreChapterId(FlatBufferBuilder builder, VectorOffset preChapterIdOffset) { builder.AddOffset(5, preChapterIdOffset.Value, 0); }
|
|
public static VectorOffset CreatePreChapterIdVector(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 CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartPreChapterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddChapterRewardId(FlatBufferBuilder builder, long chapterRewardId) { builder.AddLong(6, chapterRewardId, 0); }
|
|
public static void AddChapterHardRewardId(FlatBufferBuilder builder, long chapterHardRewardId) { builder.AddLong(7, chapterHardRewardId, 0); }
|
|
public static void AddChapterVeryHardRewardId(FlatBufferBuilder builder, long chapterVeryHardRewardId) { builder.AddLong(8, chapterVeryHardRewardId, 0); }
|
|
public static void AddNormalCampaignStageId(FlatBufferBuilder builder, VectorOffset normalCampaignStageIdOffset) { builder.AddOffset(9, normalCampaignStageIdOffset.Value, 0); }
|
|
public static VectorOffset CreateNormalCampaignStageIdVector(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 CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartNormalCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddNormalExtraStageId(FlatBufferBuilder builder, VectorOffset normalExtraStageIdOffset) { builder.AddOffset(10, normalExtraStageIdOffset.Value, 0); }
|
|
public static VectorOffset CreateNormalExtraStageIdVector(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 CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartNormalExtraStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddHardCampaignStageId(FlatBufferBuilder builder, VectorOffset hardCampaignStageIdOffset) { builder.AddOffset(11, hardCampaignStageIdOffset.Value, 0); }
|
|
public static VectorOffset CreateHardCampaignStageIdVector(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 CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartHardCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddVeryHardCampaignStageId(FlatBufferBuilder builder, VectorOffset veryHardCampaignStageIdOffset) { builder.AddOffset(12, veryHardCampaignStageIdOffset.Value, 0); }
|
|
public static VectorOffset CreateVeryHardCampaignStageIdVector(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 CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment<long> data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); }
|
|
public static VectorOffset CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<long>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
public static void StartVeryHardCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); }
|
|
public static void AddIsTacticSkip(FlatBufferBuilder builder, bool isTacticSkip) { builder.AddBool(13, isTacticSkip, false); }
|
|
public static Offset<SCHALE.Common.FlatData.CampaignChapterExcel> EndCampaignChapterExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.CampaignChapterExcel>(o);
|
|
}
|
|
public CampaignChapterExcelT UnPack() {
|
|
var _o = new CampaignChapterExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(CampaignChapterExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("CampaignChapter");
|
|
_o.Id = TableEncryptionService.Convert(this.Id, key);
|
|
_o.Name = TableEncryptionService.Convert(this.Name, key);
|
|
_o.NormalImagePath = TableEncryptionService.Convert(this.NormalImagePath, key);
|
|
_o.HardImagePath = TableEncryptionService.Convert(this.HardImagePath, key);
|
|
_o.Order = TableEncryptionService.Convert(this.Order, key);
|
|
_o.PreChapterId = new List<long>();
|
|
for (var _j = 0; _j < this.PreChapterIdLength; ++_j) {_o.PreChapterId.Add(TableEncryptionService.Convert(this.PreChapterId(_j), key));}
|
|
_o.ChapterRewardId = TableEncryptionService.Convert(this.ChapterRewardId, key);
|
|
_o.ChapterHardRewardId = TableEncryptionService.Convert(this.ChapterHardRewardId, key);
|
|
_o.ChapterVeryHardRewardId = TableEncryptionService.Convert(this.ChapterVeryHardRewardId, key);
|
|
_o.NormalCampaignStageId = new List<long>();
|
|
for (var _j = 0; _j < this.NormalCampaignStageIdLength; ++_j) {_o.NormalCampaignStageId.Add(TableEncryptionService.Convert(this.NormalCampaignStageId(_j), key));}
|
|
_o.NormalExtraStageId = new List<long>();
|
|
for (var _j = 0; _j < this.NormalExtraStageIdLength; ++_j) {_o.NormalExtraStageId.Add(TableEncryptionService.Convert(this.NormalExtraStageId(_j), key));}
|
|
_o.HardCampaignStageId = new List<long>();
|
|
for (var _j = 0; _j < this.HardCampaignStageIdLength; ++_j) {_o.HardCampaignStageId.Add(TableEncryptionService.Convert(this.HardCampaignStageId(_j), key));}
|
|
_o.VeryHardCampaignStageId = new List<long>();
|
|
for (var _j = 0; _j < this.VeryHardCampaignStageIdLength; ++_j) {_o.VeryHardCampaignStageId.Add(TableEncryptionService.Convert(this.VeryHardCampaignStageId(_j), key));}
|
|
_o.IsTacticSkip = TableEncryptionService.Convert(this.IsTacticSkip, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.CampaignChapterExcel> Pack(FlatBufferBuilder builder, CampaignChapterExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CampaignChapterExcel>);
|
|
var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name);
|
|
var _NormalImagePath = _o.NormalImagePath == null ? default(StringOffset) : builder.CreateString(_o.NormalImagePath);
|
|
var _HardImagePath = _o.HardImagePath == null ? default(StringOffset) : builder.CreateString(_o.HardImagePath);
|
|
var _PreChapterId = default(VectorOffset);
|
|
if (_o.PreChapterId != null) {
|
|
var __PreChapterId = _o.PreChapterId.ToArray();
|
|
_PreChapterId = CreatePreChapterIdVector(builder, __PreChapterId);
|
|
}
|
|
var _NormalCampaignStageId = default(VectorOffset);
|
|
if (_o.NormalCampaignStageId != null) {
|
|
var __NormalCampaignStageId = _o.NormalCampaignStageId.ToArray();
|
|
_NormalCampaignStageId = CreateNormalCampaignStageIdVector(builder, __NormalCampaignStageId);
|
|
}
|
|
var _NormalExtraStageId = default(VectorOffset);
|
|
if (_o.NormalExtraStageId != null) {
|
|
var __NormalExtraStageId = _o.NormalExtraStageId.ToArray();
|
|
_NormalExtraStageId = CreateNormalExtraStageIdVector(builder, __NormalExtraStageId);
|
|
}
|
|
var _HardCampaignStageId = default(VectorOffset);
|
|
if (_o.HardCampaignStageId != null) {
|
|
var __HardCampaignStageId = _o.HardCampaignStageId.ToArray();
|
|
_HardCampaignStageId = CreateHardCampaignStageIdVector(builder, __HardCampaignStageId);
|
|
}
|
|
var _VeryHardCampaignStageId = default(VectorOffset);
|
|
if (_o.VeryHardCampaignStageId != null) {
|
|
var __VeryHardCampaignStageId = _o.VeryHardCampaignStageId.ToArray();
|
|
_VeryHardCampaignStageId = CreateVeryHardCampaignStageIdVector(builder, __VeryHardCampaignStageId);
|
|
}
|
|
return CreateCampaignChapterExcel(
|
|
builder,
|
|
_o.Id,
|
|
_Name,
|
|
_NormalImagePath,
|
|
_HardImagePath,
|
|
_o.Order,
|
|
_PreChapterId,
|
|
_o.ChapterRewardId,
|
|
_o.ChapterHardRewardId,
|
|
_o.ChapterVeryHardRewardId,
|
|
_NormalCampaignStageId,
|
|
_NormalExtraStageId,
|
|
_HardCampaignStageId,
|
|
_VeryHardCampaignStageId,
|
|
_o.IsTacticSkip);
|
|
}
|
|
}
|
|
|
|
public class CampaignChapterExcelT
|
|
{
|
|
public long Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string NormalImagePath { get; set; }
|
|
public string HardImagePath { get; set; }
|
|
public long Order { get; set; }
|
|
public List<long> PreChapterId { get; set; }
|
|
public long ChapterRewardId { get; set; }
|
|
public long ChapterHardRewardId { get; set; }
|
|
public long ChapterVeryHardRewardId { get; set; }
|
|
public List<long> NormalCampaignStageId { get; set; }
|
|
public List<long> NormalExtraStageId { get; set; }
|
|
public List<long> HardCampaignStageId { get; set; }
|
|
public List<long> VeryHardCampaignStageId { get; set; }
|
|
public bool IsTacticSkip { get; set; }
|
|
|
|
public CampaignChapterExcelT() {
|
|
this.Id = 0;
|
|
this.Name = null;
|
|
this.NormalImagePath = null;
|
|
this.HardImagePath = null;
|
|
this.Order = 0;
|
|
this.PreChapterId = null;
|
|
this.ChapterRewardId = 0;
|
|
this.ChapterHardRewardId = 0;
|
|
this.ChapterVeryHardRewardId = 0;
|
|
this.NormalCampaignStageId = null;
|
|
this.NormalExtraStageId = null;
|
|
this.HardCampaignStageId = null;
|
|
this.VeryHardCampaignStageId = null;
|
|
this.IsTacticSkip = false;
|
|
}
|
|
}
|
|
|
|
|
|
static public class CampaignChapterExcelVerify
|
|
{
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
{
|
|
return verifier.VerifyTableStart(tablePos)
|
|
&& verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyString(tablePos, 6 /*Name*/, false)
|
|
&& verifier.VerifyString(tablePos, 8 /*NormalImagePath*/, false)
|
|
&& verifier.VerifyString(tablePos, 10 /*HardImagePath*/, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*Order*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 14 /*PreChapterId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*ChapterRewardId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 18 /*ChapterHardRewardId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 20 /*ChapterVeryHardRewardId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 22 /*NormalCampaignStageId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 24 /*NormalExtraStageId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 26 /*HardCampaignStageId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyVectorOfData(tablePos, 28 /*VeryHardCampaignStageId*/, 8 /*long*/, false)
|
|
&& verifier.VerifyField(tablePos, 30 /*IsTacticSkip*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|