SCHALE.GameServer/SCHALE.Common/FlatData/FieldContentStageExcel.cs

227 lines
14 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 FieldContentStageExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static FieldContentStageExcel GetRootAsFieldContentStageExcel(ByteBuffer _bb) { return GetRootAsFieldContentStageExcel(_bb, new FieldContentStageExcel()); }
public static FieldContentStageExcel GetRootAsFieldContentStageExcel(ByteBuffer _bb, FieldContentStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public FieldContentStageExcel __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 SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long AreaId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long GroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } }
public string Name { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetNameBytes() { return __p.__vector_as_span<byte>(14, 1); }
#else
public ArraySegment<byte>? GetNameBytes() { return __p.__vector_as_arraysegment(14); }
#endif
public byte[] GetNameArray() { return __p.__vector_as_array<byte>(14); }
public long BattleDuration { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } }
public long StageEnterCostId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public int StageEnterCostAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } }
public int RecommandLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } }
public long GroundID { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long BGMId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public bool InstantClear { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public long FixedEchelonId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public bool SkipFormationSettings { get { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public static Offset<SCHALE.Common.FlatData.FieldContentStageExcel> CreateFieldContentStageExcel(FlatBufferBuilder builder,
long Id = 0,
long SeasonId = 0,
long AreaId = 0,
long GroupId = 0,
SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_,
StringOffset NameOffset = default(StringOffset),
long BattleDuration = 0,
SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_,
long StageEnterCostId = 0,
int StageEnterCostAmount = 0,
SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street,
int RecommandLevel = 0,
long GroundID = 0,
long BGMId = 0,
bool InstantClear = false,
long FixedEchelonId = 0,
bool SkipFormationSettings = false) {
builder.StartTable(17);
FieldContentStageExcel.AddFixedEchelonId(builder, FixedEchelonId);
FieldContentStageExcel.AddBGMId(builder, BGMId);
FieldContentStageExcel.AddGroundID(builder, GroundID);
FieldContentStageExcel.AddStageEnterCostId(builder, StageEnterCostId);
FieldContentStageExcel.AddBattleDuration(builder, BattleDuration);
FieldContentStageExcel.AddGroupId(builder, GroupId);
FieldContentStageExcel.AddAreaId(builder, AreaId);
FieldContentStageExcel.AddSeasonId(builder, SeasonId);
FieldContentStageExcel.AddId(builder, Id);
FieldContentStageExcel.AddRecommandLevel(builder, RecommandLevel);
FieldContentStageExcel.AddStageTopography_(builder, StageTopography_);
FieldContentStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount);
FieldContentStageExcel.AddStageEnterCostType(builder, StageEnterCostType);
FieldContentStageExcel.AddName(builder, NameOffset);
FieldContentStageExcel.AddStageDifficulty_(builder, StageDifficulty_);
FieldContentStageExcel.AddSkipFormationSettings(builder, SkipFormationSettings);
FieldContentStageExcel.AddInstantClear(builder, InstantClear);
return FieldContentStageExcel.EndFieldContentStageExcel(builder);
}
public static void StartFieldContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(17); }
public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); }
public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); }
public static void AddAreaId(FlatBufferBuilder builder, long areaId) { builder.AddLong(2, areaId, 0); }
public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(3, groupId, 0); }
public static void AddStageDifficulty_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty stageDifficulty_) { builder.AddInt(4, (int)stageDifficulty_, 0); }
public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(5, nameOffset.Value, 0); }
public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(6, battleDuration, 0); }
public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(7, (int)stageEnterCostType, 0); }
public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(8, stageEnterCostId, 0); }
public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(9, stageEnterCostAmount, 0); }
public static void AddStageTopography_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography_) { builder.AddInt(10, (int)stageTopography_, 0); }
public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(11, recommandLevel, 0); }
public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(12, groundID, 0); }
public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(13, bGMId, 0); }
public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(14, instantClear, false); }
public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(15, fixedEchelonId, 0); }
public static void AddSkipFormationSettings(FlatBufferBuilder builder, bool skipFormationSettings) { builder.AddBool(16, skipFormationSettings, false); }
public static Offset<SCHALE.Common.FlatData.FieldContentStageExcel> EndFieldContentStageExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.FieldContentStageExcel>(o);
}
public FieldContentStageExcelT UnPack() {
var _o = new FieldContentStageExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(FieldContentStageExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("FieldContentStage");
_o.Id = TableEncryptionService.Convert(this.Id, key);
_o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key);
_o.AreaId = TableEncryptionService.Convert(this.AreaId, key);
_o.GroupId = TableEncryptionService.Convert(this.GroupId, key);
_o.StageDifficulty_ = TableEncryptionService.Convert(this.StageDifficulty_, key);
_o.Name = TableEncryptionService.Convert(this.Name, key);
_o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key);
_o.StageEnterCostType = TableEncryptionService.Convert(this.StageEnterCostType, key);
_o.StageEnterCostId = TableEncryptionService.Convert(this.StageEnterCostId, key);
_o.StageEnterCostAmount = TableEncryptionService.Convert(this.StageEnterCostAmount, key);
_o.StageTopography_ = TableEncryptionService.Convert(this.StageTopography_, key);
_o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key);
_o.GroundID = TableEncryptionService.Convert(this.GroundID, key);
_o.BGMId = TableEncryptionService.Convert(this.BGMId, key);
_o.InstantClear = TableEncryptionService.Convert(this.InstantClear, key);
_o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key);
_o.SkipFormationSettings = TableEncryptionService.Convert(this.SkipFormationSettings, key);
}
public static Offset<SCHALE.Common.FlatData.FieldContentStageExcel> Pack(FlatBufferBuilder builder, FieldContentStageExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.FieldContentStageExcel>);
var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name);
return CreateFieldContentStageExcel(
builder,
_o.Id,
_o.SeasonId,
_o.AreaId,
_o.GroupId,
_o.StageDifficulty_,
_Name,
_o.BattleDuration,
_o.StageEnterCostType,
_o.StageEnterCostId,
_o.StageEnterCostAmount,
_o.StageTopography_,
_o.RecommandLevel,
_o.GroundID,
_o.BGMId,
_o.InstantClear,
_o.FixedEchelonId,
_o.SkipFormationSettings);
}
}
public class FieldContentStageExcelT
{
public long Id { get; set; }
public long SeasonId { get; set; }
public long AreaId { get; set; }
public long GroupId { get; set; }
public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get; set; }
public string Name { get; set; }
public long BattleDuration { get; set; }
public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get; set; }
public long StageEnterCostId { get; set; }
public int StageEnterCostAmount { get; set; }
public SCHALE.Common.FlatData.StageTopography StageTopography_ { get; set; }
public int RecommandLevel { get; set; }
public long GroundID { get; set; }
public long BGMId { get; set; }
public bool InstantClear { get; set; }
public long FixedEchelonId { get; set; }
public bool SkipFormationSettings { get; set; }
public FieldContentStageExcelT() {
this.Id = 0;
this.SeasonId = 0;
this.AreaId = 0;
this.GroupId = 0;
this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_;
this.Name = null;
this.BattleDuration = 0;
this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_;
this.StageEnterCostId = 0;
this.StageEnterCostAmount = 0;
this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street;
this.RecommandLevel = 0;
this.GroundID = 0;
this.BGMId = 0;
this.InstantClear = false;
this.FixedEchelonId = 0;
this.SkipFormationSettings = false;
}
}
static public class FieldContentStageExcelVerify
{
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 /*SeasonId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 8 /*AreaId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 10 /*GroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 12 /*StageDifficulty_*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false)
&& verifier.VerifyString(tablePos, 14 /*Name*/, false)
&& verifier.VerifyField(tablePos, 16 /*BattleDuration*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 18 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
&& verifier.VerifyField(tablePos, 20 /*StageEnterCostId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 22 /*StageEnterCostAmount*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 24 /*StageTopography_*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false)
&& verifier.VerifyField(tablePos, 26 /*RecommandLevel*/, 4 /*int*/, 4, false)
&& verifier.VerifyField(tablePos, 28 /*GroundID*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 30 /*BGMId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 32 /*InstantClear*/, 1 /*bool*/, 1, false)
&& verifier.VerifyField(tablePos, 34 /*FixedEchelonId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 36 /*SkipFormationSettings*/, 1 /*bool*/, 1, false)
&& verifier.VerifyTableEnd(tablePos);
}
}
}