SCHALE.GameServer/SCHALE.Common/FlatData/ContentsShortcutExcel.cs

218 lines
14 KiB
C#
Raw Normal View History

2024-04-21 00:21:57 +00:00
// <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;
2024-04-29 15:52:45 +00:00
using global::SCHALE.Common.Crypto;
2024-04-21 00:21:57 +00:00
using global::Google.FlatBuffers;
public struct ContentsShortcutExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb) { return GetRootAsContentsShortcutExcel(_bb, new ContentsShortcutExcel()); }
public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb, ContentsShortcutExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public ContentsShortcutExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
2024-11-08 10:52:05 +00:00
public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } }
2024-04-21 00:21:57 +00:00
public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long ScenarioModeVolume { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long ScenarioModeChapter { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string ShortcutOpenTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetShortcutOpenTimeBytes() { return __p.__vector_as_span<byte>(14, 1); }
#else
public ArraySegment<byte>? GetShortcutOpenTimeBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetShortcutOpenTimeArray() { return __p.__vector_as_array<byte>(14); }
public string ShortcutCloseTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetShortcutCloseTimeBytes() { return __p.__vector_as_span<byte>(16, 1); }
#else
public ArraySegment<byte>? GetShortcutCloseTimeBytes() { return __p.__vector_as_arraysegment(16); }
#endif
public byte[] GetShortcutCloseTimeArray() { return __p.__vector_as_array<byte>(16); }
public long ConditionContentId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } }
public int ConquestStepIndex { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public long ShortcutContentId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string ShortcutUIName(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
public int ShortcutUINameLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } }
public string Localize { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetLocalizeBytes() { return __p.__vector_as_span<byte>(28, 1); }
#else
public ArraySegment<byte>? GetLocalizeBytes() { return __p.__vector_as_arraysegment(28); }
#endif
public byte[] GetLocalizeArray() { return __p.__vector_as_array<byte>(28); }
public static Offset<SCHALE.Common.FlatData.ContentsShortcutExcel> CreateContentsShortcutExcel(FlatBufferBuilder builder,
long UniqueId = 0,
2024-11-08 10:52:05 +00:00
SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None,
2024-04-21 00:21:57 +00:00
long EventContentId = 0,
long ScenarioModeVolume = 0,
long ScenarioModeChapter = 0,
StringOffset ShortcutOpenTimeOffset = default(StringOffset),
StringOffset ShortcutCloseTimeOffset = default(StringOffset),
long ConditionContentId = 0,
SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None,
int ConquestStepIndex = 0,
long ShortcutContentId = 0,
VectorOffset ShortcutUINameOffset = default(VectorOffset),
StringOffset LocalizeOffset = default(StringOffset)) {
builder.StartTable(13);
ContentsShortcutExcel.AddShortcutContentId(builder, ShortcutContentId);
ContentsShortcutExcel.AddConditionContentId(builder, ConditionContentId);
ContentsShortcutExcel.AddScenarioModeChapter(builder, ScenarioModeChapter);
ContentsShortcutExcel.AddScenarioModeVolume(builder, ScenarioModeVolume);
ContentsShortcutExcel.AddEventContentId(builder, EventContentId);
ContentsShortcutExcel.AddUniqueId(builder, UniqueId);
ContentsShortcutExcel.AddLocalize(builder, LocalizeOffset);
ContentsShortcutExcel.AddShortcutUIName(builder, ShortcutUINameOffset);
ContentsShortcutExcel.AddConquestStepIndex(builder, ConquestStepIndex);
ContentsShortcutExcel.AddConquestMapDifficulty(builder, ConquestMapDifficulty);
ContentsShortcutExcel.AddShortcutCloseTime(builder, ShortcutCloseTimeOffset);
ContentsShortcutExcel.AddShortcutOpenTime(builder, ShortcutOpenTimeOffset);
2024-11-08 10:52:05 +00:00
ContentsShortcutExcel.AddContentType_(builder, ContentType_);
2024-04-21 00:21:57 +00:00
return ContentsShortcutExcel.EndContentsShortcutExcel(builder);
}
public static void StartContentsShortcutExcel(FlatBufferBuilder builder) { builder.StartTable(13); }
public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); }
2024-11-08 10:52:05 +00:00
public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(1, (int)contentType_, 0); }
2024-04-21 00:21:57 +00:00
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); }
public static void AddScenarioModeVolume(FlatBufferBuilder builder, long scenarioModeVolume) { builder.AddLong(3, scenarioModeVolume, 0); }
public static void AddScenarioModeChapter(FlatBufferBuilder builder, long scenarioModeChapter) { builder.AddLong(4, scenarioModeChapter, 0); }
public static void AddShortcutOpenTime(FlatBufferBuilder builder, StringOffset shortcutOpenTimeOffset) { builder.AddOffset(5, shortcutOpenTimeOffset.Value, 0); }
public static void AddShortcutCloseTime(FlatBufferBuilder builder, StringOffset shortcutCloseTimeOffset) { builder.AddOffset(6, shortcutCloseTimeOffset.Value, 0); }
public static void AddConditionContentId(FlatBufferBuilder builder, long conditionContentId) { builder.AddLong(7, conditionContentId, 0); }
public static void AddConquestMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty conquestMapDifficulty) { builder.AddInt(8, (int)conquestMapDifficulty, 0); }
public static void AddConquestStepIndex(FlatBufferBuilder builder, int conquestStepIndex) { builder.AddInt(9, conquestStepIndex, 0); }
public static void AddShortcutContentId(FlatBufferBuilder builder, long shortcutContentId) { builder.AddLong(10, shortcutContentId, 0); }
public static void AddShortcutUIName(FlatBufferBuilder builder, VectorOffset shortcutUINameOffset) { builder.AddOffset(11, shortcutUINameOffset.Value, 0); }
public static VectorOffset CreateShortcutUINameVector(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 CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartShortcutUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddLocalize(FlatBufferBuilder builder, StringOffset localizeOffset) { builder.AddOffset(12, localizeOffset.Value, 0); }
public static Offset<SCHALE.Common.FlatData.ContentsShortcutExcel> EndContentsShortcutExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.ContentsShortcutExcel>(o);
}
2024-04-29 15:52:45 +00:00
public ContentsShortcutExcelT UnPack() {
var _o = new ContentsShortcutExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(ContentsShortcutExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("ContentsShortcut");
_o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key);
2024-11-08 10:52:05 +00:00
_o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, key);
2024-04-29 15:52:45 +00:00
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
_o.ScenarioModeVolume = TableEncryptionService.Convert(this.ScenarioModeVolume, key);
_o.ScenarioModeChapter = TableEncryptionService.Convert(this.ScenarioModeChapter, key);
_o.ShortcutOpenTime = TableEncryptionService.Convert(this.ShortcutOpenTime, key);
_o.ShortcutCloseTime = TableEncryptionService.Convert(this.ShortcutCloseTime, key);
_o.ConditionContentId = TableEncryptionService.Convert(this.ConditionContentId, key);
_o.ConquestMapDifficulty = TableEncryptionService.Convert(this.ConquestMapDifficulty, key);
_o.ConquestStepIndex = TableEncryptionService.Convert(this.ConquestStepIndex, key);
_o.ShortcutContentId = TableEncryptionService.Convert(this.ShortcutContentId, key);
_o.ShortcutUIName = new List<string>();
for (var _j = 0; _j < this.ShortcutUINameLength; ++_j) {_o.ShortcutUIName.Add(TableEncryptionService.Convert(this.ShortcutUIName(_j), key));}
_o.Localize = TableEncryptionService.Convert(this.Localize, key);
}
public static Offset<SCHALE.Common.FlatData.ContentsShortcutExcel> Pack(FlatBufferBuilder builder, ContentsShortcutExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ContentsShortcutExcel>);
var _ShortcutOpenTime = _o.ShortcutOpenTime == null ? default(StringOffset) : builder.CreateString(_o.ShortcutOpenTime);
var _ShortcutCloseTime = _o.ShortcutCloseTime == null ? default(StringOffset) : builder.CreateString(_o.ShortcutCloseTime);
var _ShortcutUIName = default(VectorOffset);
if (_o.ShortcutUIName != null) {
var __ShortcutUIName = new StringOffset[_o.ShortcutUIName.Count];
for (var _j = 0; _j < __ShortcutUIName.Length; ++_j) { __ShortcutUIName[_j] = builder.CreateString(_o.ShortcutUIName[_j]); }
_ShortcutUIName = CreateShortcutUINameVector(builder, __ShortcutUIName);
}
var _Localize = _o.Localize == null ? default(StringOffset) : builder.CreateString(_o.Localize);
return CreateContentsShortcutExcel(
builder,
_o.UniqueId,
2024-11-08 10:52:05 +00:00
_o.ContentType_,
2024-04-29 15:52:45 +00:00
_o.EventContentId,
_o.ScenarioModeVolume,
_o.ScenarioModeChapter,
_ShortcutOpenTime,
_ShortcutCloseTime,
_o.ConditionContentId,
_o.ConquestMapDifficulty,
_o.ConquestStepIndex,
_o.ShortcutContentId,
_ShortcutUIName,
_Localize);
}
}
public class ContentsShortcutExcelT
{
public long UniqueId { get; set; }
2024-11-08 10:52:05 +00:00
public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; }
2024-04-29 15:52:45 +00:00
public long EventContentId { get; set; }
public long ScenarioModeVolume { get; set; }
public long ScenarioModeChapter { get; set; }
public string ShortcutOpenTime { get; set; }
public string ShortcutCloseTime { get; set; }
public long ConditionContentId { get; set; }
public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get; set; }
public int ConquestStepIndex { get; set; }
public long ShortcutContentId { get; set; }
public List<string> ShortcutUIName { get; set; }
public string Localize { get; set; }
public ContentsShortcutExcelT() {
this.UniqueId = 0;
2024-11-08 10:52:05 +00:00
this.ContentType_ = SCHALE.Common.FlatData.ContentType.None;
2024-04-29 15:52:45 +00:00
this.EventContentId = 0;
this.ScenarioModeVolume = 0;
this.ScenarioModeChapter = 0;
this.ShortcutOpenTime = null;
this.ShortcutCloseTime = null;
this.ConditionContentId = 0;
this.ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None;
this.ConquestStepIndex = 0;
this.ShortcutContentId = 0;
this.ShortcutUIName = null;
this.Localize = null;
}
2024-04-21 00:21:57 +00:00
}
static public class ContentsShortcutExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false)
2024-11-08 10:52:05 +00:00
&& verifier.VerifyField(tablePos, 6 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*ScenarioModeVolume*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*ScenarioModeChapter*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 14 /*ShortcutOpenTime*/, false)
&& verifier.VerifyString(tablePos, 16 /*ShortcutCloseTime*/, false)
&& verifier.VerifyField(tablePos, 18 /*ConditionContentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 20 /*ConquestMapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false)
&& verifier.VerifyField(tablePos, 22 /*ConquestStepIndex*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 24 /*ShortcutContentId*/, 8 /*long*/, 8, false)
&& verifier.VerifyVectorOfStrings(tablePos, 26 /*ShortcutUIName*/, false)
&& verifier.VerifyString(tablePos, 28 /*Localize*/, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}