SCHALE.GameServer/SCHALE.Common/FlatData/CostumeExcel.cs

507 lines
37 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 CostumeExcel : IFlatbufferObject
{
private Table __p;
public ByteBuffer ByteBuffer { get { return __p.bb; } }
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
public static CostumeExcel GetRootAsCostumeExcel(ByteBuffer _bb) { return GetRootAsCostumeExcel(_bb, new CostumeExcel()); }
public static CostumeExcel GetRootAsCostumeExcel(ByteBuffer _bb, CostumeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
public CostumeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
public long CostumeGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public long CostumeUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string DevName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetDevNameBytes() { return __p.__vector_as_span<byte>(8, 1); }
#else
public ArraySegment<byte>? GetDevNameBytes() { return __p.__vector_as_arraysegment(8); }
#endif
public byte[] GetDevNameArray() { return __p.__vector_as_array<byte>(8); }
public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } }
2024-04-21 00:21:57 +00:00
public bool IsDefault { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public bool CollectionVisible { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public string ReleaseDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetReleaseDateBytes() { return __p.__vector_as_span<byte>(16, 1); }
#else
public ArraySegment<byte>? GetReleaseDateBytes() { return __p.__vector_as_arraysegment(16); }
#endif
public byte[] GetReleaseDateArray() { return __p.__vector_as_array<byte>(16); }
public string CollectionVisibleStartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetCollectionVisibleStartDateBytes() { return __p.__vector_as_span<byte>(18, 1); }
#else
public ArraySegment<byte>? GetCollectionVisibleStartDateBytes() { return __p.__vector_as_arraysegment(18); }
#endif
public byte[] GetCollectionVisibleStartDateArray() { return __p.__vector_as_array<byte>(18); }
public string CollectionVisibleEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetCollectionVisibleEndDateBytes() { return __p.__vector_as_span<byte>(20, 1); }
#else
public ArraySegment<byte>? GetCollectionVisibleEndDateBytes() { return __p.__vector_as_arraysegment(20); }
#endif
public byte[] GetCollectionVisibleEndDateArray() { return __p.__vector_as_array<byte>(20); }
public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } }
2024-04-21 00:21:57 +00:00
public long CharacterSkillListGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public string SpineResourceName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetSpineResourceNameBytes() { return __p.__vector_as_span<byte>(26, 1); }
#else
public ArraySegment<byte>? GetSpineResourceNameBytes() { return __p.__vector_as_arraysegment(26); }
#endif
public byte[] GetSpineResourceNameArray() { return __p.__vector_as_array<byte>(26); }
public string SpineResourceNameDiorama { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetSpineResourceNameDioramaBytes() { return __p.__vector_as_span<byte>(28, 1); }
#else
public ArraySegment<byte>? GetSpineResourceNameDioramaBytes() { return __p.__vector_as_arraysegment(28); }
#endif
public byte[] GetSpineResourceNameDioramaArray() { return __p.__vector_as_array<byte>(28); }
public string SpineResourceNameDioramaForFormConversion(int j) { int o = __p.__offset(30); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
public int SpineResourceNameDioramaForFormConversionLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } }
public SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.EntityMaterialType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EntityMaterialType.Wood; } }
2024-04-21 00:21:57 +00:00
public string ModelPrefabName { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetModelPrefabNameBytes() { return __p.__vector_as_span<byte>(34, 1); }
#else
public ArraySegment<byte>? GetModelPrefabNameBytes() { return __p.__vector_as_arraysegment(34); }
#endif
public byte[] GetModelPrefabNameArray() { return __p.__vector_as_array<byte>(34); }
public string CafeModelPrefabName { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetCafeModelPrefabNameBytes() { return __p.__vector_as_span<byte>(36, 1); }
#else
public ArraySegment<byte>? GetCafeModelPrefabNameBytes() { return __p.__vector_as_arraysegment(36); }
#endif
public byte[] GetCafeModelPrefabNameArray() { return __p.__vector_as_array<byte>(36); }
public string EchelonModelPrefabName { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetEchelonModelPrefabNameBytes() { return __p.__vector_as_span<byte>(38, 1); }
#else
public ArraySegment<byte>? GetEchelonModelPrefabNameBytes() { return __p.__vector_as_arraysegment(38); }
#endif
public byte[] GetEchelonModelPrefabNameArray() { return __p.__vector_as_array<byte>(38); }
public string StrategyModelPrefabName { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetStrategyModelPrefabNameBytes() { return __p.__vector_as_span<byte>(40, 1); }
#else
public ArraySegment<byte>? GetStrategyModelPrefabNameBytes() { return __p.__vector_as_arraysegment(40); }
#endif
public byte[] GetStrategyModelPrefabNameArray() { return __p.__vector_as_array<byte>(40); }
public string TextureDir { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetTextureDirBytes() { return __p.__vector_as_span<byte>(42, 1); }
#else
public ArraySegment<byte>? GetTextureDirBytes() { return __p.__vector_as_arraysegment(42); }
#endif
public byte[] GetTextureDirArray() { return __p.__vector_as_array<byte>(42); }
public string CollectionTexturePath { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetCollectionTexturePathBytes() { return __p.__vector_as_span<byte>(44, 1); }
#else
public ArraySegment<byte>? GetCollectionTexturePathBytes() { return __p.__vector_as_arraysegment(44); }
#endif
public byte[] GetCollectionTexturePathArray() { return __p.__vector_as_array<byte>(44); }
public string CollectionBGTexturePath { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetCollectionBGTexturePathBytes() { return __p.__vector_as_span<byte>(46, 1); }
#else
public ArraySegment<byte>? GetCollectionBGTexturePathBytes() { return __p.__vector_as_arraysegment(46); }
#endif
public byte[] GetCollectionBGTexturePathArray() { return __p.__vector_as_array<byte>(46); }
2024-11-08 10:52:05 +00:00
public string CombatStyleTexturePath { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetCombatStyleTexturePathBytes() { return __p.__vector_as_span<byte>(48, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetCombatStyleTexturePathBytes() { return __p.__vector_as_arraysegment(48); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
public byte[] GetCombatStyleTexturePathArray() { return __p.__vector_as_array<byte>(48); }
public bool UseObjectHPBAR { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public string TextureBoss { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetTextureBossBytes() { return __p.__vector_as_span<byte>(52, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetTextureBossBytes() { return __p.__vector_as_arraysegment(52); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
public byte[] GetTextureBossArray() { return __p.__vector_as_array<byte>(52); }
public string TextureSkillCard(int j) { int o = __p.__offset(54); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; }
public int TextureSkillCardLength { get { int o = __p.__offset(54); return o != 0 ? __p.__vector_len(o) : 0; } }
public string InformationPacel { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetInformationPacelBytes() { return __p.__vector_as_span<byte>(56, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetInformationPacelBytes() { return __p.__vector_as_arraysegment(56); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
public byte[] GetInformationPacelArray() { return __p.__vector_as_array<byte>(56); }
public string AnimationSSR { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
2024-04-21 00:21:57 +00:00
#if ENABLE_SPAN_T
2024-11-08 10:52:05 +00:00
public Span<byte> GetAnimationSSRBytes() { return __p.__vector_as_span<byte>(58, 1); }
2024-04-21 00:21:57 +00:00
#else
2024-11-08 10:52:05 +00:00
public ArraySegment<byte>? GetAnimationSSRBytes() { return __p.__vector_as_arraysegment(58); }
2024-04-21 00:21:57 +00:00
#endif
2024-11-08 10:52:05 +00:00
public byte[] GetAnimationSSRArray() { return __p.__vector_as_array<byte>(58); }
public string EnterStrategyAnimationName { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
#if ENABLE_SPAN_T
public Span<byte> GetEnterStrategyAnimationNameBytes() { return __p.__vector_as_span<byte>(60, 1); }
#else
public ArraySegment<byte>? GetEnterStrategyAnimationNameBytes() { return __p.__vector_as_arraysegment(60); }
#endif
public byte[] GetEnterStrategyAnimationNameArray() { return __p.__vector_as_array<byte>(60); }
public bool AnimationValidator { get { int o = __p.__offset(62); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
public long CharacterVoiceGroupId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
public bool ShowObjectHpStatus { get { int o = __p.__offset(66); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
2024-04-21 00:21:57 +00:00
public static Offset<SCHALE.Common.FlatData.CostumeExcel> CreateCostumeExcel(FlatBufferBuilder builder,
long CostumeGroupId = 0,
long CostumeUniqueId = 0,
StringOffset DevNameOffset = default(StringOffset),
SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo,
2024-04-21 00:21:57 +00:00
bool IsDefault = false,
bool CollectionVisible = false,
StringOffset ReleaseDateOffset = default(StringOffset),
StringOffset CollectionVisibleStartDateOffset = default(StringOffset),
StringOffset CollectionVisibleEndDateOffset = default(StringOffset),
SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N,
2024-04-21 00:21:57 +00:00
long CharacterSkillListGroupId = 0,
StringOffset SpineResourceNameOffset = default(StringOffset),
StringOffset SpineResourceNameDioramaOffset = default(StringOffset),
VectorOffset SpineResourceNameDioramaForFormConversionOffset = default(VectorOffset),
SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType = SCHALE.Common.FlatData.EntityMaterialType.Wood,
2024-04-21 00:21:57 +00:00
StringOffset ModelPrefabNameOffset = default(StringOffset),
StringOffset CafeModelPrefabNameOffset = default(StringOffset),
StringOffset EchelonModelPrefabNameOffset = default(StringOffset),
StringOffset StrategyModelPrefabNameOffset = default(StringOffset),
StringOffset TextureDirOffset = default(StringOffset),
StringOffset CollectionTexturePathOffset = default(StringOffset),
StringOffset CollectionBGTexturePathOffset = default(StringOffset),
2024-11-08 10:52:05 +00:00
StringOffset CombatStyleTexturePathOffset = default(StringOffset),
2024-04-21 00:21:57 +00:00
bool UseObjectHPBAR = false,
StringOffset TextureBossOffset = default(StringOffset),
VectorOffset TextureSkillCardOffset = default(VectorOffset),
StringOffset InformationPacelOffset = default(StringOffset),
StringOffset AnimationSSROffset = default(StringOffset),
StringOffset EnterStrategyAnimationNameOffset = default(StringOffset),
bool AnimationValidator = false,
2024-11-08 10:52:05 +00:00
long CharacterVoiceGroupId = 0,
bool ShowObjectHpStatus = false) {
builder.StartTable(32);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddCharacterVoiceGroupId(builder, CharacterVoiceGroupId);
CostumeExcel.AddCharacterSkillListGroupId(builder, CharacterSkillListGroupId);
CostumeExcel.AddCostumeUniqueId(builder, CostumeUniqueId);
CostumeExcel.AddCostumeGroupId(builder, CostumeGroupId);
CostumeExcel.AddEnterStrategyAnimationName(builder, EnterStrategyAnimationNameOffset);
CostumeExcel.AddAnimationSSR(builder, AnimationSSROffset);
CostumeExcel.AddInformationPacel(builder, InformationPacelOffset);
CostumeExcel.AddTextureSkillCard(builder, TextureSkillCardOffset);
CostumeExcel.AddTextureBoss(builder, TextureBossOffset);
2024-11-08 10:52:05 +00:00
CostumeExcel.AddCombatStyleTexturePath(builder, CombatStyleTexturePathOffset);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddCollectionBGTexturePath(builder, CollectionBGTexturePathOffset);
CostumeExcel.AddCollectionTexturePath(builder, CollectionTexturePathOffset);
CostumeExcel.AddTextureDir(builder, TextureDirOffset);
CostumeExcel.AddStrategyModelPrefabName(builder, StrategyModelPrefabNameOffset);
CostumeExcel.AddEchelonModelPrefabName(builder, EchelonModelPrefabNameOffset);
CostumeExcel.AddCafeModelPrefabName(builder, CafeModelPrefabNameOffset);
CostumeExcel.AddModelPrefabName(builder, ModelPrefabNameOffset);
CostumeExcel.AddEntityMaterialType(builder, EntityMaterialType);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddSpineResourceNameDioramaForFormConversion(builder, SpineResourceNameDioramaForFormConversionOffset);
CostumeExcel.AddSpineResourceNameDiorama(builder, SpineResourceNameDioramaOffset);
CostumeExcel.AddSpineResourceName(builder, SpineResourceNameOffset);
CostumeExcel.AddRarity(builder, Rarity);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddCollectionVisibleEndDate(builder, CollectionVisibleEndDateOffset);
CostumeExcel.AddCollectionVisibleStartDate(builder, CollectionVisibleStartDateOffset);
CostumeExcel.AddReleaseDate(builder, ReleaseDateOffset);
CostumeExcel.AddProductionStep(builder, ProductionStep);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddDevName(builder, DevNameOffset);
2024-11-08 10:52:05 +00:00
CostumeExcel.AddShowObjectHpStatus(builder, ShowObjectHpStatus);
2024-04-21 00:21:57 +00:00
CostumeExcel.AddAnimationValidator(builder, AnimationValidator);
CostumeExcel.AddUseObjectHPBAR(builder, UseObjectHPBAR);
CostumeExcel.AddCollectionVisible(builder, CollectionVisible);
CostumeExcel.AddIsDefault(builder, IsDefault);
return CostumeExcel.EndCostumeExcel(builder);
}
2024-11-08 10:52:05 +00:00
public static void StartCostumeExcel(FlatBufferBuilder builder) { builder.StartTable(32); }
2024-04-21 00:21:57 +00:00
public static void AddCostumeGroupId(FlatBufferBuilder builder, long costumeGroupId) { builder.AddLong(0, costumeGroupId, 0); }
public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(1, costumeUniqueId, 0); }
public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(2, devNameOffset.Value, 0); }
public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); }
2024-04-21 00:21:57 +00:00
public static void AddIsDefault(FlatBufferBuilder builder, bool isDefault) { builder.AddBool(4, isDefault, false); }
public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(5, collectionVisible, false); }
public static void AddReleaseDate(FlatBufferBuilder builder, StringOffset releaseDateOffset) { builder.AddOffset(6, releaseDateOffset.Value, 0); }
public static void AddCollectionVisibleStartDate(FlatBufferBuilder builder, StringOffset collectionVisibleStartDateOffset) { builder.AddOffset(7, collectionVisibleStartDateOffset.Value, 0); }
public static void AddCollectionVisibleEndDate(FlatBufferBuilder builder, StringOffset collectionVisibleEndDateOffset) { builder.AddOffset(8, collectionVisibleEndDateOffset.Value, 0); }
public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(9, (int)rarity, 0); }
2024-04-21 00:21:57 +00:00
public static void AddCharacterSkillListGroupId(FlatBufferBuilder builder, long characterSkillListGroupId) { builder.AddLong(10, characterSkillListGroupId, 0); }
public static void AddSpineResourceName(FlatBufferBuilder builder, StringOffset spineResourceNameOffset) { builder.AddOffset(11, spineResourceNameOffset.Value, 0); }
public static void AddSpineResourceNameDiorama(FlatBufferBuilder builder, StringOffset spineResourceNameDioramaOffset) { builder.AddOffset(12, spineResourceNameDioramaOffset.Value, 0); }
public static void AddSpineResourceNameDioramaForFormConversion(FlatBufferBuilder builder, VectorOffset spineResourceNameDioramaForFormConversionOffset) { builder.AddOffset(13, spineResourceNameDioramaForFormConversionOffset.Value, 0); }
public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVector(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 CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartSpineResourceNameDioramaForFormConversionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
public static void AddEntityMaterialType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EntityMaterialType entityMaterialType) { builder.AddInt(14, (int)entityMaterialType, 0); }
2024-04-21 00:21:57 +00:00
public static void AddModelPrefabName(FlatBufferBuilder builder, StringOffset modelPrefabNameOffset) { builder.AddOffset(15, modelPrefabNameOffset.Value, 0); }
public static void AddCafeModelPrefabName(FlatBufferBuilder builder, StringOffset cafeModelPrefabNameOffset) { builder.AddOffset(16, cafeModelPrefabNameOffset.Value, 0); }
public static void AddEchelonModelPrefabName(FlatBufferBuilder builder, StringOffset echelonModelPrefabNameOffset) { builder.AddOffset(17, echelonModelPrefabNameOffset.Value, 0); }
public static void AddStrategyModelPrefabName(FlatBufferBuilder builder, StringOffset strategyModelPrefabNameOffset) { builder.AddOffset(18, strategyModelPrefabNameOffset.Value, 0); }
public static void AddTextureDir(FlatBufferBuilder builder, StringOffset textureDirOffset) { builder.AddOffset(19, textureDirOffset.Value, 0); }
public static void AddCollectionTexturePath(FlatBufferBuilder builder, StringOffset collectionTexturePathOffset) { builder.AddOffset(20, collectionTexturePathOffset.Value, 0); }
public static void AddCollectionBGTexturePath(FlatBufferBuilder builder, StringOffset collectionBGTexturePathOffset) { builder.AddOffset(21, collectionBGTexturePathOffset.Value, 0); }
2024-11-08 10:52:05 +00:00
public static void AddCombatStyleTexturePath(FlatBufferBuilder builder, StringOffset combatStyleTexturePathOffset) { builder.AddOffset(22, combatStyleTexturePathOffset.Value, 0); }
public static void AddUseObjectHPBAR(FlatBufferBuilder builder, bool useObjectHPBAR) { builder.AddBool(23, useObjectHPBAR, false); }
public static void AddTextureBoss(FlatBufferBuilder builder, StringOffset textureBossOffset) { builder.AddOffset(24, textureBossOffset.Value, 0); }
public static void AddTextureSkillCard(FlatBufferBuilder builder, VectorOffset textureSkillCardOffset) { builder.AddOffset(25, textureSkillCardOffset.Value, 0); }
2024-04-21 00:21:57 +00:00
public static VectorOffset CreateTextureSkillCardVector(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 CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, ArraySegment<StringOffset> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
public static VectorOffset CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<StringOffset>(dataPtr, sizeInBytes); return builder.EndVector(); }
public static void StartTextureSkillCardVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
2024-11-08 10:52:05 +00:00
public static void AddInformationPacel(FlatBufferBuilder builder, StringOffset informationPacelOffset) { builder.AddOffset(26, informationPacelOffset.Value, 0); }
public static void AddAnimationSSR(FlatBufferBuilder builder, StringOffset animationSSROffset) { builder.AddOffset(27, animationSSROffset.Value, 0); }
public static void AddEnterStrategyAnimationName(FlatBufferBuilder builder, StringOffset enterStrategyAnimationNameOffset) { builder.AddOffset(28, enterStrategyAnimationNameOffset.Value, 0); }
public static void AddAnimationValidator(FlatBufferBuilder builder, bool animationValidator) { builder.AddBool(29, animationValidator, false); }
public static void AddCharacterVoiceGroupId(FlatBufferBuilder builder, long characterVoiceGroupId) { builder.AddLong(30, characterVoiceGroupId, 0); }
public static void AddShowObjectHpStatus(FlatBufferBuilder builder, bool showObjectHpStatus) { builder.AddBool(31, showObjectHpStatus, false); }
2024-04-21 00:21:57 +00:00
public static Offset<SCHALE.Common.FlatData.CostumeExcel> EndCostumeExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.CostumeExcel>(o);
}
2024-04-29 15:52:45 +00:00
public CostumeExcelT UnPack() {
var _o = new CostumeExcelT();
this.UnPackTo(_o);
return _o;
}
public void UnPackTo(CostumeExcelT _o) {
byte[] key = TableEncryptionService.CreateKey("Costume");
_o.CostumeGroupId = TableEncryptionService.Convert(this.CostumeGroupId, key);
_o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key);
_o.DevName = TableEncryptionService.Convert(this.DevName, key);
_o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key);
2024-04-29 15:52:45 +00:00
_o.IsDefault = TableEncryptionService.Convert(this.IsDefault, key);
_o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key);
_o.ReleaseDate = TableEncryptionService.Convert(this.ReleaseDate, key);
_o.CollectionVisibleStartDate = TableEncryptionService.Convert(this.CollectionVisibleStartDate, key);
_o.CollectionVisibleEndDate = TableEncryptionService.Convert(this.CollectionVisibleEndDate, key);
_o.Rarity = TableEncryptionService.Convert(this.Rarity, key);
2024-04-29 15:52:45 +00:00
_o.CharacterSkillListGroupId = TableEncryptionService.Convert(this.CharacterSkillListGroupId, key);
_o.SpineResourceName = TableEncryptionService.Convert(this.SpineResourceName, key);
_o.SpineResourceNameDiorama = TableEncryptionService.Convert(this.SpineResourceNameDiorama, key);
_o.SpineResourceNameDioramaForFormConversion = new List<string>();
for (var _j = 0; _j < this.SpineResourceNameDioramaForFormConversionLength; ++_j) {_o.SpineResourceNameDioramaForFormConversion.Add(TableEncryptionService.Convert(this.SpineResourceNameDioramaForFormConversion(_j), key));}
_o.EntityMaterialType = TableEncryptionService.Convert(this.EntityMaterialType, key);
2024-04-29 15:52:45 +00:00
_o.ModelPrefabName = TableEncryptionService.Convert(this.ModelPrefabName, key);
_o.CafeModelPrefabName = TableEncryptionService.Convert(this.CafeModelPrefabName, key);
_o.EchelonModelPrefabName = TableEncryptionService.Convert(this.EchelonModelPrefabName, key);
_o.StrategyModelPrefabName = TableEncryptionService.Convert(this.StrategyModelPrefabName, key);
_o.TextureDir = TableEncryptionService.Convert(this.TextureDir, key);
_o.CollectionTexturePath = TableEncryptionService.Convert(this.CollectionTexturePath, key);
_o.CollectionBGTexturePath = TableEncryptionService.Convert(this.CollectionBGTexturePath, key);
2024-11-08 10:52:05 +00:00
_o.CombatStyleTexturePath = TableEncryptionService.Convert(this.CombatStyleTexturePath, key);
2024-04-29 15:52:45 +00:00
_o.UseObjectHPBAR = TableEncryptionService.Convert(this.UseObjectHPBAR, key);
_o.TextureBoss = TableEncryptionService.Convert(this.TextureBoss, key);
_o.TextureSkillCard = new List<string>();
for (var _j = 0; _j < this.TextureSkillCardLength; ++_j) {_o.TextureSkillCard.Add(TableEncryptionService.Convert(this.TextureSkillCard(_j), key));}
_o.InformationPacel = TableEncryptionService.Convert(this.InformationPacel, key);
_o.AnimationSSR = TableEncryptionService.Convert(this.AnimationSSR, key);
_o.EnterStrategyAnimationName = TableEncryptionService.Convert(this.EnterStrategyAnimationName, key);
_o.AnimationValidator = TableEncryptionService.Convert(this.AnimationValidator, key);
_o.CharacterVoiceGroupId = TableEncryptionService.Convert(this.CharacterVoiceGroupId, key);
2024-11-08 10:52:05 +00:00
_o.ShowObjectHpStatus = TableEncryptionService.Convert(this.ShowObjectHpStatus, key);
2024-04-29 15:52:45 +00:00
}
public static Offset<SCHALE.Common.FlatData.CostumeExcel> Pack(FlatBufferBuilder builder, CostumeExcelT _o) {
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CostumeExcel>);
var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName);
var _ReleaseDate = _o.ReleaseDate == null ? default(StringOffset) : builder.CreateString(_o.ReleaseDate);
var _CollectionVisibleStartDate = _o.CollectionVisibleStartDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleStartDate);
var _CollectionVisibleEndDate = _o.CollectionVisibleEndDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleEndDate);
var _SpineResourceName = _o.SpineResourceName == null ? default(StringOffset) : builder.CreateString(_o.SpineResourceName);
var _SpineResourceNameDiorama = _o.SpineResourceNameDiorama == null ? default(StringOffset) : builder.CreateString(_o.SpineResourceNameDiorama);
var _SpineResourceNameDioramaForFormConversion = default(VectorOffset);
if (_o.SpineResourceNameDioramaForFormConversion != null) {
var __SpineResourceNameDioramaForFormConversion = new StringOffset[_o.SpineResourceNameDioramaForFormConversion.Count];
for (var _j = 0; _j < __SpineResourceNameDioramaForFormConversion.Length; ++_j) { __SpineResourceNameDioramaForFormConversion[_j] = builder.CreateString(_o.SpineResourceNameDioramaForFormConversion[_j]); }
_SpineResourceNameDioramaForFormConversion = CreateSpineResourceNameDioramaForFormConversionVector(builder, __SpineResourceNameDioramaForFormConversion);
}
var _ModelPrefabName = _o.ModelPrefabName == null ? default(StringOffset) : builder.CreateString(_o.ModelPrefabName);
var _CafeModelPrefabName = _o.CafeModelPrefabName == null ? default(StringOffset) : builder.CreateString(_o.CafeModelPrefabName);
var _EchelonModelPrefabName = _o.EchelonModelPrefabName == null ? default(StringOffset) : builder.CreateString(_o.EchelonModelPrefabName);
var _StrategyModelPrefabName = _o.StrategyModelPrefabName == null ? default(StringOffset) : builder.CreateString(_o.StrategyModelPrefabName);
var _TextureDir = _o.TextureDir == null ? default(StringOffset) : builder.CreateString(_o.TextureDir);
var _CollectionTexturePath = _o.CollectionTexturePath == null ? default(StringOffset) : builder.CreateString(_o.CollectionTexturePath);
var _CollectionBGTexturePath = _o.CollectionBGTexturePath == null ? default(StringOffset) : builder.CreateString(_o.CollectionBGTexturePath);
2024-11-08 10:52:05 +00:00
var _CombatStyleTexturePath = _o.CombatStyleTexturePath == null ? default(StringOffset) : builder.CreateString(_o.CombatStyleTexturePath);
2024-04-29 15:52:45 +00:00
var _TextureBoss = _o.TextureBoss == null ? default(StringOffset) : builder.CreateString(_o.TextureBoss);
var _TextureSkillCard = default(VectorOffset);
if (_o.TextureSkillCard != null) {
var __TextureSkillCard = new StringOffset[_o.TextureSkillCard.Count];
for (var _j = 0; _j < __TextureSkillCard.Length; ++_j) { __TextureSkillCard[_j] = builder.CreateString(_o.TextureSkillCard[_j]); }
_TextureSkillCard = CreateTextureSkillCardVector(builder, __TextureSkillCard);
}
var _InformationPacel = _o.InformationPacel == null ? default(StringOffset) : builder.CreateString(_o.InformationPacel);
var _AnimationSSR = _o.AnimationSSR == null ? default(StringOffset) : builder.CreateString(_o.AnimationSSR);
var _EnterStrategyAnimationName = _o.EnterStrategyAnimationName == null ? default(StringOffset) : builder.CreateString(_o.EnterStrategyAnimationName);
return CreateCostumeExcel(
builder,
_o.CostumeGroupId,
_o.CostumeUniqueId,
_DevName,
_o.ProductionStep,
2024-04-29 15:52:45 +00:00
_o.IsDefault,
_o.CollectionVisible,
_ReleaseDate,
_CollectionVisibleStartDate,
_CollectionVisibleEndDate,
_o.Rarity,
2024-04-29 15:52:45 +00:00
_o.CharacterSkillListGroupId,
_SpineResourceName,
_SpineResourceNameDiorama,
_SpineResourceNameDioramaForFormConversion,
_o.EntityMaterialType,
2024-04-29 15:52:45 +00:00
_ModelPrefabName,
_CafeModelPrefabName,
_EchelonModelPrefabName,
_StrategyModelPrefabName,
_TextureDir,
_CollectionTexturePath,
_CollectionBGTexturePath,
2024-11-08 10:52:05 +00:00
_CombatStyleTexturePath,
2024-04-29 15:52:45 +00:00
_o.UseObjectHPBAR,
_TextureBoss,
_TextureSkillCard,
_InformationPacel,
_AnimationSSR,
_EnterStrategyAnimationName,
_o.AnimationValidator,
2024-11-08 10:52:05 +00:00
_o.CharacterVoiceGroupId,
_o.ShowObjectHpStatus);
2024-04-29 15:52:45 +00:00
}
}
public class CostumeExcelT
{
public long CostumeGroupId { get; set; }
public long CostumeUniqueId { get; set; }
public string DevName { get; set; }
public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; }
2024-04-29 15:52:45 +00:00
public bool IsDefault { get; set; }
public bool CollectionVisible { get; set; }
public string ReleaseDate { get; set; }
public string CollectionVisibleStartDate { get; set; }
public string CollectionVisibleEndDate { get; set; }
public SCHALE.Common.FlatData.Rarity Rarity { get; set; }
2024-04-29 15:52:45 +00:00
public long CharacterSkillListGroupId { get; set; }
public string SpineResourceName { get; set; }
public string SpineResourceNameDiorama { get; set; }
public List<string> SpineResourceNameDioramaForFormConversion { get; set; }
public SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType { get; set; }
2024-04-29 15:52:45 +00:00
public string ModelPrefabName { get; set; }
public string CafeModelPrefabName { get; set; }
public string EchelonModelPrefabName { get; set; }
public string StrategyModelPrefabName { get; set; }
public string TextureDir { get; set; }
public string CollectionTexturePath { get; set; }
public string CollectionBGTexturePath { get; set; }
2024-11-08 10:52:05 +00:00
public string CombatStyleTexturePath { get; set; }
2024-04-29 15:52:45 +00:00
public bool UseObjectHPBAR { get; set; }
public string TextureBoss { get; set; }
public List<string> TextureSkillCard { get; set; }
public string InformationPacel { get; set; }
public string AnimationSSR { get; set; }
public string EnterStrategyAnimationName { get; set; }
public bool AnimationValidator { get; set; }
public long CharacterVoiceGroupId { get; set; }
2024-11-08 10:52:05 +00:00
public bool ShowObjectHpStatus { get; set; }
2024-04-29 15:52:45 +00:00
public CostumeExcelT() {
this.CostumeGroupId = 0;
this.CostumeUniqueId = 0;
this.DevName = null;
this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo;
2024-04-29 15:52:45 +00:00
this.IsDefault = false;
this.CollectionVisible = false;
this.ReleaseDate = null;
this.CollectionVisibleStartDate = null;
this.CollectionVisibleEndDate = null;
this.Rarity = SCHALE.Common.FlatData.Rarity.N;
2024-04-29 15:52:45 +00:00
this.CharacterSkillListGroupId = 0;
this.SpineResourceName = null;
this.SpineResourceNameDiorama = null;
this.SpineResourceNameDioramaForFormConversion = null;
this.EntityMaterialType = SCHALE.Common.FlatData.EntityMaterialType.Wood;
2024-04-29 15:52:45 +00:00
this.ModelPrefabName = null;
this.CafeModelPrefabName = null;
this.EchelonModelPrefabName = null;
this.StrategyModelPrefabName = null;
this.TextureDir = null;
this.CollectionTexturePath = null;
this.CollectionBGTexturePath = null;
2024-11-08 10:52:05 +00:00
this.CombatStyleTexturePath = null;
2024-04-29 15:52:45 +00:00
this.UseObjectHPBAR = false;
this.TextureBoss = null;
this.TextureSkillCard = null;
this.InformationPacel = null;
this.AnimationSSR = null;
this.EnterStrategyAnimationName = null;
this.AnimationValidator = false;
this.CharacterVoiceGroupId = 0;
2024-11-08 10:52:05 +00:00
this.ShowObjectHpStatus = false;
2024-04-29 15:52:45 +00:00
}
2024-04-21 00:21:57 +00:00
}
static public class CostumeExcelVerify
{
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
{
return verifier.VerifyTableStart(tablePos)
&& verifier.VerifyField(tablePos, 4 /*CostumeGroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 6 /*CostumeUniqueId*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 8 /*DevName*/, false)
&& verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 12 /*IsDefault*/, 1 /*bool*/, 1, false)
&& verifier.VerifyField(tablePos, 14 /*CollectionVisible*/, 1 /*bool*/, 1, false)
&& verifier.VerifyString(tablePos, 16 /*ReleaseDate*/, false)
&& verifier.VerifyString(tablePos, 18 /*CollectionVisibleStartDate*/, false)
&& verifier.VerifyString(tablePos, 20 /*CollectionVisibleEndDate*/, false)
&& verifier.VerifyField(tablePos, 22 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyField(tablePos, 24 /*CharacterSkillListGroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyString(tablePos, 26 /*SpineResourceName*/, false)
&& verifier.VerifyString(tablePos, 28 /*SpineResourceNameDiorama*/, false)
&& verifier.VerifyVectorOfStrings(tablePos, 30 /*SpineResourceNameDioramaForFormConversion*/, false)
&& verifier.VerifyField(tablePos, 32 /*EntityMaterialType*/, 4 /*SCHALE.Common.FlatData.EntityMaterialType*/, 4, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyString(tablePos, 34 /*ModelPrefabName*/, false)
&& verifier.VerifyString(tablePos, 36 /*CafeModelPrefabName*/, false)
&& verifier.VerifyString(tablePos, 38 /*EchelonModelPrefabName*/, false)
&& verifier.VerifyString(tablePos, 40 /*StrategyModelPrefabName*/, false)
&& verifier.VerifyString(tablePos, 42 /*TextureDir*/, false)
&& verifier.VerifyString(tablePos, 44 /*CollectionTexturePath*/, false)
&& verifier.VerifyString(tablePos, 46 /*CollectionBGTexturePath*/, false)
2024-11-08 10:52:05 +00:00
&& verifier.VerifyString(tablePos, 48 /*CombatStyleTexturePath*/, false)
&& verifier.VerifyField(tablePos, 50 /*UseObjectHPBAR*/, 1 /*bool*/, 1, false)
&& verifier.VerifyString(tablePos, 52 /*TextureBoss*/, false)
&& verifier.VerifyVectorOfStrings(tablePos, 54 /*TextureSkillCard*/, false)
&& verifier.VerifyString(tablePos, 56 /*InformationPacel*/, false)
&& verifier.VerifyString(tablePos, 58 /*AnimationSSR*/, false)
&& verifier.VerifyString(tablePos, 60 /*EnterStrategyAnimationName*/, false)
&& verifier.VerifyField(tablePos, 62 /*AnimationValidator*/, 1 /*bool*/, 1, false)
&& verifier.VerifyField(tablePos, 64 /*CharacterVoiceGroupId*/, 8 /*long*/, 8, false)
&& verifier.VerifyField(tablePos, 66 /*ShowObjectHpStatus*/, 1 /*bool*/, 1, false)
2024-04-21 00:21:57 +00:00
&& verifier.VerifyTableEnd(tablePos);
}
}
}