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 CharacterDialogExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static CharacterDialogExcel GetRootAsCharacterDialogExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogExcel(_bb, new CharacterDialogExcel()); }
|
|
|
|
public static CharacterDialogExcel GetRootAsCharacterDialogExcel(ByteBuffer _bb, CharacterDialogExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public CharacterDialogExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long CharacterId { 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 long DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-30 22:20:43 +00:00
|
|
|
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; } }
|
|
|
|
public SCHALE.Common.FlatData.DialogCategory DialogCategory { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } }
|
|
|
|
public SCHALE.Common.FlatData.DialogCondition DialogCondition { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } }
|
|
|
|
public SCHALE.Common.FlatData.Anniversary Anniversary { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Anniversary)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Anniversary.None; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public string StartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetStartDateBytes() { return __p.__vector_as_span<byte>(18, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetStartDateBytes() { return __p.__vector_as_arraysegment(18); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetStartDateArray() { return __p.__vector_as_array<byte>(18); }
|
|
|
|
public string EndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetEndDateBytes() { return __p.__vector_as_span<byte>(20, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetEndDateBytes() { return __p.__vector_as_arraysegment(20); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetEndDateArray() { return __p.__vector_as_array<byte>(20); }
|
|
|
|
public long GroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.DialogType DialogType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public string ActionName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetActionNameBytes() { return __p.__vector_as_span<byte>(26, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetActionNameBytes() { return __p.__vector_as_arraysegment(26); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetActionNameArray() { return __p.__vector_as_array<byte>(26); }
|
|
|
|
public long Duration { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public string AnimationName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<byte> GetAnimationNameBytes() { return __p.__vector_as_span<byte>(30, 1); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(30); }
|
|
|
|
#endif
|
|
|
|
public byte[] GetAnimationNameArray() { return __p.__vector_as_array<byte>(30); }
|
2024-12-29 16:52:25 +00:00
|
|
|
public string LocalizeKR { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
#if ENABLE_SPAN_T
|
2024-12-29 16:52:25 +00:00
|
|
|
public Span<byte> GetLocalizeKRBytes() { return __p.__vector_as_span<byte>(32, 1); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#else
|
2024-12-29 16:52:25 +00:00
|
|
|
public ArraySegment<byte>? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(32); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#endif
|
2024-12-29 16:52:25 +00:00
|
|
|
public byte[] GetLocalizeKRArray() { return __p.__vector_as_array<byte>(32); }
|
|
|
|
public string LocalizeJP { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
#if ENABLE_SPAN_T
|
2024-12-29 16:52:25 +00:00
|
|
|
public Span<byte> GetLocalizeJPBytes() { return __p.__vector_as_span<byte>(34, 1); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#else
|
2024-12-29 16:52:25 +00:00
|
|
|
public ArraySegment<byte>? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(34); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#endif
|
2024-12-29 16:52:25 +00:00
|
|
|
public byte[] GetLocalizeJPArray() { return __p.__vector_as_array<byte>(34); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public uint VoiceId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; }
|
|
|
|
public int VoiceIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } }
|
|
|
|
#if ENABLE_SPAN_T
|
|
|
|
public Span<uint> GetVoiceIdBytes() { return __p.__vector_as_span<uint>(36, 4); }
|
|
|
|
#else
|
|
|
|
public ArraySegment<byte>? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(36); }
|
|
|
|
#endif
|
|
|
|
public uint[] GetVoiceIdArray() { return __p.__vector_as_array<uint>(36); }
|
|
|
|
public bool ApplyPosition { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
|
|
|
public float PosX { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
|
|
|
|
public float PosY { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } }
|
|
|
|
public bool CollectionVisible { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long UnlockFavorRank { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public bool UnlockEquipWeapon { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } }
|
2024-12-29 16:52:25 +00:00
|
|
|
public string LocalizeCVGroup { 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-12-29 16:52:25 +00:00
|
|
|
public Span<byte> GetLocalizeCVGroupBytes() { return __p.__vector_as_span<byte>(52, 1); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#else
|
2024-12-29 16:52:25 +00:00
|
|
|
public ArraySegment<byte>? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(52); }
|
2024-04-21 00:21:57 +00:00
|
|
|
#endif
|
2024-12-29 16:52:25 +00:00
|
|
|
public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array<byte>(52); }
|
2024-04-21 00:21:57 +00:00
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogExcel> CreateCharacterDialogExcel(FlatBufferBuilder builder,
|
2024-12-29 16:52:25 +00:00
|
|
|
long CharacterId = 0,
|
|
|
|
long CostumeUniqueId = 0,
|
|
|
|
long DisplayOrder = 0,
|
2024-12-30 22:20:43 +00:00
|
|
|
SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo,
|
|
|
|
SCHALE.Common.FlatData.DialogCategory DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe,
|
|
|
|
SCHALE.Common.FlatData.DialogCondition DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle,
|
|
|
|
SCHALE.Common.FlatData.Anniversary Anniversary = SCHALE.Common.FlatData.Anniversary.None,
|
2024-12-29 16:52:25 +00:00
|
|
|
StringOffset StartDateOffset = default(StringOffset),
|
|
|
|
StringOffset EndDateOffset = default(StringOffset),
|
|
|
|
long GroupId = 0,
|
2024-12-30 22:20:43 +00:00
|
|
|
SCHALE.Common.FlatData.DialogType DialogType = SCHALE.Common.FlatData.DialogType.Talk,
|
2024-12-29 16:52:25 +00:00
|
|
|
StringOffset ActionNameOffset = default(StringOffset),
|
|
|
|
long Duration = 0,
|
|
|
|
StringOffset AnimationNameOffset = default(StringOffset),
|
|
|
|
StringOffset LocalizeKROffset = default(StringOffset),
|
|
|
|
StringOffset LocalizeJPOffset = default(StringOffset),
|
|
|
|
VectorOffset VoiceIdOffset = default(VectorOffset),
|
|
|
|
bool ApplyPosition = false,
|
|
|
|
float PosX = 0.0f,
|
|
|
|
float PosY = 0.0f,
|
|
|
|
bool CollectionVisible = false,
|
2024-12-30 22:20:43 +00:00
|
|
|
SCHALE.Common.FlatData.CVCollectionType CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal,
|
2024-12-29 16:52:25 +00:00
|
|
|
long UnlockFavorRank = 0,
|
|
|
|
bool UnlockEquipWeapon = false,
|
|
|
|
StringOffset LocalizeCVGroupOffset = default(StringOffset)) {
|
2024-04-21 00:21:57 +00:00
|
|
|
builder.StartTable(25);
|
2024-12-29 16:52:25 +00:00
|
|
|
CharacterDialogExcel.AddUnlockFavorRank(builder, UnlockFavorRank);
|
|
|
|
CharacterDialogExcel.AddDuration(builder, Duration);
|
|
|
|
CharacterDialogExcel.AddGroupId(builder, GroupId);
|
|
|
|
CharacterDialogExcel.AddDisplayOrder(builder, DisplayOrder);
|
|
|
|
CharacterDialogExcel.AddCostumeUniqueId(builder, CostumeUniqueId);
|
|
|
|
CharacterDialogExcel.AddCharacterId(builder, CharacterId);
|
|
|
|
CharacterDialogExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset);
|
2024-12-30 22:20:43 +00:00
|
|
|
CharacterDialogExcel.AddCVCollectionType(builder, CVCollectionType);
|
2024-12-29 16:52:25 +00:00
|
|
|
CharacterDialogExcel.AddPosY(builder, PosY);
|
|
|
|
CharacterDialogExcel.AddPosX(builder, PosX);
|
|
|
|
CharacterDialogExcel.AddVoiceId(builder, VoiceIdOffset);
|
|
|
|
CharacterDialogExcel.AddLocalizeJP(builder, LocalizeJPOffset);
|
|
|
|
CharacterDialogExcel.AddLocalizeKR(builder, LocalizeKROffset);
|
|
|
|
CharacterDialogExcel.AddAnimationName(builder, AnimationNameOffset);
|
|
|
|
CharacterDialogExcel.AddActionName(builder, ActionNameOffset);
|
2024-12-30 22:20:43 +00:00
|
|
|
CharacterDialogExcel.AddDialogType(builder, DialogType);
|
2024-12-29 16:52:25 +00:00
|
|
|
CharacterDialogExcel.AddEndDate(builder, EndDateOffset);
|
|
|
|
CharacterDialogExcel.AddStartDate(builder, StartDateOffset);
|
2024-12-30 22:20:43 +00:00
|
|
|
CharacterDialogExcel.AddAnniversary(builder, Anniversary);
|
|
|
|
CharacterDialogExcel.AddDialogCondition(builder, DialogCondition);
|
|
|
|
CharacterDialogExcel.AddDialogCategory(builder, DialogCategory);
|
|
|
|
CharacterDialogExcel.AddProductionStep(builder, ProductionStep);
|
2024-12-29 16:52:25 +00:00
|
|
|
CharacterDialogExcel.AddUnlockEquipWeapon(builder, UnlockEquipWeapon);
|
|
|
|
CharacterDialogExcel.AddCollectionVisible(builder, CollectionVisible);
|
|
|
|
CharacterDialogExcel.AddApplyPosition(builder, ApplyPosition);
|
2024-04-21 00:21:57 +00:00
|
|
|
return CharacterDialogExcel.EndCharacterDialogExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartCharacterDialogExcel(FlatBufferBuilder builder) { builder.StartTable(25); }
|
|
|
|
public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); }
|
|
|
|
public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(1, costumeUniqueId, 0); }
|
|
|
|
public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); }
|
2024-12-30 22:20:43 +00:00
|
|
|
public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); }
|
|
|
|
public static void AddDialogCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory) { builder.AddInt(4, (int)dialogCategory, 0); }
|
|
|
|
public static void AddDialogCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCondition dialogCondition) { builder.AddInt(5, (int)dialogCondition, 0); }
|
|
|
|
public static void AddAnniversary(FlatBufferBuilder builder, SCHALE.Common.FlatData.Anniversary anniversary) { builder.AddInt(6, (int)anniversary, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(7, startDateOffset.Value, 0); }
|
|
|
|
public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(8, endDateOffset.Value, 0); }
|
|
|
|
public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(9, groupId, 0); }
|
2024-12-30 22:20:43 +00:00
|
|
|
public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType dialogType) { builder.AddInt(10, (int)dialogType, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddActionName(FlatBufferBuilder builder, StringOffset actionNameOffset) { builder.AddOffset(11, actionNameOffset.Value, 0); }
|
|
|
|
public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(12, duration, 0); }
|
|
|
|
public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(13, animationNameOffset.Value, 0); }
|
2024-12-29 16:52:25 +00:00
|
|
|
public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(14, localizeKROffset.Value, 0); }
|
|
|
|
public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(15, localizeJPOffset.Value, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(16, voiceIdOffset.Value, 0); }
|
|
|
|
public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); }
|
|
|
|
public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); }
|
|
|
|
public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment<uint> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); }
|
|
|
|
public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<uint>(dataPtr, sizeInBytes); return builder.EndVector(); }
|
|
|
|
public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); }
|
|
|
|
public static void AddApplyPosition(FlatBufferBuilder builder, bool applyPosition) { builder.AddBool(17, applyPosition, false); }
|
|
|
|
public static void AddPosX(FlatBufferBuilder builder, float posX) { builder.AddFloat(18, posX, 0.0f); }
|
|
|
|
public static void AddPosY(FlatBufferBuilder builder, float posY) { builder.AddFloat(19, posY, 0.0f); }
|
|
|
|
public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(20, collectionVisible, false); }
|
2024-12-30 22:20:43 +00:00
|
|
|
public static void AddCVCollectionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cVCollectionType) { builder.AddInt(21, (int)cVCollectionType, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddUnlockFavorRank(FlatBufferBuilder builder, long unlockFavorRank) { builder.AddLong(22, unlockFavorRank, 0); }
|
|
|
|
public static void AddUnlockEquipWeapon(FlatBufferBuilder builder, bool unlockEquipWeapon) { builder.AddBool(23, unlockEquipWeapon, false); }
|
2024-12-29 16:52:25 +00:00
|
|
|
public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(24, localizeCVGroupOffset.Value, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogExcel> EndCharacterDialogExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.CharacterDialogExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public CharacterDialogExcelT UnPack() {
|
|
|
|
var _o = new CharacterDialogExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(CharacterDialogExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("CharacterDialog");
|
|
|
|
_o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key);
|
|
|
|
_o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key);
|
|
|
|
_o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key);
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key);
|
|
|
|
_o.DialogCategory = TableEncryptionService.Convert(this.DialogCategory, key);
|
|
|
|
_o.DialogCondition = TableEncryptionService.Convert(this.DialogCondition, key);
|
|
|
|
_o.Anniversary = TableEncryptionService.Convert(this.Anniversary, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.StartDate = TableEncryptionService.Convert(this.StartDate, key);
|
|
|
|
_o.EndDate = TableEncryptionService.Convert(this.EndDate, key);
|
|
|
|
_o.GroupId = TableEncryptionService.Convert(this.GroupId, key);
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.DialogType = TableEncryptionService.Convert(this.DialogType, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ActionName = TableEncryptionService.Convert(this.ActionName, key);
|
|
|
|
_o.Duration = TableEncryptionService.Convert(this.Duration, key);
|
|
|
|
_o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key);
|
2024-12-29 16:52:25 +00:00
|
|
|
_o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key);
|
|
|
|
_o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.VoiceId = new List<uint>();
|
|
|
|
for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));}
|
|
|
|
_o.ApplyPosition = TableEncryptionService.Convert(this.ApplyPosition, key);
|
|
|
|
_o.PosX = TableEncryptionService.Convert(this.PosX, key);
|
|
|
|
_o.PosY = TableEncryptionService.Convert(this.PosY, key);
|
|
|
|
_o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key);
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.CVCollectionType = TableEncryptionService.Convert(this.CVCollectionType, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.UnlockFavorRank = TableEncryptionService.Convert(this.UnlockFavorRank, key);
|
|
|
|
_o.UnlockEquipWeapon = TableEncryptionService.Convert(this.UnlockEquipWeapon, key);
|
2024-12-29 16:52:25 +00:00
|
|
|
_o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.CharacterDialogExcel> Pack(FlatBufferBuilder builder, CharacterDialogExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.CharacterDialogExcel>);
|
2024-12-29 16:52:25 +00:00
|
|
|
var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate);
|
|
|
|
var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate);
|
|
|
|
var _ActionName = _o.ActionName == null ? default(StringOffset) : builder.CreateString(_o.ActionName);
|
|
|
|
var _AnimationName = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName);
|
|
|
|
var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR);
|
|
|
|
var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP);
|
|
|
|
var _VoiceId = default(VectorOffset);
|
2024-04-29 15:52:45 +00:00
|
|
|
if (_o.VoiceId != null) {
|
2024-12-29 16:52:25 +00:00
|
|
|
var __VoiceId = _o.VoiceId.ToArray();
|
|
|
|
_VoiceId = CreateVoiceIdVector(builder, __VoiceId);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
2024-12-29 16:52:25 +00:00
|
|
|
var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup);
|
2024-04-29 15:52:45 +00:00
|
|
|
return CreateCharacterDialogExcel(
|
|
|
|
builder,
|
|
|
|
_o.CharacterId,
|
|
|
|
_o.CostumeUniqueId,
|
|
|
|
_o.DisplayOrder,
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.ProductionStep,
|
|
|
|
_o.DialogCategory,
|
|
|
|
_o.DialogCondition,
|
|
|
|
_o.Anniversary,
|
2024-12-29 16:52:25 +00:00
|
|
|
_StartDate,
|
|
|
|
_EndDate,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.GroupId,
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.DialogType,
|
2024-12-29 16:52:25 +00:00
|
|
|
_ActionName,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.Duration,
|
2024-12-29 16:52:25 +00:00
|
|
|
_AnimationName,
|
|
|
|
_LocalizeKR,
|
|
|
|
_LocalizeJP,
|
|
|
|
_VoiceId,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.ApplyPosition,
|
|
|
|
_o.PosX,
|
|
|
|
_o.PosY,
|
|
|
|
_o.CollectionVisible,
|
2024-12-30 22:20:43 +00:00
|
|
|
_o.CVCollectionType,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.UnlockFavorRank,
|
|
|
|
_o.UnlockEquipWeapon,
|
2024-12-29 16:52:25 +00:00
|
|
|
_LocalizeCVGroup);
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class CharacterDialogExcelT
|
|
|
|
{
|
|
|
|
public long CharacterId { get; set; }
|
|
|
|
public long CostumeUniqueId { get; set; }
|
|
|
|
public long DisplayOrder { get; set; }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.DialogCategory DialogCategory { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.DialogCondition DialogCondition { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.Anniversary Anniversary { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public string StartDate { get; set; }
|
|
|
|
public string EndDate { get; set; }
|
|
|
|
public long GroupId { get; set; }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.DialogType DialogType { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public string ActionName { get; set; }
|
|
|
|
public long Duration { get; set; }
|
|
|
|
public string AnimationName { get; set; }
|
2024-12-29 16:52:25 +00:00
|
|
|
public string LocalizeKR { get; set; }
|
|
|
|
public string LocalizeJP { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public List<uint> VoiceId { get; set; }
|
|
|
|
public bool ApplyPosition { get; set; }
|
|
|
|
public float PosX { get; set; }
|
|
|
|
public float PosY { get; set; }
|
|
|
|
public bool CollectionVisible { get; set; }
|
2024-12-30 22:20:43 +00:00
|
|
|
public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long UnlockFavorRank { get; set; }
|
|
|
|
public bool UnlockEquipWeapon { get; set; }
|
2024-12-29 16:52:25 +00:00
|
|
|
public string LocalizeCVGroup { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
|
|
|
|
public CharacterDialogExcelT() {
|
|
|
|
this.CharacterId = 0;
|
|
|
|
this.CostumeUniqueId = 0;
|
|
|
|
this.DisplayOrder = 0;
|
2024-12-30 22:20:43 +00:00
|
|
|
this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo;
|
|
|
|
this.DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe;
|
|
|
|
this.DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle;
|
|
|
|
this.Anniversary = SCHALE.Common.FlatData.Anniversary.None;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.StartDate = null;
|
|
|
|
this.EndDate = null;
|
|
|
|
this.GroupId = 0;
|
2024-12-30 22:20:43 +00:00
|
|
|
this.DialogType = SCHALE.Common.FlatData.DialogType.Talk;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.ActionName = null;
|
|
|
|
this.Duration = 0;
|
|
|
|
this.AnimationName = null;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.LocalizeKR = null;
|
|
|
|
this.LocalizeJP = null;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.VoiceId = null;
|
|
|
|
this.ApplyPosition = false;
|
|
|
|
this.PosX = 0.0f;
|
|
|
|
this.PosY = 0.0f;
|
|
|
|
this.CollectionVisible = false;
|
2024-12-30 22:20:43 +00:00
|
|
|
this.CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.UnlockFavorRank = 0;
|
|
|
|
this.UnlockEquipWeapon = false;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.LocalizeCVGroup = null;
|
2024-04-29 15:52:45 +00:00
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class CharacterDialogExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 6 /*CostumeUniqueId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false)
|
2024-12-30 22:20:43 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 12 /*DialogCategory*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 14 /*DialogCondition*/, 4 /*SCHALE.Common.FlatData.DialogCondition*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 16 /*Anniversary*/, 4 /*SCHALE.Common.FlatData.Anniversary*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyString(tablePos, 18 /*StartDate*/, false)
|
|
|
|
&& verifier.VerifyString(tablePos, 20 /*EndDate*/, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 22 /*GroupId*/, 8 /*long*/, 8, false)
|
2024-12-30 22:20:43 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 24 /*DialogType*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyString(tablePos, 26 /*ActionName*/, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 28 /*Duration*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyString(tablePos, 30 /*AnimationName*/, false)
|
2024-12-29 16:52:25 +00:00
|
|
|
&& verifier.VerifyString(tablePos, 32 /*LocalizeKR*/, false)
|
|
|
|
&& verifier.VerifyString(tablePos, 34 /*LocalizeJP*/, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyVectorOfData(tablePos, 36 /*VoiceId*/, 4 /*uint*/, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 38 /*ApplyPosition*/, 1 /*bool*/, 1, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 40 /*PosX*/, 4 /*float*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 42 /*PosY*/, 4 /*float*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 44 /*CollectionVisible*/, 1 /*bool*/, 1, false)
|
2024-12-30 22:20:43 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 46 /*CVCollectionType*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 48 /*UnlockFavorRank*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 50 /*UnlockEquipWeapon*/, 1 /*bool*/, 1, false)
|
2024-12-29 16:52:25 +00:00
|
|
|
&& verifier.VerifyString(tablePos, 52 /*LocalizeCVGroup*/, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|