forked from Raphael/SCHALE.GameServer
137 lines
8.0 KiB
C#
137 lines
8.0 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 MiniGameDreamReplayScenarioExcel : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
public static MiniGameDreamReplayScenarioExcel GetRootAsMiniGameDreamReplayScenarioExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamReplayScenarioExcel(_bb, new MiniGameDreamReplayScenarioExcel()); }
|
|
public static MiniGameDreamReplayScenarioExcel GetRootAsMiniGameDreamReplayScenarioExcel(ByteBuffer _bb, MiniGameDreamReplayScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
public MiniGameDreamReplayScenarioExcel __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 ScenarioGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public long Order { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
public uint ReplaySummaryTitleLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public uint ReplaySummaryLocalizeScenarioId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } }
|
|
public string ReplayScenarioResource { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
#if ENABLE_SPAN_T
|
|
public Span<byte> GetReplayScenarioResourceBytes() { return __p.__vector_as_span<byte>(14, 1); }
|
|
#else
|
|
public ArraySegment<byte>? GetReplayScenarioResourceBytes() { return __p.__vector_as_arraysegment(14); }
|
|
#endif
|
|
public byte[] GetReplayScenarioResourceArray() { return __p.__vector_as_array<byte>(14); }
|
|
public bool IsReplayScenarioHorizon { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.MiniGameDreamReplayScenarioExcel> CreateMiniGameDreamReplayScenarioExcel(FlatBufferBuilder builder,
|
|
long EventContentId = 0,
|
|
long ScenarioGroupId = 0,
|
|
long Order = 0,
|
|
uint ReplaySummaryTitleLocalize = 0,
|
|
uint ReplaySummaryLocalizeScenarioId = 0,
|
|
StringOffset ReplayScenarioResourceOffset = default(StringOffset),
|
|
bool IsReplayScenarioHorizon = false) {
|
|
builder.StartTable(7);
|
|
MiniGameDreamReplayScenarioExcel.AddOrder(builder, Order);
|
|
MiniGameDreamReplayScenarioExcel.AddScenarioGroupId(builder, ScenarioGroupId);
|
|
MiniGameDreamReplayScenarioExcel.AddEventContentId(builder, EventContentId);
|
|
MiniGameDreamReplayScenarioExcel.AddReplayScenarioResource(builder, ReplayScenarioResourceOffset);
|
|
MiniGameDreamReplayScenarioExcel.AddReplaySummaryLocalizeScenarioId(builder, ReplaySummaryLocalizeScenarioId);
|
|
MiniGameDreamReplayScenarioExcel.AddReplaySummaryTitleLocalize(builder, ReplaySummaryTitleLocalize);
|
|
MiniGameDreamReplayScenarioExcel.AddIsReplayScenarioHorizon(builder, IsReplayScenarioHorizon);
|
|
return MiniGameDreamReplayScenarioExcel.EndMiniGameDreamReplayScenarioExcel(builder);
|
|
}
|
|
|
|
public static void StartMiniGameDreamReplayScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(7); }
|
|
public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); }
|
|
public static void AddScenarioGroupId(FlatBufferBuilder builder, long scenarioGroupId) { builder.AddLong(1, scenarioGroupId, 0); }
|
|
public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(2, order, 0); }
|
|
public static void AddReplaySummaryTitleLocalize(FlatBufferBuilder builder, uint replaySummaryTitleLocalize) { builder.AddUint(3, replaySummaryTitleLocalize, 0); }
|
|
public static void AddReplaySummaryLocalizeScenarioId(FlatBufferBuilder builder, uint replaySummaryLocalizeScenarioId) { builder.AddUint(4, replaySummaryLocalizeScenarioId, 0); }
|
|
public static void AddReplayScenarioResource(FlatBufferBuilder builder, StringOffset replayScenarioResourceOffset) { builder.AddOffset(5, replayScenarioResourceOffset.Value, 0); }
|
|
public static void AddIsReplayScenarioHorizon(FlatBufferBuilder builder, bool isReplayScenarioHorizon) { builder.AddBool(6, isReplayScenarioHorizon, false); }
|
|
public static Offset<SCHALE.Common.FlatData.MiniGameDreamReplayScenarioExcel> EndMiniGameDreamReplayScenarioExcel(FlatBufferBuilder builder) {
|
|
int o = builder.EndTable();
|
|
return new Offset<SCHALE.Common.FlatData.MiniGameDreamReplayScenarioExcel>(o);
|
|
}
|
|
public MiniGameDreamReplayScenarioExcelT UnPack() {
|
|
var _o = new MiniGameDreamReplayScenarioExcelT();
|
|
this.UnPackTo(_o);
|
|
return _o;
|
|
}
|
|
public void UnPackTo(MiniGameDreamReplayScenarioExcelT _o) {
|
|
byte[] key = TableEncryptionService.CreateKey("MiniGameDreamReplayScenario");
|
|
_o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key);
|
|
_o.ScenarioGroupId = TableEncryptionService.Convert(this.ScenarioGroupId, key);
|
|
_o.Order = TableEncryptionService.Convert(this.Order, key);
|
|
_o.ReplaySummaryTitleLocalize = TableEncryptionService.Convert(this.ReplaySummaryTitleLocalize, key);
|
|
_o.ReplaySummaryLocalizeScenarioId = TableEncryptionService.Convert(this.ReplaySummaryLocalizeScenarioId, key);
|
|
_o.ReplayScenarioResource = TableEncryptionService.Convert(this.ReplayScenarioResource, key);
|
|
_o.IsReplayScenarioHorizon = TableEncryptionService.Convert(this.IsReplayScenarioHorizon, key);
|
|
}
|
|
public static Offset<SCHALE.Common.FlatData.MiniGameDreamReplayScenarioExcel> Pack(FlatBufferBuilder builder, MiniGameDreamReplayScenarioExcelT _o) {
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.MiniGameDreamReplayScenarioExcel>);
|
|
var _ReplayScenarioResource = _o.ReplayScenarioResource == null ? default(StringOffset) : builder.CreateString(_o.ReplayScenarioResource);
|
|
return CreateMiniGameDreamReplayScenarioExcel(
|
|
builder,
|
|
_o.EventContentId,
|
|
_o.ScenarioGroupId,
|
|
_o.Order,
|
|
_o.ReplaySummaryTitleLocalize,
|
|
_o.ReplaySummaryLocalizeScenarioId,
|
|
_ReplayScenarioResource,
|
|
_o.IsReplayScenarioHorizon);
|
|
}
|
|
}
|
|
|
|
public class MiniGameDreamReplayScenarioExcelT
|
|
{
|
|
public long EventContentId { get; set; }
|
|
public long ScenarioGroupId { get; set; }
|
|
public long Order { get; set; }
|
|
public uint ReplaySummaryTitleLocalize { get; set; }
|
|
public uint ReplaySummaryLocalizeScenarioId { get; set; }
|
|
public string ReplayScenarioResource { get; set; }
|
|
public bool IsReplayScenarioHorizon { get; set; }
|
|
|
|
public MiniGameDreamReplayScenarioExcelT() {
|
|
this.EventContentId = 0;
|
|
this.ScenarioGroupId = 0;
|
|
this.Order = 0;
|
|
this.ReplaySummaryTitleLocalize = 0;
|
|
this.ReplaySummaryLocalizeScenarioId = 0;
|
|
this.ReplayScenarioResource = null;
|
|
this.IsReplayScenarioHorizon = false;
|
|
}
|
|
}
|
|
|
|
|
|
static public class MiniGameDreamReplayScenarioExcelVerify
|
|
{
|
|
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 /*ScenarioGroupId*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 8 /*Order*/, 8 /*long*/, 8, false)
|
|
&& verifier.VerifyField(tablePos, 10 /*ReplaySummaryTitleLocalize*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyField(tablePos, 12 /*ReplaySummaryLocalizeScenarioId*/, 4 /*uint*/, 4, false)
|
|
&& verifier.VerifyString(tablePos, 14 /*ReplayScenarioResource*/, false)
|
|
&& verifier.VerifyField(tablePos, 16 /*IsReplayScenarioHorizon*/, 1 /*bool*/, 1, false)
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
}
|
|
}
|
|
|
|
}
|