diff --git a/SCHALE.Common/Crypto/MersenneTwister.cs b/SCHALE.Common/Crypto/MersenneTwister.cs new file mode 100644 index 0000000..7e8ccf2 --- /dev/null +++ b/SCHALE.Common/Crypto/MersenneTwister.cs @@ -0,0 +1,137 @@ +namespace SCHALE.Common.Crypto +{ + public class MersenneTwister + { + private const int N = 624; + private const int M = 397; + private const uint MATRIX_A = 0x9908B0DF; + private const uint UPPER_MASK = 0x80000000; + private const uint LOWER_MASK = 0x7FFFFFFF; + private const int MAX_RAND_INT = 0x7FFFFFFF; + + private uint[] mag01 = { 0x0, MATRIX_A }; + private uint[] mt = new uint[N]; + private int mti = N + 1; + + public MersenneTwister(int? seed = null) + { + seed ??= (int)DateTimeOffset.Now.ToUnixTimeSeconds(); + init_genrand((uint)seed); + } + + public int Next(int minValue = 0, int? maxValue = null) + { + if (maxValue == null) + { + return genrand_int31(); + } + + if (minValue > maxValue) + { + (minValue, maxValue) = (maxValue.Value, minValue); + } + + return (int)Math.Floor((maxValue.Value - minValue + 1) * genrand_real1() + minValue); + } + + public double NextDouble(bool includeOne = false) + { + if (includeOne) + { + return genrand_real1(); + } + return genrand_real2(); + } + + public double NextDoublePositive() + { + return genrand_real3(); + } + + public double Next53BitRes() + { + return genrand_res53(); + } + + public byte[] NextBytes(int length) + { + byte[] bytes = new byte[length]; + for (int i = 0; i < length; i += 4) + { + uint randInt = (uint)genrand_int31(); + byte[] intBytes = BitConverter.GetBytes(randInt); + Array.Copy(intBytes, 0, bytes, i, Math.Min(4, length - i)); + } + return bytes; + } + + private void init_genrand(uint s) + { + mt[0] = s; + for (int i = 1; i < N; i++) + { + mt[i] = (uint)(1812433253 * (mt[i - 1] ^ (mt[i - 1] >> 30)) + i); + } + mti = N; + } + + private uint genrand_int32() + { + uint y; + if (mti >= N) + { + if (mti == N + 1) + { + init_genrand(5489); + } + for (int kk = 0; kk < N - M; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk + 1] & LOWER_MASK); + mt[kk] = mt[kk + M] ^ (y >> 1) ^ mag01[y & 0x1]; + } + for (int kk = N - M; kk < N - 1; kk++) + { + y = (mt[kk] & UPPER_MASK) | (mt[kk + 1] & LOWER_MASK); + mt[kk] = mt[kk + (M - N)] ^ (y >> 1) ^ mag01[y & 0x1]; + } + y = (mt[N - 1] & UPPER_MASK) | (mt[0] & LOWER_MASK); + mt[N - 1] = mt[M - 1] ^ (y >> 1) ^ mag01[y & 0x1]; + mti = 0; + } + y = mt[mti++]; + y ^= (y >> 11); + y ^= (y << 7) & 0x9D2C5680; + y ^= (y << 15) & 0xEFC60000; + y ^= (y >> 18); + return y; + } + + private int genrand_int31() + { + return (int)(genrand_int32() >> 1); + } + + private double genrand_real1() + { + return genrand_int32() * (1.0 / 4294967295.0); + } + + private double genrand_real2() + { + return genrand_int32() * (1.0 / 4294967296.0); + } + + private double genrand_real3() + { + return (genrand_int32() + 0.5) * (1.0 / 4294967296.0); + } + + private double genrand_res53() + { + uint a = genrand_int32() >> 5; + uint b = genrand_int32() >> 6; + return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0); + } + } + +} diff --git a/SCHALE.Common/Crypto/TableEncryptionService.cs b/SCHALE.Common/Crypto/TableEncryptionService.cs index dacbc39..152a25a 100644 --- a/SCHALE.Common/Crypto/TableEncryptionService.cs +++ b/SCHALE.Common/Crypto/TableEncryptionService.cs @@ -1,12 +1,40 @@ -using MersenneTwister; -using SCHALE.Common.Crypto.XXHash; +using SCHALE.Common.Crypto.XXHash; using System.Buffers.Binary; +using System.Collections; +using System.Reflection; using System.Text; namespace SCHALE.Common.Crypto { public static class TableEncryptionService { + private static readonly Dictionary converterCache = []; + private static readonly Dictionary keyCache = []; + + public static byte[] CreateKey(string name) + { + if (keyCache.TryGetValue(name, out var key)) + return key; + + byte[] password = GC.AllocateUninitializedArray(8); + + using var xxhash = XXHash32.Create(); + xxhash.ComputeHash(Encoding.UTF8.GetBytes(name)); + + var mt = new MersenneTwister((int)xxhash.HashUInt32); + + int i = 0; + while (i < password.Length) + { + Array.Copy(BitConverter.GetBytes(mt.Next()), 0, password, i, Math.Min(4, password.Length - i)); + i += 4; + } + + keyCache.Add(name, password); + + return password; + } + /// /// Used for decrypting .bytes flatbuffers bin. Doesn't work yet /// @@ -17,22 +45,162 @@ namespace SCHALE.Common.Crypto using var xxhash = XXHash32.Create(); xxhash.ComputeHash(Encoding.UTF8.GetBytes(name)); - var mt = MTRandom.Create((int)xxhash.HashUInt32); - var key = GC.AllocateUninitializedArray(sizeof(int)); - BinaryPrimitives.WriteInt32LittleEndian(key, mt.Next() + 1); + var mt = new MersenneTwister((int)xxhash.HashUInt32); + var key = mt.NextBytes(bytes.Length); + Crypto.XOR.Crypt(bytes, key); + } - int i = 0; - int j = 0; - while (i < bytes.Length) + public static MethodInfo? GetConvertMethod(Type type) + { + if (!converterCache.TryGetValue(type, out MethodInfo? convertMethod)) { - if (j == 4) + convertMethod = typeof(TableEncryptionService).GetMethods(BindingFlags.Static | BindingFlags.Public) + .FirstOrDefault(x => x.Name == nameof(Convert) && (x.ReturnType == type)); + converterCache.Add(type, convertMethod); + } + + return convertMethod; + } + + public static List Convert(List value, byte[] key) where T : class + { + var baseType = value.GetType().GenericTypeArguments[0]; + var convertMethod = GetConvertMethod(baseType.IsEnum ? Enum.GetUnderlyingType(value.GetType()) : baseType); + if (convertMethod is null) + return value; + + for (int i = 0; i < value.Count; i++) + { + value[i] = (T)convertMethod.Invoke(null, [value[i], key])!; + } + + return value; + } + + public static T Convert(T value, byte[] key) where T : Enum + { + var convertMethod = GetConvertMethod(Enum.GetUnderlyingType(value.GetType())); + if (convertMethod is null) + return value; + + return (T)convertMethod.Invoke(null, [value, key])!; + } + + public static bool Convert(bool value, byte[] key) + { + return value; + } + + public static int Convert(int value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(int)); + BinaryPrimitives.WriteInt32LittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadInt32LittleEndian(bytes); + } + + public static long Convert(long value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(long)); + BinaryPrimitives.WriteInt64LittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadInt64LittleEndian(bytes); + } + + public static uint Convert(uint value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(uint)); + BinaryPrimitives.WriteUInt32LittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadUInt32LittleEndian(bytes); + } + + public static ulong Convert(ulong value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(ulong)); + BinaryPrimitives.WriteUInt64LittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadUInt64LittleEndian(bytes); + } + + public static float Convert(float value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(float)); + BinaryPrimitives.WriteSingleLittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadSingleLittleEndian(bytes); + } + + public static double Convert(double value, byte[] key) + { + var bytes = GC.AllocateUninitializedArray(sizeof(double)); + BinaryPrimitives.WriteDoubleLittleEndian(bytes, value); + Crypto.XOR.Crypt(bytes, key); + + return BinaryPrimitives.ReadDoubleLittleEndian(bytes); + } + + public static string Convert(string value, byte[] key) + { + var strBytes = System.Convert.FromBase64String(value); + Crypto.XOR.Crypt(strBytes, key); + + return Encoding.Unicode.GetString(strBytes); + } + } + + public static class FlatBuffersExtension + { + private static readonly Dictionary propertiesCache = []; + private static readonly Dictionary keyCache = []; + + /// + /// Only to be invoked by ExcelT, and only be invoked once per object. + /// + /// + /// + public static void Decode(this T table) where T : class + { + var type = table.GetType(); + PropertyInfo[] props; + + if (!propertiesCache.TryGetValue(type, out props!)) + { + props = type.GetProperties(BindingFlags.Instance | BindingFlags.Public); + propertiesCache.Add(type, props); + } + + foreach (var prop in props) + { + byte[] key; + if (!keyCache.TryGetValue(type, out key!)) { - key = key = GC.AllocateUninitializedArray(sizeof(int)); - BinaryPrimitives.WriteInt32LittleEndian(key, mt.Next() + 1); - j = 0; + key = TableEncryptionService.CreateKey(type.Name.Replace("ExcelT", "")); + keyCache.Add(type, key); } - bytes[i++] ^= key[j++]; + var baseType = prop.PropertyType.Name == "List`1" ? prop.PropertyType.GenericTypeArguments[0] : prop.PropertyType; + var convertMethod = TableEncryptionService.GetConvertMethod(baseType.IsEnum ? Enum.GetUnderlyingType(baseType) : baseType); + if (convertMethod is not null) + { + if (prop.PropertyType.Name == "List`1") + { + var list = (IList)prop.GetValue(table, null)!; + for (int i = 0; i < list.Count; i++) + { + list[i] = convertMethod.Invoke(null, [list[i], key]); + } + } + else + { + prop.SetValue(table, convertMethod.Invoke(null, [prop.GetValue(table, null), key])); + } + } } } } diff --git a/SCHALE.Common/Crypto/TableService.cs b/SCHALE.Common/Crypto/TableService.cs index 7d60a9a..e0d3dbe 100644 --- a/SCHALE.Common/Crypto/TableService.cs +++ b/SCHALE.Common/Crypto/TableService.cs @@ -1,5 +1,9 @@ -using MersenneTwister; +using Google.FlatBuffers; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; using SCHALE.Common.Crypto.XXHash; +using SCHALE.Common.FlatData; +using System.Reflection; using System.Text; namespace SCHALE.Common.Crypto @@ -19,17 +23,39 @@ namespace SCHALE.Common.Crypto using var xxhash = XXHash32.Create(); xxhash.ComputeHash(Encoding.UTF8.GetBytes(key)); - var mt = MTRandom.Create((int)xxhash.HashUInt32); + var mt = new MersenneTwister((int)xxhash.HashUInt32); int i = 0; while (i < password.Length) { - // IDK why the random result is off by one in this implementation compared to the game's - Array.Copy(BitConverter.GetBytes(mt.Next() + 1), 0, password, i, Math.Min(4, password.Length - i)); + Array.Copy(BitConverter.GetBytes(mt.Next()), 0, password, i, Math.Min(4, password.Length - i)); i += 4; } return password; } + +#if DEBUG + public static void DumpExcels(string bytesDir, string destDir) + { + foreach (var type in Assembly.GetAssembly(typeof(AcademyFavorScheduleExcelTable))!.GetTypes().Where(t => t.IsAssignableTo(typeof(IFlatbufferObject)) && t.Name.EndsWith("ExcelTable"))) + { + var bytesFilePath = Path.Join(bytesDir, $"{type.Name}.bytes"); + if (!File.Exists(bytesFilePath)) + { + Console.WriteLine($"bytes files for {type.Name} not found. skipping..."); + continue; + } + + var bytes = File.ReadAllBytes(bytesFilePath); + TableEncryptionService.XOR(type.Name, bytes); + var inst = type.GetMethod($"GetRootAs{type.Name}", BindingFlags.Static | BindingFlags.Public, [typeof(ByteBuffer)])!.Invoke(null, [new ByteBuffer(bytes)]); + + var obj = type.GetMethod("UnPack", BindingFlags.Instance | BindingFlags.Public)!.Invoke(inst, null); + File.WriteAllText(Path.Join(destDir, $"{type.Name}.json"), JsonConvert.SerializeObject(obj, Formatting.Indented, new StringEnumConverter())); + Console.WriteLine($"Dumped {type.Name} successfully"); + } + } +#endif } } diff --git a/SCHALE.Common/Database/SCHALEContext.cs b/SCHALE.Common/Database/SCHALEContext.cs index 0951a88..92b680e 100644 --- a/SCHALE.Common/Database/SCHALEContext.cs +++ b/SCHALE.Common/Database/SCHALEContext.cs @@ -3,7 +3,6 @@ using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.ValueGeneration; using MongoDB.EntityFrameworkCore.Extensions; using SCHALE.Common.Database.Models; -using System.Text.Json; namespace SCHALE.Common.Database { diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs index 477567e..1a5f768 100644 --- a/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyFavorScheduleExcel : IFlatbufferObject @@ -120,6 +121,93 @@ public struct AcademyFavorScheduleExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyFavorScheduleExcelT UnPack() { + var _o = new AcademyFavorScheduleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyFavorScheduleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyFavorSchedule"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.ScheduleGroupId = TableEncryptionService.Convert(this.ScheduleGroupId, key); + _o.OrderInGroup = TableEncryptionService.Convert(this.OrderInGroup, key); + _o.Location = TableEncryptionService.Convert(this.Location, key); + _o.LocalizeScenarioId = TableEncryptionService.Convert(this.LocalizeScenarioId, key); + _o.FavorRank = TableEncryptionService.Convert(this.FavorRank, key); + _o.SecretStoneAmount = TableEncryptionService.Convert(this.SecretStoneAmount, key); + _o.ScenarioSriptGroupId = TableEncryptionService.Convert(this.ScenarioSriptGroupId, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyFavorScheduleExcelT _o) { + if (_o == null) return default(Offset); + var _Location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateAcademyFavorScheduleExcel( + builder, + _o.Id, + _o.CharacterId, + _o.ScheduleGroupId, + _o.OrderInGroup, + _Location, + _o.LocalizeScenarioId, + _o.FavorRank, + _o.SecretStoneAmount, + _o.ScenarioSriptGroupId, + _RewardParcelType, + _RewardParcelId, + _RewardAmount); + } +} + +public class AcademyFavorScheduleExcelT +{ + public long Id { get; set; } + public long CharacterId { get; set; } + public long ScheduleGroupId { get; set; } + public long OrderInGroup { get; set; } + public string Location { get; set; } + public uint LocalizeScenarioId { get; set; } + public long FavorRank { get; set; } + public long SecretStoneAmount { get; set; } + public long ScenarioSriptGroupId { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardAmount { get; set; } + + public AcademyFavorScheduleExcelT() { + this.Id = 0; + this.CharacterId = 0; + this.ScheduleGroupId = 0; + this.OrderInGroup = 0; + this.Location = null; + this.LocalizeScenarioId = 0; + this.FavorRank = 0; + this.SecretStoneAmount = 0; + this.ScenarioSriptGroupId = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs index 83fbe51..784b281 100644 --- a/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyFavorScheduleExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyFavorScheduleExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyFavorScheduleExcelTableT UnPack() { + var _o = new AcademyFavorScheduleExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyFavorScheduleExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyFavorScheduleExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyFavorScheduleExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyFavorScheduleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyFavorScheduleExcelTable( + builder, + _DataList); + } +} + +public class AcademyFavorScheduleExcelTableT +{ + public List DataList { get; set; } + + public AcademyFavorScheduleExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyLocationExcel.cs b/SCHALE.Common/FlatData/AcademyLocationExcel.cs index 5757bb4..cb327cc 100644 --- a/SCHALE.Common/FlatData/AcademyLocationExcel.cs +++ b/SCHALE.Common/FlatData/AcademyLocationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyLocationExcel : IFlatbufferObject @@ -102,6 +103,76 @@ public struct AcademyLocationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyLocationExcelT UnPack() { + var _o = new AcademyLocationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyLocationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyLocation"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.PrefabPath = TableEncryptionService.Convert(this.PrefabPath, key); + _o.IconImagePath = TableEncryptionService.Convert(this.IconImagePath, key); + _o.OpenCondition = new List(); + for (var _j = 0; _j < this.OpenConditionLength; ++_j) {_o.OpenCondition.Add(TableEncryptionService.Convert(this.OpenCondition(_j), key));} + _o.OpenConditionCount = new List(); + for (var _j = 0; _j < this.OpenConditionCountLength; ++_j) {_o.OpenConditionCount.Add(TableEncryptionService.Convert(this.OpenConditionCount(_j), key));} + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.OpenTeacherRank = TableEncryptionService.Convert(this.OpenTeacherRank, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyLocationExcelT _o) { + if (_o == null) return default(Offset); + var _PrefabPath = _o.PrefabPath == null ? default(StringOffset) : builder.CreateString(_o.PrefabPath); + var _IconImagePath = _o.IconImagePath == null ? default(StringOffset) : builder.CreateString(_o.IconImagePath); + var _OpenCondition = default(VectorOffset); + if (_o.OpenCondition != null) { + var __OpenCondition = _o.OpenCondition.ToArray(); + _OpenCondition = CreateOpenConditionVector(builder, __OpenCondition); + } + var _OpenConditionCount = default(VectorOffset); + if (_o.OpenConditionCount != null) { + var __OpenConditionCount = _o.OpenConditionCount.ToArray(); + _OpenConditionCount = CreateOpenConditionCountVector(builder, __OpenConditionCount); + } + return CreateAcademyLocationExcel( + builder, + _o.Id, + _o.LocalizeEtcId, + _PrefabPath, + _IconImagePath, + _OpenCondition, + _OpenConditionCount, + _o.RewardParcelType, + _o.RewardParcelId, + _o.OpenTeacherRank); + } +} + +public class AcademyLocationExcelT +{ + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public string PrefabPath { get; set; } + public string IconImagePath { get; set; } + public List OpenCondition { get; set; } + public List OpenConditionCount { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long OpenTeacherRank { get; set; } + + public AcademyLocationExcelT() { + this.Id = 0; + this.LocalizeEtcId = 0; + this.PrefabPath = null; + this.IconImagePath = null; + this.OpenCondition = null; + this.OpenConditionCount = null; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.OpenTeacherRank = 0; + } } diff --git a/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs b/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs index 776616a..c925644 100644 --- a/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyLocationExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyLocationExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyLocationExcelTableT UnPack() { + var _o = new AcademyLocationExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyLocationExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyLocationExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyLocationExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyLocationExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyLocationExcelTable( + builder, + _DataList); + } +} + +public class AcademyLocationExcelTableT +{ + public List DataList { get; set; } + + public AcademyLocationExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs b/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs index efa1937..098bcd4 100644 --- a/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs +++ b/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyLocationRankExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct AcademyLocationRankExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyLocationRankExcelT UnPack() { + var _o = new AcademyLocationRankExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyLocationRankExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyLocationRank"); + _o.Rank = TableEncryptionService.Convert(this.Rank, key); + _o.RankExp = TableEncryptionService.Convert(this.RankExp, key); + _o.TotalExp = TableEncryptionService.Convert(this.TotalExp, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyLocationRankExcelT _o) { + if (_o == null) return default(Offset); + return CreateAcademyLocationRankExcel( + builder, + _o.Rank, + _o.RankExp, + _o.TotalExp); + } +} + +public class AcademyLocationRankExcelT +{ + public long Rank { get; set; } + public long RankExp { get; set; } + public long TotalExp { get; set; } + + public AcademyLocationRankExcelT() { + this.Rank = 0; + this.RankExp = 0; + this.TotalExp = 0; + } } diff --git a/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs b/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs index 59f1f97..3c67faa 100644 --- a/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyLocationRankExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyLocationRankExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyLocationRankExcelTableT UnPack() { + var _o = new AcademyLocationRankExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyLocationRankExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyLocationRankExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyLocationRankExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyLocationRankExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyLocationRankExcelTable( + builder, + _DataList); + } +} + +public class AcademyLocationRankExcelTableT +{ + public List DataList { get; set; } + + public AcademyLocationRankExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs index fed1f18..f05ee9f 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger1Excel : IFlatbufferObject @@ -104,6 +105,85 @@ public struct AcademyMessanger1Excel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger1ExcelT UnPack() { + var _o = new AcademyMessanger1ExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger1ExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger1"); + _o.MessageGroupId = TableEncryptionService.Convert(this.MessageGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.MessageCondition = TableEncryptionService.Convert(this.MessageCondition, key); + _o.ConditionValue = TableEncryptionService.Convert(this.ConditionValue, key); + _o.PreConditionGroupId = TableEncryptionService.Convert(this.PreConditionGroupId, key); + _o.PreConditionFavorScheduleId = TableEncryptionService.Convert(this.PreConditionFavorScheduleId, key); + _o.FavorScheduleId = TableEncryptionService.Convert(this.FavorScheduleId, key); + _o.NextGroupId = TableEncryptionService.Convert(this.NextGroupId, key); + _o.FeedbackTimeMillisec = TableEncryptionService.Convert(this.FeedbackTimeMillisec, key); + _o.MessageType = TableEncryptionService.Convert(this.MessageType, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.MessageKR = TableEncryptionService.Convert(this.MessageKR, key); + _o.MessageJP = TableEncryptionService.Convert(this.MessageJP, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger1ExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _MessageKR = _o.MessageKR == null ? default(StringOffset) : builder.CreateString(_o.MessageKR); + var _MessageJP = _o.MessageJP == null ? default(StringOffset) : builder.CreateString(_o.MessageJP); + return CreateAcademyMessanger1Excel( + builder, + _o.MessageGroupId, + _o.Id, + _o.CharacterId, + _o.MessageCondition, + _o.ConditionValue, + _o.PreConditionGroupId, + _o.PreConditionFavorScheduleId, + _o.FavorScheduleId, + _o.NextGroupId, + _o.FeedbackTimeMillisec, + _o.MessageType, + _ImagePath, + _MessageKR, + _MessageJP); + } +} + +public class AcademyMessanger1ExcelT +{ + public long MessageGroupId { get; set; } + public long Id { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get; set; } + public long ConditionValue { get; set; } + public long PreConditionGroupId { get; set; } + public long PreConditionFavorScheduleId { get; set; } + public long FavorScheduleId { get; set; } + public long NextGroupId { get; set; } + public long FeedbackTimeMillisec { get; set; } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get; set; } + public string ImagePath { get; set; } + public string MessageKR { get; set; } + public string MessageJP { get; set; } + + public AcademyMessanger1ExcelT() { + this.MessageGroupId = 0; + this.Id = 0; + this.CharacterId = 0; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.ConditionValue = 0; + this.PreConditionGroupId = 0; + this.PreConditionFavorScheduleId = 0; + this.FavorScheduleId = 0; + this.NextGroupId = 0; + this.FeedbackTimeMillisec = 0; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.ImagePath = null; + this.MessageKR = null; + this.MessageJP = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs index 2bef73f..d23cabe 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger1ExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyMessanger1ExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger1ExcelTableT UnPack() { + var _o = new AcademyMessanger1ExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger1ExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger1Excel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger1ExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyMessanger1Excel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyMessanger1ExcelTable( + builder, + _DataList); + } +} + +public class AcademyMessanger1ExcelTableT +{ + public List DataList { get; set; } + + public AcademyMessanger1ExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs index 7d2ff22..54432c1 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger2Excel : IFlatbufferObject @@ -104,6 +105,85 @@ public struct AcademyMessanger2Excel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger2ExcelT UnPack() { + var _o = new AcademyMessanger2ExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger2ExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger2"); + _o.MessageGroupId = TableEncryptionService.Convert(this.MessageGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.MessageCondition = TableEncryptionService.Convert(this.MessageCondition, key); + _o.ConditionValue = TableEncryptionService.Convert(this.ConditionValue, key); + _o.PreConditionGroupId = TableEncryptionService.Convert(this.PreConditionGroupId, key); + _o.PreConditionFavorScheduleId = TableEncryptionService.Convert(this.PreConditionFavorScheduleId, key); + _o.FavorScheduleId = TableEncryptionService.Convert(this.FavorScheduleId, key); + _o.NextGroupId = TableEncryptionService.Convert(this.NextGroupId, key); + _o.FeedbackTimeMillisec = TableEncryptionService.Convert(this.FeedbackTimeMillisec, key); + _o.MessageType = TableEncryptionService.Convert(this.MessageType, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.MessageKR = TableEncryptionService.Convert(this.MessageKR, key); + _o.MessageJP = TableEncryptionService.Convert(this.MessageJP, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger2ExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _MessageKR = _o.MessageKR == null ? default(StringOffset) : builder.CreateString(_o.MessageKR); + var _MessageJP = _o.MessageJP == null ? default(StringOffset) : builder.CreateString(_o.MessageJP); + return CreateAcademyMessanger2Excel( + builder, + _o.MessageGroupId, + _o.Id, + _o.CharacterId, + _o.MessageCondition, + _o.ConditionValue, + _o.PreConditionGroupId, + _o.PreConditionFavorScheduleId, + _o.FavorScheduleId, + _o.NextGroupId, + _o.FeedbackTimeMillisec, + _o.MessageType, + _ImagePath, + _MessageKR, + _MessageJP); + } +} + +public class AcademyMessanger2ExcelT +{ + public long MessageGroupId { get; set; } + public long Id { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get; set; } + public long ConditionValue { get; set; } + public long PreConditionGroupId { get; set; } + public long PreConditionFavorScheduleId { get; set; } + public long FavorScheduleId { get; set; } + public long NextGroupId { get; set; } + public long FeedbackTimeMillisec { get; set; } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get; set; } + public string ImagePath { get; set; } + public string MessageKR { get; set; } + public string MessageJP { get; set; } + + public AcademyMessanger2ExcelT() { + this.MessageGroupId = 0; + this.Id = 0; + this.CharacterId = 0; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.ConditionValue = 0; + this.PreConditionGroupId = 0; + this.PreConditionFavorScheduleId = 0; + this.FavorScheduleId = 0; + this.NextGroupId = 0; + this.FeedbackTimeMillisec = 0; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.ImagePath = null; + this.MessageKR = null; + this.MessageJP = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs index 5b36f82..a0abb57 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger2ExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyMessanger2ExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger2ExcelTableT UnPack() { + var _o = new AcademyMessanger2ExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger2ExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger2Excel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger2ExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyMessanger2Excel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyMessanger2ExcelTable( + builder, + _DataList); + } +} + +public class AcademyMessanger2ExcelTableT +{ + public List DataList { get; set; } + + public AcademyMessanger2ExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs index dec3693..98a3f7c 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger3Excel : IFlatbufferObject @@ -104,6 +105,85 @@ public struct AcademyMessanger3Excel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger3ExcelT UnPack() { + var _o = new AcademyMessanger3ExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger3ExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger3"); + _o.MessageGroupId = TableEncryptionService.Convert(this.MessageGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.MessageCondition = TableEncryptionService.Convert(this.MessageCondition, key); + _o.ConditionValue = TableEncryptionService.Convert(this.ConditionValue, key); + _o.PreConditionGroupId = TableEncryptionService.Convert(this.PreConditionGroupId, key); + _o.PreConditionFavorScheduleId = TableEncryptionService.Convert(this.PreConditionFavorScheduleId, key); + _o.FavorScheduleId = TableEncryptionService.Convert(this.FavorScheduleId, key); + _o.NextGroupId = TableEncryptionService.Convert(this.NextGroupId, key); + _o.FeedbackTimeMillisec = TableEncryptionService.Convert(this.FeedbackTimeMillisec, key); + _o.MessageType = TableEncryptionService.Convert(this.MessageType, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.MessageKR = TableEncryptionService.Convert(this.MessageKR, key); + _o.MessageJP = TableEncryptionService.Convert(this.MessageJP, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger3ExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _MessageKR = _o.MessageKR == null ? default(StringOffset) : builder.CreateString(_o.MessageKR); + var _MessageJP = _o.MessageJP == null ? default(StringOffset) : builder.CreateString(_o.MessageJP); + return CreateAcademyMessanger3Excel( + builder, + _o.MessageGroupId, + _o.Id, + _o.CharacterId, + _o.MessageCondition, + _o.ConditionValue, + _o.PreConditionGroupId, + _o.PreConditionFavorScheduleId, + _o.FavorScheduleId, + _o.NextGroupId, + _o.FeedbackTimeMillisec, + _o.MessageType, + _ImagePath, + _MessageKR, + _MessageJP); + } +} + +public class AcademyMessanger3ExcelT +{ + public long MessageGroupId { get; set; } + public long Id { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get; set; } + public long ConditionValue { get; set; } + public long PreConditionGroupId { get; set; } + public long PreConditionFavorScheduleId { get; set; } + public long FavorScheduleId { get; set; } + public long NextGroupId { get; set; } + public long FeedbackTimeMillisec { get; set; } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get; set; } + public string ImagePath { get; set; } + public string MessageKR { get; set; } + public string MessageJP { get; set; } + + public AcademyMessanger3ExcelT() { + this.MessageGroupId = 0; + this.Id = 0; + this.CharacterId = 0; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.ConditionValue = 0; + this.PreConditionGroupId = 0; + this.PreConditionFavorScheduleId = 0; + this.FavorScheduleId = 0; + this.NextGroupId = 0; + this.FeedbackTimeMillisec = 0; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.ImagePath = null; + this.MessageKR = null; + this.MessageJP = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs index 9f24123..d30f771 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessanger3ExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyMessanger3ExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessanger3ExcelTableT UnPack() { + var _o = new AcademyMessanger3ExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessanger3ExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger3Excel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessanger3ExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyMessanger3Excel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyMessanger3ExcelTable( + builder, + _DataList); + } +} + +public class AcademyMessanger3ExcelTableT +{ + public List DataList { get; set; } + + public AcademyMessanger3ExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessangerExcel.cs b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs index af7156a..71b5636 100644 --- a/SCHALE.Common/FlatData/AcademyMessangerExcel.cs +++ b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessangerExcel : IFlatbufferObject @@ -104,6 +105,85 @@ public struct AcademyMessangerExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessangerExcelT UnPack() { + var _o = new AcademyMessangerExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessangerExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessanger"); + _o.MessageGroupId = TableEncryptionService.Convert(this.MessageGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.MessageCondition = TableEncryptionService.Convert(this.MessageCondition, key); + _o.ConditionValue = TableEncryptionService.Convert(this.ConditionValue, key); + _o.PreConditionGroupId = TableEncryptionService.Convert(this.PreConditionGroupId, key); + _o.PreConditionFavorScheduleId = TableEncryptionService.Convert(this.PreConditionFavorScheduleId, key); + _o.FavorScheduleId = TableEncryptionService.Convert(this.FavorScheduleId, key); + _o.NextGroupId = TableEncryptionService.Convert(this.NextGroupId, key); + _o.FeedbackTimeMillisec = TableEncryptionService.Convert(this.FeedbackTimeMillisec, key); + _o.MessageType = TableEncryptionService.Convert(this.MessageType, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.MessageKR = TableEncryptionService.Convert(this.MessageKR, key); + _o.MessageJP = TableEncryptionService.Convert(this.MessageJP, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessangerExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _MessageKR = _o.MessageKR == null ? default(StringOffset) : builder.CreateString(_o.MessageKR); + var _MessageJP = _o.MessageJP == null ? default(StringOffset) : builder.CreateString(_o.MessageJP); + return CreateAcademyMessangerExcel( + builder, + _o.MessageGroupId, + _o.Id, + _o.CharacterId, + _o.MessageCondition, + _o.ConditionValue, + _o.PreConditionGroupId, + _o.PreConditionFavorScheduleId, + _o.FavorScheduleId, + _o.NextGroupId, + _o.FeedbackTimeMillisec, + _o.MessageType, + _ImagePath, + _MessageKR, + _MessageJP); + } +} + +public class AcademyMessangerExcelT +{ + public long MessageGroupId { get; set; } + public long Id { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get; set; } + public long ConditionValue { get; set; } + public long PreConditionGroupId { get; set; } + public long PreConditionFavorScheduleId { get; set; } + public long FavorScheduleId { get; set; } + public long NextGroupId { get; set; } + public long FeedbackTimeMillisec { get; set; } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get; set; } + public string ImagePath { get; set; } + public string MessageKR { get; set; } + public string MessageJP { get; set; } + + public AcademyMessangerExcelT() { + this.MessageGroupId = 0; + this.Id = 0; + this.CharacterId = 0; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.ConditionValue = 0; + this.PreConditionGroupId = 0; + this.PreConditionFavorScheduleId = 0; + this.FavorScheduleId = 0; + this.NextGroupId = 0; + this.FeedbackTimeMillisec = 0; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.ImagePath = null; + this.MessageKR = null; + this.MessageJP = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs index f100c28..9ab3047 100644 --- a/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyMessangerExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyMessangerExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyMessangerExcelTableT UnPack() { + var _o = new AcademyMessangerExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyMessangerExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyMessangerExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyMessangerExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyMessangerExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyMessangerExcelTable( + builder, + _DataList); + } +} + +public class AcademyMessangerExcelTableT +{ + public List DataList { get; set; } + + public AcademyMessangerExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyRewardExcel.cs b/SCHALE.Common/FlatData/AcademyRewardExcel.cs index 22dd0c1..6382f02 100644 --- a/SCHALE.Common/FlatData/AcademyRewardExcel.cs +++ b/SCHALE.Common/FlatData/AcademyRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyRewardExcel : IFlatbufferObject @@ -218,6 +219,156 @@ public struct AcademyRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyRewardExcelT UnPack() { + var _o = new AcademyRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyReward"); + _o.Location = TableEncryptionService.Convert(this.Location, key); + _o.ScheduleGroupId = TableEncryptionService.Convert(this.ScheduleGroupId, key); + _o.OrderInGroup = TableEncryptionService.Convert(this.OrderInGroup, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProgressTexture = TableEncryptionService.Convert(this.ProgressTexture, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.LocationRank = TableEncryptionService.Convert(this.LocationRank, key); + _o.FavorExp = TableEncryptionService.Convert(this.FavorExp, key); + _o.SecretStoneAmount = TableEncryptionService.Convert(this.SecretStoneAmount, key); + _o.SecretStoneProb = TableEncryptionService.Convert(this.SecretStoneProb, key); + _o.ExtraFavorExp = TableEncryptionService.Convert(this.ExtraFavorExp, key); + _o.ExtraFavorExpProb = TableEncryptionService.Convert(this.ExtraFavorExpProb, key); + _o.ExtraRewardParcelType = new List(); + for (var _j = 0; _j < this.ExtraRewardParcelTypeLength; ++_j) {_o.ExtraRewardParcelType.Add(TableEncryptionService.Convert(this.ExtraRewardParcelType(_j), key));} + _o.ExtraRewardParcelId = new List(); + for (var _j = 0; _j < this.ExtraRewardParcelIdLength; ++_j) {_o.ExtraRewardParcelId.Add(TableEncryptionService.Convert(this.ExtraRewardParcelId(_j), key));} + _o.ExtraRewardAmount = new List(); + for (var _j = 0; _j < this.ExtraRewardAmountLength; ++_j) {_o.ExtraRewardAmount.Add(TableEncryptionService.Convert(this.ExtraRewardAmount(_j), key));} + _o.ExtraRewardProb = new List(); + for (var _j = 0; _j < this.ExtraRewardProbLength; ++_j) {_o.ExtraRewardProb.Add(TableEncryptionService.Convert(this.ExtraRewardProb(_j), key));} + _o.IsExtraRewardDisplayed = new List(); + for (var _j = 0; _j < this.IsExtraRewardDisplayedLength; ++_j) {_o.IsExtraRewardDisplayed.Add(TableEncryptionService.Convert(this.IsExtraRewardDisplayed(_j), key));} + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyRewardExcelT _o) { + if (_o == null) return default(Offset); + var _Location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location); + var _ProgressTexture = _o.ProgressTexture == null ? default(StringOffset) : builder.CreateString(_o.ProgressTexture); + var _ExtraRewardParcelType = default(VectorOffset); + if (_o.ExtraRewardParcelType != null) { + var __ExtraRewardParcelType = _o.ExtraRewardParcelType.ToArray(); + _ExtraRewardParcelType = CreateExtraRewardParcelTypeVector(builder, __ExtraRewardParcelType); + } + var _ExtraRewardParcelId = default(VectorOffset); + if (_o.ExtraRewardParcelId != null) { + var __ExtraRewardParcelId = _o.ExtraRewardParcelId.ToArray(); + _ExtraRewardParcelId = CreateExtraRewardParcelIdVector(builder, __ExtraRewardParcelId); + } + var _ExtraRewardAmount = default(VectorOffset); + if (_o.ExtraRewardAmount != null) { + var __ExtraRewardAmount = _o.ExtraRewardAmount.ToArray(); + _ExtraRewardAmount = CreateExtraRewardAmountVector(builder, __ExtraRewardAmount); + } + var _ExtraRewardProb = default(VectorOffset); + if (_o.ExtraRewardProb != null) { + var __ExtraRewardProb = _o.ExtraRewardProb.ToArray(); + _ExtraRewardProb = CreateExtraRewardProbVector(builder, __ExtraRewardProb); + } + var _IsExtraRewardDisplayed = default(VectorOffset); + if (_o.IsExtraRewardDisplayed != null) { + var __IsExtraRewardDisplayed = _o.IsExtraRewardDisplayed.ToArray(); + _IsExtraRewardDisplayed = CreateIsExtraRewardDisplayedVector(builder, __IsExtraRewardDisplayed); + } + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateAcademyRewardExcel( + builder, + _Location, + _o.ScheduleGroupId, + _o.OrderInGroup, + _o.Id, + _ProgressTexture, + _o.LocalizeEtcId, + _o.LocationRank, + _o.FavorExp, + _o.SecretStoneAmount, + _o.SecretStoneProb, + _o.ExtraFavorExp, + _o.ExtraFavorExpProb, + _ExtraRewardParcelType, + _ExtraRewardParcelId, + _ExtraRewardAmount, + _ExtraRewardProb, + _IsExtraRewardDisplayed, + _RewardParcelType, + _RewardParcelId, + _RewardAmount); + } +} + +public class AcademyRewardExcelT +{ + public string Location { get; set; } + public long ScheduleGroupId { get; set; } + public long OrderInGroup { get; set; } + public long Id { get; set; } + public string ProgressTexture { get; set; } + public uint LocalizeEtcId { get; set; } + public long LocationRank { get; set; } + public long FavorExp { get; set; } + public long SecretStoneAmount { get; set; } + public long SecretStoneProb { get; set; } + public long ExtraFavorExp { get; set; } + public long ExtraFavorExpProb { get; set; } + public List ExtraRewardParcelType { get; set; } + public List ExtraRewardParcelId { get; set; } + public List ExtraRewardAmount { get; set; } + public List ExtraRewardProb { get; set; } + public List IsExtraRewardDisplayed { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardAmount { get; set; } + + public AcademyRewardExcelT() { + this.Location = null; + this.ScheduleGroupId = 0; + this.OrderInGroup = 0; + this.Id = 0; + this.ProgressTexture = null; + this.LocalizeEtcId = 0; + this.LocationRank = 0; + this.FavorExp = 0; + this.SecretStoneAmount = 0; + this.SecretStoneProb = 0; + this.ExtraFavorExp = 0; + this.ExtraFavorExpProb = 0; + this.ExtraRewardParcelType = null; + this.ExtraRewardParcelId = null; + this.ExtraRewardAmount = null; + this.ExtraRewardProb = null; + this.IsExtraRewardDisplayed = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs b/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs index 955a72b..325c34b 100644 --- a/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyRewardExcelTableT UnPack() { + var _o = new AcademyRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyRewardExcelTable( + builder, + _DataList); + } +} + +public class AcademyRewardExcelTableT +{ + public List DataList { get; set; } + + public AcademyRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyTicketExcel.cs b/SCHALE.Common/FlatData/AcademyTicketExcel.cs index e87a89f..7cf8313 100644 --- a/SCHALE.Common/FlatData/AcademyTicketExcel.cs +++ b/SCHALE.Common/FlatData/AcademyTicketExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyTicketExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct AcademyTicketExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyTicketExcelT UnPack() { + var _o = new AcademyTicketExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyTicketExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyTicket"); + _o.LocationRankSum = TableEncryptionService.Convert(this.LocationRankSum, key); + _o.ScheduleTicktetMax = TableEncryptionService.Convert(this.ScheduleTicktetMax, key); + } + public static Offset Pack(FlatBufferBuilder builder, AcademyTicketExcelT _o) { + if (_o == null) return default(Offset); + return CreateAcademyTicketExcel( + builder, + _o.LocationRankSum, + _o.ScheduleTicktetMax); + } +} + +public class AcademyTicketExcelT +{ + public long LocationRankSum { get; set; } + public long ScheduleTicktetMax { get; set; } + + public AcademyTicketExcelT() { + this.LocationRankSum = 0; + this.ScheduleTicktetMax = 0; + } } diff --git a/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs b/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs index f574413..317d395 100644 --- a/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyTicketExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyTicketExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyTicketExcelTableT UnPack() { + var _o = new AcademyTicketExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyTicketExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyTicketExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyTicketExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyTicketExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyTicketExcelTable( + builder, + _DataList); + } +} + +public class AcademyTicketExcelTableT +{ + public List DataList { get; set; } + + public AcademyTicketExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyZoneExcel.cs b/SCHALE.Common/FlatData/AcademyZoneExcel.cs index 5fd0951..063560c 100644 --- a/SCHALE.Common/FlatData/AcademyZoneExcel.cs +++ b/SCHALE.Common/FlatData/AcademyZoneExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyZoneExcel : IFlatbufferObject @@ -82,6 +83,66 @@ public struct AcademyZoneExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyZoneExcelT UnPack() { + var _o = new AcademyZoneExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyZoneExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyZone"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocationId = TableEncryptionService.Convert(this.LocationId, key); + _o.LocationRankForUnlock = TableEncryptionService.Convert(this.LocationRankForUnlock, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.StudentVisitProb = new List(); + for (var _j = 0; _j < this.StudentVisitProbLength; ++_j) {_o.StudentVisitProb.Add(TableEncryptionService.Convert(this.StudentVisitProb(_j), key));} + _o.RewardGroupId = TableEncryptionService.Convert(this.RewardGroupId, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyZoneExcelT _o) { + if (_o == null) return default(Offset); + var _StudentVisitProb = default(VectorOffset); + if (_o.StudentVisitProb != null) { + var __StudentVisitProb = _o.StudentVisitProb.ToArray(); + _StudentVisitProb = CreateStudentVisitProbVector(builder, __StudentVisitProb); + } + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + return CreateAcademyZoneExcel( + builder, + _o.Id, + _o.LocationId, + _o.LocationRankForUnlock, + _o.LocalizeEtcId, + _StudentVisitProb, + _o.RewardGroupId, + _Tags); + } +} + +public class AcademyZoneExcelT +{ + public long Id { get; set; } + public long LocationId { get; set; } + public long LocationRankForUnlock { get; set; } + public uint LocalizeEtcId { get; set; } + public List StudentVisitProb { get; set; } + public long RewardGroupId { get; set; } + public List Tags { get; set; } + + public AcademyZoneExcelT() { + this.Id = 0; + this.LocationId = 0; + this.LocationRankForUnlock = 0; + this.LocalizeEtcId = 0; + this.StudentVisitProb = null; + this.RewardGroupId = 0; + this.Tags = null; + } } diff --git a/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs b/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs index 4f18bea..e3ac0f2 100644 --- a/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AcademyZoneExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AcademyZoneExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AcademyZoneExcelTableT UnPack() { + var _o = new AcademyZoneExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AcademyZoneExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AcademyZoneExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AcademyZoneExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyZoneExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAcademyZoneExcelTable( + builder, + _DataList); + } +} + +public class AcademyZoneExcelTableT +{ + public List DataList { get; set; } + + public AcademyZoneExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AccountLevelExcel.cs b/SCHALE.Common/FlatData/AccountLevelExcel.cs index 614f583..1b9d02b 100644 --- a/SCHALE.Common/FlatData/AccountLevelExcel.cs +++ b/SCHALE.Common/FlatData/AccountLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AccountLevelExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct AccountLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AccountLevelExcelT UnPack() { + var _o = new AccountLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AccountLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AccountLevel"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Exp = TableEncryptionService.Convert(this.Exp, key); + _o.APAutoChargeMax = TableEncryptionService.Convert(this.APAutoChargeMax, key); + _o.NeedReportEvent = TableEncryptionService.Convert(this.NeedReportEvent, key); + } + public static Offset Pack(FlatBufferBuilder builder, AccountLevelExcelT _o) { + if (_o == null) return default(Offset); + return CreateAccountLevelExcel( + builder, + _o.Id, + _o.Level, + _o.Exp, + _o.APAutoChargeMax, + _o.NeedReportEvent); + } +} + +public class AccountLevelExcelT +{ + public long Id { get; set; } + public long Level { get; set; } + public long Exp { get; set; } + public long APAutoChargeMax { get; set; } + public bool NeedReportEvent { get; set; } + + public AccountLevelExcelT() { + this.Id = 0; + this.Level = 0; + this.Exp = 0; + this.APAutoChargeMax = 0; + this.NeedReportEvent = false; + } } diff --git a/SCHALE.Common/FlatData/AccountLevelExcelTable.cs b/SCHALE.Common/FlatData/AccountLevelExcelTable.cs index ab17f24..e20e204 100644 --- a/SCHALE.Common/FlatData/AccountLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/AccountLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AccountLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AccountLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AccountLevelExcelTableT UnPack() { + var _o = new AccountLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AccountLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AccountLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AccountLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AccountLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAccountLevelExcelTable( + builder, + _DataList); + } +} + +public class AccountLevelExcelTableT +{ + public List DataList { get; set; } + + public AccountLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AniEventData.cs b/SCHALE.Common/FlatData/AniEventData.cs index 787d204..284995e 100644 --- a/SCHALE.Common/FlatData/AniEventData.cs +++ b/SCHALE.Common/FlatData/AniEventData.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AniEventData : IFlatbufferObject @@ -62,6 +63,48 @@ public struct AniEventData : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AniEventDataT UnPack() { + var _o = new AniEventDataT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AniEventDataT _o) { + byte[] key = { 0 }; + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Time = TableEncryptionService.Convert(this.Time, key); + _o.IntParam = TableEncryptionService.Convert(this.IntParam, key); + _o.FloatParam = TableEncryptionService.Convert(this.FloatParam, key); + _o.StringParam = TableEncryptionService.Convert(this.StringParam, key); + } + public static Offset Pack(FlatBufferBuilder builder, AniEventDataT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _StringParam = _o.StringParam == null ? default(StringOffset) : builder.CreateString(_o.StringParam); + return CreateAniEventData( + builder, + _Name, + _o.Time, + _o.IntParam, + _o.FloatParam, + _StringParam); + } +} + +public class AniEventDataT +{ + public string Name { get; set; } + public float Time { get; set; } + public int IntParam { get; set; } + public float FloatParam { get; set; } + public string StringParam { get; set; } + + public AniEventDataT() { + this.Name = null; + this.Time = 0.0f; + this.IntParam = 0; + this.FloatParam = 0.0f; + this.StringParam = null; + } } diff --git a/SCHALE.Common/FlatData/AniStateData.cs b/SCHALE.Common/FlatData/AniStateData.cs index eb2b8d8..653c980 100644 --- a/SCHALE.Common/FlatData/AniStateData.cs +++ b/SCHALE.Common/FlatData/AniStateData.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AniStateData : IFlatbufferObject @@ -120,6 +121,87 @@ public struct AniStateData : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AniStateDataT UnPack() { + var _o = new AniStateDataT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AniStateDataT _o) { + byte[] key = { 0 }; + _o.StateName = TableEncryptionService.Convert(this.StateName, key); + _o.StatePrefix = TableEncryptionService.Convert(this.StatePrefix, key); + _o.StateNameWithPrefix = TableEncryptionService.Convert(this.StateNameWithPrefix, key); + _o.Tag = TableEncryptionService.Convert(this.Tag, key); + _o.SpeedParameterName = TableEncryptionService.Convert(this.SpeedParameterName, key); + _o.SpeedParamter = TableEncryptionService.Convert(this.SpeedParamter, key); + _o.StateSpeed = TableEncryptionService.Convert(this.StateSpeed, key); + _o.ClipName = TableEncryptionService.Convert(this.ClipName, key); + _o.Length = TableEncryptionService.Convert(this.Length, key); + _o.FrameRate = TableEncryptionService.Convert(this.FrameRate, key); + _o.IsLooping = TableEncryptionService.Convert(this.IsLooping, key); + _o.Events = new List(); + for (var _j = 0; _j < this.EventsLength; ++_j) {_o.Events.Add(this.Events(_j).HasValue ? this.Events(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AniStateDataT _o) { + if (_o == null) return default(Offset); + var _StateName = _o.StateName == null ? default(StringOffset) : builder.CreateString(_o.StateName); + var _StatePrefix = _o.StatePrefix == null ? default(StringOffset) : builder.CreateString(_o.StatePrefix); + var _StateNameWithPrefix = _o.StateNameWithPrefix == null ? default(StringOffset) : builder.CreateString(_o.StateNameWithPrefix); + var _Tag = _o.Tag == null ? default(StringOffset) : builder.CreateString(_o.Tag); + var _SpeedParameterName = _o.SpeedParameterName == null ? default(StringOffset) : builder.CreateString(_o.SpeedParameterName); + var _ClipName = _o.ClipName == null ? default(StringOffset) : builder.CreateString(_o.ClipName); + var _Events = default(VectorOffset); + if (_o.Events != null) { + var __Events = new Offset[_o.Events.Count]; + for (var _j = 0; _j < __Events.Length; ++_j) { __Events[_j] = SCHALE.Common.FlatData.AniEventData.Pack(builder, _o.Events[_j]); } + _Events = CreateEventsVector(builder, __Events); + } + return CreateAniStateData( + builder, + _StateName, + _StatePrefix, + _StateNameWithPrefix, + _Tag, + _SpeedParameterName, + _o.SpeedParamter, + _o.StateSpeed, + _ClipName, + _o.Length, + _o.FrameRate, + _o.IsLooping, + _Events); + } +} + +public class AniStateDataT +{ + public string StateName { get; set; } + public string StatePrefix { get; set; } + public string StateNameWithPrefix { get; set; } + public string Tag { get; set; } + public string SpeedParameterName { get; set; } + public float SpeedParamter { get; set; } + public float StateSpeed { get; set; } + public string ClipName { get; set; } + public float Length { get; set; } + public float FrameRate { get; set; } + public bool IsLooping { get; set; } + public List Events { get; set; } + + public AniStateDataT() { + this.StateName = null; + this.StatePrefix = null; + this.StateNameWithPrefix = null; + this.Tag = null; + this.SpeedParameterName = null; + this.SpeedParamter = 0.0f; + this.StateSpeed = 0.0f; + this.ClipName = null; + this.Length = 0.0f; + this.FrameRate = 0.0f; + this.IsLooping = false; + this.Events = null; + } } diff --git a/SCHALE.Common/FlatData/AnimationBlendTable.cs b/SCHALE.Common/FlatData/AnimationBlendTable.cs index 29ebb18..93e52fe 100644 --- a/SCHALE.Common/FlatData/AnimationBlendTable.cs +++ b/SCHALE.Common/FlatData/AnimationBlendTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AnimationBlendTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AnimationBlendTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AnimationBlendTableT UnPack() { + var _o = new AnimationBlendTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AnimationBlendTableT _o) { + byte[] key = { 0 }; + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AnimationBlendTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BlendData.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAnimationBlendTable( + builder, + _DataList); + } +} + +public class AnimationBlendTableT +{ + public List DataList { get; set; } + + public AnimationBlendTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AnimatorData.cs b/SCHALE.Common/FlatData/AnimatorData.cs index ecb96e6..3fb1b5d 100644 --- a/SCHALE.Common/FlatData/AnimatorData.cs +++ b/SCHALE.Common/FlatData/AnimatorData.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AnimatorData : IFlatbufferObject @@ -60,6 +61,47 @@ public struct AnimatorData : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AnimatorDataT UnPack() { + var _o = new AnimatorDataT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AnimatorDataT _o) { + byte[] key = { 0 }; + _o.DefaultStateName = TableEncryptionService.Convert(this.DefaultStateName, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AnimatorDataT _o) { + if (_o == null) return default(Offset); + var _DefaultStateName = _o.DefaultStateName == null ? default(StringOffset) : builder.CreateString(_o.DefaultStateName); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AniStateData.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAnimatorData( + builder, + _DefaultStateName, + _Name, + _DataList); + } +} + +public class AnimatorDataT +{ + public string DefaultStateName { get; set; } + public string Name { get; set; } + public List DataList { get; set; } + + public AnimatorDataT() { + this.DefaultStateName = null; + this.Name = null; + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AnimatorDataTable.cs b/SCHALE.Common/FlatData/AnimatorDataTable.cs index 93fed7f..a3677ff 100644 --- a/SCHALE.Common/FlatData/AnimatorDataTable.cs +++ b/SCHALE.Common/FlatData/AnimatorDataTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AnimatorDataTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AnimatorDataTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AnimatorDataTableT UnPack() { + var _o = new AnimatorDataTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AnimatorDataTableT _o) { + byte[] key = { 0 }; + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AnimatorDataTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AnimatorData.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAnimatorDataTable( + builder, + _DataList); + } +} + +public class AnimatorDataTableT +{ + public List DataList { get; set; } + + public AnimatorDataTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs b/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs index 861476b..8e048d1 100644 --- a/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs +++ b/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaLevelSectionExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct ArenaLevelSectionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaLevelSectionExcelT UnPack() { + var _o = new ArenaLevelSectionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaLevelSectionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaLevelSection"); + _o.ArenaSeasonId = TableEncryptionService.Convert(this.ArenaSeasonId, key); + _o.StartLevel = TableEncryptionService.Convert(this.StartLevel, key); + _o.LastLevel = TableEncryptionService.Convert(this.LastLevel, key); + _o.UserCount = TableEncryptionService.Convert(this.UserCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ArenaLevelSectionExcelT _o) { + if (_o == null) return default(Offset); + return CreateArenaLevelSectionExcel( + builder, + _o.ArenaSeasonId, + _o.StartLevel, + _o.LastLevel, + _o.UserCount); + } +} + +public class ArenaLevelSectionExcelT +{ + public long ArenaSeasonId { get; set; } + public long StartLevel { get; set; } + public long LastLevel { get; set; } + public long UserCount { get; set; } + + public ArenaLevelSectionExcelT() { + this.ArenaSeasonId = 0; + this.StartLevel = 0; + this.LastLevel = 0; + this.UserCount = 0; + } } diff --git a/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs b/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs index 0811b13..fc637f5 100644 --- a/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaLevelSectionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaLevelSectionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaLevelSectionExcelTableT UnPack() { + var _o = new ArenaLevelSectionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaLevelSectionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaLevelSectionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaLevelSectionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaLevelSectionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaLevelSectionExcelTable( + builder, + _DataList); + } +} + +public class ArenaLevelSectionExcelTableT +{ + public List DataList { get; set; } + + public ArenaLevelSectionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaMapExcel.cs b/SCHALE.Common/FlatData/ArenaMapExcel.cs index 891d8c2..1abcc63 100644 --- a/SCHALE.Common/FlatData/ArenaMapExcel.cs +++ b/SCHALE.Common/FlatData/ArenaMapExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaMapExcel : IFlatbufferObject @@ -84,6 +85,65 @@ public struct ArenaMapExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaMapExcelT UnPack() { + var _o = new ArenaMapExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaMapExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaMap"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.TerrainType = TableEncryptionService.Convert(this.TerrainType, key); + _o.TerrainTypeLocalizeKey = TableEncryptionService.Convert(this.TerrainTypeLocalizeKey, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.GroundGroupId = TableEncryptionService.Convert(this.GroundGroupId, key); + _o.GroundGroupNameLocalizeKey = TableEncryptionService.Convert(this.GroundGroupNameLocalizeKey, key); + _o.StartRank = TableEncryptionService.Convert(this.StartRank, key); + _o.EndRank = TableEncryptionService.Convert(this.EndRank, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ArenaMapExcelT _o) { + if (_o == null) return default(Offset); + var _TerrainTypeLocalizeKey = _o.TerrainTypeLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.TerrainTypeLocalizeKey); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _GroundGroupNameLocalizeKey = _o.GroundGroupNameLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.GroundGroupNameLocalizeKey); + return CreateArenaMapExcel( + builder, + _o.UniqueId, + _o.TerrainType, + _TerrainTypeLocalizeKey, + _ImagePath, + _o.GroundGroupId, + _GroundGroupNameLocalizeKey, + _o.StartRank, + _o.EndRank, + _o.GroundId); + } +} + +public class ArenaMapExcelT +{ + public long UniqueId { get; set; } + public long TerrainType { get; set; } + public string TerrainTypeLocalizeKey { get; set; } + public string ImagePath { get; set; } + public long GroundGroupId { get; set; } + public string GroundGroupNameLocalizeKey { get; set; } + public long StartRank { get; set; } + public long EndRank { get; set; } + public long GroundId { get; set; } + + public ArenaMapExcelT() { + this.UniqueId = 0; + this.TerrainType = 0; + this.TerrainTypeLocalizeKey = null; + this.ImagePath = null; + this.GroundGroupId = 0; + this.GroundGroupNameLocalizeKey = null; + this.StartRank = 0; + this.EndRank = 0; + this.GroundId = 0; + } } diff --git a/SCHALE.Common/FlatData/ArenaMapExcelTable.cs b/SCHALE.Common/FlatData/ArenaMapExcelTable.cs index 6a56eb3..43bd54e 100644 --- a/SCHALE.Common/FlatData/ArenaMapExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaMapExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaMapExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaMapExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaMapExcelTableT UnPack() { + var _o = new ArenaMapExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaMapExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaMapExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaMapExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaMapExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaMapExcelTable( + builder, + _DataList); + } +} + +public class ArenaMapExcelTableT +{ + public List DataList { get; set; } + + public ArenaMapExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaNPCExcel.cs b/SCHALE.Common/FlatData/ArenaNPCExcel.cs index 5ab0e19..718bf2b 100644 --- a/SCHALE.Common/FlatData/ArenaNPCExcel.cs +++ b/SCHALE.Common/FlatData/ArenaNPCExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaNPCExcel : IFlatbufferObject @@ -122,6 +123,94 @@ public struct ArenaNPCExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaNPCExcelT UnPack() { + var _o = new ArenaNPCExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaNPCExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaNPC"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.Rank = TableEncryptionService.Convert(this.Rank, key); + _o.NPCAccountLevel = TableEncryptionService.Convert(this.NPCAccountLevel, key); + _o.NPCLevel = TableEncryptionService.Convert(this.NPCLevel, key); + _o.NPCLevelDeviation = TableEncryptionService.Convert(this.NPCLevelDeviation, key); + _o.NPCStarGrade = TableEncryptionService.Convert(this.NPCStarGrade, key); + _o.UseTSS = TableEncryptionService.Convert(this.UseTSS, key); + _o.ExceptionCharacterRarities = new List(); + for (var _j = 0; _j < this.ExceptionCharacterRaritiesLength; ++_j) {_o.ExceptionCharacterRarities.Add(TableEncryptionService.Convert(this.ExceptionCharacterRarities(_j), key));} + _o.ExceptionMainCharacterIds = new List(); + for (var _j = 0; _j < this.ExceptionMainCharacterIdsLength; ++_j) {_o.ExceptionMainCharacterIds.Add(TableEncryptionService.Convert(this.ExceptionMainCharacterIds(_j), key));} + _o.ExceptionSupportCharacterIds = new List(); + for (var _j = 0; _j < this.ExceptionSupportCharacterIdsLength; ++_j) {_o.ExceptionSupportCharacterIds.Add(TableEncryptionService.Convert(this.ExceptionSupportCharacterIds(_j), key));} + _o.ExceptionTSSIds = new List(); + for (var _j = 0; _j < this.ExceptionTSSIdsLength; ++_j) {_o.ExceptionTSSIds.Add(TableEncryptionService.Convert(this.ExceptionTSSIds(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaNPCExcelT _o) { + if (_o == null) return default(Offset); + var _ExceptionCharacterRarities = default(VectorOffset); + if (_o.ExceptionCharacterRarities != null) { + var __ExceptionCharacterRarities = _o.ExceptionCharacterRarities.ToArray(); + _ExceptionCharacterRarities = CreateExceptionCharacterRaritiesVector(builder, __ExceptionCharacterRarities); + } + var _ExceptionMainCharacterIds = default(VectorOffset); + if (_o.ExceptionMainCharacterIds != null) { + var __ExceptionMainCharacterIds = _o.ExceptionMainCharacterIds.ToArray(); + _ExceptionMainCharacterIds = CreateExceptionMainCharacterIdsVector(builder, __ExceptionMainCharacterIds); + } + var _ExceptionSupportCharacterIds = default(VectorOffset); + if (_o.ExceptionSupportCharacterIds != null) { + var __ExceptionSupportCharacterIds = _o.ExceptionSupportCharacterIds.ToArray(); + _ExceptionSupportCharacterIds = CreateExceptionSupportCharacterIdsVector(builder, __ExceptionSupportCharacterIds); + } + var _ExceptionTSSIds = default(VectorOffset); + if (_o.ExceptionTSSIds != null) { + var __ExceptionTSSIds = _o.ExceptionTSSIds.ToArray(); + _ExceptionTSSIds = CreateExceptionTSSIdsVector(builder, __ExceptionTSSIds); + } + return CreateArenaNPCExcel( + builder, + _o.UniqueId, + _o.Rank, + _o.NPCAccountLevel, + _o.NPCLevel, + _o.NPCLevelDeviation, + _o.NPCStarGrade, + _o.UseTSS, + _ExceptionCharacterRarities, + _ExceptionMainCharacterIds, + _ExceptionSupportCharacterIds, + _ExceptionTSSIds); + } +} + +public class ArenaNPCExcelT +{ + public long UniqueId { get; set; } + public long Rank { get; set; } + public long NPCAccountLevel { get; set; } + public long NPCLevel { get; set; } + public long NPCLevelDeviation { get; set; } + public long NPCStarGrade { get; set; } + public bool UseTSS { get; set; } + public List ExceptionCharacterRarities { get; set; } + public List ExceptionMainCharacterIds { get; set; } + public List ExceptionSupportCharacterIds { get; set; } + public List ExceptionTSSIds { get; set; } + + public ArenaNPCExcelT() { + this.UniqueId = 0; + this.Rank = 0; + this.NPCAccountLevel = 0; + this.NPCLevel = 0; + this.NPCLevelDeviation = 0; + this.NPCStarGrade = 0; + this.UseTSS = false; + this.ExceptionCharacterRarities = null; + this.ExceptionMainCharacterIds = null; + this.ExceptionSupportCharacterIds = null; + this.ExceptionTSSIds = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs b/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs index 8e83a53..8ceb962 100644 --- a/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaNPCExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaNPCExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaNPCExcelTableT UnPack() { + var _o = new ArenaNPCExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaNPCExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaNPCExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaNPCExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaNPCExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaNPCExcelTable( + builder, + _DataList); + } +} + +public class ArenaNPCExcelTableT +{ + public List DataList { get; set; } + + public ArenaNPCExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaRewardExcel.cs b/SCHALE.Common/FlatData/ArenaRewardExcel.cs index acc6867..d0571aa 100644 --- a/SCHALE.Common/FlatData/ArenaRewardExcel.cs +++ b/SCHALE.Common/FlatData/ArenaRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaRewardExcel : IFlatbufferObject @@ -114,6 +115,88 @@ public struct ArenaRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaRewardExcelT UnPack() { + var _o = new ArenaRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaReward"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.ArenaRewardType = TableEncryptionService.Convert(this.ArenaRewardType, key); + _o.RankStart = TableEncryptionService.Convert(this.RankStart, key); + _o.RankEnd = TableEncryptionService.Convert(this.RankEnd, key); + _o.RankIconPath = TableEncryptionService.Convert(this.RankIconPath, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueIdLength; ++_j) {_o.RewardParcelUniqueId.Add(TableEncryptionService.Convert(this.RewardParcelUniqueId(_j), key));} + _o.RewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueNameLength; ++_j) {_o.RewardParcelUniqueName.Add(TableEncryptionService.Convert(this.RewardParcelUniqueName(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RankIconPath = _o.RankIconPath == null ? default(StringOffset) : builder.CreateString(_o.RankIconPath); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelUniqueId = default(VectorOffset); + if (_o.RewardParcelUniqueId != null) { + var __RewardParcelUniqueId = _o.RewardParcelUniqueId.ToArray(); + _RewardParcelUniqueId = CreateRewardParcelUniqueIdVector(builder, __RewardParcelUniqueId); + } + var _RewardParcelUniqueName = default(VectorOffset); + if (_o.RewardParcelUniqueName != null) { + var __RewardParcelUniqueName = new StringOffset[_o.RewardParcelUniqueName.Count]; + for (var _j = 0; _j < __RewardParcelUniqueName.Length; ++_j) { __RewardParcelUniqueName[_j] = builder.CreateString(_o.RewardParcelUniqueName[_j]); } + _RewardParcelUniqueName = CreateRewardParcelUniqueNameVector(builder, __RewardParcelUniqueName); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateArenaRewardExcel( + builder, + _o.UniqueId, + _o.ArenaRewardType, + _o.RankStart, + _o.RankEnd, + _RankIconPath, + _RewardParcelType, + _RewardParcelUniqueId, + _RewardParcelUniqueName, + _RewardParcelAmount); + } +} + +public class ArenaRewardExcelT +{ + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType { get; set; } + public long RankStart { get; set; } + public long RankEnd { get; set; } + public string RankIconPath { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelUniqueId { get; set; } + public List RewardParcelUniqueName { get; set; } + public List RewardParcelAmount { get; set; } + + public ArenaRewardExcelT() { + this.UniqueId = 0; + this.ArenaRewardType = SCHALE.Common.FlatData.ArenaRewardType.None; + this.RankStart = 0; + this.RankEnd = 0; + this.RankIconPath = null; + this.RewardParcelType = null; + this.RewardParcelUniqueId = null; + this.RewardParcelUniqueName = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs b/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs index e20ebae..6f76e3d 100644 --- a/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaRewardExcelTableT UnPack() { + var _o = new ArenaRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaRewardExcelTable( + builder, + _DataList); + } +} + +public class ArenaRewardExcelTableT +{ + public List DataList { get; set; } + + public ArenaRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs index cd0ac8c..f9dedd0 100644 --- a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs +++ b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaSeasonCloseRewardExcel : IFlatbufferObject @@ -100,6 +101,79 @@ public struct ArenaSeasonCloseRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaSeasonCloseRewardExcelT UnPack() { + var _o = new ArenaSeasonCloseRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaSeasonCloseRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaSeasonCloseReward"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.RankStart = TableEncryptionService.Convert(this.RankStart, key); + _o.RankEnd = TableEncryptionService.Convert(this.RankEnd, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueIdLength; ++_j) {_o.RewardParcelUniqueId.Add(TableEncryptionService.Convert(this.RewardParcelUniqueId(_j), key));} + _o.RewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueNameLength; ++_j) {_o.RewardParcelUniqueName.Add(TableEncryptionService.Convert(this.RewardParcelUniqueName(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaSeasonCloseRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelUniqueId = default(VectorOffset); + if (_o.RewardParcelUniqueId != null) { + var __RewardParcelUniqueId = _o.RewardParcelUniqueId.ToArray(); + _RewardParcelUniqueId = CreateRewardParcelUniqueIdVector(builder, __RewardParcelUniqueId); + } + var _RewardParcelUniqueName = default(VectorOffset); + if (_o.RewardParcelUniqueName != null) { + var __RewardParcelUniqueName = new StringOffset[_o.RewardParcelUniqueName.Count]; + for (var _j = 0; _j < __RewardParcelUniqueName.Length; ++_j) { __RewardParcelUniqueName[_j] = builder.CreateString(_o.RewardParcelUniqueName[_j]); } + _RewardParcelUniqueName = CreateRewardParcelUniqueNameVector(builder, __RewardParcelUniqueName); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateArenaSeasonCloseRewardExcel( + builder, + _o.SeasonId, + _o.RankStart, + _o.RankEnd, + _RewardParcelType, + _RewardParcelUniqueId, + _RewardParcelUniqueName, + _RewardParcelAmount); + } +} + +public class ArenaSeasonCloseRewardExcelT +{ + public long SeasonId { get; set; } + public long RankStart { get; set; } + public long RankEnd { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelUniqueId { get; set; } + public List RewardParcelUniqueName { get; set; } + public List RewardParcelAmount { get; set; } + + public ArenaSeasonCloseRewardExcelT() { + this.SeasonId = 0; + this.RankStart = 0; + this.RankEnd = 0; + this.RewardParcelType = null; + this.RewardParcelUniqueId = null; + this.RewardParcelUniqueName = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs index 96f9096..feb9f02 100644 --- a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaSeasonCloseRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaSeasonCloseRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaSeasonCloseRewardExcelTableT UnPack() { + var _o = new ArenaSeasonCloseRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaSeasonCloseRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaSeasonCloseRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaSeasonCloseRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaSeasonCloseRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaSeasonCloseRewardExcelTable( + builder, + _DataList); + } +} + +public class ArenaSeasonCloseRewardExcelTableT +{ + public List DataList { get; set; } + + public ArenaSeasonCloseRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ArenaSeasonExcel.cs b/SCHALE.Common/FlatData/ArenaSeasonExcel.cs index 3b012c2..d46ef5a 100644 --- a/SCHALE.Common/FlatData/ArenaSeasonExcel.cs +++ b/SCHALE.Common/FlatData/ArenaSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaSeasonExcel : IFlatbufferObject @@ -62,6 +63,48 @@ public struct ArenaSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaSeasonExcelT UnPack() { + var _o = new ArenaSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaSeason"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.SeasonStartDate = TableEncryptionService.Convert(this.SeasonStartDate, key); + _o.SeasonEndDate = TableEncryptionService.Convert(this.SeasonEndDate, key); + _o.SeasonGroupLimit = TableEncryptionService.Convert(this.SeasonGroupLimit, key); + _o.PrevSeasonId = TableEncryptionService.Convert(this.PrevSeasonId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ArenaSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonStartDate = _o.SeasonStartDate == null ? default(StringOffset) : builder.CreateString(_o.SeasonStartDate); + var _SeasonEndDate = _o.SeasonEndDate == null ? default(StringOffset) : builder.CreateString(_o.SeasonEndDate); + return CreateArenaSeasonExcel( + builder, + _o.UniqueId, + _SeasonStartDate, + _SeasonEndDate, + _o.SeasonGroupLimit, + _o.PrevSeasonId); + } +} + +public class ArenaSeasonExcelT +{ + public long UniqueId { get; set; } + public string SeasonStartDate { get; set; } + public string SeasonEndDate { get; set; } + public long SeasonGroupLimit { get; set; } + public long PrevSeasonId { get; set; } + + public ArenaSeasonExcelT() { + this.UniqueId = 0; + this.SeasonStartDate = null; + this.SeasonEndDate = null; + this.SeasonGroupLimit = 0; + this.PrevSeasonId = 0; + } } diff --git a/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs b/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs index 0a8554b..5cf2bbb 100644 --- a/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ArenaSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ArenaSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ArenaSeasonExcelTableT UnPack() { + var _o = new ArenaSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ArenaSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ArenaSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ArenaSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ArenaSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateArenaSeasonExcelTable( + builder, + _DataList); + } +} + +public class ArenaSeasonExcelTableT +{ + public List DataList { get; set; } + + public ArenaSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AttendanceExcel.cs b/SCHALE.Common/FlatData/AttendanceExcel.cs index b97b47b..b3c79cf 100644 --- a/SCHALE.Common/FlatData/AttendanceExcel.cs +++ b/SCHALE.Common/FlatData/AttendanceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AttendanceExcel : IFlatbufferObject @@ -154,6 +155,110 @@ public struct AttendanceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AttendanceExcelT UnPack() { + var _o = new AttendanceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AttendanceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Attendance"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Type = TableEncryptionService.Convert(this.Type, key); + _o.CountdownPrefab = TableEncryptionService.Convert(this.CountdownPrefab, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.AccountType = TableEncryptionService.Convert(this.AccountType, key); + _o.AccountLevelLimit = TableEncryptionService.Convert(this.AccountLevelLimit, key); + _o.Title = TableEncryptionService.Convert(this.Title, key); + _o.InfomationLocalizeCode = TableEncryptionService.Convert(this.InfomationLocalizeCode, key); + _o.CountRule = TableEncryptionService.Convert(this.CountRule, key); + _o.CountReset = TableEncryptionService.Convert(this.CountReset, key); + _o.BookSize = TableEncryptionService.Convert(this.BookSize, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.StartableEndDate = TableEncryptionService.Convert(this.StartableEndDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.ExpiryDate = TableEncryptionService.Convert(this.ExpiryDate, key); + _o.MailType = TableEncryptionService.Convert(this.MailType, key); + _o.DialogCategory = TableEncryptionService.Convert(this.DialogCategory, key); + _o.TitleImagePath = TableEncryptionService.Convert(this.TitleImagePath, key); + _o.DecorationImagePath = TableEncryptionService.Convert(this.DecorationImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, AttendanceExcelT _o) { + if (_o == null) return default(Offset); + var _CountdownPrefab = _o.CountdownPrefab == null ? default(StringOffset) : builder.CreateString(_o.CountdownPrefab); + var _Title = _o.Title == null ? default(StringOffset) : builder.CreateString(_o.Title); + var _InfomationLocalizeCode = _o.InfomationLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.InfomationLocalizeCode); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _StartableEndDate = _o.StartableEndDate == null ? default(StringOffset) : builder.CreateString(_o.StartableEndDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _TitleImagePath = _o.TitleImagePath == null ? default(StringOffset) : builder.CreateString(_o.TitleImagePath); + var _DecorationImagePath = _o.DecorationImagePath == null ? default(StringOffset) : builder.CreateString(_o.DecorationImagePath); + return CreateAttendanceExcel( + builder, + _o.Id, + _o.Type, + _CountdownPrefab, + _o.DisplayOrder, + _o.AccountType, + _o.AccountLevelLimit, + _Title, + _InfomationLocalizeCode, + _o.CountRule, + _o.CountReset, + _o.BookSize, + _StartDate, + _StartableEndDate, + _EndDate, + _o.ExpiryDate, + _o.MailType, + _o.DialogCategory, + _TitleImagePath, + _DecorationImagePath); + } +} + +public class AttendanceExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.AttendanceType Type { get; set; } + public string CountdownPrefab { get; set; } + public long DisplayOrder { get; set; } + public SCHALE.Common.FlatData.AccountState AccountType { get; set; } + public long AccountLevelLimit { get; set; } + public string Title { get; set; } + public string InfomationLocalizeCode { get; set; } + public SCHALE.Common.FlatData.AttendanceCountRule CountRule { get; set; } + public SCHALE.Common.FlatData.AttendanceResetType CountReset { get; set; } + public long BookSize { get; set; } + public string StartDate { get; set; } + public string StartableEndDate { get; set; } + public string EndDate { get; set; } + public long ExpiryDate { get; set; } + public SCHALE.Common.FlatData.MailType MailType { get; set; } + public SCHALE.Common.FlatData.DialogCategory DialogCategory { get; set; } + public string TitleImagePath { get; set; } + public string DecorationImagePath { get; set; } + + public AttendanceExcelT() { + this.Id = 0; + this.Type = SCHALE.Common.FlatData.AttendanceType.Basic; + this.CountdownPrefab = null; + this.DisplayOrder = 0; + this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; + this.AccountLevelLimit = 0; + this.Title = null; + this.InfomationLocalizeCode = null; + this.CountRule = SCHALE.Common.FlatData.AttendanceCountRule.Accumulation; + this.CountReset = SCHALE.Common.FlatData.AttendanceResetType.User; + this.BookSize = 0; + this.StartDate = null; + this.StartableEndDate = null; + this.EndDate = null; + this.ExpiryDate = 0; + this.MailType = SCHALE.Common.FlatData.MailType.System; + this.DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe; + this.TitleImagePath = null; + this.DecorationImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/AttendanceExcelTable.cs b/SCHALE.Common/FlatData/AttendanceExcelTable.cs index 2bbfcd0..4fed57c 100644 --- a/SCHALE.Common/FlatData/AttendanceExcelTable.cs +++ b/SCHALE.Common/FlatData/AttendanceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AttendanceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AttendanceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AttendanceExcelTableT UnPack() { + var _o = new AttendanceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AttendanceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AttendanceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AttendanceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AttendanceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAttendanceExcelTable( + builder, + _DataList); + } +} + +public class AttendanceExcelTableT +{ + public List DataList { get; set; } + + public AttendanceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AttendanceRewardExcel.cs b/SCHALE.Common/FlatData/AttendanceRewardExcel.cs index 4b4596e..cb88adb 100644 --- a/SCHALE.Common/FlatData/AttendanceRewardExcel.cs +++ b/SCHALE.Common/FlatData/AttendanceRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AttendanceRewardExcel : IFlatbufferObject @@ -96,6 +97,69 @@ public struct AttendanceRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AttendanceRewardExcelT UnPack() { + var _o = new AttendanceRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AttendanceRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AttendanceReward"); + _o.AttendanceId = TableEncryptionService.Convert(this.AttendanceId, key); + _o.Day = TableEncryptionService.Convert(this.Day, key); + _o.RewardIcon = TableEncryptionService.Convert(this.RewardIcon, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardId = new List(); + for (var _j = 0; _j < this.RewardIdLength; ++_j) {_o.RewardId.Add(TableEncryptionService.Convert(this.RewardId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, AttendanceRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardIcon = _o.RewardIcon == null ? default(StringOffset) : builder.CreateString(_o.RewardIcon); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardId = default(VectorOffset); + if (_o.RewardId != null) { + var __RewardId = _o.RewardId.ToArray(); + _RewardId = CreateRewardIdVector(builder, __RewardId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateAttendanceRewardExcel( + builder, + _o.AttendanceId, + _o.Day, + _RewardIcon, + _RewardParcelType, + _RewardId, + _RewardAmount); + } +} + +public class AttendanceRewardExcelT +{ + public long AttendanceId { get; set; } + public long Day { get; set; } + public string RewardIcon { get; set; } + public List RewardParcelType { get; set; } + public List RewardId { get; set; } + public List RewardAmount { get; set; } + + public AttendanceRewardExcelT() { + this.AttendanceId = 0; + this.Day = 0; + this.RewardIcon = null; + this.RewardParcelType = null; + this.RewardId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs b/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs index 3a5a2aa..d6e65d2 100644 --- a/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AttendanceRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct AttendanceRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AttendanceRewardExcelTableT UnPack() { + var _o = new AttendanceRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AttendanceRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("AttendanceRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, AttendanceRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AttendanceRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateAttendanceRewardExcelTable( + builder, + _DataList); + } +} + +public class AttendanceRewardExcelTableT +{ + public List DataList { get; set; } + + public AttendanceRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/AudioAnimatorExcel.cs b/SCHALE.Common/FlatData/AudioAnimatorExcel.cs index d8a5251..a565a76 100644 --- a/SCHALE.Common/FlatData/AudioAnimatorExcel.cs +++ b/SCHALE.Common/FlatData/AudioAnimatorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct AudioAnimatorExcel : IFlatbufferObject @@ -112,6 +113,93 @@ public struct AudioAnimatorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public AudioAnimatorExcelT UnPack() { + var _o = new AudioAnimatorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(AudioAnimatorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("AudioAnimator"); + _o.ControllerNameHash = TableEncryptionService.Convert(this.ControllerNameHash, key); + _o.VoiceNamePrefix = TableEncryptionService.Convert(this.VoiceNamePrefix, key); + _o.StateNameHash = TableEncryptionService.Convert(this.StateNameHash, key); + _o.StateName = TableEncryptionService.Convert(this.StateName, key); + _o.IgnoreInterruptDelay = TableEncryptionService.Convert(this.IgnoreInterruptDelay, key); + _o.IgnoreInterruptPlay = TableEncryptionService.Convert(this.IgnoreInterruptPlay, key); + _o.Volume = TableEncryptionService.Convert(this.Volume, key); + _o.Delay = TableEncryptionService.Convert(this.Delay, key); + _o.RandomPitchMin = TableEncryptionService.Convert(this.RandomPitchMin, key); + _o.RandomPitchMax = TableEncryptionService.Convert(this.RandomPitchMax, key); + _o.AudioPriority = TableEncryptionService.Convert(this.AudioPriority, key); + _o.AudioClipPath = new List(); + for (var _j = 0; _j < this.AudioClipPathLength; ++_j) {_o.AudioClipPath.Add(TableEncryptionService.Convert(this.AudioClipPath(_j), key));} + _o.VoiceHash = new List(); + for (var _j = 0; _j < this.VoiceHashLength; ++_j) {_o.VoiceHash.Add(TableEncryptionService.Convert(this.VoiceHash(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, AudioAnimatorExcelT _o) { + if (_o == null) return default(Offset); + var _VoiceNamePrefix = _o.VoiceNamePrefix == null ? default(StringOffset) : builder.CreateString(_o.VoiceNamePrefix); + var _StateName = _o.StateName == null ? default(StringOffset) : builder.CreateString(_o.StateName); + var _AudioClipPath = default(VectorOffset); + if (_o.AudioClipPath != null) { + var __AudioClipPath = new StringOffset[_o.AudioClipPath.Count]; + for (var _j = 0; _j < __AudioClipPath.Length; ++_j) { __AudioClipPath[_j] = builder.CreateString(_o.AudioClipPath[_j]); } + _AudioClipPath = CreateAudioClipPathVector(builder, __AudioClipPath); + } + var _VoiceHash = default(VectorOffset); + if (_o.VoiceHash != null) { + var __VoiceHash = _o.VoiceHash.ToArray(); + _VoiceHash = CreateVoiceHashVector(builder, __VoiceHash); + } + return CreateAudioAnimatorExcel( + builder, + _o.ControllerNameHash, + _VoiceNamePrefix, + _o.StateNameHash, + _StateName, + _o.IgnoreInterruptDelay, + _o.IgnoreInterruptPlay, + _o.Volume, + _o.Delay, + _o.RandomPitchMin, + _o.RandomPitchMax, + _o.AudioPriority, + _AudioClipPath, + _VoiceHash); + } +} + +public class AudioAnimatorExcelT +{ + public uint ControllerNameHash { get; set; } + public string VoiceNamePrefix { get; set; } + public uint StateNameHash { get; set; } + public string StateName { get; set; } + public bool IgnoreInterruptDelay { get; set; } + public bool IgnoreInterruptPlay { get; set; } + public float Volume { get; set; } + public float Delay { get; set; } + public int RandomPitchMin { get; set; } + public int RandomPitchMax { get; set; } + public int AudioPriority { get; set; } + public List AudioClipPath { get; set; } + public List VoiceHash { get; set; } + + public AudioAnimatorExcelT() { + this.ControllerNameHash = 0; + this.VoiceNamePrefix = null; + this.StateNameHash = 0; + this.StateName = null; + this.IgnoreInterruptDelay = false; + this.IgnoreInterruptPlay = false; + this.Volume = 0.0f; + this.Delay = 0.0f; + this.RandomPitchMin = 0; + this.RandomPitchMax = 0; + this.AudioPriority = 0; + this.AudioClipPath = null; + this.VoiceHash = null; + } } diff --git a/SCHALE.Common/FlatData/BGMExcel.cs b/SCHALE.Common/FlatData/BGMExcel.cs index b0fd30c..23e847d 100644 --- a/SCHALE.Common/FlatData/BGMExcel.cs +++ b/SCHALE.Common/FlatData/BGMExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BGMExcel : IFlatbufferObject @@ -140,6 +141,101 @@ public struct BGMExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BGMExcelT UnPack() { + var _o = new BGMExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BGMExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BGM"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Nation_ = new List(); + for (var _j = 0; _j < this.Nation_Length; ++_j) {_o.Nation_.Add(TableEncryptionService.Convert(this.Nation_(_j), key));} + _o.Path = new List(); + for (var _j = 0; _j < this.PathLength; ++_j) {_o.Path.Add(TableEncryptionService.Convert(this.Path(_j), key));} + _o.Volume = new List(); + for (var _j = 0; _j < this.VolumeLength; ++_j) {_o.Volume.Add(TableEncryptionService.Convert(this.Volume(_j), key));} + _o.LoopStartTime = new List(); + for (var _j = 0; _j < this.LoopStartTimeLength; ++_j) {_o.LoopStartTime.Add(TableEncryptionService.Convert(this.LoopStartTime(_j), key));} + _o.LoopEndTime = new List(); + for (var _j = 0; _j < this.LoopEndTimeLength; ++_j) {_o.LoopEndTime.Add(TableEncryptionService.Convert(this.LoopEndTime(_j), key));} + _o.LoopTranstionTime = new List(); + for (var _j = 0; _j < this.LoopTranstionTimeLength; ++_j) {_o.LoopTranstionTime.Add(TableEncryptionService.Convert(this.LoopTranstionTime(_j), key));} + _o.LoopOffsetTime = new List(); + for (var _j = 0; _j < this.LoopOffsetTimeLength; ++_j) {_o.LoopOffsetTime.Add(TableEncryptionService.Convert(this.LoopOffsetTime(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, BGMExcelT _o) { + if (_o == null) return default(Offset); + var _Nation_ = default(VectorOffset); + if (_o.Nation_ != null) { + var __Nation_ = _o.Nation_.ToArray(); + _Nation_ = CreateNation_Vector(builder, __Nation_); + } + var _Path = default(VectorOffset); + if (_o.Path != null) { + var __Path = new StringOffset[_o.Path.Count]; + for (var _j = 0; _j < __Path.Length; ++_j) { __Path[_j] = builder.CreateString(_o.Path[_j]); } + _Path = CreatePathVector(builder, __Path); + } + var _Volume = default(VectorOffset); + if (_o.Volume != null) { + var __Volume = _o.Volume.ToArray(); + _Volume = CreateVolumeVector(builder, __Volume); + } + var _LoopStartTime = default(VectorOffset); + if (_o.LoopStartTime != null) { + var __LoopStartTime = _o.LoopStartTime.ToArray(); + _LoopStartTime = CreateLoopStartTimeVector(builder, __LoopStartTime); + } + var _LoopEndTime = default(VectorOffset); + if (_o.LoopEndTime != null) { + var __LoopEndTime = _o.LoopEndTime.ToArray(); + _LoopEndTime = CreateLoopEndTimeVector(builder, __LoopEndTime); + } + var _LoopTranstionTime = default(VectorOffset); + if (_o.LoopTranstionTime != null) { + var __LoopTranstionTime = _o.LoopTranstionTime.ToArray(); + _LoopTranstionTime = CreateLoopTranstionTimeVector(builder, __LoopTranstionTime); + } + var _LoopOffsetTime = default(VectorOffset); + if (_o.LoopOffsetTime != null) { + var __LoopOffsetTime = _o.LoopOffsetTime.ToArray(); + _LoopOffsetTime = CreateLoopOffsetTimeVector(builder, __LoopOffsetTime); + } + return CreateBGMExcel( + builder, + _o.Id, + _Nation_, + _Path, + _Volume, + _LoopStartTime, + _LoopEndTime, + _LoopTranstionTime, + _LoopOffsetTime); + } +} + +public class BGMExcelT +{ + public long Id { get; set; } + public List Nation_ { get; set; } + public List Path { get; set; } + public List Volume { get; set; } + public List LoopStartTime { get; set; } + public List LoopEndTime { get; set; } + public List LoopTranstionTime { get; set; } + public List LoopOffsetTime { get; set; } + + public BGMExcelT() { + this.Id = 0; + this.Nation_ = null; + this.Path = null; + this.Volume = null; + this.LoopStartTime = null; + this.LoopEndTime = null; + this.LoopTranstionTime = null; + this.LoopOffsetTime = null; + } } diff --git a/SCHALE.Common/FlatData/BGMRaidExcel.cs b/SCHALE.Common/FlatData/BGMRaidExcel.cs index 1e5f46d..98649b4 100644 --- a/SCHALE.Common/FlatData/BGMRaidExcel.cs +++ b/SCHALE.Common/FlatData/BGMRaidExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BGMRaidExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct BGMRaidExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BGMRaidExcelT UnPack() { + var _o = new BGMRaidExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BGMRaidExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BGMRaid"); + _o.StageId = TableEncryptionService.Convert(this.StageId, key); + _o.PhaseIndex = TableEncryptionService.Convert(this.PhaseIndex, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + } + public static Offset Pack(FlatBufferBuilder builder, BGMRaidExcelT _o) { + if (_o == null) return default(Offset); + return CreateBGMRaidExcel( + builder, + _o.StageId, + _o.PhaseIndex, + _o.BGMId); + } +} + +public class BGMRaidExcelT +{ + public long StageId { get; set; } + public long PhaseIndex { get; set; } + public long BGMId { get; set; } + + public BGMRaidExcelT() { + this.StageId = 0; + this.PhaseIndex = 0; + this.BGMId = 0; + } } diff --git a/SCHALE.Common/FlatData/BGMUIExcel.cs b/SCHALE.Common/FlatData/BGMUIExcel.cs index 55be72f..ef8c30e 100644 --- a/SCHALE.Common/FlatData/BGMUIExcel.cs +++ b/SCHALE.Common/FlatData/BGMUIExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BGMUIExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct BGMUIExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BGMUIExcelT UnPack() { + var _o = new BGMUIExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BGMUIExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BGMUI"); + _o.UIPrefab = TableEncryptionService.Convert(this.UIPrefab, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.BGMId2nd = TableEncryptionService.Convert(this.BGMId2nd, key); + _o.BGMId3rd = TableEncryptionService.Convert(this.BGMId3rd, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + } + public static Offset Pack(FlatBufferBuilder builder, BGMUIExcelT _o) { + if (_o == null) return default(Offset); + return CreateBGMUIExcel( + builder, + _o.UIPrefab, + _o.BGMId, + _o.BGMId2nd, + _o.BGMId3rd, + _o.EventContentId); + } +} + +public class BGMUIExcelT +{ + public uint UIPrefab { get; set; } + public long BGMId { get; set; } + public long BGMId2nd { get; set; } + public long BGMId3rd { get; set; } + public long EventContentId { get; set; } + + public BGMUIExcelT() { + this.UIPrefab = 0; + this.BGMId = 0; + this.BGMId2nd = 0; + this.BGMId3rd = 0; + this.EventContentId = 0; + } } diff --git a/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs b/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs index d862ff9..8952eb6 100644 --- a/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs +++ b/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BattleLevelFactorExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct BattleLevelFactorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BattleLevelFactorExcelT UnPack() { + var _o = new BattleLevelFactorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BattleLevelFactorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BattleLevelFactor"); + _o.LevelDiff = TableEncryptionService.Convert(this.LevelDiff, key); + _o.DamageRate = TableEncryptionService.Convert(this.DamageRate, key); + } + public static Offset Pack(FlatBufferBuilder builder, BattleLevelFactorExcelT _o) { + if (_o == null) return default(Offset); + return CreateBattleLevelFactorExcel( + builder, + _o.LevelDiff, + _o.DamageRate); + } +} + +public class BattleLevelFactorExcelT +{ + public int LevelDiff { get; set; } + public long DamageRate { get; set; } + + public BattleLevelFactorExcelT() { + this.LevelDiff = 0; + this.DamageRate = 0; + } } diff --git a/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs b/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs index 0129d6f..de12969 100644 --- a/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs +++ b/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BattleLevelFactorExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct BattleLevelFactorExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BattleLevelFactorExcelTableT UnPack() { + var _o = new BattleLevelFactorExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BattleLevelFactorExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("BattleLevelFactorExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BattleLevelFactorExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BattleLevelFactorExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateBattleLevelFactorExcelTable( + builder, + _DataList); + } +} + +public class BattleLevelFactorExcelTableT +{ + public List DataList { get; set; } + + public BattleLevelFactorExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/BlendData.cs b/SCHALE.Common/FlatData/BlendData.cs index 2482a7e..3d1b5c4 100644 --- a/SCHALE.Common/FlatData/BlendData.cs +++ b/SCHALE.Common/FlatData/BlendData.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BlendData : IFlatbufferObject @@ -44,6 +45,41 @@ public struct BlendData : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BlendDataT UnPack() { + var _o = new BlendDataT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BlendDataT _o) { + byte[] key = { 0 }; + _o.Type = TableEncryptionService.Convert(this.Type, key); + _o.InfoList = new List(); + for (var _j = 0; _j < this.InfoListLength; ++_j) {_o.InfoList.Add(this.InfoList(_j).HasValue ? this.InfoList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BlendDataT _o) { + if (_o == null) return default(Offset); + var _InfoList = default(VectorOffset); + if (_o.InfoList != null) { + var __InfoList = new Offset[_o.InfoList.Count]; + for (var _j = 0; _j < __InfoList.Length; ++_j) { __InfoList[_j] = SCHALE.Common.FlatData.BlendInfo.Pack(builder, _o.InfoList[_j]); } + _InfoList = CreateInfoListVector(builder, __InfoList); + } + return CreateBlendData( + builder, + _o.Type, + _InfoList); + } +} + +public class BlendDataT +{ + public int Type { get; set; } + public List InfoList { get; set; } + + public BlendDataT() { + this.Type = 0; + this.InfoList = null; + } } diff --git a/SCHALE.Common/FlatData/BlendInfo.cs b/SCHALE.Common/FlatData/BlendInfo.cs index 6f20ad6..2b89f00 100644 --- a/SCHALE.Common/FlatData/BlendInfo.cs +++ b/SCHALE.Common/FlatData/BlendInfo.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BlendInfo : IFlatbufferObject @@ -42,6 +43,38 @@ public struct BlendInfo : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BlendInfoT UnPack() { + var _o = new BlendInfoT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BlendInfoT _o) { + byte[] key = { 0 }; + _o.From = TableEncryptionService.Convert(this.From, key); + _o.To = TableEncryptionService.Convert(this.To, key); + _o.Blend = TableEncryptionService.Convert(this.Blend, key); + } + public static Offset Pack(FlatBufferBuilder builder, BlendInfoT _o) { + if (_o == null) return default(Offset); + return CreateBlendInfo( + builder, + _o.From, + _o.To, + _o.Blend); + } +} + +public class BlendInfoT +{ + public int From { get; set; } + public int To { get; set; } + public float Blend { get; set; } + + public BlendInfoT() { + this.From = 0; + this.To = 0; + this.Blend = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/BossExternalBTExcel.cs b/SCHALE.Common/FlatData/BossExternalBTExcel.cs index 1fa78c1..938051e 100644 --- a/SCHALE.Common/FlatData/BossExternalBTExcel.cs +++ b/SCHALE.Common/FlatData/BossExternalBTExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BossExternalBTExcel : IFlatbufferObject @@ -74,6 +75,60 @@ public struct BossExternalBTExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BossExternalBTExcelT UnPack() { + var _o = new BossExternalBTExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BossExternalBTExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BossExternalBT"); + _o.ExternalBTId = TableEncryptionService.Convert(this.ExternalBTId, key); + _o.AIPhase = TableEncryptionService.Convert(this.AIPhase, key); + _o.ExternalBTNodeType = TableEncryptionService.Convert(this.ExternalBTNodeType, key); + _o.ExternalBTTrigger = TableEncryptionService.Convert(this.ExternalBTTrigger, key); + _o.TriggerArgument = TableEncryptionService.Convert(this.TriggerArgument, key); + _o.BehaviorRate = TableEncryptionService.Convert(this.BehaviorRate, key); + _o.ExternalBehavior = TableEncryptionService.Convert(this.ExternalBehavior, key); + _o.BehaviorArgument = TableEncryptionService.Convert(this.BehaviorArgument, key); + } + public static Offset Pack(FlatBufferBuilder builder, BossExternalBTExcelT _o) { + if (_o == null) return default(Offset); + var _TriggerArgument = _o.TriggerArgument == null ? default(StringOffset) : builder.CreateString(_o.TriggerArgument); + var _BehaviorArgument = _o.BehaviorArgument == null ? default(StringOffset) : builder.CreateString(_o.BehaviorArgument); + return CreateBossExternalBTExcel( + builder, + _o.ExternalBTId, + _o.AIPhase, + _o.ExternalBTNodeType, + _o.ExternalBTTrigger, + _TriggerArgument, + _o.BehaviorRate, + _o.ExternalBehavior, + _BehaviorArgument); + } +} + +public class BossExternalBTExcelT +{ + public long ExternalBTId { get; set; } + public long AIPhase { get; set; } + public SCHALE.Common.FlatData.ExternalBTNodeType ExternalBTNodeType { get; set; } + public SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger { get; set; } + public string TriggerArgument { get; set; } + public long BehaviorRate { get; set; } + public SCHALE.Common.FlatData.ExternalBehavior ExternalBehavior { get; set; } + public string BehaviorArgument { get; set; } + + public BossExternalBTExcelT() { + this.ExternalBTId = 0; + this.AIPhase = 0; + this.ExternalBTNodeType = SCHALE.Common.FlatData.ExternalBTNodeType.Sequence; + this.ExternalBTTrigger = SCHALE.Common.FlatData.ExternalBTTrigger.None; + this.TriggerArgument = null; + this.BehaviorRate = 0; + this.ExternalBehavior = SCHALE.Common.FlatData.ExternalBehavior.UseNextExSkill; + this.BehaviorArgument = null; + } } diff --git a/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs b/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs index 353503b..ac00e98 100644 --- a/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs +++ b/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BossExternalBTExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct BossExternalBTExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BossExternalBTExcelTableT UnPack() { + var _o = new BossExternalBTExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BossExternalBTExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("BossExternalBTExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BossExternalBTExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BossExternalBTExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateBossExternalBTExcelTable( + builder, + _DataList); + } +} + +public class BossExternalBTExcelTableT +{ + public List DataList { get; set; } + + public BossExternalBTExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/BossPhaseExcel.cs b/SCHALE.Common/FlatData/BossPhaseExcel.cs index c1606e6..9563e08 100644 --- a/SCHALE.Common/FlatData/BossPhaseExcel.cs +++ b/SCHALE.Common/FlatData/BossPhaseExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BossPhaseExcel : IFlatbufferObject @@ -64,6 +65,49 @@ public struct BossPhaseExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BossPhaseExcelT UnPack() { + var _o = new BossPhaseExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BossPhaseExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BossPhase"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.AIPhase = TableEncryptionService.Convert(this.AIPhase, key); + _o.NormalAttackSkillUniqueName = TableEncryptionService.Convert(this.NormalAttackSkillUniqueName, key); + _o.UseExSkill = new List(); + for (var _j = 0; _j < this.UseExSkillLength; ++_j) {_o.UseExSkill.Add(TableEncryptionService.Convert(this.UseExSkill(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, BossPhaseExcelT _o) { + if (_o == null) return default(Offset); + var _NormalAttackSkillUniqueName = _o.NormalAttackSkillUniqueName == null ? default(StringOffset) : builder.CreateString(_o.NormalAttackSkillUniqueName); + var _UseExSkill = default(VectorOffset); + if (_o.UseExSkill != null) { + var __UseExSkill = _o.UseExSkill.ToArray(); + _UseExSkill = CreateUseExSkillVector(builder, __UseExSkill); + } + return CreateBossPhaseExcel( + builder, + _o.Id, + _o.AIPhase, + _NormalAttackSkillUniqueName, + _UseExSkill); + } +} + +public class BossPhaseExcelT +{ + public long Id { get; set; } + public long AIPhase { get; set; } + public string NormalAttackSkillUniqueName { get; set; } + public List UseExSkill { get; set; } + + public BossPhaseExcelT() { + this.Id = 0; + this.AIPhase = 0; + this.NormalAttackSkillUniqueName = null; + this.UseExSkill = null; + } } diff --git a/SCHALE.Common/FlatData/BossPhaseExcelTable.cs b/SCHALE.Common/FlatData/BossPhaseExcelTable.cs index b9bb1f7..305b9b0 100644 --- a/SCHALE.Common/FlatData/BossPhaseExcelTable.cs +++ b/SCHALE.Common/FlatData/BossPhaseExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BossPhaseExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct BossPhaseExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BossPhaseExcelTableT UnPack() { + var _o = new BossPhaseExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BossPhaseExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("BossPhaseExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BossPhaseExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BossPhaseExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateBossPhaseExcelTable( + builder, + _DataList); + } +} + +public class BossPhaseExcelTableT +{ + public List DataList { get; set; } + + public BossPhaseExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/BuffParticleExcel.cs b/SCHALE.Common/FlatData/BuffParticleExcel.cs index a75514e..d7274fd 100644 --- a/SCHALE.Common/FlatData/BuffParticleExcel.cs +++ b/SCHALE.Common/FlatData/BuffParticleExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BuffParticleExcel : IFlatbufferObject @@ -74,6 +75,50 @@ public struct BuffParticleExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BuffParticleExcelT UnPack() { + var _o = new BuffParticleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BuffParticleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BuffParticle"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.UniqueName = TableEncryptionService.Convert(this.UniqueName, key); + _o.BuffType = TableEncryptionService.Convert(this.BuffType, key); + _o.BuffName = TableEncryptionService.Convert(this.BuffName, key); + _o.ResourcePath = TableEncryptionService.Convert(this.ResourcePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, BuffParticleExcelT _o) { + if (_o == null) return default(Offset); + var _UniqueName = _o.UniqueName == null ? default(StringOffset) : builder.CreateString(_o.UniqueName); + var _BuffType = _o.BuffType == null ? default(StringOffset) : builder.CreateString(_o.BuffType); + var _BuffName = _o.BuffName == null ? default(StringOffset) : builder.CreateString(_o.BuffName); + var _ResourcePath = _o.ResourcePath == null ? default(StringOffset) : builder.CreateString(_o.ResourcePath); + return CreateBuffParticleExcel( + builder, + _o.UniqueId, + _UniqueName, + _BuffType, + _BuffName, + _ResourcePath); + } +} + +public class BuffParticleExcelT +{ + public long UniqueId { get; set; } + public string UniqueName { get; set; } + public string BuffType { get; set; } + public string BuffName { get; set; } + public string ResourcePath { get; set; } + + public BuffParticleExcelT() { + this.UniqueId = 0; + this.UniqueName = null; + this.BuffType = null; + this.BuffName = null; + this.ResourcePath = null; + } } diff --git a/SCHALE.Common/FlatData/BuffParticleExcelTable.cs b/SCHALE.Common/FlatData/BuffParticleExcelTable.cs index 0861bb7..572a915 100644 --- a/SCHALE.Common/FlatData/BuffParticleExcelTable.cs +++ b/SCHALE.Common/FlatData/BuffParticleExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BuffParticleExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct BuffParticleExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BuffParticleExcelTableT UnPack() { + var _o = new BuffParticleExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BuffParticleExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("BuffParticleExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BuffParticleExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BuffParticleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateBuffParticleExcelTable( + builder, + _DataList); + } +} + +public class BuffParticleExcelTableT +{ + public List DataList { get; set; } + + public BuffParticleExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs index e3f9d2d..bee12fa 100644 --- a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs +++ b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BulletArmorDamageFactorExcel : IFlatbufferObject @@ -68,6 +69,59 @@ public struct BulletArmorDamageFactorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BulletArmorDamageFactorExcelT UnPack() { + var _o = new BulletArmorDamageFactorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BulletArmorDamageFactorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("BulletArmorDamageFactor"); + _o.DamageFactorGroupId = TableEncryptionService.Convert(this.DamageFactorGroupId, key); + _o.BulletType = TableEncryptionService.Convert(this.BulletType, key); + _o.ArmorType = TableEncryptionService.Convert(this.ArmorType, key); + _o.DamageRate = TableEncryptionService.Convert(this.DamageRate, key); + _o.DamageAttribute = TableEncryptionService.Convert(this.DamageAttribute, key); + _o.MinDamageRate = TableEncryptionService.Convert(this.MinDamageRate, key); + _o.MaxDamageRate = TableEncryptionService.Convert(this.MaxDamageRate, key); + _o.ShowHighlightFloater = TableEncryptionService.Convert(this.ShowHighlightFloater, key); + } + public static Offset Pack(FlatBufferBuilder builder, BulletArmorDamageFactorExcelT _o) { + if (_o == null) return default(Offset); + var _DamageFactorGroupId = _o.DamageFactorGroupId == null ? default(StringOffset) : builder.CreateString(_o.DamageFactorGroupId); + return CreateBulletArmorDamageFactorExcel( + builder, + _DamageFactorGroupId, + _o.BulletType, + _o.ArmorType, + _o.DamageRate, + _o.DamageAttribute, + _o.MinDamageRate, + _o.MaxDamageRate, + _o.ShowHighlightFloater); + } +} + +public class BulletArmorDamageFactorExcelT +{ + public string DamageFactorGroupId { get; set; } + public SCHALE.Common.FlatData.BulletType BulletType { get; set; } + public SCHALE.Common.FlatData.ArmorType ArmorType { get; set; } + public long DamageRate { get; set; } + public SCHALE.Common.FlatData.DamageAttribute DamageAttribute { get; set; } + public long MinDamageRate { get; set; } + public long MaxDamageRate { get; set; } + public bool ShowHighlightFloater { get; set; } + + public BulletArmorDamageFactorExcelT() { + this.DamageFactorGroupId = null; + this.BulletType = SCHALE.Common.FlatData.BulletType.Normal; + this.ArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor; + this.DamageRate = 0; + this.DamageAttribute = SCHALE.Common.FlatData.DamageAttribute.Resist; + this.MinDamageRate = 0; + this.MaxDamageRate = 0; + this.ShowHighlightFloater = false; + } } diff --git a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs index 639d663..3fe72ac 100644 --- a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs +++ b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct BulletArmorDamageFactorExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct BulletArmorDamageFactorExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public BulletArmorDamageFactorExcelTableT UnPack() { + var _o = new BulletArmorDamageFactorExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(BulletArmorDamageFactorExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("BulletArmorDamageFactorExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, BulletArmorDamageFactorExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.BulletArmorDamageFactorExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateBulletArmorDamageFactorExcelTable( + builder, + _DataList); + } +} + +public class BulletArmorDamageFactorExcelTableT +{ + public List DataList { get; set; } + + public BulletArmorDamageFactorExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CafeInfoExcel.cs b/SCHALE.Common/FlatData/CafeInfoExcel.cs index aa54501..9c3c91c 100644 --- a/SCHALE.Common/FlatData/CafeInfoExcel.cs +++ b/SCHALE.Common/FlatData/CafeInfoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeInfoExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct CafeInfoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeInfoExcelT UnPack() { + var _o = new CafeInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeInfo"); + _o.CafeId = TableEncryptionService.Convert(this.CafeId, key); + _o.IsDefault = TableEncryptionService.Convert(this.IsDefault, key); + _o.OpenConditionCafeId = TableEncryptionService.Convert(this.OpenConditionCafeId, key); + _o.OpenConditionCafeInvite = TableEncryptionService.Convert(this.OpenConditionCafeInvite, key); + } + public static Offset Pack(FlatBufferBuilder builder, CafeInfoExcelT _o) { + if (_o == null) return default(Offset); + return CreateCafeInfoExcel( + builder, + _o.CafeId, + _o.IsDefault, + _o.OpenConditionCafeId, + _o.OpenConditionCafeInvite); + } +} + +public class CafeInfoExcelT +{ + public long CafeId { get; set; } + public bool IsDefault { get; set; } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeId { get; set; } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeInvite { get; set; } + + public CafeInfoExcelT() { + this.CafeId = 0; + this.IsDefault = false; + this.OpenConditionCafeId = SCHALE.Common.FlatData.OpenConditionContent.Shop; + this.OpenConditionCafeInvite = SCHALE.Common.FlatData.OpenConditionContent.Shop; + } } diff --git a/SCHALE.Common/FlatData/CafeInfoExcelTable.cs b/SCHALE.Common/FlatData/CafeInfoExcelTable.cs index aca380e..bd0bac7 100644 --- a/SCHALE.Common/FlatData/CafeInfoExcelTable.cs +++ b/SCHALE.Common/FlatData/CafeInfoExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeInfoExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CafeInfoExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeInfoExcelTableT UnPack() { + var _o = new CafeInfoExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeInfoExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeInfoExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CafeInfoExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CafeInfoExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCafeInfoExcelTable( + builder, + _DataList); + } +} + +public class CafeInfoExcelTableT +{ + public List DataList { get; set; } + + public CafeInfoExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CafeInteractionExcel.cs b/SCHALE.Common/FlatData/CafeInteractionExcel.cs index fefba56..a6dd01f 100644 --- a/SCHALE.Common/FlatData/CafeInteractionExcel.cs +++ b/SCHALE.Common/FlatData/CafeInteractionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeInteractionExcel : IFlatbufferObject @@ -112,6 +113,87 @@ public struct CafeInteractionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeInteractionExcelT UnPack() { + var _o = new CafeInteractionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeInteractionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeInteraction"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.IgnoreIfUnobtained = TableEncryptionService.Convert(this.IgnoreIfUnobtained, key); + _o.IgnoreIfUnobtainedStartDate = TableEncryptionService.Convert(this.IgnoreIfUnobtainedStartDate, key); + _o.IgnoreIfUnobtainedEndDate = TableEncryptionService.Convert(this.IgnoreIfUnobtainedEndDate, key); + _o.BubbleType_ = new List(); + for (var _j = 0; _j < this.BubbleType_Length; ++_j) {_o.BubbleType_.Add(TableEncryptionService.Convert(this.BubbleType_(_j), key));} + _o.BubbleDuration = new List(); + for (var _j = 0; _j < this.BubbleDurationLength; ++_j) {_o.BubbleDuration.Add(TableEncryptionService.Convert(this.BubbleDuration(_j), key));} + _o.FavorEmoticonRewardParcelType = TableEncryptionService.Convert(this.FavorEmoticonRewardParcelType, key); + _o.FavorEmoticonRewardId = TableEncryptionService.Convert(this.FavorEmoticonRewardId, key); + _o.FavorEmoticonRewardAmount = TableEncryptionService.Convert(this.FavorEmoticonRewardAmount, key); + _o.CafeCharacterState = new List(); + for (var _j = 0; _j < this.CafeCharacterStateLength; ++_j) {_o.CafeCharacterState.Add(TableEncryptionService.Convert(this.CafeCharacterState(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CafeInteractionExcelT _o) { + if (_o == null) return default(Offset); + var _IgnoreIfUnobtainedStartDate = _o.IgnoreIfUnobtainedStartDate == null ? default(StringOffset) : builder.CreateString(_o.IgnoreIfUnobtainedStartDate); + var _IgnoreIfUnobtainedEndDate = _o.IgnoreIfUnobtainedEndDate == null ? default(StringOffset) : builder.CreateString(_o.IgnoreIfUnobtainedEndDate); + var _BubbleType_ = default(VectorOffset); + if (_o.BubbleType_ != null) { + var __BubbleType_ = _o.BubbleType_.ToArray(); + _BubbleType_ = CreateBubbleType_Vector(builder, __BubbleType_); + } + var _BubbleDuration = default(VectorOffset); + if (_o.BubbleDuration != null) { + var __BubbleDuration = _o.BubbleDuration.ToArray(); + _BubbleDuration = CreateBubbleDurationVector(builder, __BubbleDuration); + } + var _CafeCharacterState = default(VectorOffset); + if (_o.CafeCharacterState != null) { + var __CafeCharacterState = new StringOffset[_o.CafeCharacterState.Count]; + for (var _j = 0; _j < __CafeCharacterState.Length; ++_j) { __CafeCharacterState[_j] = builder.CreateString(_o.CafeCharacterState[_j]); } + _CafeCharacterState = CreateCafeCharacterStateVector(builder, __CafeCharacterState); + } + return CreateCafeInteractionExcel( + builder, + _o.CharacterId, + _o.IgnoreIfUnobtained, + _IgnoreIfUnobtainedStartDate, + _IgnoreIfUnobtainedEndDate, + _BubbleType_, + _BubbleDuration, + _o.FavorEmoticonRewardParcelType, + _o.FavorEmoticonRewardId, + _o.FavorEmoticonRewardAmount, + _CafeCharacterState); + } +} + +public class CafeInteractionExcelT +{ + public long CharacterId { get; set; } + public bool IgnoreIfUnobtained { get; set; } + public string IgnoreIfUnobtainedStartDate { get; set; } + public string IgnoreIfUnobtainedEndDate { get; set; } + public List BubbleType_ { get; set; } + public List BubbleDuration { get; set; } + public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { get; set; } + public long FavorEmoticonRewardId { get; set; } + public long FavorEmoticonRewardAmount { get; set; } + public List CafeCharacterState { get; set; } + + public CafeInteractionExcelT() { + this.CharacterId = 0; + this.IgnoreIfUnobtained = false; + this.IgnoreIfUnobtainedStartDate = null; + this.IgnoreIfUnobtainedEndDate = null; + this.BubbleType_ = null; + this.BubbleDuration = null; + this.FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.FavorEmoticonRewardId = 0; + this.FavorEmoticonRewardAmount = 0; + this.CafeCharacterState = null; + } } diff --git a/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs b/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs index cf86403..c3b3128 100644 --- a/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs +++ b/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeInteractionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CafeInteractionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeInteractionExcelTableT UnPack() { + var _o = new CafeInteractionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeInteractionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeInteractionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CafeInteractionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CafeInteractionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCafeInteractionExcelTable( + builder, + _DataList); + } +} + +public class CafeInteractionExcelTableT +{ + public List DataList { get; set; } + + public CafeInteractionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CafeProductionExcel.cs b/SCHALE.Common/FlatData/CafeProductionExcel.cs index 52dd5a5..4746861 100644 --- a/SCHALE.Common/FlatData/CafeProductionExcel.cs +++ b/SCHALE.Common/FlatData/CafeProductionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeProductionExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct CafeProductionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeProductionExcelT UnPack() { + var _o = new CafeProductionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeProductionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeProduction"); + _o.CafeId = TableEncryptionService.Convert(this.CafeId, key); + _o.Rank = TableEncryptionService.Convert(this.Rank, key); + _o.CafeProductionParcelType = TableEncryptionService.Convert(this.CafeProductionParcelType, key); + _o.CafeProductionParcelId = TableEncryptionService.Convert(this.CafeProductionParcelId, key); + _o.ParcelProductionCoefficient = TableEncryptionService.Convert(this.ParcelProductionCoefficient, key); + _o.ParcelProductionCorrectionValue = TableEncryptionService.Convert(this.ParcelProductionCorrectionValue, key); + _o.ParcelStorageMax = TableEncryptionService.Convert(this.ParcelStorageMax, key); + } + public static Offset Pack(FlatBufferBuilder builder, CafeProductionExcelT _o) { + if (_o == null) return default(Offset); + return CreateCafeProductionExcel( + builder, + _o.CafeId, + _o.Rank, + _o.CafeProductionParcelType, + _o.CafeProductionParcelId, + _o.ParcelProductionCoefficient, + _o.ParcelProductionCorrectionValue, + _o.ParcelStorageMax); + } +} + +public class CafeProductionExcelT +{ + public long CafeId { get; set; } + public long Rank { get; set; } + public SCHALE.Common.FlatData.ParcelType CafeProductionParcelType { get; set; } + public long CafeProductionParcelId { get; set; } + public long ParcelProductionCoefficient { get; set; } + public long ParcelProductionCorrectionValue { get; set; } + public long ParcelStorageMax { get; set; } + + public CafeProductionExcelT() { + this.CafeId = 0; + this.Rank = 0; + this.CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CafeProductionParcelId = 0; + this.ParcelProductionCoefficient = 0; + this.ParcelProductionCorrectionValue = 0; + this.ParcelStorageMax = 0; + } } diff --git a/SCHALE.Common/FlatData/CafeProductionExcelTable.cs b/SCHALE.Common/FlatData/CafeProductionExcelTable.cs index ef51002..2bdfb03 100644 --- a/SCHALE.Common/FlatData/CafeProductionExcelTable.cs +++ b/SCHALE.Common/FlatData/CafeProductionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeProductionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CafeProductionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeProductionExcelTableT UnPack() { + var _o = new CafeProductionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeProductionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeProductionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CafeProductionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CafeProductionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCafeProductionExcelTable( + builder, + _DataList); + } +} + +public class CafeProductionExcelTableT +{ + public List DataList { get; set; } + + public CafeProductionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CafeRankExcel.cs b/SCHALE.Common/FlatData/CafeRankExcel.cs index 9e087c5..f2f6ca4 100644 --- a/SCHALE.Common/FlatData/CafeRankExcel.cs +++ b/SCHALE.Common/FlatData/CafeRankExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeRankExcel : IFlatbufferObject @@ -94,6 +95,78 @@ public struct CafeRankExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeRankExcelT UnPack() { + var _o = new CafeRankExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeRankExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeRank"); + _o.CafeId = TableEncryptionService.Convert(this.CafeId, key); + _o.Rank = TableEncryptionService.Convert(this.Rank, key); + _o.RecipeId = TableEncryptionService.Convert(this.RecipeId, key); + _o.ComfortMax = TableEncryptionService.Convert(this.ComfortMax, key); + _o.TagCountMax = TableEncryptionService.Convert(this.TagCountMax, key); + _o.CharacterVisitMin = TableEncryptionService.Convert(this.CharacterVisitMin, key); + _o.CharacterVisitMax = TableEncryptionService.Convert(this.CharacterVisitMax, key); + _o.CafeVisitWeightBase = TableEncryptionService.Convert(this.CafeVisitWeightBase, key); + _o.CafeVisitWeightTagBonusStep = new List(); + for (var _j = 0; _j < this.CafeVisitWeightTagBonusStepLength; ++_j) {_o.CafeVisitWeightTagBonusStep.Add(TableEncryptionService.Convert(this.CafeVisitWeightTagBonusStep(_j), key));} + _o.CafeVisitWeightTagBonus = new List(); + for (var _j = 0; _j < this.CafeVisitWeightTagBonusLength; ++_j) {_o.CafeVisitWeightTagBonus.Add(TableEncryptionService.Convert(this.CafeVisitWeightTagBonus(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CafeRankExcelT _o) { + if (_o == null) return default(Offset); + var _CafeVisitWeightTagBonusStep = default(VectorOffset); + if (_o.CafeVisitWeightTagBonusStep != null) { + var __CafeVisitWeightTagBonusStep = _o.CafeVisitWeightTagBonusStep.ToArray(); + _CafeVisitWeightTagBonusStep = CreateCafeVisitWeightTagBonusStepVector(builder, __CafeVisitWeightTagBonusStep); + } + var _CafeVisitWeightTagBonus = default(VectorOffset); + if (_o.CafeVisitWeightTagBonus != null) { + var __CafeVisitWeightTagBonus = _o.CafeVisitWeightTagBonus.ToArray(); + _CafeVisitWeightTagBonus = CreateCafeVisitWeightTagBonusVector(builder, __CafeVisitWeightTagBonus); + } + return CreateCafeRankExcel( + builder, + _o.CafeId, + _o.Rank, + _o.RecipeId, + _o.ComfortMax, + _o.TagCountMax, + _o.CharacterVisitMin, + _o.CharacterVisitMax, + _o.CafeVisitWeightBase, + _CafeVisitWeightTagBonusStep, + _CafeVisitWeightTagBonus); + } +} + +public class CafeRankExcelT +{ + public long CafeId { get; set; } + public long Rank { get; set; } + public long RecipeId { get; set; } + public long ComfortMax { get; set; } + public long TagCountMax { get; set; } + public int CharacterVisitMin { get; set; } + public int CharacterVisitMax { get; set; } + public int CafeVisitWeightBase { get; set; } + public List CafeVisitWeightTagBonusStep { get; set; } + public List CafeVisitWeightTagBonus { get; set; } + + public CafeRankExcelT() { + this.CafeId = 0; + this.Rank = 0; + this.RecipeId = 0; + this.ComfortMax = 0; + this.TagCountMax = 0; + this.CharacterVisitMin = 0; + this.CharacterVisitMax = 0; + this.CafeVisitWeightBase = 0; + this.CafeVisitWeightTagBonusStep = null; + this.CafeVisitWeightTagBonus = null; + } } diff --git a/SCHALE.Common/FlatData/CafeRankExcelTable.cs b/SCHALE.Common/FlatData/CafeRankExcelTable.cs index 5071153..2400aba 100644 --- a/SCHALE.Common/FlatData/CafeRankExcelTable.cs +++ b/SCHALE.Common/FlatData/CafeRankExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CafeRankExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CafeRankExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CafeRankExcelTableT UnPack() { + var _o = new CafeRankExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CafeRankExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CafeRankExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CafeRankExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CafeRankExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCafeRankExcelTable( + builder, + _DataList); + } +} + +public class CafeRankExcelTableT +{ + public List DataList { get; set; } + + public CafeRankExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CameraExcel.cs b/SCHALE.Common/FlatData/CameraExcel.cs index 7ac9e07..2afe764 100644 --- a/SCHALE.Common/FlatData/CameraExcel.cs +++ b/SCHALE.Common/FlatData/CameraExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CameraExcel : IFlatbufferObject @@ -74,6 +75,70 @@ public struct CameraExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CameraExcelT UnPack() { + var _o = new CameraExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CameraExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Camera"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.MinDistance = TableEncryptionService.Convert(this.MinDistance, key); + _o.MaxDistance = TableEncryptionService.Convert(this.MaxDistance, key); + _o.RotationX = TableEncryptionService.Convert(this.RotationX, key); + _o.RotationY = TableEncryptionService.Convert(this.RotationY, key); + _o.MoveInstantly = TableEncryptionService.Convert(this.MoveInstantly, key); + _o.MoveInstantlyRotationSave = TableEncryptionService.Convert(this.MoveInstantlyRotationSave, key); + _o.LeftMargin = TableEncryptionService.Convert(this.LeftMargin, key); + _o.BottomMargin = TableEncryptionService.Convert(this.BottomMargin, key); + _o.IgnoreEnemies = TableEncryptionService.Convert(this.IgnoreEnemies, key); + _o.UseRailPointCompensation = TableEncryptionService.Convert(this.UseRailPointCompensation, key); + } + public static Offset Pack(FlatBufferBuilder builder, CameraExcelT _o) { + if (_o == null) return default(Offset); + return CreateCameraExcel( + builder, + _o.UniqueId, + _o.MinDistance, + _o.MaxDistance, + _o.RotationX, + _o.RotationY, + _o.MoveInstantly, + _o.MoveInstantlyRotationSave, + _o.LeftMargin, + _o.BottomMargin, + _o.IgnoreEnemies, + _o.UseRailPointCompensation); + } +} + +public class CameraExcelT +{ + public long UniqueId { get; set; } + public float MinDistance { get; set; } + public float MaxDistance { get; set; } + public float RotationX { get; set; } + public float RotationY { get; set; } + public bool MoveInstantly { get; set; } + public bool MoveInstantlyRotationSave { get; set; } + public float LeftMargin { get; set; } + public float BottomMargin { get; set; } + public bool IgnoreEnemies { get; set; } + public bool UseRailPointCompensation { get; set; } + + public CameraExcelT() { + this.UniqueId = 0; + this.MinDistance = 0.0f; + this.MaxDistance = 0.0f; + this.RotationX = 0.0f; + this.RotationY = 0.0f; + this.MoveInstantly = false; + this.MoveInstantlyRotationSave = false; + this.LeftMargin = 0.0f; + this.BottomMargin = 0.0f; + this.IgnoreEnemies = false; + this.UseRailPointCompensation = false; + } } diff --git a/SCHALE.Common/FlatData/CameraExcelTable.cs b/SCHALE.Common/FlatData/CameraExcelTable.cs deleted file mode 100644 index 51c6924..0000000 --- a/SCHALE.Common/FlatData/CameraExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct CameraExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CameraExcelTable GetRootAsCameraExcelTable(ByteBuffer _bb) { return GetRootAsCameraExcelTable(_bb, new CameraExcelTable()); } - public static CameraExcelTable GetRootAsCameraExcelTable(ByteBuffer _bb, CameraExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CameraExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.CameraExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CameraExcel?)(new SCHALE.Common.FlatData.CameraExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateCameraExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - CameraExcelTable.AddDataList(builder, DataListOffset); - return CameraExcelTable.EndCameraExcelTable(builder); - } - - public static void StartCameraExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndCameraExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class CameraExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CameraExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/CampaignChapterExcel.cs b/SCHALE.Common/FlatData/CampaignChapterExcel.cs index e09f6a5..7ac53ce 100644 --- a/SCHALE.Common/FlatData/CampaignChapterExcel.cs +++ b/SCHALE.Common/FlatData/CampaignChapterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignChapterExcel : IFlatbufferObject @@ -164,6 +165,115 @@ public struct CampaignChapterExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignChapterExcelT UnPack() { + var _o = new CampaignChapterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignChapterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignChapter"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.NormalImagePath = TableEncryptionService.Convert(this.NormalImagePath, key); + _o.HardImagePath = TableEncryptionService.Convert(this.HardImagePath, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.PreChapterId = new List(); + for (var _j = 0; _j < this.PreChapterIdLength; ++_j) {_o.PreChapterId.Add(TableEncryptionService.Convert(this.PreChapterId(_j), key));} + _o.ChapterRewardId = TableEncryptionService.Convert(this.ChapterRewardId, key); + _o.ChapterHardRewardId = TableEncryptionService.Convert(this.ChapterHardRewardId, key); + _o.ChapterVeryHardRewardId = TableEncryptionService.Convert(this.ChapterVeryHardRewardId, key); + _o.NormalCampaignStageId = new List(); + for (var _j = 0; _j < this.NormalCampaignStageIdLength; ++_j) {_o.NormalCampaignStageId.Add(TableEncryptionService.Convert(this.NormalCampaignStageId(_j), key));} + _o.NormalExtraStageId = new List(); + for (var _j = 0; _j < this.NormalExtraStageIdLength; ++_j) {_o.NormalExtraStageId.Add(TableEncryptionService.Convert(this.NormalExtraStageId(_j), key));} + _o.HardCampaignStageId = new List(); + for (var _j = 0; _j < this.HardCampaignStageIdLength; ++_j) {_o.HardCampaignStageId.Add(TableEncryptionService.Convert(this.HardCampaignStageId(_j), key));} + _o.VeryHardCampaignStageId = new List(); + for (var _j = 0; _j < this.VeryHardCampaignStageIdLength; ++_j) {_o.VeryHardCampaignStageId.Add(TableEncryptionService.Convert(this.VeryHardCampaignStageId(_j), key));} + _o.IsTacticSkip = TableEncryptionService.Convert(this.IsTacticSkip, key); + } + public static Offset Pack(FlatBufferBuilder builder, CampaignChapterExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _NormalImagePath = _o.NormalImagePath == null ? default(StringOffset) : builder.CreateString(_o.NormalImagePath); + var _HardImagePath = _o.HardImagePath == null ? default(StringOffset) : builder.CreateString(_o.HardImagePath); + var _PreChapterId = default(VectorOffset); + if (_o.PreChapterId != null) { + var __PreChapterId = _o.PreChapterId.ToArray(); + _PreChapterId = CreatePreChapterIdVector(builder, __PreChapterId); + } + var _NormalCampaignStageId = default(VectorOffset); + if (_o.NormalCampaignStageId != null) { + var __NormalCampaignStageId = _o.NormalCampaignStageId.ToArray(); + _NormalCampaignStageId = CreateNormalCampaignStageIdVector(builder, __NormalCampaignStageId); + } + var _NormalExtraStageId = default(VectorOffset); + if (_o.NormalExtraStageId != null) { + var __NormalExtraStageId = _o.NormalExtraStageId.ToArray(); + _NormalExtraStageId = CreateNormalExtraStageIdVector(builder, __NormalExtraStageId); + } + var _HardCampaignStageId = default(VectorOffset); + if (_o.HardCampaignStageId != null) { + var __HardCampaignStageId = _o.HardCampaignStageId.ToArray(); + _HardCampaignStageId = CreateHardCampaignStageIdVector(builder, __HardCampaignStageId); + } + var _VeryHardCampaignStageId = default(VectorOffset); + if (_o.VeryHardCampaignStageId != null) { + var __VeryHardCampaignStageId = _o.VeryHardCampaignStageId.ToArray(); + _VeryHardCampaignStageId = CreateVeryHardCampaignStageIdVector(builder, __VeryHardCampaignStageId); + } + return CreateCampaignChapterExcel( + builder, + _o.Id, + _Name, + _NormalImagePath, + _HardImagePath, + _o.Order, + _PreChapterId, + _o.ChapterRewardId, + _o.ChapterHardRewardId, + _o.ChapterVeryHardRewardId, + _NormalCampaignStageId, + _NormalExtraStageId, + _HardCampaignStageId, + _VeryHardCampaignStageId, + _o.IsTacticSkip); + } +} + +public class CampaignChapterExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + public string NormalImagePath { get; set; } + public string HardImagePath { get; set; } + public long Order { get; set; } + public List PreChapterId { get; set; } + public long ChapterRewardId { get; set; } + public long ChapterHardRewardId { get; set; } + public long ChapterVeryHardRewardId { get; set; } + public List NormalCampaignStageId { get; set; } + public List NormalExtraStageId { get; set; } + public List HardCampaignStageId { get; set; } + public List VeryHardCampaignStageId { get; set; } + public bool IsTacticSkip { get; set; } + + public CampaignChapterExcelT() { + this.Id = 0; + this.Name = null; + this.NormalImagePath = null; + this.HardImagePath = null; + this.Order = 0; + this.PreChapterId = null; + this.ChapterRewardId = 0; + this.ChapterHardRewardId = 0; + this.ChapterVeryHardRewardId = 0; + this.NormalCampaignStageId = null; + this.NormalExtraStageId = null; + this.HardCampaignStageId = null; + this.VeryHardCampaignStageId = null; + this.IsTacticSkip = false; + } } diff --git a/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs b/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs index 75f411b..10905f4 100644 --- a/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignChapterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignChapterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignChapterExcelTableT UnPack() { + var _o = new CampaignChapterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignChapterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignChapterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignChapterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignChapterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignChapterExcelTable( + builder, + _DataList); + } +} + +public class CampaignChapterExcelTableT +{ + public List DataList { get; set; } + + public CampaignChapterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs b/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs index c5279af..1fc3343 100644 --- a/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs +++ b/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignChapterRewardExcel : IFlatbufferObject @@ -86,6 +87,64 @@ public struct CampaignChapterRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignChapterRewardExcelT UnPack() { + var _o = new CampaignChapterRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignChapterRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignChapterReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CampaignChapterStar = TableEncryptionService.Convert(this.CampaignChapterStar, key); + _o.ChapterRewardParcelType = new List(); + for (var _j = 0; _j < this.ChapterRewardParcelTypeLength; ++_j) {_o.ChapterRewardParcelType.Add(TableEncryptionService.Convert(this.ChapterRewardParcelType(_j), key));} + _o.ChapterRewardId = new List(); + for (var _j = 0; _j < this.ChapterRewardIdLength; ++_j) {_o.ChapterRewardId.Add(TableEncryptionService.Convert(this.ChapterRewardId(_j), key));} + _o.ChapterRewardAmount = new List(); + for (var _j = 0; _j < this.ChapterRewardAmountLength; ++_j) {_o.ChapterRewardAmount.Add(TableEncryptionService.Convert(this.ChapterRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignChapterRewardExcelT _o) { + if (_o == null) return default(Offset); + var _ChapterRewardParcelType = default(VectorOffset); + if (_o.ChapterRewardParcelType != null) { + var __ChapterRewardParcelType = _o.ChapterRewardParcelType.ToArray(); + _ChapterRewardParcelType = CreateChapterRewardParcelTypeVector(builder, __ChapterRewardParcelType); + } + var _ChapterRewardId = default(VectorOffset); + if (_o.ChapterRewardId != null) { + var __ChapterRewardId = _o.ChapterRewardId.ToArray(); + _ChapterRewardId = CreateChapterRewardIdVector(builder, __ChapterRewardId); + } + var _ChapterRewardAmount = default(VectorOffset); + if (_o.ChapterRewardAmount != null) { + var __ChapterRewardAmount = _o.ChapterRewardAmount.ToArray(); + _ChapterRewardAmount = CreateChapterRewardAmountVector(builder, __ChapterRewardAmount); + } + return CreateCampaignChapterRewardExcel( + builder, + _o.Id, + _o.CampaignChapterStar, + _ChapterRewardParcelType, + _ChapterRewardId, + _ChapterRewardAmount); + } +} + +public class CampaignChapterRewardExcelT +{ + public long Id { get; set; } + public long CampaignChapterStar { get; set; } + public List ChapterRewardParcelType { get; set; } + public List ChapterRewardId { get; set; } + public List ChapterRewardAmount { get; set; } + + public CampaignChapterRewardExcelT() { + this.Id = 0; + this.CampaignChapterStar = 0; + this.ChapterRewardParcelType = null; + this.ChapterRewardId = null; + this.ChapterRewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs b/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs index f798018..0596dd4 100644 --- a/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignChapterRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignChapterRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignChapterRewardExcelTableT UnPack() { + var _o = new CampaignChapterRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignChapterRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignChapterRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignChapterRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignChapterRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignChapterRewardExcelTable( + builder, + _DataList); + } +} + +public class CampaignChapterRewardExcelTableT +{ + public List DataList { get; set; } + + public CampaignChapterRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignStageExcel.cs b/SCHALE.Common/FlatData/CampaignStageExcel.cs index 68da368..ab8bc42 100644 --- a/SCHALE.Common/FlatData/CampaignStageExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStageExcel : IFlatbufferObject @@ -86,18 +87,19 @@ public struct CampaignStageExcel : IFlatbufferObject public byte[] GetBgmIdArray() { return __p.__vector_as_array(44); } public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } public long GroundId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(50); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } - public long BGMId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string FirstClearReportEventName { get { int o = __p.__offset(54); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public int StrategySkipGroundId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long BGMId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string FirstClearReportEventName { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetFirstClearReportEventNameBytes() { return __p.__vector_as_span(54, 1); } + public Span GetFirstClearReportEventNameBytes() { return __p.__vector_as_span(56, 1); } #else - public ArraySegment? GetFirstClearReportEventNameBytes() { return __p.__vector_as_arraysegment(54); } + public ArraySegment? GetFirstClearReportEventNameBytes() { return __p.__vector_as_arraysegment(56); } #endif - public byte[] GetFirstClearReportEventNameArray() { return __p.__vector_as_array(54); } - public long TacticRewardExp { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FixedEchelonId { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + public byte[] GetFirstClearReportEventNameArray() { return __p.__vector_as_array(56); } + public long TacticRewardExp { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedEchelonId { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public static Offset CreateCampaignStageExcel(FlatBufferBuilder builder, long Id = 0, @@ -123,13 +125,14 @@ public struct CampaignStageExcel : IFlatbufferObject StringOffset BgmIdOffset = default(StringOffset), SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, long GroundId = 0, + int StrategySkipGroundId = 0, SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, long BGMId = 0, StringOffset FirstClearReportEventNameOffset = default(StringOffset), long TacticRewardExp = 0, long FixedEchelonId = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { - builder.StartTable(29); + builder.StartTable(30); CampaignStageExcel.AddFixedEchelonId(builder, FixedEchelonId); CampaignStageExcel.AddTacticRewardExp(builder, TacticRewardExp); CampaignStageExcel.AddBGMId(builder, BGMId); @@ -144,6 +147,7 @@ public struct CampaignStageExcel : IFlatbufferObject CampaignStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); CampaignStageExcel.AddFirstClearReportEventName(builder, FirstClearReportEventNameOffset); CampaignStageExcel.AddContentType(builder, ContentType); + CampaignStageExcel.AddStrategySkipGroundId(builder, StrategySkipGroundId); CampaignStageExcel.AddStrategyEnvironment(builder, StrategyEnvironment); CampaignStageExcel.AddBgmId(builder, BgmIdOffset); CampaignStageExcel.AddRecommandLevel(builder, RecommandLevel); @@ -162,7 +166,7 @@ public struct CampaignStageExcel : IFlatbufferObject return CampaignStageExcel.EndCampaignStageExcel(builder); } - public static void StartCampaignStageExcel(FlatBufferBuilder builder) { builder.StartTable(29); } + public static void StartCampaignStageExcel(FlatBufferBuilder builder) { builder.StartTable(30); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddDeprecated(FlatBufferBuilder builder, bool deprecated) { builder.AddBool(1, deprecated, false); } public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(2, nameOffset.Value, 0); } @@ -196,16 +200,175 @@ public struct CampaignStageExcel : IFlatbufferObject public static void AddBgmId(FlatBufferBuilder builder, StringOffset bgmIdOffset) { builder.AddOffset(20, bgmIdOffset.Value, 0); } public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(21, (int)strategyEnvironment, 0); } public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(22, groundId, 0); } - public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(23, (int)contentType, 0); } - public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(24, bGMId, 0); } - public static void AddFirstClearReportEventName(FlatBufferBuilder builder, StringOffset firstClearReportEventNameOffset) { builder.AddOffset(25, firstClearReportEventNameOffset.Value, 0); } - public static void AddTacticRewardExp(FlatBufferBuilder builder, long tacticRewardExp) { builder.AddLong(26, tacticRewardExp, 0); } - public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(27, fixedEchelonId, 0); } - public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(28, (int)echelonExtensionType, 0); } + public static void AddStrategySkipGroundId(FlatBufferBuilder builder, int strategySkipGroundId) { builder.AddInt(23, strategySkipGroundId, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(24, (int)contentType, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(25, bGMId, 0); } + public static void AddFirstClearReportEventName(FlatBufferBuilder builder, StringOffset firstClearReportEventNameOffset) { builder.AddOffset(26, firstClearReportEventNameOffset.Value, 0); } + public static void AddTacticRewardExp(FlatBufferBuilder builder, long tacticRewardExp) { builder.AddLong(27, tacticRewardExp, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(28, fixedEchelonId, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(29, (int)echelonExtensionType, 0); } public static Offset EndCampaignStageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public CampaignStageExcelT UnPack() { + var _o = new CampaignStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Deprecated = TableEncryptionService.Convert(this.Deprecated, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.StageNumber = TableEncryptionService.Convert(this.StageNumber, key); + _o.CleardScenarioId = TableEncryptionService.Convert(this.CleardScenarioId, 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.StageEnterEchelonCount = TableEncryptionService.Convert(this.StageEnterEchelonCount, key); + _o.StarConditionTacticRankSCount = TableEncryptionService.Convert(this.StarConditionTacticRankSCount, key); + _o.StarConditionTurnCount = TableEncryptionService.Convert(this.StarConditionTurnCount, key); + _o.EnterScenarioGroupId = new List(); + for (var _j = 0; _j < this.EnterScenarioGroupIdLength; ++_j) {_o.EnterScenarioGroupId.Add(TableEncryptionService.Convert(this.EnterScenarioGroupId(_j), key));} + _o.ClearScenarioGroupId = new List(); + for (var _j = 0; _j < this.ClearScenarioGroupIdLength; ++_j) {_o.ClearScenarioGroupId.Add(TableEncryptionService.Convert(this.ClearScenarioGroupId(_j), key));} + _o.StrategyMap = TableEncryptionService.Convert(this.StrategyMap, key); + _o.StrategyMapBG = TableEncryptionService.Convert(this.StrategyMapBG, key); + _o.CampaignStageRewardId = TableEncryptionService.Convert(this.CampaignStageRewardId, key); + _o.MaxTurn = TableEncryptionService.Convert(this.MaxTurn, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); + _o.StrategyEnvironment = TableEncryptionService.Convert(this.StrategyEnvironment, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.StrategySkipGroundId = TableEncryptionService.Convert(this.StrategySkipGroundId, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.FirstClearReportEventName = TableEncryptionService.Convert(this.FirstClearReportEventName, key); + _o.TacticRewardExp = TableEncryptionService.Convert(this.TacticRewardExp, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStageExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _StageNumber = _o.StageNumber == null ? default(StringOffset) : builder.CreateString(_o.StageNumber); + var _EnterScenarioGroupId = default(VectorOffset); + if (_o.EnterScenarioGroupId != null) { + var __EnterScenarioGroupId = _o.EnterScenarioGroupId.ToArray(); + _EnterScenarioGroupId = CreateEnterScenarioGroupIdVector(builder, __EnterScenarioGroupId); + } + var _ClearScenarioGroupId = default(VectorOffset); + if (_o.ClearScenarioGroupId != null) { + var __ClearScenarioGroupId = _o.ClearScenarioGroupId.ToArray(); + _ClearScenarioGroupId = CreateClearScenarioGroupIdVector(builder, __ClearScenarioGroupId); + } + var _StrategyMap = _o.StrategyMap == null ? default(StringOffset) : builder.CreateString(_o.StrategyMap); + var _StrategyMapBG = _o.StrategyMapBG == null ? default(StringOffset) : builder.CreateString(_o.StrategyMapBG); + var _BgmId = _o.BgmId == null ? default(StringOffset) : builder.CreateString(_o.BgmId); + var _FirstClearReportEventName = _o.FirstClearReportEventName == null ? default(StringOffset) : builder.CreateString(_o.FirstClearReportEventName); + return CreateCampaignStageExcel( + builder, + _o.Id, + _o.Deprecated, + _Name, + _StageNumber, + _o.CleardScenarioId, + _o.BattleDuration, + _o.StageEnterCostType, + _o.StageEnterCostId, + _o.StageEnterCostAmount, + _o.StageEnterEchelonCount, + _o.StarConditionTacticRankSCount, + _o.StarConditionTurnCount, + _EnterScenarioGroupId, + _ClearScenarioGroupId, + _StrategyMap, + _StrategyMapBG, + _o.CampaignStageRewardId, + _o.MaxTurn, + _o.StageTopography, + _o.RecommandLevel, + _BgmId, + _o.StrategyEnvironment, + _o.GroundId, + _o.StrategySkipGroundId, + _o.ContentType, + _o.BGMId, + _FirstClearReportEventName, + _o.TacticRewardExp, + _o.FixedEchelonId, + _o.EchelonExtensionType); + } +} + +public class CampaignStageExcelT +{ + public long Id { get; set; } + public bool Deprecated { get; set; } + public string Name { get; set; } + public string StageNumber { get; set; } + public long CleardScenarioId { 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 int StageEnterEchelonCount { get; set; } + public long StarConditionTacticRankSCount { get; set; } + public long StarConditionTurnCount { get; set; } + public List EnterScenarioGroupId { get; set; } + public List ClearScenarioGroupId { get; set; } + public string StrategyMap { get; set; } + public string StrategyMapBG { get; set; } + public long CampaignStageRewardId { get; set; } + public int MaxTurn { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public int RecommandLevel { get; set; } + public string BgmId { get; set; } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get; set; } + public long GroundId { get; set; } + public int StrategySkipGroundId { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long BGMId { get; set; } + public string FirstClearReportEventName { get; set; } + public long TacticRewardExp { get; set; } + public long FixedEchelonId { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public CampaignStageExcelT() { + this.Id = 0; + this.Deprecated = false; + this.Name = null; + this.StageNumber = null; + this.CleardScenarioId = 0; + this.BattleDuration = 0; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostId = 0; + this.StageEnterCostAmount = 0; + this.StageEnterEchelonCount = 0; + this.StarConditionTacticRankSCount = 0; + this.StarConditionTurnCount = 0; + this.EnterScenarioGroupId = null; + this.ClearScenarioGroupId = null; + this.StrategyMap = null; + this.StrategyMapBG = null; + this.CampaignStageRewardId = 0; + this.MaxTurn = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.BgmId = null; + this.StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.GroundId = 0; + this.StrategySkipGroundId = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.BGMId = 0; + this.FirstClearReportEventName = null; + this.TacticRewardExp = 0; + this.FixedEchelonId = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } @@ -237,12 +400,13 @@ static public class CampaignStageExcelVerify && verifier.VerifyString(tablePos, 44 /*BgmId*/, false) && verifier.VerifyField(tablePos, 46 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) && verifier.VerifyField(tablePos, 48 /*GroundId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 50 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) - && verifier.VerifyField(tablePos, 52 /*BGMId*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 54 /*FirstClearReportEventName*/, false) - && verifier.VerifyField(tablePos, 56 /*TacticRewardExp*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 58 /*FixedEchelonId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 60 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*StrategySkipGroundId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 56 /*FirstClearReportEventName*/, false) + && verifier.VerifyField(tablePos, 58 /*TacticRewardExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/CampaignStageExcelTable.cs b/SCHALE.Common/FlatData/CampaignStageExcelTable.cs index 1466bd9..df2b8cc 100644 --- a/SCHALE.Common/FlatData/CampaignStageExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignStageExcelTableT UnPack() { + var _o = new CampaignStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignStageExcelTable( + builder, + _DataList); + } +} + +public class CampaignStageExcelTableT +{ + public List DataList { get; set; } + + public CampaignStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs index 2d1dee3..3610b22 100644 --- a/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStageRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct CampaignStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignStageRewardExcelT UnPack() { + var _o = new CampaignStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.StageRewardProb = TableEncryptionService.Convert(this.StageRewardProb, key); + _o.StageRewardParcelType = TableEncryptionService.Convert(this.StageRewardParcelType, key); + _o.StageRewardId = TableEncryptionService.Convert(this.StageRewardId, key); + _o.StageRewardAmount = TableEncryptionService.Convert(this.StageRewardAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStageRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateCampaignStageRewardExcel( + builder, + _o.GroupId, + _o.RewardTag, + _o.StageRewardProb, + _o.StageRewardParcelType, + _o.StageRewardId, + _o.StageRewardAmount, + _o.IsDisplayed); + } +} + +public class CampaignStageRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int StageRewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType StageRewardParcelType { get; set; } + public long StageRewardId { get; set; } + public int StageRewardAmount { get; set; } + public bool IsDisplayed { get; set; } + + public CampaignStageRewardExcelT() { + this.GroupId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.StageRewardProb = 0; + this.StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.StageRewardId = 0; + this.StageRewardAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs b/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs index f102fa9..588312d 100644 --- a/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignStageRewardExcelTableT UnPack() { + var _o = new CampaignStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignStageRewardExcelTable( + builder, + _DataList); + } +} + +public class CampaignStageRewardExcelTableT +{ + public List DataList { get; set; } + + public CampaignStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs index 60b7ebd..736c95e 100644 --- a/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStrategyObjectExcel : IFlatbufferObject @@ -108,6 +109,89 @@ public struct CampaignStrategyObjectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignStrategyObjectExcelT UnPack() { + var _o = new CampaignStrategyObjectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStrategyObjectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStrategyObject"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.StrategyObjectType = TableEncryptionService.Convert(this.StrategyObjectType, key); + _o.StrategyRewardParcelType = TableEncryptionService.Convert(this.StrategyRewardParcelType, key); + _o.StrategyRewardID = TableEncryptionService.Convert(this.StrategyRewardID, key); + _o.StrategyRewardName = TableEncryptionService.Convert(this.StrategyRewardName, key); + _o.StrategyRewardAmount = TableEncryptionService.Convert(this.StrategyRewardAmount, key); + _o.StrategySightRange = TableEncryptionService.Convert(this.StrategySightRange, key); + _o.PortalId = TableEncryptionService.Convert(this.PortalId, key); + _o.HealValue = TableEncryptionService.Convert(this.HealValue, key); + _o.SwithId = TableEncryptionService.Convert(this.SwithId, key); + _o.BuffId = TableEncryptionService.Convert(this.BuffId, key); + _o.Disposable = TableEncryptionService.Convert(this.Disposable, key); + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStrategyObjectExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _StrategyRewardName = _o.StrategyRewardName == null ? default(StringOffset) : builder.CreateString(_o.StrategyRewardName); + return CreateCampaignStrategyObjectExcel( + builder, + _o.Id, + _o.Key, + _Name, + _PrefabName, + _o.StrategyObjectType, + _o.StrategyRewardParcelType, + _o.StrategyRewardID, + _StrategyRewardName, + _o.StrategyRewardAmount, + _o.StrategySightRange, + _o.PortalId, + _o.HealValue, + _o.SwithId, + _o.BuffId, + _o.Disposable); + } +} + +public class CampaignStrategyObjectExcelT +{ + public long Id { get; set; } + public uint Key { get; set; } + public string Name { get; set; } + public string PrefabName { get; set; } + public SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType { get; set; } + public SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType { get; set; } + public long StrategyRewardID { get; set; } + public string StrategyRewardName { get; set; } + public int StrategyRewardAmount { get; set; } + public long StrategySightRange { get; set; } + public int PortalId { get; set; } + public int HealValue { get; set; } + public int SwithId { get; set; } + public int BuffId { get; set; } + public bool Disposable { get; set; } + + public CampaignStrategyObjectExcelT() { + this.Id = 0; + this.Key = 0; + this.Name = null; + this.PrefabName = null; + this.StrategyObjectType = SCHALE.Common.FlatData.StrategyObjectType.None; + this.StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.StrategyRewardID = 0; + this.StrategyRewardName = null; + this.StrategyRewardAmount = 0; + this.StrategySightRange = 0; + this.PortalId = 0; + this.HealValue = 0; + this.SwithId = 0; + this.BuffId = 0; + this.Disposable = false; + } } diff --git a/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs b/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs index e85f4ba..bdd6440 100644 --- a/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignStrategyObjectExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignStrategyObjectExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignStrategyObjectExcelTableT UnPack() { + var _o = new CampaignStrategyObjectExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignStrategyObjectExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignStrategyObjectExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignStrategyObjectExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignStrategyObjectExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignStrategyObjectExcelTable( + builder, + _DataList); + } +} + +public class CampaignStrategyObjectExcelTableT +{ + public List DataList { get; set; } + + public CampaignStrategyObjectExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CampaignUnitExcel.cs b/SCHALE.Common/FlatData/CampaignUnitExcel.cs index aacc6ad..f325d8d 100644 --- a/SCHALE.Common/FlatData/CampaignUnitExcel.cs +++ b/SCHALE.Common/FlatData/CampaignUnitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignUnitExcel : IFlatbufferObject @@ -128,6 +129,97 @@ public struct CampaignUnitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignUnitExcelT UnPack() { + var _o = new CampaignUnitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignUnitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignUnit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.StrategyPrefabName = TableEncryptionService.Convert(this.StrategyPrefabName, key); + _o.EnterScenarioGroupId = new List(); + for (var _j = 0; _j < this.EnterScenarioGroupIdLength; ++_j) {_o.EnterScenarioGroupId.Add(TableEncryptionService.Convert(this.EnterScenarioGroupId(_j), key));} + _o.ClearScenarioGroupId = new List(); + for (var _j = 0; _j < this.ClearScenarioGroupIdLength; ++_j) {_o.ClearScenarioGroupId.Add(TableEncryptionService.Convert(this.ClearScenarioGroupId(_j), key));} + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.MoveRange = TableEncryptionService.Convert(this.MoveRange, key); + _o.AIMoveType = TableEncryptionService.Convert(this.AIMoveType, key); + _o.Grade = TableEncryptionService.Convert(this.Grade, key); + _o.EnvironmentType = TableEncryptionService.Convert(this.EnvironmentType, key); + _o.Scale = TableEncryptionService.Convert(this.Scale, key); + _o.IsTacticSkip = TableEncryptionService.Convert(this.IsTacticSkip, key); + } + public static Offset Pack(FlatBufferBuilder builder, CampaignUnitExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _StrategyPrefabName = _o.StrategyPrefabName == null ? default(StringOffset) : builder.CreateString(_o.StrategyPrefabName); + var _EnterScenarioGroupId = default(VectorOffset); + if (_o.EnterScenarioGroupId != null) { + var __EnterScenarioGroupId = _o.EnterScenarioGroupId.ToArray(); + _EnterScenarioGroupId = CreateEnterScenarioGroupIdVector(builder, __EnterScenarioGroupId); + } + var _ClearScenarioGroupId = default(VectorOffset); + if (_o.ClearScenarioGroupId != null) { + var __ClearScenarioGroupId = _o.ClearScenarioGroupId.ToArray(); + _ClearScenarioGroupId = CreateClearScenarioGroupIdVector(builder, __ClearScenarioGroupId); + } + return CreateCampaignUnitExcel( + builder, + _o.Id, + _o.Key, + _Name, + _PrefabName, + _StrategyPrefabName, + _EnterScenarioGroupId, + _ClearScenarioGroupId, + _o.GroundId, + _o.MoveRange, + _o.AIMoveType, + _o.Grade, + _o.EnvironmentType, + _o.Scale, + _o.IsTacticSkip); + } +} + +public class CampaignUnitExcelT +{ + public long Id { get; set; } + public uint Key { get; set; } + public string Name { get; set; } + public string PrefabName { get; set; } + public string StrategyPrefabName { get; set; } + public List EnterScenarioGroupId { get; set; } + public List ClearScenarioGroupId { get; set; } + public long GroundId { get; set; } + public int MoveRange { get; set; } + public SCHALE.Common.FlatData.StrategyAIType AIMoveType { get; set; } + public SCHALE.Common.FlatData.HexaUnitGrade Grade { get; set; } + public SCHALE.Common.FlatData.TacticEnvironment EnvironmentType { get; set; } + public float Scale { get; set; } + public bool IsTacticSkip { get; set; } + + public CampaignUnitExcelT() { + this.Id = 0; + this.Key = 0; + this.Name = null; + this.PrefabName = null; + this.StrategyPrefabName = null; + this.EnterScenarioGroupId = null; + this.ClearScenarioGroupId = null; + this.GroundId = 0; + this.MoveRange = 0; + this.AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None; + this.Grade = SCHALE.Common.FlatData.HexaUnitGrade.Grade1; + this.EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None; + this.Scale = 0.0f; + this.IsTacticSkip = false; + } } diff --git a/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs b/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs index 1bdc362..8cda6e4 100644 --- a/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs +++ b/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CampaignUnitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CampaignUnitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CampaignUnitExcelTableT UnPack() { + var _o = new CampaignUnitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CampaignUnitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CampaignUnitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CampaignUnitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CampaignUnitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCampaignUnitExcelTable( + builder, + _DataList); + } +} + +public class CampaignUnitExcelTableT +{ + public List DataList { get; set; } + + public CampaignUnitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterAIExcel.cs b/SCHALE.Common/FlatData/CharacterAIExcel.cs index 3bc963c..a04a56c 100644 --- a/SCHALE.Common/FlatData/CharacterAIExcel.cs +++ b/SCHALE.Common/FlatData/CharacterAIExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterAIExcel : IFlatbufferObject @@ -78,6 +79,74 @@ public struct CharacterAIExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterAIExcelT UnPack() { + var _o = new CharacterAIExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterAIExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterAI"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EngageType = TableEncryptionService.Convert(this.EngageType, key); + _o.Positioning = TableEncryptionService.Convert(this.Positioning, key); + _o.CheckCanUseAutoSkill = TableEncryptionService.Convert(this.CheckCanUseAutoSkill, key); + _o.DistanceReduceRatioObstaclePath = TableEncryptionService.Convert(this.DistanceReduceRatioObstaclePath, key); + _o.DistanceReduceObstaclePath = TableEncryptionService.Convert(this.DistanceReduceObstaclePath, key); + _o.DistanceReduceRatioFormationPath = TableEncryptionService.Convert(this.DistanceReduceRatioFormationPath, key); + _o.DistanceReduceFormationPath = TableEncryptionService.Convert(this.DistanceReduceFormationPath, key); + _o.MinimumPositionGap = TableEncryptionService.Convert(this.MinimumPositionGap, key); + _o.CanUseObstacleOfKneelMotion = TableEncryptionService.Convert(this.CanUseObstacleOfKneelMotion, key); + _o.CanUseObstacleOfStandMotion = TableEncryptionService.Convert(this.CanUseObstacleOfStandMotion, key); + _o.HasTargetSwitchingMotion = TableEncryptionService.Convert(this.HasTargetSwitchingMotion, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterAIExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterAIExcel( + builder, + _o.Id, + _o.EngageType, + _o.Positioning, + _o.CheckCanUseAutoSkill, + _o.DistanceReduceRatioObstaclePath, + _o.DistanceReduceObstaclePath, + _o.DistanceReduceRatioFormationPath, + _o.DistanceReduceFormationPath, + _o.MinimumPositionGap, + _o.CanUseObstacleOfKneelMotion, + _o.CanUseObstacleOfStandMotion, + _o.HasTargetSwitchingMotion); + } +} + +public class CharacterAIExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.EngageType EngageType { get; set; } + public SCHALE.Common.FlatData.PositioningType Positioning { get; set; } + public bool CheckCanUseAutoSkill { get; set; } + public long DistanceReduceRatioObstaclePath { get; set; } + public long DistanceReduceObstaclePath { get; set; } + public long DistanceReduceRatioFormationPath { get; set; } + public long DistanceReduceFormationPath { get; set; } + public long MinimumPositionGap { get; set; } + public bool CanUseObstacleOfKneelMotion { get; set; } + public bool CanUseObstacleOfStandMotion { get; set; } + public bool HasTargetSwitchingMotion { get; set; } + + public CharacterAIExcelT() { + this.Id = 0; + this.EngageType = SCHALE.Common.FlatData.EngageType.SearchAndMove; + this.Positioning = SCHALE.Common.FlatData.PositioningType.CloseToObstacle; + this.CheckCanUseAutoSkill = false; + this.DistanceReduceRatioObstaclePath = 0; + this.DistanceReduceObstaclePath = 0; + this.DistanceReduceRatioFormationPath = 0; + this.DistanceReduceFormationPath = 0; + this.MinimumPositionGap = 0; + this.CanUseObstacleOfKneelMotion = false; + this.CanUseObstacleOfStandMotion = false; + this.HasTargetSwitchingMotion = false; + } } diff --git a/SCHALE.Common/FlatData/CharacterAIExcelTable.cs b/SCHALE.Common/FlatData/CharacterAIExcelTable.cs index bd2849b..b053703 100644 --- a/SCHALE.Common/FlatData/CharacterAIExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterAIExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterAIExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterAIExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterAIExcelTableT UnPack() { + var _o = new CharacterAIExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterAIExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterAIExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterAIExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterAIExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterAIExcelTable( + builder, + _DataList); + } +} + +public class CharacterAIExcelTableT +{ + public List DataList { get; set; } + + public CharacterAIExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs b/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs index 036631f..adb1aa7 100644 --- a/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs +++ b/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterAcademyTagsExcel : IFlatbufferObject @@ -114,6 +115,80 @@ public struct CharacterAcademyTagsExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterAcademyTagsExcelT UnPack() { + var _o = new CharacterAcademyTagsExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterAcademyTagsExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterAcademyTags"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.FavorTags = new List(); + for (var _j = 0; _j < this.FavorTagsLength; ++_j) {_o.FavorTags.Add(TableEncryptionService.Convert(this.FavorTags(_j), key));} + _o.FavorItemTags = new List(); + for (var _j = 0; _j < this.FavorItemTagsLength; ++_j) {_o.FavorItemTags.Add(TableEncryptionService.Convert(this.FavorItemTags(_j), key));} + _o.FavorItemUniqueTags = new List(); + for (var _j = 0; _j < this.FavorItemUniqueTagsLength; ++_j) {_o.FavorItemUniqueTags.Add(TableEncryptionService.Convert(this.FavorItemUniqueTags(_j), key));} + _o.ForbiddenTags = new List(); + for (var _j = 0; _j < this.ForbiddenTagsLength; ++_j) {_o.ForbiddenTags.Add(TableEncryptionService.Convert(this.ForbiddenTags(_j), key));} + _o.ZoneWhiteListTags = new List(); + for (var _j = 0; _j < this.ZoneWhiteListTagsLength; ++_j) {_o.ZoneWhiteListTags.Add(TableEncryptionService.Convert(this.ZoneWhiteListTags(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterAcademyTagsExcelT _o) { + if (_o == null) return default(Offset); + var _FavorTags = default(VectorOffset); + if (_o.FavorTags != null) { + var __FavorTags = _o.FavorTags.ToArray(); + _FavorTags = CreateFavorTagsVector(builder, __FavorTags); + } + var _FavorItemTags = default(VectorOffset); + if (_o.FavorItemTags != null) { + var __FavorItemTags = _o.FavorItemTags.ToArray(); + _FavorItemTags = CreateFavorItemTagsVector(builder, __FavorItemTags); + } + var _FavorItemUniqueTags = default(VectorOffset); + if (_o.FavorItemUniqueTags != null) { + var __FavorItemUniqueTags = _o.FavorItemUniqueTags.ToArray(); + _FavorItemUniqueTags = CreateFavorItemUniqueTagsVector(builder, __FavorItemUniqueTags); + } + var _ForbiddenTags = default(VectorOffset); + if (_o.ForbiddenTags != null) { + var __ForbiddenTags = _o.ForbiddenTags.ToArray(); + _ForbiddenTags = CreateForbiddenTagsVector(builder, __ForbiddenTags); + } + var _ZoneWhiteListTags = default(VectorOffset); + if (_o.ZoneWhiteListTags != null) { + var __ZoneWhiteListTags = _o.ZoneWhiteListTags.ToArray(); + _ZoneWhiteListTags = CreateZoneWhiteListTagsVector(builder, __ZoneWhiteListTags); + } + return CreateCharacterAcademyTagsExcel( + builder, + _o.Id, + _FavorTags, + _FavorItemTags, + _FavorItemUniqueTags, + _ForbiddenTags, + _ZoneWhiteListTags); + } +} + +public class CharacterAcademyTagsExcelT +{ + public long Id { get; set; } + public List FavorTags { get; set; } + public List FavorItemTags { get; set; } + public List FavorItemUniqueTags { get; set; } + public List ForbiddenTags { get; set; } + public List ZoneWhiteListTags { get; set; } + + public CharacterAcademyTagsExcelT() { + this.Id = 0; + this.FavorTags = null; + this.FavorItemTags = null; + this.FavorItemUniqueTags = null; + this.ForbiddenTags = null; + this.ZoneWhiteListTags = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs b/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs index 7c38456..1bcc301 100644 --- a/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterAcademyTagsExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterAcademyTagsExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterAcademyTagsExcelTableT UnPack() { + var _o = new CharacterAcademyTagsExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterAcademyTagsExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterAcademyTagsExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterAcademyTagsExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterAcademyTagsExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterAcademyTagsExcelTable( + builder, + _DataList); + } +} + +public class CharacterAcademyTagsExcelTableT +{ + public List DataList { get; set; } + + public CharacterAcademyTagsExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs index e3d4a8f..f826970 100644 --- a/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs +++ b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterCalculationLimitExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct CharacterCalculationLimitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterCalculationLimitExcelT UnPack() { + var _o = new CharacterCalculationLimitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterCalculationLimitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterCalculationLimit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TacticEntityType = TableEncryptionService.Convert(this.TacticEntityType, key); + _o.CalculationValue = TableEncryptionService.Convert(this.CalculationValue, key); + _o.MinValue = TableEncryptionService.Convert(this.MinValue, key); + _o.MaxValue = TableEncryptionService.Convert(this.MaxValue, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterCalculationLimitExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterCalculationLimitExcel( + builder, + _o.Id, + _o.TacticEntityType, + _o.CalculationValue, + _o.MinValue, + _o.MaxValue); + } +} + +public class CharacterCalculationLimitExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get; set; } + public SCHALE.Common.FlatData.BattleCalculationStat CalculationValue { get; set; } + public long MinValue { get; set; } + public long MaxValue { get; set; } + + public CharacterCalculationLimitExcelT() { + this.Id = 0; + this.TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None; + this.CalculationValue = SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage; + this.MinValue = 0; + this.MaxValue = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs b/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs index 19be764..780d2af 100644 --- a/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterCalculationLimitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterCalculationLimitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterCalculationLimitExcelTableT UnPack() { + var _o = new CharacterCalculationLimitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterCalculationLimitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterCalculationLimitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterCalculationLimitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterCalculationLimitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterCalculationLimitExcelTable( + builder, + _DataList); + } +} + +public class CharacterCalculationLimitExcelTableT +{ + public List DataList { get; set; } + + public CharacterCalculationLimitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs b/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs index ebd67a0..9a82b7a 100644 --- a/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs +++ b/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterCombatSkinExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct CharacterCombatSkinExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterCombatSkinExcelT UnPack() { + var _o = new CharacterCombatSkinExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterCombatSkinExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterCombatSkin"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.ResourcePath = TableEncryptionService.Convert(this.ResourcePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterCombatSkinExcelT _o) { + if (_o == null) return default(Offset); + var _GroupId = _o.GroupId == null ? default(StringOffset) : builder.CreateString(_o.GroupId); + var _ResourcePath = _o.ResourcePath == null ? default(StringOffset) : builder.CreateString(_o.ResourcePath); + return CreateCharacterCombatSkinExcel( + builder, + _GroupId, + _o.UniqueId, + _ResourcePath); + } +} + +public class CharacterCombatSkinExcelT +{ + public string GroupId { get; set; } + public long UniqueId { get; set; } + public string ResourcePath { get; set; } + + public CharacterCombatSkinExcelT() { + this.GroupId = null; + this.UniqueId = 0; + this.ResourcePath = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs b/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs index c573024..915a59f 100644 --- a/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterCombatSkinExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterCombatSkinExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterCombatSkinExcelTableT UnPack() { + var _o = new CharacterCombatSkinExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterCombatSkinExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterCombatSkinExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterCombatSkinExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterCombatSkinExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterCombatSkinExcelTable( + builder, + _DataList); + } +} + +public class CharacterCombatSkinExcelTableT +{ + public List DataList { get; set; } + + public CharacterCombatSkinExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs index 78d6040..1ccd8a1 100644 --- a/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterDialogEventExcel : IFlatbufferObject @@ -160,6 +161,125 @@ public struct CharacterDialogEventExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterDialogEventExcelT UnPack() { + var _o = new CharacterDialogEventExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterDialogEventExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterDialogEvent"); + _o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key); + _o.OriginalCharacterId = TableEncryptionService.Convert(this.OriginalCharacterId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.EventID = TableEncryptionService.Convert(this.EventID, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.DialogCategory = TableEncryptionService.Convert(this.DialogCategory, key); + _o.DialogCondition = TableEncryptionService.Convert(this.DialogCondition, key); + _o.DialogConditionDetail = TableEncryptionService.Convert(this.DialogConditionDetail, key); + _o.DialogConditionDetailValue = TableEncryptionService.Convert(this.DialogConditionDetailValue, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.DialogType = TableEncryptionService.Convert(this.DialogType, key); + _o.ActionName = TableEncryptionService.Convert(this.ActionName, key); + _o.Duration = TableEncryptionService.Convert(this.Duration, key); + _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); + _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); + _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); + _o.VoiceId = new List(); + for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} + _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); + _o.CVCollectionType = TableEncryptionService.Convert(this.CVCollectionType, key); + _o.UnlockEventSeason = TableEncryptionService.Convert(this.UnlockEventSeason, key); + _o.ScenarioGroupId = TableEncryptionService.Convert(this.ScenarioGroupId, key); + _o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterDialogEventExcelT _o) { + if (_o == null) return default(Offset); + 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); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup); + return CreateCharacterDialogEventExcel( + builder, + _o.CostumeUniqueId, + _o.OriginalCharacterId, + _o.DisplayOrder, + _o.EventID, + _o.ProductionStep, + _o.DialogCategory, + _o.DialogCondition, + _o.DialogConditionDetail, + _o.DialogConditionDetailValue, + _o.GroupId, + _o.DialogType, + _ActionName, + _o.Duration, + _AnimationName, + _LocalizeKR, + _LocalizeJP, + _VoiceId, + _o.CollectionVisible, + _o.CVCollectionType, + _o.UnlockEventSeason, + _o.ScenarioGroupId, + _LocalizeCVGroup); + } +} + +public class CharacterDialogEventExcelT +{ + public long CostumeUniqueId { get; set; } + public long OriginalCharacterId { get; set; } + public long DisplayOrder { get; set; } + public long EventID { get; set; } + 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.DialogConditionDetail DialogConditionDetail { get; set; } + public long DialogConditionDetailValue { get; set; } + public long GroupId { get; set; } + public SCHALE.Common.FlatData.DialogType DialogType { get; set; } + public string ActionName { get; set; } + public long Duration { get; set; } + public string AnimationName { get; set; } + public string LocalizeKR { get; set; } + public string LocalizeJP { get; set; } + public List VoiceId { get; set; } + public bool CollectionVisible { get; set; } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get; set; } + public long UnlockEventSeason { get; set; } + public long ScenarioGroupId { get; set; } + public string LocalizeCVGroup { get; set; } + + public CharacterDialogEventExcelT() { + this.CostumeUniqueId = 0; + this.OriginalCharacterId = 0; + this.DisplayOrder = 0; + this.EventID = 0; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe; + this.DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle; + this.DialogConditionDetail = SCHALE.Common.FlatData.DialogConditionDetail.None; + this.DialogConditionDetailValue = 0; + this.GroupId = 0; + this.DialogType = SCHALE.Common.FlatData.DialogType.Talk; + this.ActionName = null; + this.Duration = 0; + this.AnimationName = null; + this.LocalizeKR = null; + this.LocalizeJP = null; + this.VoiceId = null; + this.CollectionVisible = false; + this.CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal; + this.UnlockEventSeason = 0; + this.ScenarioGroupId = 0; + this.LocalizeCVGroup = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterDialogExcel.cs b/SCHALE.Common/FlatData/CharacterDialogExcel.cs index b2621e7..fc21cd0 100644 --- a/SCHALE.Common/FlatData/CharacterDialogExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterDialogExcel : IFlatbufferObject @@ -184,6 +185,139 @@ public struct CharacterDialogExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + 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); + _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); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.DialogType = TableEncryptionService.Convert(this.DialogType, key); + _o.ActionName = TableEncryptionService.Convert(this.ActionName, key); + _o.Duration = TableEncryptionService.Convert(this.Duration, key); + _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); + _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); + _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); + _o.VoiceId = new List(); + 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); + _o.CVCollectionType = TableEncryptionService.Convert(this.CVCollectionType, key); + _o.UnlockFavorRank = TableEncryptionService.Convert(this.UnlockFavorRank, key); + _o.UnlockEquipWeapon = TableEncryptionService.Convert(this.UnlockEquipWeapon, key); + _o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterDialogExcelT _o) { + if (_o == null) return default(Offset); + 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); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup); + return CreateCharacterDialogExcel( + builder, + _o.CharacterId, + _o.CostumeUniqueId, + _o.DisplayOrder, + _o.ProductionStep, + _o.DialogCategory, + _o.DialogCondition, + _o.Anniversary, + _StartDate, + _EndDate, + _o.GroupId, + _o.DialogType, + _ActionName, + _o.Duration, + _AnimationName, + _LocalizeKR, + _LocalizeJP, + _VoiceId, + _o.ApplyPosition, + _o.PosX, + _o.PosY, + _o.CollectionVisible, + _o.CVCollectionType, + _o.UnlockFavorRank, + _o.UnlockEquipWeapon, + _LocalizeCVGroup); + } +} + +public class CharacterDialogExcelT +{ + public long CharacterId { get; set; } + public long CostumeUniqueId { get; set; } + public long DisplayOrder { get; set; } + 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; } + public string StartDate { get; set; } + public string EndDate { get; set; } + public long GroupId { get; set; } + public SCHALE.Common.FlatData.DialogType DialogType { get; set; } + public string ActionName { get; set; } + public long Duration { get; set; } + public string AnimationName { get; set; } + public string LocalizeKR { get; set; } + public string LocalizeJP { get; set; } + public List VoiceId { get; set; } + public bool ApplyPosition { get; set; } + public float PosX { get; set; } + public float PosY { get; set; } + public bool CollectionVisible { get; set; } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get; set; } + public long UnlockFavorRank { get; set; } + public bool UnlockEquipWeapon { get; set; } + public string LocalizeCVGroup { get; set; } + + public CharacterDialogExcelT() { + this.CharacterId = 0; + this.CostumeUniqueId = 0; + this.DisplayOrder = 0; + 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; + this.StartDate = null; + this.EndDate = null; + this.GroupId = 0; + this.DialogType = SCHALE.Common.FlatData.DialogType.Talk; + this.ActionName = null; + this.Duration = 0; + this.AnimationName = null; + this.LocalizeKR = null; + this.LocalizeJP = null; + this.VoiceId = null; + this.ApplyPosition = false; + this.PosX = 0.0f; + this.PosY = 0.0f; + this.CollectionVisible = false; + this.CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal; + this.UnlockFavorRank = 0; + this.UnlockEquipWeapon = false; + this.LocalizeCVGroup = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs index 94e017d..e2e87f7 100644 --- a/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterDialogFieldExcel : IFlatbufferObject @@ -88,6 +89,69 @@ public struct CharacterDialogFieldExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterDialogFieldExcelT UnPack() { + var _o = new CharacterDialogFieldExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterDialogFieldExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterDialogField"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.Phase = TableEncryptionService.Convert(this.Phase, key); + _o.TargetIndex = TableEncryptionService.Convert(this.TargetIndex, key); + _o.DialogType = TableEncryptionService.Convert(this.DialogType, key); + _o.Duration = TableEncryptionService.Convert(this.Duration, key); + _o.MotionName = TableEncryptionService.Convert(this.MotionName, key); + _o.IsInteractionDialog = TableEncryptionService.Convert(this.IsInteractionDialog, key); + _o.HideUI = TableEncryptionService.Convert(this.HideUI, key); + _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); + _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterDialogFieldExcelT _o) { + if (_o == null) return default(Offset); + var _MotionName = _o.MotionName == null ? default(StringOffset) : builder.CreateString(_o.MotionName); + var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR); + var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP); + return CreateCharacterDialogFieldExcel( + builder, + _o.GroupId, + _o.Phase, + _o.TargetIndex, + _o.DialogType, + _o.Duration, + _MotionName, + _o.IsInteractionDialog, + _o.HideUI, + _LocalizeKR, + _LocalizeJP); + } +} + +public class CharacterDialogFieldExcelT +{ + public long GroupId { get; set; } + public int Phase { get; set; } + public int TargetIndex { get; set; } + public SCHALE.Common.FlatData.FieldDialogType DialogType { get; set; } + public long Duration { get; set; } + public string MotionName { get; set; } + public bool IsInteractionDialog { get; set; } + public bool HideUI { get; set; } + public string LocalizeKR { get; set; } + public string LocalizeJP { get; set; } + + public CharacterDialogFieldExcelT() { + this.GroupId = 0; + this.Phase = 0; + this.TargetIndex = 0; + this.DialogType = SCHALE.Common.FlatData.FieldDialogType.None; + this.Duration = 0; + this.MotionName = null; + this.IsInteractionDialog = false; + this.HideUI = false; + this.LocalizeKR = null; + this.LocalizeJP = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs b/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs index 5a38332..4a2edd7 100644 --- a/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterDialogFieldExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterDialogFieldExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterDialogFieldExcelTableT UnPack() { + var _o = new CharacterDialogFieldExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterDialogFieldExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterDialogFieldExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterDialogFieldExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterDialogFieldExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterDialogFieldExcelTable( + builder, + _DataList); + } +} + +public class CharacterDialogFieldExcelTableT +{ + public List DataList { get; set; } + + public CharacterDialogFieldExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterExcel.cs b/SCHALE.Common/FlatData/CharacterExcel.cs index f367e96..c4d5e24 100644 --- a/SCHALE.Common/FlatData/CharacterExcel.cs +++ b/SCHALE.Common/FlatData/CharacterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterExcel : IFlatbufferObject @@ -332,6 +333,291 @@ public struct CharacterExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterExcelT UnPack() { + var _o = new CharacterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Character"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.CostumeGroupId = TableEncryptionService.Convert(this.CostumeGroupId, key); + _o.IsPlayable = TableEncryptionService.Convert(this.IsPlayable, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, 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.IsPlayableCharacter = TableEncryptionService.Convert(this.IsPlayableCharacter, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.IsNPC = TableEncryptionService.Convert(this.IsNPC, key); + _o.TacticEntityType = TableEncryptionService.Convert(this.TacticEntityType, key); + _o.CanSurvive = TableEncryptionService.Convert(this.CanSurvive, key); + _o.IsDummy = TableEncryptionService.Convert(this.IsDummy, key); + _o.SubPartsCount = TableEncryptionService.Convert(this.SubPartsCount, key); + _o.TacticRole = TableEncryptionService.Convert(this.TacticRole, key); + _o.WeaponType = TableEncryptionService.Convert(this.WeaponType, key); + _o.TacticRange = TableEncryptionService.Convert(this.TacticRange, key); + _o.BulletType = TableEncryptionService.Convert(this.BulletType, key); + _o.ArmorType = TableEncryptionService.Convert(this.ArmorType, key); + _o.AimIKType = TableEncryptionService.Convert(this.AimIKType, key); + _o.School = TableEncryptionService.Convert(this.School, key); + _o.Club = TableEncryptionService.Convert(this.Club, key); + _o.DefaultStarGrade = TableEncryptionService.Convert(this.DefaultStarGrade, key); + _o.MaxStarGrade = TableEncryptionService.Convert(this.MaxStarGrade, key); + _o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key); + _o.SquadType = TableEncryptionService.Convert(this.SquadType, key); + _o.Jumpable = TableEncryptionService.Convert(this.Jumpable, key); + _o.PersonalityId = TableEncryptionService.Convert(this.PersonalityId, key); + _o.CharacterAIId = TableEncryptionService.Convert(this.CharacterAIId, key); + _o.ExternalBTId = TableEncryptionService.Convert(this.ExternalBTId, key); + _o.ScenarioCharacter = TableEncryptionService.Convert(this.ScenarioCharacter, key); + _o.SpawnTemplateId = TableEncryptionService.Convert(this.SpawnTemplateId, key); + _o.FavorLevelupType = TableEncryptionService.Convert(this.FavorLevelupType, key); + _o.EquipmentSlot = new List(); + for (var _j = 0; _j < this.EquipmentSlotLength; ++_j) {_o.EquipmentSlot.Add(TableEncryptionService.Convert(this.EquipmentSlot(_j), key));} + _o.WeaponLocalizeId = TableEncryptionService.Convert(this.WeaponLocalizeId, key); + _o.DisplayEnemyInfo = TableEncryptionService.Convert(this.DisplayEnemyInfo, key); + _o.BodyRadius = TableEncryptionService.Convert(this.BodyRadius, key); + _o.RandomEffectRadius = TableEncryptionService.Convert(this.RandomEffectRadius, key); + _o.HPBarHide = TableEncryptionService.Convert(this.HPBarHide, key); + _o.HpBarHeight = TableEncryptionService.Convert(this.HpBarHeight, key); + _o.HighlightFloaterHeight = TableEncryptionService.Convert(this.HighlightFloaterHeight, key); + _o.EmojiOffsetX = TableEncryptionService.Convert(this.EmojiOffsetX, key); + _o.EmojiOffsetY = TableEncryptionService.Convert(this.EmojiOffsetY, key); + _o.MoveStartFrame = TableEncryptionService.Convert(this.MoveStartFrame, key); + _o.MoveEndFrame = TableEncryptionService.Convert(this.MoveEndFrame, key); + _o.JumpMotionFrame = TableEncryptionService.Convert(this.JumpMotionFrame, key); + _o.AppearFrame = TableEncryptionService.Convert(this.AppearFrame, key); + _o.CanMove = TableEncryptionService.Convert(this.CanMove, key); + _o.CanFix = TableEncryptionService.Convert(this.CanFix, key); + _o.CanCrowdControl = TableEncryptionService.Convert(this.CanCrowdControl, key); + _o.CanBattleItemMove = TableEncryptionService.Convert(this.CanBattleItemMove, key); + _o.IsAirUnit = TableEncryptionService.Convert(this.IsAirUnit, key); + _o.AirUnitHeight = TableEncryptionService.Convert(this.AirUnitHeight, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.SecretStoneItemId = TableEncryptionService.Convert(this.SecretStoneItemId, key); + _o.SecretStoneItemAmount = TableEncryptionService.Convert(this.SecretStoneItemAmount, key); + _o.CharacterPieceItemId = TableEncryptionService.Convert(this.CharacterPieceItemId, key); + _o.CharacterPieceItemAmount = TableEncryptionService.Convert(this.CharacterPieceItemAmount, key); + _o.CombineRecipeId = TableEncryptionService.Convert(this.CombineRecipeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterExcelT _o) { + if (_o == null) return default(Offset); + 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 _ScenarioCharacter = _o.ScenarioCharacter == null ? default(StringOffset) : builder.CreateString(_o.ScenarioCharacter); + var _EquipmentSlot = default(VectorOffset); + if (_o.EquipmentSlot != null) { + var __EquipmentSlot = _o.EquipmentSlot.ToArray(); + _EquipmentSlot = CreateEquipmentSlotVector(builder, __EquipmentSlot); + } + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + return CreateCharacterExcel( + builder, + _o.Id, + _DevName, + _o.CostumeGroupId, + _o.IsPlayable, + _o.ProductionStep, + _o.CollectionVisible, + _ReleaseDate, + _CollectionVisibleStartDate, + _CollectionVisibleEndDate, + _o.IsPlayableCharacter, + _o.LocalizeEtcId, + _o.Rarity, + _o.IsNPC, + _o.TacticEntityType, + _o.CanSurvive, + _o.IsDummy, + _o.SubPartsCount, + _o.TacticRole, + _o.WeaponType, + _o.TacticRange, + _o.BulletType, + _o.ArmorType, + _o.AimIKType, + _o.School, + _o.Club, + _o.DefaultStarGrade, + _o.MaxStarGrade, + _o.StatLevelUpType, + _o.SquadType, + _o.Jumpable, + _o.PersonalityId, + _o.CharacterAIId, + _o.ExternalBTId, + _ScenarioCharacter, + _o.SpawnTemplateId, + _o.FavorLevelupType, + _EquipmentSlot, + _o.WeaponLocalizeId, + _o.DisplayEnemyInfo, + _o.BodyRadius, + _o.RandomEffectRadius, + _o.HPBarHide, + _o.HpBarHeight, + _o.HighlightFloaterHeight, + _o.EmojiOffsetX, + _o.EmojiOffsetY, + _o.MoveStartFrame, + _o.MoveEndFrame, + _o.JumpMotionFrame, + _o.AppearFrame, + _o.CanMove, + _o.CanFix, + _o.CanCrowdControl, + _o.CanBattleItemMove, + _o.IsAirUnit, + _o.AirUnitHeight, + _Tags, + _o.SecretStoneItemId, + _o.SecretStoneItemAmount, + _o.CharacterPieceItemId, + _o.CharacterPieceItemAmount, + _o.CombineRecipeId); + } +} + +public class CharacterExcelT +{ + public long Id { get; set; } + public string DevName { get; set; } + public long CostumeGroupId { get; set; } + public bool IsPlayable { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public bool CollectionVisible { get; set; } + public string ReleaseDate { get; set; } + public string CollectionVisibleStartDate { get; set; } + public string CollectionVisibleEndDate { get; set; } + public bool IsPlayableCharacter { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public bool IsNPC { get; set; } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get; set; } + public bool CanSurvive { get; set; } + public bool IsDummy { get; set; } + public int SubPartsCount { get; set; } + public SCHALE.Common.FlatData.TacticRole TacticRole { get; set; } + public SCHALE.Common.FlatData.WeaponType WeaponType { get; set; } + public SCHALE.Common.FlatData.TacticRange TacticRange { get; set; } + public SCHALE.Common.FlatData.BulletType BulletType { get; set; } + public SCHALE.Common.FlatData.ArmorType ArmorType { get; set; } + public SCHALE.Common.FlatData.AimIKType AimIKType { get; set; } + public SCHALE.Common.FlatData.School School { get; set; } + public SCHALE.Common.FlatData.Club Club { get; set; } + public int DefaultStarGrade { get; set; } + public int MaxStarGrade { get; set; } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; } + public SCHALE.Common.FlatData.SquadType SquadType { get; set; } + public bool Jumpable { get; set; } + public long PersonalityId { get; set; } + public long CharacterAIId { get; set; } + public long ExternalBTId { get; set; } + public string ScenarioCharacter { get; set; } + public uint SpawnTemplateId { get; set; } + public int FavorLevelupType { get; set; } + public List EquipmentSlot { get; set; } + public uint WeaponLocalizeId { get; set; } + public bool DisplayEnemyInfo { get; set; } + public long BodyRadius { get; set; } + public long RandomEffectRadius { get; set; } + public bool HPBarHide { get; set; } + public float HpBarHeight { get; set; } + public float HighlightFloaterHeight { get; set; } + public float EmojiOffsetX { get; set; } + public float EmojiOffsetY { get; set; } + public int MoveStartFrame { get; set; } + public int MoveEndFrame { get; set; } + public int JumpMotionFrame { get; set; } + public int AppearFrame { get; set; } + public bool CanMove { get; set; } + public bool CanFix { get; set; } + public bool CanCrowdControl { get; set; } + public bool CanBattleItemMove { get; set; } + public bool IsAirUnit { get; set; } + public long AirUnitHeight { get; set; } + public List Tags { get; set; } + public long SecretStoneItemId { get; set; } + public int SecretStoneItemAmount { get; set; } + public long CharacterPieceItemId { get; set; } + public int CharacterPieceItemAmount { get; set; } + public long CombineRecipeId { get; set; } + + public CharacterExcelT() { + this.Id = 0; + this.DevName = null; + this.CostumeGroupId = 0; + this.IsPlayable = false; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.CollectionVisible = false; + this.ReleaseDate = null; + this.CollectionVisibleStartDate = null; + this.CollectionVisibleEndDate = null; + this.IsPlayableCharacter = false; + this.LocalizeEtcId = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.IsNPC = false; + this.TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None; + this.CanSurvive = false; + this.IsDummy = false; + this.SubPartsCount = 0; + this.TacticRole = SCHALE.Common.FlatData.TacticRole.None; + this.WeaponType = SCHALE.Common.FlatData.WeaponType.None; + this.TacticRange = SCHALE.Common.FlatData.TacticRange.Back; + this.BulletType = SCHALE.Common.FlatData.BulletType.Normal; + this.ArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor; + this.AimIKType = SCHALE.Common.FlatData.AimIKType.None; + this.School = SCHALE.Common.FlatData.School.None; + this.Club = SCHALE.Common.FlatData.Club.None; + this.DefaultStarGrade = 0; + this.MaxStarGrade = 0; + this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard; + this.SquadType = SCHALE.Common.FlatData.SquadType.None; + this.Jumpable = false; + this.PersonalityId = 0; + this.CharacterAIId = 0; + this.ExternalBTId = 0; + this.ScenarioCharacter = null; + this.SpawnTemplateId = 0; + this.FavorLevelupType = 0; + this.EquipmentSlot = null; + this.WeaponLocalizeId = 0; + this.DisplayEnemyInfo = false; + this.BodyRadius = 0; + this.RandomEffectRadius = 0; + this.HPBarHide = false; + this.HpBarHeight = 0.0f; + this.HighlightFloaterHeight = 0.0f; + this.EmojiOffsetX = 0.0f; + this.EmojiOffsetY = 0.0f; + this.MoveStartFrame = 0; + this.MoveEndFrame = 0; + this.JumpMotionFrame = 0; + this.AppearFrame = 0; + this.CanMove = false; + this.CanFix = false; + this.CanCrowdControl = false; + this.CanBattleItemMove = false; + this.IsAirUnit = false; + this.AirUnitHeight = 0; + this.Tags = null; + this.SecretStoneItemId = 0; + this.SecretStoneItemAmount = 0; + this.CharacterPieceItemId = 0; + this.CharacterPieceItemAmount = 0; + this.CombineRecipeId = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterExcelTable.cs b/SCHALE.Common/FlatData/CharacterExcelTable.cs index 4445ded..2c0213a 100644 --- a/SCHALE.Common/FlatData/CharacterExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterExcelTableT UnPack() { + var _o = new CharacterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterExcelTable( + builder, + _DataList); + } +} + +public class CharacterExcelTableT +{ + public List DataList { get; set; } + + public CharacterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterGearExcel.cs b/SCHALE.Common/FlatData/CharacterGearExcel.cs index f8fce98..b3b0f93 100644 --- a/SCHALE.Common/FlatData/CharacterGearExcel.cs +++ b/SCHALE.Common/FlatData/CharacterGearExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterGearExcel : IFlatbufferObject @@ -150,6 +151,112 @@ public struct CharacterGearExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterGearExcelT UnPack() { + var _o = new CharacterGearExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterGearExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterGear"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key); + _o.Tier = TableEncryptionService.Convert(this.Tier, key); + _o.NextTierEquipment = TableEncryptionService.Convert(this.NextTierEquipment, key); + _o.RecipeId = TableEncryptionService.Convert(this.RecipeId, key); + _o.OpenFavorLevel = TableEncryptionService.Convert(this.OpenFavorLevel, key); + _o.MaxLevel = TableEncryptionService.Convert(this.MaxLevel, key); + _o.LearnSkillSlot = TableEncryptionService.Convert(this.LearnSkillSlot, key); + _o.StatType = new List(); + for (var _j = 0; _j < this.StatTypeLength; ++_j) {_o.StatType.Add(TableEncryptionService.Convert(this.StatType(_j), key));} + _o.MinStatValue = new List(); + for (var _j = 0; _j < this.MinStatValueLength; ++_j) {_o.MinStatValue.Add(TableEncryptionService.Convert(this.MinStatValue(_j), key));} + _o.MaxStatValue = new List(); + for (var _j = 0; _j < this.MaxStatValueLength; ++_j) {_o.MaxStatValue.Add(TableEncryptionService.Convert(this.MaxStatValue(_j), key));} + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterGearExcelT _o) { + if (_o == null) return default(Offset); + var _LearnSkillSlot = _o.LearnSkillSlot == null ? default(StringOffset) : builder.CreateString(_o.LearnSkillSlot); + var _StatType = default(VectorOffset); + if (_o.StatType != null) { + var __StatType = _o.StatType.ToArray(); + _StatType = CreateStatTypeVector(builder, __StatType); + } + var _MinStatValue = default(VectorOffset); + if (_o.MinStatValue != null) { + var __MinStatValue = _o.MinStatValue.ToArray(); + _MinStatValue = CreateMinStatValueVector(builder, __MinStatValue); + } + var _MaxStatValue = default(VectorOffset); + if (_o.MaxStatValue != null) { + var __MaxStatValue = _o.MaxStatValue.ToArray(); + _MaxStatValue = CreateMaxStatValueVector(builder, __MaxStatValue); + } + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + return CreateCharacterGearExcel( + builder, + _o.Id, + _o.CharacterId, + _o.StatLevelUpType, + _o.Tier, + _o.NextTierEquipment, + _o.RecipeId, + _o.OpenFavorLevel, + _o.MaxLevel, + _LearnSkillSlot, + _StatType, + _MinStatValue, + _MaxStatValue, + _Icon, + _o.LocalizeEtcId, + _Tags); + } +} + +public class CharacterGearExcelT +{ + public long Id { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; } + public long Tier { get; set; } + public long NextTierEquipment { get; set; } + public long RecipeId { get; set; } + public long OpenFavorLevel { get; set; } + public long MaxLevel { get; set; } + public string LearnSkillSlot { get; set; } + public List StatType { get; set; } + public List MinStatValue { get; set; } + public List MaxStatValue { get; set; } + public string Icon { get; set; } + public uint LocalizeEtcId { get; set; } + public List Tags { get; set; } + + public CharacterGearExcelT() { + this.Id = 0; + this.CharacterId = 0; + this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard; + this.Tier = 0; + this.NextTierEquipment = 0; + this.RecipeId = 0; + this.OpenFavorLevel = 0; + this.MaxLevel = 0; + this.LearnSkillSlot = null; + this.StatType = null; + this.MinStatValue = null; + this.MaxStatValue = null; + this.Icon = null; + this.LocalizeEtcId = 0; + this.Tags = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterGearExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearExcelTable.cs index 5357988..58e3124 100644 --- a/SCHALE.Common/FlatData/CharacterGearExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterGearExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterGearExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterGearExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterGearExcelTableT UnPack() { + var _o = new CharacterGearExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterGearExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterGearExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterGearExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterGearExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterGearExcelTable( + builder, + _DataList); + } +} + +public class CharacterGearExcelTableT +{ + public List DataList { get; set; } + + public CharacterGearExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs b/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs index b242ea0..35a573e 100644 --- a/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs +++ b/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterGearLevelExcel : IFlatbufferObject @@ -66,6 +67,50 @@ public struct CharacterGearLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterGearLevelExcelT UnPack() { + var _o = new CharacterGearLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterGearLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterGearLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.TierLevelExp = new List(); + for (var _j = 0; _j < this.TierLevelExpLength; ++_j) {_o.TierLevelExp.Add(TableEncryptionService.Convert(this.TierLevelExp(_j), key));} + _o.TotalExp = new List(); + for (var _j = 0; _j < this.TotalExpLength; ++_j) {_o.TotalExp.Add(TableEncryptionService.Convert(this.TotalExp(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterGearLevelExcelT _o) { + if (_o == null) return default(Offset); + var _TierLevelExp = default(VectorOffset); + if (_o.TierLevelExp != null) { + var __TierLevelExp = _o.TierLevelExp.ToArray(); + _TierLevelExp = CreateTierLevelExpVector(builder, __TierLevelExp); + } + var _TotalExp = default(VectorOffset); + if (_o.TotalExp != null) { + var __TotalExp = _o.TotalExp.ToArray(); + _TotalExp = CreateTotalExpVector(builder, __TotalExp); + } + return CreateCharacterGearLevelExcel( + builder, + _o.Level, + _TierLevelExp, + _TotalExp); + } +} + +public class CharacterGearLevelExcelT +{ + public int Level { get; set; } + public List TierLevelExp { get; set; } + public List TotalExp { get; set; } + + public CharacterGearLevelExcelT() { + this.Level = 0; + this.TierLevelExp = null; + this.TotalExp = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs index 0d28a55..7d8d7c6 100644 --- a/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterGearLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterGearLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterGearLevelExcelTableT UnPack() { + var _o = new CharacterGearLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterGearLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterGearLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterGearLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterGearLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterGearLevelExcelTable( + builder, + _DataList); + } +} + +public class CharacterGearLevelExcelTableT +{ + public List DataList { get; set; } + + public CharacterGearLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs index 5d872df..b9f4e81 100644 --- a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs +++ b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterIllustCoordinateExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct CharacterIllustCoordinateExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterIllustCoordinateExcelT UnPack() { + var _o = new CharacterIllustCoordinateExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterIllustCoordinateExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterIllustCoordinate"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CharacterBodyCenterX = TableEncryptionService.Convert(this.CharacterBodyCenterX, key); + _o.CharacterBodyCenterY = TableEncryptionService.Convert(this.CharacterBodyCenterY, key); + _o.DefaultScale = TableEncryptionService.Convert(this.DefaultScale, key); + _o.MinScale = TableEncryptionService.Convert(this.MinScale, key); + _o.MaxScale = TableEncryptionService.Convert(this.MaxScale, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterIllustCoordinateExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterIllustCoordinateExcel( + builder, + _o.Id, + _o.CharacterBodyCenterX, + _o.CharacterBodyCenterY, + _o.DefaultScale, + _o.MinScale, + _o.MaxScale); + } +} + +public class CharacterIllustCoordinateExcelT +{ + public long Id { get; set; } + public float CharacterBodyCenterX { get; set; } + public float CharacterBodyCenterY { get; set; } + public float DefaultScale { get; set; } + public float MinScale { get; set; } + public float MaxScale { get; set; } + + public CharacterIllustCoordinateExcelT() { + this.Id = 0; + this.CharacterBodyCenterX = 0.0f; + this.CharacterBodyCenterY = 0.0f; + this.DefaultScale = 0.0f; + this.MinScale = 0.0f; + this.MaxScale = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs index 728705d..8647fa8 100644 --- a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterIllustCoordinateExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterIllustCoordinateExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterIllustCoordinateExcelTableT UnPack() { + var _o = new CharacterIllustCoordinateExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterIllustCoordinateExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterIllustCoordinateExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterIllustCoordinateExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterIllustCoordinateExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterIllustCoordinateExcelTable( + builder, + _DataList); + } +} + +public class CharacterIllustCoordinateExcelTableT +{ + public List DataList { get; set; } + + public CharacterIllustCoordinateExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterLevelExcel.cs b/SCHALE.Common/FlatData/CharacterLevelExcel.cs index 8e59e16..54b521a 100644 --- a/SCHALE.Common/FlatData/CharacterLevelExcel.cs +++ b/SCHALE.Common/FlatData/CharacterLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterLevelExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct CharacterLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterLevelExcelT UnPack() { + var _o = new CharacterLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Exp = TableEncryptionService.Convert(this.Exp, key); + _o.TotalExp = TableEncryptionService.Convert(this.TotalExp, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterLevelExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterLevelExcel( + builder, + _o.Level, + _o.Exp, + _o.TotalExp); + } +} + +public class CharacterLevelExcelT +{ + public int Level { get; set; } + public long Exp { get; set; } + public long TotalExp { get; set; } + + public CharacterLevelExcelT() { + this.Level = 0; + this.Exp = 0; + this.TotalExp = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs index 143c30a..654a59d 100644 --- a/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterLevelExcelTableT UnPack() { + var _o = new CharacterLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterLevelExcelTable( + builder, + _DataList); + } +} + +public class CharacterLevelExcelTableT +{ + public List DataList { get; set; } + + public CharacterLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs index c5c9de4..f3cb396 100644 --- a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs +++ b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterLevelStatFactorExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct CharacterLevelStatFactorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterLevelStatFactorExcelT UnPack() { + var _o = new CharacterLevelStatFactorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterLevelStatFactorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterLevelStatFactor"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.CriticalFactor = TableEncryptionService.Convert(this.CriticalFactor, key); + _o.StabilityFactor = TableEncryptionService.Convert(this.StabilityFactor, key); + _o.DefenceFactor = TableEncryptionService.Convert(this.DefenceFactor, key); + _o.AccuracyFactor = TableEncryptionService.Convert(this.AccuracyFactor, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterLevelStatFactorExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterLevelStatFactorExcel( + builder, + _o.Level, + _o.CriticalFactor, + _o.StabilityFactor, + _o.DefenceFactor, + _o.AccuracyFactor); + } +} + +public class CharacterLevelStatFactorExcelT +{ + public long Level { get; set; } + public long CriticalFactor { get; set; } + public long StabilityFactor { get; set; } + public long DefenceFactor { get; set; } + public long AccuracyFactor { get; set; } + + public CharacterLevelStatFactorExcelT() { + this.Level = 0; + this.CriticalFactor = 0; + this.StabilityFactor = 0; + this.DefenceFactor = 0; + this.AccuracyFactor = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs index 70c2cfe..b3ff181 100644 --- a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterLevelStatFactorExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterLevelStatFactorExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterLevelStatFactorExcelTableT UnPack() { + var _o = new CharacterLevelStatFactorExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterLevelStatFactorExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterLevelStatFactorExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterLevelStatFactorExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterLevelStatFactorExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterLevelStatFactorExcelTable( + builder, + _DataList); + } +} + +public class CharacterLevelStatFactorExcelTableT +{ + public List DataList { get; set; } + + public CharacterLevelStatFactorExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterPotentialExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs index 75fcf33..352a0bc 100644 --- a/SCHALE.Common/FlatData/CharacterPotentialExcel.cs +++ b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterPotentialExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct CharacterPotentialExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterPotentialExcelT UnPack() { + var _o = new CharacterPotentialExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterPotentialExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterPotential"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.PotentialStatGroupId = TableEncryptionService.Convert(this.PotentialStatGroupId, key); + _o.PotentialStatBonusRateType = TableEncryptionService.Convert(this.PotentialStatBonusRateType, key); + _o.IsUnnecessaryStat = TableEncryptionService.Convert(this.IsUnnecessaryStat, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterPotentialExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterPotentialExcel( + builder, + _o.Id, + _o.PotentialStatGroupId, + _o.PotentialStatBonusRateType, + _o.IsUnnecessaryStat); + } +} + +public class CharacterPotentialExcelT +{ + public long Id { get; set; } + public long PotentialStatGroupId { get; set; } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType { get; set; } + public bool IsUnnecessaryStat { get; set; } + + public CharacterPotentialExcelT() { + this.Id = 0; + this.PotentialStatGroupId = 0; + this.PotentialStatBonusRateType = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.IsUnnecessaryStat = false; + } } diff --git a/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs index f918aa1..d741efb 100644 --- a/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs +++ b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterPotentialRewardExcel : IFlatbufferObject @@ -78,6 +79,62 @@ public struct CharacterPotentialRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterPotentialRewardExcelT UnPack() { + var _o = new CharacterPotentialRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterPotentialRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterPotentialReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RequirePotentialStatType = new List(); + for (var _j = 0; _j < this.RequirePotentialStatTypeLength; ++_j) {_o.RequirePotentialStatType.Add(TableEncryptionService.Convert(this.RequirePotentialStatType(_j), key));} + _o.RequirePotentialStatLevel = new List(); + for (var _j = 0; _j < this.RequirePotentialStatLevelLength; ++_j) {_o.RequirePotentialStatLevel.Add(TableEncryptionService.Convert(this.RequirePotentialStatLevel(_j), key));} + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterPotentialRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RequirePotentialStatType = default(VectorOffset); + if (_o.RequirePotentialStatType != null) { + var __RequirePotentialStatType = _o.RequirePotentialStatType.ToArray(); + _RequirePotentialStatType = CreateRequirePotentialStatTypeVector(builder, __RequirePotentialStatType); + } + var _RequirePotentialStatLevel = default(VectorOffset); + if (_o.RequirePotentialStatLevel != null) { + var __RequirePotentialStatLevel = _o.RequirePotentialStatLevel.ToArray(); + _RequirePotentialStatLevel = CreateRequirePotentialStatLevelVector(builder, __RequirePotentialStatLevel); + } + return CreateCharacterPotentialRewardExcel( + builder, + _o.Id, + _RequirePotentialStatType, + _RequirePotentialStatLevel, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount); + } +} + +public class CharacterPotentialRewardExcelT +{ + public long Id { get; set; } + public List RequirePotentialStatType { get; set; } + public List RequirePotentialStatLevel { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + + public CharacterPotentialRewardExcelT() { + this.Id = 0; + this.RequirePotentialStatType = null; + this.RequirePotentialStatLevel = null; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs index 98026dd..605be32 100644 --- a/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs +++ b/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterPotentialStatExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct CharacterPotentialStatExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterPotentialStatExcelT UnPack() { + var _o = new CharacterPotentialStatExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterPotentialStatExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterPotentialStat"); + _o.PotentialStatGroupId = TableEncryptionService.Convert(this.PotentialStatGroupId, key); + _o.PotentialLevel = TableEncryptionService.Convert(this.PotentialLevel, key); + _o.RecipeId = TableEncryptionService.Convert(this.RecipeId, key); + _o.StatBonusRate = TableEncryptionService.Convert(this.StatBonusRate, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterPotentialStatExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterPotentialStatExcel( + builder, + _o.PotentialStatGroupId, + _o.PotentialLevel, + _o.RecipeId, + _o.StatBonusRate); + } +} + +public class CharacterPotentialStatExcelT +{ + public long PotentialStatGroupId { get; set; } + public int PotentialLevel { get; set; } + public long RecipeId { get; set; } + public long StatBonusRate { get; set; } + + public CharacterPotentialStatExcelT() { + this.PotentialStatGroupId = 0; + this.PotentialLevel = 0; + this.RecipeId = 0; + this.StatBonusRate = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterSkillListExcel.cs b/SCHALE.Common/FlatData/CharacterSkillListExcel.cs index 4c2c840..f7b7d2f 100644 --- a/SCHALE.Common/FlatData/CharacterSkillListExcel.cs +++ b/SCHALE.Common/FlatData/CharacterSkillListExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterSkillListExcel : IFlatbufferObject @@ -180,6 +181,165 @@ public struct CharacterSkillListExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterSkillListExcelT UnPack() { + var _o = new CharacterSkillListExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterSkillListExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterSkillList"); + _o.CharacterSkillListGroupId = TableEncryptionService.Convert(this.CharacterSkillListGroupId, key); + _o.MinimumGradeCharacterWeapon = TableEncryptionService.Convert(this.MinimumGradeCharacterWeapon, key); + _o.MinimumTierCharacterGear = TableEncryptionService.Convert(this.MinimumTierCharacterGear, key); + _o.FormIndex = TableEncryptionService.Convert(this.FormIndex, key); + _o.IsRootMotion = TableEncryptionService.Convert(this.IsRootMotion, key); + _o.IsMoveLeftRight = TableEncryptionService.Convert(this.IsMoveLeftRight, key); + _o.UseRandomAnimation = TableEncryptionService.Convert(this.UseRandomAnimation, key); + _o.TSAInteractionId = TableEncryptionService.Convert(this.TSAInteractionId, key); + _o.NormalSkillGroupId = new List(); + for (var _j = 0; _j < this.NormalSkillGroupIdLength; ++_j) {_o.NormalSkillGroupId.Add(TableEncryptionService.Convert(this.NormalSkillGroupId(_j), key));} + _o.NormalSkillTimeLineIndex = new List(); + for (var _j = 0; _j < this.NormalSkillTimeLineIndexLength; ++_j) {_o.NormalSkillTimeLineIndex.Add(TableEncryptionService.Convert(this.NormalSkillTimeLineIndex(_j), key));} + _o.ExSkillGroupId = new List(); + for (var _j = 0; _j < this.ExSkillGroupIdLength; ++_j) {_o.ExSkillGroupId.Add(TableEncryptionService.Convert(this.ExSkillGroupId(_j), key));} + _o.ExSkillTimeLineIndex = new List(); + for (var _j = 0; _j < this.ExSkillTimeLineIndexLength; ++_j) {_o.ExSkillTimeLineIndex.Add(TableEncryptionService.Convert(this.ExSkillTimeLineIndex(_j), key));} + _o.PublicSkillGroupId = new List(); + for (var _j = 0; _j < this.PublicSkillGroupIdLength; ++_j) {_o.PublicSkillGroupId.Add(TableEncryptionService.Convert(this.PublicSkillGroupId(_j), key));} + _o.PublicSkillTimeLineIndex = new List(); + for (var _j = 0; _j < this.PublicSkillTimeLineIndexLength; ++_j) {_o.PublicSkillTimeLineIndex.Add(TableEncryptionService.Convert(this.PublicSkillTimeLineIndex(_j), key));} + _o.PassiveSkillGroupId = new List(); + for (var _j = 0; _j < this.PassiveSkillGroupIdLength; ++_j) {_o.PassiveSkillGroupId.Add(TableEncryptionService.Convert(this.PassiveSkillGroupId(_j), key));} + _o.LeaderSkillGroupId = new List(); + for (var _j = 0; _j < this.LeaderSkillGroupIdLength; ++_j) {_o.LeaderSkillGroupId.Add(TableEncryptionService.Convert(this.LeaderSkillGroupId(_j), key));} + _o.ExtraPassiveSkillGroupId = new List(); + for (var _j = 0; _j < this.ExtraPassiveSkillGroupIdLength; ++_j) {_o.ExtraPassiveSkillGroupId.Add(TableEncryptionService.Convert(this.ExtraPassiveSkillGroupId(_j), key));} + _o.HiddenPassiveSkillGroupId = new List(); + for (var _j = 0; _j < this.HiddenPassiveSkillGroupIdLength; ++_j) {_o.HiddenPassiveSkillGroupId.Add(TableEncryptionService.Convert(this.HiddenPassiveSkillGroupId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterSkillListExcelT _o) { + if (_o == null) return default(Offset); + var _NormalSkillGroupId = default(VectorOffset); + if (_o.NormalSkillGroupId != null) { + var __NormalSkillGroupId = new StringOffset[_o.NormalSkillGroupId.Count]; + for (var _j = 0; _j < __NormalSkillGroupId.Length; ++_j) { __NormalSkillGroupId[_j] = builder.CreateString(_o.NormalSkillGroupId[_j]); } + _NormalSkillGroupId = CreateNormalSkillGroupIdVector(builder, __NormalSkillGroupId); + } + var _NormalSkillTimeLineIndex = default(VectorOffset); + if (_o.NormalSkillTimeLineIndex != null) { + var __NormalSkillTimeLineIndex = _o.NormalSkillTimeLineIndex.ToArray(); + _NormalSkillTimeLineIndex = CreateNormalSkillTimeLineIndexVector(builder, __NormalSkillTimeLineIndex); + } + var _ExSkillGroupId = default(VectorOffset); + if (_o.ExSkillGroupId != null) { + var __ExSkillGroupId = new StringOffset[_o.ExSkillGroupId.Count]; + for (var _j = 0; _j < __ExSkillGroupId.Length; ++_j) { __ExSkillGroupId[_j] = builder.CreateString(_o.ExSkillGroupId[_j]); } + _ExSkillGroupId = CreateExSkillGroupIdVector(builder, __ExSkillGroupId); + } + var _ExSkillTimeLineIndex = default(VectorOffset); + if (_o.ExSkillTimeLineIndex != null) { + var __ExSkillTimeLineIndex = _o.ExSkillTimeLineIndex.ToArray(); + _ExSkillTimeLineIndex = CreateExSkillTimeLineIndexVector(builder, __ExSkillTimeLineIndex); + } + var _PublicSkillGroupId = default(VectorOffset); + if (_o.PublicSkillGroupId != null) { + var __PublicSkillGroupId = new StringOffset[_o.PublicSkillGroupId.Count]; + for (var _j = 0; _j < __PublicSkillGroupId.Length; ++_j) { __PublicSkillGroupId[_j] = builder.CreateString(_o.PublicSkillGroupId[_j]); } + _PublicSkillGroupId = CreatePublicSkillGroupIdVector(builder, __PublicSkillGroupId); + } + var _PublicSkillTimeLineIndex = default(VectorOffset); + if (_o.PublicSkillTimeLineIndex != null) { + var __PublicSkillTimeLineIndex = _o.PublicSkillTimeLineIndex.ToArray(); + _PublicSkillTimeLineIndex = CreatePublicSkillTimeLineIndexVector(builder, __PublicSkillTimeLineIndex); + } + var _PassiveSkillGroupId = default(VectorOffset); + if (_o.PassiveSkillGroupId != null) { + var __PassiveSkillGroupId = new StringOffset[_o.PassiveSkillGroupId.Count]; + for (var _j = 0; _j < __PassiveSkillGroupId.Length; ++_j) { __PassiveSkillGroupId[_j] = builder.CreateString(_o.PassiveSkillGroupId[_j]); } + _PassiveSkillGroupId = CreatePassiveSkillGroupIdVector(builder, __PassiveSkillGroupId); + } + var _LeaderSkillGroupId = default(VectorOffset); + if (_o.LeaderSkillGroupId != null) { + var __LeaderSkillGroupId = new StringOffset[_o.LeaderSkillGroupId.Count]; + for (var _j = 0; _j < __LeaderSkillGroupId.Length; ++_j) { __LeaderSkillGroupId[_j] = builder.CreateString(_o.LeaderSkillGroupId[_j]); } + _LeaderSkillGroupId = CreateLeaderSkillGroupIdVector(builder, __LeaderSkillGroupId); + } + var _ExtraPassiveSkillGroupId = default(VectorOffset); + if (_o.ExtraPassiveSkillGroupId != null) { + var __ExtraPassiveSkillGroupId = new StringOffset[_o.ExtraPassiveSkillGroupId.Count]; + for (var _j = 0; _j < __ExtraPassiveSkillGroupId.Length; ++_j) { __ExtraPassiveSkillGroupId[_j] = builder.CreateString(_o.ExtraPassiveSkillGroupId[_j]); } + _ExtraPassiveSkillGroupId = CreateExtraPassiveSkillGroupIdVector(builder, __ExtraPassiveSkillGroupId); + } + var _HiddenPassiveSkillGroupId = default(VectorOffset); + if (_o.HiddenPassiveSkillGroupId != null) { + var __HiddenPassiveSkillGroupId = new StringOffset[_o.HiddenPassiveSkillGroupId.Count]; + for (var _j = 0; _j < __HiddenPassiveSkillGroupId.Length; ++_j) { __HiddenPassiveSkillGroupId[_j] = builder.CreateString(_o.HiddenPassiveSkillGroupId[_j]); } + _HiddenPassiveSkillGroupId = CreateHiddenPassiveSkillGroupIdVector(builder, __HiddenPassiveSkillGroupId); + } + return CreateCharacterSkillListExcel( + builder, + _o.CharacterSkillListGroupId, + _o.MinimumGradeCharacterWeapon, + _o.MinimumTierCharacterGear, + _o.FormIndex, + _o.IsRootMotion, + _o.IsMoveLeftRight, + _o.UseRandomAnimation, + _o.TSAInteractionId, + _NormalSkillGroupId, + _NormalSkillTimeLineIndex, + _ExSkillGroupId, + _ExSkillTimeLineIndex, + _PublicSkillGroupId, + _PublicSkillTimeLineIndex, + _PassiveSkillGroupId, + _LeaderSkillGroupId, + _ExtraPassiveSkillGroupId, + _HiddenPassiveSkillGroupId); + } +} + +public class CharacterSkillListExcelT +{ + public long CharacterSkillListGroupId { get; set; } + public int MinimumGradeCharacterWeapon { get; set; } + public int MinimumTierCharacterGear { get; set; } + public int FormIndex { get; set; } + public bool IsRootMotion { get; set; } + public bool IsMoveLeftRight { get; set; } + public bool UseRandomAnimation { get; set; } + public long TSAInteractionId { get; set; } + public List NormalSkillGroupId { get; set; } + public List NormalSkillTimeLineIndex { get; set; } + public List ExSkillGroupId { get; set; } + public List ExSkillTimeLineIndex { get; set; } + public List PublicSkillGroupId { get; set; } + public List PublicSkillTimeLineIndex { get; set; } + public List PassiveSkillGroupId { get; set; } + public List LeaderSkillGroupId { get; set; } + public List ExtraPassiveSkillGroupId { get; set; } + public List HiddenPassiveSkillGroupId { get; set; } + + public CharacterSkillListExcelT() { + this.CharacterSkillListGroupId = 0; + this.MinimumGradeCharacterWeapon = 0; + this.MinimumTierCharacterGear = 0; + this.FormIndex = 0; + this.IsRootMotion = false; + this.IsMoveLeftRight = false; + this.UseRandomAnimation = false; + this.TSAInteractionId = 0; + this.NormalSkillGroupId = null; + this.NormalSkillTimeLineIndex = null; + this.ExSkillGroupId = null; + this.ExSkillTimeLineIndex = null; + this.PublicSkillGroupId = null; + this.PublicSkillTimeLineIndex = null; + this.PassiveSkillGroupId = null; + this.LeaderSkillGroupId = null; + this.ExtraPassiveSkillGroupId = null; + this.HiddenPassiveSkillGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs b/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs index f357747..ce31c71 100644 --- a/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterSkillListExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterSkillListExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterSkillListExcelTableT UnPack() { + var _o = new CharacterSkillListExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterSkillListExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterSkillListExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterSkillListExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterSkillListExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterSkillListExcelTable( + builder, + _DataList); + } +} + +public class CharacterSkillListExcelTableT +{ + public List DataList { get; set; } + + public CharacterSkillListExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatExcel.cs b/SCHALE.Common/FlatData/CharacterStatExcel.cs index b219e72..17bd71c 100644 --- a/SCHALE.Common/FlatData/CharacterStatExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatExcel : IFlatbufferObject @@ -294,6 +295,290 @@ public struct CharacterStatExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatExcelT UnPack() { + var _o = new CharacterStatExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStat"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.StabilityRate = TableEncryptionService.Convert(this.StabilityRate, key); + _o.StabilityPoint = TableEncryptionService.Convert(this.StabilityPoint, key); + _o.AttackPower1 = TableEncryptionService.Convert(this.AttackPower1, key); + _o.AttackPower100 = TableEncryptionService.Convert(this.AttackPower100, key); + _o.MaxHP1 = TableEncryptionService.Convert(this.MaxHP1, key); + _o.MaxHP100 = TableEncryptionService.Convert(this.MaxHP100, key); + _o.DefensePower1 = TableEncryptionService.Convert(this.DefensePower1, key); + _o.DefensePower100 = TableEncryptionService.Convert(this.DefensePower100, key); + _o.HealPower1 = TableEncryptionService.Convert(this.HealPower1, key); + _o.HealPower100 = TableEncryptionService.Convert(this.HealPower100, key); + _o.DodgePoint = TableEncryptionService.Convert(this.DodgePoint, key); + _o.AccuracyPoint = TableEncryptionService.Convert(this.AccuracyPoint, key); + _o.CriticalPoint = TableEncryptionService.Convert(this.CriticalPoint, key); + _o.CriticalResistPoint = TableEncryptionService.Convert(this.CriticalResistPoint, key); + _o.CriticalDamageRate = TableEncryptionService.Convert(this.CriticalDamageRate, key); + _o.CriticalDamageResistRate = TableEncryptionService.Convert(this.CriticalDamageResistRate, key); + _o.BlockRate = TableEncryptionService.Convert(this.BlockRate, key); + _o.HealEffectivenessRate = TableEncryptionService.Convert(this.HealEffectivenessRate, key); + _o.OppressionPower = TableEncryptionService.Convert(this.OppressionPower, key); + _o.OppressionResist = TableEncryptionService.Convert(this.OppressionResist, key); + _o.DefensePenetration1 = TableEncryptionService.Convert(this.DefensePenetration1, key); + _o.DefensePenetration100 = TableEncryptionService.Convert(this.DefensePenetration100, key); + _o.DefensePenetrationResist1 = TableEncryptionService.Convert(this.DefensePenetrationResist1, key); + _o.DefensePenetrationResist100 = TableEncryptionService.Convert(this.DefensePenetrationResist100, key); + _o.EnhanceExplosionRate = TableEncryptionService.Convert(this.EnhanceExplosionRate, key); + _o.EnhancePierceRate = TableEncryptionService.Convert(this.EnhancePierceRate, key); + _o.EnhanceMysticRate = TableEncryptionService.Convert(this.EnhanceMysticRate, key); + _o.EnhanceSonicRate = TableEncryptionService.Convert(this.EnhanceSonicRate, key); + _o.EnhanceSiegeRate = TableEncryptionService.Convert(this.EnhanceSiegeRate, key); + _o.EnhanceNormalRate = TableEncryptionService.Convert(this.EnhanceNormalRate, key); + _o.EnhanceLightArmorRate = TableEncryptionService.Convert(this.EnhanceLightArmorRate, key); + _o.EnhanceHeavyArmorRate = TableEncryptionService.Convert(this.EnhanceHeavyArmorRate, key); + _o.EnhanceUnarmedRate = TableEncryptionService.Convert(this.EnhanceUnarmedRate, key); + _o.EnhanceElasticArmorRate = TableEncryptionService.Convert(this.EnhanceElasticArmorRate, key); + _o.EnhanceStructureRate = TableEncryptionService.Convert(this.EnhanceStructureRate, key); + _o.EnhanceNormalArmorRate = TableEncryptionService.Convert(this.EnhanceNormalArmorRate, key); + _o.ExtendBuffDuration = TableEncryptionService.Convert(this.ExtendBuffDuration, key); + _o.ExtendDebuffDuration = TableEncryptionService.Convert(this.ExtendDebuffDuration, key); + _o.ExtendCrowdControlDuration = TableEncryptionService.Convert(this.ExtendCrowdControlDuration, key); + _o.AmmoCount = TableEncryptionService.Convert(this.AmmoCount, key); + _o.AmmoCost = TableEncryptionService.Convert(this.AmmoCost, key); + _o.IgnoreDelayCount = TableEncryptionService.Convert(this.IgnoreDelayCount, key); + _o.NormalAttackSpeed = TableEncryptionService.Convert(this.NormalAttackSpeed, key); + _o.Range = TableEncryptionService.Convert(this.Range, key); + _o.InitialRangeRate = TableEncryptionService.Convert(this.InitialRangeRate, key); + _o.MoveSpeed = TableEncryptionService.Convert(this.MoveSpeed, key); + _o.SightPoint = TableEncryptionService.Convert(this.SightPoint, key); + _o.ActiveGauge = TableEncryptionService.Convert(this.ActiveGauge, key); + _o.GroggyGauge = TableEncryptionService.Convert(this.GroggyGauge, key); + _o.GroggyTime = TableEncryptionService.Convert(this.GroggyTime, key); + _o.StrategyMobility = TableEncryptionService.Convert(this.StrategyMobility, key); + _o.ActionCount = TableEncryptionService.Convert(this.ActionCount, key); + _o.StrategySightRange = TableEncryptionService.Convert(this.StrategySightRange, key); + _o.DamageRatio = TableEncryptionService.Convert(this.DamageRatio, key); + _o.DamagedRatio = TableEncryptionService.Convert(this.DamagedRatio, key); + _o.DamageRatio2Increase = TableEncryptionService.Convert(this.DamageRatio2Increase, key); + _o.DamageRatio2Decrease = TableEncryptionService.Convert(this.DamageRatio2Decrease, key); + _o.DamagedRatio2Increase = TableEncryptionService.Convert(this.DamagedRatio2Increase, key); + _o.DamagedRatio2Decrease = TableEncryptionService.Convert(this.DamagedRatio2Decrease, key); + _o.ExDamagedRatioIncrease = TableEncryptionService.Convert(this.ExDamagedRatioIncrease, key); + _o.ExDamagedRatioDecrease = TableEncryptionService.Convert(this.ExDamagedRatioDecrease, key); + _o.StreetBattleAdaptation = TableEncryptionService.Convert(this.StreetBattleAdaptation, key); + _o.OutdoorBattleAdaptation = TableEncryptionService.Convert(this.OutdoorBattleAdaptation, key); + _o.IndoorBattleAdaptation = TableEncryptionService.Convert(this.IndoorBattleAdaptation, key); + _o.RegenCost = TableEncryptionService.Convert(this.RegenCost, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterStatExcel( + builder, + _o.CharacterId, + _o.StabilityRate, + _o.StabilityPoint, + _o.AttackPower1, + _o.AttackPower100, + _o.MaxHP1, + _o.MaxHP100, + _o.DefensePower1, + _o.DefensePower100, + _o.HealPower1, + _o.HealPower100, + _o.DodgePoint, + _o.AccuracyPoint, + _o.CriticalPoint, + _o.CriticalResistPoint, + _o.CriticalDamageRate, + _o.CriticalDamageResistRate, + _o.BlockRate, + _o.HealEffectivenessRate, + _o.OppressionPower, + _o.OppressionResist, + _o.DefensePenetration1, + _o.DefensePenetration100, + _o.DefensePenetrationResist1, + _o.DefensePenetrationResist100, + _o.EnhanceExplosionRate, + _o.EnhancePierceRate, + _o.EnhanceMysticRate, + _o.EnhanceSonicRate, + _o.EnhanceSiegeRate, + _o.EnhanceNormalRate, + _o.EnhanceLightArmorRate, + _o.EnhanceHeavyArmorRate, + _o.EnhanceUnarmedRate, + _o.EnhanceElasticArmorRate, + _o.EnhanceStructureRate, + _o.EnhanceNormalArmorRate, + _o.ExtendBuffDuration, + _o.ExtendDebuffDuration, + _o.ExtendCrowdControlDuration, + _o.AmmoCount, + _o.AmmoCost, + _o.IgnoreDelayCount, + _o.NormalAttackSpeed, + _o.Range, + _o.InitialRangeRate, + _o.MoveSpeed, + _o.SightPoint, + _o.ActiveGauge, + _o.GroggyGauge, + _o.GroggyTime, + _o.StrategyMobility, + _o.ActionCount, + _o.StrategySightRange, + _o.DamageRatio, + _o.DamagedRatio, + _o.DamageRatio2Increase, + _o.DamageRatio2Decrease, + _o.DamagedRatio2Increase, + _o.DamagedRatio2Decrease, + _o.ExDamagedRatioIncrease, + _o.ExDamagedRatioDecrease, + _o.StreetBattleAdaptation, + _o.OutdoorBattleAdaptation, + _o.IndoorBattleAdaptation, + _o.RegenCost); + } +} + +public class CharacterStatExcelT +{ + public long CharacterId { get; set; } + public long StabilityRate { get; set; } + public long StabilityPoint { get; set; } + public long AttackPower1 { get; set; } + public long AttackPower100 { get; set; } + public long MaxHP1 { get; set; } + public long MaxHP100 { get; set; } + public long DefensePower1 { get; set; } + public long DefensePower100 { get; set; } + public long HealPower1 { get; set; } + public long HealPower100 { get; set; } + public long DodgePoint { get; set; } + public long AccuracyPoint { get; set; } + public long CriticalPoint { get; set; } + public long CriticalResistPoint { get; set; } + public long CriticalDamageRate { get; set; } + public long CriticalDamageResistRate { get; set; } + public long BlockRate { get; set; } + public long HealEffectivenessRate { get; set; } + public long OppressionPower { get; set; } + public long OppressionResist { get; set; } + public long DefensePenetration1 { get; set; } + public long DefensePenetration100 { get; set; } + public long DefensePenetrationResist1 { get; set; } + public long DefensePenetrationResist100 { get; set; } + public long EnhanceExplosionRate { get; set; } + public long EnhancePierceRate { get; set; } + public long EnhanceMysticRate { get; set; } + public long EnhanceSonicRate { get; set; } + public long EnhanceSiegeRate { get; set; } + public long EnhanceNormalRate { get; set; } + public long EnhanceLightArmorRate { get; set; } + public long EnhanceHeavyArmorRate { get; set; } + public long EnhanceUnarmedRate { get; set; } + public long EnhanceElasticArmorRate { get; set; } + public long EnhanceStructureRate { get; set; } + public long EnhanceNormalArmorRate { get; set; } + public long ExtendBuffDuration { get; set; } + public long ExtendDebuffDuration { get; set; } + public long ExtendCrowdControlDuration { get; set; } + public long AmmoCount { get; set; } + public long AmmoCost { get; set; } + public long IgnoreDelayCount { get; set; } + public long NormalAttackSpeed { get; set; } + public long Range { get; set; } + public long InitialRangeRate { get; set; } + public long MoveSpeed { get; set; } + public long SightPoint { get; set; } + public long ActiveGauge { get; set; } + public int GroggyGauge { get; set; } + public int GroggyTime { get; set; } + public long StrategyMobility { get; set; } + public long ActionCount { get; set; } + public long StrategySightRange { get; set; } + public long DamageRatio { get; set; } + public long DamagedRatio { get; set; } + public long DamageRatio2Increase { get; set; } + public long DamageRatio2Decrease { get; set; } + public long DamagedRatio2Increase { get; set; } + public long DamagedRatio2Decrease { get; set; } + public long ExDamagedRatioIncrease { get; set; } + public long ExDamagedRatioDecrease { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat StreetBattleAdaptation { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat OutdoorBattleAdaptation { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat IndoorBattleAdaptation { get; set; } + public long RegenCost { get; set; } + + public CharacterStatExcelT() { + this.CharacterId = 0; + this.StabilityRate = 0; + this.StabilityPoint = 0; + this.AttackPower1 = 0; + this.AttackPower100 = 0; + this.MaxHP1 = 0; + this.MaxHP100 = 0; + this.DefensePower1 = 0; + this.DefensePower100 = 0; + this.HealPower1 = 0; + this.HealPower100 = 0; + this.DodgePoint = 0; + this.AccuracyPoint = 0; + this.CriticalPoint = 0; + this.CriticalResistPoint = 0; + this.CriticalDamageRate = 0; + this.CriticalDamageResistRate = 0; + this.BlockRate = 0; + this.HealEffectivenessRate = 0; + this.OppressionPower = 0; + this.OppressionResist = 0; + this.DefensePenetration1 = 0; + this.DefensePenetration100 = 0; + this.DefensePenetrationResist1 = 0; + this.DefensePenetrationResist100 = 0; + this.EnhanceExplosionRate = 0; + this.EnhancePierceRate = 0; + this.EnhanceMysticRate = 0; + this.EnhanceSonicRate = 0; + this.EnhanceSiegeRate = 0; + this.EnhanceNormalRate = 0; + this.EnhanceLightArmorRate = 0; + this.EnhanceHeavyArmorRate = 0; + this.EnhanceUnarmedRate = 0; + this.EnhanceElasticArmorRate = 0; + this.EnhanceStructureRate = 0; + this.EnhanceNormalArmorRate = 0; + this.ExtendBuffDuration = 0; + this.ExtendDebuffDuration = 0; + this.ExtendCrowdControlDuration = 0; + this.AmmoCount = 0; + this.AmmoCost = 0; + this.IgnoreDelayCount = 0; + this.NormalAttackSpeed = 0; + this.Range = 0; + this.InitialRangeRate = 0; + this.MoveSpeed = 0; + this.SightPoint = 0; + this.ActiveGauge = 0; + this.GroggyGauge = 0; + this.GroggyTime = 0; + this.StrategyMobility = 0; + this.ActionCount = 0; + this.StrategySightRange = 0; + this.DamageRatio = 0; + this.DamagedRatio = 0; + this.DamageRatio2Increase = 0; + this.DamageRatio2Decrease = 0; + this.DamagedRatio2Increase = 0; + this.DamagedRatio2Decrease = 0; + this.ExDamagedRatioIncrease = 0; + this.ExDamagedRatioDecrease = 0; + this.StreetBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.OutdoorBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.IndoorBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.RegenCost = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatExcelTable.cs index d244500..2796a1d 100644 --- a/SCHALE.Common/FlatData/CharacterStatExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterStatExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterStatExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatExcelTableT UnPack() { + var _o = new CharacterStatExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterStatExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterStatExcelTable( + builder, + _DataList); + } +} + +public class CharacterStatExcelTableT +{ + public List DataList { get; set; } + + public CharacterStatExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs index 58fb0e8..e9b8966 100644 --- a/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatLimitExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct CharacterStatLimitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatLimitExcelT UnPack() { + var _o = new CharacterStatLimitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatLimitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatLimit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TacticEntityType = TableEncryptionService.Convert(this.TacticEntityType, key); + _o.StatType = TableEncryptionService.Convert(this.StatType, key); + _o.StatMinValue = TableEncryptionService.Convert(this.StatMinValue, key); + _o.StatMaxValue = TableEncryptionService.Convert(this.StatMaxValue, key); + _o.StatRatioMinValue = TableEncryptionService.Convert(this.StatRatioMinValue, key); + _o.StatRatioMaxValue = TableEncryptionService.Convert(this.StatRatioMaxValue, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatLimitExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterStatLimitExcel( + builder, + _o.Id, + _o.TacticEntityType, + _o.StatType, + _o.StatMinValue, + _o.StatMaxValue, + _o.StatRatioMinValue, + _o.StatRatioMaxValue); + } +} + +public class CharacterStatLimitExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get; set; } + public SCHALE.Common.FlatData.StatType StatType { get; set; } + public long StatMinValue { get; set; } + public long StatMaxValue { get; set; } + public long StatRatioMinValue { get; set; } + public long StatRatioMaxValue { get; set; } + + public CharacterStatLimitExcelT() { + this.Id = 0; + this.TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None; + this.StatType = SCHALE.Common.FlatData.StatType.None; + this.StatMinValue = 0; + this.StatMaxValue = 0; + this.StatRatioMinValue = 0; + this.StatRatioMaxValue = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs index c1e7fff..53ffc24 100644 --- a/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatLimitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterStatLimitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatLimitExcelTableT UnPack() { + var _o = new CharacterStatLimitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatLimitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatLimitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatLimitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterStatLimitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterStatLimitExcelTable( + builder, + _DataList); + } +} + +public class CharacterStatLimitExcelTableT +{ + public List DataList { get; set; } + + public CharacterStatLimitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs b/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs index 735a230..02d33bf 100644 --- a/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatsDetailExcel : IFlatbufferObject @@ -66,6 +67,50 @@ public struct CharacterStatsDetailExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatsDetailExcelT UnPack() { + var _o = new CharacterStatsDetailExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatsDetailExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatsDetail"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DetailShowStats = new List(); + for (var _j = 0; _j < this.DetailShowStatsLength; ++_j) {_o.DetailShowStats.Add(TableEncryptionService.Convert(this.DetailShowStats(_j), key));} + _o.IsStatsPercent = new List(); + for (var _j = 0; _j < this.IsStatsPercentLength; ++_j) {_o.IsStatsPercent.Add(TableEncryptionService.Convert(this.IsStatsPercent(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatsDetailExcelT _o) { + if (_o == null) return default(Offset); + var _DetailShowStats = default(VectorOffset); + if (_o.DetailShowStats != null) { + var __DetailShowStats = _o.DetailShowStats.ToArray(); + _DetailShowStats = CreateDetailShowStatsVector(builder, __DetailShowStats); + } + var _IsStatsPercent = default(VectorOffset); + if (_o.IsStatsPercent != null) { + var __IsStatsPercent = _o.IsStatsPercent.ToArray(); + _IsStatsPercent = CreateIsStatsPercentVector(builder, __IsStatsPercent); + } + return CreateCharacterStatsDetailExcel( + builder, + _o.Id, + _DetailShowStats, + _IsStatsPercent); + } +} + +public class CharacterStatsDetailExcelT +{ + public long Id { get; set; } + public List DetailShowStats { get; set; } + public List IsStatsPercent { get; set; } + + public CharacterStatsDetailExcelT() { + this.Id = 0; + this.DetailShowStats = null; + this.IsStatsPercent = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs index 8d9fd67..9173950 100644 --- a/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatsDetailExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterStatsDetailExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatsDetailExcelTableT UnPack() { + var _o = new CharacterStatsDetailExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatsDetailExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatsDetailExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatsDetailExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterStatsDetailExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterStatsDetailExcelTable( + builder, + _DataList); + } +} + +public class CharacterStatsDetailExcelTableT +{ + public List DataList { get; set; } + + public CharacterStatsDetailExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs index 5ba94af..fc9aa45 100644 --- a/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatsTransExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct CharacterStatsTransExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatsTransExcelT UnPack() { + var _o = new CharacterStatsTransExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatsTransExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatsTrans"); + _o.TransSupportStats = TableEncryptionService.Convert(this.TransSupportStats, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + _o.TransSupportStatsFactor = TableEncryptionService.Convert(this.TransSupportStatsFactor, key); + _o.StatTransType = TableEncryptionService.Convert(this.StatTransType, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatsTransExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterStatsTransExcel( + builder, + _o.TransSupportStats, + _o.EchelonExtensionType, + _o.TransSupportStatsFactor, + _o.StatTransType); + } +} + +public class CharacterStatsTransExcelT +{ + public SCHALE.Common.FlatData.StatType TransSupportStats { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + public int TransSupportStatsFactor { get; set; } + public SCHALE.Common.FlatData.StatTransType StatTransType { get; set; } + + public CharacterStatsTransExcelT() { + this.TransSupportStats = SCHALE.Common.FlatData.StatType.None; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + this.TransSupportStatsFactor = 0; + this.StatTransType = SCHALE.Common.FlatData.StatTransType.SpecialTransStat; + } } diff --git a/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs index 5d76a82..75460ca 100644 --- a/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterStatsTransExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterStatsTransExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterStatsTransExcelTableT UnPack() { + var _o = new CharacterStatsTransExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterStatsTransExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterStatsTransExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterStatsTransExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterStatsTransExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterStatsTransExcelTable( + builder, + _DataList); + } +} + +public class CharacterStatsTransExcelTableT +{ + public List DataList { get; set; } + + public CharacterStatsTransExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs b/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs index 5fed9b1..7d6af4b 100644 --- a/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs +++ b/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterTranscendenceExcel : IFlatbufferObject @@ -150,6 +151,112 @@ public struct CharacterTranscendenceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterTranscendenceExcelT UnPack() { + var _o = new CharacterTranscendenceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterTranscendenceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterTranscendence"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.MaxFavorLevel = new List(); + for (var _j = 0; _j < this.MaxFavorLevelLength; ++_j) {_o.MaxFavorLevel.Add(TableEncryptionService.Convert(this.MaxFavorLevel(_j), key));} + _o.StatBonusRateAttack = new List(); + for (var _j = 0; _j < this.StatBonusRateAttackLength; ++_j) {_o.StatBonusRateAttack.Add(TableEncryptionService.Convert(this.StatBonusRateAttack(_j), key));} + _o.StatBonusRateHP = new List(); + for (var _j = 0; _j < this.StatBonusRateHPLength; ++_j) {_o.StatBonusRateHP.Add(TableEncryptionService.Convert(this.StatBonusRateHP(_j), key));} + _o.StatBonusRateHeal = new List(); + for (var _j = 0; _j < this.StatBonusRateHealLength; ++_j) {_o.StatBonusRateHeal.Add(TableEncryptionService.Convert(this.StatBonusRateHeal(_j), key));} + _o.RecipeId = new List(); + for (var _j = 0; _j < this.RecipeIdLength; ++_j) {_o.RecipeId.Add(TableEncryptionService.Convert(this.RecipeId(_j), key));} + _o.SkillSlotA = new List(); + for (var _j = 0; _j < this.SkillSlotALength; ++_j) {_o.SkillSlotA.Add(TableEncryptionService.Convert(this.SkillSlotA(_j), key));} + _o.SkillSlotB = new List(); + for (var _j = 0; _j < this.SkillSlotBLength; ++_j) {_o.SkillSlotB.Add(TableEncryptionService.Convert(this.SkillSlotB(_j), key));} + _o.MaxlevelStar = new List(); + for (var _j = 0; _j < this.MaxlevelStarLength; ++_j) {_o.MaxlevelStar.Add(TableEncryptionService.Convert(this.MaxlevelStar(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterTranscendenceExcelT _o) { + if (_o == null) return default(Offset); + var _MaxFavorLevel = default(VectorOffset); + if (_o.MaxFavorLevel != null) { + var __MaxFavorLevel = _o.MaxFavorLevel.ToArray(); + _MaxFavorLevel = CreateMaxFavorLevelVector(builder, __MaxFavorLevel); + } + var _StatBonusRateAttack = default(VectorOffset); + if (_o.StatBonusRateAttack != null) { + var __StatBonusRateAttack = _o.StatBonusRateAttack.ToArray(); + _StatBonusRateAttack = CreateStatBonusRateAttackVector(builder, __StatBonusRateAttack); + } + var _StatBonusRateHP = default(VectorOffset); + if (_o.StatBonusRateHP != null) { + var __StatBonusRateHP = _o.StatBonusRateHP.ToArray(); + _StatBonusRateHP = CreateStatBonusRateHPVector(builder, __StatBonusRateHP); + } + var _StatBonusRateHeal = default(VectorOffset); + if (_o.StatBonusRateHeal != null) { + var __StatBonusRateHeal = _o.StatBonusRateHeal.ToArray(); + _StatBonusRateHeal = CreateStatBonusRateHealVector(builder, __StatBonusRateHeal); + } + var _RecipeId = default(VectorOffset); + if (_o.RecipeId != null) { + var __RecipeId = _o.RecipeId.ToArray(); + _RecipeId = CreateRecipeIdVector(builder, __RecipeId); + } + var _SkillSlotA = default(VectorOffset); + if (_o.SkillSlotA != null) { + var __SkillSlotA = new StringOffset[_o.SkillSlotA.Count]; + for (var _j = 0; _j < __SkillSlotA.Length; ++_j) { __SkillSlotA[_j] = builder.CreateString(_o.SkillSlotA[_j]); } + _SkillSlotA = CreateSkillSlotAVector(builder, __SkillSlotA); + } + var _SkillSlotB = default(VectorOffset); + if (_o.SkillSlotB != null) { + var __SkillSlotB = new StringOffset[_o.SkillSlotB.Count]; + for (var _j = 0; _j < __SkillSlotB.Length; ++_j) { __SkillSlotB[_j] = builder.CreateString(_o.SkillSlotB[_j]); } + _SkillSlotB = CreateSkillSlotBVector(builder, __SkillSlotB); + } + var _MaxlevelStar = default(VectorOffset); + if (_o.MaxlevelStar != null) { + var __MaxlevelStar = _o.MaxlevelStar.ToArray(); + _MaxlevelStar = CreateMaxlevelStarVector(builder, __MaxlevelStar); + } + return CreateCharacterTranscendenceExcel( + builder, + _o.CharacterId, + _MaxFavorLevel, + _StatBonusRateAttack, + _StatBonusRateHP, + _StatBonusRateHeal, + _RecipeId, + _SkillSlotA, + _SkillSlotB, + _MaxlevelStar); + } +} + +public class CharacterTranscendenceExcelT +{ + public long CharacterId { get; set; } + public List MaxFavorLevel { get; set; } + public List StatBonusRateAttack { get; set; } + public List StatBonusRateHP { get; set; } + public List StatBonusRateHeal { get; set; } + public List RecipeId { get; set; } + public List SkillSlotA { get; set; } + public List SkillSlotB { get; set; } + public List MaxlevelStar { get; set; } + + public CharacterTranscendenceExcelT() { + this.CharacterId = 0; + this.MaxFavorLevel = null; + this.StatBonusRateAttack = null; + this.StatBonusRateHP = null; + this.StatBonusRateHeal = null; + this.RecipeId = null; + this.SkillSlotA = null; + this.SkillSlotB = null; + this.MaxlevelStar = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs b/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs index 60025c4..0512642 100644 --- a/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterTranscendenceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterTranscendenceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterTranscendenceExcelTableT UnPack() { + var _o = new CharacterTranscendenceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterTranscendenceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterTranscendenceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterTranscendenceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterTranscendenceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterTranscendenceExcelTable( + builder, + _DataList); + } +} + +public class CharacterTranscendenceExcelTableT +{ + public List DataList { get; set; } + + public CharacterTranscendenceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs index a3d9395..f2e0905 100644 --- a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs +++ b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterVictoryInteractionExcel : IFlatbufferObject @@ -202,6 +203,138 @@ public struct CharacterVictoryInteractionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterVictoryInteractionExcelT UnPack() { + var _o = new CharacterVictoryInteractionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterVictoryInteractionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterVictoryInteraction"); + _o.InteractionId = TableEncryptionService.Convert(this.InteractionId, key); + _o.CostumeId01 = TableEncryptionService.Convert(this.CostumeId01, key); + _o.PositionIndex01 = TableEncryptionService.Convert(this.PositionIndex01, key); + _o.VictoryStartAnimationPath01 = TableEncryptionService.Convert(this.VictoryStartAnimationPath01, key); + _o.VictoryEndAnimationPath01 = TableEncryptionService.Convert(this.VictoryEndAnimationPath01, key); + _o.CostumeId02 = TableEncryptionService.Convert(this.CostumeId02, key); + _o.PositionIndex02 = TableEncryptionService.Convert(this.PositionIndex02, key); + _o.VictoryStartAnimationPath02 = TableEncryptionService.Convert(this.VictoryStartAnimationPath02, key); + _o.VictoryEndAnimationPath02 = TableEncryptionService.Convert(this.VictoryEndAnimationPath02, key); + _o.CostumeId03 = TableEncryptionService.Convert(this.CostumeId03, key); + _o.PositionIndex03 = TableEncryptionService.Convert(this.PositionIndex03, key); + _o.VictoryStartAnimationPath03 = TableEncryptionService.Convert(this.VictoryStartAnimationPath03, key); + _o.VictoryEndAnimationPath03 = TableEncryptionService.Convert(this.VictoryEndAnimationPath03, key); + _o.CostumeId04 = TableEncryptionService.Convert(this.CostumeId04, key); + _o.PositionIndex04 = TableEncryptionService.Convert(this.PositionIndex04, key); + _o.VictoryStartAnimationPath04 = TableEncryptionService.Convert(this.VictoryStartAnimationPath04, key); + _o.VictoryEndAnimationPath04 = TableEncryptionService.Convert(this.VictoryEndAnimationPath04, key); + _o.CostumeId05 = TableEncryptionService.Convert(this.CostumeId05, key); + _o.PositionIndex05 = TableEncryptionService.Convert(this.PositionIndex05, key); + _o.VictoryStartAnimationPath05 = TableEncryptionService.Convert(this.VictoryStartAnimationPath05, key); + _o.VictoryEndAnimationPath05 = TableEncryptionService.Convert(this.VictoryEndAnimationPath05, key); + _o.CostumeId06 = TableEncryptionService.Convert(this.CostumeId06, key); + _o.PositionIndex06 = TableEncryptionService.Convert(this.PositionIndex06, key); + _o.VictoryStartAnimationPath06 = TableEncryptionService.Convert(this.VictoryStartAnimationPath06, key); + _o.VictoryEndAnimationPath06 = TableEncryptionService.Convert(this.VictoryEndAnimationPath06, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterVictoryInteractionExcelT _o) { + if (_o == null) return default(Offset); + var _VictoryStartAnimationPath01 = _o.VictoryStartAnimationPath01 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath01); + var _VictoryEndAnimationPath01 = _o.VictoryEndAnimationPath01 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath01); + var _VictoryStartAnimationPath02 = _o.VictoryStartAnimationPath02 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath02); + var _VictoryEndAnimationPath02 = _o.VictoryEndAnimationPath02 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath02); + var _VictoryStartAnimationPath03 = _o.VictoryStartAnimationPath03 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath03); + var _VictoryEndAnimationPath03 = _o.VictoryEndAnimationPath03 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath03); + var _VictoryStartAnimationPath04 = _o.VictoryStartAnimationPath04 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath04); + var _VictoryEndAnimationPath04 = _o.VictoryEndAnimationPath04 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath04); + var _VictoryStartAnimationPath05 = _o.VictoryStartAnimationPath05 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath05); + var _VictoryEndAnimationPath05 = _o.VictoryEndAnimationPath05 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath05); + var _VictoryStartAnimationPath06 = _o.VictoryStartAnimationPath06 == null ? default(StringOffset) : builder.CreateString(_o.VictoryStartAnimationPath06); + var _VictoryEndAnimationPath06 = _o.VictoryEndAnimationPath06 == null ? default(StringOffset) : builder.CreateString(_o.VictoryEndAnimationPath06); + return CreateCharacterVictoryInteractionExcel( + builder, + _o.InteractionId, + _o.CostumeId01, + _o.PositionIndex01, + _VictoryStartAnimationPath01, + _VictoryEndAnimationPath01, + _o.CostumeId02, + _o.PositionIndex02, + _VictoryStartAnimationPath02, + _VictoryEndAnimationPath02, + _o.CostumeId03, + _o.PositionIndex03, + _VictoryStartAnimationPath03, + _VictoryEndAnimationPath03, + _o.CostumeId04, + _o.PositionIndex04, + _VictoryStartAnimationPath04, + _VictoryEndAnimationPath04, + _o.CostumeId05, + _o.PositionIndex05, + _VictoryStartAnimationPath05, + _VictoryEndAnimationPath05, + _o.CostumeId06, + _o.PositionIndex06, + _VictoryStartAnimationPath06, + _VictoryEndAnimationPath06); + } +} + +public class CharacterVictoryInteractionExcelT +{ + public long InteractionId { get; set; } + public long CostumeId01 { get; set; } + public int PositionIndex01 { get; set; } + public string VictoryStartAnimationPath01 { get; set; } + public string VictoryEndAnimationPath01 { get; set; } + public long CostumeId02 { get; set; } + public int PositionIndex02 { get; set; } + public string VictoryStartAnimationPath02 { get; set; } + public string VictoryEndAnimationPath02 { get; set; } + public long CostumeId03 { get; set; } + public int PositionIndex03 { get; set; } + public string VictoryStartAnimationPath03 { get; set; } + public string VictoryEndAnimationPath03 { get; set; } + public long CostumeId04 { get; set; } + public int PositionIndex04 { get; set; } + public string VictoryStartAnimationPath04 { get; set; } + public string VictoryEndAnimationPath04 { get; set; } + public long CostumeId05 { get; set; } + public int PositionIndex05 { get; set; } + public string VictoryStartAnimationPath05 { get; set; } + public string VictoryEndAnimationPath05 { get; set; } + public long CostumeId06 { get; set; } + public int PositionIndex06 { get; set; } + public string VictoryStartAnimationPath06 { get; set; } + public string VictoryEndAnimationPath06 { get; set; } + + public CharacterVictoryInteractionExcelT() { + this.InteractionId = 0; + this.CostumeId01 = 0; + this.PositionIndex01 = 0; + this.VictoryStartAnimationPath01 = null; + this.VictoryEndAnimationPath01 = null; + this.CostumeId02 = 0; + this.PositionIndex02 = 0; + this.VictoryStartAnimationPath02 = null; + this.VictoryEndAnimationPath02 = null; + this.CostumeId03 = 0; + this.PositionIndex03 = 0; + this.VictoryStartAnimationPath03 = null; + this.VictoryEndAnimationPath03 = null; + this.CostumeId04 = 0; + this.PositionIndex04 = 0; + this.VictoryStartAnimationPath04 = null; + this.VictoryEndAnimationPath04 = null; + this.CostumeId05 = 0; + this.PositionIndex05 = 0; + this.VictoryStartAnimationPath05 = null; + this.VictoryEndAnimationPath05 = null; + this.CostumeId06 = 0; + this.PositionIndex06 = 0; + this.VictoryStartAnimationPath06 = null; + this.VictoryEndAnimationPath06 = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs index f3d021d..5b9f969 100644 --- a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterVictoryInteractionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterVictoryInteractionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterVictoryInteractionExcelTableT UnPack() { + var _o = new CharacterVictoryInteractionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterVictoryInteractionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterVictoryInteractionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterVictoryInteractionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterVictoryInteractionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterVictoryInteractionExcelTable( + builder, + _DataList); + } +} + +public class CharacterVictoryInteractionExcelTableT +{ + public List DataList { get; set; } + + public CharacterVictoryInteractionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterVoiceExcel.cs b/SCHALE.Common/FlatData/CharacterVoiceExcel.cs index 6d7935a..7da8705 100644 --- a/SCHALE.Common/FlatData/CharacterVoiceExcel.cs +++ b/SCHALE.Common/FlatData/CharacterVoiceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterVoiceExcel : IFlatbufferObject @@ -134,6 +135,108 @@ public struct CharacterVoiceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterVoiceExcelT UnPack() { + var _o = new CharacterVoiceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterVoiceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterVoice"); + _o.CharacterVoiceUniqueId = TableEncryptionService.Convert(this.CharacterVoiceUniqueId, key); + _o.CharacterVoiceGroupId = TableEncryptionService.Convert(this.CharacterVoiceGroupId, key); + _o.VoiceHash = TableEncryptionService.Convert(this.VoiceHash, key); + _o.OnlyOne = TableEncryptionService.Convert(this.OnlyOne, key); + _o.Priority = TableEncryptionService.Convert(this.Priority, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); + _o.CVCollectionType = TableEncryptionService.Convert(this.CVCollectionType, key); + _o.UnlockFavorRank = TableEncryptionService.Convert(this.UnlockFavorRank, key); + _o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key); + _o.Nation_ = new List(); + for (var _j = 0; _j < this.Nation_Length; ++_j) {_o.Nation_.Add(TableEncryptionService.Convert(this.Nation_(_j), key));} + _o.Volume = new List(); + for (var _j = 0; _j < this.VolumeLength; ++_j) {_o.Volume.Add(TableEncryptionService.Convert(this.Volume(_j), key));} + _o.Delay = new List(); + for (var _j = 0; _j < this.DelayLength; ++_j) {_o.Delay.Add(TableEncryptionService.Convert(this.Delay(_j), key));} + _o.Path = new List(); + for (var _j = 0; _j < this.PathLength; ++_j) {_o.Path.Add(TableEncryptionService.Convert(this.Path(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterVoiceExcelT _o) { + if (_o == null) return default(Offset); + var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup); + var _Nation_ = default(VectorOffset); + if (_o.Nation_ != null) { + var __Nation_ = _o.Nation_.ToArray(); + _Nation_ = CreateNation_Vector(builder, __Nation_); + } + var _Volume = default(VectorOffset); + if (_o.Volume != null) { + var __Volume = _o.Volume.ToArray(); + _Volume = CreateVolumeVector(builder, __Volume); + } + var _Delay = default(VectorOffset); + if (_o.Delay != null) { + var __Delay = _o.Delay.ToArray(); + _Delay = CreateDelayVector(builder, __Delay); + } + var _Path = default(VectorOffset); + if (_o.Path != null) { + var __Path = new StringOffset[_o.Path.Count]; + for (var _j = 0; _j < __Path.Length; ++_j) { __Path[_j] = builder.CreateString(_o.Path[_j]); } + _Path = CreatePathVector(builder, __Path); + } + return CreateCharacterVoiceExcel( + builder, + _o.CharacterVoiceUniqueId, + _o.CharacterVoiceGroupId, + _o.VoiceHash, + _o.OnlyOne, + _o.Priority, + _o.DisplayOrder, + _o.CollectionVisible, + _o.CVCollectionType, + _o.UnlockFavorRank, + _LocalizeCVGroup, + _Nation_, + _Volume, + _Delay, + _Path); + } +} + +public class CharacterVoiceExcelT +{ + public long CharacterVoiceUniqueId { get; set; } + public long CharacterVoiceGroupId { get; set; } + public uint VoiceHash { get; set; } + public bool OnlyOne { get; set; } + public int Priority { get; set; } + public long DisplayOrder { get; set; } + public bool CollectionVisible { get; set; } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get; set; } + public long UnlockFavorRank { get; set; } + public string LocalizeCVGroup { get; set; } + public List Nation_ { get; set; } + public List Volume { get; set; } + public List Delay { get; set; } + public List Path { get; set; } + + public CharacterVoiceExcelT() { + this.CharacterVoiceUniqueId = 0; + this.CharacterVoiceGroupId = 0; + this.VoiceHash = 0; + this.OnlyOne = false; + this.Priority = 0; + this.DisplayOrder = 0; + this.CollectionVisible = false; + this.CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal; + this.UnlockFavorRank = 0; + this.LocalizeCVGroup = null; + this.Nation_ = null; + this.Volume = null; + this.Delay = null; + this.Path = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponExcel.cs index 078d5dc..fe24884 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponExcel.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponExcel : IFlatbufferObject @@ -166,6 +167,128 @@ public struct CharacterWeaponExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponExcelT UnPack() { + var _o = new CharacterWeaponExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeapon"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.SetRecipe = TableEncryptionService.Convert(this.SetRecipe, key); + _o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key); + _o.AttackPower = TableEncryptionService.Convert(this.AttackPower, key); + _o.AttackPower100 = TableEncryptionService.Convert(this.AttackPower100, key); + _o.MaxHP = TableEncryptionService.Convert(this.MaxHP, key); + _o.MaxHP100 = TableEncryptionService.Convert(this.MaxHP100, key); + _o.HealPower = TableEncryptionService.Convert(this.HealPower, key); + _o.HealPower100 = TableEncryptionService.Convert(this.HealPower100, key); + _o.Unlock = new List(); + for (var _j = 0; _j < this.UnlockLength; ++_j) {_o.Unlock.Add(TableEncryptionService.Convert(this.Unlock(_j), key));} + _o.RecipeId = new List(); + for (var _j = 0; _j < this.RecipeIdLength; ++_j) {_o.RecipeId.Add(TableEncryptionService.Convert(this.RecipeId(_j), key));} + _o.MaxLevel = new List(); + for (var _j = 0; _j < this.MaxLevelLength; ++_j) {_o.MaxLevel.Add(TableEncryptionService.Convert(this.MaxLevel(_j), key));} + _o.LearnSkillSlot = new List(); + for (var _j = 0; _j < this.LearnSkillSlotLength; ++_j) {_o.LearnSkillSlot.Add(TableEncryptionService.Convert(this.LearnSkillSlot(_j), key));} + _o.StatType = new List(); + for (var _j = 0; _j < this.StatTypeLength; ++_j) {_o.StatType.Add(TableEncryptionService.Convert(this.StatType(_j), key));} + _o.StatValue = new List(); + for (var _j = 0; _j < this.StatValueLength; ++_j) {_o.StatValue.Add(TableEncryptionService.Convert(this.StatValue(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + var _Unlock = default(VectorOffset); + if (_o.Unlock != null) { + var __Unlock = _o.Unlock.ToArray(); + _Unlock = CreateUnlockVector(builder, __Unlock); + } + var _RecipeId = default(VectorOffset); + if (_o.RecipeId != null) { + var __RecipeId = _o.RecipeId.ToArray(); + _RecipeId = CreateRecipeIdVector(builder, __RecipeId); + } + var _MaxLevel = default(VectorOffset); + if (_o.MaxLevel != null) { + var __MaxLevel = _o.MaxLevel.ToArray(); + _MaxLevel = CreateMaxLevelVector(builder, __MaxLevel); + } + var _LearnSkillSlot = default(VectorOffset); + if (_o.LearnSkillSlot != null) { + var __LearnSkillSlot = new StringOffset[_o.LearnSkillSlot.Count]; + for (var _j = 0; _j < __LearnSkillSlot.Length; ++_j) { __LearnSkillSlot[_j] = builder.CreateString(_o.LearnSkillSlot[_j]); } + _LearnSkillSlot = CreateLearnSkillSlotVector(builder, __LearnSkillSlot); + } + var _StatType = default(VectorOffset); + if (_o.StatType != null) { + var __StatType = _o.StatType.ToArray(); + _StatType = CreateStatTypeVector(builder, __StatType); + } + var _StatValue = default(VectorOffset); + if (_o.StatValue != null) { + var __StatValue = _o.StatValue.ToArray(); + _StatValue = CreateStatValueVector(builder, __StatValue); + } + return CreateCharacterWeaponExcel( + builder, + _o.Id, + _ImagePath, + _o.SetRecipe, + _o.StatLevelUpType, + _o.AttackPower, + _o.AttackPower100, + _o.MaxHP, + _o.MaxHP100, + _o.HealPower, + _o.HealPower100, + _Unlock, + _RecipeId, + _MaxLevel, + _LearnSkillSlot, + _StatType, + _StatValue); + } +} + +public class CharacterWeaponExcelT +{ + public long Id { get; set; } + public string ImagePath { get; set; } + public long SetRecipe { get; set; } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; } + public long AttackPower { get; set; } + public long AttackPower100 { get; set; } + public long MaxHP { get; set; } + public long MaxHP100 { get; set; } + public long HealPower { get; set; } + public long HealPower100 { get; set; } + public List Unlock { get; set; } + public List RecipeId { get; set; } + public List MaxLevel { get; set; } + public List LearnSkillSlot { get; set; } + public List StatType { get; set; } + public List StatValue { get; set; } + + public CharacterWeaponExcelT() { + this.Id = 0; + this.ImagePath = null; + this.SetRecipe = 0; + this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard; + this.AttackPower = 0; + this.AttackPower100 = 0; + this.MaxHP = 0; + this.MaxHP100 = 0; + this.HealPower = 0; + this.HealPower100 = 0; + this.Unlock = null; + this.RecipeId = null; + this.MaxLevel = null; + this.LearnSkillSlot = null; + this.StatType = null; + this.StatValue = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs index 41db1d7..e52d045 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterWeaponExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponExcelTableT UnPack() { + var _o = new CharacterWeaponExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeaponExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterWeaponExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterWeaponExcelTable( + builder, + _DataList); + } +} + +public class CharacterWeaponExcelTableT +{ + public List DataList { get; set; } + + public CharacterWeaponExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs index de4b7e0..cb9086e 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponExpBonusExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct CharacterWeaponExpBonusExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponExpBonusExcelT UnPack() { + var _o = new CharacterWeaponExpBonusExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponExpBonusExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeaponExpBonus"); + _o.WeaponType = TableEncryptionService.Convert(this.WeaponType, key); + _o.WeaponExpGrowthA = TableEncryptionService.Convert(this.WeaponExpGrowthA, key); + _o.WeaponExpGrowthB = TableEncryptionService.Convert(this.WeaponExpGrowthB, key); + _o.WeaponExpGrowthC = TableEncryptionService.Convert(this.WeaponExpGrowthC, key); + _o.WeaponExpGrowthZ = TableEncryptionService.Convert(this.WeaponExpGrowthZ, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponExpBonusExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterWeaponExpBonusExcel( + builder, + _o.WeaponType, + _o.WeaponExpGrowthA, + _o.WeaponExpGrowthB, + _o.WeaponExpGrowthC, + _o.WeaponExpGrowthZ); + } +} + +public class CharacterWeaponExpBonusExcelT +{ + public SCHALE.Common.FlatData.WeaponType WeaponType { get; set; } + public int WeaponExpGrowthA { get; set; } + public int WeaponExpGrowthB { get; set; } + public int WeaponExpGrowthC { get; set; } + public int WeaponExpGrowthZ { get; set; } + + public CharacterWeaponExpBonusExcelT() { + this.WeaponType = SCHALE.Common.FlatData.WeaponType.None; + this.WeaponExpGrowthA = 0; + this.WeaponExpGrowthB = 0; + this.WeaponExpGrowthC = 0; + this.WeaponExpGrowthZ = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs index b1b1597..48fc813 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponExpBonusExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterWeaponExpBonusExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponExpBonusExcelTableT UnPack() { + var _o = new CharacterWeaponExpBonusExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponExpBonusExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeaponExpBonusExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponExpBonusExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterWeaponExpBonusExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterWeaponExpBonusExcelTable( + builder, + _DataList); + } +} + +public class CharacterWeaponExpBonusExcelTableT +{ + public List DataList { get; set; } + + public CharacterWeaponExpBonusExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs index 96b1ff3..f813947 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponLevelExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct CharacterWeaponLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponLevelExcelT UnPack() { + var _o = new CharacterWeaponLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeaponLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Exp = TableEncryptionService.Convert(this.Exp, key); + _o.TotalExp = TableEncryptionService.Convert(this.TotalExp, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponLevelExcelT _o) { + if (_o == null) return default(Offset); + return CreateCharacterWeaponLevelExcel( + builder, + _o.Level, + _o.Exp, + _o.TotalExp); + } +} + +public class CharacterWeaponLevelExcelT +{ + public int Level { get; set; } + public long Exp { get; set; } + public long TotalExp { get; set; } + + public CharacterWeaponLevelExcelT() { + this.Level = 0; + this.Exp = 0; + this.TotalExp = 0; + } } diff --git a/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs index 0ee1bfa..e8cd1f7 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CharacterWeaponLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CharacterWeaponLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CharacterWeaponLevelExcelTableT UnPack() { + var _o = new CharacterWeaponLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterWeaponLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CharacterWeaponLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CharacterWeaponLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterWeaponLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCharacterWeaponLevelExcelTable( + builder, + _DataList); + } +} + +public class CharacterWeaponLevelExcelTableT +{ + public List DataList { get; set; } + + public CharacterWeaponLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs index 9ccf8fa..14b4831 100644 --- a/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs +++ b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClanAssistSlotExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct ClanAssistSlotExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClanAssistSlotExcelT UnPack() { + var _o = new ClanAssistSlotExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClanAssistSlotExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ClanAssistSlot"); + _o.SlotId = TableEncryptionService.Convert(this.SlotId, key); + _o.EchelonType = TableEncryptionService.Convert(this.EchelonType, key); + _o.SlotNumber = TableEncryptionService.Convert(this.SlotNumber, key); + _o.AssistTermRewardPeriodFromSec = TableEncryptionService.Convert(this.AssistTermRewardPeriodFromSec, key); + _o.AssistRewardLimit = TableEncryptionService.Convert(this.AssistRewardLimit, key); + _o.AssistRentRewardDailyMaxCount = TableEncryptionService.Convert(this.AssistRentRewardDailyMaxCount, key); + _o.AssistRentalFeeAmount = TableEncryptionService.Convert(this.AssistRentalFeeAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ClanAssistSlotExcelT _o) { + if (_o == null) return default(Offset); + return CreateClanAssistSlotExcel( + builder, + _o.SlotId, + _o.EchelonType, + _o.SlotNumber, + _o.AssistTermRewardPeriodFromSec, + _o.AssistRewardLimit, + _o.AssistRentRewardDailyMaxCount, + _o.AssistRentalFeeAmount); + } +} + +public class ClanAssistSlotExcelT +{ + public long SlotId { get; set; } + public SCHALE.Common.FlatData.EchelonType EchelonType { get; set; } + public long SlotNumber { get; set; } + public long AssistTermRewardPeriodFromSec { get; set; } + public long AssistRewardLimit { get; set; } + public long AssistRentRewardDailyMaxCount { get; set; } + public long AssistRentalFeeAmount { get; set; } + + public ClanAssistSlotExcelT() { + this.SlotId = 0; + this.EchelonType = SCHALE.Common.FlatData.EchelonType.None; + this.SlotNumber = 0; + this.AssistTermRewardPeriodFromSec = 0; + this.AssistRewardLimit = 0; + this.AssistRentRewardDailyMaxCount = 0; + this.AssistRentalFeeAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs index 19e4fd1..e6fe9e5 100644 --- a/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs +++ b/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClanAssistSlotExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ClanAssistSlotExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClanAssistSlotExcelTableT UnPack() { + var _o = new ClanAssistSlotExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClanAssistSlotExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ClanAssistSlotExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ClanAssistSlotExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ClanAssistSlotExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateClanAssistSlotExcelTable( + builder, + _DataList); + } +} + +public class ClanAssistSlotExcelTableT +{ + public List DataList { get; set; } + + public ClanAssistSlotExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs b/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs index b10f57e..32b7d2c 100644 --- a/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs +++ b/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClanChattingEmojiExcel : IFlatbufferObject @@ -62,6 +63,48 @@ public struct ClanChattingEmojiExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClanChattingEmojiExcelT UnPack() { + var _o = new ClanChattingEmojiExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClanChattingEmojiExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ClanChattingEmoji"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TabGroupId = TableEncryptionService.Convert(this.TabGroupId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.ImagePathKr = TableEncryptionService.Convert(this.ImagePathKr, key); + _o.ImagePathJp = TableEncryptionService.Convert(this.ImagePathJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, ClanChattingEmojiExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePathKr = _o.ImagePathKr == null ? default(StringOffset) : builder.CreateString(_o.ImagePathKr); + var _ImagePathJp = _o.ImagePathJp == null ? default(StringOffset) : builder.CreateString(_o.ImagePathJp); + return CreateClanChattingEmojiExcel( + builder, + _o.Id, + _o.TabGroupId, + _o.DisplayOrder, + _ImagePathKr, + _ImagePathJp); + } +} + +public class ClanChattingEmojiExcelT +{ + public long Id { get; set; } + public int TabGroupId { get; set; } + public int DisplayOrder { get; set; } + public string ImagePathKr { get; set; } + public string ImagePathJp { get; set; } + + public ClanChattingEmojiExcelT() { + this.Id = 0; + this.TabGroupId = 0; + this.DisplayOrder = 0; + this.ImagePathKr = null; + this.ImagePathJp = null; + } } diff --git a/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs b/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs deleted file mode 100644 index 625fe40..0000000 --- a/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct ClanChattingEmojiExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ClanChattingEmojiExcelTable GetRootAsClanChattingEmojiExcelTable(ByteBuffer _bb) { return GetRootAsClanChattingEmojiExcelTable(_bb, new ClanChattingEmojiExcelTable()); } - public static ClanChattingEmojiExcelTable GetRootAsClanChattingEmojiExcelTable(ByteBuffer _bb, ClanChattingEmojiExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ClanChattingEmojiExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ClanChattingEmojiExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanChattingEmojiExcel?)(new SCHALE.Common.FlatData.ClanChattingEmojiExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateClanChattingEmojiExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ClanChattingEmojiExcelTable.AddDataList(builder, DataListOffset); - return ClanChattingEmojiExcelTable.EndClanChattingEmojiExcelTable(builder); - } - - public static void StartClanChattingEmojiExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndClanChattingEmojiExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class ClanChattingEmojiExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClanChattingEmojiExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ClanRewardExcel.cs b/SCHALE.Common/FlatData/ClanRewardExcel.cs index 0cff356..1042436 100644 --- a/SCHALE.Common/FlatData/ClanRewardExcel.cs +++ b/SCHALE.Common/FlatData/ClanRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClanRewardExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct ClanRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClanRewardExcelT UnPack() { + var _o = new ClanRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClanRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ClanReward"); + _o.ClanRewardType = TableEncryptionService.Convert(this.ClanRewardType, key); + _o.EchelonType = TableEncryptionService.Convert(this.EchelonType, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ClanRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateClanRewardExcel( + builder, + _o.ClanRewardType, + _o.EchelonType, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount); + } +} + +public class ClanRewardExcelT +{ + public SCHALE.Common.FlatData.ClanRewardType ClanRewardType { get; set; } + public SCHALE.Common.FlatData.EchelonType EchelonType { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + + public ClanRewardExcelT() { + this.ClanRewardType = SCHALE.Common.FlatData.ClanRewardType.None; + this.EchelonType = SCHALE.Common.FlatData.EchelonType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ClanRewardExcelTable.cs b/SCHALE.Common/FlatData/ClanRewardExcelTable.cs index 212723a..42ec640 100644 --- a/SCHALE.Common/FlatData/ClanRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/ClanRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClanRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ClanRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClanRewardExcelTableT UnPack() { + var _o = new ClanRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClanRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ClanRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ClanRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ClanRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateClanRewardExcelTable( + builder, + _DataList); + } +} + +public class ClanRewardExcelTableT +{ + public List DataList { get; set; } + + public ClanRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs index 0527c03..a55218c 100644 --- a/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs +++ b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClearDeckRuleExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct ClearDeckRuleExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClearDeckRuleExcelT UnPack() { + var _o = new ClearDeckRuleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClearDeckRuleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ClearDeckRule"); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.SizeLimit = TableEncryptionService.Convert(this.SizeLimit, key); + } + public static Offset Pack(FlatBufferBuilder builder, ClearDeckRuleExcelT _o) { + if (_o == null) return default(Offset); + return CreateClearDeckRuleExcel( + builder, + _o.ContentType, + _o.SizeLimit); + } +} + +public class ClearDeckRuleExcelT +{ + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long SizeLimit { get; set; } + + public ClearDeckRuleExcelT() { + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.SizeLimit = 0; + } } diff --git a/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs b/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs index bbc7462..3b23c96 100644 --- a/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs +++ b/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ClearDeckRuleExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ClearDeckRuleExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ClearDeckRuleExcelTableT UnPack() { + var _o = new ClearDeckRuleExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ClearDeckRuleExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ClearDeckRuleExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ClearDeckRuleExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ClearDeckRuleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateClearDeckRuleExcelTable( + builder, + _DataList); + } +} + +public class ClearDeckRuleExcelTableT +{ + public List DataList { get; set; } + + public ClearDeckRuleExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/Club.cs b/SCHALE.Common/FlatData/Club.cs index 198bf6e..ceef848 100644 --- a/SCHALE.Common/FlatData/Club.cs +++ b/SCHALE.Common/FlatData/Club.cs @@ -55,6 +55,7 @@ public enum Club : int LaborParty = 45, KnowledgeLiberationFront = 46, Hyakkayouran = 47, + ShinySparkleSociety = 48, }; diff --git a/SCHALE.Common/FlatData/CombatEmojiExcel.cs b/SCHALE.Common/FlatData/CombatEmojiExcel.cs index b334c1c..74bc832 100644 --- a/SCHALE.Common/FlatData/CombatEmojiExcel.cs +++ b/SCHALE.Common/FlatData/CombatEmojiExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CombatEmojiExcel : IFlatbufferObject @@ -62,6 +63,58 @@ public struct CombatEmojiExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CombatEmojiExcelT UnPack() { + var _o = new CombatEmojiExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CombatEmojiExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CombatEmoji"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.EmojiEvent = TableEncryptionService.Convert(this.EmojiEvent, key); + _o.OrderOfPriority = TableEncryptionService.Convert(this.OrderOfPriority, key); + _o.EmojiDuration = TableEncryptionService.Convert(this.EmojiDuration, key); + _o.EmojiReversal = TableEncryptionService.Convert(this.EmojiReversal, key); + _o.EmojiTurnOn = TableEncryptionService.Convert(this.EmojiTurnOn, key); + _o.ShowEmojiDelay = TableEncryptionService.Convert(this.ShowEmojiDelay, key); + _o.ShowDefaultBG = TableEncryptionService.Convert(this.ShowDefaultBG, key); + } + public static Offset Pack(FlatBufferBuilder builder, CombatEmojiExcelT _o) { + if (_o == null) return default(Offset); + return CreateCombatEmojiExcel( + builder, + _o.UniqueId, + _o.EmojiEvent, + _o.OrderOfPriority, + _o.EmojiDuration, + _o.EmojiReversal, + _o.EmojiTurnOn, + _o.ShowEmojiDelay, + _o.ShowDefaultBG); + } +} + +public class CombatEmojiExcelT +{ + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.EmojiEvent EmojiEvent { get; set; } + public int OrderOfPriority { get; set; } + public bool EmojiDuration { get; set; } + public bool EmojiReversal { get; set; } + public bool EmojiTurnOn { get; set; } + public int ShowEmojiDelay { get; set; } + public bool ShowDefaultBG { get; set; } + + public CombatEmojiExcelT() { + this.UniqueId = 0; + this.EmojiEvent = SCHALE.Common.FlatData.EmojiEvent.EnterConver; + this.OrderOfPriority = 0; + this.EmojiDuration = false; + this.EmojiReversal = false; + this.EmojiTurnOn = false; + this.ShowEmojiDelay = 0; + this.ShowDefaultBG = false; + } } diff --git a/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs b/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs deleted file mode 100644 index 68f130a..0000000 --- a/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct CombatEmojiExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CombatEmojiExcelTable GetRootAsCombatEmojiExcelTable(ByteBuffer _bb) { return GetRootAsCombatEmojiExcelTable(_bb, new CombatEmojiExcelTable()); } - public static CombatEmojiExcelTable GetRootAsCombatEmojiExcelTable(ByteBuffer _bb, CombatEmojiExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CombatEmojiExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.CombatEmojiExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CombatEmojiExcel?)(new SCHALE.Common.FlatData.CombatEmojiExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateCombatEmojiExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - CombatEmojiExcelTable.AddDataList(builder, DataListOffset); - return CombatEmojiExcelTable.EndCombatEmojiExcelTable(builder); - } - - public static void StartCombatEmojiExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndCombatEmojiExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class CombatEmojiExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CombatEmojiExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ConquestCalculateExcel.cs b/SCHALE.Common/FlatData/ConquestCalculateExcel.cs index 4502f9f..8a7a1a2 100644 --- a/SCHALE.Common/FlatData/ConquestCalculateExcel.cs +++ b/SCHALE.Common/FlatData/ConquestCalculateExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestCalculateExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct ConquestCalculateExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestCalculateExcelT UnPack() { + var _o = new ConquestCalculateExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestCalculateExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestCalculate"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.CalculateConditionParcelType = TableEncryptionService.Convert(this.CalculateConditionParcelType, key); + _o.CalculateConditionParcelUniqueId = TableEncryptionService.Convert(this.CalculateConditionParcelUniqueId, key); + _o.CalculateConditionParcelAmount = TableEncryptionService.Convert(this.CalculateConditionParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestCalculateExcelT _o) { + if (_o == null) return default(Offset); + return CreateConquestCalculateExcel( + builder, + _o.EventContentId, + _o.CalculateConditionParcelType, + _o.CalculateConditionParcelUniqueId, + _o.CalculateConditionParcelAmount); + } +} + +public class ConquestCalculateExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType { get; set; } + public long CalculateConditionParcelUniqueId { get; set; } + public long CalculateConditionParcelAmount { get; set; } + + public ConquestCalculateExcelT() { + this.EventContentId = 0; + this.CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CalculateConditionParcelUniqueId = 0; + this.CalculateConditionParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs b/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs index 3212836..f847bd5 100644 --- a/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestCalculateExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestCalculateExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestCalculateExcelTableT UnPack() { + var _o = new ConquestCalculateExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestCalculateExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestCalculateExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestCalculateExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestCalculateExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestCalculateExcelTable( + builder, + _DataList); + } +} + +public class ConquestCalculateExcelTableT +{ + public List DataList { get; set; } + + public ConquestCalculateExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs b/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs index cd762b6..49fba73 100644 --- a/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs +++ b/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestCameraSettingExcel : IFlatbufferObject @@ -74,6 +75,70 @@ public struct ConquestCameraSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestCameraSettingExcelT UnPack() { + var _o = new ConquestCameraSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestCameraSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestCameraSetting"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ConquestMapBoundaryOffsetLeft = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetLeft, key); + _o.ConquestMapBoundaryOffsetRight = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetRight, key); + _o.ConquestMapBoundaryOffsetTop = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetTop, key); + _o.ConquestMapBoundaryOffsetBottom = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetBottom, key); + _o.ConquestMapCenterOffsetX = TableEncryptionService.Convert(this.ConquestMapCenterOffsetX, key); + _o.ConquestMapCenterOffsetY = TableEncryptionService.Convert(this.ConquestMapCenterOffsetY, key); + _o.CameraAngle = TableEncryptionService.Convert(this.CameraAngle, key); + _o.CameraZoomMax = TableEncryptionService.Convert(this.CameraZoomMax, key); + _o.CameraZoomMin = TableEncryptionService.Convert(this.CameraZoomMin, key); + _o.CameraZoomDefault = TableEncryptionService.Convert(this.CameraZoomDefault, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestCameraSettingExcelT _o) { + if (_o == null) return default(Offset); + return CreateConquestCameraSettingExcel( + builder, + _o.Id, + _o.ConquestMapBoundaryOffsetLeft, + _o.ConquestMapBoundaryOffsetRight, + _o.ConquestMapBoundaryOffsetTop, + _o.ConquestMapBoundaryOffsetBottom, + _o.ConquestMapCenterOffsetX, + _o.ConquestMapCenterOffsetY, + _o.CameraAngle, + _o.CameraZoomMax, + _o.CameraZoomMin, + _o.CameraZoomDefault); + } +} + +public class ConquestCameraSettingExcelT +{ + public long Id { get; set; } + public float ConquestMapBoundaryOffsetLeft { get; set; } + public float ConquestMapBoundaryOffsetRight { get; set; } + public float ConquestMapBoundaryOffsetTop { get; set; } + public float ConquestMapBoundaryOffsetBottom { get; set; } + public float ConquestMapCenterOffsetX { get; set; } + public float ConquestMapCenterOffsetY { get; set; } + public float CameraAngle { get; set; } + public float CameraZoomMax { get; set; } + public float CameraZoomMin { get; set; } + public float CameraZoomDefault { get; set; } + + public ConquestCameraSettingExcelT() { + this.Id = 0; + this.ConquestMapBoundaryOffsetLeft = 0.0f; + this.ConquestMapBoundaryOffsetRight = 0.0f; + this.ConquestMapBoundaryOffsetTop = 0.0f; + this.ConquestMapBoundaryOffsetBottom = 0.0f; + this.ConquestMapCenterOffsetX = 0.0f; + this.ConquestMapCenterOffsetY = 0.0f; + this.CameraAngle = 0.0f; + this.CameraZoomMax = 0.0f; + this.CameraZoomMin = 0.0f; + this.CameraZoomDefault = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs b/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs index f59564c..6bdd5ca 100644 --- a/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestCameraSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestCameraSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestCameraSettingExcelTableT UnPack() { + var _o = new ConquestCameraSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestCameraSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestCameraSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestCameraSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestCameraSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestCameraSettingExcelTable( + builder, + _DataList); + } +} + +public class ConquestCameraSettingExcelTableT +{ + public List DataList { get; set; } + + public ConquestCameraSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestErosionExcel.cs b/SCHALE.Common/FlatData/ConquestErosionExcel.cs index ede1658..6d3f705 100644 --- a/SCHALE.Common/FlatData/ConquestErosionExcel.cs +++ b/SCHALE.Common/FlatData/ConquestErosionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestErosionExcel : IFlatbufferObject @@ -122,6 +123,108 @@ public struct ConquestErosionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestErosionExcelT UnPack() { + var _o = new ConquestErosionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestErosionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestErosion"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ErosionType = TableEncryptionService.Convert(this.ErosionType, key); + _o.Phase = TableEncryptionService.Convert(this.Phase, key); + _o.PhaseAlarm = TableEncryptionService.Convert(this.PhaseAlarm, key); + _o.StepIndex = TableEncryptionService.Convert(this.StepIndex, key); + _o.PhaseStartConditionType = new List(); + for (var _j = 0; _j < this.PhaseStartConditionTypeLength; ++_j) {_o.PhaseStartConditionType.Add(TableEncryptionService.Convert(this.PhaseStartConditionType(_j), key));} + _o.PhaseStartConditionParameter = new List(); + for (var _j = 0; _j < this.PhaseStartConditionParameterLength; ++_j) {_o.PhaseStartConditionParameter.Add(TableEncryptionService.Convert(this.PhaseStartConditionParameter(_j), key));} + _o.PhaseBeforeExposeConditionType = new List(); + for (var _j = 0; _j < this.PhaseBeforeExposeConditionTypeLength; ++_j) {_o.PhaseBeforeExposeConditionType.Add(TableEncryptionService.Convert(this.PhaseBeforeExposeConditionType(_j), key));} + _o.PhaseBeforeExposeConditionParameter = new List(); + for (var _j = 0; _j < this.PhaseBeforeExposeConditionParameterLength; ++_j) {_o.PhaseBeforeExposeConditionParameter.Add(TableEncryptionService.Convert(this.PhaseBeforeExposeConditionParameter(_j), key));} + _o.ErosionBattleConditionParcelType = TableEncryptionService.Convert(this.ErosionBattleConditionParcelType, key); + _o.ErosionBattleConditionParcelUniqueId = TableEncryptionService.Convert(this.ErosionBattleConditionParcelUniqueId, key); + _o.ErosionBattleConditionParcelAmount = TableEncryptionService.Convert(this.ErosionBattleConditionParcelAmount, key); + _o.ConquestRewardId = TableEncryptionService.Convert(this.ConquestRewardId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestErosionExcelT _o) { + if (_o == null) return default(Offset); + var _PhaseStartConditionType = default(VectorOffset); + if (_o.PhaseStartConditionType != null) { + var __PhaseStartConditionType = _o.PhaseStartConditionType.ToArray(); + _PhaseStartConditionType = CreatePhaseStartConditionTypeVector(builder, __PhaseStartConditionType); + } + var _PhaseStartConditionParameter = default(VectorOffset); + if (_o.PhaseStartConditionParameter != null) { + var __PhaseStartConditionParameter = new StringOffset[_o.PhaseStartConditionParameter.Count]; + for (var _j = 0; _j < __PhaseStartConditionParameter.Length; ++_j) { __PhaseStartConditionParameter[_j] = builder.CreateString(_o.PhaseStartConditionParameter[_j]); } + _PhaseStartConditionParameter = CreatePhaseStartConditionParameterVector(builder, __PhaseStartConditionParameter); + } + var _PhaseBeforeExposeConditionType = default(VectorOffset); + if (_o.PhaseBeforeExposeConditionType != null) { + var __PhaseBeforeExposeConditionType = _o.PhaseBeforeExposeConditionType.ToArray(); + _PhaseBeforeExposeConditionType = CreatePhaseBeforeExposeConditionTypeVector(builder, __PhaseBeforeExposeConditionType); + } + var _PhaseBeforeExposeConditionParameter = default(VectorOffset); + if (_o.PhaseBeforeExposeConditionParameter != null) { + var __PhaseBeforeExposeConditionParameter = new StringOffset[_o.PhaseBeforeExposeConditionParameter.Count]; + for (var _j = 0; _j < __PhaseBeforeExposeConditionParameter.Length; ++_j) { __PhaseBeforeExposeConditionParameter[_j] = builder.CreateString(_o.PhaseBeforeExposeConditionParameter[_j]); } + _PhaseBeforeExposeConditionParameter = CreatePhaseBeforeExposeConditionParameterVector(builder, __PhaseBeforeExposeConditionParameter); + } + return CreateConquestErosionExcel( + builder, + _o.EventContentId, + _o.Id, + _o.ErosionType, + _o.Phase, + _o.PhaseAlarm, + _o.StepIndex, + _PhaseStartConditionType, + _PhaseStartConditionParameter, + _PhaseBeforeExposeConditionType, + _PhaseBeforeExposeConditionParameter, + _o.ErosionBattleConditionParcelType, + _o.ErosionBattleConditionParcelUniqueId, + _o.ErosionBattleConditionParcelAmount, + _o.ConquestRewardId); + } +} + +public class ConquestErosionExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public SCHALE.Common.FlatData.ConquestErosionType ErosionType { get; set; } + public int Phase { get; set; } + public bool PhaseAlarm { get; set; } + public int StepIndex { get; set; } + public List PhaseStartConditionType { get; set; } + public List PhaseStartConditionParameter { get; set; } + public List PhaseBeforeExposeConditionType { get; set; } + public List PhaseBeforeExposeConditionParameter { get; set; } + public SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType { get; set; } + public long ErosionBattleConditionParcelUniqueId { get; set; } + public long ErosionBattleConditionParcelAmount { get; set; } + public long ConquestRewardId { get; set; } + + public ConquestErosionExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None; + this.Phase = 0; + this.PhaseAlarm = false; + this.StepIndex = 0; + this.PhaseStartConditionType = null; + this.PhaseStartConditionParameter = null; + this.PhaseBeforeExposeConditionType = null; + this.PhaseBeforeExposeConditionParameter = null; + this.ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ErosionBattleConditionParcelUniqueId = 0; + this.ErosionBattleConditionParcelAmount = 0; + this.ConquestRewardId = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs b/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs index cd4453f..905049b 100644 --- a/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestErosionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestErosionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestErosionExcelTableT UnPack() { + var _o = new ConquestErosionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestErosionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestErosionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestErosionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestErosionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestErosionExcelTable( + builder, + _DataList); + } +} + +public class ConquestErosionExcelTableT +{ + public List DataList { get; set; } + + public ConquestErosionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs b/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs index 1f85e8a..377bece 100644 --- a/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs +++ b/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestErosionUnitExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct ConquestErosionUnitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestErosionUnitExcelT UnPack() { + var _o = new ConquestErosionUnitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestErosionUnitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestErosionUnit"); + _o.TilePrefabId = TableEncryptionService.Convert(this.TilePrefabId, key); + _o.MassErosionUnitId = TableEncryptionService.Convert(this.MassErosionUnitId, key); + _o.MassErosionUnitRotationY = TableEncryptionService.Convert(this.MassErosionUnitRotationY, key); + _o.IndividualErosionUnitId = TableEncryptionService.Convert(this.IndividualErosionUnitId, key); + _o.IndividualErosionUnitRotationY = TableEncryptionService.Convert(this.IndividualErosionUnitRotationY, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestErosionUnitExcelT _o) { + if (_o == null) return default(Offset); + return CreateConquestErosionUnitExcel( + builder, + _o.TilePrefabId, + _o.MassErosionUnitId, + _o.MassErosionUnitRotationY, + _o.IndividualErosionUnitId, + _o.IndividualErosionUnitRotationY); + } +} + +public class ConquestErosionUnitExcelT +{ + public long TilePrefabId { get; set; } + public long MassErosionUnitId { get; set; } + public float MassErosionUnitRotationY { get; set; } + public long IndividualErosionUnitId { get; set; } + public float IndividualErosionUnitRotationY { get; set; } + + public ConquestErosionUnitExcelT() { + this.TilePrefabId = 0; + this.MassErosionUnitId = 0; + this.MassErosionUnitRotationY = 0.0f; + this.IndividualErosionUnitId = 0; + this.IndividualErosionUnitRotationY = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs b/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs index a0fd99b..54c205a 100644 --- a/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestErosionUnitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestErosionUnitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestErosionUnitExcelTableT UnPack() { + var _o = new ConquestErosionUnitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestErosionUnitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestErosionUnitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestErosionUnitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestErosionUnitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestErosionUnitExcelTable( + builder, + _DataList); + } +} + +public class ConquestErosionUnitExcelTableT +{ + public List DataList { get; set; } + + public ConquestErosionUnitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestEventExcel.cs b/SCHALE.Common/FlatData/ConquestEventExcel.cs index 8b418a3..950fb0b 100644 --- a/SCHALE.Common/FlatData/ConquestEventExcel.cs +++ b/SCHALE.Common/FlatData/ConquestEventExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestEventExcel : IFlatbufferObject @@ -200,6 +201,141 @@ public struct ConquestEventExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestEventExcelT UnPack() { + var _o = new ConquestEventExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestEventExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestEvent"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.MainStoryEventContentId = TableEncryptionService.Convert(this.MainStoryEventContentId, key); + _o.ConquestEventType = TableEncryptionService.Convert(this.ConquestEventType, key); + _o.UseErosion = TableEncryptionService.Convert(this.UseErosion, key); + _o.UseUnexpectedEvent = TableEncryptionService.Convert(this.UseUnexpectedEvent, key); + _o.UseCalculate = TableEncryptionService.Convert(this.UseCalculate, key); + _o.UseConquestObject = TableEncryptionService.Convert(this.UseConquestObject, key); + _o.EvnetMapGoalLocalize = TableEncryptionService.Convert(this.EvnetMapGoalLocalize, key); + _o.EvnetMapNameLocalize = TableEncryptionService.Convert(this.EvnetMapNameLocalize, key); + _o.MapEnterScenarioGroupId = TableEncryptionService.Convert(this.MapEnterScenarioGroupId, key); + _o.EvnetScenarioBG = TableEncryptionService.Convert(this.EvnetScenarioBG, key); + _o.ManageUnitChange = TableEncryptionService.Convert(this.ManageUnitChange, key); + _o.AssistCount = TableEncryptionService.Convert(this.AssistCount, key); + _o.PlayTimeLimitInSeconds = TableEncryptionService.Convert(this.PlayTimeLimitInSeconds, key); + _o.AnimationUnitAmountMin = TableEncryptionService.Convert(this.AnimationUnitAmountMin, key); + _o.AnimationUnitAmountMax = TableEncryptionService.Convert(this.AnimationUnitAmountMax, key); + _o.AnimationUnitDelay = TableEncryptionService.Convert(this.AnimationUnitDelay, key); + _o.LocalizeUnexpected = TableEncryptionService.Convert(this.LocalizeUnexpected, key); + _o.LocalizeErosions = TableEncryptionService.Convert(this.LocalizeErosions, key); + _o.LocalizeStep = TableEncryptionService.Convert(this.LocalizeStep, key); + _o.LocalizeTile = TableEncryptionService.Convert(this.LocalizeTile, key); + _o.LocalizeMapInfo = TableEncryptionService.Convert(this.LocalizeMapInfo, key); + _o.LocalizeManage = TableEncryptionService.Convert(this.LocalizeManage, key); + _o.LocalizeUpgrade = TableEncryptionService.Convert(this.LocalizeUpgrade, key); + _o.LocalizeTreasureBox = TableEncryptionService.Convert(this.LocalizeTreasureBox, key); + _o.IndividualErosionDailyCount = TableEncryptionService.Convert(this.IndividualErosionDailyCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestEventExcelT _o) { + if (_o == null) return default(Offset); + var _EvnetMapGoalLocalize = _o.EvnetMapGoalLocalize == null ? default(StringOffset) : builder.CreateString(_o.EvnetMapGoalLocalize); + var _EvnetMapNameLocalize = _o.EvnetMapNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.EvnetMapNameLocalize); + var _EvnetScenarioBG = _o.EvnetScenarioBG == null ? default(StringOffset) : builder.CreateString(_o.EvnetScenarioBG); + var _LocalizeUnexpected = _o.LocalizeUnexpected == null ? default(StringOffset) : builder.CreateString(_o.LocalizeUnexpected); + var _LocalizeErosions = _o.LocalizeErosions == null ? default(StringOffset) : builder.CreateString(_o.LocalizeErosions); + var _LocalizeStep = _o.LocalizeStep == null ? default(StringOffset) : builder.CreateString(_o.LocalizeStep); + var _LocalizeTile = _o.LocalizeTile == null ? default(StringOffset) : builder.CreateString(_o.LocalizeTile); + var _LocalizeMapInfo = _o.LocalizeMapInfo == null ? default(StringOffset) : builder.CreateString(_o.LocalizeMapInfo); + var _LocalizeManage = _o.LocalizeManage == null ? default(StringOffset) : builder.CreateString(_o.LocalizeManage); + var _LocalizeUpgrade = _o.LocalizeUpgrade == null ? default(StringOffset) : builder.CreateString(_o.LocalizeUpgrade); + var _LocalizeTreasureBox = _o.LocalizeTreasureBox == null ? default(StringOffset) : builder.CreateString(_o.LocalizeTreasureBox); + return CreateConquestEventExcel( + builder, + _o.EventContentId, + _o.MainStoryEventContentId, + _o.ConquestEventType, + _o.UseErosion, + _o.UseUnexpectedEvent, + _o.UseCalculate, + _o.UseConquestObject, + _EvnetMapGoalLocalize, + _EvnetMapNameLocalize, + _o.MapEnterScenarioGroupId, + _EvnetScenarioBG, + _o.ManageUnitChange, + _o.AssistCount, + _o.PlayTimeLimitInSeconds, + _o.AnimationUnitAmountMin, + _o.AnimationUnitAmountMax, + _o.AnimationUnitDelay, + _LocalizeUnexpected, + _LocalizeErosions, + _LocalizeStep, + _LocalizeTile, + _LocalizeMapInfo, + _LocalizeManage, + _LocalizeUpgrade, + _LocalizeTreasureBox, + _o.IndividualErosionDailyCount); + } +} + +public class ConquestEventExcelT +{ + public long EventContentId { get; set; } + public long MainStoryEventContentId { get; set; } + public SCHALE.Common.FlatData.ConquestEventType ConquestEventType { get; set; } + public bool UseErosion { get; set; } + public bool UseUnexpectedEvent { get; set; } + public bool UseCalculate { get; set; } + public bool UseConquestObject { get; set; } + public string EvnetMapGoalLocalize { get; set; } + public string EvnetMapNameLocalize { get; set; } + public long MapEnterScenarioGroupId { get; set; } + public string EvnetScenarioBG { get; set; } + public int ManageUnitChange { get; set; } + public int AssistCount { get; set; } + public int PlayTimeLimitInSeconds { get; set; } + public int AnimationUnitAmountMin { get; set; } + public int AnimationUnitAmountMax { get; set; } + public float AnimationUnitDelay { get; set; } + public string LocalizeUnexpected { get; set; } + public string LocalizeErosions { get; set; } + public string LocalizeStep { get; set; } + public string LocalizeTile { get; set; } + public string LocalizeMapInfo { get; set; } + public string LocalizeManage { get; set; } + public string LocalizeUpgrade { get; set; } + public string LocalizeTreasureBox { get; set; } + public long IndividualErosionDailyCount { get; set; } + + public ConquestEventExcelT() { + this.EventContentId = 0; + this.MainStoryEventContentId = 0; + this.ConquestEventType = SCHALE.Common.FlatData.ConquestEventType.None; + this.UseErosion = false; + this.UseUnexpectedEvent = false; + this.UseCalculate = false; + this.UseConquestObject = false; + this.EvnetMapGoalLocalize = null; + this.EvnetMapNameLocalize = null; + this.MapEnterScenarioGroupId = 0; + this.EvnetScenarioBG = null; + this.ManageUnitChange = 0; + this.AssistCount = 0; + this.PlayTimeLimitInSeconds = 0; + this.AnimationUnitAmountMin = 0; + this.AnimationUnitAmountMax = 0; + this.AnimationUnitDelay = 0.0f; + this.LocalizeUnexpected = null; + this.LocalizeErosions = null; + this.LocalizeStep = null; + this.LocalizeTile = null; + this.LocalizeMapInfo = null; + this.LocalizeManage = null; + this.LocalizeUpgrade = null; + this.LocalizeTreasureBox = null; + this.IndividualErosionDailyCount = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestEventExcelTable.cs b/SCHALE.Common/FlatData/ConquestEventExcelTable.cs index 93a6c6f..cf79b47 100644 --- a/SCHALE.Common/FlatData/ConquestEventExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestEventExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestEventExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestEventExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestEventExcelTableT UnPack() { + var _o = new ConquestEventExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestEventExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestEventExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestEventExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestEventExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestEventExcelTable( + builder, + _DataList); + } +} + +public class ConquestEventExcelTableT +{ + public List DataList { get; set; } + + public ConquestEventExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs b/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs index 59ce20a..fede09a 100644 --- a/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs +++ b/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestGroupBonusExcel : IFlatbufferObject @@ -182,6 +183,124 @@ public struct ConquestGroupBonusExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestGroupBonusExcelT UnPack() { + var _o = new ConquestGroupBonusExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestGroupBonusExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestGroupBonus"); + _o.ConquestBonusId = TableEncryptionService.Convert(this.ConquestBonusId, key); + _o.School_ = new List(); + for (var _j = 0; _j < this.School_Length; ++_j) {_o.School_.Add(TableEncryptionService.Convert(this.School_(_j), key));} + _o.RecommandLocalizeEtcId = TableEncryptionService.Convert(this.RecommandLocalizeEtcId, key); + _o.BonusParcelType = new List(); + for (var _j = 0; _j < this.BonusParcelTypeLength; ++_j) {_o.BonusParcelType.Add(TableEncryptionService.Convert(this.BonusParcelType(_j), key));} + _o.BonusId = new List(); + for (var _j = 0; _j < this.BonusIdLength; ++_j) {_o.BonusId.Add(TableEncryptionService.Convert(this.BonusId(_j), key));} + _o.BonusCharacterCount1 = new List(); + for (var _j = 0; _j < this.BonusCharacterCount1Length; ++_j) {_o.BonusCharacterCount1.Add(TableEncryptionService.Convert(this.BonusCharacterCount1(_j), key));} + _o.BonusPercentage1 = new List(); + for (var _j = 0; _j < this.BonusPercentage1Length; ++_j) {_o.BonusPercentage1.Add(TableEncryptionService.Convert(this.BonusPercentage1(_j), key));} + _o.BonusCharacterCount2 = new List(); + for (var _j = 0; _j < this.BonusCharacterCount2Length; ++_j) {_o.BonusCharacterCount2.Add(TableEncryptionService.Convert(this.BonusCharacterCount2(_j), key));} + _o.BonusPercentage2 = new List(); + for (var _j = 0; _j < this.BonusPercentage2Length; ++_j) {_o.BonusPercentage2.Add(TableEncryptionService.Convert(this.BonusPercentage2(_j), key));} + _o.BonusCharacterCount3 = new List(); + for (var _j = 0; _j < this.BonusCharacterCount3Length; ++_j) {_o.BonusCharacterCount3.Add(TableEncryptionService.Convert(this.BonusCharacterCount3(_j), key));} + _o.BonusPercentage3 = new List(); + for (var _j = 0; _j < this.BonusPercentage3Length; ++_j) {_o.BonusPercentage3.Add(TableEncryptionService.Convert(this.BonusPercentage3(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestGroupBonusExcelT _o) { + if (_o == null) return default(Offset); + var _School_ = default(VectorOffset); + if (_o.School_ != null) { + var __School_ = _o.School_.ToArray(); + _School_ = CreateSchool_Vector(builder, __School_); + } + var _BonusParcelType = default(VectorOffset); + if (_o.BonusParcelType != null) { + var __BonusParcelType = _o.BonusParcelType.ToArray(); + _BonusParcelType = CreateBonusParcelTypeVector(builder, __BonusParcelType); + } + var _BonusId = default(VectorOffset); + if (_o.BonusId != null) { + var __BonusId = _o.BonusId.ToArray(); + _BonusId = CreateBonusIdVector(builder, __BonusId); + } + var _BonusCharacterCount1 = default(VectorOffset); + if (_o.BonusCharacterCount1 != null) { + var __BonusCharacterCount1 = _o.BonusCharacterCount1.ToArray(); + _BonusCharacterCount1 = CreateBonusCharacterCount1Vector(builder, __BonusCharacterCount1); + } + var _BonusPercentage1 = default(VectorOffset); + if (_o.BonusPercentage1 != null) { + var __BonusPercentage1 = _o.BonusPercentage1.ToArray(); + _BonusPercentage1 = CreateBonusPercentage1Vector(builder, __BonusPercentage1); + } + var _BonusCharacterCount2 = default(VectorOffset); + if (_o.BonusCharacterCount2 != null) { + var __BonusCharacterCount2 = _o.BonusCharacterCount2.ToArray(); + _BonusCharacterCount2 = CreateBonusCharacterCount2Vector(builder, __BonusCharacterCount2); + } + var _BonusPercentage2 = default(VectorOffset); + if (_o.BonusPercentage2 != null) { + var __BonusPercentage2 = _o.BonusPercentage2.ToArray(); + _BonusPercentage2 = CreateBonusPercentage2Vector(builder, __BonusPercentage2); + } + var _BonusCharacterCount3 = default(VectorOffset); + if (_o.BonusCharacterCount3 != null) { + var __BonusCharacterCount3 = _o.BonusCharacterCount3.ToArray(); + _BonusCharacterCount3 = CreateBonusCharacterCount3Vector(builder, __BonusCharacterCount3); + } + var _BonusPercentage3 = default(VectorOffset); + if (_o.BonusPercentage3 != null) { + var __BonusPercentage3 = _o.BonusPercentage3.ToArray(); + _BonusPercentage3 = CreateBonusPercentage3Vector(builder, __BonusPercentage3); + } + return CreateConquestGroupBonusExcel( + builder, + _o.ConquestBonusId, + _School_, + _o.RecommandLocalizeEtcId, + _BonusParcelType, + _BonusId, + _BonusCharacterCount1, + _BonusPercentage1, + _BonusCharacterCount2, + _BonusPercentage2, + _BonusCharacterCount3, + _BonusPercentage3); + } +} + +public class ConquestGroupBonusExcelT +{ + public long ConquestBonusId { get; set; } + public List School_ { get; set; } + public uint RecommandLocalizeEtcId { get; set; } + public List BonusParcelType { get; set; } + public List BonusId { get; set; } + public List BonusCharacterCount1 { get; set; } + public List BonusPercentage1 { get; set; } + public List BonusCharacterCount2 { get; set; } + public List BonusPercentage2 { get; set; } + public List BonusCharacterCount3 { get; set; } + public List BonusPercentage3 { get; set; } + + public ConquestGroupBonusExcelT() { + this.ConquestBonusId = 0; + this.School_ = null; + this.RecommandLocalizeEtcId = 0; + this.BonusParcelType = null; + this.BonusId = null; + this.BonusCharacterCount1 = null; + this.BonusPercentage1 = null; + this.BonusCharacterCount2 = null; + this.BonusPercentage2 = null; + this.BonusCharacterCount3 = null; + this.BonusPercentage3 = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs b/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs index e3f3cbf..c39f4f0 100644 --- a/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestGroupBonusExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestGroupBonusExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestGroupBonusExcelTableT UnPack() { + var _o = new ConquestGroupBonusExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestGroupBonusExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestGroupBonusExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestGroupBonusExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestGroupBonusExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestGroupBonusExcelTable( + builder, + _DataList); + } +} + +public class ConquestGroupBonusExcelTableT +{ + public List DataList { get; set; } + + public ConquestGroupBonusExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs b/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs index b696739..d378a3c 100644 --- a/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs +++ b/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestGroupBuffExcel : IFlatbufferObject @@ -64,6 +65,49 @@ public struct ConquestGroupBuffExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestGroupBuffExcelT UnPack() { + var _o = new ConquestGroupBuffExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestGroupBuffExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestGroupBuff"); + _o.ConquestBuffId = TableEncryptionService.Convert(this.ConquestBuffId, key); + _o.School_ = new List(); + for (var _j = 0; _j < this.School_Length; ++_j) {_o.School_.Add(TableEncryptionService.Convert(this.School_(_j), key));} + _o.RecommandLocalizeEtcId = TableEncryptionService.Convert(this.RecommandLocalizeEtcId, key); + _o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestGroupBuffExcelT _o) { + if (_o == null) return default(Offset); + var _School_ = default(VectorOffset); + if (_o.School_ != null) { + var __School_ = _o.School_.ToArray(); + _School_ = CreateSchool_Vector(builder, __School_); + } + var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId); + return CreateConquestGroupBuffExcel( + builder, + _o.ConquestBuffId, + _School_, + _o.RecommandLocalizeEtcId, + _SkillGroupId); + } +} + +public class ConquestGroupBuffExcelT +{ + public long ConquestBuffId { get; set; } + public List School_ { get; set; } + public uint RecommandLocalizeEtcId { get; set; } + public string SkillGroupId { get; set; } + + public ConquestGroupBuffExcelT() { + this.ConquestBuffId = 0; + this.School_ = null; + this.RecommandLocalizeEtcId = 0; + this.SkillGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs b/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs index e9d06f9..7b5b409 100644 --- a/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestGroupBuffExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestGroupBuffExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestGroupBuffExcelTableT UnPack() { + var _o = new ConquestGroupBuffExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestGroupBuffExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestGroupBuffExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestGroupBuffExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestGroupBuffExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestGroupBuffExcelTable( + builder, + _DataList); + } +} + +public class ConquestGroupBuffExcelTableT +{ + public List DataList { get; set; } + + public ConquestGroupBuffExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestMapExcel.cs b/SCHALE.Common/FlatData/ConquestMapExcel.cs index 4f2d7da..0fe10f8 100644 --- a/SCHALE.Common/FlatData/ConquestMapExcel.cs +++ b/SCHALE.Common/FlatData/ConquestMapExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestMapExcel : IFlatbufferObject @@ -136,6 +137,97 @@ public struct ConquestMapExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestMapExcelT UnPack() { + var _o = new ConquestMapExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestMapExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestMap"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.MapDifficulty = TableEncryptionService.Convert(this.MapDifficulty, key); + _o.StepIndex = TableEncryptionService.Convert(this.StepIndex, key); + _o.ConquestMap = TableEncryptionService.Convert(this.ConquestMap, key); + _o.StepEnterScenarioGroupId = TableEncryptionService.Convert(this.StepEnterScenarioGroupId, key); + _o.StepOpenConditionType = new List(); + for (var _j = 0; _j < this.StepOpenConditionTypeLength; ++_j) {_o.StepOpenConditionType.Add(TableEncryptionService.Convert(this.StepOpenConditionType(_j), key));} + _o.StepOpenConditionParameter = new List(); + for (var _j = 0; _j < this.StepOpenConditionParameterLength; ++_j) {_o.StepOpenConditionParameter.Add(TableEncryptionService.Convert(this.StepOpenConditionParameter(_j), key));} + _o.MapGoalLocalize = TableEncryptionService.Convert(this.MapGoalLocalize, key); + _o.StepGoalLocalize = TableEncryptionService.Convert(this.StepGoalLocalize, key); + _o.StepNameLocalize = TableEncryptionService.Convert(this.StepNameLocalize, key); + _o.ConquestMapBG = TableEncryptionService.Convert(this.ConquestMapBG, key); + _o.CameraSettingId = TableEncryptionService.Convert(this.CameraSettingId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestMapExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _ConquestMap = _o.ConquestMap == null ? default(StringOffset) : builder.CreateString(_o.ConquestMap); + var _StepOpenConditionType = default(VectorOffset); + if (_o.StepOpenConditionType != null) { + var __StepOpenConditionType = _o.StepOpenConditionType.ToArray(); + _StepOpenConditionType = CreateStepOpenConditionTypeVector(builder, __StepOpenConditionType); + } + var _StepOpenConditionParameter = default(VectorOffset); + if (_o.StepOpenConditionParameter != null) { + var __StepOpenConditionParameter = new StringOffset[_o.StepOpenConditionParameter.Count]; + for (var _j = 0; _j < __StepOpenConditionParameter.Length; ++_j) { __StepOpenConditionParameter[_j] = builder.CreateString(_o.StepOpenConditionParameter[_j]); } + _StepOpenConditionParameter = CreateStepOpenConditionParameterVector(builder, __StepOpenConditionParameter); + } + var _MapGoalLocalize = _o.MapGoalLocalize == null ? default(StringOffset) : builder.CreateString(_o.MapGoalLocalize); + var _StepGoalLocalize = _o.StepGoalLocalize == null ? default(StringOffset) : builder.CreateString(_o.StepGoalLocalize); + var _StepNameLocalize = _o.StepNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.StepNameLocalize); + var _ConquestMapBG = _o.ConquestMapBG == null ? default(StringOffset) : builder.CreateString(_o.ConquestMapBG); + return CreateConquestMapExcel( + builder, + _o.EventContentId, + _DevName, + _o.MapDifficulty, + _o.StepIndex, + _ConquestMap, + _o.StepEnterScenarioGroupId, + _StepOpenConditionType, + _StepOpenConditionParameter, + _MapGoalLocalize, + _StepGoalLocalize, + _StepNameLocalize, + _ConquestMapBG, + _o.CameraSettingId); + } +} + +public class ConquestMapExcelT +{ + public long EventContentId { get; set; } + public string DevName { get; set; } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get; set; } + public int StepIndex { get; set; } + public string ConquestMap { get; set; } + public long StepEnterScenarioGroupId { get; set; } + public List StepOpenConditionType { get; set; } + public List StepOpenConditionParameter { get; set; } + public string MapGoalLocalize { get; set; } + public string StepGoalLocalize { get; set; } + public string StepNameLocalize { get; set; } + public string ConquestMapBG { get; set; } + public long CameraSettingId { get; set; } + + public ConquestMapExcelT() { + this.EventContentId = 0; + this.DevName = null; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.StepIndex = 0; + this.ConquestMap = null; + this.StepEnterScenarioGroupId = 0; + this.StepOpenConditionType = null; + this.StepOpenConditionParameter = null; + this.MapGoalLocalize = null; + this.StepGoalLocalize = null; + this.StepNameLocalize = null; + this.ConquestMapBG = null; + this.CameraSettingId = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestMapExcelTable.cs b/SCHALE.Common/FlatData/ConquestMapExcelTable.cs index fc6d121..bf1f66e 100644 --- a/SCHALE.Common/FlatData/ConquestMapExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestMapExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestMapExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestMapExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestMapExcelTableT UnPack() { + var _o = new ConquestMapExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestMapExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestMapExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestMapExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestMapExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestMapExcelTable( + builder, + _DataList); + } +} + +public class ConquestMapExcelTableT +{ + public List DataList { get; set; } + + public ConquestMapExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestObjectExcel.cs b/SCHALE.Common/FlatData/ConquestObjectExcel.cs index f9e9a2e..cfd53a0 100644 --- a/SCHALE.Common/FlatData/ConquestObjectExcel.cs +++ b/SCHALE.Common/FlatData/ConquestObjectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestObjectExcel : IFlatbufferObject @@ -90,6 +91,76 @@ public struct ConquestObjectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestObjectExcelT UnPack() { + var _o = new ConquestObjectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestObjectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestObject"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ConquestObjectType = TableEncryptionService.Convert(this.ConquestObjectType, key); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.ConquestRewardParcelType = TableEncryptionService.Convert(this.ConquestRewardParcelType, key); + _o.ConquestRewardID = TableEncryptionService.Convert(this.ConquestRewardID, key); + _o.ConquestRewardAmount = TableEncryptionService.Convert(this.ConquestRewardAmount, key); + _o.Disposable = TableEncryptionService.Convert(this.Disposable, key); + _o.StepIndex = TableEncryptionService.Convert(this.StepIndex, key); + _o.StepObjectCount = TableEncryptionService.Convert(this.StepObjectCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestObjectExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + return CreateConquestObjectExcel( + builder, + _o.Id, + _o.EventContentId, + _o.ConquestObjectType, + _o.Key, + _Name, + _PrefabName, + _o.ConquestRewardParcelType, + _o.ConquestRewardID, + _o.ConquestRewardAmount, + _o.Disposable, + _o.StepIndex, + _o.StepObjectCount); + } +} + +public class ConquestObjectExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType { get; set; } + public uint Key { get; set; } + public string Name { get; set; } + public string PrefabName { get; set; } + public SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType { get; set; } + public long ConquestRewardID { get; set; } + public int ConquestRewardAmount { get; set; } + public bool Disposable { get; set; } + public int StepIndex { get; set; } + public int StepObjectCount { get; set; } + + public ConquestObjectExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.ConquestObjectType = SCHALE.Common.FlatData.ConquestObjectType.None; + this.Key = 0; + this.Name = null; + this.PrefabName = null; + this.ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ConquestRewardID = 0; + this.ConquestRewardAmount = 0; + this.Disposable = false; + this.StepIndex = 0; + this.StepObjectCount = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs b/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs index f5e65a0..42fadca 100644 --- a/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestObjectExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestObjectExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestObjectExcelTableT UnPack() { + var _o = new ConquestObjectExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestObjectExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestObjectExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestObjectExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestObjectExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestObjectExcelTable( + builder, + _DataList); + } +} + +public class ConquestObjectExcelTableT +{ + public List DataList { get; set; } + + public ConquestObjectExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs b/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs index fca7a9a..46e488f 100644 --- a/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs +++ b/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestPlayGuideExcel : IFlatbufferObject @@ -72,6 +73,53 @@ public struct ConquestPlayGuideExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestPlayGuideExcelT UnPack() { + var _o = new ConquestPlayGuideExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestPlayGuideExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestPlayGuide"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.GuideTitle = TableEncryptionService.Convert(this.GuideTitle, key); + _o.GuideImagePath = TableEncryptionService.Convert(this.GuideImagePath, key); + _o.GuideText = TableEncryptionService.Convert(this.GuideText, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestPlayGuideExcelT _o) { + if (_o == null) return default(Offset); + var _GuideTitle = _o.GuideTitle == null ? default(StringOffset) : builder.CreateString(_o.GuideTitle); + var _GuideImagePath = _o.GuideImagePath == null ? default(StringOffset) : builder.CreateString(_o.GuideImagePath); + var _GuideText = _o.GuideText == null ? default(StringOffset) : builder.CreateString(_o.GuideText); + return CreateConquestPlayGuideExcel( + builder, + _o.Id, + _o.EventContentId, + _o.DisplayOrder, + _GuideTitle, + _GuideImagePath, + _GuideText); + } +} + +public class ConquestPlayGuideExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public int DisplayOrder { get; set; } + public string GuideTitle { get; set; } + public string GuideImagePath { get; set; } + public string GuideText { get; set; } + + public ConquestPlayGuideExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.DisplayOrder = 0; + this.GuideTitle = null; + this.GuideImagePath = null; + this.GuideText = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs b/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs index 1731838..f25c56b 100644 --- a/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestPlayGuideExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestPlayGuideExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestPlayGuideExcelTableT UnPack() { + var _o = new ConquestPlayGuideExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestPlayGuideExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestPlayGuideExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestPlayGuideExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestPlayGuideExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestPlayGuideExcelTable( + builder, + _DataList); + } +} + +public class ConquestPlayGuideExcelTableT +{ + public List DataList { get; set; } + + public ConquestPlayGuideExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs index 9e74d81..a126e60 100644 --- a/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs +++ b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestProgressResourceExcel : IFlatbufferObject @@ -78,6 +79,58 @@ public struct ConquestProgressResourceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestProgressResourceExcelT UnPack() { + var _o = new ConquestProgressResourceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestProgressResourceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestProgressResource"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Group = TableEncryptionService.Convert(this.Group, key); + _o.ProgressResource = TableEncryptionService.Convert(this.ProgressResource, key); + _o.VoiceId = new List(); + for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} + _o.ProgressLocalizeCode = TableEncryptionService.Convert(this.ProgressLocalizeCode, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestProgressResourceExcelT _o) { + if (_o == null) return default(Offset); + var _ProgressResource = _o.ProgressResource == null ? default(StringOffset) : builder.CreateString(_o.ProgressResource); + var _VoiceId = default(VectorOffset); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + var _ProgressLocalizeCode = _o.ProgressLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.ProgressLocalizeCode); + return CreateConquestProgressResourceExcel( + builder, + _o.Id, + _o.EventContentId, + _o.Group, + _ProgressResource, + _VoiceId, + _ProgressLocalizeCode); + } +} + +public class ConquestProgressResourceExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.ConquestProgressType Group { get; set; } + public string ProgressResource { get; set; } + public List VoiceId { get; set; } + public string ProgressLocalizeCode { get; set; } + + public ConquestProgressResourceExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.Group = SCHALE.Common.FlatData.ConquestProgressType.None; + this.ProgressResource = null; + this.VoiceId = null; + this.ProgressLocalizeCode = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs b/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs index cfdea91..5e1d57b 100644 --- a/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestProgressResourceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestProgressResourceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestProgressResourceExcelTableT UnPack() { + var _o = new ConquestProgressResourceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestProgressResourceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestProgressResourceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestProgressResourceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestProgressResourceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestProgressResourceExcelTable( + builder, + _DataList); + } +} + +public class ConquestProgressResourceExcelTableT +{ + public List DataList { get; set; } + + public ConquestProgressResourceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestRewardExcel.cs b/SCHALE.Common/FlatData/ConquestRewardExcel.cs index c8d2701..9604d87 100644 --- a/SCHALE.Common/FlatData/ConquestRewardExcel.cs +++ b/SCHALE.Common/FlatData/ConquestRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct ConquestRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestRewardExcelT UnPack() { + var _o = new ConquestRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateConquestRewardExcel( + builder, + _o.GroupId, + _o.RewardTag, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount, + _o.IsDisplayed); + } +} + +public class ConquestRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + public bool IsDisplayed { get; set; } + + public ConquestRewardExcelT() { + this.GroupId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs b/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs index aa62610..cf8b5bd 100644 --- a/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestRewardExcelTableT UnPack() { + var _o = new ConquestRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestRewardExcelTable( + builder, + _DataList); + } +} + +public class ConquestRewardExcelTableT +{ + public List DataList { get; set; } + + public ConquestRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestStepExcel.cs b/SCHALE.Common/FlatData/ConquestStepExcel.cs index e443d30..3b03c5e 100644 --- a/SCHALE.Common/FlatData/ConquestStepExcel.cs +++ b/SCHALE.Common/FlatData/ConquestStepExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestStepExcel : IFlatbufferObject @@ -102,6 +103,82 @@ public struct ConquestStepExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestStepExcelT UnPack() { + var _o = new ConquestStepExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestStepExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestStep"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.MapDifficulty = TableEncryptionService.Convert(this.MapDifficulty, key); + _o.Step = TableEncryptionService.Convert(this.Step, key); + _o.StepGoalLocalize = TableEncryptionService.Convert(this.StepGoalLocalize, key); + _o.StepEnterScenarioGroupId = TableEncryptionService.Convert(this.StepEnterScenarioGroupId, key); + _o.StepEnterItemType = TableEncryptionService.Convert(this.StepEnterItemType, key); + _o.StepEnterItemUniqueId = TableEncryptionService.Convert(this.StepEnterItemUniqueId, key); + _o.StepEnterItemAmount = TableEncryptionService.Convert(this.StepEnterItemAmount, key); + _o.UnexpectedEventUnitId = new List(); + for (var _j = 0; _j < this.UnexpectedEventUnitIdLength; ++_j) {_o.UnexpectedEventUnitId.Add(TableEncryptionService.Convert(this.UnexpectedEventUnitId(_j), key));} + _o.UnexpectedEventPrefab = TableEncryptionService.Convert(this.UnexpectedEventPrefab, key); + _o.TreasureBoxObjectId = TableEncryptionService.Convert(this.TreasureBoxObjectId, key); + _o.TreasureBoxCountPerStepOpen = TableEncryptionService.Convert(this.TreasureBoxCountPerStepOpen, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestStepExcelT _o) { + if (_o == null) return default(Offset); + var _StepGoalLocalize = _o.StepGoalLocalize == null ? default(StringOffset) : builder.CreateString(_o.StepGoalLocalize); + var _UnexpectedEventUnitId = default(VectorOffset); + if (_o.UnexpectedEventUnitId != null) { + var __UnexpectedEventUnitId = _o.UnexpectedEventUnitId.ToArray(); + _UnexpectedEventUnitId = CreateUnexpectedEventUnitIdVector(builder, __UnexpectedEventUnitId); + } + var _UnexpectedEventPrefab = _o.UnexpectedEventPrefab == null ? default(StringOffset) : builder.CreateString(_o.UnexpectedEventPrefab); + return CreateConquestStepExcel( + builder, + _o.EventContentId, + _o.MapDifficulty, + _o.Step, + _StepGoalLocalize, + _o.StepEnterScenarioGroupId, + _o.StepEnterItemType, + _o.StepEnterItemUniqueId, + _o.StepEnterItemAmount, + _UnexpectedEventUnitId, + _UnexpectedEventPrefab, + _o.TreasureBoxObjectId, + _o.TreasureBoxCountPerStepOpen); + } +} + +public class ConquestStepExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get; set; } + public int Step { get; set; } + public string StepGoalLocalize { get; set; } + public long StepEnterScenarioGroupId { get; set; } + public SCHALE.Common.FlatData.ParcelType StepEnterItemType { get; set; } + public long StepEnterItemUniqueId { get; set; } + public long StepEnterItemAmount { get; set; } + public List UnexpectedEventUnitId { get; set; } + public string UnexpectedEventPrefab { get; set; } + public long TreasureBoxObjectId { get; set; } + public int TreasureBoxCountPerStepOpen { get; set; } + + public ConquestStepExcelT() { + this.EventContentId = 0; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.Step = 0; + this.StepGoalLocalize = null; + this.StepEnterScenarioGroupId = 0; + this.StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None; + this.StepEnterItemUniqueId = 0; + this.StepEnterItemAmount = 0; + this.UnexpectedEventUnitId = null; + this.UnexpectedEventPrefab = null; + this.TreasureBoxObjectId = 0; + this.TreasureBoxCountPerStepOpen = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestStepExcelTable.cs b/SCHALE.Common/FlatData/ConquestStepExcelTable.cs index db1cfec..5fd7d49 100644 --- a/SCHALE.Common/FlatData/ConquestStepExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestStepExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestStepExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestStepExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestStepExcelTableT UnPack() { + var _o = new ConquestStepExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestStepExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestStepExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestStepExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestStepExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestStepExcelTable( + builder, + _DataList); + } +} + +public class ConquestStepExcelTableT +{ + public List DataList { get; set; } + + public ConquestStepExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestTileExcel.cs b/SCHALE.Common/FlatData/ConquestTileExcel.cs index a2f8c11..70d10e2 100644 --- a/SCHALE.Common/FlatData/ConquestTileExcel.cs +++ b/SCHALE.Common/FlatData/ConquestTileExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestTileExcel : IFlatbufferObject @@ -154,6 +155,130 @@ public struct ConquestTileExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestTileExcelT UnPack() { + var _o = new ConquestTileExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestTileExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestTile"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.EventId = TableEncryptionService.Convert(this.EventId, key); + _o.Step = TableEncryptionService.Convert(this.Step, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.TileNameLocalize = TableEncryptionService.Convert(this.TileNameLocalize, key); + _o.TileImageName = TableEncryptionService.Convert(this.TileImageName, key); + _o.Playable = TableEncryptionService.Convert(this.Playable, key); + _o.TileType = TableEncryptionService.Convert(this.TileType, key); + _o.NotMapFog = TableEncryptionService.Convert(this.NotMapFog, key); + _o.GroupBonusId = TableEncryptionService.Convert(this.GroupBonusId, key); + _o.ConquestCostType = TableEncryptionService.Convert(this.ConquestCostType, key); + _o.ConquestCostId = TableEncryptionService.Convert(this.ConquestCostId, key); + _o.ConquestCostAmount = TableEncryptionService.Convert(this.ConquestCostAmount, key); + _o.ManageCostType = TableEncryptionService.Convert(this.ManageCostType, key); + _o.ManageCostId = TableEncryptionService.Convert(this.ManageCostId, key); + _o.ManageCostAmount = TableEncryptionService.Convert(this.ManageCostAmount, key); + _o.ConquestRewardId = TableEncryptionService.Convert(this.ConquestRewardId, key); + _o.MassErosionId = TableEncryptionService.Convert(this.MassErosionId, key); + _o.Upgrade2CostType = TableEncryptionService.Convert(this.Upgrade2CostType, key); + _o.Upgrade2CostId = TableEncryptionService.Convert(this.Upgrade2CostId, key); + _o.Upgrade2CostAmount = TableEncryptionService.Convert(this.Upgrade2CostAmount, key); + _o.Upgrade3CostType = TableEncryptionService.Convert(this.Upgrade3CostType, key); + _o.Upgrade3CostId = TableEncryptionService.Convert(this.Upgrade3CostId, key); + _o.Upgrade3CostAmount = TableEncryptionService.Convert(this.Upgrade3CostAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestTileExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _TileNameLocalize = _o.TileNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.TileNameLocalize); + var _TileImageName = _o.TileImageName == null ? default(StringOffset) : builder.CreateString(_o.TileImageName); + return CreateConquestTileExcel( + builder, + _o.Id, + _Name, + _o.EventId, + _o.Step, + _PrefabName, + _TileNameLocalize, + _TileImageName, + _o.Playable, + _o.TileType, + _o.NotMapFog, + _o.GroupBonusId, + _o.ConquestCostType, + _o.ConquestCostId, + _o.ConquestCostAmount, + _o.ManageCostType, + _o.ManageCostId, + _o.ManageCostAmount, + _o.ConquestRewardId, + _o.MassErosionId, + _o.Upgrade2CostType, + _o.Upgrade2CostId, + _o.Upgrade2CostAmount, + _o.Upgrade3CostType, + _o.Upgrade3CostId, + _o.Upgrade3CostAmount); + } +} + +public class ConquestTileExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + public long EventId { get; set; } + public int Step { get; set; } + public string PrefabName { get; set; } + public string TileNameLocalize { get; set; } + public string TileImageName { get; set; } + public bool Playable { get; set; } + public SCHALE.Common.FlatData.ConquestTileType TileType { get; set; } + public bool NotMapFog { get; set; } + public long GroupBonusId { get; set; } + public SCHALE.Common.FlatData.ParcelType ConquestCostType { get; set; } + public long ConquestCostId { get; set; } + public int ConquestCostAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType ManageCostType { get; set; } + public long ManageCostId { get; set; } + public int ManageCostAmount { get; set; } + public long ConquestRewardId { get; set; } + public long MassErosionId { get; set; } + public SCHALE.Common.FlatData.ParcelType Upgrade2CostType { get; set; } + public long Upgrade2CostId { get; set; } + public int Upgrade2CostAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType Upgrade3CostType { get; set; } + public long Upgrade3CostId { get; set; } + public int Upgrade3CostAmount { get; set; } + + public ConquestTileExcelT() { + this.Id = 0; + this.Name = null; + this.EventId = 0; + this.Step = 0; + this.PrefabName = null; + this.TileNameLocalize = null; + this.TileImageName = null; + this.Playable = false; + this.TileType = SCHALE.Common.FlatData.ConquestTileType.None; + this.NotMapFog = false; + this.GroupBonusId = 0; + this.ConquestCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ConquestCostId = 0; + this.ConquestCostAmount = 0; + this.ManageCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ManageCostId = 0; + this.ManageCostAmount = 0; + this.ConquestRewardId = 0; + this.MassErosionId = 0; + this.Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None; + this.Upgrade2CostId = 0; + this.Upgrade2CostAmount = 0; + this.Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None; + this.Upgrade3CostId = 0; + this.Upgrade3CostAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ConquestTileExcelTable.cs b/SCHALE.Common/FlatData/ConquestTileExcelTable.cs index 304c24a..0ec1e04 100644 --- a/SCHALE.Common/FlatData/ConquestTileExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestTileExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestTileExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestTileExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestTileExcelTableT UnPack() { + var _o = new ConquestTileExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestTileExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestTileExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestTileExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestTileExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestTileExcelTable( + builder, + _DataList); + } +} + +public class ConquestTileExcelTableT +{ + public List DataList { get; set; } + + public ConquestTileExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs index 52794eb..d7af86c 100644 --- a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs +++ b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestUnexpectedEventExcel : IFlatbufferObject @@ -80,6 +81,71 @@ public struct ConquestUnexpectedEventExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestUnexpectedEventExcelT UnPack() { + var _o = new ConquestUnexpectedEventExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestUnexpectedEventExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestUnexpectedEvent"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UnexpectedEventConditionType = TableEncryptionService.Convert(this.UnexpectedEventConditionType, key); + _o.UnexpectedEventConditionUniqueId = TableEncryptionService.Convert(this.UnexpectedEventConditionUniqueId, key); + _o.UnexpectedEventConditionAmount = TableEncryptionService.Convert(this.UnexpectedEventConditionAmount, key); + _o.UnexpectedEventOccurDailyLimitCount = TableEncryptionService.Convert(this.UnexpectedEventOccurDailyLimitCount, key); + _o.UnitCountPerStep = TableEncryptionService.Convert(this.UnitCountPerStep, key); + _o.UnexpectedEventPrefab = new List(); + for (var _j = 0; _j < this.UnexpectedEventPrefabLength; ++_j) {_o.UnexpectedEventPrefab.Add(TableEncryptionService.Convert(this.UnexpectedEventPrefab(_j), key));} + _o.UnexpectedEventUnitId = new List(); + for (var _j = 0; _j < this.UnexpectedEventUnitIdLength; ++_j) {_o.UnexpectedEventUnitId.Add(TableEncryptionService.Convert(this.UnexpectedEventUnitId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestUnexpectedEventExcelT _o) { + if (_o == null) return default(Offset); + var _UnexpectedEventPrefab = default(VectorOffset); + if (_o.UnexpectedEventPrefab != null) { + var __UnexpectedEventPrefab = new StringOffset[_o.UnexpectedEventPrefab.Count]; + for (var _j = 0; _j < __UnexpectedEventPrefab.Length; ++_j) { __UnexpectedEventPrefab[_j] = builder.CreateString(_o.UnexpectedEventPrefab[_j]); } + _UnexpectedEventPrefab = CreateUnexpectedEventPrefabVector(builder, __UnexpectedEventPrefab); + } + var _UnexpectedEventUnitId = default(VectorOffset); + if (_o.UnexpectedEventUnitId != null) { + var __UnexpectedEventUnitId = _o.UnexpectedEventUnitId.ToArray(); + _UnexpectedEventUnitId = CreateUnexpectedEventUnitIdVector(builder, __UnexpectedEventUnitId); + } + return CreateConquestUnexpectedEventExcel( + builder, + _o.EventContentId, + _o.UnexpectedEventConditionType, + _o.UnexpectedEventConditionUniqueId, + _o.UnexpectedEventConditionAmount, + _o.UnexpectedEventOccurDailyLimitCount, + _o.UnitCountPerStep, + _UnexpectedEventPrefab, + _UnexpectedEventUnitId); + } +} + +public class ConquestUnexpectedEventExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType { get; set; } + public long UnexpectedEventConditionUniqueId { get; set; } + public long UnexpectedEventConditionAmount { get; set; } + public int UnexpectedEventOccurDailyLimitCount { get; set; } + public int UnitCountPerStep { get; set; } + public List UnexpectedEventPrefab { get; set; } + public List UnexpectedEventUnitId { get; set; } + + public ConquestUnexpectedEventExcelT() { + this.EventContentId = 0; + this.UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None; + this.UnexpectedEventConditionUniqueId = 0; + this.UnexpectedEventConditionAmount = 0; + this.UnexpectedEventOccurDailyLimitCount = 0; + this.UnitCountPerStep = 0; + this.UnexpectedEventPrefab = null; + this.UnexpectedEventUnitId = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs index 6193729..0c590a0 100644 --- a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestUnexpectedEventExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestUnexpectedEventExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestUnexpectedEventExcelTableT UnPack() { + var _o = new ConquestUnexpectedEventExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestUnexpectedEventExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestUnexpectedEventExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestUnexpectedEventExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestUnexpectedEventExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestUnexpectedEventExcelTable( + builder, + _DataList); + } +} + +public class ConquestUnexpectedEventExcelTableT +{ + public List DataList { get; set; } + + public ConquestUnexpectedEventExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConquestUnitExcel.cs b/SCHALE.Common/FlatData/ConquestUnitExcel.cs index 1e599c3..e25424a 100644 --- a/SCHALE.Common/FlatData/ConquestUnitExcel.cs +++ b/SCHALE.Common/FlatData/ConquestUnitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestUnitExcel : IFlatbufferObject @@ -212,6 +213,171 @@ public struct ConquestUnitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestUnitExcelT UnPack() { + var _o = new ConquestUnitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestUnitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestUnit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.StrategyPrefabName = TableEncryptionService.Convert(this.StrategyPrefabName, key); + _o.Scale = TableEncryptionService.Convert(this.Scale, key); + _o.ShieldEffectScale = TableEncryptionService.Convert(this.ShieldEffectScale, key); + _o.UnitFxPrefabName = TableEncryptionService.Convert(this.UnitFxPrefabName, key); + _o.PointAnimation = TableEncryptionService.Convert(this.PointAnimation, key); + _o.EnemyType = TableEncryptionService.Convert(this.EnemyType, key); + _o.Team = TableEncryptionService.Convert(this.Team, key); + _o.UnitGroup = TableEncryptionService.Convert(this.UnitGroup, key); + _o.PrevUnitGroup = TableEncryptionService.Convert(this.PrevUnitGroup, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.StarGoal = new List(); + for (var _j = 0; _j < this.StarGoalLength; ++_j) {_o.StarGoal.Add(TableEncryptionService.Convert(this.StarGoal(_j), key));} + _o.StarGoalAmount = new List(); + for (var _j = 0; _j < this.StarGoalAmountLength; ++_j) {_o.StarGoalAmount.Add(TableEncryptionService.Convert(this.StarGoalAmount(_j), key));} + _o.GroupBuffId = TableEncryptionService.Convert(this.GroupBuffId, key); + _o.StageEnterCostType = TableEncryptionService.Convert(this.StageEnterCostType, key); + _o.StageEnterCostId = TableEncryptionService.Convert(this.StageEnterCostId, key); + _o.StageEnterCostAmount = TableEncryptionService.Convert(this.StageEnterCostAmount, key); + _o.ManageEchelonStageEnterCostType = TableEncryptionService.Convert(this.ManageEchelonStageEnterCostType, key); + _o.ManageEchelonStageEnterCostId = TableEncryptionService.Convert(this.ManageEchelonStageEnterCostId, key); + _o.ManageEchelonStageEnterCostAmount = TableEncryptionService.Convert(this.ManageEchelonStageEnterCostAmount, key); + _o.EnterScenarioGroupId = TableEncryptionService.Convert(this.EnterScenarioGroupId, key); + _o.ClearScenarioGroupId = TableEncryptionService.Convert(this.ClearScenarioGroupId, key); + _o.ConquestRewardId = TableEncryptionService.Convert(this.ConquestRewardId, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.TacticRewardExp = TableEncryptionService.Convert(this.TacticRewardExp, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConquestUnitExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _StrategyPrefabName = _o.StrategyPrefabName == null ? default(StringOffset) : builder.CreateString(_o.StrategyPrefabName); + var _UnitFxPrefabName = _o.UnitFxPrefabName == null ? default(StringOffset) : builder.CreateString(_o.UnitFxPrefabName); + var _PointAnimation = _o.PointAnimation == null ? default(StringOffset) : builder.CreateString(_o.PointAnimation); + var _StarGoal = default(VectorOffset); + if (_o.StarGoal != null) { + var __StarGoal = _o.StarGoal.ToArray(); + _StarGoal = CreateStarGoalVector(builder, __StarGoal); + } + var _StarGoalAmount = default(VectorOffset); + if (_o.StarGoalAmount != null) { + var __StarGoalAmount = _o.StarGoalAmount.ToArray(); + _StarGoalAmount = CreateStarGoalAmountVector(builder, __StarGoalAmount); + } + return CreateConquestUnitExcel( + builder, + _o.Id, + _o.Key, + _Name, + _PrefabName, + _StrategyPrefabName, + _o.Scale, + _o.ShieldEffectScale, + _UnitFxPrefabName, + _PointAnimation, + _o.EnemyType, + _o.Team, + _o.UnitGroup, + _o.PrevUnitGroup, + _o.BattleDuration, + _o.GroundId, + _StarGoal, + _StarGoalAmount, + _o.GroupBuffId, + _o.StageEnterCostType, + _o.StageEnterCostId, + _o.StageEnterCostAmount, + _o.ManageEchelonStageEnterCostType, + _o.ManageEchelonStageEnterCostId, + _o.ManageEchelonStageEnterCostAmount, + _o.EnterScenarioGroupId, + _o.ClearScenarioGroupId, + _o.ConquestRewardId, + _o.StageTopography, + _o.RecommandLevel, + _o.TacticRewardExp, + _o.FixedEchelonId, + _o.EchelonExtensionType); + } +} + +public class ConquestUnitExcelT +{ + public long Id { get; set; } + public uint Key { get; set; } + public string Name { get; set; } + public string PrefabName { get; set; } + public string StrategyPrefabName { get; set; } + public float Scale { get; set; } + public float ShieldEffectScale { get; set; } + public string UnitFxPrefabName { get; set; } + public string PointAnimation { get; set; } + public SCHALE.Common.FlatData.ConquestEnemyType EnemyType { get; set; } + public SCHALE.Common.FlatData.ConquestTeamType Team { get; set; } + public long UnitGroup { get; set; } + public long PrevUnitGroup { get; set; } + public long BattleDuration { get; set; } + public long GroundId { get; set; } + public List StarGoal { get; set; } + public List StarGoalAmount { get; set; } + public long GroupBuffId { get; set; } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get; set; } + public long StageEnterCostId { get; set; } + public int StageEnterCostAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType { get; set; } + public long ManageEchelonStageEnterCostId { get; set; } + public int ManageEchelonStageEnterCostAmount { get; set; } + public long EnterScenarioGroupId { get; set; } + public long ClearScenarioGroupId { get; set; } + public long ConquestRewardId { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public int RecommandLevel { get; set; } + public long TacticRewardExp { get; set; } + public long FixedEchelonId { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public ConquestUnitExcelT() { + this.Id = 0; + this.Key = 0; + this.Name = null; + this.PrefabName = null; + this.StrategyPrefabName = null; + this.Scale = 0.0f; + this.ShieldEffectScale = 0.0f; + this.UnitFxPrefabName = null; + this.PointAnimation = null; + this.EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None; + this.Team = SCHALE.Common.FlatData.ConquestTeamType.None; + this.UnitGroup = 0; + this.PrevUnitGroup = 0; + this.BattleDuration = 0; + this.GroundId = 0; + this.StarGoal = null; + this.StarGoalAmount = null; + this.GroupBuffId = 0; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostId = 0; + this.StageEnterCostAmount = 0; + this.ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ManageEchelonStageEnterCostId = 0; + this.ManageEchelonStageEnterCostAmount = 0; + this.EnterScenarioGroupId = 0; + this.ClearScenarioGroupId = 0; + this.ConquestRewardId = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.TacticRewardExp = 0; + this.FixedEchelonId = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs b/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs index 723e518..5e7a2b2 100644 --- a/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs +++ b/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConquestUnitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConquestUnitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConquestUnitExcelTableT UnPack() { + var _o = new ConquestUnitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConquestUnitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConquestUnitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConquestUnitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConquestUnitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConquestUnitExcelTable( + builder, + _DataList); + } +} + +public class ConquestUnitExcelTableT +{ + public List DataList { get; set; } + + public ConquestUnitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstArenaExcel.cs b/SCHALE.Common/FlatData/ConstArenaExcel.cs index cb46c5f..573343f 100644 --- a/SCHALE.Common/FlatData/ConstArenaExcel.cs +++ b/SCHALE.Common/FlatData/ConstArenaExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstArenaExcel : IFlatbufferObject @@ -266,6 +267,202 @@ public struct ConstArenaExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstArenaExcelT UnPack() { + var _o = new ConstArenaExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstArenaExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstArena"); + _o.AttackCoolTime = TableEncryptionService.Convert(this.AttackCoolTime, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.DefenseCoolTime = TableEncryptionService.Convert(this.DefenseCoolTime, key); + _o.TSSStartCoolTime = TableEncryptionService.Convert(this.TSSStartCoolTime, key); + _o.EndAlarm = TableEncryptionService.Convert(this.EndAlarm, key); + _o.TimeRewardMaxAmount = TableEncryptionService.Convert(this.TimeRewardMaxAmount, key); + _o.EnterCostType = TableEncryptionService.Convert(this.EnterCostType, key); + _o.EnterCostId = TableEncryptionService.Convert(this.EnterCostId, key); + _o.TicketCost = TableEncryptionService.Convert(this.TicketCost, key); + _o.DailyRewardResetTime = TableEncryptionService.Convert(this.DailyRewardResetTime, key); + _o.OpenScenarioId = TableEncryptionService.Convert(this.OpenScenarioId, key); + _o.CharacterSlotHideRank = new List(); + for (var _j = 0; _j < this.CharacterSlotHideRankLength; ++_j) {_o.CharacterSlotHideRank.Add(TableEncryptionService.Convert(this.CharacterSlotHideRank(_j), key));} + _o.MapSlotHideRank = TableEncryptionService.Convert(this.MapSlotHideRank, key); + _o.RelativeOpponentRankStart = new List(); + for (var _j = 0; _j < this.RelativeOpponentRankStartLength; ++_j) {_o.RelativeOpponentRankStart.Add(TableEncryptionService.Convert(this.RelativeOpponentRankStart(_j), key));} + _o.RelativeOpponentRankEnd = new List(); + for (var _j = 0; _j < this.RelativeOpponentRankEndLength; ++_j) {_o.RelativeOpponentRankEnd.Add(TableEncryptionService.Convert(this.RelativeOpponentRankEnd(_j), key));} + _o.ModifiedStatType = new List(); + for (var _j = 0; _j < this.ModifiedStatTypeLength; ++_j) {_o.ModifiedStatType.Add(TableEncryptionService.Convert(this.ModifiedStatType(_j), key));} + _o.StatMulFactor = new List(); + for (var _j = 0; _j < this.StatMulFactorLength; ++_j) {_o.StatMulFactor.Add(TableEncryptionService.Convert(this.StatMulFactor(_j), key));} + _o.StatSumFactor = new List(); + for (var _j = 0; _j < this.StatSumFactorLength; ++_j) {_o.StatSumFactor.Add(TableEncryptionService.Convert(this.StatSumFactor(_j), key));} + _o.NPCName = new List(); + for (var _j = 0; _j < this.NPCNameLength; ++_j) {_o.NPCName.Add(TableEncryptionService.Convert(this.NPCName(_j), key));} + _o.NPCMainCharacterCount = TableEncryptionService.Convert(this.NPCMainCharacterCount, key); + _o.NPCSupportCharacterCount = TableEncryptionService.Convert(this.NPCSupportCharacterCount, key); + _o.NPCCharacterSkillLevel = TableEncryptionService.Convert(this.NPCCharacterSkillLevel, key); + _o.TimeSpanInDaysForBattleHistory = TableEncryptionService.Convert(this.TimeSpanInDaysForBattleHistory, key); + _o.HiddenCharacterImagePath = TableEncryptionService.Convert(this.HiddenCharacterImagePath, key); + _o.DefenseVictoryRewardMaxCount = TableEncryptionService.Convert(this.DefenseVictoryRewardMaxCount, key); + _o.TopRankerCountLimit = TableEncryptionService.Convert(this.TopRankerCountLimit, key); + _o.AutoRefreshIntervalMilliSeconds = TableEncryptionService.Convert(this.AutoRefreshIntervalMilliSeconds, key); + _o.EchelonSettingIntervalMilliSeconds = TableEncryptionService.Convert(this.EchelonSettingIntervalMilliSeconds, key); + _o.SkipAllowedTimeMilliSeconds = TableEncryptionService.Convert(this.SkipAllowedTimeMilliSeconds, key); + _o.ShowSeasonChangeInfoStartTime = TableEncryptionService.Convert(this.ShowSeasonChangeInfoStartTime, key); + _o.ShowSeasonChangeInfoEndTime = TableEncryptionService.Convert(this.ShowSeasonChangeInfoEndTime, key); + _o.ShowSeasonId = TableEncryptionService.Convert(this.ShowSeasonId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstArenaExcelT _o) { + if (_o == null) return default(Offset); + var _DailyRewardResetTime = _o.DailyRewardResetTime == null ? default(StringOffset) : builder.CreateString(_o.DailyRewardResetTime); + var _OpenScenarioId = _o.OpenScenarioId == null ? default(StringOffset) : builder.CreateString(_o.OpenScenarioId); + var _CharacterSlotHideRank = default(VectorOffset); + if (_o.CharacterSlotHideRank != null) { + var __CharacterSlotHideRank = _o.CharacterSlotHideRank.ToArray(); + _CharacterSlotHideRank = CreateCharacterSlotHideRankVector(builder, __CharacterSlotHideRank); + } + var _RelativeOpponentRankStart = default(VectorOffset); + if (_o.RelativeOpponentRankStart != null) { + var __RelativeOpponentRankStart = _o.RelativeOpponentRankStart.ToArray(); + _RelativeOpponentRankStart = CreateRelativeOpponentRankStartVector(builder, __RelativeOpponentRankStart); + } + var _RelativeOpponentRankEnd = default(VectorOffset); + if (_o.RelativeOpponentRankEnd != null) { + var __RelativeOpponentRankEnd = _o.RelativeOpponentRankEnd.ToArray(); + _RelativeOpponentRankEnd = CreateRelativeOpponentRankEndVector(builder, __RelativeOpponentRankEnd); + } + var _ModifiedStatType = default(VectorOffset); + if (_o.ModifiedStatType != null) { + var __ModifiedStatType = _o.ModifiedStatType.ToArray(); + _ModifiedStatType = CreateModifiedStatTypeVector(builder, __ModifiedStatType); + } + var _StatMulFactor = default(VectorOffset); + if (_o.StatMulFactor != null) { + var __StatMulFactor = _o.StatMulFactor.ToArray(); + _StatMulFactor = CreateStatMulFactorVector(builder, __StatMulFactor); + } + var _StatSumFactor = default(VectorOffset); + if (_o.StatSumFactor != null) { + var __StatSumFactor = _o.StatSumFactor.ToArray(); + _StatSumFactor = CreateStatSumFactorVector(builder, __StatSumFactor); + } + var _NPCName = default(VectorOffset); + if (_o.NPCName != null) { + var __NPCName = new StringOffset[_o.NPCName.Count]; + for (var _j = 0; _j < __NPCName.Length; ++_j) { __NPCName[_j] = builder.CreateString(_o.NPCName[_j]); } + _NPCName = CreateNPCNameVector(builder, __NPCName); + } + var _HiddenCharacterImagePath = _o.HiddenCharacterImagePath == null ? default(StringOffset) : builder.CreateString(_o.HiddenCharacterImagePath); + var _ShowSeasonChangeInfoStartTime = _o.ShowSeasonChangeInfoStartTime == null ? default(StringOffset) : builder.CreateString(_o.ShowSeasonChangeInfoStartTime); + var _ShowSeasonChangeInfoEndTime = _o.ShowSeasonChangeInfoEndTime == null ? default(StringOffset) : builder.CreateString(_o.ShowSeasonChangeInfoEndTime); + return CreateConstArenaExcel( + builder, + _o.AttackCoolTime, + _o.BattleDuration, + _o.DefenseCoolTime, + _o.TSSStartCoolTime, + _o.EndAlarm, + _o.TimeRewardMaxAmount, + _o.EnterCostType, + _o.EnterCostId, + _o.TicketCost, + _DailyRewardResetTime, + _OpenScenarioId, + _CharacterSlotHideRank, + _o.MapSlotHideRank, + _RelativeOpponentRankStart, + _RelativeOpponentRankEnd, + _ModifiedStatType, + _StatMulFactor, + _StatSumFactor, + _NPCName, + _o.NPCMainCharacterCount, + _o.NPCSupportCharacterCount, + _o.NPCCharacterSkillLevel, + _o.TimeSpanInDaysForBattleHistory, + _HiddenCharacterImagePath, + _o.DefenseVictoryRewardMaxCount, + _o.TopRankerCountLimit, + _o.AutoRefreshIntervalMilliSeconds, + _o.EchelonSettingIntervalMilliSeconds, + _o.SkipAllowedTimeMilliSeconds, + _ShowSeasonChangeInfoStartTime, + _ShowSeasonChangeInfoEndTime, + _o.ShowSeasonId); + } +} + +public class ConstArenaExcelT +{ + public long AttackCoolTime { get; set; } + public long BattleDuration { get; set; } + public long DefenseCoolTime { get; set; } + public long TSSStartCoolTime { get; set; } + public long EndAlarm { get; set; } + public long TimeRewardMaxAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType EnterCostType { get; set; } + public long EnterCostId { get; set; } + public long TicketCost { get; set; } + public string DailyRewardResetTime { get; set; } + public string OpenScenarioId { get; set; } + public List CharacterSlotHideRank { get; set; } + public long MapSlotHideRank { get; set; } + public List RelativeOpponentRankStart { get; set; } + public List RelativeOpponentRankEnd { get; set; } + public List ModifiedStatType { get; set; } + public List StatMulFactor { get; set; } + public List StatSumFactor { get; set; } + public List NPCName { get; set; } + public long NPCMainCharacterCount { get; set; } + public long NPCSupportCharacterCount { get; set; } + public long NPCCharacterSkillLevel { get; set; } + public long TimeSpanInDaysForBattleHistory { get; set; } + public string HiddenCharacterImagePath { get; set; } + public long DefenseVictoryRewardMaxCount { get; set; } + public long TopRankerCountLimit { get; set; } + public long AutoRefreshIntervalMilliSeconds { get; set; } + public long EchelonSettingIntervalMilliSeconds { get; set; } + public long SkipAllowedTimeMilliSeconds { get; set; } + public string ShowSeasonChangeInfoStartTime { get; set; } + public string ShowSeasonChangeInfoEndTime { get; set; } + public long ShowSeasonId { get; set; } + + public ConstArenaExcelT() { + this.AttackCoolTime = 0; + this.BattleDuration = 0; + this.DefenseCoolTime = 0; + this.TSSStartCoolTime = 0; + this.EndAlarm = 0; + this.TimeRewardMaxAmount = 0; + this.EnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EnterCostId = 0; + this.TicketCost = 0; + this.DailyRewardResetTime = null; + this.OpenScenarioId = null; + this.CharacterSlotHideRank = null; + this.MapSlotHideRank = 0; + this.RelativeOpponentRankStart = null; + this.RelativeOpponentRankEnd = null; + this.ModifiedStatType = null; + this.StatMulFactor = null; + this.StatSumFactor = null; + this.NPCName = null; + this.NPCMainCharacterCount = 0; + this.NPCSupportCharacterCount = 0; + this.NPCCharacterSkillLevel = 0; + this.TimeSpanInDaysForBattleHistory = 0; + this.HiddenCharacterImagePath = null; + this.DefenseVictoryRewardMaxCount = 0; + this.TopRankerCountLimit = 0; + this.AutoRefreshIntervalMilliSeconds = 0; + this.EchelonSettingIntervalMilliSeconds = 0; + this.SkipAllowedTimeMilliSeconds = 0; + this.ShowSeasonChangeInfoStartTime = null; + this.ShowSeasonChangeInfoEndTime = null; + this.ShowSeasonId = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstArenaExcelTable.cs b/SCHALE.Common/FlatData/ConstArenaExcelTable.cs index 8e28cee..ccd56a2 100644 --- a/SCHALE.Common/FlatData/ConstArenaExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstArenaExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstArenaExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstArenaExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstArenaExcelTableT UnPack() { + var _o = new ConstArenaExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstArenaExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstArenaExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstArenaExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstArenaExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstArenaExcelTable( + builder, + _DataList); + } +} + +public class ConstArenaExcelTableT +{ + public List DataList { get; set; } + + public ConstArenaExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstAudioExcel.cs b/SCHALE.Common/FlatData/ConstAudioExcel.cs index 6a0337d..ff7958b 100644 --- a/SCHALE.Common/FlatData/ConstAudioExcel.cs +++ b/SCHALE.Common/FlatData/ConstAudioExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstAudioExcel : IFlatbufferObject @@ -70,6 +71,46 @@ public struct ConstAudioExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstAudioExcelT UnPack() { + var _o = new ConstAudioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstAudioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstAudio"); + _o.DefaultSnapShotName = TableEncryptionService.Convert(this.DefaultSnapShotName, key); + _o.BattleSnapShotName = TableEncryptionService.Convert(this.BattleSnapShotName, key); + _o.RaidSnapShotName = TableEncryptionService.Convert(this.RaidSnapShotName, key); + _o.ExSkillCutInSnapShotName = TableEncryptionService.Convert(this.ExSkillCutInSnapShotName, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstAudioExcelT _o) { + if (_o == null) return default(Offset); + var _DefaultSnapShotName = _o.DefaultSnapShotName == null ? default(StringOffset) : builder.CreateString(_o.DefaultSnapShotName); + var _BattleSnapShotName = _o.BattleSnapShotName == null ? default(StringOffset) : builder.CreateString(_o.BattleSnapShotName); + var _RaidSnapShotName = _o.RaidSnapShotName == null ? default(StringOffset) : builder.CreateString(_o.RaidSnapShotName); + var _ExSkillCutInSnapShotName = _o.ExSkillCutInSnapShotName == null ? default(StringOffset) : builder.CreateString(_o.ExSkillCutInSnapShotName); + return CreateConstAudioExcel( + builder, + _DefaultSnapShotName, + _BattleSnapShotName, + _RaidSnapShotName, + _ExSkillCutInSnapShotName); + } +} + +public class ConstAudioExcelT +{ + public string DefaultSnapShotName { get; set; } + public string BattleSnapShotName { get; set; } + public string RaidSnapShotName { get; set; } + public string ExSkillCutInSnapShotName { get; set; } + + public ConstAudioExcelT() { + this.DefaultSnapShotName = null; + this.BattleSnapShotName = null; + this.RaidSnapShotName = null; + this.ExSkillCutInSnapShotName = null; + } } diff --git a/SCHALE.Common/FlatData/ConstAudioExcelTable.cs b/SCHALE.Common/FlatData/ConstAudioExcelTable.cs index cf7c82e..cf100a8 100644 --- a/SCHALE.Common/FlatData/ConstAudioExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstAudioExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstAudioExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstAudioExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstAudioExcelTableT UnPack() { + var _o = new ConstAudioExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstAudioExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstAudioExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstAudioExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstAudioExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstAudioExcelTable( + builder, + _DataList); + } +} + +public class ConstAudioExcelTableT +{ + public List DataList { get; set; } + + public ConstAudioExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstCombatExcel.cs b/SCHALE.Common/FlatData/ConstCombatExcel.cs index ebe67d3..f46e1c4 100644 --- a/SCHALE.Common/FlatData/ConstCombatExcel.cs +++ b/SCHALE.Common/FlatData/ConstCombatExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstCombatExcel : IFlatbufferObject @@ -400,6 +401,351 @@ public struct ConstCombatExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstCombatExcelT UnPack() { + var _o = new ConstCombatExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstCombatExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstCombat"); + _o.SkillHandCount = TableEncryptionService.Convert(this.SkillHandCount, key); + _o.DyingTime = TableEncryptionService.Convert(this.DyingTime, key); + _o.BuffIconBlinkTime = TableEncryptionService.Convert(this.BuffIconBlinkTime, key); + _o.ShowBufficonEXSkill = TableEncryptionService.Convert(this.ShowBufficonEXSkill, key); + _o.ShowBufficonPassiveSkill = TableEncryptionService.Convert(this.ShowBufficonPassiveSkill, key); + _o.ShowBufficonExtraPassiveSkill = TableEncryptionService.Convert(this.ShowBufficonExtraPassiveSkill, key); + _o.ShowBufficonLeaderSkill = TableEncryptionService.Convert(this.ShowBufficonLeaderSkill, key); + _o.ShowBufficonGroundPassiveSkill = TableEncryptionService.Convert(this.ShowBufficonGroundPassiveSkill, key); + _o.SuppliesConditionStringId = TableEncryptionService.Convert(this.SuppliesConditionStringId, key); + _o.PublicSpeechBubbleOffsetX = TableEncryptionService.Convert(this.PublicSpeechBubbleOffsetX, key); + _o.PublicSpeechBubbleOffsetY = TableEncryptionService.Convert(this.PublicSpeechBubbleOffsetY, key); + _o.PublicSpeechBubbleOffsetZ = TableEncryptionService.Convert(this.PublicSpeechBubbleOffsetZ, key); + _o.ShowRaidListCount = TableEncryptionService.Convert(this.ShowRaidListCount, key); + _o.MaxRaidTicketCount = TableEncryptionService.Convert(this.MaxRaidTicketCount, key); + _o.MaxRaidBossSkillSlot = TableEncryptionService.Convert(this.MaxRaidBossSkillSlot, key); + _o.EngageTimelinePath = TableEncryptionService.Convert(this.EngageTimelinePath, key); + _o.EngageWithSupporterTimelinePath = TableEncryptionService.Convert(this.EngageWithSupporterTimelinePath, key); + _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); + _o.TimeLimitAlarm = TableEncryptionService.Convert(this.TimeLimitAlarm, key); + _o.EchelonMaxCommonCost = TableEncryptionService.Convert(this.EchelonMaxCommonCost, key); + _o.EchelonInitCommonCost = TableEncryptionService.Convert(this.EchelonInitCommonCost, key); + _o.SkillSlotCoolTime = TableEncryptionService.Convert(this.SkillSlotCoolTime, key); + _o.EnemyRegenCost = TableEncryptionService.Convert(this.EnemyRegenCost, key); + _o.ChampionRegenCost = TableEncryptionService.Convert(this.ChampionRegenCost, key); + _o.PlayerRegenCostDelay = TableEncryptionService.Convert(this.PlayerRegenCostDelay, key); + _o.CrowdControlFactor = TableEncryptionService.Convert(this.CrowdControlFactor, key); + _o.RaidOpenScenarioId = TableEncryptionService.Convert(this.RaidOpenScenarioId, key); + _o.EliminateRaidOpenScenarioId = TableEncryptionService.Convert(this.EliminateRaidOpenScenarioId, key); + _o.DefenceConstA = TableEncryptionService.Convert(this.DefenceConstA, key); + _o.DefenceConstB = TableEncryptionService.Convert(this.DefenceConstB, key); + _o.DefenceConstC = TableEncryptionService.Convert(this.DefenceConstC, key); + _o.DefenceConstD = TableEncryptionService.Convert(this.DefenceConstD, key); + _o.AccuracyConstA = TableEncryptionService.Convert(this.AccuracyConstA, key); + _o.AccuracyConstB = TableEncryptionService.Convert(this.AccuracyConstB, key); + _o.AccuracyConstC = TableEncryptionService.Convert(this.AccuracyConstC, key); + _o.AccuracyConstD = TableEncryptionService.Convert(this.AccuracyConstD, key); + _o.CriticalConstA = TableEncryptionService.Convert(this.CriticalConstA, key); + _o.CriticalConstB = TableEncryptionService.Convert(this.CriticalConstB, key); + _o.CriticalConstC = TableEncryptionService.Convert(this.CriticalConstC, key); + _o.CriticalConstD = TableEncryptionService.Convert(this.CriticalConstD, key); + _o.MaxGroupBuffLevel = TableEncryptionService.Convert(this.MaxGroupBuffLevel, key); + _o.EmojiDefaultTime = TableEncryptionService.Convert(this.EmojiDefaultTime, key); + _o.TimeLineActionRotateSpeed = TableEncryptionService.Convert(this.TimeLineActionRotateSpeed, key); + _o.BodyRotateSpeed = TableEncryptionService.Convert(this.BodyRotateSpeed, key); + _o.NormalTimeScale = TableEncryptionService.Convert(this.NormalTimeScale, key); + _o.FastTimeScale = TableEncryptionService.Convert(this.FastTimeScale, key); + _o.BulletTimeScale = TableEncryptionService.Convert(this.BulletTimeScale, key); + _o.UIDisplayDelayAfterSkillCutIn = TableEncryptionService.Convert(this.UIDisplayDelayAfterSkillCutIn, key); + _o.UseInitialRangeForCoverMove = TableEncryptionService.Convert(this.UseInitialRangeForCoverMove, key); + _o.SlowTimeScale = TableEncryptionService.Convert(this.SlowTimeScale, key); + _o.AimIKMinDegree = TableEncryptionService.Convert(this.AimIKMinDegree, key); + _o.AimIKMaxDegree = TableEncryptionService.Convert(this.AimIKMaxDegree, key); + _o.MinimumClearTime = TableEncryptionService.Convert(this.MinimumClearTime, key); + _o.MinimumClearLevelGap = TableEncryptionService.Convert(this.MinimumClearLevelGap, key); + _o.CheckCheaterMaxUseCostNonArena = TableEncryptionService.Convert(this.CheckCheaterMaxUseCostNonArena, key); + _o.CheckCheaterMaxUseCostArena = TableEncryptionService.Convert(this.CheckCheaterMaxUseCostArena, key); + _o.AllowedMaxTimeScale = TableEncryptionService.Convert(this.AllowedMaxTimeScale, key); + _o.RandomAnimationOutput = TableEncryptionService.Convert(this.RandomAnimationOutput, key); + _o.SummonedTeleportDistance = TableEncryptionService.Convert(this.SummonedTeleportDistance, key); + _o.ArenaMinimumClearTime = TableEncryptionService.Convert(this.ArenaMinimumClearTime, key); + _o.WORLDBOSSBATTLELITTLE = TableEncryptionService.Convert(this.WORLDBOSSBATTLELITTLE, key); + _o.WORLDBOSSBATTLEMIDDLE = TableEncryptionService.Convert(this.WORLDBOSSBATTLEMIDDLE, key); + _o.WORLDBOSSBATTLEHIGH = TableEncryptionService.Convert(this.WORLDBOSSBATTLEHIGH, key); + _o.WORLDBOSSBATTLEVERYHIGH = TableEncryptionService.Convert(this.WORLDBOSSBATTLEVERYHIGH, key); + _o.WorldRaidAutoSyncTermSecond = TableEncryptionService.Convert(this.WorldRaidAutoSyncTermSecond, key); + _o.WorldRaidBossHpDecreaseTerm = TableEncryptionService.Convert(this.WorldRaidBossHpDecreaseTerm, key); + _o.WorldRaidBossParcelReactionDelay = TableEncryptionService.Convert(this.WorldRaidBossParcelReactionDelay, key); + _o.RaidRankingJumpMinimumWaitingTime = TableEncryptionService.Convert(this.RaidRankingJumpMinimumWaitingTime, key); + _o.EffectTeleportDistance = TableEncryptionService.Convert(this.EffectTeleportDistance, key); + _o.AuraExitThresholdMargin = TableEncryptionService.Convert(this.AuraExitThresholdMargin, key); + _o.TSAInteractionDamageFactor = TableEncryptionService.Convert(this.TSAInteractionDamageFactor, key); + _o.VictoryInteractionRate = TableEncryptionService.Convert(this.VictoryInteractionRate, key); + _o.EchelonExtensionEngageTimelinePath = TableEncryptionService.Convert(this.EchelonExtensionEngageTimelinePath, key); + _o.EchelonExtensionEngageWithSupporterTimelinePath = TableEncryptionService.Convert(this.EchelonExtensionEngageWithSupporterTimelinePath, key); + _o.EchelonExtensionVictoryTimelinePath = TableEncryptionService.Convert(this.EchelonExtensionVictoryTimelinePath, key); + _o.EchelonExtensionEchelonMaxCommonCost = TableEncryptionService.Convert(this.EchelonExtensionEchelonMaxCommonCost, key); + _o.EchelonExtensionEchelonInitCommonCost = TableEncryptionService.Convert(this.EchelonExtensionEchelonInitCommonCost, key); + _o.EchelonExtensionCostRegenRatio = TableEncryptionService.Convert(this.EchelonExtensionCostRegenRatio, key); + _o.CheckCheaterMaxUseCostMultiFloorRaid = TableEncryptionService.Convert(this.CheckCheaterMaxUseCostMultiFloorRaid, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstCombatExcelT _o) { + if (_o == null) return default(Offset); + var _SuppliesConditionStringId = _o.SuppliesConditionStringId == null ? default(StringOffset) : builder.CreateString(_o.SuppliesConditionStringId); + var _EngageTimelinePath = _o.EngageTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.EngageTimelinePath); + var _EngageWithSupporterTimelinePath = _o.EngageWithSupporterTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.EngageWithSupporterTimelinePath); + var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); + var _RaidOpenScenarioId = _o.RaidOpenScenarioId == null ? default(StringOffset) : builder.CreateString(_o.RaidOpenScenarioId); + var _EliminateRaidOpenScenarioId = _o.EliminateRaidOpenScenarioId == null ? default(StringOffset) : builder.CreateString(_o.EliminateRaidOpenScenarioId); + var _EchelonExtensionEngageTimelinePath = _o.EchelonExtensionEngageTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.EchelonExtensionEngageTimelinePath); + var _EchelonExtensionEngageWithSupporterTimelinePath = _o.EchelonExtensionEngageWithSupporterTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.EchelonExtensionEngageWithSupporterTimelinePath); + var _EchelonExtensionVictoryTimelinePath = _o.EchelonExtensionVictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.EchelonExtensionVictoryTimelinePath); + return CreateConstCombatExcel( + builder, + _o.SkillHandCount, + _o.DyingTime, + _o.BuffIconBlinkTime, + _o.ShowBufficonEXSkill, + _o.ShowBufficonPassiveSkill, + _o.ShowBufficonExtraPassiveSkill, + _o.ShowBufficonLeaderSkill, + _o.ShowBufficonGroundPassiveSkill, + _SuppliesConditionStringId, + _o.PublicSpeechBubbleOffsetX, + _o.PublicSpeechBubbleOffsetY, + _o.PublicSpeechBubbleOffsetZ, + _o.ShowRaidListCount, + _o.MaxRaidTicketCount, + _o.MaxRaidBossSkillSlot, + _EngageTimelinePath, + _EngageWithSupporterTimelinePath, + _VictoryTimelinePath, + _o.TimeLimitAlarm, + _o.EchelonMaxCommonCost, + _o.EchelonInitCommonCost, + _o.SkillSlotCoolTime, + _o.EnemyRegenCost, + _o.ChampionRegenCost, + _o.PlayerRegenCostDelay, + _o.CrowdControlFactor, + _RaidOpenScenarioId, + _EliminateRaidOpenScenarioId, + _o.DefenceConstA, + _o.DefenceConstB, + _o.DefenceConstC, + _o.DefenceConstD, + _o.AccuracyConstA, + _o.AccuracyConstB, + _o.AccuracyConstC, + _o.AccuracyConstD, + _o.CriticalConstA, + _o.CriticalConstB, + _o.CriticalConstC, + _o.CriticalConstD, + _o.MaxGroupBuffLevel, + _o.EmojiDefaultTime, + _o.TimeLineActionRotateSpeed, + _o.BodyRotateSpeed, + _o.NormalTimeScale, + _o.FastTimeScale, + _o.BulletTimeScale, + _o.UIDisplayDelayAfterSkillCutIn, + _o.UseInitialRangeForCoverMove, + _o.SlowTimeScale, + _o.AimIKMinDegree, + _o.AimIKMaxDegree, + _o.MinimumClearTime, + _o.MinimumClearLevelGap, + _o.CheckCheaterMaxUseCostNonArena, + _o.CheckCheaterMaxUseCostArena, + _o.AllowedMaxTimeScale, + _o.RandomAnimationOutput, + _o.SummonedTeleportDistance, + _o.ArenaMinimumClearTime, + _o.WORLDBOSSBATTLELITTLE, + _o.WORLDBOSSBATTLEMIDDLE, + _o.WORLDBOSSBATTLEHIGH, + _o.WORLDBOSSBATTLEVERYHIGH, + _o.WorldRaidAutoSyncTermSecond, + _o.WorldRaidBossHpDecreaseTerm, + _o.WorldRaidBossParcelReactionDelay, + _o.RaidRankingJumpMinimumWaitingTime, + _o.EffectTeleportDistance, + _o.AuraExitThresholdMargin, + _o.TSAInteractionDamageFactor, + _o.VictoryInteractionRate, + _EchelonExtensionEngageTimelinePath, + _EchelonExtensionEngageWithSupporterTimelinePath, + _EchelonExtensionVictoryTimelinePath, + _o.EchelonExtensionEchelonMaxCommonCost, + _o.EchelonExtensionEchelonInitCommonCost, + _o.EchelonExtensionCostRegenRatio, + _o.CheckCheaterMaxUseCostMultiFloorRaid); + } +} + +public class ConstCombatExcelT +{ + public int SkillHandCount { get; set; } + public int DyingTime { get; set; } + public int BuffIconBlinkTime { get; set; } + public bool ShowBufficonEXSkill { get; set; } + public bool ShowBufficonPassiveSkill { get; set; } + public bool ShowBufficonExtraPassiveSkill { get; set; } + public bool ShowBufficonLeaderSkill { get; set; } + public bool ShowBufficonGroundPassiveSkill { get; set; } + public string SuppliesConditionStringId { get; set; } + public float PublicSpeechBubbleOffsetX { get; set; } + public float PublicSpeechBubbleOffsetY { get; set; } + public float PublicSpeechBubbleOffsetZ { get; set; } + public int ShowRaidListCount { get; set; } + public long MaxRaidTicketCount { get; set; } + public long MaxRaidBossSkillSlot { get; set; } + public string EngageTimelinePath { get; set; } + public string EngageWithSupporterTimelinePath { get; set; } + public string VictoryTimelinePath { get; set; } + public long TimeLimitAlarm { get; set; } + public int EchelonMaxCommonCost { get; set; } + public int EchelonInitCommonCost { get; set; } + public long SkillSlotCoolTime { get; set; } + public long EnemyRegenCost { get; set; } + public long ChampionRegenCost { get; set; } + public long PlayerRegenCostDelay { get; set; } + public long CrowdControlFactor { get; set; } + public string RaidOpenScenarioId { get; set; } + public string EliminateRaidOpenScenarioId { get; set; } + public long DefenceConstA { get; set; } + public long DefenceConstB { get; set; } + public long DefenceConstC { get; set; } + public long DefenceConstD { get; set; } + public long AccuracyConstA { get; set; } + public long AccuracyConstB { get; set; } + public long AccuracyConstC { get; set; } + public long AccuracyConstD { get; set; } + public long CriticalConstA { get; set; } + public long CriticalConstB { get; set; } + public long CriticalConstC { get; set; } + public long CriticalConstD { get; set; } + public int MaxGroupBuffLevel { get; set; } + public int EmojiDefaultTime { get; set; } + public long TimeLineActionRotateSpeed { get; set; } + public long BodyRotateSpeed { get; set; } + public long NormalTimeScale { get; set; } + public long FastTimeScale { get; set; } + public long BulletTimeScale { get; set; } + public long UIDisplayDelayAfterSkillCutIn { get; set; } + public bool UseInitialRangeForCoverMove { get; set; } + public long SlowTimeScale { get; set; } + public float AimIKMinDegree { get; set; } + public float AimIKMaxDegree { get; set; } + public int MinimumClearTime { get; set; } + public int MinimumClearLevelGap { get; set; } + public int CheckCheaterMaxUseCostNonArena { get; set; } + public int CheckCheaterMaxUseCostArena { get; set; } + public long AllowedMaxTimeScale { get; set; } + public long RandomAnimationOutput { get; set; } + public long SummonedTeleportDistance { get; set; } + public int ArenaMinimumClearTime { get; set; } + public long WORLDBOSSBATTLELITTLE { get; set; } + public long WORLDBOSSBATTLEMIDDLE { get; set; } + public long WORLDBOSSBATTLEHIGH { get; set; } + public long WORLDBOSSBATTLEVERYHIGH { get; set; } + public long WorldRaidAutoSyncTermSecond { get; set; } + public long WorldRaidBossHpDecreaseTerm { get; set; } + public long WorldRaidBossParcelReactionDelay { get; set; } + public long RaidRankingJumpMinimumWaitingTime { get; set; } + public float EffectTeleportDistance { get; set; } + public long AuraExitThresholdMargin { get; set; } + public long TSAInteractionDamageFactor { get; set; } + public long VictoryInteractionRate { get; set; } + public string EchelonExtensionEngageTimelinePath { get; set; } + public string EchelonExtensionEngageWithSupporterTimelinePath { get; set; } + public string EchelonExtensionVictoryTimelinePath { get; set; } + public int EchelonExtensionEchelonMaxCommonCost { get; set; } + public int EchelonExtensionEchelonInitCommonCost { get; set; } + public long EchelonExtensionCostRegenRatio { get; set; } + public int CheckCheaterMaxUseCostMultiFloorRaid { get; set; } + + public ConstCombatExcelT() { + this.SkillHandCount = 0; + this.DyingTime = 0; + this.BuffIconBlinkTime = 0; + this.ShowBufficonEXSkill = false; + this.ShowBufficonPassiveSkill = false; + this.ShowBufficonExtraPassiveSkill = false; + this.ShowBufficonLeaderSkill = false; + this.ShowBufficonGroundPassiveSkill = false; + this.SuppliesConditionStringId = null; + this.PublicSpeechBubbleOffsetX = 0.0f; + this.PublicSpeechBubbleOffsetY = 0.0f; + this.PublicSpeechBubbleOffsetZ = 0.0f; + this.ShowRaidListCount = 0; + this.MaxRaidTicketCount = 0; + this.MaxRaidBossSkillSlot = 0; + this.EngageTimelinePath = null; + this.EngageWithSupporterTimelinePath = null; + this.VictoryTimelinePath = null; + this.TimeLimitAlarm = 0; + this.EchelonMaxCommonCost = 0; + this.EchelonInitCommonCost = 0; + this.SkillSlotCoolTime = 0; + this.EnemyRegenCost = 0; + this.ChampionRegenCost = 0; + this.PlayerRegenCostDelay = 0; + this.CrowdControlFactor = 0; + this.RaidOpenScenarioId = null; + this.EliminateRaidOpenScenarioId = null; + this.DefenceConstA = 0; + this.DefenceConstB = 0; + this.DefenceConstC = 0; + this.DefenceConstD = 0; + this.AccuracyConstA = 0; + this.AccuracyConstB = 0; + this.AccuracyConstC = 0; + this.AccuracyConstD = 0; + this.CriticalConstA = 0; + this.CriticalConstB = 0; + this.CriticalConstC = 0; + this.CriticalConstD = 0; + this.MaxGroupBuffLevel = 0; + this.EmojiDefaultTime = 0; + this.TimeLineActionRotateSpeed = 0; + this.BodyRotateSpeed = 0; + this.NormalTimeScale = 0; + this.FastTimeScale = 0; + this.BulletTimeScale = 0; + this.UIDisplayDelayAfterSkillCutIn = 0; + this.UseInitialRangeForCoverMove = false; + this.SlowTimeScale = 0; + this.AimIKMinDegree = 0.0f; + this.AimIKMaxDegree = 0.0f; + this.MinimumClearTime = 0; + this.MinimumClearLevelGap = 0; + this.CheckCheaterMaxUseCostNonArena = 0; + this.CheckCheaterMaxUseCostArena = 0; + this.AllowedMaxTimeScale = 0; + this.RandomAnimationOutput = 0; + this.SummonedTeleportDistance = 0; + this.ArenaMinimumClearTime = 0; + this.WORLDBOSSBATTLELITTLE = 0; + this.WORLDBOSSBATTLEMIDDLE = 0; + this.WORLDBOSSBATTLEHIGH = 0; + this.WORLDBOSSBATTLEVERYHIGH = 0; + this.WorldRaidAutoSyncTermSecond = 0; + this.WorldRaidBossHpDecreaseTerm = 0; + this.WorldRaidBossParcelReactionDelay = 0; + this.RaidRankingJumpMinimumWaitingTime = 0; + this.EffectTeleportDistance = 0.0f; + this.AuraExitThresholdMargin = 0; + this.TSAInteractionDamageFactor = 0; + this.VictoryInteractionRate = 0; + this.EchelonExtensionEngageTimelinePath = null; + this.EchelonExtensionEngageWithSupporterTimelinePath = null; + this.EchelonExtensionVictoryTimelinePath = null; + this.EchelonExtensionEchelonMaxCommonCost = 0; + this.EchelonExtensionEchelonInitCommonCost = 0; + this.EchelonExtensionCostRegenRatio = 0; + this.CheckCheaterMaxUseCostMultiFloorRaid = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstCombatExcelTable.cs b/SCHALE.Common/FlatData/ConstCombatExcelTable.cs index 1f8ee3c..aa9562e 100644 --- a/SCHALE.Common/FlatData/ConstCombatExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstCombatExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstCombatExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstCombatExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstCombatExcelTableT UnPack() { + var _o = new ConstCombatExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstCombatExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstCombatExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstCombatExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstCombatExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstCombatExcelTable( + builder, + _DataList); + } +} + +public class ConstCombatExcelTableT +{ + public List DataList { get; set; } + + public ConstCombatExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstCommonExcel.cs b/SCHALE.Common/FlatData/ConstCommonExcel.cs index 56f1caa..19f6d0a 100644 --- a/SCHALE.Common/FlatData/ConstCommonExcel.cs +++ b/SCHALE.Common/FlatData/ConstCommonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstCommonExcel : IFlatbufferObject @@ -141,95 +142,94 @@ public struct ConstCommonExcel : IFlatbufferObject public int PassiveSkillLevelMax { get { int o = __p.__offset(174); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ExtraPassiveSkillLevelMax { get { int o = __p.__offset(176); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int AccountCommentMaxLength { get { int o = __p.__offset(178); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public bool ShowFurnitureTag { get { int o = __p.__offset(180); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public int CafeSummonCoolTimeFromHour { get { int o = __p.__offset(182); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long LimitedStageDailyClearCount { get { int o = __p.__offset(184); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStageEntryTimeLimit { get { int o = __p.__offset(186); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStageEntryTimeBuffer { get { int o = __p.__offset(188); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointAmount { get { int o = __p.__offset(190); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointPerApMin { get { int o = __p.__offset(192); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointPerApMax { get { int o = __p.__offset(194); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int AccountLinkReward { get { int o = __p.__offset(196); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MonthlyProductCheckDays { get { int o = __p.__offset(198); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int WeaponLvUpCoefficient { get { int o = __p.__offset(200); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ShowRaidMyListCount { get { int o = __p.__offset(202); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxLevelExpMasterCoinRatio { get { int o = __p.__offset(204); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(206); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long RaidEnterCostId { get { int o = __p.__offset(208); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RaidTicketCost { get { int o = __p.__offset(210); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string TimeAttackDungeonScenarioId { get { int o = __p.__offset(212); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public int CafeSummonCoolTimeFromHour { get { int o = __p.__offset(180); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long LimitedStageDailyClearCount { get { int o = __p.__offset(182); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStageEntryTimeLimit { get { int o = __p.__offset(184); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStageEntryTimeBuffer { get { int o = __p.__offset(186); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointAmount { get { int o = __p.__offset(188); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointPerApMin { get { int o = __p.__offset(190); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointPerApMax { get { int o = __p.__offset(192); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int AccountLinkReward { get { int o = __p.__offset(194); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MonthlyProductCheckDays { get { int o = __p.__offset(196); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeaponLvUpCoefficient { get { int o = __p.__offset(198); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShowRaidMyListCount { get { int o = __p.__offset(200); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxLevelExpMasterCoinRatio { get { int o = __p.__offset(202); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(204); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RaidEnterCostId { get { int o = __p.__offset(206); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidTicketCost { get { int o = __p.__offset(208); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TimeAttackDungeonScenarioId { get { int o = __p.__offset(210); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_span(212, 1); } + public Span GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_span(210, 1); } #else - public ArraySegment? GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_arraysegment(212); } + public ArraySegment? GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_arraysegment(210); } #endif - public byte[] GetTimeAttackDungeonScenarioIdArray() { return __p.__vector_as_array(212); } - public int TimeAttackDungoenPlayCountPerTicket { get { int o = __p.__offset(214); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType TimeAttackDungeonEnterCostType { get { int o = __p.__offset(216); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long TimeAttackDungeonEnterCostId { get { int o = __p.__offset(218); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long TimeAttackDungeonEnterCost { get { int o = __p.__offset(220); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanLeaderTransferLastLoginLimit { get { int o = __p.__offset(222); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int MonthlyProductRepurchasePopupLimit { get { int o = __p.__offset(224); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.Tag CommonFavorItemTags(int j) { int o = __p.__offset(226); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } - public int CommonFavorItemTagsLength { get { int o = __p.__offset(226); return o != 0 ? __p.__vector_len(o) : 0; } } + public byte[] GetTimeAttackDungeonScenarioIdArray() { return __p.__vector_as_array(210); } + public int TimeAttackDungoenPlayCountPerTicket { get { int o = __p.__offset(212); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType TimeAttackDungeonEnterCostType { get { int o = __p.__offset(214); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long TimeAttackDungeonEnterCostId { get { int o = __p.__offset(216); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TimeAttackDungeonEnterCost { get { int o = __p.__offset(218); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanLeaderTransferLastLoginLimit { get { int o = __p.__offset(220); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MonthlyProductRepurchasePopupLimit { get { int o = __p.__offset(222); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.Tag CommonFavorItemTags(int j) { int o = __p.__offset(224); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CommonFavorItemTagsLength { get { int o = __p.__offset(224); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetCommonFavorItemTagsBytes() { return __p.__vector_as_span(226, 4); } + public Span GetCommonFavorItemTagsBytes() { return __p.__vector_as_span(224, 4); } #else - public ArraySegment? GetCommonFavorItemTagsBytes() { return __p.__vector_as_arraysegment(226); } + public ArraySegment? GetCommonFavorItemTagsBytes() { return __p.__vector_as_arraysegment(224); } #endif - public SCHALE.Common.FlatData.Tag[] GetCommonFavorItemTagsArray() { int o = __p.__offset(226); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } - public long MaxApMasterCoinPerWeek { get { int o = __p.__offset(228); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier1 { get { int o = __p.__offset(230); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier2 { get { int o = __p.__offset(232); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier3 { get { int o = __p.__offset(234); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CharacterEquipmentGearSlot { get { int o = __p.__offset(236); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int BirthDayDDay { get { int o = __p.__offset(238); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int RecommendedFriendsLvDifferenceLimit { get { int o = __p.__offset(240); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int DDosDetectCount { get { int o = __p.__offset(242); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int DDosCheckIntervalInSeconds { get { int o = __p.__offset(244); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxFriendsCount { get { int o = __p.__offset(246); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxFriendsRequest { get { int o = __p.__offset(248); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FriendsSearchRequestCount { get { int o = __p.__offset(250); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FriendsMaxApplicant { get { int o = __p.__offset(252); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long IdCardDefaultCharacterId { get { int o = __p.__offset(254); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long IdCardDefaultBgId { get { int o = __p.__offset(256); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long WorldRaidGemEnterCost { get { int o = __p.__offset(258); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long WorldRaidGemEnterAmout { get { int o = __p.__offset(260); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FriendIdCardCommentMaxLength { get { int o = __p.__offset(262); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int FormationPresetNumberOfEchelonTab { get { int o = __p.__offset(264); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetNumberOfEchelon { get { int o = __p.__offset(266); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetRecentNumberOfEchelon { get { int o = __p.__offset(268); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetEchelonTabTextLength { get { int o = __p.__offset(270); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetEchelonSlotTextLength { get { int o = __p.__offset(272); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfileRowIntervalKr { get { int o = __p.__offset(274); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfileRowIntervalJp { get { int o = __p.__offset(276); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfilePopupRowIntervalKr { get { int o = __p.__offset(278); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfilePopupRowIntervalJp { get { int o = __p.__offset(280); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int BeforehandGachaCount { get { int o = __p.__offset(282); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int BeforehandGachaGroupId { get { int o = __p.__offset(284); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int RenewalDisplayOrderDay { get { int o = __p.__offset(286); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long EmblemDefaultId { get { int o = __p.__offset(288); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string BirthdayMailStartDate { get { int o = __p.__offset(290); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public SCHALE.Common.FlatData.Tag[] GetCommonFavorItemTagsArray() { int o = __p.__offset(224); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } + public long MaxApMasterCoinPerWeek { get { int o = __p.__offset(226); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier1 { get { int o = __p.__offset(228); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier2 { get { int o = __p.__offset(230); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier3 { get { int o = __p.__offset(232); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterEquipmentGearSlot { get { int o = __p.__offset(234); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int BirthDayDDay { get { int o = __p.__offset(236); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RecommendedFriendsLvDifferenceLimit { get { int o = __p.__offset(238); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DDosDetectCount { get { int o = __p.__offset(240); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DDosCheckIntervalInSeconds { get { int o = __p.__offset(242); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxFriendsCount { get { int o = __p.__offset(244); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxFriendsRequest { get { int o = __p.__offset(246); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FriendsSearchRequestCount { get { int o = __p.__offset(248); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FriendsMaxApplicant { get { int o = __p.__offset(250); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long IdCardDefaultCharacterId { get { int o = __p.__offset(252); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long IdCardDefaultBgId { get { int o = __p.__offset(254); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidGemEnterCost { get { int o = __p.__offset(256); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidGemEnterAmout { get { int o = __p.__offset(258); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FriendIdCardCommentMaxLength { get { int o = __p.__offset(260); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int FormationPresetNumberOfEchelonTab { get { int o = __p.__offset(262); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetNumberOfEchelon { get { int o = __p.__offset(264); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetRecentNumberOfEchelon { get { int o = __p.__offset(266); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetEchelonTabTextLength { get { int o = __p.__offset(268); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetEchelonSlotTextLength { get { int o = __p.__offset(270); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfileRowIntervalKr { get { int o = __p.__offset(272); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfileRowIntervalJp { get { int o = __p.__offset(274); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfilePopupRowIntervalKr { get { int o = __p.__offset(276); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfilePopupRowIntervalJp { get { int o = __p.__offset(278); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaCount { get { int o = __p.__offset(280); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaGroupId { get { int o = __p.__offset(282); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RenewalDisplayOrderDay { get { int o = __p.__offset(284); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EmblemDefaultId { get { int o = __p.__offset(286); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BirthdayMailStartDate { get { int o = __p.__offset(288); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetBirthdayMailStartDateBytes() { return __p.__vector_as_span(290, 1); } + public Span GetBirthdayMailStartDateBytes() { return __p.__vector_as_span(288, 1); } #else - public ArraySegment? GetBirthdayMailStartDateBytes() { return __p.__vector_as_arraysegment(290); } + public ArraySegment? GetBirthdayMailStartDateBytes() { return __p.__vector_as_arraysegment(288); } #endif - public byte[] GetBirthdayMailStartDateArray() { return __p.__vector_as_array(290); } - public int BirthdayMailRemainDate { get { int o = __p.__offset(292); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType BirthdayMailParcelType { get { int o = __p.__offset(294); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long BirthdayMailParcelId { get { int o = __p.__offset(296); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int BirthdayMailParcelAmount { get { int o = __p.__offset(298); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckAverageDeckCount { get { int o = __p.__offset(300); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckWorldRaidSaveConditionCoefficient { get { int o = __p.__offset(302); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckShowCount { get { int o = __p.__offset(304); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharacterMaxLevel { get { int o = __p.__offset(306); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelMaxHP { get { int o = __p.__offset(308); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelAttackPower { get { int o = __p.__offset(310); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelHealPower { get { int o = __p.__offset(312); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialOpenConditionCharacterLevel { get { int o = __p.__offset(314); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public byte[] GetBirthdayMailStartDateArray() { return __p.__vector_as_array(288); } + public int BirthdayMailRemainDate { get { int o = __p.__offset(290); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType BirthdayMailParcelType { get { int o = __p.__offset(292); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long BirthdayMailParcelId { get { int o = __p.__offset(294); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int BirthdayMailParcelAmount { get { int o = __p.__offset(296); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckAverageDeckCount { get { int o = __p.__offset(298); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckWorldRaidSaveConditionCoefficient { get { int o = __p.__offset(300); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckShowCount { get { int o = __p.__offset(302); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharacterMaxLevel { get { int o = __p.__offset(304); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelMaxHP { get { int o = __p.__offset(306); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelAttackPower { get { int o = __p.__offset(308); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelHealPower { get { int o = __p.__offset(310); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialOpenConditionCharacterLevel { get { int o = __p.__offset(312); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public static void StartConstCommonExcel(FlatBufferBuilder builder) { builder.StartTable(156); } + public static void StartConstCommonExcel(FlatBufferBuilder builder) { builder.StartTable(155); } public static void AddCampaignMainStageMaxRank(FlatBufferBuilder builder, int campaignMainStageMaxRank) { builder.AddInt(0, campaignMainStageMaxRank, 0); } public static void AddCampaignMainStageBestRecord(FlatBufferBuilder builder, int campaignMainStageBestRecord) { builder.AddInt(1, campaignMainStageBestRecord, 0); } public static void AddHardAdventurePlayCountRecoverDailyNumber(FlatBufferBuilder builder, int hardAdventurePlayCountRecoverDailyNumber) { builder.AddInt(2, hardAdventurePlayCountRecoverDailyNumber, 0); } @@ -338,83 +338,755 @@ public struct ConstCommonExcel : IFlatbufferObject public static void AddPassiveSkillLevelMax(FlatBufferBuilder builder, int passiveSkillLevelMax) { builder.AddInt(85, passiveSkillLevelMax, 0); } public static void AddExtraPassiveSkillLevelMax(FlatBufferBuilder builder, int extraPassiveSkillLevelMax) { builder.AddInt(86, extraPassiveSkillLevelMax, 0); } public static void AddAccountCommentMaxLength(FlatBufferBuilder builder, int accountCommentMaxLength) { builder.AddInt(87, accountCommentMaxLength, 0); } - public static void AddShowFurnitureTag(FlatBufferBuilder builder, bool showFurnitureTag) { builder.AddBool(88, showFurnitureTag, false); } - public static void AddCafeSummonCoolTimeFromHour(FlatBufferBuilder builder, int cafeSummonCoolTimeFromHour) { builder.AddInt(89, cafeSummonCoolTimeFromHour, 0); } - public static void AddLimitedStageDailyClearCount(FlatBufferBuilder builder, long limitedStageDailyClearCount) { builder.AddLong(90, limitedStageDailyClearCount, 0); } - public static void AddLimitedStageEntryTimeLimit(FlatBufferBuilder builder, long limitedStageEntryTimeLimit) { builder.AddLong(91, limitedStageEntryTimeLimit, 0); } - public static void AddLimitedStageEntryTimeBuffer(FlatBufferBuilder builder, long limitedStageEntryTimeBuffer) { builder.AddLong(92, limitedStageEntryTimeBuffer, 0); } - public static void AddLimitedStagePointAmount(FlatBufferBuilder builder, long limitedStagePointAmount) { builder.AddLong(93, limitedStagePointAmount, 0); } - public static void AddLimitedStagePointPerApMin(FlatBufferBuilder builder, long limitedStagePointPerApMin) { builder.AddLong(94, limitedStagePointPerApMin, 0); } - public static void AddLimitedStagePointPerApMax(FlatBufferBuilder builder, long limitedStagePointPerApMax) { builder.AddLong(95, limitedStagePointPerApMax, 0); } - public static void AddAccountLinkReward(FlatBufferBuilder builder, int accountLinkReward) { builder.AddInt(96, accountLinkReward, 0); } - public static void AddMonthlyProductCheckDays(FlatBufferBuilder builder, int monthlyProductCheckDays) { builder.AddInt(97, monthlyProductCheckDays, 0); } - public static void AddWeaponLvUpCoefficient(FlatBufferBuilder builder, int weaponLvUpCoefficient) { builder.AddInt(98, weaponLvUpCoefficient, 0); } - public static void AddShowRaidMyListCount(FlatBufferBuilder builder, int showRaidMyListCount) { builder.AddInt(99, showRaidMyListCount, 0); } - public static void AddMaxLevelExpMasterCoinRatio(FlatBufferBuilder builder, int maxLevelExpMasterCoinRatio) { builder.AddInt(100, maxLevelExpMasterCoinRatio, 0); } - public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(101, (int)raidEnterCostType, 0); } - public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(102, raidEnterCostId, 0); } - public static void AddRaidTicketCost(FlatBufferBuilder builder, long raidTicketCost) { builder.AddLong(103, raidTicketCost, 0); } - public static void AddTimeAttackDungeonScenarioId(FlatBufferBuilder builder, StringOffset timeAttackDungeonScenarioIdOffset) { builder.AddOffset(104, timeAttackDungeonScenarioIdOffset.Value, 0); } - public static void AddTimeAttackDungoenPlayCountPerTicket(FlatBufferBuilder builder, int timeAttackDungoenPlayCountPerTicket) { builder.AddInt(105, timeAttackDungoenPlayCountPerTicket, 0); } - public static void AddTimeAttackDungeonEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType timeAttackDungeonEnterCostType) { builder.AddInt(106, (int)timeAttackDungeonEnterCostType, 0); } - public static void AddTimeAttackDungeonEnterCostId(FlatBufferBuilder builder, long timeAttackDungeonEnterCostId) { builder.AddLong(107, timeAttackDungeonEnterCostId, 0); } - public static void AddTimeAttackDungeonEnterCost(FlatBufferBuilder builder, long timeAttackDungeonEnterCost) { builder.AddLong(108, timeAttackDungeonEnterCost, 0); } - public static void AddClanLeaderTransferLastLoginLimit(FlatBufferBuilder builder, long clanLeaderTransferLastLoginLimit) { builder.AddLong(109, clanLeaderTransferLastLoginLimit, 0); } - public static void AddMonthlyProductRepurchasePopupLimit(FlatBufferBuilder builder, int monthlyProductRepurchasePopupLimit) { builder.AddInt(110, monthlyProductRepurchasePopupLimit, 0); } - public static void AddCommonFavorItemTags(FlatBufferBuilder builder, VectorOffset commonFavorItemTagsOffset) { builder.AddOffset(111, commonFavorItemTagsOffset.Value, 0); } + public static void AddCafeSummonCoolTimeFromHour(FlatBufferBuilder builder, int cafeSummonCoolTimeFromHour) { builder.AddInt(88, cafeSummonCoolTimeFromHour, 0); } + public static void AddLimitedStageDailyClearCount(FlatBufferBuilder builder, long limitedStageDailyClearCount) { builder.AddLong(89, limitedStageDailyClearCount, 0); } + public static void AddLimitedStageEntryTimeLimit(FlatBufferBuilder builder, long limitedStageEntryTimeLimit) { builder.AddLong(90, limitedStageEntryTimeLimit, 0); } + public static void AddLimitedStageEntryTimeBuffer(FlatBufferBuilder builder, long limitedStageEntryTimeBuffer) { builder.AddLong(91, limitedStageEntryTimeBuffer, 0); } + public static void AddLimitedStagePointAmount(FlatBufferBuilder builder, long limitedStagePointAmount) { builder.AddLong(92, limitedStagePointAmount, 0); } + public static void AddLimitedStagePointPerApMin(FlatBufferBuilder builder, long limitedStagePointPerApMin) { builder.AddLong(93, limitedStagePointPerApMin, 0); } + public static void AddLimitedStagePointPerApMax(FlatBufferBuilder builder, long limitedStagePointPerApMax) { builder.AddLong(94, limitedStagePointPerApMax, 0); } + public static void AddAccountLinkReward(FlatBufferBuilder builder, int accountLinkReward) { builder.AddInt(95, accountLinkReward, 0); } + public static void AddMonthlyProductCheckDays(FlatBufferBuilder builder, int monthlyProductCheckDays) { builder.AddInt(96, monthlyProductCheckDays, 0); } + public static void AddWeaponLvUpCoefficient(FlatBufferBuilder builder, int weaponLvUpCoefficient) { builder.AddInt(97, weaponLvUpCoefficient, 0); } + public static void AddShowRaidMyListCount(FlatBufferBuilder builder, int showRaidMyListCount) { builder.AddInt(98, showRaidMyListCount, 0); } + public static void AddMaxLevelExpMasterCoinRatio(FlatBufferBuilder builder, int maxLevelExpMasterCoinRatio) { builder.AddInt(99, maxLevelExpMasterCoinRatio, 0); } + public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(100, (int)raidEnterCostType, 0); } + public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(101, raidEnterCostId, 0); } + public static void AddRaidTicketCost(FlatBufferBuilder builder, long raidTicketCost) { builder.AddLong(102, raidTicketCost, 0); } + public static void AddTimeAttackDungeonScenarioId(FlatBufferBuilder builder, StringOffset timeAttackDungeonScenarioIdOffset) { builder.AddOffset(103, timeAttackDungeonScenarioIdOffset.Value, 0); } + public static void AddTimeAttackDungoenPlayCountPerTicket(FlatBufferBuilder builder, int timeAttackDungoenPlayCountPerTicket) { builder.AddInt(104, timeAttackDungoenPlayCountPerTicket, 0); } + public static void AddTimeAttackDungeonEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType timeAttackDungeonEnterCostType) { builder.AddInt(105, (int)timeAttackDungeonEnterCostType, 0); } + public static void AddTimeAttackDungeonEnterCostId(FlatBufferBuilder builder, long timeAttackDungeonEnterCostId) { builder.AddLong(106, timeAttackDungeonEnterCostId, 0); } + public static void AddTimeAttackDungeonEnterCost(FlatBufferBuilder builder, long timeAttackDungeonEnterCost) { builder.AddLong(107, timeAttackDungeonEnterCost, 0); } + public static void AddClanLeaderTransferLastLoginLimit(FlatBufferBuilder builder, long clanLeaderTransferLastLoginLimit) { builder.AddLong(108, clanLeaderTransferLastLoginLimit, 0); } + public static void AddMonthlyProductRepurchasePopupLimit(FlatBufferBuilder builder, int monthlyProductRepurchasePopupLimit) { builder.AddInt(109, monthlyProductRepurchasePopupLimit, 0); } + public static void AddCommonFavorItemTags(FlatBufferBuilder builder, VectorOffset commonFavorItemTagsOffset) { builder.AddOffset(110, commonFavorItemTagsOffset.Value, 0); } public static VectorOffset CreateCommonFavorItemTagsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartCommonFavorItemTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddMaxApMasterCoinPerWeek(FlatBufferBuilder builder, long maxApMasterCoinPerWeek) { builder.AddLong(112, maxApMasterCoinPerWeek, 0); } - public static void AddCraftOpenExpTier1(FlatBufferBuilder builder, long craftOpenExpTier1) { builder.AddLong(113, craftOpenExpTier1, 0); } - public static void AddCraftOpenExpTier2(FlatBufferBuilder builder, long craftOpenExpTier2) { builder.AddLong(114, craftOpenExpTier2, 0); } - public static void AddCraftOpenExpTier3(FlatBufferBuilder builder, long craftOpenExpTier3) { builder.AddLong(115, craftOpenExpTier3, 0); } - public static void AddCharacterEquipmentGearSlot(FlatBufferBuilder builder, long characterEquipmentGearSlot) { builder.AddLong(116, characterEquipmentGearSlot, 0); } - public static void AddBirthDayDDay(FlatBufferBuilder builder, int birthDayDDay) { builder.AddInt(117, birthDayDDay, 0); } - public static void AddRecommendedFriendsLvDifferenceLimit(FlatBufferBuilder builder, int recommendedFriendsLvDifferenceLimit) { builder.AddInt(118, recommendedFriendsLvDifferenceLimit, 0); } - public static void AddDDosDetectCount(FlatBufferBuilder builder, int dDosDetectCount) { builder.AddInt(119, dDosDetectCount, 0); } - public static void AddDDosCheckIntervalInSeconds(FlatBufferBuilder builder, int dDosCheckIntervalInSeconds) { builder.AddInt(120, dDosCheckIntervalInSeconds, 0); } - public static void AddMaxFriendsCount(FlatBufferBuilder builder, int maxFriendsCount) { builder.AddInt(121, maxFriendsCount, 0); } - public static void AddMaxFriendsRequest(FlatBufferBuilder builder, int maxFriendsRequest) { builder.AddInt(122, maxFriendsRequest, 0); } - public static void AddFriendsSearchRequestCount(FlatBufferBuilder builder, int friendsSearchRequestCount) { builder.AddInt(123, friendsSearchRequestCount, 0); } - public static void AddFriendsMaxApplicant(FlatBufferBuilder builder, int friendsMaxApplicant) { builder.AddInt(124, friendsMaxApplicant, 0); } - public static void AddIdCardDefaultCharacterId(FlatBufferBuilder builder, long idCardDefaultCharacterId) { builder.AddLong(125, idCardDefaultCharacterId, 0); } - public static void AddIdCardDefaultBgId(FlatBufferBuilder builder, long idCardDefaultBgId) { builder.AddLong(126, idCardDefaultBgId, 0); } - public static void AddWorldRaidGemEnterCost(FlatBufferBuilder builder, long worldRaidGemEnterCost) { builder.AddLong(127, worldRaidGemEnterCost, 0); } - public static void AddWorldRaidGemEnterAmout(FlatBufferBuilder builder, long worldRaidGemEnterAmout) { builder.AddLong(128, worldRaidGemEnterAmout, 0); } - public static void AddFriendIdCardCommentMaxLength(FlatBufferBuilder builder, long friendIdCardCommentMaxLength) { builder.AddLong(129, friendIdCardCommentMaxLength, 0); } - public static void AddFormationPresetNumberOfEchelonTab(FlatBufferBuilder builder, int formationPresetNumberOfEchelonTab) { builder.AddInt(130, formationPresetNumberOfEchelonTab, 0); } - public static void AddFormationPresetNumberOfEchelon(FlatBufferBuilder builder, int formationPresetNumberOfEchelon) { builder.AddInt(131, formationPresetNumberOfEchelon, 0); } - public static void AddFormationPresetRecentNumberOfEchelon(FlatBufferBuilder builder, int formationPresetRecentNumberOfEchelon) { builder.AddInt(132, formationPresetRecentNumberOfEchelon, 0); } - public static void AddFormationPresetEchelonTabTextLength(FlatBufferBuilder builder, int formationPresetEchelonTabTextLength) { builder.AddInt(133, formationPresetEchelonTabTextLength, 0); } - public static void AddFormationPresetEchelonSlotTextLength(FlatBufferBuilder builder, int formationPresetEchelonSlotTextLength) { builder.AddInt(134, formationPresetEchelonSlotTextLength, 0); } - public static void AddCharProfileRowIntervalKr(FlatBufferBuilder builder, int charProfileRowIntervalKr) { builder.AddInt(135, charProfileRowIntervalKr, 0); } - public static void AddCharProfileRowIntervalJp(FlatBufferBuilder builder, int charProfileRowIntervalJp) { builder.AddInt(136, charProfileRowIntervalJp, 0); } - public static void AddCharProfilePopupRowIntervalKr(FlatBufferBuilder builder, int charProfilePopupRowIntervalKr) { builder.AddInt(137, charProfilePopupRowIntervalKr, 0); } - public static void AddCharProfilePopupRowIntervalJp(FlatBufferBuilder builder, int charProfilePopupRowIntervalJp) { builder.AddInt(138, charProfilePopupRowIntervalJp, 0); } - public static void AddBeforehandGachaCount(FlatBufferBuilder builder, int beforehandGachaCount) { builder.AddInt(139, beforehandGachaCount, 0); } - public static void AddBeforehandGachaGroupId(FlatBufferBuilder builder, int beforehandGachaGroupId) { builder.AddInt(140, beforehandGachaGroupId, 0); } - public static void AddRenewalDisplayOrderDay(FlatBufferBuilder builder, int renewalDisplayOrderDay) { builder.AddInt(141, renewalDisplayOrderDay, 0); } - public static void AddEmblemDefaultId(FlatBufferBuilder builder, long emblemDefaultId) { builder.AddLong(142, emblemDefaultId, 0); } - public static void AddBirthdayMailStartDate(FlatBufferBuilder builder, StringOffset birthdayMailStartDateOffset) { builder.AddOffset(143, birthdayMailStartDateOffset.Value, 0); } - public static void AddBirthdayMailRemainDate(FlatBufferBuilder builder, int birthdayMailRemainDate) { builder.AddInt(144, birthdayMailRemainDate, 0); } - public static void AddBirthdayMailParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType birthdayMailParcelType) { builder.AddInt(145, (int)birthdayMailParcelType, 0); } - public static void AddBirthdayMailParcelId(FlatBufferBuilder builder, long birthdayMailParcelId) { builder.AddLong(146, birthdayMailParcelId, 0); } - public static void AddBirthdayMailParcelAmount(FlatBufferBuilder builder, int birthdayMailParcelAmount) { builder.AddInt(147, birthdayMailParcelAmount, 0); } - public static void AddClearDeckAverageDeckCount(FlatBufferBuilder builder, int clearDeckAverageDeckCount) { builder.AddInt(148, clearDeckAverageDeckCount, 0); } - public static void AddClearDeckWorldRaidSaveConditionCoefficient(FlatBufferBuilder builder, int clearDeckWorldRaidSaveConditionCoefficient) { builder.AddInt(149, clearDeckWorldRaidSaveConditionCoefficient, 0); } - public static void AddClearDeckShowCount(FlatBufferBuilder builder, int clearDeckShowCount) { builder.AddInt(150, clearDeckShowCount, 0); } - public static void AddCharacterMaxLevel(FlatBufferBuilder builder, int characterMaxLevel) { builder.AddInt(151, characterMaxLevel, 0); } - public static void AddPotentialBonusStatMaxLevelMaxHP(FlatBufferBuilder builder, int potentialBonusStatMaxLevelMaxHP) { builder.AddInt(152, potentialBonusStatMaxLevelMaxHP, 0); } - public static void AddPotentialBonusStatMaxLevelAttackPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelAttackPower) { builder.AddInt(153, potentialBonusStatMaxLevelAttackPower, 0); } - public static void AddPotentialBonusStatMaxLevelHealPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelHealPower) { builder.AddInt(154, potentialBonusStatMaxLevelHealPower, 0); } - public static void AddPotentialOpenConditionCharacterLevel(FlatBufferBuilder builder, int potentialOpenConditionCharacterLevel) { builder.AddInt(155, potentialOpenConditionCharacterLevel, 0); } + public static void AddMaxApMasterCoinPerWeek(FlatBufferBuilder builder, long maxApMasterCoinPerWeek) { builder.AddLong(111, maxApMasterCoinPerWeek, 0); } + public static void AddCraftOpenExpTier1(FlatBufferBuilder builder, long craftOpenExpTier1) { builder.AddLong(112, craftOpenExpTier1, 0); } + public static void AddCraftOpenExpTier2(FlatBufferBuilder builder, long craftOpenExpTier2) { builder.AddLong(113, craftOpenExpTier2, 0); } + public static void AddCraftOpenExpTier3(FlatBufferBuilder builder, long craftOpenExpTier3) { builder.AddLong(114, craftOpenExpTier3, 0); } + public static void AddCharacterEquipmentGearSlot(FlatBufferBuilder builder, long characterEquipmentGearSlot) { builder.AddLong(115, characterEquipmentGearSlot, 0); } + public static void AddBirthDayDDay(FlatBufferBuilder builder, int birthDayDDay) { builder.AddInt(116, birthDayDDay, 0); } + public static void AddRecommendedFriendsLvDifferenceLimit(FlatBufferBuilder builder, int recommendedFriendsLvDifferenceLimit) { builder.AddInt(117, recommendedFriendsLvDifferenceLimit, 0); } + public static void AddDDosDetectCount(FlatBufferBuilder builder, int dDosDetectCount) { builder.AddInt(118, dDosDetectCount, 0); } + public static void AddDDosCheckIntervalInSeconds(FlatBufferBuilder builder, int dDosCheckIntervalInSeconds) { builder.AddInt(119, dDosCheckIntervalInSeconds, 0); } + public static void AddMaxFriendsCount(FlatBufferBuilder builder, int maxFriendsCount) { builder.AddInt(120, maxFriendsCount, 0); } + public static void AddMaxFriendsRequest(FlatBufferBuilder builder, int maxFriendsRequest) { builder.AddInt(121, maxFriendsRequest, 0); } + public static void AddFriendsSearchRequestCount(FlatBufferBuilder builder, int friendsSearchRequestCount) { builder.AddInt(122, friendsSearchRequestCount, 0); } + public static void AddFriendsMaxApplicant(FlatBufferBuilder builder, int friendsMaxApplicant) { builder.AddInt(123, friendsMaxApplicant, 0); } + public static void AddIdCardDefaultCharacterId(FlatBufferBuilder builder, long idCardDefaultCharacterId) { builder.AddLong(124, idCardDefaultCharacterId, 0); } + public static void AddIdCardDefaultBgId(FlatBufferBuilder builder, long idCardDefaultBgId) { builder.AddLong(125, idCardDefaultBgId, 0); } + public static void AddWorldRaidGemEnterCost(FlatBufferBuilder builder, long worldRaidGemEnterCost) { builder.AddLong(126, worldRaidGemEnterCost, 0); } + public static void AddWorldRaidGemEnterAmout(FlatBufferBuilder builder, long worldRaidGemEnterAmout) { builder.AddLong(127, worldRaidGemEnterAmout, 0); } + public static void AddFriendIdCardCommentMaxLength(FlatBufferBuilder builder, long friendIdCardCommentMaxLength) { builder.AddLong(128, friendIdCardCommentMaxLength, 0); } + public static void AddFormationPresetNumberOfEchelonTab(FlatBufferBuilder builder, int formationPresetNumberOfEchelonTab) { builder.AddInt(129, formationPresetNumberOfEchelonTab, 0); } + public static void AddFormationPresetNumberOfEchelon(FlatBufferBuilder builder, int formationPresetNumberOfEchelon) { builder.AddInt(130, formationPresetNumberOfEchelon, 0); } + public static void AddFormationPresetRecentNumberOfEchelon(FlatBufferBuilder builder, int formationPresetRecentNumberOfEchelon) { builder.AddInt(131, formationPresetRecentNumberOfEchelon, 0); } + public static void AddFormationPresetEchelonTabTextLength(FlatBufferBuilder builder, int formationPresetEchelonTabTextLength) { builder.AddInt(132, formationPresetEchelonTabTextLength, 0); } + public static void AddFormationPresetEchelonSlotTextLength(FlatBufferBuilder builder, int formationPresetEchelonSlotTextLength) { builder.AddInt(133, formationPresetEchelonSlotTextLength, 0); } + public static void AddCharProfileRowIntervalKr(FlatBufferBuilder builder, int charProfileRowIntervalKr) { builder.AddInt(134, charProfileRowIntervalKr, 0); } + public static void AddCharProfileRowIntervalJp(FlatBufferBuilder builder, int charProfileRowIntervalJp) { builder.AddInt(135, charProfileRowIntervalJp, 0); } + public static void AddCharProfilePopupRowIntervalKr(FlatBufferBuilder builder, int charProfilePopupRowIntervalKr) { builder.AddInt(136, charProfilePopupRowIntervalKr, 0); } + public static void AddCharProfilePopupRowIntervalJp(FlatBufferBuilder builder, int charProfilePopupRowIntervalJp) { builder.AddInt(137, charProfilePopupRowIntervalJp, 0); } + public static void AddBeforehandGachaCount(FlatBufferBuilder builder, int beforehandGachaCount) { builder.AddInt(138, beforehandGachaCount, 0); } + public static void AddBeforehandGachaGroupId(FlatBufferBuilder builder, int beforehandGachaGroupId) { builder.AddInt(139, beforehandGachaGroupId, 0); } + public static void AddRenewalDisplayOrderDay(FlatBufferBuilder builder, int renewalDisplayOrderDay) { builder.AddInt(140, renewalDisplayOrderDay, 0); } + public static void AddEmblemDefaultId(FlatBufferBuilder builder, long emblemDefaultId) { builder.AddLong(141, emblemDefaultId, 0); } + public static void AddBirthdayMailStartDate(FlatBufferBuilder builder, StringOffset birthdayMailStartDateOffset) { builder.AddOffset(142, birthdayMailStartDateOffset.Value, 0); } + public static void AddBirthdayMailRemainDate(FlatBufferBuilder builder, int birthdayMailRemainDate) { builder.AddInt(143, birthdayMailRemainDate, 0); } + public static void AddBirthdayMailParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType birthdayMailParcelType) { builder.AddInt(144, (int)birthdayMailParcelType, 0); } + public static void AddBirthdayMailParcelId(FlatBufferBuilder builder, long birthdayMailParcelId) { builder.AddLong(145, birthdayMailParcelId, 0); } + public static void AddBirthdayMailParcelAmount(FlatBufferBuilder builder, int birthdayMailParcelAmount) { builder.AddInt(146, birthdayMailParcelAmount, 0); } + public static void AddClearDeckAverageDeckCount(FlatBufferBuilder builder, int clearDeckAverageDeckCount) { builder.AddInt(147, clearDeckAverageDeckCount, 0); } + public static void AddClearDeckWorldRaidSaveConditionCoefficient(FlatBufferBuilder builder, int clearDeckWorldRaidSaveConditionCoefficient) { builder.AddInt(148, clearDeckWorldRaidSaveConditionCoefficient, 0); } + public static void AddClearDeckShowCount(FlatBufferBuilder builder, int clearDeckShowCount) { builder.AddInt(149, clearDeckShowCount, 0); } + public static void AddCharacterMaxLevel(FlatBufferBuilder builder, int characterMaxLevel) { builder.AddInt(150, characterMaxLevel, 0); } + public static void AddPotentialBonusStatMaxLevelMaxHP(FlatBufferBuilder builder, int potentialBonusStatMaxLevelMaxHP) { builder.AddInt(151, potentialBonusStatMaxLevelMaxHP, 0); } + public static void AddPotentialBonusStatMaxLevelAttackPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelAttackPower) { builder.AddInt(152, potentialBonusStatMaxLevelAttackPower, 0); } + public static void AddPotentialBonusStatMaxLevelHealPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelHealPower) { builder.AddInt(153, potentialBonusStatMaxLevelHealPower, 0); } + public static void AddPotentialOpenConditionCharacterLevel(FlatBufferBuilder builder, int potentialOpenConditionCharacterLevel) { builder.AddInt(154, potentialOpenConditionCharacterLevel, 0); } public static Offset EndConstCommonExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public ConstCommonExcelT UnPack() { + var _o = new ConstCommonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstCommonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstCommon"); + _o.CampaignMainStageMaxRank = TableEncryptionService.Convert(this.CampaignMainStageMaxRank, key); + _o.CampaignMainStageBestRecord = TableEncryptionService.Convert(this.CampaignMainStageBestRecord, key); + _o.HardAdventurePlayCountRecoverDailyNumber = TableEncryptionService.Convert(this.HardAdventurePlayCountRecoverDailyNumber, key); + _o.HardStageCount = TableEncryptionService.Convert(this.HardStageCount, key); + _o.TacticRankClearTime = TableEncryptionService.Convert(this.TacticRankClearTime, key); + _o.BaseTimeScale = TableEncryptionService.Convert(this.BaseTimeScale, key); + _o.GachaPercentage = TableEncryptionService.Convert(this.GachaPercentage, key); + _o.AcademyFavorZoneId = TableEncryptionService.Convert(this.AcademyFavorZoneId, key); + _o.CafePresetSlotCount = TableEncryptionService.Convert(this.CafePresetSlotCount, key); + _o.CafeMonologueIntervalMillisec = TableEncryptionService.Convert(this.CafeMonologueIntervalMillisec, key); + _o.CafeMonologueDefaultDuration = TableEncryptionService.Convert(this.CafeMonologueDefaultDuration, key); + _o.CafeBubbleIdleDurationMilliSec = TableEncryptionService.Convert(this.CafeBubbleIdleDurationMilliSec, key); + _o.FindGiftTimeLimit = TableEncryptionService.Convert(this.FindGiftTimeLimit, key); + _o.CafeAutoChargePeriodInMsc = TableEncryptionService.Convert(this.CafeAutoChargePeriodInMsc, key); + _o.CafeProductionDecimalPosition = TableEncryptionService.Convert(this.CafeProductionDecimalPosition, key); + _o.CafeSetGroupApplyCount = TableEncryptionService.Convert(this.CafeSetGroupApplyCount, key); + _o.WeekDungeonFindGiftRewardLimitCount = TableEncryptionService.Convert(this.WeekDungeonFindGiftRewardLimitCount, key); + _o.StageFailedCurrencyRefundRate = TableEncryptionService.Convert(this.StageFailedCurrencyRefundRate, key); + _o.EnterDeposit = TableEncryptionService.Convert(this.EnterDeposit, key); + _o.AccountMaxLevel = TableEncryptionService.Convert(this.AccountMaxLevel, key); + _o.MainSquadExpBonus = TableEncryptionService.Convert(this.MainSquadExpBonus, key); + _o.SupportSquadExpBonus = TableEncryptionService.Convert(this.SupportSquadExpBonus, key); + _o.AccountExpRatio = TableEncryptionService.Convert(this.AccountExpRatio, key); + _o.MissionToastLifeTime = TableEncryptionService.Convert(this.MissionToastLifeTime, key); + _o.ExpItemInsertLimit = TableEncryptionService.Convert(this.ExpItemInsertLimit, key); + _o.ExpItemInsertAccelTime = TableEncryptionService.Convert(this.ExpItemInsertAccelTime, key); + _o.CharacterLvUpCoefficient = TableEncryptionService.Convert(this.CharacterLvUpCoefficient, key); + _o.EquipmentLvUpCoefficient = TableEncryptionService.Convert(this.EquipmentLvUpCoefficient, key); + _o.ExpEquipInsertLimit = TableEncryptionService.Convert(this.ExpEquipInsertLimit, key); + _o.EquipLvUpCoefficient = TableEncryptionService.Convert(this.EquipLvUpCoefficient, key); + _o.NicknameLength = TableEncryptionService.Convert(this.NicknameLength, key); + _o.CraftDuration = new List(); + for (var _j = 0; _j < this.CraftDurationLength; ++_j) {_o.CraftDuration.Add(TableEncryptionService.Convert(this.CraftDuration(_j), key));} + _o.CraftLimitTime = TableEncryptionService.Convert(this.CraftLimitTime, key); + _o.ShiftingCraftDuration = new List(); + for (var _j = 0; _j < this.ShiftingCraftDurationLength; ++_j) {_o.ShiftingCraftDuration.Add(TableEncryptionService.Convert(this.ShiftingCraftDuration(_j), key));} + _o.ShiftingCraftTicketConsumeAmount = TableEncryptionService.Convert(this.ShiftingCraftTicketConsumeAmount, key); + _o.ShiftingCraftSlotMaxCapacity = TableEncryptionService.Convert(this.ShiftingCraftSlotMaxCapacity, key); + _o.CraftTicketItemUniqueId = TableEncryptionService.Convert(this.CraftTicketItemUniqueId, key); + _o.CraftTicketConsumeAmount = TableEncryptionService.Convert(this.CraftTicketConsumeAmount, key); + _o.AcademyEnterCostType = TableEncryptionService.Convert(this.AcademyEnterCostType, key); + _o.AcademyEnterCostId = TableEncryptionService.Convert(this.AcademyEnterCostId, key); + _o.AcademyTicketCost = TableEncryptionService.Convert(this.AcademyTicketCost, key); + _o.MassangerMessageExpireDay = TableEncryptionService.Convert(this.MassangerMessageExpireDay, key); + _o.CraftLeafNodeGenerateLv1Count = TableEncryptionService.Convert(this.CraftLeafNodeGenerateLv1Count, key); + _o.CraftLeafNodeGenerateLv2Count = TableEncryptionService.Convert(this.CraftLeafNodeGenerateLv2Count, key); + _o.TutorialGachaShopId = TableEncryptionService.Convert(this.TutorialGachaShopId, key); + _o.BeforehandGachaShopId = TableEncryptionService.Convert(this.BeforehandGachaShopId, key); + _o.TutorialGachaGoodsId = TableEncryptionService.Convert(this.TutorialGachaGoodsId, key); + _o.EquipmentSlotOpenLevel = new List(); + for (var _j = 0; _j < this.EquipmentSlotOpenLevelLength; ++_j) {_o.EquipmentSlotOpenLevel.Add(TableEncryptionService.Convert(this.EquipmentSlotOpenLevel(_j), key));} + _o.ScenarioAutoDelayMillisec = TableEncryptionService.Convert(this.ScenarioAutoDelayMillisec, key); + _o.JoinOrCreateClanCoolTimeFromHour = TableEncryptionService.Convert(this.JoinOrCreateClanCoolTimeFromHour, key); + _o.ClanMaxMember = TableEncryptionService.Convert(this.ClanMaxMember, key); + _o.ClanSearchResultCount = TableEncryptionService.Convert(this.ClanSearchResultCount, key); + _o.ClanMaxApplicant = TableEncryptionService.Convert(this.ClanMaxApplicant, key); + _o.ClanRejoinCoolTimeFromSecond = TableEncryptionService.Convert(this.ClanRejoinCoolTimeFromSecond, key); + _o.ClanWordBalloonMaxCharacter = TableEncryptionService.Convert(this.ClanWordBalloonMaxCharacter, key); + _o.CallNameRenameCoolTimeFromHour = TableEncryptionService.Convert(this.CallNameRenameCoolTimeFromHour, key); + _o.CallNameMinimumLength = TableEncryptionService.Convert(this.CallNameMinimumLength, key); + _o.CallNameMaximumLength = TableEncryptionService.Convert(this.CallNameMaximumLength, key); + _o.LobbyToScreenModeWaitTime = TableEncryptionService.Convert(this.LobbyToScreenModeWaitTime, key); + _o.ScreenshotToLobbyButtonHideDelay = TableEncryptionService.Convert(this.ScreenshotToLobbyButtonHideDelay, key); + _o.PrologueScenarioID01 = TableEncryptionService.Convert(this.PrologueScenarioID01, key); + _o.PrologueScenarioID02 = TableEncryptionService.Convert(this.PrologueScenarioID02, key); + _o.TutorialHardStage11 = TableEncryptionService.Convert(this.TutorialHardStage11, key); + _o.TutorialSpeedButtonStage = TableEncryptionService.Convert(this.TutorialSpeedButtonStage, key); + _o.TutorialCharacterDefaultCount = TableEncryptionService.Convert(this.TutorialCharacterDefaultCount, key); + _o.TutorialShopCategoryType = TableEncryptionService.Convert(this.TutorialShopCategoryType, key); + _o.AdventureStrategyPlayTimeLimitInSeconds = TableEncryptionService.Convert(this.AdventureStrategyPlayTimeLimitInSeconds, key); + _o.WeekDungoenTacticPlayTimeLimitInSeconds = TableEncryptionService.Convert(this.WeekDungoenTacticPlayTimeLimitInSeconds, key); + _o.RaidTacticPlayTimeLimitInSeconds = TableEncryptionService.Convert(this.RaidTacticPlayTimeLimitInSeconds, key); + _o.RaidOpponentListAmount = TableEncryptionService.Convert(this.RaidOpponentListAmount, key); + _o.CraftBaseGoldRequired = new List(); + for (var _j = 0; _j < this.CraftBaseGoldRequiredLength; ++_j) {_o.CraftBaseGoldRequired.Add(TableEncryptionService.Convert(this.CraftBaseGoldRequired(_j), key));} + _o.PostExpiredDayAttendance = TableEncryptionService.Convert(this.PostExpiredDayAttendance, key); + _o.PostExpiredDayInventoryOverflow = TableEncryptionService.Convert(this.PostExpiredDayInventoryOverflow, key); + _o.PostExpiredDayGameManager = TableEncryptionService.Convert(this.PostExpiredDayGameManager, key); + _o.UILabelCharacterWrap = TableEncryptionService.Convert(this.UILabelCharacterWrap, key); + _o.RequestTimeOut = TableEncryptionService.Convert(this.RequestTimeOut, key); + _o.MailStorageSoftCap = TableEncryptionService.Convert(this.MailStorageSoftCap, key); + _o.MailStorageHardCap = TableEncryptionService.Convert(this.MailStorageHardCap, key); + _o.ClearDeckStorageSize = TableEncryptionService.Convert(this.ClearDeckStorageSize, key); + _o.ClearDeckNoStarViewCount = TableEncryptionService.Convert(this.ClearDeckNoStarViewCount, key); + _o.ClearDeck1StarViewCount = TableEncryptionService.Convert(this.ClearDeck1StarViewCount, key); + _o.ClearDeck2StarViewCount = TableEncryptionService.Convert(this.ClearDeck2StarViewCount, key); + _o.ClearDeck3StarViewCount = TableEncryptionService.Convert(this.ClearDeck3StarViewCount, key); + _o.ExSkillLevelMax = TableEncryptionService.Convert(this.ExSkillLevelMax, key); + _o.PublicSkillLevelMax = TableEncryptionService.Convert(this.PublicSkillLevelMax, key); + _o.PassiveSkillLevelMax = TableEncryptionService.Convert(this.PassiveSkillLevelMax, key); + _o.ExtraPassiveSkillLevelMax = TableEncryptionService.Convert(this.ExtraPassiveSkillLevelMax, key); + _o.AccountCommentMaxLength = TableEncryptionService.Convert(this.AccountCommentMaxLength, key); + _o.CafeSummonCoolTimeFromHour = TableEncryptionService.Convert(this.CafeSummonCoolTimeFromHour, key); + _o.LimitedStageDailyClearCount = TableEncryptionService.Convert(this.LimitedStageDailyClearCount, key); + _o.LimitedStageEntryTimeLimit = TableEncryptionService.Convert(this.LimitedStageEntryTimeLimit, key); + _o.LimitedStageEntryTimeBuffer = TableEncryptionService.Convert(this.LimitedStageEntryTimeBuffer, key); + _o.LimitedStagePointAmount = TableEncryptionService.Convert(this.LimitedStagePointAmount, key); + _o.LimitedStagePointPerApMin = TableEncryptionService.Convert(this.LimitedStagePointPerApMin, key); + _o.LimitedStagePointPerApMax = TableEncryptionService.Convert(this.LimitedStagePointPerApMax, key); + _o.AccountLinkReward = TableEncryptionService.Convert(this.AccountLinkReward, key); + _o.MonthlyProductCheckDays = TableEncryptionService.Convert(this.MonthlyProductCheckDays, key); + _o.WeaponLvUpCoefficient = TableEncryptionService.Convert(this.WeaponLvUpCoefficient, key); + _o.ShowRaidMyListCount = TableEncryptionService.Convert(this.ShowRaidMyListCount, key); + _o.MaxLevelExpMasterCoinRatio = TableEncryptionService.Convert(this.MaxLevelExpMasterCoinRatio, key); + _o.RaidEnterCostType = TableEncryptionService.Convert(this.RaidEnterCostType, key); + _o.RaidEnterCostId = TableEncryptionService.Convert(this.RaidEnterCostId, key); + _o.RaidTicketCost = TableEncryptionService.Convert(this.RaidTicketCost, key); + _o.TimeAttackDungeonScenarioId = TableEncryptionService.Convert(this.TimeAttackDungeonScenarioId, key); + _o.TimeAttackDungoenPlayCountPerTicket = TableEncryptionService.Convert(this.TimeAttackDungoenPlayCountPerTicket, key); + _o.TimeAttackDungeonEnterCostType = TableEncryptionService.Convert(this.TimeAttackDungeonEnterCostType, key); + _o.TimeAttackDungeonEnterCostId = TableEncryptionService.Convert(this.TimeAttackDungeonEnterCostId, key); + _o.TimeAttackDungeonEnterCost = TableEncryptionService.Convert(this.TimeAttackDungeonEnterCost, key); + _o.ClanLeaderTransferLastLoginLimit = TableEncryptionService.Convert(this.ClanLeaderTransferLastLoginLimit, key); + _o.MonthlyProductRepurchasePopupLimit = TableEncryptionService.Convert(this.MonthlyProductRepurchasePopupLimit, key); + _o.CommonFavorItemTags = new List(); + for (var _j = 0; _j < this.CommonFavorItemTagsLength; ++_j) {_o.CommonFavorItemTags.Add(TableEncryptionService.Convert(this.CommonFavorItemTags(_j), key));} + _o.MaxApMasterCoinPerWeek = TableEncryptionService.Convert(this.MaxApMasterCoinPerWeek, key); + _o.CraftOpenExpTier1 = TableEncryptionService.Convert(this.CraftOpenExpTier1, key); + _o.CraftOpenExpTier2 = TableEncryptionService.Convert(this.CraftOpenExpTier2, key); + _o.CraftOpenExpTier3 = TableEncryptionService.Convert(this.CraftOpenExpTier3, key); + _o.CharacterEquipmentGearSlot = TableEncryptionService.Convert(this.CharacterEquipmentGearSlot, key); + _o.BirthDayDDay = TableEncryptionService.Convert(this.BirthDayDDay, key); + _o.RecommendedFriendsLvDifferenceLimit = TableEncryptionService.Convert(this.RecommendedFriendsLvDifferenceLimit, key); + _o.DDosDetectCount = TableEncryptionService.Convert(this.DDosDetectCount, key); + _o.DDosCheckIntervalInSeconds = TableEncryptionService.Convert(this.DDosCheckIntervalInSeconds, key); + _o.MaxFriendsCount = TableEncryptionService.Convert(this.MaxFriendsCount, key); + _o.MaxFriendsRequest = TableEncryptionService.Convert(this.MaxFriendsRequest, key); + _o.FriendsSearchRequestCount = TableEncryptionService.Convert(this.FriendsSearchRequestCount, key); + _o.FriendsMaxApplicant = TableEncryptionService.Convert(this.FriendsMaxApplicant, key); + _o.IdCardDefaultCharacterId = TableEncryptionService.Convert(this.IdCardDefaultCharacterId, key); + _o.IdCardDefaultBgId = TableEncryptionService.Convert(this.IdCardDefaultBgId, key); + _o.WorldRaidGemEnterCost = TableEncryptionService.Convert(this.WorldRaidGemEnterCost, key); + _o.WorldRaidGemEnterAmout = TableEncryptionService.Convert(this.WorldRaidGemEnterAmout, key); + _o.FriendIdCardCommentMaxLength = TableEncryptionService.Convert(this.FriendIdCardCommentMaxLength, key); + _o.FormationPresetNumberOfEchelonTab = TableEncryptionService.Convert(this.FormationPresetNumberOfEchelonTab, key); + _o.FormationPresetNumberOfEchelon = TableEncryptionService.Convert(this.FormationPresetNumberOfEchelon, key); + _o.FormationPresetRecentNumberOfEchelon = TableEncryptionService.Convert(this.FormationPresetRecentNumberOfEchelon, key); + _o.FormationPresetEchelonTabTextLength = TableEncryptionService.Convert(this.FormationPresetEchelonTabTextLength, key); + _o.FormationPresetEchelonSlotTextLength = TableEncryptionService.Convert(this.FormationPresetEchelonSlotTextLength, key); + _o.CharProfileRowIntervalKr = TableEncryptionService.Convert(this.CharProfileRowIntervalKr, key); + _o.CharProfileRowIntervalJp = TableEncryptionService.Convert(this.CharProfileRowIntervalJp, key); + _o.CharProfilePopupRowIntervalKr = TableEncryptionService.Convert(this.CharProfilePopupRowIntervalKr, key); + _o.CharProfilePopupRowIntervalJp = TableEncryptionService.Convert(this.CharProfilePopupRowIntervalJp, key); + _o.BeforehandGachaCount = TableEncryptionService.Convert(this.BeforehandGachaCount, key); + _o.BeforehandGachaGroupId = TableEncryptionService.Convert(this.BeforehandGachaGroupId, key); + _o.RenewalDisplayOrderDay = TableEncryptionService.Convert(this.RenewalDisplayOrderDay, key); + _o.EmblemDefaultId = TableEncryptionService.Convert(this.EmblemDefaultId, key); + _o.BirthdayMailStartDate = TableEncryptionService.Convert(this.BirthdayMailStartDate, key); + _o.BirthdayMailRemainDate = TableEncryptionService.Convert(this.BirthdayMailRemainDate, key); + _o.BirthdayMailParcelType = TableEncryptionService.Convert(this.BirthdayMailParcelType, key); + _o.BirthdayMailParcelId = TableEncryptionService.Convert(this.BirthdayMailParcelId, key); + _o.BirthdayMailParcelAmount = TableEncryptionService.Convert(this.BirthdayMailParcelAmount, key); + _o.ClearDeckAverageDeckCount = TableEncryptionService.Convert(this.ClearDeckAverageDeckCount, key); + _o.ClearDeckWorldRaidSaveConditionCoefficient = TableEncryptionService.Convert(this.ClearDeckWorldRaidSaveConditionCoefficient, key); + _o.ClearDeckShowCount = TableEncryptionService.Convert(this.ClearDeckShowCount, key); + _o.CharacterMaxLevel = TableEncryptionService.Convert(this.CharacterMaxLevel, key); + _o.PotentialBonusStatMaxLevelMaxHP = TableEncryptionService.Convert(this.PotentialBonusStatMaxLevelMaxHP, key); + _o.PotentialBonusStatMaxLevelAttackPower = TableEncryptionService.Convert(this.PotentialBonusStatMaxLevelAttackPower, key); + _o.PotentialBonusStatMaxLevelHealPower = TableEncryptionService.Convert(this.PotentialBonusStatMaxLevelHealPower, key); + _o.PotentialOpenConditionCharacterLevel = TableEncryptionService.Convert(this.PotentialOpenConditionCharacterLevel, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstCommonExcelT _o) { + if (_o == null) return default(Offset); + var _CraftDuration = default(VectorOffset); + if (_o.CraftDuration != null) { + var __CraftDuration = _o.CraftDuration.ToArray(); + _CraftDuration = CreateCraftDurationVector(builder, __CraftDuration); + } + var _ShiftingCraftDuration = default(VectorOffset); + if (_o.ShiftingCraftDuration != null) { + var __ShiftingCraftDuration = _o.ShiftingCraftDuration.ToArray(); + _ShiftingCraftDuration = CreateShiftingCraftDurationVector(builder, __ShiftingCraftDuration); + } + var _EquipmentSlotOpenLevel = default(VectorOffset); + if (_o.EquipmentSlotOpenLevel != null) { + var __EquipmentSlotOpenLevel = _o.EquipmentSlotOpenLevel.ToArray(); + _EquipmentSlotOpenLevel = CreateEquipmentSlotOpenLevelVector(builder, __EquipmentSlotOpenLevel); + } + var _CraftBaseGoldRequired = default(VectorOffset); + if (_o.CraftBaseGoldRequired != null) { + var __CraftBaseGoldRequired = _o.CraftBaseGoldRequired.ToArray(); + _CraftBaseGoldRequired = CreateCraftBaseGoldRequiredVector(builder, __CraftBaseGoldRequired); + } + var _UILabelCharacterWrap = _o.UILabelCharacterWrap == null ? default(StringOffset) : builder.CreateString(_o.UILabelCharacterWrap); + var _TimeAttackDungeonScenarioId = _o.TimeAttackDungeonScenarioId == null ? default(StringOffset) : builder.CreateString(_o.TimeAttackDungeonScenarioId); + var _CommonFavorItemTags = default(VectorOffset); + if (_o.CommonFavorItemTags != null) { + var __CommonFavorItemTags = _o.CommonFavorItemTags.ToArray(); + _CommonFavorItemTags = CreateCommonFavorItemTagsVector(builder, __CommonFavorItemTags); + } + var _BirthdayMailStartDate = _o.BirthdayMailStartDate == null ? default(StringOffset) : builder.CreateString(_o.BirthdayMailStartDate); + StartConstCommonExcel(builder); + AddCampaignMainStageMaxRank(builder, _o.CampaignMainStageMaxRank); + AddCampaignMainStageBestRecord(builder, _o.CampaignMainStageBestRecord); + AddHardAdventurePlayCountRecoverDailyNumber(builder, _o.HardAdventurePlayCountRecoverDailyNumber); + AddHardStageCount(builder, _o.HardStageCount); + AddTacticRankClearTime(builder, _o.TacticRankClearTime); + AddBaseTimeScale(builder, _o.BaseTimeScale); + AddGachaPercentage(builder, _o.GachaPercentage); + AddAcademyFavorZoneId(builder, _o.AcademyFavorZoneId); + AddCafePresetSlotCount(builder, _o.CafePresetSlotCount); + AddCafeMonologueIntervalMillisec(builder, _o.CafeMonologueIntervalMillisec); + AddCafeMonologueDefaultDuration(builder, _o.CafeMonologueDefaultDuration); + AddCafeBubbleIdleDurationMilliSec(builder, _o.CafeBubbleIdleDurationMilliSec); + AddFindGiftTimeLimit(builder, _o.FindGiftTimeLimit); + AddCafeAutoChargePeriodInMsc(builder, _o.CafeAutoChargePeriodInMsc); + AddCafeProductionDecimalPosition(builder, _o.CafeProductionDecimalPosition); + AddCafeSetGroupApplyCount(builder, _o.CafeSetGroupApplyCount); + AddWeekDungeonFindGiftRewardLimitCount(builder, _o.WeekDungeonFindGiftRewardLimitCount); + AddStageFailedCurrencyRefundRate(builder, _o.StageFailedCurrencyRefundRate); + AddEnterDeposit(builder, _o.EnterDeposit); + AddAccountMaxLevel(builder, _o.AccountMaxLevel); + AddMainSquadExpBonus(builder, _o.MainSquadExpBonus); + AddSupportSquadExpBonus(builder, _o.SupportSquadExpBonus); + AddAccountExpRatio(builder, _o.AccountExpRatio); + AddMissionToastLifeTime(builder, _o.MissionToastLifeTime); + AddExpItemInsertLimit(builder, _o.ExpItemInsertLimit); + AddExpItemInsertAccelTime(builder, _o.ExpItemInsertAccelTime); + AddCharacterLvUpCoefficient(builder, _o.CharacterLvUpCoefficient); + AddEquipmentLvUpCoefficient(builder, _o.EquipmentLvUpCoefficient); + AddExpEquipInsertLimit(builder, _o.ExpEquipInsertLimit); + AddEquipLvUpCoefficient(builder, _o.EquipLvUpCoefficient); + AddNicknameLength(builder, _o.NicknameLength); + AddCraftDuration(builder, _CraftDuration); + AddCraftLimitTime(builder, _o.CraftLimitTime); + AddShiftingCraftDuration(builder, _ShiftingCraftDuration); + AddShiftingCraftTicketConsumeAmount(builder, _o.ShiftingCraftTicketConsumeAmount); + AddShiftingCraftSlotMaxCapacity(builder, _o.ShiftingCraftSlotMaxCapacity); + AddCraftTicketItemUniqueId(builder, _o.CraftTicketItemUniqueId); + AddCraftTicketConsumeAmount(builder, _o.CraftTicketConsumeAmount); + AddAcademyEnterCostType(builder, _o.AcademyEnterCostType); + AddAcademyEnterCostId(builder, _o.AcademyEnterCostId); + AddAcademyTicketCost(builder, _o.AcademyTicketCost); + AddMassangerMessageExpireDay(builder, _o.MassangerMessageExpireDay); + AddCraftLeafNodeGenerateLv1Count(builder, _o.CraftLeafNodeGenerateLv1Count); + AddCraftLeafNodeGenerateLv2Count(builder, _o.CraftLeafNodeGenerateLv2Count); + AddTutorialGachaShopId(builder, _o.TutorialGachaShopId); + AddBeforehandGachaShopId(builder, _o.BeforehandGachaShopId); + AddTutorialGachaGoodsId(builder, _o.TutorialGachaGoodsId); + AddEquipmentSlotOpenLevel(builder, _EquipmentSlotOpenLevel); + AddScenarioAutoDelayMillisec(builder, _o.ScenarioAutoDelayMillisec); + AddJoinOrCreateClanCoolTimeFromHour(builder, _o.JoinOrCreateClanCoolTimeFromHour); + AddClanMaxMember(builder, _o.ClanMaxMember); + AddClanSearchResultCount(builder, _o.ClanSearchResultCount); + AddClanMaxApplicant(builder, _o.ClanMaxApplicant); + AddClanRejoinCoolTimeFromSecond(builder, _o.ClanRejoinCoolTimeFromSecond); + AddClanWordBalloonMaxCharacter(builder, _o.ClanWordBalloonMaxCharacter); + AddCallNameRenameCoolTimeFromHour(builder, _o.CallNameRenameCoolTimeFromHour); + AddCallNameMinimumLength(builder, _o.CallNameMinimumLength); + AddCallNameMaximumLength(builder, _o.CallNameMaximumLength); + AddLobbyToScreenModeWaitTime(builder, _o.LobbyToScreenModeWaitTime); + AddScreenshotToLobbyButtonHideDelay(builder, _o.ScreenshotToLobbyButtonHideDelay); + AddPrologueScenarioID01(builder, _o.PrologueScenarioID01); + AddPrologueScenarioID02(builder, _o.PrologueScenarioID02); + AddTutorialHardStage11(builder, _o.TutorialHardStage11); + AddTutorialSpeedButtonStage(builder, _o.TutorialSpeedButtonStage); + AddTutorialCharacterDefaultCount(builder, _o.TutorialCharacterDefaultCount); + AddTutorialShopCategoryType(builder, _o.TutorialShopCategoryType); + AddAdventureStrategyPlayTimeLimitInSeconds(builder, _o.AdventureStrategyPlayTimeLimitInSeconds); + AddWeekDungoenTacticPlayTimeLimitInSeconds(builder, _o.WeekDungoenTacticPlayTimeLimitInSeconds); + AddRaidTacticPlayTimeLimitInSeconds(builder, _o.RaidTacticPlayTimeLimitInSeconds); + AddRaidOpponentListAmount(builder, _o.RaidOpponentListAmount); + AddCraftBaseGoldRequired(builder, _CraftBaseGoldRequired); + AddPostExpiredDayAttendance(builder, _o.PostExpiredDayAttendance); + AddPostExpiredDayInventoryOverflow(builder, _o.PostExpiredDayInventoryOverflow); + AddPostExpiredDayGameManager(builder, _o.PostExpiredDayGameManager); + AddUILabelCharacterWrap(builder, _UILabelCharacterWrap); + AddRequestTimeOut(builder, _o.RequestTimeOut); + AddMailStorageSoftCap(builder, _o.MailStorageSoftCap); + AddMailStorageHardCap(builder, _o.MailStorageHardCap); + AddClearDeckStorageSize(builder, _o.ClearDeckStorageSize); + AddClearDeckNoStarViewCount(builder, _o.ClearDeckNoStarViewCount); + AddClearDeck1StarViewCount(builder, _o.ClearDeck1StarViewCount); + AddClearDeck2StarViewCount(builder, _o.ClearDeck2StarViewCount); + AddClearDeck3StarViewCount(builder, _o.ClearDeck3StarViewCount); + AddExSkillLevelMax(builder, _o.ExSkillLevelMax); + AddPublicSkillLevelMax(builder, _o.PublicSkillLevelMax); + AddPassiveSkillLevelMax(builder, _o.PassiveSkillLevelMax); + AddExtraPassiveSkillLevelMax(builder, _o.ExtraPassiveSkillLevelMax); + AddAccountCommentMaxLength(builder, _o.AccountCommentMaxLength); + AddCafeSummonCoolTimeFromHour(builder, _o.CafeSummonCoolTimeFromHour); + AddLimitedStageDailyClearCount(builder, _o.LimitedStageDailyClearCount); + AddLimitedStageEntryTimeLimit(builder, _o.LimitedStageEntryTimeLimit); + AddLimitedStageEntryTimeBuffer(builder, _o.LimitedStageEntryTimeBuffer); + AddLimitedStagePointAmount(builder, _o.LimitedStagePointAmount); + AddLimitedStagePointPerApMin(builder, _o.LimitedStagePointPerApMin); + AddLimitedStagePointPerApMax(builder, _o.LimitedStagePointPerApMax); + AddAccountLinkReward(builder, _o.AccountLinkReward); + AddMonthlyProductCheckDays(builder, _o.MonthlyProductCheckDays); + AddWeaponLvUpCoefficient(builder, _o.WeaponLvUpCoefficient); + AddShowRaidMyListCount(builder, _o.ShowRaidMyListCount); + AddMaxLevelExpMasterCoinRatio(builder, _o.MaxLevelExpMasterCoinRatio); + AddRaidEnterCostType(builder, _o.RaidEnterCostType); + AddRaidEnterCostId(builder, _o.RaidEnterCostId); + AddRaidTicketCost(builder, _o.RaidTicketCost); + AddTimeAttackDungeonScenarioId(builder, _TimeAttackDungeonScenarioId); + AddTimeAttackDungoenPlayCountPerTicket(builder, _o.TimeAttackDungoenPlayCountPerTicket); + AddTimeAttackDungeonEnterCostType(builder, _o.TimeAttackDungeonEnterCostType); + AddTimeAttackDungeonEnterCostId(builder, _o.TimeAttackDungeonEnterCostId); + AddTimeAttackDungeonEnterCost(builder, _o.TimeAttackDungeonEnterCost); + AddClanLeaderTransferLastLoginLimit(builder, _o.ClanLeaderTransferLastLoginLimit); + AddMonthlyProductRepurchasePopupLimit(builder, _o.MonthlyProductRepurchasePopupLimit); + AddCommonFavorItemTags(builder, _CommonFavorItemTags); + AddMaxApMasterCoinPerWeek(builder, _o.MaxApMasterCoinPerWeek); + AddCraftOpenExpTier1(builder, _o.CraftOpenExpTier1); + AddCraftOpenExpTier2(builder, _o.CraftOpenExpTier2); + AddCraftOpenExpTier3(builder, _o.CraftOpenExpTier3); + AddCharacterEquipmentGearSlot(builder, _o.CharacterEquipmentGearSlot); + AddBirthDayDDay(builder, _o.BirthDayDDay); + AddRecommendedFriendsLvDifferenceLimit(builder, _o.RecommendedFriendsLvDifferenceLimit); + AddDDosDetectCount(builder, _o.DDosDetectCount); + AddDDosCheckIntervalInSeconds(builder, _o.DDosCheckIntervalInSeconds); + AddMaxFriendsCount(builder, _o.MaxFriendsCount); + AddMaxFriendsRequest(builder, _o.MaxFriendsRequest); + AddFriendsSearchRequestCount(builder, _o.FriendsSearchRequestCount); + AddFriendsMaxApplicant(builder, _o.FriendsMaxApplicant); + AddIdCardDefaultCharacterId(builder, _o.IdCardDefaultCharacterId); + AddIdCardDefaultBgId(builder, _o.IdCardDefaultBgId); + AddWorldRaidGemEnterCost(builder, _o.WorldRaidGemEnterCost); + AddWorldRaidGemEnterAmout(builder, _o.WorldRaidGemEnterAmout); + AddFriendIdCardCommentMaxLength(builder, _o.FriendIdCardCommentMaxLength); + AddFormationPresetNumberOfEchelonTab(builder, _o.FormationPresetNumberOfEchelonTab); + AddFormationPresetNumberOfEchelon(builder, _o.FormationPresetNumberOfEchelon); + AddFormationPresetRecentNumberOfEchelon(builder, _o.FormationPresetRecentNumberOfEchelon); + AddFormationPresetEchelonTabTextLength(builder, _o.FormationPresetEchelonTabTextLength); + AddFormationPresetEchelonSlotTextLength(builder, _o.FormationPresetEchelonSlotTextLength); + AddCharProfileRowIntervalKr(builder, _o.CharProfileRowIntervalKr); + AddCharProfileRowIntervalJp(builder, _o.CharProfileRowIntervalJp); + AddCharProfilePopupRowIntervalKr(builder, _o.CharProfilePopupRowIntervalKr); + AddCharProfilePopupRowIntervalJp(builder, _o.CharProfilePopupRowIntervalJp); + AddBeforehandGachaCount(builder, _o.BeforehandGachaCount); + AddBeforehandGachaGroupId(builder, _o.BeforehandGachaGroupId); + AddRenewalDisplayOrderDay(builder, _o.RenewalDisplayOrderDay); + AddEmblemDefaultId(builder, _o.EmblemDefaultId); + AddBirthdayMailStartDate(builder, _BirthdayMailStartDate); + AddBirthdayMailRemainDate(builder, _o.BirthdayMailRemainDate); + AddBirthdayMailParcelType(builder, _o.BirthdayMailParcelType); + AddBirthdayMailParcelId(builder, _o.BirthdayMailParcelId); + AddBirthdayMailParcelAmount(builder, _o.BirthdayMailParcelAmount); + AddClearDeckAverageDeckCount(builder, _o.ClearDeckAverageDeckCount); + AddClearDeckWorldRaidSaveConditionCoefficient(builder, _o.ClearDeckWorldRaidSaveConditionCoefficient); + AddClearDeckShowCount(builder, _o.ClearDeckShowCount); + AddCharacterMaxLevel(builder, _o.CharacterMaxLevel); + AddPotentialBonusStatMaxLevelMaxHP(builder, _o.PotentialBonusStatMaxLevelMaxHP); + AddPotentialBonusStatMaxLevelAttackPower(builder, _o.PotentialBonusStatMaxLevelAttackPower); + AddPotentialBonusStatMaxLevelHealPower(builder, _o.PotentialBonusStatMaxLevelHealPower); + AddPotentialOpenConditionCharacterLevel(builder, _o.PotentialOpenConditionCharacterLevel); + return EndConstCommonExcel(builder); + } +} + +public class ConstCommonExcelT +{ + public int CampaignMainStageMaxRank { get; set; } + public int CampaignMainStageBestRecord { get; set; } + public int HardAdventurePlayCountRecoverDailyNumber { get; set; } + public int HardStageCount { get; set; } + public int TacticRankClearTime { get; set; } + public long BaseTimeScale { get; set; } + public int GachaPercentage { get; set; } + public long AcademyFavorZoneId { get; set; } + public int CafePresetSlotCount { get; set; } + public long CafeMonologueIntervalMillisec { get; set; } + public long CafeMonologueDefaultDuration { get; set; } + public long CafeBubbleIdleDurationMilliSec { get; set; } + public int FindGiftTimeLimit { get; set; } + public int CafeAutoChargePeriodInMsc { get; set; } + public int CafeProductionDecimalPosition { get; set; } + public int CafeSetGroupApplyCount { get; set; } + public int WeekDungeonFindGiftRewardLimitCount { get; set; } + public int StageFailedCurrencyRefundRate { get; set; } + public int EnterDeposit { get; set; } + public int AccountMaxLevel { get; set; } + public int MainSquadExpBonus { get; set; } + public int SupportSquadExpBonus { get; set; } + public int AccountExpRatio { get; set; } + public int MissionToastLifeTime { get; set; } + public int ExpItemInsertLimit { get; set; } + public int ExpItemInsertAccelTime { get; set; } + public int CharacterLvUpCoefficient { get; set; } + public int EquipmentLvUpCoefficient { get; set; } + public int ExpEquipInsertLimit { get; set; } + public int EquipLvUpCoefficient { get; set; } + public int NicknameLength { get; set; } + public List CraftDuration { get; set; } + public int CraftLimitTime { get; set; } + public List ShiftingCraftDuration { get; set; } + public int ShiftingCraftTicketConsumeAmount { get; set; } + public int ShiftingCraftSlotMaxCapacity { get; set; } + public int CraftTicketItemUniqueId { get; set; } + public int CraftTicketConsumeAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType AcademyEnterCostType { get; set; } + public long AcademyEnterCostId { get; set; } + public int AcademyTicketCost { get; set; } + public int MassangerMessageExpireDay { get; set; } + public int CraftLeafNodeGenerateLv1Count { get; set; } + public int CraftLeafNodeGenerateLv2Count { get; set; } + public int TutorialGachaShopId { get; set; } + public int BeforehandGachaShopId { get; set; } + public int TutorialGachaGoodsId { get; set; } + public List EquipmentSlotOpenLevel { get; set; } + public float ScenarioAutoDelayMillisec { get; set; } + public long JoinOrCreateClanCoolTimeFromHour { get; set; } + public long ClanMaxMember { get; set; } + public long ClanSearchResultCount { get; set; } + public long ClanMaxApplicant { get; set; } + public long ClanRejoinCoolTimeFromSecond { get; set; } + public int ClanWordBalloonMaxCharacter { get; set; } + public long CallNameRenameCoolTimeFromHour { get; set; } + public long CallNameMinimumLength { get; set; } + public long CallNameMaximumLength { get; set; } + public long LobbyToScreenModeWaitTime { get; set; } + public long ScreenshotToLobbyButtonHideDelay { get; set; } + public long PrologueScenarioID01 { get; set; } + public long PrologueScenarioID02 { get; set; } + public long TutorialHardStage11 { get; set; } + public long TutorialSpeedButtonStage { get; set; } + public long TutorialCharacterDefaultCount { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType TutorialShopCategoryType { get; set; } + public long AdventureStrategyPlayTimeLimitInSeconds { get; set; } + public long WeekDungoenTacticPlayTimeLimitInSeconds { get; set; } + public long RaidTacticPlayTimeLimitInSeconds { get; set; } + public long RaidOpponentListAmount { get; set; } + public List CraftBaseGoldRequired { get; set; } + public int PostExpiredDayAttendance { get; set; } + public int PostExpiredDayInventoryOverflow { get; set; } + public int PostExpiredDayGameManager { get; set; } + public string UILabelCharacterWrap { get; set; } + public float RequestTimeOut { get; set; } + public int MailStorageSoftCap { get; set; } + public int MailStorageHardCap { get; set; } + public int ClearDeckStorageSize { get; set; } + public int ClearDeckNoStarViewCount { get; set; } + public int ClearDeck1StarViewCount { get; set; } + public int ClearDeck2StarViewCount { get; set; } + public int ClearDeck3StarViewCount { get; set; } + public int ExSkillLevelMax { get; set; } + public int PublicSkillLevelMax { get; set; } + public int PassiveSkillLevelMax { get; set; } + public int ExtraPassiveSkillLevelMax { get; set; } + public int AccountCommentMaxLength { get; set; } + public int CafeSummonCoolTimeFromHour { get; set; } + public long LimitedStageDailyClearCount { get; set; } + public long LimitedStageEntryTimeLimit { get; set; } + public long LimitedStageEntryTimeBuffer { get; set; } + public long LimitedStagePointAmount { get; set; } + public long LimitedStagePointPerApMin { get; set; } + public long LimitedStagePointPerApMax { get; set; } + public int AccountLinkReward { get; set; } + public int MonthlyProductCheckDays { get; set; } + public int WeaponLvUpCoefficient { get; set; } + public int ShowRaidMyListCount { get; set; } + public int MaxLevelExpMasterCoinRatio { get; set; } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get; set; } + public long RaidEnterCostId { get; set; } + public long RaidTicketCost { get; set; } + public string TimeAttackDungeonScenarioId { get; set; } + public int TimeAttackDungoenPlayCountPerTicket { get; set; } + public SCHALE.Common.FlatData.ParcelType TimeAttackDungeonEnterCostType { get; set; } + public long TimeAttackDungeonEnterCostId { get; set; } + public long TimeAttackDungeonEnterCost { get; set; } + public long ClanLeaderTransferLastLoginLimit { get; set; } + public int MonthlyProductRepurchasePopupLimit { get; set; } + public List CommonFavorItemTags { get; set; } + public long MaxApMasterCoinPerWeek { get; set; } + public long CraftOpenExpTier1 { get; set; } + public long CraftOpenExpTier2 { get; set; } + public long CraftOpenExpTier3 { get; set; } + public long CharacterEquipmentGearSlot { get; set; } + public int BirthDayDDay { get; set; } + public int RecommendedFriendsLvDifferenceLimit { get; set; } + public int DDosDetectCount { get; set; } + public int DDosCheckIntervalInSeconds { get; set; } + public int MaxFriendsCount { get; set; } + public int MaxFriendsRequest { get; set; } + public int FriendsSearchRequestCount { get; set; } + public int FriendsMaxApplicant { get; set; } + public long IdCardDefaultCharacterId { get; set; } + public long IdCardDefaultBgId { get; set; } + public long WorldRaidGemEnterCost { get; set; } + public long WorldRaidGemEnterAmout { get; set; } + public long FriendIdCardCommentMaxLength { get; set; } + public int FormationPresetNumberOfEchelonTab { get; set; } + public int FormationPresetNumberOfEchelon { get; set; } + public int FormationPresetRecentNumberOfEchelon { get; set; } + public int FormationPresetEchelonTabTextLength { get; set; } + public int FormationPresetEchelonSlotTextLength { get; set; } + public int CharProfileRowIntervalKr { get; set; } + public int CharProfileRowIntervalJp { get; set; } + public int CharProfilePopupRowIntervalKr { get; set; } + public int CharProfilePopupRowIntervalJp { get; set; } + public int BeforehandGachaCount { get; set; } + public int BeforehandGachaGroupId { get; set; } + public int RenewalDisplayOrderDay { get; set; } + public long EmblemDefaultId { get; set; } + public string BirthdayMailStartDate { get; set; } + public int BirthdayMailRemainDate { get; set; } + public SCHALE.Common.FlatData.ParcelType BirthdayMailParcelType { get; set; } + public long BirthdayMailParcelId { get; set; } + public int BirthdayMailParcelAmount { get; set; } + public int ClearDeckAverageDeckCount { get; set; } + public int ClearDeckWorldRaidSaveConditionCoefficient { get; set; } + public int ClearDeckShowCount { get; set; } + public int CharacterMaxLevel { get; set; } + public int PotentialBonusStatMaxLevelMaxHP { get; set; } + public int PotentialBonusStatMaxLevelAttackPower { get; set; } + public int PotentialBonusStatMaxLevelHealPower { get; set; } + public int PotentialOpenConditionCharacterLevel { get; set; } + + public ConstCommonExcelT() { + this.CampaignMainStageMaxRank = 0; + this.CampaignMainStageBestRecord = 0; + this.HardAdventurePlayCountRecoverDailyNumber = 0; + this.HardStageCount = 0; + this.TacticRankClearTime = 0; + this.BaseTimeScale = 0; + this.GachaPercentage = 0; + this.AcademyFavorZoneId = 0; + this.CafePresetSlotCount = 0; + this.CafeMonologueIntervalMillisec = 0; + this.CafeMonologueDefaultDuration = 0; + this.CafeBubbleIdleDurationMilliSec = 0; + this.FindGiftTimeLimit = 0; + this.CafeAutoChargePeriodInMsc = 0; + this.CafeProductionDecimalPosition = 0; + this.CafeSetGroupApplyCount = 0; + this.WeekDungeonFindGiftRewardLimitCount = 0; + this.StageFailedCurrencyRefundRate = 0; + this.EnterDeposit = 0; + this.AccountMaxLevel = 0; + this.MainSquadExpBonus = 0; + this.SupportSquadExpBonus = 0; + this.AccountExpRatio = 0; + this.MissionToastLifeTime = 0; + this.ExpItemInsertLimit = 0; + this.ExpItemInsertAccelTime = 0; + this.CharacterLvUpCoefficient = 0; + this.EquipmentLvUpCoefficient = 0; + this.ExpEquipInsertLimit = 0; + this.EquipLvUpCoefficient = 0; + this.NicknameLength = 0; + this.CraftDuration = null; + this.CraftLimitTime = 0; + this.ShiftingCraftDuration = null; + this.ShiftingCraftTicketConsumeAmount = 0; + this.ShiftingCraftSlotMaxCapacity = 0; + this.CraftTicketItemUniqueId = 0; + this.CraftTicketConsumeAmount = 0; + this.AcademyEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.AcademyEnterCostId = 0; + this.AcademyTicketCost = 0; + this.MassangerMessageExpireDay = 0; + this.CraftLeafNodeGenerateLv1Count = 0; + this.CraftLeafNodeGenerateLv2Count = 0; + this.TutorialGachaShopId = 0; + this.BeforehandGachaShopId = 0; + this.TutorialGachaGoodsId = 0; + this.EquipmentSlotOpenLevel = null; + this.ScenarioAutoDelayMillisec = 0.0f; + this.JoinOrCreateClanCoolTimeFromHour = 0; + this.ClanMaxMember = 0; + this.ClanSearchResultCount = 0; + this.ClanMaxApplicant = 0; + this.ClanRejoinCoolTimeFromSecond = 0; + this.ClanWordBalloonMaxCharacter = 0; + this.CallNameRenameCoolTimeFromHour = 0; + this.CallNameMinimumLength = 0; + this.CallNameMaximumLength = 0; + this.LobbyToScreenModeWaitTime = 0; + this.ScreenshotToLobbyButtonHideDelay = 0; + this.PrologueScenarioID01 = 0; + this.PrologueScenarioID02 = 0; + this.TutorialHardStage11 = 0; + this.TutorialSpeedButtonStage = 0; + this.TutorialCharacterDefaultCount = 0; + this.TutorialShopCategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.AdventureStrategyPlayTimeLimitInSeconds = 0; + this.WeekDungoenTacticPlayTimeLimitInSeconds = 0; + this.RaidTacticPlayTimeLimitInSeconds = 0; + this.RaidOpponentListAmount = 0; + this.CraftBaseGoldRequired = null; + this.PostExpiredDayAttendance = 0; + this.PostExpiredDayInventoryOverflow = 0; + this.PostExpiredDayGameManager = 0; + this.UILabelCharacterWrap = null; + this.RequestTimeOut = 0.0f; + this.MailStorageSoftCap = 0; + this.MailStorageHardCap = 0; + this.ClearDeckStorageSize = 0; + this.ClearDeckNoStarViewCount = 0; + this.ClearDeck1StarViewCount = 0; + this.ClearDeck2StarViewCount = 0; + this.ClearDeck3StarViewCount = 0; + this.ExSkillLevelMax = 0; + this.PublicSkillLevelMax = 0; + this.PassiveSkillLevelMax = 0; + this.ExtraPassiveSkillLevelMax = 0; + this.AccountCommentMaxLength = 0; + this.CafeSummonCoolTimeFromHour = 0; + this.LimitedStageDailyClearCount = 0; + this.LimitedStageEntryTimeLimit = 0; + this.LimitedStageEntryTimeBuffer = 0; + this.LimitedStagePointAmount = 0; + this.LimitedStagePointPerApMin = 0; + this.LimitedStagePointPerApMax = 0; + this.AccountLinkReward = 0; + this.MonthlyProductCheckDays = 0; + this.WeaponLvUpCoefficient = 0; + this.ShowRaidMyListCount = 0; + this.MaxLevelExpMasterCoinRatio = 0; + this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.RaidEnterCostId = 0; + this.RaidTicketCost = 0; + this.TimeAttackDungeonScenarioId = null; + this.TimeAttackDungoenPlayCountPerTicket = 0; + this.TimeAttackDungeonEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.TimeAttackDungeonEnterCostId = 0; + this.TimeAttackDungeonEnterCost = 0; + this.ClanLeaderTransferLastLoginLimit = 0; + this.MonthlyProductRepurchasePopupLimit = 0; + this.CommonFavorItemTags = null; + this.MaxApMasterCoinPerWeek = 0; + this.CraftOpenExpTier1 = 0; + this.CraftOpenExpTier2 = 0; + this.CraftOpenExpTier3 = 0; + this.CharacterEquipmentGearSlot = 0; + this.BirthDayDDay = 0; + this.RecommendedFriendsLvDifferenceLimit = 0; + this.DDosDetectCount = 0; + this.DDosCheckIntervalInSeconds = 0; + this.MaxFriendsCount = 0; + this.MaxFriendsRequest = 0; + this.FriendsSearchRequestCount = 0; + this.FriendsMaxApplicant = 0; + this.IdCardDefaultCharacterId = 0; + this.IdCardDefaultBgId = 0; + this.WorldRaidGemEnterCost = 0; + this.WorldRaidGemEnterAmout = 0; + this.FriendIdCardCommentMaxLength = 0; + this.FormationPresetNumberOfEchelonTab = 0; + this.FormationPresetNumberOfEchelon = 0; + this.FormationPresetRecentNumberOfEchelon = 0; + this.FormationPresetEchelonTabTextLength = 0; + this.FormationPresetEchelonSlotTextLength = 0; + this.CharProfileRowIntervalKr = 0; + this.CharProfileRowIntervalJp = 0; + this.CharProfilePopupRowIntervalKr = 0; + this.CharProfilePopupRowIntervalJp = 0; + this.BeforehandGachaCount = 0; + this.BeforehandGachaGroupId = 0; + this.RenewalDisplayOrderDay = 0; + this.EmblemDefaultId = 0; + this.BirthdayMailStartDate = null; + this.BirthdayMailRemainDate = 0; + this.BirthdayMailParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.BirthdayMailParcelId = 0; + this.BirthdayMailParcelAmount = 0; + this.ClearDeckAverageDeckCount = 0; + this.ClearDeckWorldRaidSaveConditionCoefficient = 0; + this.ClearDeckShowCount = 0; + this.CharacterMaxLevel = 0; + this.PotentialBonusStatMaxLevelMaxHP = 0; + this.PotentialBonusStatMaxLevelAttackPower = 0; + this.PotentialBonusStatMaxLevelHealPower = 0; + this.PotentialOpenConditionCharacterLevel = 0; + } } @@ -511,74 +1183,73 @@ static public class ConstCommonExcelVerify && verifier.VerifyField(tablePos, 174 /*PassiveSkillLevelMax*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 176 /*ExtraPassiveSkillLevelMax*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 178 /*AccountCommentMaxLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 180 /*ShowFurnitureTag*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 182 /*CafeSummonCoolTimeFromHour*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 184 /*LimitedStageDailyClearCount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 186 /*LimitedStageEntryTimeLimit*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 188 /*LimitedStageEntryTimeBuffer*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 190 /*LimitedStagePointAmount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 192 /*LimitedStagePointPerApMin*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 194 /*LimitedStagePointPerApMax*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 196 /*AccountLinkReward*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 198 /*MonthlyProductCheckDays*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 200 /*WeaponLvUpCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 202 /*ShowRaidMyListCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 204 /*MaxLevelExpMasterCoinRatio*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 206 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 208 /*RaidEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 210 /*RaidTicketCost*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 212 /*TimeAttackDungeonScenarioId*/, false) - && verifier.VerifyField(tablePos, 214 /*TimeAttackDungoenPlayCountPerTicket*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 216 /*TimeAttackDungeonEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 218 /*TimeAttackDungeonEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 220 /*TimeAttackDungeonEnterCost*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 222 /*ClanLeaderTransferLastLoginLimit*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 224 /*MonthlyProductRepurchasePopupLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 226 /*CommonFavorItemTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) - && verifier.VerifyField(tablePos, 228 /*MaxApMasterCoinPerWeek*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 230 /*CraftOpenExpTier1*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 232 /*CraftOpenExpTier2*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 234 /*CraftOpenExpTier3*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 236 /*CharacterEquipmentGearSlot*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 238 /*BirthDayDDay*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 240 /*RecommendedFriendsLvDifferenceLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 242 /*DDosDetectCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 244 /*DDosCheckIntervalInSeconds*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 246 /*MaxFriendsCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 248 /*MaxFriendsRequest*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 250 /*FriendsSearchRequestCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 252 /*FriendsMaxApplicant*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 254 /*IdCardDefaultCharacterId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 256 /*IdCardDefaultBgId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 258 /*WorldRaidGemEnterCost*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 260 /*WorldRaidGemEnterAmout*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 262 /*FriendIdCardCommentMaxLength*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 264 /*FormationPresetNumberOfEchelonTab*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 266 /*FormationPresetNumberOfEchelon*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 268 /*FormationPresetRecentNumberOfEchelon*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 270 /*FormationPresetEchelonTabTextLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 272 /*FormationPresetEchelonSlotTextLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 274 /*CharProfileRowIntervalKr*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 276 /*CharProfileRowIntervalJp*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 278 /*CharProfilePopupRowIntervalKr*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 280 /*CharProfilePopupRowIntervalJp*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 282 /*BeforehandGachaCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 284 /*BeforehandGachaGroupId*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 286 /*RenewalDisplayOrderDay*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 288 /*EmblemDefaultId*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 290 /*BirthdayMailStartDate*/, false) - && verifier.VerifyField(tablePos, 292 /*BirthdayMailRemainDate*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 294 /*BirthdayMailParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 296 /*BirthdayMailParcelId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 298 /*BirthdayMailParcelAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 300 /*ClearDeckAverageDeckCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 302 /*ClearDeckWorldRaidSaveConditionCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 304 /*ClearDeckShowCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 306 /*CharacterMaxLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 308 /*PotentialBonusStatMaxLevelMaxHP*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 310 /*PotentialBonusStatMaxLevelAttackPower*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 312 /*PotentialBonusStatMaxLevelHealPower*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 314 /*PotentialOpenConditionCharacterLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 180 /*CafeSummonCoolTimeFromHour*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 182 /*LimitedStageDailyClearCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 184 /*LimitedStageEntryTimeLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 186 /*LimitedStageEntryTimeBuffer*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 188 /*LimitedStagePointAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 190 /*LimitedStagePointPerApMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 192 /*LimitedStagePointPerApMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 194 /*AccountLinkReward*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 196 /*MonthlyProductCheckDays*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 198 /*WeaponLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 200 /*ShowRaidMyListCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 202 /*MaxLevelExpMasterCoinRatio*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 204 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 206 /*RaidEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 208 /*RaidTicketCost*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 210 /*TimeAttackDungeonScenarioId*/, false) + && verifier.VerifyField(tablePos, 212 /*TimeAttackDungoenPlayCountPerTicket*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 214 /*TimeAttackDungeonEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 216 /*TimeAttackDungeonEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 218 /*TimeAttackDungeonEnterCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 220 /*ClanLeaderTransferLastLoginLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 222 /*MonthlyProductRepurchasePopupLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 224 /*CommonFavorItemTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 226 /*MaxApMasterCoinPerWeek*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 228 /*CraftOpenExpTier1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 230 /*CraftOpenExpTier2*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 232 /*CraftOpenExpTier3*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 234 /*CharacterEquipmentGearSlot*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 236 /*BirthDayDDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 238 /*RecommendedFriendsLvDifferenceLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 240 /*DDosDetectCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 242 /*DDosCheckIntervalInSeconds*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 244 /*MaxFriendsCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 246 /*MaxFriendsRequest*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 248 /*FriendsSearchRequestCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 250 /*FriendsMaxApplicant*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 252 /*IdCardDefaultCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 254 /*IdCardDefaultBgId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 256 /*WorldRaidGemEnterCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 258 /*WorldRaidGemEnterAmout*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 260 /*FriendIdCardCommentMaxLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 262 /*FormationPresetNumberOfEchelonTab*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 264 /*FormationPresetNumberOfEchelon*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 266 /*FormationPresetRecentNumberOfEchelon*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 268 /*FormationPresetEchelonTabTextLength*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 270 /*FormationPresetEchelonSlotTextLength*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 272 /*CharProfileRowIntervalKr*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 274 /*CharProfileRowIntervalJp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 276 /*CharProfilePopupRowIntervalKr*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 278 /*CharProfilePopupRowIntervalJp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 280 /*BeforehandGachaCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 282 /*BeforehandGachaGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 284 /*RenewalDisplayOrderDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 286 /*EmblemDefaultId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 288 /*BirthdayMailStartDate*/, false) + && verifier.VerifyField(tablePos, 290 /*BirthdayMailRemainDate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 292 /*BirthdayMailParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 294 /*BirthdayMailParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 296 /*BirthdayMailParcelAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 298 /*ClearDeckAverageDeckCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 300 /*ClearDeckWorldRaidSaveConditionCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 302 /*ClearDeckShowCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 304 /*CharacterMaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 306 /*PotentialBonusStatMaxLevelMaxHP*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 308 /*PotentialBonusStatMaxLevelAttackPower*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 310 /*PotentialBonusStatMaxLevelHealPower*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 312 /*PotentialOpenConditionCharacterLevel*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ConstCommonExcelTable.cs b/SCHALE.Common/FlatData/ConstCommonExcelTable.cs index 292ad53..eaed313 100644 --- a/SCHALE.Common/FlatData/ConstCommonExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstCommonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstCommonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstCommonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstCommonExcelTableT UnPack() { + var _o = new ConstCommonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstCommonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstCommonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstCommonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstCommonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstCommonExcelTable( + builder, + _DataList); + } +} + +public class ConstCommonExcelTableT +{ + public List DataList { get; set; } + + public ConstCommonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstConquestExcel.cs b/SCHALE.Common/FlatData/ConstConquestExcel.cs index 6886289..24d71c1 100644 --- a/SCHALE.Common/FlatData/ConstConquestExcel.cs +++ b/SCHALE.Common/FlatData/ConstConquestExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstConquestExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct ConstConquestExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstConquestExcelT UnPack() { + var _o = new ConstConquestExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstConquestExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstConquest"); + _o.ManageUnitChange = TableEncryptionService.Convert(this.ManageUnitChange, key); + _o.AssistCount = TableEncryptionService.Convert(this.AssistCount, key); + _o.PlayTimeLimitInSeconds = TableEncryptionService.Convert(this.PlayTimeLimitInSeconds, key); + _o.AnimationUnitAmountMin = TableEncryptionService.Convert(this.AnimationUnitAmountMin, key); + _o.AnimationUnitAmountMax = TableEncryptionService.Convert(this.AnimationUnitAmountMax, key); + _o.AnimationUnitDelay = TableEncryptionService.Convert(this.AnimationUnitDelay, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstConquestExcelT _o) { + if (_o == null) return default(Offset); + return CreateConstConquestExcel( + builder, + _o.ManageUnitChange, + _o.AssistCount, + _o.PlayTimeLimitInSeconds, + _o.AnimationUnitAmountMin, + _o.AnimationUnitAmountMax, + _o.AnimationUnitDelay); + } +} + +public class ConstConquestExcelT +{ + public int ManageUnitChange { get; set; } + public int AssistCount { get; set; } + public int PlayTimeLimitInSeconds { get; set; } + public int AnimationUnitAmountMin { get; set; } + public int AnimationUnitAmountMax { get; set; } + public float AnimationUnitDelay { get; set; } + + public ConstConquestExcelT() { + this.ManageUnitChange = 0; + this.AssistCount = 0; + this.PlayTimeLimitInSeconds = 0; + this.AnimationUnitAmountMin = 0; + this.AnimationUnitAmountMax = 0; + this.AnimationUnitDelay = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/ConstConquestExcelTable.cs b/SCHALE.Common/FlatData/ConstConquestExcelTable.cs index e4cd0d3..49ec629 100644 --- a/SCHALE.Common/FlatData/ConstConquestExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstConquestExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstConquestExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstConquestExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstConquestExcelTableT UnPack() { + var _o = new ConstConquestExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstConquestExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstConquestExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstConquestExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstConquestExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstConquestExcelTable( + builder, + _DataList); + } +} + +public class ConstConquestExcelTableT +{ + public List DataList { get; set; } + + public ConstConquestExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstEventCommonExcel.cs b/SCHALE.Common/FlatData/ConstEventCommonExcel.cs index 7dd1d35..f465f65 100644 --- a/SCHALE.Common/FlatData/ConstEventCommonExcel.cs +++ b/SCHALE.Common/FlatData/ConstEventCommonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstEventCommonExcel : IFlatbufferObject @@ -94,6 +95,80 @@ public struct ConstEventCommonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstEventCommonExcelT UnPack() { + var _o = new ConstEventCommonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstEventCommonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstEventCommon"); + _o.EventContentHardStageCount = TableEncryptionService.Convert(this.EventContentHardStageCount, key); + _o.EventStrategyPlayTimeLimitInSeconds = TableEncryptionService.Convert(this.EventStrategyPlayTimeLimitInSeconds, key); + _o.SubEventChangeLimitSeconds = TableEncryptionService.Convert(this.SubEventChangeLimitSeconds, key); + _o.SubEventInstantClear = TableEncryptionService.Convert(this.SubEventInstantClear, key); + _o.CardShopProbWeightCount = TableEncryptionService.Convert(this.CardShopProbWeightCount, key); + _o.CardShopProbWeightRarity = TableEncryptionService.Convert(this.CardShopProbWeightRarity, key); + _o.MeetupScenarioReplayResource = TableEncryptionService.Convert(this.MeetupScenarioReplayResource, key); + _o.MeetupScenarioReplayTitleLocalize = TableEncryptionService.Convert(this.MeetupScenarioReplayTitleLocalize, key); + _o.SpecialOperactionCollectionGroupId = TableEncryptionService.Convert(this.SpecialOperactionCollectionGroupId, key); + _o.TreasureNormalVariationAmount = TableEncryptionService.Convert(this.TreasureNormalVariationAmount, key); + _o.TreasureLoopVariationAmount = TableEncryptionService.Convert(this.TreasureLoopVariationAmount, key); + _o.TreasureLimitVariationLoopCount = TableEncryptionService.Convert(this.TreasureLimitVariationLoopCount, key); + _o.TreasureLimitVariationClearLoopCount = TableEncryptionService.Convert(this.TreasureLimitVariationClearLoopCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstEventCommonExcelT _o) { + if (_o == null) return default(Offset); + var _MeetupScenarioReplayResource = _o.MeetupScenarioReplayResource == null ? default(StringOffset) : builder.CreateString(_o.MeetupScenarioReplayResource); + var _MeetupScenarioReplayTitleLocalize = _o.MeetupScenarioReplayTitleLocalize == null ? default(StringOffset) : builder.CreateString(_o.MeetupScenarioReplayTitleLocalize); + return CreateConstEventCommonExcel( + builder, + _o.EventContentHardStageCount, + _o.EventStrategyPlayTimeLimitInSeconds, + _o.SubEventChangeLimitSeconds, + _o.SubEventInstantClear, + _o.CardShopProbWeightCount, + _o.CardShopProbWeightRarity, + _MeetupScenarioReplayResource, + _MeetupScenarioReplayTitleLocalize, + _o.SpecialOperactionCollectionGroupId, + _o.TreasureNormalVariationAmount, + _o.TreasureLoopVariationAmount, + _o.TreasureLimitVariationLoopCount, + _o.TreasureLimitVariationClearLoopCount); + } +} + +public class ConstEventCommonExcelT +{ + public int EventContentHardStageCount { get; set; } + public long EventStrategyPlayTimeLimitInSeconds { get; set; } + public long SubEventChangeLimitSeconds { get; set; } + public bool SubEventInstantClear { get; set; } + public long CardShopProbWeightCount { get; set; } + public SCHALE.Common.FlatData.Rarity CardShopProbWeightRarity { get; set; } + public string MeetupScenarioReplayResource { get; set; } + public string MeetupScenarioReplayTitleLocalize { get; set; } + public long SpecialOperactionCollectionGroupId { get; set; } + public int TreasureNormalVariationAmount { get; set; } + public int TreasureLoopVariationAmount { get; set; } + public int TreasureLimitVariationLoopCount { get; set; } + public int TreasureLimitVariationClearLoopCount { get; set; } + + public ConstEventCommonExcelT() { + this.EventContentHardStageCount = 0; + this.EventStrategyPlayTimeLimitInSeconds = 0; + this.SubEventChangeLimitSeconds = 0; + this.SubEventInstantClear = false; + this.CardShopProbWeightCount = 0; + this.CardShopProbWeightRarity = SCHALE.Common.FlatData.Rarity.N; + this.MeetupScenarioReplayResource = null; + this.MeetupScenarioReplayTitleLocalize = null; + this.SpecialOperactionCollectionGroupId = 0; + this.TreasureNormalVariationAmount = 0; + this.TreasureLoopVariationAmount = 0; + this.TreasureLimitVariationLoopCount = 0; + this.TreasureLimitVariationClearLoopCount = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs b/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs index 857bc15..4ff5fa9 100644 --- a/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstEventCommonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstEventCommonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstEventCommonExcelTableT UnPack() { + var _o = new ConstEventCommonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstEventCommonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstEventCommonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstEventCommonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstEventCommonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstEventCommonExcelTable( + builder, + _DataList); + } +} + +public class ConstEventCommonExcelTableT +{ + public List DataList { get; set; } + + public ConstEventCommonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstFieldExcel.cs b/SCHALE.Common/FlatData/ConstFieldExcel.cs index 7cdcf7d..89b2d42 100644 --- a/SCHALE.Common/FlatData/ConstFieldExcel.cs +++ b/SCHALE.Common/FlatData/ConstFieldExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstFieldExcel : IFlatbufferObject @@ -106,6 +107,102 @@ public struct ConstFieldExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstFieldExcelT UnPack() { + var _o = new ConstFieldExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstFieldExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstField"); + _o.DialogSmoothTime = TableEncryptionService.Convert(this.DialogSmoothTime, key); + _o.TalkDialogDurationDefault = TableEncryptionService.Convert(this.TalkDialogDurationDefault, key); + _o.ThinkDialogDurationDefault = TableEncryptionService.Convert(this.ThinkDialogDurationDefault, key); + _o.IdleThinkDelayMin = TableEncryptionService.Convert(this.IdleThinkDelayMin, key); + _o.IdleThinkDelayMax = TableEncryptionService.Convert(this.IdleThinkDelayMax, key); + _o.ExclaimDurationDefault = TableEncryptionService.Convert(this.ExclaimDurationDefault, key); + _o.QuestionDurationDefault = TableEncryptionService.Convert(this.QuestionDurationDefault, key); + _o.UpsetDurationDefault = TableEncryptionService.Convert(this.UpsetDurationDefault, key); + _o.SurpriseDurationDefault = TableEncryptionService.Convert(this.SurpriseDurationDefault, key); + _o.BulbDurationDefault = TableEncryptionService.Convert(this.BulbDurationDefault, key); + _o.HeartDurationDefault = TableEncryptionService.Convert(this.HeartDurationDefault, key); + _o.SweatDurationDefault = TableEncryptionService.Convert(this.SweatDurationDefault, key); + _o.AngryDurationDefault = TableEncryptionService.Convert(this.AngryDurationDefault, key); + _o.MusicDurationDefault = TableEncryptionService.Convert(this.MusicDurationDefault, key); + _o.DotDurationDefault = TableEncryptionService.Convert(this.DotDurationDefault, key); + _o.MomotalkDurationDefault = TableEncryptionService.Convert(this.MomotalkDurationDefault, key); + _o.PhoneDurationDefault = TableEncryptionService.Convert(this.PhoneDurationDefault, key); + _o.KeywordDurationDefault = TableEncryptionService.Convert(this.KeywordDurationDefault, key); + _o.EvidenceDurationDefault = TableEncryptionService.Convert(this.EvidenceDurationDefault, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstFieldExcelT _o) { + if (_o == null) return default(Offset); + return CreateConstFieldExcel( + builder, + _o.DialogSmoothTime, + _o.TalkDialogDurationDefault, + _o.ThinkDialogDurationDefault, + _o.IdleThinkDelayMin, + _o.IdleThinkDelayMax, + _o.ExclaimDurationDefault, + _o.QuestionDurationDefault, + _o.UpsetDurationDefault, + _o.SurpriseDurationDefault, + _o.BulbDurationDefault, + _o.HeartDurationDefault, + _o.SweatDurationDefault, + _o.AngryDurationDefault, + _o.MusicDurationDefault, + _o.DotDurationDefault, + _o.MomotalkDurationDefault, + _o.PhoneDurationDefault, + _o.KeywordDurationDefault, + _o.EvidenceDurationDefault); + } +} + +public class ConstFieldExcelT +{ + public int DialogSmoothTime { get; set; } + public int TalkDialogDurationDefault { get; set; } + public int ThinkDialogDurationDefault { get; set; } + public int IdleThinkDelayMin { get; set; } + public int IdleThinkDelayMax { get; set; } + public int ExclaimDurationDefault { get; set; } + public int QuestionDurationDefault { get; set; } + public int UpsetDurationDefault { get; set; } + public int SurpriseDurationDefault { get; set; } + public int BulbDurationDefault { get; set; } + public int HeartDurationDefault { get; set; } + public int SweatDurationDefault { get; set; } + public int AngryDurationDefault { get; set; } + public int MusicDurationDefault { get; set; } + public int DotDurationDefault { get; set; } + public int MomotalkDurationDefault { get; set; } + public int PhoneDurationDefault { get; set; } + public int KeywordDurationDefault { get; set; } + public int EvidenceDurationDefault { get; set; } + + public ConstFieldExcelT() { + this.DialogSmoothTime = 0; + this.TalkDialogDurationDefault = 0; + this.ThinkDialogDurationDefault = 0; + this.IdleThinkDelayMin = 0; + this.IdleThinkDelayMax = 0; + this.ExclaimDurationDefault = 0; + this.QuestionDurationDefault = 0; + this.UpsetDurationDefault = 0; + this.SurpriseDurationDefault = 0; + this.BulbDurationDefault = 0; + this.HeartDurationDefault = 0; + this.SweatDurationDefault = 0; + this.AngryDurationDefault = 0; + this.MusicDurationDefault = 0; + this.DotDurationDefault = 0; + this.MomotalkDurationDefault = 0; + this.PhoneDurationDefault = 0; + this.KeywordDurationDefault = 0; + this.EvidenceDurationDefault = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstFieldExcelTable.cs b/SCHALE.Common/FlatData/ConstFieldExcelTable.cs index 040469a..b48a9ad 100644 --- a/SCHALE.Common/FlatData/ConstFieldExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstFieldExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstFieldExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstFieldExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstFieldExcelTableT UnPack() { + var _o = new ConstFieldExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstFieldExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstFieldExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstFieldExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstFieldExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstFieldExcelTable( + builder, + _DataList); + } +} + +public class ConstFieldExcelTableT +{ + public List DataList { get; set; } + + public ConstFieldExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs b/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs index c66ef08..166f6cd 100644 --- a/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs +++ b/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstMiniGameShootingExcel : IFlatbufferObject @@ -23,59 +24,146 @@ public struct ConstMiniGameShootingExcel : IFlatbufferObject public int NormalSectionCount { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long HardStageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int HardSectionCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long LeftPlayerCharacterId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RightPlayerCharacterId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long HiddenPlayerCharacterId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public float CameraSmoothTime { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public string SpawnEffectPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public long FreeStageId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int FreeSectionCount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long PlayerCharacterId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PlayerCharacterIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetSpawnEffectPathBytes() { return __p.__vector_as_span(20, 1); } + public Span GetPlayerCharacterIdBytes() { return __p.__vector_as_span(16, 8); } #else - public ArraySegment? GetSpawnEffectPathBytes() { return __p.__vector_as_arraysegment(20); } + public ArraySegment? GetPlayerCharacterIdBytes() { return __p.__vector_as_arraysegment(16); } #endif - public byte[] GetSpawnEffectPathArray() { return __p.__vector_as_array(20); } - public float WaitTimeAfterSpawn { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long[] GetPlayerCharacterIdArray() { return __p.__vector_as_array(16); } + public long HiddenPlayerCharacterId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float CameraSmoothTime { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string SpawnEffectPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpawnEffectPathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetSpawnEffectPathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetSpawnEffectPathArray() { return __p.__vector_as_array(22); } + public float WaitTimeAfterSpawn { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public static Offset CreateConstMiniGameShootingExcel(FlatBufferBuilder builder, long NormalStageId = 0, int NormalSectionCount = 0, long HardStageId = 0, int HardSectionCount = 0, - long LeftPlayerCharacterId = 0, - long RightPlayerCharacterId = 0, + long FreeStageId = 0, + int FreeSectionCount = 0, + VectorOffset PlayerCharacterIdOffset = default(VectorOffset), long HiddenPlayerCharacterId = 0, float CameraSmoothTime = 0.0f, StringOffset SpawnEffectPathOffset = default(StringOffset), float WaitTimeAfterSpawn = 0.0f) { - builder.StartTable(10); + builder.StartTable(11); ConstMiniGameShootingExcel.AddHiddenPlayerCharacterId(builder, HiddenPlayerCharacterId); - ConstMiniGameShootingExcel.AddRightPlayerCharacterId(builder, RightPlayerCharacterId); - ConstMiniGameShootingExcel.AddLeftPlayerCharacterId(builder, LeftPlayerCharacterId); + ConstMiniGameShootingExcel.AddFreeStageId(builder, FreeStageId); ConstMiniGameShootingExcel.AddHardStageId(builder, HardStageId); ConstMiniGameShootingExcel.AddNormalStageId(builder, NormalStageId); ConstMiniGameShootingExcel.AddWaitTimeAfterSpawn(builder, WaitTimeAfterSpawn); ConstMiniGameShootingExcel.AddSpawnEffectPath(builder, SpawnEffectPathOffset); ConstMiniGameShootingExcel.AddCameraSmoothTime(builder, CameraSmoothTime); + ConstMiniGameShootingExcel.AddPlayerCharacterId(builder, PlayerCharacterIdOffset); + ConstMiniGameShootingExcel.AddFreeSectionCount(builder, FreeSectionCount); ConstMiniGameShootingExcel.AddHardSectionCount(builder, HardSectionCount); ConstMiniGameShootingExcel.AddNormalSectionCount(builder, NormalSectionCount); return ConstMiniGameShootingExcel.EndConstMiniGameShootingExcel(builder); } - public static void StartConstMiniGameShootingExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void StartConstMiniGameShootingExcel(FlatBufferBuilder builder) { builder.StartTable(11); } public static void AddNormalStageId(FlatBufferBuilder builder, long normalStageId) { builder.AddLong(0, normalStageId, 0); } public static void AddNormalSectionCount(FlatBufferBuilder builder, int normalSectionCount) { builder.AddInt(1, normalSectionCount, 0); } public static void AddHardStageId(FlatBufferBuilder builder, long hardStageId) { builder.AddLong(2, hardStageId, 0); } public static void AddHardSectionCount(FlatBufferBuilder builder, int hardSectionCount) { builder.AddInt(3, hardSectionCount, 0); } - public static void AddLeftPlayerCharacterId(FlatBufferBuilder builder, long leftPlayerCharacterId) { builder.AddLong(4, leftPlayerCharacterId, 0); } - public static void AddRightPlayerCharacterId(FlatBufferBuilder builder, long rightPlayerCharacterId) { builder.AddLong(5, rightPlayerCharacterId, 0); } - public static void AddHiddenPlayerCharacterId(FlatBufferBuilder builder, long hiddenPlayerCharacterId) { builder.AddLong(6, hiddenPlayerCharacterId, 0); } - public static void AddCameraSmoothTime(FlatBufferBuilder builder, float cameraSmoothTime) { builder.AddFloat(7, cameraSmoothTime, 0.0f); } - public static void AddSpawnEffectPath(FlatBufferBuilder builder, StringOffset spawnEffectPathOffset) { builder.AddOffset(8, spawnEffectPathOffset.Value, 0); } - public static void AddWaitTimeAfterSpawn(FlatBufferBuilder builder, float waitTimeAfterSpawn) { builder.AddFloat(9, waitTimeAfterSpawn, 0.0f); } + public static void AddFreeStageId(FlatBufferBuilder builder, long freeStageId) { builder.AddLong(4, freeStageId, 0); } + public static void AddFreeSectionCount(FlatBufferBuilder builder, int freeSectionCount) { builder.AddInt(5, freeSectionCount, 0); } + public static void AddPlayerCharacterId(FlatBufferBuilder builder, VectorOffset playerCharacterIdOffset) { builder.AddOffset(6, playerCharacterIdOffset.Value, 0); } + public static VectorOffset CreatePlayerCharacterIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreatePlayerCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePlayerCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePlayerCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPlayerCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddHiddenPlayerCharacterId(FlatBufferBuilder builder, long hiddenPlayerCharacterId) { builder.AddLong(7, hiddenPlayerCharacterId, 0); } + public static void AddCameraSmoothTime(FlatBufferBuilder builder, float cameraSmoothTime) { builder.AddFloat(8, cameraSmoothTime, 0.0f); } + public static void AddSpawnEffectPath(FlatBufferBuilder builder, StringOffset spawnEffectPathOffset) { builder.AddOffset(9, spawnEffectPathOffset.Value, 0); } + public static void AddWaitTimeAfterSpawn(FlatBufferBuilder builder, float waitTimeAfterSpawn) { builder.AddFloat(10, waitTimeAfterSpawn, 0.0f); } public static Offset EndConstMiniGameShootingExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public ConstMiniGameShootingExcelT UnPack() { + var _o = new ConstMiniGameShootingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstMiniGameShootingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstMiniGameShooting"); + _o.NormalStageId = TableEncryptionService.Convert(this.NormalStageId, key); + _o.NormalSectionCount = TableEncryptionService.Convert(this.NormalSectionCount, key); + _o.HardStageId = TableEncryptionService.Convert(this.HardStageId, key); + _o.HardSectionCount = TableEncryptionService.Convert(this.HardSectionCount, key); + _o.FreeStageId = TableEncryptionService.Convert(this.FreeStageId, key); + _o.FreeSectionCount = TableEncryptionService.Convert(this.FreeSectionCount, key); + _o.PlayerCharacterId = new List(); + for (var _j = 0; _j < this.PlayerCharacterIdLength; ++_j) {_o.PlayerCharacterId.Add(TableEncryptionService.Convert(this.PlayerCharacterId(_j), key));} + _o.HiddenPlayerCharacterId = TableEncryptionService.Convert(this.HiddenPlayerCharacterId, key); + _o.CameraSmoothTime = TableEncryptionService.Convert(this.CameraSmoothTime, key); + _o.SpawnEffectPath = TableEncryptionService.Convert(this.SpawnEffectPath, key); + _o.WaitTimeAfterSpawn = TableEncryptionService.Convert(this.WaitTimeAfterSpawn, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstMiniGameShootingExcelT _o) { + if (_o == null) return default(Offset); + var _PlayerCharacterId = default(VectorOffset); + if (_o.PlayerCharacterId != null) { + var __PlayerCharacterId = _o.PlayerCharacterId.ToArray(); + _PlayerCharacterId = CreatePlayerCharacterIdVector(builder, __PlayerCharacterId); + } + var _SpawnEffectPath = _o.SpawnEffectPath == null ? default(StringOffset) : builder.CreateString(_o.SpawnEffectPath); + return CreateConstMiniGameShootingExcel( + builder, + _o.NormalStageId, + _o.NormalSectionCount, + _o.HardStageId, + _o.HardSectionCount, + _o.FreeStageId, + _o.FreeSectionCount, + _PlayerCharacterId, + _o.HiddenPlayerCharacterId, + _o.CameraSmoothTime, + _SpawnEffectPath, + _o.WaitTimeAfterSpawn); + } +} + +public class ConstMiniGameShootingExcelT +{ + public long NormalStageId { get; set; } + public int NormalSectionCount { get; set; } + public long HardStageId { get; set; } + public int HardSectionCount { get; set; } + public long FreeStageId { get; set; } + public int FreeSectionCount { get; set; } + public List PlayerCharacterId { get; set; } + public long HiddenPlayerCharacterId { get; set; } + public float CameraSmoothTime { get; set; } + public string SpawnEffectPath { get; set; } + public float WaitTimeAfterSpawn { get; set; } + + public ConstMiniGameShootingExcelT() { + this.NormalStageId = 0; + this.NormalSectionCount = 0; + this.HardStageId = 0; + this.HardSectionCount = 0; + this.FreeStageId = 0; + this.FreeSectionCount = 0; + this.PlayerCharacterId = null; + this.HiddenPlayerCharacterId = 0; + this.CameraSmoothTime = 0.0f; + this.SpawnEffectPath = null; + this.WaitTimeAfterSpawn = 0.0f; + } } @@ -88,12 +176,13 @@ static public class ConstMiniGameShootingExcelVerify && verifier.VerifyField(tablePos, 6 /*NormalSectionCount*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 8 /*HardStageId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 10 /*HardSectionCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 12 /*LeftPlayerCharacterId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 14 /*RightPlayerCharacterId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 16 /*HiddenPlayerCharacterId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 18 /*CameraSmoothTime*/, 4 /*float*/, 4, false) - && verifier.VerifyString(tablePos, 20 /*SpawnEffectPath*/, false) - && verifier.VerifyField(tablePos, 22 /*WaitTimeAfterSpawn*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*FreeStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*FreeSectionCount*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*PlayerCharacterId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*HiddenPlayerCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*CameraSmoothTime*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 22 /*SpawnEffectPath*/, false) + && verifier.VerifyField(tablePos, 24 /*WaitTimeAfterSpawn*/, 4 /*float*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs b/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs index 6e12c33..52dc4c6 100644 --- a/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstMiniGameShootingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstMiniGameShootingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstMiniGameShootingExcelTableT UnPack() { + var _o = new ConstMiniGameShootingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstMiniGameShootingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstMiniGameShootingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstMiniGameShootingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstMiniGameShootingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstMiniGameShootingExcelTable( + builder, + _DataList); + } +} + +public class ConstMiniGameShootingExcelTableT +{ + public List DataList { get; set; } + + public ConstMiniGameShootingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs b/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs index 8ac629e..230aecf 100644 --- a/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs +++ b/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstMinigameTBGExcel : IFlatbufferObject @@ -150,6 +151,116 @@ public struct ConstMinigameTBGExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstMinigameTBGExcelT UnPack() { + var _o = new ConstMinigameTBGExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstMinigameTBGExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstMinigameTBG"); + _o.ConquestMapBoundaryOffsetLeft = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetLeft, key); + _o.ConquestMapBoundaryOffsetRight = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetRight, key); + _o.ConquestMapBoundaryOffsetTop = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetTop, key); + _o.ConquestMapBoundaryOffsetBottom = TableEncryptionService.Convert(this.ConquestMapBoundaryOffsetBottom, key); + _o.ConquestMapCenterOffsetX = TableEncryptionService.Convert(this.ConquestMapCenterOffsetX, key); + _o.ConquestMapCenterOffsetY = TableEncryptionService.Convert(this.ConquestMapCenterOffsetY, key); + _o.CameraAngle = TableEncryptionService.Convert(this.CameraAngle, key); + _o.CameraZoomMax = TableEncryptionService.Convert(this.CameraZoomMax, key); + _o.CameraZoomMin = TableEncryptionService.Convert(this.CameraZoomMin, key); + _o.CameraZoomDefault = TableEncryptionService.Convert(this.CameraZoomDefault, key); + _o.ThemaLoadingProgressTime = TableEncryptionService.Convert(this.ThemaLoadingProgressTime, key); + _o.MapAllyRotation = TableEncryptionService.Convert(this.MapAllyRotation, key); + _o.AniAllyBattleAttack = TableEncryptionService.Convert(this.AniAllyBattleAttack, key); + _o.EffectAllyBattleAttack = TableEncryptionService.Convert(this.EffectAllyBattleAttack, key); + _o.EffectAllyBattleDamage = TableEncryptionService.Convert(this.EffectAllyBattleDamage, key); + _o.AniEnemyBattleAttack = TableEncryptionService.Convert(this.AniEnemyBattleAttack, key); + _o.EffectEnemyBattleAttack = TableEncryptionService.Convert(this.EffectEnemyBattleAttack, key); + _o.EffectEnemyBattleDamage = TableEncryptionService.Convert(this.EffectEnemyBattleDamage, key); + _o.EncounterAllyRotation = TableEncryptionService.Convert(this.EncounterAllyRotation, key); + _o.EncounterEnemyRotation = TableEncryptionService.Convert(this.EncounterEnemyRotation, key); + _o.EncounterRewardReceiveIndex = TableEncryptionService.Convert(this.EncounterRewardReceiveIndex, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstMinigameTBGExcelT _o) { + if (_o == null) return default(Offset); + var _AniAllyBattleAttack = _o.AniAllyBattleAttack == null ? default(StringOffset) : builder.CreateString(_o.AniAllyBattleAttack); + var _EffectAllyBattleAttack = _o.EffectAllyBattleAttack == null ? default(StringOffset) : builder.CreateString(_o.EffectAllyBattleAttack); + var _EffectAllyBattleDamage = _o.EffectAllyBattleDamage == null ? default(StringOffset) : builder.CreateString(_o.EffectAllyBattleDamage); + var _AniEnemyBattleAttack = _o.AniEnemyBattleAttack == null ? default(StringOffset) : builder.CreateString(_o.AniEnemyBattleAttack); + var _EffectEnemyBattleAttack = _o.EffectEnemyBattleAttack == null ? default(StringOffset) : builder.CreateString(_o.EffectEnemyBattleAttack); + var _EffectEnemyBattleDamage = _o.EffectEnemyBattleDamage == null ? default(StringOffset) : builder.CreateString(_o.EffectEnemyBattleDamage); + return CreateConstMinigameTBGExcel( + builder, + _o.ConquestMapBoundaryOffsetLeft, + _o.ConquestMapBoundaryOffsetRight, + _o.ConquestMapBoundaryOffsetTop, + _o.ConquestMapBoundaryOffsetBottom, + _o.ConquestMapCenterOffsetX, + _o.ConquestMapCenterOffsetY, + _o.CameraAngle, + _o.CameraZoomMax, + _o.CameraZoomMin, + _o.CameraZoomDefault, + _o.ThemaLoadingProgressTime, + _o.MapAllyRotation, + _AniAllyBattleAttack, + _EffectAllyBattleAttack, + _EffectAllyBattleDamage, + _AniEnemyBattleAttack, + _EffectEnemyBattleAttack, + _EffectEnemyBattleDamage, + _o.EncounterAllyRotation, + _o.EncounterEnemyRotation, + _o.EncounterRewardReceiveIndex); + } +} + +public class ConstMinigameTBGExcelT +{ + public float ConquestMapBoundaryOffsetLeft { get; set; } + public float ConquestMapBoundaryOffsetRight { get; set; } + public float ConquestMapBoundaryOffsetTop { get; set; } + public float ConquestMapBoundaryOffsetBottom { get; set; } + public float ConquestMapCenterOffsetX { get; set; } + public float ConquestMapCenterOffsetY { get; set; } + public float CameraAngle { get; set; } + public float CameraZoomMax { get; set; } + public float CameraZoomMin { get; set; } + public float CameraZoomDefault { get; set; } + public float ThemaLoadingProgressTime { get; set; } + public float MapAllyRotation { get; set; } + public string AniAllyBattleAttack { get; set; } + public string EffectAllyBattleAttack { get; set; } + public string EffectAllyBattleDamage { get; set; } + public string AniEnemyBattleAttack { get; set; } + public string EffectEnemyBattleAttack { get; set; } + public string EffectEnemyBattleDamage { get; set; } + public float EncounterAllyRotation { get; set; } + public float EncounterEnemyRotation { get; set; } + public int EncounterRewardReceiveIndex { get; set; } + + public ConstMinigameTBGExcelT() { + this.ConquestMapBoundaryOffsetLeft = 0.0f; + this.ConquestMapBoundaryOffsetRight = 0.0f; + this.ConquestMapBoundaryOffsetTop = 0.0f; + this.ConquestMapBoundaryOffsetBottom = 0.0f; + this.ConquestMapCenterOffsetX = 0.0f; + this.ConquestMapCenterOffsetY = 0.0f; + this.CameraAngle = 0.0f; + this.CameraZoomMax = 0.0f; + this.CameraZoomMin = 0.0f; + this.CameraZoomDefault = 0.0f; + this.ThemaLoadingProgressTime = 0.0f; + this.MapAllyRotation = 0.0f; + this.AniAllyBattleAttack = null; + this.EffectAllyBattleAttack = null; + this.EffectAllyBattleDamage = null; + this.AniEnemyBattleAttack = null; + this.EffectEnemyBattleAttack = null; + this.EffectEnemyBattleDamage = null; + this.EncounterAllyRotation = 0.0f; + this.EncounterEnemyRotation = 0.0f; + this.EncounterRewardReceiveIndex = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs b/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs index 605e034..f5246ac 100644 --- a/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstMinigameTBGExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstMinigameTBGExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstMinigameTBGExcelTableT UnPack() { + var _o = new ConstMinigameTBGExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstMinigameTBGExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstMinigameTBGExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstMinigameTBGExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstMinigameTBGExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstMinigameTBGExcelTable( + builder, + _DataList); + } +} + +public class ConstMinigameTBGExcelTableT +{ + public List DataList { get; set; } + + public ConstMinigameTBGExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs b/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs index 7ce1b1b..0dc37c1 100644 --- a/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs +++ b/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstNewbieContentExcel : IFlatbufferObject @@ -66,6 +67,52 @@ public struct ConstNewbieContentExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstNewbieContentExcelT UnPack() { + var _o = new ConstNewbieContentExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstNewbieContentExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstNewbieContent"); + _o.NewbieGachaReleaseDate = TableEncryptionService.Convert(this.NewbieGachaReleaseDate, key); + _o.NewbieGachaCheckDays = TableEncryptionService.Convert(this.NewbieGachaCheckDays, key); + _o.NewbieGachaTokenGraceTime = TableEncryptionService.Convert(this.NewbieGachaTokenGraceTime, key); + _o.NewbieAttendanceReleaseDate = TableEncryptionService.Convert(this.NewbieAttendanceReleaseDate, key); + _o.NewbieAttendanceStartableEndDay = TableEncryptionService.Convert(this.NewbieAttendanceStartableEndDay, key); + _o.NewbieAttendanceEndDay = TableEncryptionService.Convert(this.NewbieAttendanceEndDay, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstNewbieContentExcelT _o) { + if (_o == null) return default(Offset); + var _NewbieGachaReleaseDate = _o.NewbieGachaReleaseDate == null ? default(StringOffset) : builder.CreateString(_o.NewbieGachaReleaseDate); + var _NewbieAttendanceReleaseDate = _o.NewbieAttendanceReleaseDate == null ? default(StringOffset) : builder.CreateString(_o.NewbieAttendanceReleaseDate); + return CreateConstNewbieContentExcel( + builder, + _NewbieGachaReleaseDate, + _o.NewbieGachaCheckDays, + _o.NewbieGachaTokenGraceTime, + _NewbieAttendanceReleaseDate, + _o.NewbieAttendanceStartableEndDay, + _o.NewbieAttendanceEndDay); + } +} + +public class ConstNewbieContentExcelT +{ + public string NewbieGachaReleaseDate { get; set; } + public int NewbieGachaCheckDays { get; set; } + public int NewbieGachaTokenGraceTime { get; set; } + public string NewbieAttendanceReleaseDate { get; set; } + public int NewbieAttendanceStartableEndDay { get; set; } + public int NewbieAttendanceEndDay { get; set; } + + public ConstNewbieContentExcelT() { + this.NewbieGachaReleaseDate = null; + this.NewbieGachaCheckDays = 0; + this.NewbieGachaTokenGraceTime = 0; + this.NewbieAttendanceReleaseDate = null; + this.NewbieAttendanceStartableEndDay = 0; + this.NewbieAttendanceEndDay = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs b/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs index 57c03e8..9fd4e09 100644 --- a/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstNewbieContentExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstNewbieContentExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstNewbieContentExcelTableT UnPack() { + var _o = new ConstNewbieContentExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstNewbieContentExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstNewbieContentExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstNewbieContentExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstNewbieContentExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstNewbieContentExcelTable( + builder, + _DataList); + } +} + +public class ConstNewbieContentExcelTableT +{ + public List DataList { get; set; } + + public ConstNewbieContentExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ConstStrategyExcel.cs b/SCHALE.Common/FlatData/ConstStrategyExcel.cs index a7e25e2..79824bd 100644 --- a/SCHALE.Common/FlatData/ConstStrategyExcel.cs +++ b/SCHALE.Common/FlatData/ConstStrategyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstStrategyExcel : IFlatbufferObject @@ -126,6 +127,116 @@ public struct ConstStrategyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstStrategyExcelT UnPack() { + var _o = new ConstStrategyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstStrategyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstStrategy"); + _o.HexaMapBoundaryOffset = TableEncryptionService.Convert(this.HexaMapBoundaryOffset, key); + _o.HexaMapStartCameraOffset = TableEncryptionService.Convert(this.HexaMapStartCameraOffset, key); + _o.CameraZoomMax = TableEncryptionService.Convert(this.CameraZoomMax, key); + _o.CameraZoomMin = TableEncryptionService.Convert(this.CameraZoomMin, key); + _o.CameraZoomDefault = TableEncryptionService.Convert(this.CameraZoomDefault, key); + _o.HealCostType = TableEncryptionService.Convert(this.HealCostType, key); + _o.HealCostAmount = new List(); + for (var _j = 0; _j < this.HealCostAmountLength; ++_j) {_o.HealCostAmount.Add(TableEncryptionService.Convert(this.HealCostAmount(_j), key));} + _o.CanHealHpRate = TableEncryptionService.Convert(this.CanHealHpRate, key); + _o.PlayTimeLimitInSeconds = TableEncryptionService.Convert(this.PlayTimeLimitInSeconds, key); + _o.AdventureEchelonCount = TableEncryptionService.Convert(this.AdventureEchelonCount, key); + _o.RaidEchelonCount = TableEncryptionService.Convert(this.RaidEchelonCount, key); + _o.DefaultEchelonCount = TableEncryptionService.Convert(this.DefaultEchelonCount, key); + _o.EventContentEchelonCount = TableEncryptionService.Convert(this.EventContentEchelonCount, key); + _o.TimeAttackDungeonEchelonCount = TableEncryptionService.Convert(this.TimeAttackDungeonEchelonCount, key); + _o.WorldRaidEchelonCount = TableEncryptionService.Convert(this.WorldRaidEchelonCount, key); + _o.TacticSkipClearTimeSeconds = TableEncryptionService.Convert(this.TacticSkipClearTimeSeconds, key); + _o.TacticSkipFramePerSecond = TableEncryptionService.Convert(this.TacticSkipFramePerSecond, key); + _o.ConquestEchelonCount = TableEncryptionService.Convert(this.ConquestEchelonCount, key); + _o.StoryEchelonCount = TableEncryptionService.Convert(this.StoryEchelonCount, key); + _o.MultiSweepPresetCount = TableEncryptionService.Convert(this.MultiSweepPresetCount, key); + _o.MultiSweepPresetNameMaxLength = TableEncryptionService.Convert(this.MultiSweepPresetNameMaxLength, key); + } + public static Offset Pack(FlatBufferBuilder builder, ConstStrategyExcelT _o) { + if (_o == null) return default(Offset); + var _HealCostAmount = default(VectorOffset); + if (_o.HealCostAmount != null) { + var __HealCostAmount = _o.HealCostAmount.ToArray(); + _HealCostAmount = CreateHealCostAmountVector(builder, __HealCostAmount); + } + return CreateConstStrategyExcel( + builder, + _o.HexaMapBoundaryOffset, + _o.HexaMapStartCameraOffset, + _o.CameraZoomMax, + _o.CameraZoomMin, + _o.CameraZoomDefault, + _o.HealCostType, + _HealCostAmount, + _o.CanHealHpRate, + _o.PlayTimeLimitInSeconds, + _o.AdventureEchelonCount, + _o.RaidEchelonCount, + _o.DefaultEchelonCount, + _o.EventContentEchelonCount, + _o.TimeAttackDungeonEchelonCount, + _o.WorldRaidEchelonCount, + _o.TacticSkipClearTimeSeconds, + _o.TacticSkipFramePerSecond, + _o.ConquestEchelonCount, + _o.StoryEchelonCount, + _o.MultiSweepPresetCount, + _o.MultiSweepPresetNameMaxLength); + } +} + +public class ConstStrategyExcelT +{ + public float HexaMapBoundaryOffset { get; set; } + public float HexaMapStartCameraOffset { get; set; } + public float CameraZoomMax { get; set; } + public float CameraZoomMin { get; set; } + public float CameraZoomDefault { get; set; } + public SCHALE.Common.FlatData.CurrencyTypes HealCostType { get; set; } + public List HealCostAmount { get; set; } + public int CanHealHpRate { get; set; } + public long PlayTimeLimitInSeconds { get; set; } + public int AdventureEchelonCount { get; set; } + public int RaidEchelonCount { get; set; } + public int DefaultEchelonCount { get; set; } + public int EventContentEchelonCount { get; set; } + public int TimeAttackDungeonEchelonCount { get; set; } + public int WorldRaidEchelonCount { get; set; } + public int TacticSkipClearTimeSeconds { get; set; } + public int TacticSkipFramePerSecond { get; set; } + public int ConquestEchelonCount { get; set; } + public int StoryEchelonCount { get; set; } + public int MultiSweepPresetCount { get; set; } + public int MultiSweepPresetNameMaxLength { get; set; } + + public ConstStrategyExcelT() { + this.HexaMapBoundaryOffset = 0.0f; + this.HexaMapStartCameraOffset = 0.0f; + this.CameraZoomMax = 0.0f; + this.CameraZoomMin = 0.0f; + this.CameraZoomDefault = 0.0f; + this.HealCostType = SCHALE.Common.FlatData.CurrencyTypes.Invalid; + this.HealCostAmount = null; + this.CanHealHpRate = 0; + this.PlayTimeLimitInSeconds = 0; + this.AdventureEchelonCount = 0; + this.RaidEchelonCount = 0; + this.DefaultEchelonCount = 0; + this.EventContentEchelonCount = 0; + this.TimeAttackDungeonEchelonCount = 0; + this.WorldRaidEchelonCount = 0; + this.TacticSkipClearTimeSeconds = 0; + this.TacticSkipFramePerSecond = 0; + this.ConquestEchelonCount = 0; + this.StoryEchelonCount = 0; + this.MultiSweepPresetCount = 0; + this.MultiSweepPresetNameMaxLength = 0; + } } diff --git a/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs b/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs index b5bd861..53becb4 100644 --- a/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs +++ b/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ConstStrategyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ConstStrategyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ConstStrategyExcelTableT UnPack() { + var _o = new ConstStrategyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ConstStrategyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ConstStrategyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ConstStrategyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ConstStrategyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateConstStrategyExcelTable( + builder, + _DataList); + } +} + +public class ConstStrategyExcelTableT +{ + public List DataList { get; set; } + + public ConstStrategyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs index 69b0e37..5f9bbc5 100644 --- a/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs +++ b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentEnterCostReduceExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct ContentEnterCostReduceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentEnterCostReduceExcelT UnPack() { + var _o = new ContentEnterCostReduceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentEnterCostReduceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentEnterCostReduce"); + _o.EnterCostReduceGroupId = TableEncryptionService.Convert(this.EnterCostReduceGroupId, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.StageId = TableEncryptionService.Convert(this.StageId, key); + _o.ReduceEnterCostType = TableEncryptionService.Convert(this.ReduceEnterCostType, key); + _o.ReduceEnterCostId = TableEncryptionService.Convert(this.ReduceEnterCostId, key); + _o.ReduceAmount = TableEncryptionService.Convert(this.ReduceAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ContentEnterCostReduceExcelT _o) { + if (_o == null) return default(Offset); + return CreateContentEnterCostReduceExcel( + builder, + _o.EnterCostReduceGroupId, + _o.ContentType, + _o.StageId, + _o.ReduceEnterCostType, + _o.ReduceEnterCostId, + _o.ReduceAmount); + } +} + +public class ContentEnterCostReduceExcelT +{ + public long EnterCostReduceGroupId { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long StageId { get; set; } + public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get; set; } + public long ReduceEnterCostId { get; set; } + public long ReduceAmount { get; set; } + + public ContentEnterCostReduceExcelT() { + this.EnterCostReduceGroupId = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.StageId = 0; + this.ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ReduceEnterCostId = 0; + this.ReduceAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs index 7574e41..3cd237f 100644 --- a/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs +++ b/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentEnterCostReduceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ContentEnterCostReduceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentEnterCostReduceExcelTableT UnPack() { + var _o = new ContentEnterCostReduceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentEnterCostReduceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentEnterCostReduceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ContentEnterCostReduceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ContentEnterCostReduceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateContentEnterCostReduceExcelTable( + builder, + _DataList); + } +} + +public class ContentEnterCostReduceExcelTableT +{ + public List DataList { get; set; } + + public ContentEnterCostReduceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs index 95c389e..c981e28 100644 --- a/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs +++ b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentSpoilerPopupExcel : IFlatbufferObject @@ -62,6 +63,48 @@ public struct ContentSpoilerPopupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentSpoilerPopupExcelT UnPack() { + var _o = new ContentSpoilerPopupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentSpoilerPopupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentSpoilerPopup"); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.SpoilerPopupTitle = TableEncryptionService.Convert(this.SpoilerPopupTitle, key); + _o.SpoilerPopupDescription = TableEncryptionService.Convert(this.SpoilerPopupDescription, key); + _o.IsWarningPopUp = TableEncryptionService.Convert(this.IsWarningPopUp, key); + _o.ConditionScenarioModeId = TableEncryptionService.Convert(this.ConditionScenarioModeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ContentSpoilerPopupExcelT _o) { + if (_o == null) return default(Offset); + var _SpoilerPopupTitle = _o.SpoilerPopupTitle == null ? default(StringOffset) : builder.CreateString(_o.SpoilerPopupTitle); + var _SpoilerPopupDescription = _o.SpoilerPopupDescription == null ? default(StringOffset) : builder.CreateString(_o.SpoilerPopupDescription); + return CreateContentSpoilerPopupExcel( + builder, + _o.ContentType, + _SpoilerPopupTitle, + _SpoilerPopupDescription, + _o.IsWarningPopUp, + _o.ConditionScenarioModeId); + } +} + +public class ContentSpoilerPopupExcelT +{ + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public string SpoilerPopupTitle { get; set; } + public string SpoilerPopupDescription { get; set; } + public bool IsWarningPopUp { get; set; } + public long ConditionScenarioModeId { get; set; } + + public ContentSpoilerPopupExcelT() { + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.SpoilerPopupTitle = null; + this.SpoilerPopupDescription = null; + this.IsWarningPopUp = false; + this.ConditionScenarioModeId = 0; + } } diff --git a/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs b/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs index 510e0a7..1e581f7 100644 --- a/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs +++ b/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentSpoilerPopupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ContentSpoilerPopupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentSpoilerPopupExcelTableT UnPack() { + var _o = new ContentSpoilerPopupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentSpoilerPopupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentSpoilerPopupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ContentSpoilerPopupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ContentSpoilerPopupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateContentSpoilerPopupExcelTable( + builder, + _DataList); + } +} + +public class ContentSpoilerPopupExcelTableT +{ + public List DataList { get; set; } + + public ContentSpoilerPopupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ContentsFeverExcel.cs b/SCHALE.Common/FlatData/ContentsFeverExcel.cs index 2f4cddc..2b7d456 100644 --- a/SCHALE.Common/FlatData/ContentsFeverExcel.cs +++ b/SCHALE.Common/FlatData/ContentsFeverExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentsFeverExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct ContentsFeverExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentsFeverExcelT UnPack() { + var _o = new ContentsFeverExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentsFeverExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentsFever"); + _o.ConditionContent = TableEncryptionService.Convert(this.ConditionContent, key); + _o.SkillFeverCheckCondition = TableEncryptionService.Convert(this.SkillFeverCheckCondition, key); + _o.SkillCostFever = TableEncryptionService.Convert(this.SkillCostFever, key); + _o.FeverStartTime = TableEncryptionService.Convert(this.FeverStartTime, key); + _o.FeverDurationTime = TableEncryptionService.Convert(this.FeverDurationTime, key); + } + public static Offset Pack(FlatBufferBuilder builder, ContentsFeverExcelT _o) { + if (_o == null) return default(Offset); + return CreateContentsFeverExcel( + builder, + _o.ConditionContent, + _o.SkillFeverCheckCondition, + _o.SkillCostFever, + _o.FeverStartTime, + _o.FeverDurationTime); + } +} + +public class ContentsFeverExcelT +{ + public SCHALE.Common.FlatData.FeverBattleType ConditionContent { get; set; } + public SCHALE.Common.FlatData.SkillPriorityCheckTarget SkillFeverCheckCondition { get; set; } + public long SkillCostFever { get; set; } + public long FeverStartTime { get; set; } + public long FeverDurationTime { get; set; } + + public ContentsFeverExcelT() { + this.ConditionContent = SCHALE.Common.FlatData.FeverBattleType.Campaign; + this.SkillFeverCheckCondition = SCHALE.Common.FlatData.SkillPriorityCheckTarget.Ally; + this.SkillCostFever = 0; + this.FeverStartTime = 0; + this.FeverDurationTime = 0; + } } diff --git a/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs b/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs index fb519eb..961950f 100644 --- a/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs +++ b/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentsFeverExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ContentsFeverExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentsFeverExcelTableT UnPack() { + var _o = new ContentsFeverExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentsFeverExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentsFeverExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ContentsFeverExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ContentsFeverExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateContentsFeverExcelTable( + builder, + _DataList); + } +} + +public class ContentsFeverExcelTableT +{ + public List DataList { get; set; } + + public ContentsFeverExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ContentsScenarioExcel.cs b/SCHALE.Common/FlatData/ContentsScenarioExcel.cs index f3359f1..a89647d 100644 --- a/SCHALE.Common/FlatData/ContentsScenarioExcel.cs +++ b/SCHALE.Common/FlatData/ContentsScenarioExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentsScenarioExcel : IFlatbufferObject @@ -62,6 +63,52 @@ public struct ContentsScenarioExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ContentsScenarioExcelT UnPack() { + var _o = new ContentsScenarioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ContentsScenarioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ContentsScenario"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeId = TableEncryptionService.Convert(this.LocalizeId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.ScenarioContentType = TableEncryptionService.Convert(this.ScenarioContentType, key); + _o.ScenarioGroupId = new List(); + for (var _j = 0; _j < this.ScenarioGroupIdLength; ++_j) {_o.ScenarioGroupId.Add(TableEncryptionService.Convert(this.ScenarioGroupId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ContentsScenarioExcelT _o) { + if (_o == null) return default(Offset); + var _ScenarioGroupId = default(VectorOffset); + if (_o.ScenarioGroupId != null) { + var __ScenarioGroupId = _o.ScenarioGroupId.ToArray(); + _ScenarioGroupId = CreateScenarioGroupIdVector(builder, __ScenarioGroupId); + } + return CreateContentsScenarioExcel( + builder, + _o.Id, + _o.LocalizeId, + _o.DisplayOrder, + _o.ScenarioContentType, + _ScenarioGroupId); + } +} + +public class ContentsScenarioExcelT +{ + public uint Id { get; set; } + public uint LocalizeId { get; set; } + public int DisplayOrder { get; set; } + public SCHALE.Common.FlatData.ScenarioContentType ScenarioContentType { get; set; } + public List ScenarioGroupId { get; set; } + + public ContentsScenarioExcelT() { + this.Id = 0; + this.LocalizeId = 0; + this.DisplayOrder = 0; + this.ScenarioContentType = SCHALE.Common.FlatData.ScenarioContentType.Prologue; + this.ScenarioGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs b/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs deleted file mode 100644 index 75e2b88..0000000 --- a/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct ContentsScenarioExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ContentsScenarioExcelTable GetRootAsContentsScenarioExcelTable(ByteBuffer _bb) { return GetRootAsContentsScenarioExcelTable(_bb, new ContentsScenarioExcelTable()); } - public static ContentsScenarioExcelTable GetRootAsContentsScenarioExcelTable(ByteBuffer _bb, ContentsScenarioExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ContentsScenarioExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ContentsScenarioExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentsScenarioExcel?)(new SCHALE.Common.FlatData.ContentsScenarioExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateContentsScenarioExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ContentsScenarioExcelTable.AddDataList(builder, DataListOffset); - return ContentsScenarioExcelTable.EndContentsScenarioExcelTable(builder); - } - - public static void StartContentsScenarioExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndContentsScenarioExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class ContentsScenarioExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentsScenarioExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ContentsShortcutExcel.cs b/SCHALE.Common/FlatData/ContentsShortcutExcel.cs index 1994771..c25ce76 100644 --- a/SCHALE.Common/FlatData/ContentsShortcutExcel.cs +++ b/SCHALE.Common/FlatData/ContentsShortcutExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ContentsShortcutExcel : IFlatbufferObject @@ -106,6 +107,88 @@ public struct ContentsShortcutExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + 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); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _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(); + 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 Pack(FlatBufferBuilder builder, ContentsShortcutExcelT _o) { + if (_o == null) return default(Offset); + 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, + _o.ContentType, + _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; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + 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 ShortcutUIName { get; set; } + public string Localize { get; set; } + + public ContentsShortcutExcelT() { + this.UniqueId = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + 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; + } } diff --git a/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs b/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs deleted file mode 100644 index ad06b8e..0000000 --- a/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct ContentsShortcutExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ContentsShortcutExcelTable GetRootAsContentsShortcutExcelTable(ByteBuffer _bb) { return GetRootAsContentsShortcutExcelTable(_bb, new ContentsShortcutExcelTable()); } - public static ContentsShortcutExcelTable GetRootAsContentsShortcutExcelTable(ByteBuffer _bb, ContentsShortcutExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ContentsShortcutExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ContentsShortcutExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentsShortcutExcel?)(new SCHALE.Common.FlatData.ContentsShortcutExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateContentsShortcutExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ContentsShortcutExcelTable.AddDataList(builder, DataListOffset); - return ContentsShortcutExcelTable.EndContentsShortcutExcelTable(builder); - } - - public static void StartContentsShortcutExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndContentsShortcutExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class ContentsShortcutExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentsShortcutExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/CostumeExcel.cs b/SCHALE.Common/FlatData/CostumeExcel.cs index d204530..98acc6c 100644 --- a/SCHALE.Common/FlatData/CostumeExcel.cs +++ b/SCHALE.Common/FlatData/CostumeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CostumeExcel : IFlatbufferObject @@ -264,6 +265,177 @@ public struct CostumeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + 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); + _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); + _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(); + for (var _j = 0; _j < this.SpineResourceNameDioramaForFormConversionLength; ++_j) {_o.SpineResourceNameDioramaForFormConversion.Add(TableEncryptionService.Convert(this.SpineResourceNameDioramaForFormConversion(_j), key));} + _o.EntityMaterialType = TableEncryptionService.Convert(this.EntityMaterialType, key); + _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); + _o.UseObjectHPBAR = TableEncryptionService.Convert(this.UseObjectHPBAR, key); + _o.TextureBoss = TableEncryptionService.Convert(this.TextureBoss, key); + _o.TextureSkillCard = new List(); + 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); + } + public static Offset Pack(FlatBufferBuilder builder, CostumeExcelT _o) { + if (_o == null) return default(Offset); + 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); + 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, + _o.IsDefault, + _o.CollectionVisible, + _ReleaseDate, + _CollectionVisibleStartDate, + _CollectionVisibleEndDate, + _o.Rarity, + _o.CharacterSkillListGroupId, + _SpineResourceName, + _SpineResourceNameDiorama, + _SpineResourceNameDioramaForFormConversion, + _o.EntityMaterialType, + _ModelPrefabName, + _CafeModelPrefabName, + _EchelonModelPrefabName, + _StrategyModelPrefabName, + _TextureDir, + _CollectionTexturePath, + _CollectionBGTexturePath, + _o.UseObjectHPBAR, + _TextureBoss, + _TextureSkillCard, + _InformationPacel, + _AnimationSSR, + _EnterStrategyAnimationName, + _o.AnimationValidator, + _o.CharacterVoiceGroupId); + } +} + +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; } + 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; } + public long CharacterSkillListGroupId { get; set; } + public string SpineResourceName { get; set; } + public string SpineResourceNameDiorama { get; set; } + public List SpineResourceNameDioramaForFormConversion { get; set; } + public SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType { get; set; } + 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; } + public bool UseObjectHPBAR { get; set; } + public string TextureBoss { get; set; } + public List 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; } + + public CostumeExcelT() { + this.CostumeGroupId = 0; + this.CostumeUniqueId = 0; + this.DevName = null; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.IsDefault = false; + this.CollectionVisible = false; + this.ReleaseDate = null; + this.CollectionVisibleStartDate = null; + this.CollectionVisibleEndDate = null; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.CharacterSkillListGroupId = 0; + this.SpineResourceName = null; + this.SpineResourceNameDiorama = null; + this.SpineResourceNameDioramaForFormConversion = null; + this.EntityMaterialType = SCHALE.Common.FlatData.EntityMaterialType.Wood; + this.ModelPrefabName = null; + this.CafeModelPrefabName = null; + this.EchelonModelPrefabName = null; + this.StrategyModelPrefabName = null; + this.TextureDir = null; + this.CollectionTexturePath = null; + this.CollectionBGTexturePath = null; + this.UseObjectHPBAR = false; + this.TextureBoss = null; + this.TextureSkillCard = null; + this.InformationPacel = null; + this.AnimationSSR = null; + this.EnterStrategyAnimationName = null; + this.AnimationValidator = false; + this.CharacterVoiceGroupId = 0; + } } diff --git a/SCHALE.Common/FlatData/CostumeExcelTable.cs b/SCHALE.Common/FlatData/CostumeExcelTable.cs index 393fab7..04babbc 100644 --- a/SCHALE.Common/FlatData/CostumeExcelTable.cs +++ b/SCHALE.Common/FlatData/CostumeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CostumeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CostumeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CostumeExcelTableT UnPack() { + var _o = new CostumeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CostumeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CostumeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CostumeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CostumeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCostumeExcelTable( + builder, + _DataList); + } +} + +public class CostumeExcelTableT +{ + public List DataList { get; set; } + + public CostumeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CouponStuffExcel.cs b/SCHALE.Common/FlatData/CouponStuffExcel.cs index 3e01bf6..70d6a5f 100644 --- a/SCHALE.Common/FlatData/CouponStuffExcel.cs +++ b/SCHALE.Common/FlatData/CouponStuffExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CouponStuffExcel : IFlatbufferObject @@ -56,6 +57,47 @@ public struct CouponStuffExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CouponStuffExcelT UnPack() { + var _o = new CouponStuffExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CouponStuffExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("CouponStuff"); + _o.StuffId = TableEncryptionService.Convert(this.StuffId, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key); + _o.LimitAmount = TableEncryptionService.Convert(this.LimitAmount, key); + _o.CouponStuffNameLocalizeKey = TableEncryptionService.Convert(this.CouponStuffNameLocalizeKey, key); + } + public static Offset Pack(FlatBufferBuilder builder, CouponStuffExcelT _o) { + if (_o == null) return default(Offset); + var _CouponStuffNameLocalizeKey = _o.CouponStuffNameLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.CouponStuffNameLocalizeKey); + return CreateCouponStuffExcel( + builder, + _o.StuffId, + _o.ParcelType, + _o.ParcelId, + _o.LimitAmount, + _CouponStuffNameLocalizeKey); + } +} + +public class CouponStuffExcelT +{ + public long StuffId { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelId { get; set; } + public int LimitAmount { get; set; } + public string CouponStuffNameLocalizeKey { get; set; } + + public CouponStuffExcelT() { + this.StuffId = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelId = 0; + this.LimitAmount = 0; + this.CouponStuffNameLocalizeKey = null; + } } diff --git a/SCHALE.Common/FlatData/CouponStuffExcelTable.cs b/SCHALE.Common/FlatData/CouponStuffExcelTable.cs index 12368d2..39b4aea 100644 --- a/SCHALE.Common/FlatData/CouponStuffExcelTable.cs +++ b/SCHALE.Common/FlatData/CouponStuffExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CouponStuffExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CouponStuffExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CouponStuffExcelTableT UnPack() { + var _o = new CouponStuffExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CouponStuffExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CouponStuffExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CouponStuffExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CouponStuffExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCouponStuffExcelTable( + builder, + _DataList); + } +} + +public class CouponStuffExcelTableT +{ + public List DataList { get; set; } + + public CouponStuffExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/CurrencyExcel.cs b/SCHALE.Common/FlatData/CurrencyExcel.cs index e70ec93..37ddba3 100644 --- a/SCHALE.Common/FlatData/CurrencyExcel.cs +++ b/SCHALE.Common/FlatData/CurrencyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CurrencyExcel : IFlatbufferObject @@ -124,6 +125,99 @@ public struct CurrencyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CurrencyExcelT UnPack() { + var _o = new CurrencyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CurrencyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Currency"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.CurrencyType = TableEncryptionService.Convert(this.CurrencyType, key); + _o.CurrencyName = TableEncryptionService.Convert(this.CurrencyName, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.AutoChargeMsc = TableEncryptionService.Convert(this.AutoChargeMsc, key); + _o.AutoChargeAmount = TableEncryptionService.Convert(this.AutoChargeAmount, key); + _o.CurrencyOverChargeType = TableEncryptionService.Convert(this.CurrencyOverChargeType, key); + _o.CurrencyAdditionalChargeType = TableEncryptionService.Convert(this.CurrencyAdditionalChargeType, key); + _o.ChargeLimit = TableEncryptionService.Convert(this.ChargeLimit, key); + _o.OverChargeLimit = TableEncryptionService.Convert(this.OverChargeLimit, key); + _o.SpriteName = TableEncryptionService.Convert(this.SpriteName, key); + _o.DailyRefillType = TableEncryptionService.Convert(this.DailyRefillType, key); + _o.DailyRefillAmount = TableEncryptionService.Convert(this.DailyRefillAmount, key); + _o.DailyRefillTime = new List(); + for (var _j = 0; _j < this.DailyRefillTimeLength; ++_j) {_o.DailyRefillTime.Add(TableEncryptionService.Convert(this.DailyRefillTime(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, CurrencyExcelT _o) { + if (_o == null) return default(Offset); + var _CurrencyName = _o.CurrencyName == null ? default(StringOffset) : builder.CreateString(_o.CurrencyName); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _SpriteName = _o.SpriteName == null ? default(StringOffset) : builder.CreateString(_o.SpriteName); + var _DailyRefillTime = default(VectorOffset); + if (_o.DailyRefillTime != null) { + var __DailyRefillTime = _o.DailyRefillTime.ToArray(); + _DailyRefillTime = CreateDailyRefillTimeVector(builder, __DailyRefillTime); + } + return CreateCurrencyExcel( + builder, + _o.ID, + _o.LocalizeEtcId, + _o.CurrencyType, + _CurrencyName, + _Icon, + _o.Rarity, + _o.AutoChargeMsc, + _o.AutoChargeAmount, + _o.CurrencyOverChargeType, + _o.CurrencyAdditionalChargeType, + _o.ChargeLimit, + _o.OverChargeLimit, + _SpriteName, + _o.DailyRefillType, + _o.DailyRefillAmount, + _DailyRefillTime); + } +} + +public class CurrencyExcelT +{ + public long ID { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.CurrencyTypes CurrencyType { get; set; } + public string CurrencyName { get; set; } + public string Icon { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public int AutoChargeMsc { get; set; } + public int AutoChargeAmount { get; set; } + public SCHALE.Common.FlatData.CurrencyOverChargeType CurrencyOverChargeType { get; set; } + public SCHALE.Common.FlatData.CurrencyAdditionalChargeType CurrencyAdditionalChargeType { get; set; } + public long ChargeLimit { get; set; } + public long OverChargeLimit { get; set; } + public string SpriteName { get; set; } + public SCHALE.Common.FlatData.DailyRefillType DailyRefillType { get; set; } + public long DailyRefillAmount { get; set; } + public List DailyRefillTime { get; set; } + + public CurrencyExcelT() { + this.ID = 0; + this.LocalizeEtcId = 0; + this.CurrencyType = SCHALE.Common.FlatData.CurrencyTypes.Invalid; + this.CurrencyName = null; + this.Icon = null; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.AutoChargeMsc = 0; + this.AutoChargeAmount = 0; + this.CurrencyOverChargeType = SCHALE.Common.FlatData.CurrencyOverChargeType.CanNotCharge; + this.CurrencyAdditionalChargeType = SCHALE.Common.FlatData.CurrencyAdditionalChargeType.EnableAutoChargeOverLimit; + this.ChargeLimit = 0; + this.OverChargeLimit = 0; + this.SpriteName = null; + this.DailyRefillType = SCHALE.Common.FlatData.DailyRefillType.None; + this.DailyRefillAmount = 0; + this.DailyRefillTime = null; + } } diff --git a/SCHALE.Common/FlatData/CurrencyExcelTable.cs b/SCHALE.Common/FlatData/CurrencyExcelTable.cs index d3e9c3d..2a3c84f 100644 --- a/SCHALE.Common/FlatData/CurrencyExcelTable.cs +++ b/SCHALE.Common/FlatData/CurrencyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct CurrencyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct CurrencyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public CurrencyExcelTableT UnPack() { + var _o = new CurrencyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CurrencyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("CurrencyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, CurrencyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CurrencyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateCurrencyExcelTable( + builder, + _DataList); + } +} + +public class CurrencyExcelTableT +{ + public List DataList { get; set; } + + public CurrencyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultCharacterExcel.cs b/SCHALE.Common/FlatData/DefaultCharacterExcel.cs index 0ce96dd..c82b61c 100644 --- a/SCHALE.Common/FlatData/DefaultCharacterExcel.cs +++ b/SCHALE.Common/FlatData/DefaultCharacterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultCharacterExcel : IFlatbufferObject @@ -78,6 +79,74 @@ public struct DefaultCharacterExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultCharacterExcelT UnPack() { + var _o = new DefaultCharacterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultCharacterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultCharacter"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.FavoriteCharacter = TableEncryptionService.Convert(this.FavoriteCharacter, key); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Exp = TableEncryptionService.Convert(this.Exp, key); + _o.FavorExp = TableEncryptionService.Convert(this.FavorExp, key); + _o.FavorRank = TableEncryptionService.Convert(this.FavorRank, key); + _o.StarGrade = TableEncryptionService.Convert(this.StarGrade, key); + _o.ExSkillLevel = TableEncryptionService.Convert(this.ExSkillLevel, key); + _o.PassiveSkillLevel = TableEncryptionService.Convert(this.PassiveSkillLevel, key); + _o.ExtraPassiveSkillLevel = TableEncryptionService.Convert(this.ExtraPassiveSkillLevel, key); + _o.CommonSkillLevel = TableEncryptionService.Convert(this.CommonSkillLevel, key); + _o.LeaderSkillLevel = TableEncryptionService.Convert(this.LeaderSkillLevel, key); + } + public static Offset Pack(FlatBufferBuilder builder, DefaultCharacterExcelT _o) { + if (_o == null) return default(Offset); + return CreateDefaultCharacterExcel( + builder, + _o.CharacterId, + _o.FavoriteCharacter, + _o.Level, + _o.Exp, + _o.FavorExp, + _o.FavorRank, + _o.StarGrade, + _o.ExSkillLevel, + _o.PassiveSkillLevel, + _o.ExtraPassiveSkillLevel, + _o.CommonSkillLevel, + _o.LeaderSkillLevel); + } +} + +public class DefaultCharacterExcelT +{ + public long CharacterId { get; set; } + public bool FavoriteCharacter { get; set; } + public int Level { get; set; } + public int Exp { get; set; } + public int FavorExp { get; set; } + public int FavorRank { get; set; } + public int StarGrade { get; set; } + public int ExSkillLevel { get; set; } + public int PassiveSkillLevel { get; set; } + public int ExtraPassiveSkillLevel { get; set; } + public int CommonSkillLevel { get; set; } + public int LeaderSkillLevel { get; set; } + + public DefaultCharacterExcelT() { + this.CharacterId = 0; + this.FavoriteCharacter = false; + this.Level = 0; + this.Exp = 0; + this.FavorExp = 0; + this.FavorRank = 0; + this.StarGrade = 0; + this.ExSkillLevel = 0; + this.PassiveSkillLevel = 0; + this.ExtraPassiveSkillLevel = 0; + this.CommonSkillLevel = 0; + this.LeaderSkillLevel = 0; + } } diff --git a/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs b/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs index 5cda89b..ac9cca9 100644 --- a/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs +++ b/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultCharacterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DefaultCharacterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultCharacterExcelTableT UnPack() { + var _o = new DefaultCharacterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultCharacterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultCharacterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultCharacterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DefaultCharacterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDefaultCharacterExcelTable( + builder, + _DataList); + } +} + +public class DefaultCharacterExcelTableT +{ + public List DataList { get; set; } + + public DefaultCharacterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultEchelonExcel.cs b/SCHALE.Common/FlatData/DefaultEchelonExcel.cs index a574a14..579b184 100644 --- a/SCHALE.Common/FlatData/DefaultEchelonExcel.cs +++ b/SCHALE.Common/FlatData/DefaultEchelonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultEchelonExcel : IFlatbufferObject @@ -74,6 +75,58 @@ public struct DefaultEchelonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultEchelonExcelT UnPack() { + var _o = new DefaultEchelonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultEchelonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultEchelon"); + _o.EchlonId = TableEncryptionService.Convert(this.EchlonId, key); + _o.LeaderId = TableEncryptionService.Convert(this.LeaderId, key); + _o.MainId = new List(); + for (var _j = 0; _j < this.MainIdLength; ++_j) {_o.MainId.Add(TableEncryptionService.Convert(this.MainId(_j), key));} + _o.SupportId = new List(); + for (var _j = 0; _j < this.SupportIdLength; ++_j) {_o.SupportId.Add(TableEncryptionService.Convert(this.SupportId(_j), key));} + _o.TssId = TableEncryptionService.Convert(this.TssId, key); + } + public static Offset Pack(FlatBufferBuilder builder, DefaultEchelonExcelT _o) { + if (_o == null) return default(Offset); + var _MainId = default(VectorOffset); + if (_o.MainId != null) { + var __MainId = _o.MainId.ToArray(); + _MainId = CreateMainIdVector(builder, __MainId); + } + var _SupportId = default(VectorOffset); + if (_o.SupportId != null) { + var __SupportId = _o.SupportId.ToArray(); + _SupportId = CreateSupportIdVector(builder, __SupportId); + } + return CreateDefaultEchelonExcel( + builder, + _o.EchlonId, + _o.LeaderId, + _MainId, + _SupportId, + _o.TssId); + } +} + +public class DefaultEchelonExcelT +{ + public int EchlonId { get; set; } + public long LeaderId { get; set; } + public List MainId { get; set; } + public List SupportId { get; set; } + public long TssId { get; set; } + + public DefaultEchelonExcelT() { + this.EchlonId = 0; + this.LeaderId = 0; + this.MainId = null; + this.SupportId = null; + this.TssId = 0; + } } diff --git a/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs b/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs index 7c1ab4d..ac92a56 100644 --- a/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs +++ b/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultEchelonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DefaultEchelonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultEchelonExcelTableT UnPack() { + var _o = new DefaultEchelonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultEchelonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultEchelonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultEchelonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DefaultEchelonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDefaultEchelonExcelTable( + builder, + _DataList); + } +} + +public class DefaultEchelonExcelTableT +{ + public List DataList { get; set; } + + public DefaultEchelonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs index 8fb47a6..04f4160 100644 --- a/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs +++ b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultFurnitureExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct DefaultFurnitureExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultFurnitureExcelT UnPack() { + var _o = new DefaultFurnitureExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultFurnitureExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultFurniture"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Location = TableEncryptionService.Convert(this.Location, key); + _o.PositionX = TableEncryptionService.Convert(this.PositionX, key); + _o.PositionY = TableEncryptionService.Convert(this.PositionY, key); + _o.Rotation = TableEncryptionService.Convert(this.Rotation, key); + } + public static Offset Pack(FlatBufferBuilder builder, DefaultFurnitureExcelT _o) { + if (_o == null) return default(Offset); + return CreateDefaultFurnitureExcel( + builder, + _o.Id, + _o.Location, + _o.PositionX, + _o.PositionY, + _o.Rotation); + } +} + +public class DefaultFurnitureExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.FurnitureLocation Location { get; set; } + public float PositionX { get; set; } + public float PositionY { get; set; } + public float Rotation { get; set; } + + public DefaultFurnitureExcelT() { + this.Id = 0; + this.Location = SCHALE.Common.FlatData.FurnitureLocation.None; + this.PositionX = 0.0f; + this.PositionY = 0.0f; + this.Rotation = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs b/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs index e58d0c4..c1bbeee 100644 --- a/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs +++ b/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultFurnitureExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DefaultFurnitureExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultFurnitureExcelTableT UnPack() { + var _o = new DefaultFurnitureExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultFurnitureExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultFurnitureExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultFurnitureExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DefaultFurnitureExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDefaultFurnitureExcelTable( + builder, + _DataList); + } +} + +public class DefaultFurnitureExcelTableT +{ + public List DataList { get; set; } + + public DefaultFurnitureExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultMailExcel.cs b/SCHALE.Common/FlatData/DefaultMailExcel.cs index 9750885..bc74f3c 100644 --- a/SCHALE.Common/FlatData/DefaultMailExcel.cs +++ b/SCHALE.Common/FlatData/DefaultMailExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultMailExcel : IFlatbufferObject @@ -110,6 +111,78 @@ public struct DefaultMailExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultMailExcelT UnPack() { + var _o = new DefaultMailExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultMailExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultMail"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + _o.MailType = TableEncryptionService.Convert(this.MailType, key); + _o.MailSendPeriodFrom = TableEncryptionService.Convert(this.MailSendPeriodFrom, key); + _o.MailSendPeriodTo = TableEncryptionService.Convert(this.MailSendPeriodTo, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultMailExcelT _o) { + if (_o == null) return default(Offset); + var _MailSendPeriodFrom = _o.MailSendPeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.MailSendPeriodFrom); + var _MailSendPeriodTo = _o.MailSendPeriodTo == null ? default(StringOffset) : builder.CreateString(_o.MailSendPeriodTo); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateDefaultMailExcel( + builder, + _o.Id, + _o.LocalizeCodeId, + _o.MailType, + _MailSendPeriodFrom, + _MailSendPeriodTo, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class DefaultMailExcelT +{ + public long Id { get; set; } + public uint LocalizeCodeId { get; set; } + public SCHALE.Common.FlatData.MailType MailType { get; set; } + public string MailSendPeriodFrom { get; set; } + public string MailSendPeriodTo { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public DefaultMailExcelT() { + this.Id = 0; + this.LocalizeCodeId = 0; + this.MailType = SCHALE.Common.FlatData.MailType.System; + this.MailSendPeriodFrom = null; + this.MailSendPeriodTo = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultMailExcelTable.cs b/SCHALE.Common/FlatData/DefaultMailExcelTable.cs index 6786074..6535bab 100644 --- a/SCHALE.Common/FlatData/DefaultMailExcelTable.cs +++ b/SCHALE.Common/FlatData/DefaultMailExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultMailExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DefaultMailExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultMailExcelTableT UnPack() { + var _o = new DefaultMailExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultMailExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultMailExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultMailExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DefaultMailExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDefaultMailExcelTable( + builder, + _DataList); + } +} + +public class DefaultMailExcelTableT +{ + public List DataList { get; set; } + + public DefaultMailExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DefaultParcelExcel.cs b/SCHALE.Common/FlatData/DefaultParcelExcel.cs index 5320a49..1a8e904 100644 --- a/SCHALE.Common/FlatData/DefaultParcelExcel.cs +++ b/SCHALE.Common/FlatData/DefaultParcelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultParcelExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct DefaultParcelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultParcelExcelT UnPack() { + var _o = new DefaultParcelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultParcelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultParcel"); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key); + _o.ParcelAmount = TableEncryptionService.Convert(this.ParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, DefaultParcelExcelT _o) { + if (_o == null) return default(Offset); + return CreateDefaultParcelExcel( + builder, + _o.ParcelType, + _o.ParcelId, + _o.ParcelAmount); + } +} + +public class DefaultParcelExcelT +{ + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelId { get; set; } + public long ParcelAmount { get; set; } + + public DefaultParcelExcelT() { + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelId = 0; + this.ParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs b/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs index c892276..b77832b 100644 --- a/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs +++ b/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DefaultParcelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DefaultParcelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DefaultParcelExcelTableT UnPack() { + var _o = new DefaultParcelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DefaultParcelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DefaultParcelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DefaultParcelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DefaultParcelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDefaultParcelExcelTable( + builder, + _DataList); + } +} + +public class DefaultParcelExcelTableT +{ + public List DataList { get; set; } + + public DefaultParcelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/DialogCategory.cs b/SCHALE.Common/FlatData/DialogCategory.cs index 40513f9..37e6988 100644 --- a/SCHALE.Common/FlatData/DialogCategory.cs +++ b/SCHALE.Common/FlatData/DialogCategory.cs @@ -76,6 +76,7 @@ public enum DialogCategory : int UIAttendanceEvent16 = 66, UIEventTreasure = 67, UIMultiFloorRaid = 68, + UIEventMiniGameDreamMaker = 69, }; diff --git a/SCHALE.Common/FlatData/DialogCondition.cs b/SCHALE.Common/FlatData/DialogCondition.cs index 3fc1612..cee0205 100644 --- a/SCHALE.Common/FlatData/DialogCondition.cs +++ b/SCHALE.Common/FlatData/DialogCondition.cs @@ -31,6 +31,11 @@ public enum DialogCondition : int FindTreasure = 21, GetTreasure = 22, RoundRenewal = 23, + MiniGameDreamMakerEnough01 = 24, + MiniGameDreamMakerEnough02 = 25, + MiniGameDreamMakerEnough03 = 26, + MiniGameDreamMakerEnough04 = 27, + MiniGameDreamMakerDefault = 28, }; diff --git a/SCHALE.Common/FlatData/DialogConditionDetail.cs b/SCHALE.Common/FlatData/DialogConditionDetail.cs index e5bec62..8111858 100644 --- a/SCHALE.Common/FlatData/DialogConditionDetail.cs +++ b/SCHALE.Common/FlatData/DialogConditionDetail.cs @@ -10,6 +10,7 @@ public enum DialogConditionDetail : int None = 0, Day = 1, Close = 2, + MiniGameDreamMakerDay = 3, }; diff --git a/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs b/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs new file mode 100644 index 0000000..128091e --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerEndingCondition : int +{ + None = 0, + Param01 = 1, + Param02 = 2, + Param03 = 3, + Param04 = 4, + Round = 5, + CollectionCount = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs b/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs new file mode 100644 index 0000000..63ce231 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerEndingRewardType : int +{ + None = 0, + FirstEndingReward = 1, + LoopEndingReward = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerEndingType.cs b/SCHALE.Common/FlatData/DreamMakerEndingType.cs new file mode 100644 index 0000000..99a8c18 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerEndingType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerEndingType : int +{ + None = 0, + Normal = 1, + Special = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs b/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs new file mode 100644 index 0000000..7d0fbb2 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerMultiplierCondition : int +{ + None = 0, + Round = 1, + CollectionCount = 2, + EndingCount = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs b/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs new file mode 100644 index 0000000..96f5897 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerParamOperationType : int +{ + None = 0, + GrowUpHigh = 1, + GrowUp = 2, + GrowDownHigh = 3, + GrowDown = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerParameterType.cs b/SCHALE.Common/FlatData/DreamMakerParameterType.cs new file mode 100644 index 0000000..d423b71 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerParameterType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerParameterType : int +{ + None = 0, + Param01 = 1, + Param02 = 2, + Param03 = 3, + Param04 = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerResult.cs b/SCHALE.Common/FlatData/DreamMakerResult.cs new file mode 100644 index 0000000..0ea0aa7 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerResult.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerResult : int +{ + None = 0, + Fail = 1, + Success = 2, + Perfect = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs b/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs new file mode 100644 index 0000000..2f1f692 --- /dev/null +++ b/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DreamMakerVoiceCondition : int +{ + None = 0, + Fail = 1, + Success = 2, + Perfect = 3, + DailyResult = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/DuplicateBonusExcel.cs b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs index cbe6d42..b2a07c7 100644 --- a/SCHALE.Common/FlatData/DuplicateBonusExcel.cs +++ b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DuplicateBonusExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct DuplicateBonusExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DuplicateBonusExcelT UnPack() { + var _o = new DuplicateBonusExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DuplicateBonusExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("DuplicateBonus"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ItemCategory = TableEncryptionService.Convert(this.ItemCategory, key); + _o.ItemId = TableEncryptionService.Convert(this.ItemId, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, DuplicateBonusExcelT _o) { + if (_o == null) return default(Offset); + return CreateDuplicateBonusExcel( + builder, + _o.Id, + _o.ItemCategory, + _o.ItemId, + _o.CharacterId, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount); + } +} + +public class DuplicateBonusExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ItemCategory ItemCategory { get; set; } + public long ItemId { get; set; } + public long CharacterId { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + + public DuplicateBonusExcelT() { + this.Id = 0; + this.ItemCategory = SCHALE.Common.FlatData.ItemCategory.Coin; + this.ItemId = 0; + this.CharacterId = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs b/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs index cc133aa..ac7d0ca 100644 --- a/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs +++ b/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct DuplicateBonusExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct DuplicateBonusExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public DuplicateBonusExcelTableT UnPack() { + var _o = new DuplicateBonusExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(DuplicateBonusExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("DuplicateBonusExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, DuplicateBonusExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.DuplicateBonusExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateDuplicateBonusExcelTable( + builder, + _DataList); + } +} + +public class DuplicateBonusExcelTableT +{ + public List DataList { get; set; } + + public DuplicateBonusExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EchelonConstraintExcel.cs b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs index fb4a0ff..ee4433c 100644 --- a/SCHALE.Common/FlatData/EchelonConstraintExcel.cs +++ b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EchelonConstraintExcel : IFlatbufferObject @@ -86,6 +87,70 @@ public struct EchelonConstraintExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EchelonConstraintExcelT UnPack() { + var _o = new EchelonConstraintExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EchelonConstraintExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EchelonConstraint"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.IsWhiteList = TableEncryptionService.Convert(this.IsWhiteList, key); + _o.CharacterId = new List(); + for (var _j = 0; _j < this.CharacterIdLength; ++_j) {_o.CharacterId.Add(TableEncryptionService.Convert(this.CharacterId(_j), key));} + _o.PersonalityId = new List(); + for (var _j = 0; _j < this.PersonalityIdLength; ++_j) {_o.PersonalityId.Add(TableEncryptionService.Convert(this.PersonalityId(_j), key));} + _o.WeaponType = TableEncryptionService.Convert(this.WeaponType, key); + _o.School = TableEncryptionService.Convert(this.School, key); + _o.Club = TableEncryptionService.Convert(this.Club, key); + _o.Role = TableEncryptionService.Convert(this.Role, key); + } + public static Offset Pack(FlatBufferBuilder builder, EchelonConstraintExcelT _o) { + if (_o == null) return default(Offset); + var _CharacterId = default(VectorOffset); + if (_o.CharacterId != null) { + var __CharacterId = _o.CharacterId.ToArray(); + _CharacterId = CreateCharacterIdVector(builder, __CharacterId); + } + var _PersonalityId = default(VectorOffset); + if (_o.PersonalityId != null) { + var __PersonalityId = _o.PersonalityId.ToArray(); + _PersonalityId = CreatePersonalityIdVector(builder, __PersonalityId); + } + return CreateEchelonConstraintExcel( + builder, + _o.GroupId, + _o.IsWhiteList, + _CharacterId, + _PersonalityId, + _o.WeaponType, + _o.School, + _o.Club, + _o.Role); + } +} + +public class EchelonConstraintExcelT +{ + public long GroupId { get; set; } + public bool IsWhiteList { get; set; } + public List CharacterId { get; set; } + public List PersonalityId { get; set; } + public SCHALE.Common.FlatData.WeaponType WeaponType { get; set; } + public SCHALE.Common.FlatData.School School { get; set; } + public SCHALE.Common.FlatData.Club Club { get; set; } + public SCHALE.Common.FlatData.TacticRole Role { get; set; } + + public EchelonConstraintExcelT() { + this.GroupId = 0; + this.IsWhiteList = false; + this.CharacterId = null; + this.PersonalityId = null; + this.WeaponType = SCHALE.Common.FlatData.WeaponType.None; + this.School = SCHALE.Common.FlatData.School.None; + this.Club = SCHALE.Common.FlatData.Club.None; + this.Role = SCHALE.Common.FlatData.TacticRole.None; + } } diff --git a/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs b/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs index 98abe77..1ad0019 100644 --- a/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs +++ b/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EchelonConstraintExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EchelonConstraintExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EchelonConstraintExcelTableT UnPack() { + var _o = new EchelonConstraintExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EchelonConstraintExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EchelonConstraintExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EchelonConstraintExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EchelonConstraintExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEchelonConstraintExcelTable( + builder, + _DataList); + } +} + +public class EchelonConstraintExcelTableT +{ + public List DataList { get; set; } + + public EchelonConstraintExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs index 228273f..ad21752 100644 --- a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidRankingRewardExcel : IFlatbufferObject @@ -116,6 +117,95 @@ public struct EliminateRaidRankingRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidRankingRewardExcelT UnPack() { + var _o = new EliminateRaidRankingRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidRankingRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidRankingReward"); + _o.RankingRewardGroupId = TableEncryptionService.Convert(this.RankingRewardGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RankStart = TableEncryptionService.Convert(this.RankStart, key); + _o.RankEnd = TableEncryptionService.Convert(this.RankEnd, key); + _o.PercentRankStart = TableEncryptionService.Convert(this.PercentRankStart, key); + _o.PercentRankEnd = TableEncryptionService.Convert(this.PercentRankEnd, key); + _o.Tier = TableEncryptionService.Convert(this.Tier, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueIdLength; ++_j) {_o.RewardParcelUniqueId.Add(TableEncryptionService.Convert(this.RewardParcelUniqueId(_j), key));} + _o.RewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueNameLength; ++_j) {_o.RewardParcelUniqueName.Add(TableEncryptionService.Convert(this.RewardParcelUniqueName(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidRankingRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelUniqueId = default(VectorOffset); + if (_o.RewardParcelUniqueId != null) { + var __RewardParcelUniqueId = _o.RewardParcelUniqueId.ToArray(); + _RewardParcelUniqueId = CreateRewardParcelUniqueIdVector(builder, __RewardParcelUniqueId); + } + var _RewardParcelUniqueName = default(VectorOffset); + if (_o.RewardParcelUniqueName != null) { + var __RewardParcelUniqueName = new StringOffset[_o.RewardParcelUniqueName.Count]; + for (var _j = 0; _j < __RewardParcelUniqueName.Length; ++_j) { __RewardParcelUniqueName[_j] = builder.CreateString(_o.RewardParcelUniqueName[_j]); } + _RewardParcelUniqueName = CreateRewardParcelUniqueNameVector(builder, __RewardParcelUniqueName); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEliminateRaidRankingRewardExcel( + builder, + _o.RankingRewardGroupId, + _o.Id, + _o.RankStart, + _o.RankEnd, + _o.PercentRankStart, + _o.PercentRankEnd, + _o.Tier, + _RewardParcelType, + _RewardParcelUniqueId, + _RewardParcelUniqueName, + _RewardParcelAmount); + } +} + +public class EliminateRaidRankingRewardExcelT +{ + public long RankingRewardGroupId { get; set; } + public long Id { get; set; } + public long RankStart { get; set; } + public long RankEnd { get; set; } + public long PercentRankStart { get; set; } + public long PercentRankEnd { get; set; } + public int Tier { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelUniqueId { get; set; } + public List RewardParcelUniqueName { get; set; } + public List RewardParcelAmount { get; set; } + + public EliminateRaidRankingRewardExcelT() { + this.RankingRewardGroupId = 0; + this.Id = 0; + this.RankStart = 0; + this.RankEnd = 0; + this.PercentRankStart = 0; + this.PercentRankEnd = 0; + this.Tier = 0; + this.RewardParcelType = null; + this.RewardParcelUniqueId = null; + this.RewardParcelUniqueName = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs index 98b185d..a239be7 100644 --- a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidRankingRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidRankingRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidRankingRewardExcelTableT UnPack() { + var _o = new EliminateRaidRankingRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidRankingRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidRankingRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidRankingRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidRankingRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidRankingRewardExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidRankingRewardExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidRankingRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs index 588d8f6..7fe7b64 100644 --- a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidSeasonManageExcel : IFlatbufferObject @@ -186,6 +187,130 @@ public struct EliminateRaidSeasonManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidSeasonManageExcelT UnPack() { + var _o = new EliminateRaidSeasonManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidSeasonManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidSeasonManage"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.SeasonDisplay = TableEncryptionService.Convert(this.SeasonDisplay, key); + _o.SeasonStartData = TableEncryptionService.Convert(this.SeasonStartData, key); + _o.SeasonEndData = TableEncryptionService.Convert(this.SeasonEndData, key); + _o.SettlementEndDate = TableEncryptionService.Convert(this.SettlementEndDate, key); + _o.LobbyTableBGPath = TableEncryptionService.Convert(this.LobbyTableBGPath, key); + _o.LobbyScreenBGPath = TableEncryptionService.Convert(this.LobbyScreenBGPath, key); + _o.OpenRaidBossGroup01 = TableEncryptionService.Convert(this.OpenRaidBossGroup01, key); + _o.OpenRaidBossGroup02 = TableEncryptionService.Convert(this.OpenRaidBossGroup02, key); + _o.OpenRaidBossGroup03 = TableEncryptionService.Convert(this.OpenRaidBossGroup03, key); + _o.RankingRewardGroupId = TableEncryptionService.Convert(this.RankingRewardGroupId, key); + _o.MaxSeasonRewardGauage = TableEncryptionService.Convert(this.MaxSeasonRewardGauage, key); + _o.StackedSeasonRewardGauge = new List(); + for (var _j = 0; _j < this.StackedSeasonRewardGaugeLength; ++_j) {_o.StackedSeasonRewardGauge.Add(TableEncryptionService.Convert(this.StackedSeasonRewardGauge(_j), key));} + _o.SeasonRewardId = new List(); + for (var _j = 0; _j < this.SeasonRewardIdLength; ++_j) {_o.SeasonRewardId.Add(TableEncryptionService.Convert(this.SeasonRewardId(_j), key));} + _o.LimitedRewardIdNormal = TableEncryptionService.Convert(this.LimitedRewardIdNormal, key); + _o.LimitedRewardIdHard = TableEncryptionService.Convert(this.LimitedRewardIdHard, key); + _o.LimitedRewardIdVeryhard = TableEncryptionService.Convert(this.LimitedRewardIdVeryhard, key); + _o.LimitedRewardIdHardcore = TableEncryptionService.Convert(this.LimitedRewardIdHardcore, key); + _o.LimitedRewardIdExtreme = TableEncryptionService.Convert(this.LimitedRewardIdExtreme, key); + _o.LimitedRewardIdInsane = TableEncryptionService.Convert(this.LimitedRewardIdInsane, key); + _o.LimitedRewardIdTorment = TableEncryptionService.Convert(this.LimitedRewardIdTorment, key); + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidSeasonManageExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonStartData = _o.SeasonStartData == null ? default(StringOffset) : builder.CreateString(_o.SeasonStartData); + var _SeasonEndData = _o.SeasonEndData == null ? default(StringOffset) : builder.CreateString(_o.SeasonEndData); + var _SettlementEndDate = _o.SettlementEndDate == null ? default(StringOffset) : builder.CreateString(_o.SettlementEndDate); + var _LobbyTableBGPath = _o.LobbyTableBGPath == null ? default(StringOffset) : builder.CreateString(_o.LobbyTableBGPath); + var _LobbyScreenBGPath = _o.LobbyScreenBGPath == null ? default(StringOffset) : builder.CreateString(_o.LobbyScreenBGPath); + var _OpenRaidBossGroup01 = _o.OpenRaidBossGroup01 == null ? default(StringOffset) : builder.CreateString(_o.OpenRaidBossGroup01); + var _OpenRaidBossGroup02 = _o.OpenRaidBossGroup02 == null ? default(StringOffset) : builder.CreateString(_o.OpenRaidBossGroup02); + var _OpenRaidBossGroup03 = _o.OpenRaidBossGroup03 == null ? default(StringOffset) : builder.CreateString(_o.OpenRaidBossGroup03); + var _StackedSeasonRewardGauge = default(VectorOffset); + if (_o.StackedSeasonRewardGauge != null) { + var __StackedSeasonRewardGauge = _o.StackedSeasonRewardGauge.ToArray(); + _StackedSeasonRewardGauge = CreateStackedSeasonRewardGaugeVector(builder, __StackedSeasonRewardGauge); + } + var _SeasonRewardId = default(VectorOffset); + if (_o.SeasonRewardId != null) { + var __SeasonRewardId = _o.SeasonRewardId.ToArray(); + _SeasonRewardId = CreateSeasonRewardIdVector(builder, __SeasonRewardId); + } + return CreateEliminateRaidSeasonManageExcel( + builder, + _o.SeasonId, + _o.SeasonDisplay, + _SeasonStartData, + _SeasonEndData, + _SettlementEndDate, + _LobbyTableBGPath, + _LobbyScreenBGPath, + _OpenRaidBossGroup01, + _OpenRaidBossGroup02, + _OpenRaidBossGroup03, + _o.RankingRewardGroupId, + _o.MaxSeasonRewardGauage, + _StackedSeasonRewardGauge, + _SeasonRewardId, + _o.LimitedRewardIdNormal, + _o.LimitedRewardIdHard, + _o.LimitedRewardIdVeryhard, + _o.LimitedRewardIdHardcore, + _o.LimitedRewardIdExtreme, + _o.LimitedRewardIdInsane, + _o.LimitedRewardIdTorment); + } +} + +public class EliminateRaidSeasonManageExcelT +{ + public long SeasonId { get; set; } + public long SeasonDisplay { get; set; } + public string SeasonStartData { get; set; } + public string SeasonEndData { get; set; } + public string SettlementEndDate { get; set; } + public string LobbyTableBGPath { get; set; } + public string LobbyScreenBGPath { get; set; } + public string OpenRaidBossGroup01 { get; set; } + public string OpenRaidBossGroup02 { get; set; } + public string OpenRaidBossGroup03 { get; set; } + public long RankingRewardGroupId { get; set; } + public int MaxSeasonRewardGauage { get; set; } + public List StackedSeasonRewardGauge { get; set; } + public List SeasonRewardId { get; set; } + public long LimitedRewardIdNormal { get; set; } + public long LimitedRewardIdHard { get; set; } + public long LimitedRewardIdVeryhard { get; set; } + public long LimitedRewardIdHardcore { get; set; } + public long LimitedRewardIdExtreme { get; set; } + public long LimitedRewardIdInsane { get; set; } + public long LimitedRewardIdTorment { get; set; } + + public EliminateRaidSeasonManageExcelT() { + this.SeasonId = 0; + this.SeasonDisplay = 0; + this.SeasonStartData = null; + this.SeasonEndData = null; + this.SettlementEndDate = null; + this.LobbyTableBGPath = null; + this.LobbyScreenBGPath = null; + this.OpenRaidBossGroup01 = null; + this.OpenRaidBossGroup02 = null; + this.OpenRaidBossGroup03 = null; + this.RankingRewardGroupId = 0; + this.MaxSeasonRewardGauage = 0; + this.StackedSeasonRewardGauge = null; + this.SeasonRewardId = null; + this.LimitedRewardIdNormal = 0; + this.LimitedRewardIdHard = 0; + this.LimitedRewardIdVeryhard = 0; + this.LimitedRewardIdHardcore = 0; + this.LimitedRewardIdExtreme = 0; + this.LimitedRewardIdInsane = 0; + this.LimitedRewardIdTorment = 0; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs index 6ab150f..3a7d083 100644 --- a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidSeasonManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidSeasonManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidSeasonManageExcelTableT UnPack() { + var _o = new EliminateRaidSeasonManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidSeasonManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidSeasonManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidSeasonManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidSeasonManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidSeasonManageExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidSeasonManageExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidSeasonManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs index f9a152c..35a7c35 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageExcel : IFlatbufferObject @@ -276,6 +277,215 @@ public struct EliminateRaidStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageExcelT UnPack() { + var _o = new EliminateRaidStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.UseBossIndex = TableEncryptionService.Convert(this.UseBossIndex, key); + _o.UseBossAIPhaseSync = TableEncryptionService.Convert(this.UseBossAIPhaseSync, key); + _o.RaidBossGroup = TableEncryptionService.Convert(this.RaidBossGroup, key); + _o.RaidEnterCostType = TableEncryptionService.Convert(this.RaidEnterCostType, key); + _o.RaidEnterCostId = TableEncryptionService.Convert(this.RaidEnterCostId, key); + _o.RaidEnterCostAmount = TableEncryptionService.Convert(this.RaidEnterCostAmount, key); + _o.BossSpinePath = TableEncryptionService.Convert(this.BossSpinePath, key); + _o.PortraitPath = TableEncryptionService.Convert(this.PortraitPath, key); + _o.BGPath = TableEncryptionService.Convert(this.BGPath, key); + _o.RaidCharacterId = TableEncryptionService.Convert(this.RaidCharacterId, key); + _o.BossCharacterId = new List(); + for (var _j = 0; _j < this.BossCharacterIdLength; ++_j) {_o.BossCharacterId.Add(TableEncryptionService.Convert(this.BossCharacterId(_j), key));} + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.IsOpen = TableEncryptionService.Convert(this.IsOpen, key); + _o.MaxPlayerCount = TableEncryptionService.Convert(this.MaxPlayerCount, key); + _o.RaidRoomLifeTime = TableEncryptionService.Convert(this.RaidRoomLifeTime, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.GroundDevName = TableEncryptionService.Convert(this.GroundDevName, key); + _o.EnterTimeLine = TableEncryptionService.Convert(this.EnterTimeLine, key); + _o.TacticEnvironment = TableEncryptionService.Convert(this.TacticEnvironment, key); + _o.DefaultClearScore = TableEncryptionService.Convert(this.DefaultClearScore, key); + _o.MaximumScore = TableEncryptionService.Convert(this.MaximumScore, key); + _o.PerSecondMinusScore = TableEncryptionService.Convert(this.PerSecondMinusScore, key); + _o.HPPercentScore = TableEncryptionService.Convert(this.HPPercentScore, key); + _o.MinimumAcquisitionScore = TableEncryptionService.Convert(this.MinimumAcquisitionScore, key); + _o.MaximumAcquisitionScore = TableEncryptionService.Convert(this.MaximumAcquisitionScore, key); + _o.RaidRewardGroupId = TableEncryptionService.Convert(this.RaidRewardGroupId, key); + _o.BattleReadyTimelinePath = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePathLength; ++_j) {_o.BattleReadyTimelinePath.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePath(_j), key));} + _o.BattleReadyTimelinePhaseStart = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseStartLength; ++_j) {_o.BattleReadyTimelinePhaseStart.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseStart(_j), key));} + _o.BattleReadyTimelinePhaseEnd = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseEndLength; ++_j) {_o.BattleReadyTimelinePhaseEnd.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseEnd(_j), key));} + _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); + _o.PhaseChangeTimelinePath = TableEncryptionService.Convert(this.PhaseChangeTimelinePath, key); + _o.TimeLinePhase = TableEncryptionService.Convert(this.TimeLinePhase, key); + _o.EnterScenarioKey = TableEncryptionService.Convert(this.EnterScenarioKey, key); + _o.ClearScenarioKey = TableEncryptionService.Convert(this.ClearScenarioKey, key); + _o.ShowSkillCard = TableEncryptionService.Convert(this.ShowSkillCard, key); + _o.BossBGInfoKey = TableEncryptionService.Convert(this.BossBGInfoKey, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageExcelT _o) { + if (_o == null) return default(Offset); + var _RaidBossGroup = _o.RaidBossGroup == null ? default(StringOffset) : builder.CreateString(_o.RaidBossGroup); + var _BossSpinePath = _o.BossSpinePath == null ? default(StringOffset) : builder.CreateString(_o.BossSpinePath); + var _PortraitPath = _o.PortraitPath == null ? default(StringOffset) : builder.CreateString(_o.PortraitPath); + var _BGPath = _o.BGPath == null ? default(StringOffset) : builder.CreateString(_o.BGPath); + var _BossCharacterId = default(VectorOffset); + if (_o.BossCharacterId != null) { + var __BossCharacterId = _o.BossCharacterId.ToArray(); + _BossCharacterId = CreateBossCharacterIdVector(builder, __BossCharacterId); + } + var _GroundDevName = _o.GroundDevName == null ? default(StringOffset) : builder.CreateString(_o.GroundDevName); + var _EnterTimeLine = _o.EnterTimeLine == null ? default(StringOffset) : builder.CreateString(_o.EnterTimeLine); + var _BattleReadyTimelinePath = default(VectorOffset); + if (_o.BattleReadyTimelinePath != null) { + var __BattleReadyTimelinePath = new StringOffset[_o.BattleReadyTimelinePath.Count]; + for (var _j = 0; _j < __BattleReadyTimelinePath.Length; ++_j) { __BattleReadyTimelinePath[_j] = builder.CreateString(_o.BattleReadyTimelinePath[_j]); } + _BattleReadyTimelinePath = CreateBattleReadyTimelinePathVector(builder, __BattleReadyTimelinePath); + } + var _BattleReadyTimelinePhaseStart = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseStart != null) { + var __BattleReadyTimelinePhaseStart = _o.BattleReadyTimelinePhaseStart.ToArray(); + _BattleReadyTimelinePhaseStart = CreateBattleReadyTimelinePhaseStartVector(builder, __BattleReadyTimelinePhaseStart); + } + var _BattleReadyTimelinePhaseEnd = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseEnd != null) { + var __BattleReadyTimelinePhaseEnd = _o.BattleReadyTimelinePhaseEnd.ToArray(); + _BattleReadyTimelinePhaseEnd = CreateBattleReadyTimelinePhaseEndVector(builder, __BattleReadyTimelinePhaseEnd); + } + var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); + var _PhaseChangeTimelinePath = _o.PhaseChangeTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.PhaseChangeTimelinePath); + return CreateEliminateRaidStageExcel( + builder, + _o.Id, + _o.UseBossIndex, + _o.UseBossAIPhaseSync, + _RaidBossGroup, + _o.RaidEnterCostType, + _o.RaidEnterCostId, + _o.RaidEnterCostAmount, + _BossSpinePath, + _PortraitPath, + _BGPath, + _o.RaidCharacterId, + _BossCharacterId, + _o.Difficulty, + _o.IsOpen, + _o.MaxPlayerCount, + _o.RaidRoomLifeTime, + _o.BattleDuration, + _o.GroundId, + _GroundDevName, + _EnterTimeLine, + _o.TacticEnvironment, + _o.DefaultClearScore, + _o.MaximumScore, + _o.PerSecondMinusScore, + _o.HPPercentScore, + _o.MinimumAcquisitionScore, + _o.MaximumAcquisitionScore, + _o.RaidRewardGroupId, + _BattleReadyTimelinePath, + _BattleReadyTimelinePhaseStart, + _BattleReadyTimelinePhaseEnd, + _VictoryTimelinePath, + _PhaseChangeTimelinePath, + _o.TimeLinePhase, + _o.EnterScenarioKey, + _o.ClearScenarioKey, + _o.ShowSkillCard, + _o.BossBGInfoKey, + _o.EchelonExtensionType); + } +} + +public class EliminateRaidStageExcelT +{ + public long Id { get; set; } + public bool UseBossIndex { get; set; } + public bool UseBossAIPhaseSync { get; set; } + public string RaidBossGroup { get; set; } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get; set; } + public long RaidEnterCostId { get; set; } + public int RaidEnterCostAmount { get; set; } + public string BossSpinePath { get; set; } + public string PortraitPath { get; set; } + public string BGPath { get; set; } + public long RaidCharacterId { get; set; } + public List BossCharacterId { get; set; } + public SCHALE.Common.FlatData.Difficulty Difficulty { get; set; } + public bool IsOpen { get; set; } + public long MaxPlayerCount { get; set; } + public int RaidRoomLifeTime { get; set; } + public long BattleDuration { get; set; } + public long GroundId { get; set; } + public string GroundDevName { get; set; } + public string EnterTimeLine { get; set; } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment { get; set; } + public long DefaultClearScore { get; set; } + public long MaximumScore { get; set; } + public long PerSecondMinusScore { get; set; } + public long HPPercentScore { get; set; } + public long MinimumAcquisitionScore { get; set; } + public long MaximumAcquisitionScore { get; set; } + public long RaidRewardGroupId { get; set; } + public List BattleReadyTimelinePath { get; set; } + public List BattleReadyTimelinePhaseStart { get; set; } + public List BattleReadyTimelinePhaseEnd { get; set; } + public string VictoryTimelinePath { get; set; } + public string PhaseChangeTimelinePath { get; set; } + public long TimeLinePhase { get; set; } + public uint EnterScenarioKey { get; set; } + public uint ClearScenarioKey { get; set; } + public bool ShowSkillCard { get; set; } + public uint BossBGInfoKey { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public EliminateRaidStageExcelT() { + this.Id = 0; + this.UseBossIndex = false; + this.UseBossAIPhaseSync = false; + this.RaidBossGroup = null; + this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.RaidEnterCostId = 0; + this.RaidEnterCostAmount = 0; + this.BossSpinePath = null; + this.PortraitPath = null; + this.BGPath = null; + this.RaidCharacterId = 0; + this.BossCharacterId = null; + this.Difficulty = SCHALE.Common.FlatData.Difficulty.Normal; + this.IsOpen = false; + this.MaxPlayerCount = 0; + this.RaidRoomLifeTime = 0; + this.BattleDuration = 0; + this.GroundId = 0; + this.GroundDevName = null; + this.EnterTimeLine = null; + this.TacticEnvironment = SCHALE.Common.FlatData.TacticEnvironment.None; + this.DefaultClearScore = 0; + this.MaximumScore = 0; + this.PerSecondMinusScore = 0; + this.HPPercentScore = 0; + this.MinimumAcquisitionScore = 0; + this.MaximumAcquisitionScore = 0; + this.RaidRewardGroupId = 0; + this.BattleReadyTimelinePath = null; + this.BattleReadyTimelinePhaseStart = null; + this.BattleReadyTimelinePhaseEnd = null; + this.VictoryTimelinePath = null; + this.PhaseChangeTimelinePath = null; + this.TimeLinePhase = 0; + this.EnterScenarioKey = 0; + this.ClearScenarioKey = 0; + this.ShowSkillCard = false; + this.BossBGInfoKey = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs index 63f00e8..b333ba9 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageExcelTableT UnPack() { + var _o = new EliminateRaidStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidStageExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidStageExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs index ede8f95..1fdcc27 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageLimitedRewardExcel : IFlatbufferObject @@ -82,6 +83,60 @@ public struct EliminateRaidStageLimitedRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageLimitedRewardExcelT UnPack() { + var _o = new EliminateRaidStageLimitedRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageLimitedRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageLimitedReward"); + _o.LimitedRewardId = TableEncryptionService.Convert(this.LimitedRewardId, key); + _o.LimitedRewardParcelType = new List(); + for (var _j = 0; _j < this.LimitedRewardParcelTypeLength; ++_j) {_o.LimitedRewardParcelType.Add(TableEncryptionService.Convert(this.LimitedRewardParcelType(_j), key));} + _o.LimitedRewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.LimitedRewardParcelUniqueIdLength; ++_j) {_o.LimitedRewardParcelUniqueId.Add(TableEncryptionService.Convert(this.LimitedRewardParcelUniqueId(_j), key));} + _o.LimitedRewardAmount = new List(); + for (var _j = 0; _j < this.LimitedRewardAmountLength; ++_j) {_o.LimitedRewardAmount.Add(TableEncryptionService.Convert(this.LimitedRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageLimitedRewardExcelT _o) { + if (_o == null) return default(Offset); + var _LimitedRewardParcelType = default(VectorOffset); + if (_o.LimitedRewardParcelType != null) { + var __LimitedRewardParcelType = _o.LimitedRewardParcelType.ToArray(); + _LimitedRewardParcelType = CreateLimitedRewardParcelTypeVector(builder, __LimitedRewardParcelType); + } + var _LimitedRewardParcelUniqueId = default(VectorOffset); + if (_o.LimitedRewardParcelUniqueId != null) { + var __LimitedRewardParcelUniqueId = _o.LimitedRewardParcelUniqueId.ToArray(); + _LimitedRewardParcelUniqueId = CreateLimitedRewardParcelUniqueIdVector(builder, __LimitedRewardParcelUniqueId); + } + var _LimitedRewardAmount = default(VectorOffset); + if (_o.LimitedRewardAmount != null) { + var __LimitedRewardAmount = _o.LimitedRewardAmount.ToArray(); + _LimitedRewardAmount = CreateLimitedRewardAmountVector(builder, __LimitedRewardAmount); + } + return CreateEliminateRaidStageLimitedRewardExcel( + builder, + _o.LimitedRewardId, + _LimitedRewardParcelType, + _LimitedRewardParcelUniqueId, + _LimitedRewardAmount); + } +} + +public class EliminateRaidStageLimitedRewardExcelT +{ + public long LimitedRewardId { get; set; } + public List LimitedRewardParcelType { get; set; } + public List LimitedRewardParcelUniqueId { get; set; } + public List LimitedRewardAmount { get; set; } + + public EliminateRaidStageLimitedRewardExcelT() { + this.LimitedRewardId = 0; + this.LimitedRewardParcelType = null; + this.LimitedRewardParcelUniqueId = null; + this.LimitedRewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs index de2812d..7e80b1b 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageLimitedRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidStageLimitedRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageLimitedRewardExcelTableT UnPack() { + var _o = new EliminateRaidStageLimitedRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageLimitedRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageLimitedRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageLimitedRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidStageLimitedRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidStageLimitedRewardExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidStageLimitedRewardExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidStageLimitedRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs index 7f6b619..73a8c92 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageRewardExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct EliminateRaidStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageRewardExcelT UnPack() { + var _o = new EliminateRaidStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.IsClearStageRewardHideInfo = TableEncryptionService.Convert(this.IsClearStageRewardHideInfo, key); + _o.ClearStageRewardProb = TableEncryptionService.Convert(this.ClearStageRewardProb, key); + _o.ClearStageRewardParcelType = TableEncryptionService.Convert(this.ClearStageRewardParcelType, key); + _o.ClearStageRewardParcelUniqueID = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueID, key); + _o.ClearStageRewardParcelUniqueName = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueName, key); + _o.ClearStageRewardAmount = TableEncryptionService.Convert(this.ClearStageRewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageRewardExcelT _o) { + if (_o == null) return default(Offset); + var _ClearStageRewardParcelUniqueName = _o.ClearStageRewardParcelUniqueName == null ? default(StringOffset) : builder.CreateString(_o.ClearStageRewardParcelUniqueName); + return CreateEliminateRaidStageRewardExcel( + builder, + _o.GroupId, + _o.IsClearStageRewardHideInfo, + _o.ClearStageRewardProb, + _o.ClearStageRewardParcelType, + _o.ClearStageRewardParcelUniqueID, + _ClearStageRewardParcelUniqueName, + _o.ClearStageRewardAmount); + } +} + +public class EliminateRaidStageRewardExcelT +{ + public long GroupId { get; set; } + public bool IsClearStageRewardHideInfo { get; set; } + public long ClearStageRewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get; set; } + public long ClearStageRewardParcelUniqueID { get; set; } + public string ClearStageRewardParcelUniqueName { get; set; } + public long ClearStageRewardAmount { get; set; } + + public EliminateRaidStageRewardExcelT() { + this.GroupId = 0; + this.IsClearStageRewardHideInfo = false; + this.ClearStageRewardProb = 0; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelUniqueID = 0; + this.ClearStageRewardParcelUniqueName = null; + this.ClearStageRewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs index 76a3671..072f5b9 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageRewardExcelTableT UnPack() { + var _o = new EliminateRaidStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidStageRewardExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidStageRewardExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs index 26900eb..0a2123d 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageSeasonRewardExcel : IFlatbufferObject @@ -92,6 +93,71 @@ public struct EliminateRaidStageSeasonRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageSeasonRewardExcelT UnPack() { + var _o = new EliminateRaidStageSeasonRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageSeasonRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageSeasonReward"); + _o.SeasonRewardId = TableEncryptionService.Convert(this.SeasonRewardId, key); + _o.SeasonRewardParcelType = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelTypeLength; ++_j) {_o.SeasonRewardParcelType.Add(TableEncryptionService.Convert(this.SeasonRewardParcelType(_j), key));} + _o.SeasonRewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelUniqueIdLength; ++_j) {_o.SeasonRewardParcelUniqueId.Add(TableEncryptionService.Convert(this.SeasonRewardParcelUniqueId(_j), key));} + _o.SeasonRewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelUniqueNameLength; ++_j) {_o.SeasonRewardParcelUniqueName.Add(TableEncryptionService.Convert(this.SeasonRewardParcelUniqueName(_j), key));} + _o.SeasonRewardAmount = new List(); + for (var _j = 0; _j < this.SeasonRewardAmountLength; ++_j) {_o.SeasonRewardAmount.Add(TableEncryptionService.Convert(this.SeasonRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageSeasonRewardExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonRewardParcelType = default(VectorOffset); + if (_o.SeasonRewardParcelType != null) { + var __SeasonRewardParcelType = _o.SeasonRewardParcelType.ToArray(); + _SeasonRewardParcelType = CreateSeasonRewardParcelTypeVector(builder, __SeasonRewardParcelType); + } + var _SeasonRewardParcelUniqueId = default(VectorOffset); + if (_o.SeasonRewardParcelUniqueId != null) { + var __SeasonRewardParcelUniqueId = _o.SeasonRewardParcelUniqueId.ToArray(); + _SeasonRewardParcelUniqueId = CreateSeasonRewardParcelUniqueIdVector(builder, __SeasonRewardParcelUniqueId); + } + var _SeasonRewardParcelUniqueName = default(VectorOffset); + if (_o.SeasonRewardParcelUniqueName != null) { + var __SeasonRewardParcelUniqueName = new StringOffset[_o.SeasonRewardParcelUniqueName.Count]; + for (var _j = 0; _j < __SeasonRewardParcelUniqueName.Length; ++_j) { __SeasonRewardParcelUniqueName[_j] = builder.CreateString(_o.SeasonRewardParcelUniqueName[_j]); } + _SeasonRewardParcelUniqueName = CreateSeasonRewardParcelUniqueNameVector(builder, __SeasonRewardParcelUniqueName); + } + var _SeasonRewardAmount = default(VectorOffset); + if (_o.SeasonRewardAmount != null) { + var __SeasonRewardAmount = _o.SeasonRewardAmount.ToArray(); + _SeasonRewardAmount = CreateSeasonRewardAmountVector(builder, __SeasonRewardAmount); + } + return CreateEliminateRaidStageSeasonRewardExcel( + builder, + _o.SeasonRewardId, + _SeasonRewardParcelType, + _SeasonRewardParcelUniqueId, + _SeasonRewardParcelUniqueName, + _SeasonRewardAmount); + } +} + +public class EliminateRaidStageSeasonRewardExcelT +{ + public long SeasonRewardId { get; set; } + public List SeasonRewardParcelType { get; set; } + public List SeasonRewardParcelUniqueId { get; set; } + public List SeasonRewardParcelUniqueName { get; set; } + public List SeasonRewardAmount { get; set; } + + public EliminateRaidStageSeasonRewardExcelT() { + this.SeasonRewardId = 0; + this.SeasonRewardParcelType = null; + this.SeasonRewardParcelUniqueId = null; + this.SeasonRewardParcelUniqueName = null; + this.SeasonRewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs index 0a60cbd..61db051 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EliminateRaidStageSeasonRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EliminateRaidStageSeasonRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EliminateRaidStageSeasonRewardExcelTableT UnPack() { + var _o = new EliminateRaidStageSeasonRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EliminateRaidStageSeasonRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EliminateRaidStageSeasonRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EliminateRaidStageSeasonRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EliminateRaidStageSeasonRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEliminateRaidStageSeasonRewardExcelTable( + builder, + _DataList); + } +} + +public class EliminateRaidStageSeasonRewardExcelTableT +{ + public List DataList { get; set; } + + public EliminateRaidStageSeasonRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EmblemExcel.cs b/SCHALE.Common/FlatData/EmblemExcel.cs index ca3174b..8b1e6a3 100644 --- a/SCHALE.Common/FlatData/EmblemExcel.cs +++ b/SCHALE.Common/FlatData/EmblemExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EmblemExcel : IFlatbufferObject @@ -156,6 +157,117 @@ public struct EmblemExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EmblemExcelT UnPack() { + var _o = new EmblemExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EmblemExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Emblem"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + _o.UseAtLocalizeId = TableEncryptionService.Convert(this.UseAtLocalizeId, key); + _o.EmblemTextVisible = TableEncryptionService.Convert(this.EmblemTextVisible, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.EmblemIconPath = TableEncryptionService.Convert(this.EmblemIconPath, key); + _o.EmblemIconNumControl = TableEncryptionService.Convert(this.EmblemIconNumControl, key); + _o.EmblemIconBGPath = TableEncryptionService.Convert(this.EmblemIconBGPath, key); + _o.EmblemBGPathJp = TableEncryptionService.Convert(this.EmblemBGPathJp, key); + _o.EmblemBGPathKr = TableEncryptionService.Convert(this.EmblemBGPathKr, key); + _o.DisplayType = TableEncryptionService.Convert(this.DisplayType, key); + _o.DisplayStartDate = TableEncryptionService.Convert(this.DisplayStartDate, key); + _o.DisplayEndDate = TableEncryptionService.Convert(this.DisplayEndDate, key); + _o.DislpayFavorLevel = TableEncryptionService.Convert(this.DislpayFavorLevel, key); + _o.CheckPassType = TableEncryptionService.Convert(this.CheckPassType, key); + _o.EmblemParameter = TableEncryptionService.Convert(this.EmblemParameter, key); + _o.CheckPassCount = TableEncryptionService.Convert(this.CheckPassCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, EmblemExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _EmblemIconPath = _o.EmblemIconPath == null ? default(StringOffset) : builder.CreateString(_o.EmblemIconPath); + var _EmblemIconBGPath = _o.EmblemIconBGPath == null ? default(StringOffset) : builder.CreateString(_o.EmblemIconBGPath); + var _EmblemBGPathJp = _o.EmblemBGPathJp == null ? default(StringOffset) : builder.CreateString(_o.EmblemBGPathJp); + var _EmblemBGPathKr = _o.EmblemBGPathKr == null ? default(StringOffset) : builder.CreateString(_o.EmblemBGPathKr); + var _DisplayStartDate = _o.DisplayStartDate == null ? default(StringOffset) : builder.CreateString(_o.DisplayStartDate); + var _DisplayEndDate = _o.DisplayEndDate == null ? default(StringOffset) : builder.CreateString(_o.DisplayEndDate); + return CreateEmblemExcel( + builder, + _o.Id, + _o.Category, + _o.Rarity, + _o.DisplayOrder, + _o.LocalizeEtcId, + _o.LocalizeCodeId, + _o.UseAtLocalizeId, + _o.EmblemTextVisible, + _IconPath, + _EmblemIconPath, + _o.EmblemIconNumControl, + _EmblemIconBGPath, + _EmblemBGPathJp, + _EmblemBGPathKr, + _o.DisplayType, + _DisplayStartDate, + _DisplayEndDate, + _o.DislpayFavorLevel, + _o.CheckPassType, + _o.EmblemParameter, + _o.CheckPassCount); + } +} + +public class EmblemExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.EmblemCategory Category { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public long DisplayOrder { get; set; } + public uint LocalizeEtcId { get; set; } + public uint LocalizeCodeId { get; set; } + public long UseAtLocalizeId { get; set; } + public bool EmblemTextVisible { get; set; } + public string IconPath { get; set; } + public string EmblemIconPath { get; set; } + public int EmblemIconNumControl { get; set; } + public string EmblemIconBGPath { get; set; } + public string EmblemBGPathJp { get; set; } + public string EmblemBGPathKr { get; set; } + public SCHALE.Common.FlatData.EmblemDisplayType DisplayType { get; set; } + public string DisplayStartDate { get; set; } + public string DisplayEndDate { get; set; } + public int DislpayFavorLevel { get; set; } + public SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType { get; set; } + public long EmblemParameter { get; set; } + public long CheckPassCount { get; set; } + + public EmblemExcelT() { + this.Id = 0; + this.Category = SCHALE.Common.FlatData.EmblemCategory.None; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.DisplayOrder = 0; + this.LocalizeEtcId = 0; + this.LocalizeCodeId = 0; + this.UseAtLocalizeId = 0; + this.EmblemTextVisible = false; + this.IconPath = null; + this.EmblemIconPath = null; + this.EmblemIconNumControl = 0; + this.EmblemIconBGPath = null; + this.EmblemBGPathJp = null; + this.EmblemBGPathKr = null; + this.DisplayType = SCHALE.Common.FlatData.EmblemDisplayType.Always; + this.DisplayStartDate = null; + this.DisplayEndDate = null; + this.DislpayFavorLevel = 0; + this.CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None; + this.EmblemParameter = 0; + this.CheckPassCount = 0; + } } diff --git a/SCHALE.Common/FlatData/EmblemExcelTable.cs b/SCHALE.Common/FlatData/EmblemExcelTable.cs index 40c4b85..e1ab8d2 100644 --- a/SCHALE.Common/FlatData/EmblemExcelTable.cs +++ b/SCHALE.Common/FlatData/EmblemExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EmblemExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EmblemExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EmblemExcelTableT UnPack() { + var _o = new EmblemExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EmblemExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EmblemExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EmblemExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EmblemExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEmblemExcelTable( + builder, + _DataList); + } +} + +public class EmblemExcelTableT +{ + public List DataList { get; set; } + + public EmblemExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs b/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs index 1951aad..30f50a6 100644 --- a/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs +++ b/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EmoticonSpecialExcel : IFlatbufferObject @@ -48,6 +49,39 @@ public struct EmoticonSpecialExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EmoticonSpecialExcelT UnPack() { + var _o = new EmoticonSpecialExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EmoticonSpecialExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EmoticonSpecial"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.CharacterUniqueId = TableEncryptionService.Convert(this.CharacterUniqueId, key); + _o.Random = TableEncryptionService.Convert(this.Random, key); + } + public static Offset Pack(FlatBufferBuilder builder, EmoticonSpecialExcelT _o) { + if (_o == null) return default(Offset); + var _Random = _o.Random == null ? default(StringOffset) : builder.CreateString(_o.Random); + return CreateEmoticonSpecialExcel( + builder, + _o.UniqueId, + _o.CharacterUniqueId, + _Random); + } +} + +public class EmoticonSpecialExcelT +{ + public long UniqueId { get; set; } + public long CharacterUniqueId { get; set; } + public string Random { get; set; } + + public EmoticonSpecialExcelT() { + this.UniqueId = 0; + this.CharacterUniqueId = 0; + this.Random = null; + } } diff --git a/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs b/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs index 8668d24..d159f8c 100644 --- a/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs +++ b/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EmoticonSpecialExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EmoticonSpecialExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EmoticonSpecialExcelTableT UnPack() { + var _o = new EmoticonSpecialExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EmoticonSpecialExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EmoticonSpecialExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EmoticonSpecialExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EmoticonSpecialExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEmoticonSpecialExcelTable( + builder, + _DataList); + } +} + +public class EmoticonSpecialExcelTableT +{ + public List DataList { get; set; } + + public EmoticonSpecialExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EquipmentExcel.cs b/SCHALE.Common/FlatData/EquipmentExcel.cs index c269009..85d0f50 100644 --- a/SCHALE.Common/FlatData/EquipmentExcel.cs +++ b/SCHALE.Common/FlatData/EquipmentExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentExcel : IFlatbufferObject @@ -142,6 +143,116 @@ public struct EquipmentExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentExcelT UnPack() { + var _o = new EquipmentExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Equipment"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EquipmentCategory = TableEncryptionService.Convert(this.EquipmentCategory, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.Wear = TableEncryptionService.Convert(this.Wear, key); + _o.MaxLevel = TableEncryptionService.Convert(this.MaxLevel, key); + _o.RecipeId = TableEncryptionService.Convert(this.RecipeId, key); + _o.TierInit = TableEncryptionService.Convert(this.TierInit, key); + _o.NextTierEquipment = TableEncryptionService.Convert(this.NextTierEquipment, key); + _o.StackableMax = TableEncryptionService.Convert(this.StackableMax, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.ImageName = TableEncryptionService.Convert(this.ImageName, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.CraftQualityTier0 = TableEncryptionService.Convert(this.CraftQualityTier0, key); + _o.CraftQualityTier1 = TableEncryptionService.Convert(this.CraftQualityTier1, key); + _o.CraftQualityTier2 = TableEncryptionService.Convert(this.CraftQualityTier2, key); + _o.ShiftingCraftQuality = TableEncryptionService.Convert(this.ShiftingCraftQuality, key); + _o.ShopCategory = new List(); + for (var _j = 0; _j < this.ShopCategoryLength; ++_j) {_o.ShopCategory.Add(TableEncryptionService.Convert(this.ShopCategory(_j), key));} + _o.ShortcutTypeId = TableEncryptionService.Convert(this.ShortcutTypeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentExcelT _o) { + if (_o == null) return default(Offset); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _ImageName = _o.ImageName == null ? default(StringOffset) : builder.CreateString(_o.ImageName); + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + var _ShopCategory = default(VectorOffset); + if (_o.ShopCategory != null) { + var __ShopCategory = _o.ShopCategory.ToArray(); + _ShopCategory = CreateShopCategoryVector(builder, __ShopCategory); + } + return CreateEquipmentExcel( + builder, + _o.Id, + _o.EquipmentCategory, + _o.Rarity, + _o.LocalizeEtcId, + _o.Wear, + _o.MaxLevel, + _o.RecipeId, + _o.TierInit, + _o.NextTierEquipment, + _o.StackableMax, + _Icon, + _ImageName, + _Tags, + _o.CraftQualityTier0, + _o.CraftQualityTier1, + _o.CraftQualityTier2, + _o.ShiftingCraftQuality, + _ShopCategory, + _o.ShortcutTypeId); + } +} + +public class EquipmentExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public uint LocalizeEtcId { get; set; } + public bool Wear { get; set; } + public int MaxLevel { get; set; } + public int RecipeId { get; set; } + public long TierInit { get; set; } + public long NextTierEquipment { get; set; } + public int StackableMax { get; set; } + public string Icon { get; set; } + public string ImageName { get; set; } + public List Tags { get; set; } + public long CraftQualityTier0 { get; set; } + public long CraftQualityTier1 { get; set; } + public long CraftQualityTier2 { get; set; } + public long ShiftingCraftQuality { get; set; } + public List ShopCategory { get; set; } + public long ShortcutTypeId { get; set; } + + public EquipmentExcelT() { + this.Id = 0; + this.EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.LocalizeEtcId = 0; + this.Wear = false; + this.MaxLevel = 0; + this.RecipeId = 0; + this.TierInit = 0; + this.NextTierEquipment = 0; + this.StackableMax = 0; + this.Icon = null; + this.ImageName = null; + this.Tags = null; + this.CraftQualityTier0 = 0; + this.CraftQualityTier1 = 0; + this.CraftQualityTier2 = 0; + this.ShiftingCraftQuality = 0; + this.ShopCategory = null; + this.ShortcutTypeId = 0; + } } diff --git a/SCHALE.Common/FlatData/EquipmentExcelTable.cs b/SCHALE.Common/FlatData/EquipmentExcelTable.cs index 3f62d16..0bc6c7c 100644 --- a/SCHALE.Common/FlatData/EquipmentExcelTable.cs +++ b/SCHALE.Common/FlatData/EquipmentExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EquipmentExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentExcelTableT UnPack() { + var _o = new EquipmentExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EquipmentExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EquipmentExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEquipmentExcelTable( + builder, + _DataList); + } +} + +public class EquipmentExcelTableT +{ + public List DataList { get; set; } + + public EquipmentExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EquipmentLevelExcel.cs b/SCHALE.Common/FlatData/EquipmentLevelExcel.cs index 2069aae..760d0a7 100644 --- a/SCHALE.Common/FlatData/EquipmentLevelExcel.cs +++ b/SCHALE.Common/FlatData/EquipmentLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentLevelExcel : IFlatbufferObject @@ -66,6 +67,50 @@ public struct EquipmentLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentLevelExcelT UnPack() { + var _o = new EquipmentLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EquipmentLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.TierLevelExp = new List(); + for (var _j = 0; _j < this.TierLevelExpLength; ++_j) {_o.TierLevelExp.Add(TableEncryptionService.Convert(this.TierLevelExp(_j), key));} + _o.TotalExp = new List(); + for (var _j = 0; _j < this.TotalExpLength; ++_j) {_o.TotalExp.Add(TableEncryptionService.Convert(this.TotalExp(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentLevelExcelT _o) { + if (_o == null) return default(Offset); + var _TierLevelExp = default(VectorOffset); + if (_o.TierLevelExp != null) { + var __TierLevelExp = _o.TierLevelExp.ToArray(); + _TierLevelExp = CreateTierLevelExpVector(builder, __TierLevelExp); + } + var _TotalExp = default(VectorOffset); + if (_o.TotalExp != null) { + var __TotalExp = _o.TotalExp.ToArray(); + _TotalExp = CreateTotalExpVector(builder, __TotalExp); + } + return CreateEquipmentLevelExcel( + builder, + _o.Level, + _TierLevelExp, + _TotalExp); + } +} + +public class EquipmentLevelExcelT +{ + public int Level { get; set; } + public List TierLevelExp { get; set; } + public List TotalExp { get; set; } + + public EquipmentLevelExcelT() { + this.Level = 0; + this.TierLevelExp = null; + this.TotalExp = null; + } } diff --git a/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs b/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs index 5d98323..dce3a88 100644 --- a/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EquipmentLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentLevelExcelTableT UnPack() { + var _o = new EquipmentLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EquipmentLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EquipmentLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEquipmentLevelExcelTable( + builder, + _DataList); + } +} + +public class EquipmentLevelExcelTableT +{ + public List DataList { get; set; } + + public EquipmentLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EquipmentStatExcel.cs b/SCHALE.Common/FlatData/EquipmentStatExcel.cs index b734c40..671da4f 100644 --- a/SCHALE.Common/FlatData/EquipmentStatExcel.cs +++ b/SCHALE.Common/FlatData/EquipmentStatExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentStatExcel : IFlatbufferObject @@ -128,6 +129,101 @@ public struct EquipmentStatExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentStatExcelT UnPack() { + var _o = new EquipmentStatExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentStatExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EquipmentStat"); + _o.EquipmentId = TableEncryptionService.Convert(this.EquipmentId, key); + _o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key); + _o.StatType = new List(); + for (var _j = 0; _j < this.StatTypeLength; ++_j) {_o.StatType.Add(TableEncryptionService.Convert(this.StatType(_j), key));} + _o.MinStat = new List(); + for (var _j = 0; _j < this.MinStatLength; ++_j) {_o.MinStat.Add(TableEncryptionService.Convert(this.MinStat(_j), key));} + _o.MaxStat = new List(); + for (var _j = 0; _j < this.MaxStatLength; ++_j) {_o.MaxStat.Add(TableEncryptionService.Convert(this.MaxStat(_j), key));} + _o.LevelUpInsertLimit = TableEncryptionService.Convert(this.LevelUpInsertLimit, key); + _o.LevelUpFeedExp = TableEncryptionService.Convert(this.LevelUpFeedExp, key); + _o.LevelUpFeedCostCurrency = TableEncryptionService.Convert(this.LevelUpFeedCostCurrency, key); + _o.LevelUpFeedCostAmount = TableEncryptionService.Convert(this.LevelUpFeedCostAmount, key); + _o.EquipmentCategory = TableEncryptionService.Convert(this.EquipmentCategory, key); + _o.LevelUpFeedAddExp = TableEncryptionService.Convert(this.LevelUpFeedAddExp, key); + _o.DefaultMaxLevel = TableEncryptionService.Convert(this.DefaultMaxLevel, key); + _o.TranscendenceMax = TableEncryptionService.Convert(this.TranscendenceMax, key); + _o.DamageFactorGroupId = TableEncryptionService.Convert(this.DamageFactorGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentStatExcelT _o) { + if (_o == null) return default(Offset); + var _StatType = default(VectorOffset); + if (_o.StatType != null) { + var __StatType = _o.StatType.ToArray(); + _StatType = CreateStatTypeVector(builder, __StatType); + } + var _MinStat = default(VectorOffset); + if (_o.MinStat != null) { + var __MinStat = _o.MinStat.ToArray(); + _MinStat = CreateMinStatVector(builder, __MinStat); + } + var _MaxStat = default(VectorOffset); + if (_o.MaxStat != null) { + var __MaxStat = _o.MaxStat.ToArray(); + _MaxStat = CreateMaxStatVector(builder, __MaxStat); + } + var _DamageFactorGroupId = _o.DamageFactorGroupId == null ? default(StringOffset) : builder.CreateString(_o.DamageFactorGroupId); + return CreateEquipmentStatExcel( + builder, + _o.EquipmentId, + _o.StatLevelUpType, + _StatType, + _MinStat, + _MaxStat, + _o.LevelUpInsertLimit, + _o.LevelUpFeedExp, + _o.LevelUpFeedCostCurrency, + _o.LevelUpFeedCostAmount, + _o.EquipmentCategory, + _o.LevelUpFeedAddExp, + _o.DefaultMaxLevel, + _o.TranscendenceMax, + _DamageFactorGroupId); + } +} + +public class EquipmentStatExcelT +{ + public long EquipmentId { get; set; } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; } + public List StatType { get; set; } + public List MinStat { get; set; } + public List MaxStat { get; set; } + public int LevelUpInsertLimit { get; set; } + public long LevelUpFeedExp { get; set; } + public SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency { get; set; } + public long LevelUpFeedCostAmount { get; set; } + public SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get; set; } + public long LevelUpFeedAddExp { get; set; } + public int DefaultMaxLevel { get; set; } + public int TranscendenceMax { get; set; } + public string DamageFactorGroupId { get; set; } + + public EquipmentStatExcelT() { + this.EquipmentId = 0; + this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard; + this.StatType = null; + this.MinStat = null; + this.MaxStat = null; + this.LevelUpInsertLimit = 0; + this.LevelUpFeedExp = 0; + this.LevelUpFeedCostCurrency = SCHALE.Common.FlatData.CurrencyTypes.Invalid; + this.LevelUpFeedCostAmount = 0; + this.EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable; + this.LevelUpFeedAddExp = 0; + this.DefaultMaxLevel = 0; + this.TranscendenceMax = 0; + this.DamageFactorGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs b/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs index c769cf7..bb5a645 100644 --- a/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs +++ b/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EquipmentStatExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EquipmentStatExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EquipmentStatExcelTableT UnPack() { + var _o = new EquipmentStatExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EquipmentStatExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EquipmentStatExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EquipmentStatExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EquipmentStatExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEquipmentStatExcelTable( + builder, + _DataList); + } +} + +public class EquipmentStatExcelTableT +{ + public List DataList { get; set; } + + public EquipmentStatExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventCollectionUnlockType.cs b/SCHALE.Common/FlatData/EventCollectionUnlockType.cs index 3640b3b..eddb938 100644 --- a/SCHALE.Common/FlatData/EventCollectionUnlockType.cs +++ b/SCHALE.Common/FlatData/EventCollectionUnlockType.cs @@ -16,6 +16,7 @@ public enum EventCollectionUnlockType : int DiceRaceConsumeDiceCount = 6, MinigameTBGThemaClear = 7, MinigameEnter = 8, + MinigameDreamMakerParameter = 9, }; diff --git a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs index c134480..dc90917 100644 --- a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs +++ b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentArchiveBannerOffsetExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct EventContentArchiveBannerOffsetExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentArchiveBannerOffsetExcelT UnPack() { + var _o = new EventContentArchiveBannerOffsetExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentArchiveBannerOffsetExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentArchiveBannerOffset"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.OffsetX = TableEncryptionService.Convert(this.OffsetX, key); + _o.OffsetY = TableEncryptionService.Convert(this.OffsetY, key); + _o.ScaleX = TableEncryptionService.Convert(this.ScaleX, key); + _o.ScaleY = TableEncryptionService.Convert(this.ScaleY, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentArchiveBannerOffsetExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentArchiveBannerOffsetExcel( + builder, + _o.EventContentId, + _o.OffsetX, + _o.OffsetY, + _o.ScaleX, + _o.ScaleY); + } +} + +public class EventContentArchiveBannerOffsetExcelT +{ + public long EventContentId { get; set; } + public float OffsetX { get; set; } + public float OffsetY { get; set; } + public float ScaleX { get; set; } + public float ScaleY { get; set; } + + public EventContentArchiveBannerOffsetExcelT() { + this.EventContentId = 0; + this.OffsetX = 0.0f; + this.OffsetY = 0.0f; + this.ScaleX = 0.0f; + this.ScaleY = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs index 8485e7d..2ad02c2 100644 --- a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentArchiveBannerOffsetExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentArchiveBannerOffsetExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentArchiveBannerOffsetExcelTableT UnPack() { + var _o = new EventContentArchiveBannerOffsetExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentArchiveBannerOffsetExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentArchiveBannerOffsetExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentArchiveBannerOffsetExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentArchiveBannerOffsetExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentArchiveBannerOffsetExcelTable( + builder, + _DataList); + } +} + +public class EventContentArchiveBannerOffsetExcelTableT +{ + public List DataList { get; set; } + + public EventContentArchiveBannerOffsetExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs index 45d4224..71ec54b 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaElementExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct EventContentBoxGachaElementExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaElementExcelT UnPack() { + var _o = new EventContentBoxGachaElementExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaElementExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaElement"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Round = TableEncryptionService.Convert(this.Round, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaElementExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentBoxGachaElementExcel( + builder, + _o.EventContentId, + _o.Id, + _o.Round, + _o.GroupId); + } +} + +public class EventContentBoxGachaElementExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public long Round { get; set; } + public long GroupId { get; set; } + + public EventContentBoxGachaElementExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.Round = 0; + this.GroupId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs index a88d864..2eb74a8 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaElementExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentBoxGachaElementExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaElementExcelTableT UnPack() { + var _o = new EventContentBoxGachaElementExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaElementExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaElementExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaElementExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentBoxGachaElementExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentBoxGachaElementExcelTable( + builder, + _DataList); + } +} + +public class EventContentBoxGachaElementExcelTableT +{ + public List DataList { get; set; } + + public EventContentBoxGachaElementExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs index 40440a3..cce8607 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaManageExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct EventContentBoxGachaManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaManageExcelT UnPack() { + var _o = new EventContentBoxGachaManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaManage"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Round = TableEncryptionService.Convert(this.Round, key); + _o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key); + _o.IsLoop = TableEncryptionService.Convert(this.IsLoop, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaManageExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentBoxGachaManageExcel( + builder, + _o.EventContentId, + _o.Round, + _o.GoodsId, + _o.IsLoop); + } +} + +public class EventContentBoxGachaManageExcelT +{ + public long EventContentId { get; set; } + public long Round { get; set; } + public long GoodsId { get; set; } + public bool IsLoop { get; set; } + + public EventContentBoxGachaManageExcelT() { + this.EventContentId = 0; + this.Round = 0; + this.GoodsId = 0; + this.IsLoop = false; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs index 4d0807e..ec4e5dc 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentBoxGachaManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaManageExcelTableT UnPack() { + var _o = new EventContentBoxGachaManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentBoxGachaManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentBoxGachaManageExcelTable( + builder, + _DataList); + } +} + +public class EventContentBoxGachaManageExcelTableT +{ + public List DataList { get; set; } + + public EventContentBoxGachaManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs index 641d6f4..67a9667 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaShopExcel : IFlatbufferObject @@ -74,6 +75,64 @@ public struct EventContentBoxGachaShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaShopExcelT UnPack() { + var _o = new EventContentBoxGachaShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaShop"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.GroupElementAmount = TableEncryptionService.Convert(this.GroupElementAmount, key); + _o.Round = TableEncryptionService.Convert(this.Round, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.IsPrize = TableEncryptionService.Convert(this.IsPrize, key); + _o.GoodsId = new List(); + for (var _j = 0; _j < this.GoodsIdLength; ++_j) {_o.GoodsId.Add(TableEncryptionService.Convert(this.GoodsId(_j), key));} + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaShopExcelT _o) { + if (_o == null) return default(Offset); + var _GoodsId = default(VectorOffset); + if (_o.GoodsId != null) { + var __GoodsId = _o.GoodsId.ToArray(); + _GoodsId = CreateGoodsIdVector(builder, __GoodsId); + } + return CreateEventContentBoxGachaShopExcel( + builder, + _o.EventContentId, + _o.GroupId, + _o.GroupElementAmount, + _o.Round, + _o.IsLegacy, + _o.IsPrize, + _GoodsId, + _o.DisplayOrder); + } +} + +public class EventContentBoxGachaShopExcelT +{ + public long EventContentId { get; set; } + public long GroupId { get; set; } + public long GroupElementAmount { get; set; } + public long Round { get; set; } + public bool IsLegacy { get; set; } + public bool IsPrize { get; set; } + public List GoodsId { get; set; } + public long DisplayOrder { get; set; } + + public EventContentBoxGachaShopExcelT() { + this.EventContentId = 0; + this.GroupId = 0; + this.GroupElementAmount = 0; + this.Round = 0; + this.IsLegacy = false; + this.IsPrize = false; + this.GoodsId = null; + this.DisplayOrder = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs index dd0bb8f..b340d4c 100644 --- a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBoxGachaShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentBoxGachaShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBoxGachaShopExcelTableT UnPack() { + var _o = new EventContentBoxGachaShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBoxGachaShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBoxGachaShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBoxGachaShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentBoxGachaShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentBoxGachaShopExcelTable( + builder, + _DataList); + } +} + +public class EventContentBoxGachaShopExcelTableT +{ + public List DataList { get; set; } + + public EventContentBoxGachaShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBuffExcel.cs b/SCHALE.Common/FlatData/EventContentBuffExcel.cs index a924c0e..f9422fa 100644 --- a/SCHALE.Common/FlatData/EventContentBuffExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBuffExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBuffExcel : IFlatbufferObject @@ -96,6 +97,73 @@ public struct EventContentBuffExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBuffExcelT UnPack() { + var _o = new EventContentBuffExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBuffExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBuff"); + _o.EventContentBuffId = TableEncryptionService.Convert(this.EventContentBuffId, key); + _o.IsBuff = TableEncryptionService.Convert(this.IsBuff, key); + _o.CharacterTag = TableEncryptionService.Convert(this.CharacterTag, key); + _o.EnumType = TableEncryptionService.Convert(this.EnumType, key); + _o.EnumTypeValue = new List(); + for (var _j = 0; _j < this.EnumTypeValueLength; ++_j) {_o.EnumTypeValue.Add(TableEncryptionService.Convert(this.EnumTypeValue(_j), key));} + _o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.SpriteName = TableEncryptionService.Convert(this.SpriteName, key); + _o.BuffDescriptionLocalizeCodeId = TableEncryptionService.Convert(this.BuffDescriptionLocalizeCodeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBuffExcelT _o) { + if (_o == null) return default(Offset); + var _EnumTypeValue = default(VectorOffset); + if (_o.EnumTypeValue != null) { + var __EnumTypeValue = new StringOffset[_o.EnumTypeValue.Count]; + for (var _j = 0; _j < __EnumTypeValue.Length; ++_j) { __EnumTypeValue[_j] = builder.CreateString(_o.EnumTypeValue[_j]); } + _EnumTypeValue = CreateEnumTypeValueVector(builder, __EnumTypeValue); + } + var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _SpriteName = _o.SpriteName == null ? default(StringOffset) : builder.CreateString(_o.SpriteName); + var _BuffDescriptionLocalizeCodeId = _o.BuffDescriptionLocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.BuffDescriptionLocalizeCodeId); + return CreateEventContentBuffExcel( + builder, + _o.EventContentBuffId, + _o.IsBuff, + _o.CharacterTag, + _o.EnumType, + _EnumTypeValue, + _SkillGroupId, + _IconPath, + _SpriteName, + _BuffDescriptionLocalizeCodeId); + } +} + +public class EventContentBuffExcelT +{ + public long EventContentBuffId { get; set; } + public bool IsBuff { get; set; } + public SCHALE.Common.FlatData.Tag CharacterTag { get; set; } + public SCHALE.Common.FlatData.EventContentBuffFindRule EnumType { get; set; } + public List EnumTypeValue { get; set; } + public string SkillGroupId { get; set; } + public string IconPath { get; set; } + public string SpriteName { get; set; } + public string BuffDescriptionLocalizeCodeId { get; set; } + + public EventContentBuffExcelT() { + this.EventContentBuffId = 0; + this.IsBuff = false; + this.CharacterTag = SCHALE.Common.FlatData.Tag.A; + this.EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None; + this.EnumTypeValue = null; + this.SkillGroupId = null; + this.IconPath = null; + this.SpriteName = null; + this.BuffDescriptionLocalizeCodeId = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs b/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs index 50c7e7e..77521c5 100644 --- a/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBuffExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentBuffExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBuffExcelTableT UnPack() { + var _o = new EventContentBuffExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBuffExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBuffExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBuffExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentBuffExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentBuffExcelTable( + builder, + _DataList); + } +} + +public class EventContentBuffExcelTableT +{ + public List DataList { get; set; } + + public EventContentBuffExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs b/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs index 1090601..05d0f2d 100644 --- a/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBuffGroupExcel : IFlatbufferObject @@ -128,6 +129,89 @@ public struct EventContentBuffGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBuffGroupExcelT UnPack() { + var _o = new EventContentBuffGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBuffGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBuffGroup"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.BuffContentId = TableEncryptionService.Convert(this.BuffContentId, key); + _o.BuffGroupId = TableEncryptionService.Convert(this.BuffGroupId, key); + _o.BuffGroupNameLocalizeCodeId = TableEncryptionService.Convert(this.BuffGroupNameLocalizeCodeId, key); + _o.EventContentBuffId1 = TableEncryptionService.Convert(this.EventContentBuffId1, key); + _o.BuffNameLocalizeCodeId1 = TableEncryptionService.Convert(this.BuffNameLocalizeCodeId1, key); + _o.BuffDescriptionIconPath1 = TableEncryptionService.Convert(this.BuffDescriptionIconPath1, key); + _o.EventContentBuffId2 = TableEncryptionService.Convert(this.EventContentBuffId2, key); + _o.BuffNameLocalizeCodeId2 = TableEncryptionService.Convert(this.BuffNameLocalizeCodeId2, key); + _o.BuffDescriptionIconPath2 = TableEncryptionService.Convert(this.BuffDescriptionIconPath2, key); + _o.EventContentDebuffId = TableEncryptionService.Convert(this.EventContentDebuffId, key); + _o.DebuffNameLocalizeCodeId = TableEncryptionService.Convert(this.DebuffNameLocalizeCodeId, key); + _o.DeBuffDescriptionIconPath = TableEncryptionService.Convert(this.DeBuffDescriptionIconPath, key); + _o.BuffGroupProb = TableEncryptionService.Convert(this.BuffGroupProb, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBuffGroupExcelT _o) { + if (_o == null) return default(Offset); + var _BuffGroupNameLocalizeCodeId = _o.BuffGroupNameLocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.BuffGroupNameLocalizeCodeId); + var _BuffNameLocalizeCodeId1 = _o.BuffNameLocalizeCodeId1 == null ? default(StringOffset) : builder.CreateString(_o.BuffNameLocalizeCodeId1); + var _BuffDescriptionIconPath1 = _o.BuffDescriptionIconPath1 == null ? default(StringOffset) : builder.CreateString(_o.BuffDescriptionIconPath1); + var _BuffNameLocalizeCodeId2 = _o.BuffNameLocalizeCodeId2 == null ? default(StringOffset) : builder.CreateString(_o.BuffNameLocalizeCodeId2); + var _BuffDescriptionIconPath2 = _o.BuffDescriptionIconPath2 == null ? default(StringOffset) : builder.CreateString(_o.BuffDescriptionIconPath2); + var _DebuffNameLocalizeCodeId = _o.DebuffNameLocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.DebuffNameLocalizeCodeId); + var _DeBuffDescriptionIconPath = _o.DeBuffDescriptionIconPath == null ? default(StringOffset) : builder.CreateString(_o.DeBuffDescriptionIconPath); + return CreateEventContentBuffGroupExcel( + builder, + _o.EventContentId, + _o.BuffContentId, + _o.BuffGroupId, + _BuffGroupNameLocalizeCodeId, + _o.EventContentBuffId1, + _BuffNameLocalizeCodeId1, + _BuffDescriptionIconPath1, + _o.EventContentBuffId2, + _BuffNameLocalizeCodeId2, + _BuffDescriptionIconPath2, + _o.EventContentDebuffId, + _DebuffNameLocalizeCodeId, + _DeBuffDescriptionIconPath, + _o.BuffGroupProb); + } +} + +public class EventContentBuffGroupExcelT +{ + public long EventContentId { get; set; } + public long BuffContentId { get; set; } + public long BuffGroupId { get; set; } + public string BuffGroupNameLocalizeCodeId { get; set; } + public long EventContentBuffId1 { get; set; } + public string BuffNameLocalizeCodeId1 { get; set; } + public string BuffDescriptionIconPath1 { get; set; } + public long EventContentBuffId2 { get; set; } + public string BuffNameLocalizeCodeId2 { get; set; } + public string BuffDescriptionIconPath2 { get; set; } + public long EventContentDebuffId { get; set; } + public string DebuffNameLocalizeCodeId { get; set; } + public string DeBuffDescriptionIconPath { get; set; } + public long BuffGroupProb { get; set; } + + public EventContentBuffGroupExcelT() { + this.EventContentId = 0; + this.BuffContentId = 0; + this.BuffGroupId = 0; + this.BuffGroupNameLocalizeCodeId = null; + this.EventContentBuffId1 = 0; + this.BuffNameLocalizeCodeId1 = null; + this.BuffDescriptionIconPath1 = null; + this.EventContentBuffId2 = 0; + this.BuffNameLocalizeCodeId2 = null; + this.BuffDescriptionIconPath2 = null; + this.EventContentDebuffId = 0; + this.DebuffNameLocalizeCodeId = null; + this.DeBuffDescriptionIconPath = null; + this.BuffGroupProb = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs b/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs index 7311b0c..1e5cc21 100644 --- a/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentBuffGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentBuffGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentBuffGroupExcelTableT UnPack() { + var _o = new EventContentBuffGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentBuffGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentBuffGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentBuffGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentBuffGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentBuffGroupExcelTable( + builder, + _DataList); + } +} + +public class EventContentBuffGroupExcelTableT +{ + public List DataList { get; set; } + + public EventContentBuffGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCardExcel.cs b/SCHALE.Common/FlatData/EventContentCardExcel.cs index e333b1b..9f6f961 100644 --- a/SCHALE.Common/FlatData/EventContentCardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCardExcel : IFlatbufferObject @@ -94,6 +95,68 @@ public struct EventContentCardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCardExcelT UnPack() { + var _o = new EventContentCardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCard"); + _o.CardGroupId = TableEncryptionService.Convert(this.CardGroupId, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.BackIconPath = TableEncryptionService.Convert(this.BackIconPath, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCardExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _BackIconPath = _o.BackIconPath == null ? default(StringOffset) : builder.CreateString(_o.BackIconPath); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + return CreateEventContentCardExcel( + builder, + _o.CardGroupId, + _o.EventContentId, + _o.LocalizeEtcId, + _IconPath, + _BackIconPath, + _RewardParcelType, + _RewardParcelId); + } +} + +public class EventContentCardExcelT +{ + public int CardGroupId { get; set; } + public long EventContentId { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + public string BackIconPath { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + + public EventContentCardExcelT() { + this.CardGroupId = 0; + this.EventContentId = 0; + this.LocalizeEtcId = 0; + this.IconPath = null; + this.BackIconPath = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCardExcelTable.cs b/SCHALE.Common/FlatData/EventContentCardExcelTable.cs index 349a9d4..1ac1f6d 100644 --- a/SCHALE.Common/FlatData/EventContentCardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentCardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentCardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCardExcelTableT UnPack() { + var _o = new EventContentCardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentCardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentCardExcelTable( + builder, + _DataList); + } +} + +public class EventContentCardExcelTableT +{ + public List DataList { get; set; } + + public EventContentCardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCardShopExcel.cs b/SCHALE.Common/FlatData/EventContentCardShopExcel.cs index f066f3f..ca3586f 100644 --- a/SCHALE.Common/FlatData/EventContentCardShopExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCardShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCardShopExcel : IFlatbufferObject @@ -114,6 +115,92 @@ public struct EventContentCardShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCardShopExcelT UnPack() { + var _o = new EventContentCardShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCardShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCardShop"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.CostGoodsId = TableEncryptionService.Convert(this.CostGoodsId, key); + _o.CardGroupId = TableEncryptionService.Convert(this.CardGroupId, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.RefreshGroup = TableEncryptionService.Convert(this.RefreshGroup, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.ProbWeight1 = TableEncryptionService.Convert(this.ProbWeight1, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCardShopExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEventContentCardShopExcel( + builder, + _o.EventContentId, + _o.Id, + _o.Rarity, + _o.CostGoodsId, + _o.CardGroupId, + _o.IsLegacy, + _o.RefreshGroup, + _o.Prob, + _o.ProbWeight1, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class EventContentCardShopExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public long CostGoodsId { get; set; } + public int CardGroupId { get; set; } + public bool IsLegacy { get; set; } + public int RefreshGroup { get; set; } + public int Prob { get; set; } + public int ProbWeight1 { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public EventContentCardShopExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.CostGoodsId = 0; + this.CardGroupId = 0; + this.IsLegacy = false; + this.RefreshGroup = 0; + this.Prob = 0; + this.ProbWeight1 = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs index d5483d6..3b01cb9 100644 --- a/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCardShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentCardShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCardShopExcelTableT UnPack() { + var _o = new EventContentCardShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCardShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCardShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCardShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentCardShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentCardShopExcelTable( + builder, + _DataList); + } +} + +public class EventContentCardShopExcelTableT +{ + public List DataList { get; set; } + + public EventContentCardShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentChangeExcel.cs b/SCHALE.Common/FlatData/EventContentChangeExcel.cs index 718d897..68e72c6 100644 --- a/SCHALE.Common/FlatData/EventContentChangeExcel.cs +++ b/SCHALE.Common/FlatData/EventContentChangeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentChangeExcel : IFlatbufferObject @@ -66,6 +67,62 @@ public struct EventContentChangeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentChangeExcelT UnPack() { + var _o = new EventContentChangeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentChangeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentChange"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ChangeCount = TableEncryptionService.Convert(this.ChangeCount, key); + _o.IsLast = TableEncryptionService.Convert(this.IsLast, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + _o.ChangeCostType = TableEncryptionService.Convert(this.ChangeCostType, key); + _o.ChangeCostId = TableEncryptionService.Convert(this.ChangeCostId, key); + _o.ChangeCostAmount = TableEncryptionService.Convert(this.ChangeCostAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentChangeExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentChangeExcel( + builder, + _o.EventContentId, + _o.ChangeCount, + _o.IsLast, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount, + _o.ChangeCostType, + _o.ChangeCostId, + _o.ChangeCostAmount); + } +} + +public class EventContentChangeExcelT +{ + public long EventContentId { get; set; } + public long ChangeCount { get; set; } + public bool IsLast { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType ChangeCostType { get; set; } + public long ChangeCostId { get; set; } + public int ChangeCostAmount { get; set; } + + public EventContentChangeExcelT() { + this.EventContentId = 0; + this.ChangeCount = 0; + this.IsLast = false; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + this.ChangeCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ChangeCostId = 0; + this.ChangeCostAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs b/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs index dbf68fb..f05a22a 100644 --- a/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentChangeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentChangeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentChangeExcelTableT UnPack() { + var _o = new EventContentChangeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentChangeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentChangeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentChangeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentChangeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentChangeExcelTable( + builder, + _DataList); + } +} + +public class EventContentChangeExcelTableT +{ + public List DataList { get; set; } + + public EventContentChangeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs b/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs index 1ca220b..e743f17 100644 --- a/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs +++ b/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentChangeScenarioExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct EventContentChangeScenarioExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentChangeScenarioExcelT UnPack() { + var _o = new EventContentChangeScenarioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentChangeScenarioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentChangeScenario"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ChangeType = TableEncryptionService.Convert(this.ChangeType, key); + _o.ChangeCount = TableEncryptionService.Convert(this.ChangeCount, key); + _o.ScenarioGroupId = TableEncryptionService.Convert(this.ScenarioGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentChangeScenarioExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentChangeScenarioExcel( + builder, + _o.EventContentId, + _o.ChangeType, + _o.ChangeCount, + _o.ScenarioGroupId); + } +} + +public class EventContentChangeScenarioExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventChangeType ChangeType { get; set; } + public long ChangeCount { get; set; } + public long ScenarioGroupId { get; set; } + + public EventContentChangeScenarioExcelT() { + this.EventContentId = 0; + this.ChangeType = SCHALE.Common.FlatData.EventChangeType.MainSub; + this.ChangeCount = 0; + this.ScenarioGroupId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs b/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs index 4643c07..38708b9 100644 --- a/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentChangeScenarioExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentChangeScenarioExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentChangeScenarioExcelTableT UnPack() { + var _o = new EventContentChangeScenarioExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentChangeScenarioExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentChangeScenarioExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentChangeScenarioExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentChangeScenarioExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentChangeScenarioExcelTable( + builder, + _DataList); + } +} + +public class EventContentChangeScenarioExcelTableT +{ + public List DataList { get; set; } + + public EventContentChangeScenarioExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs b/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs index 67f2c0a..2383298 100644 --- a/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCharacterBonusExcel : IFlatbufferObject @@ -70,6 +71,54 @@ public struct EventContentCharacterBonusExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCharacterBonusExcelT UnPack() { + var _o = new EventContentCharacterBonusExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCharacterBonusExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCharacterBonus"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.EventContentItemType_ = new List(); + for (var _j = 0; _j < this.EventContentItemType_Length; ++_j) {_o.EventContentItemType_.Add(TableEncryptionService.Convert(this.EventContentItemType_(_j), key));} + _o.BonusPercentage = new List(); + for (var _j = 0; _j < this.BonusPercentageLength; ++_j) {_o.BonusPercentage.Add(TableEncryptionService.Convert(this.BonusPercentage(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCharacterBonusExcelT _o) { + if (_o == null) return default(Offset); + var _EventContentItemType_ = default(VectorOffset); + if (_o.EventContentItemType_ != null) { + var __EventContentItemType_ = _o.EventContentItemType_.ToArray(); + _EventContentItemType_ = CreateEventContentItemType_Vector(builder, __EventContentItemType_); + } + var _BonusPercentage = default(VectorOffset); + if (_o.BonusPercentage != null) { + var __BonusPercentage = _o.BonusPercentage.ToArray(); + _BonusPercentage = CreateBonusPercentageVector(builder, __BonusPercentage); + } + return CreateEventContentCharacterBonusExcel( + builder, + _o.EventContentId, + _o.CharacterId, + _EventContentItemType_, + _BonusPercentage); + } +} + +public class EventContentCharacterBonusExcelT +{ + public long EventContentId { get; set; } + public long CharacterId { get; set; } + public List EventContentItemType_ { get; set; } + public List BonusPercentage { get; set; } + + public EventContentCharacterBonusExcelT() { + this.EventContentId = 0; + this.CharacterId = 0; + this.EventContentItemType_ = null; + this.BonusPercentage = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs b/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs index f917cd7..5282e11 100644 --- a/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCharacterBonusExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentCharacterBonusExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCharacterBonusExcelTableT UnPack() { + var _o = new EventContentCharacterBonusExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCharacterBonusExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCharacterBonusExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCharacterBonusExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentCharacterBonusExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentCharacterBonusExcelTable( + builder, + _DataList); + } +} + +public class EventContentCharacterBonusExcelTableT +{ + public List DataList { get; set; } + + public EventContentCharacterBonusExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCollectionExcel.cs b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs index 265062f..1da6f83 100644 --- a/SCHALE.Common/FlatData/EventContentCollectionExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCollectionExcel : IFlatbufferObject @@ -122,6 +123,92 @@ public struct EventContentCollectionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCollectionExcelT UnPack() { + var _o = new EventContentCollectionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCollectionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCollection"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.UnlockConditionType = TableEncryptionService.Convert(this.UnlockConditionType, key); + _o.UnlockConditionParameter = new List(); + for (var _j = 0; _j < this.UnlockConditionParameterLength; ++_j) {_o.UnlockConditionParameter.Add(TableEncryptionService.Convert(this.UnlockConditionParameter(_j), key));} + _o.MultipleConditionCheckType = TableEncryptionService.Convert(this.MultipleConditionCheckType, key); + _o.UnlockConditionCount = TableEncryptionService.Convert(this.UnlockConditionCount, key); + _o.IsObject = TableEncryptionService.Convert(this.IsObject, key); + _o.IsHorizon = TableEncryptionService.Convert(this.IsHorizon, key); + _o.EmblemResource = TableEncryptionService.Convert(this.EmblemResource, key); + _o.ThumbResource = TableEncryptionService.Convert(this.ThumbResource, key); + _o.FullResource = TableEncryptionService.Convert(this.FullResource, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.SubNameLocalizeCodeId = TableEncryptionService.Convert(this.SubNameLocalizeCodeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCollectionExcelT _o) { + if (_o == null) return default(Offset); + var _UnlockConditionParameter = default(VectorOffset); + if (_o.UnlockConditionParameter != null) { + var __UnlockConditionParameter = _o.UnlockConditionParameter.ToArray(); + _UnlockConditionParameter = CreateUnlockConditionParameterVector(builder, __UnlockConditionParameter); + } + var _EmblemResource = _o.EmblemResource == null ? default(StringOffset) : builder.CreateString(_o.EmblemResource); + var _ThumbResource = _o.ThumbResource == null ? default(StringOffset) : builder.CreateString(_o.ThumbResource); + var _FullResource = _o.FullResource == null ? default(StringOffset) : builder.CreateString(_o.FullResource); + var _SubNameLocalizeCodeId = _o.SubNameLocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.SubNameLocalizeCodeId); + return CreateEventContentCollectionExcel( + builder, + _o.Id, + _o.EventContentId, + _o.GroupId, + _o.UnlockConditionType, + _UnlockConditionParameter, + _o.MultipleConditionCheckType, + _o.UnlockConditionCount, + _o.IsObject, + _o.IsHorizon, + _EmblemResource, + _ThumbResource, + _FullResource, + _o.LocalizeEtcId, + _SubNameLocalizeCodeId); + } +} + +public class EventContentCollectionExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long GroupId { get; set; } + public SCHALE.Common.FlatData.EventCollectionUnlockType UnlockConditionType { get; set; } + public List UnlockConditionParameter { get; set; } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get; set; } + public long UnlockConditionCount { get; set; } + public bool IsObject { get; set; } + public bool IsHorizon { get; set; } + public string EmblemResource { get; set; } + public string ThumbResource { get; set; } + public string FullResource { get; set; } + public uint LocalizeEtcId { get; set; } + public string SubNameLocalizeCodeId { get; set; } + + public EventContentCollectionExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.GroupId = 0; + this.UnlockConditionType = SCHALE.Common.FlatData.EventCollectionUnlockType.None; + this.UnlockConditionParameter = null; + this.MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And; + this.UnlockConditionCount = 0; + this.IsObject = false; + this.IsHorizon = false; + this.EmblemResource = null; + this.ThumbResource = null; + this.FullResource = null; + this.LocalizeEtcId = 0; + this.SubNameLocalizeCodeId = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs b/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs index 504b6bd..cb6f295 100644 --- a/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCollectionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentCollectionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCollectionExcelTableT UnPack() { + var _o = new EventContentCollectionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCollectionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCollectionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCollectionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentCollectionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentCollectionExcelTable( + builder, + _DataList); + } +} + +public class EventContentCollectionExcelTableT +{ + public List DataList { get; set; } + + public EventContentCollectionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs b/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs index 625df7f..fc7bf8f 100644 --- a/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCurrencyItemExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct EventContentCurrencyItemExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCurrencyItemExcelT UnPack() { + var _o = new EventContentCurrencyItemExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCurrencyItemExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCurrencyItem"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentItemType = TableEncryptionService.Convert(this.EventContentItemType, key); + _o.ItemUniqueId = TableEncryptionService.Convert(this.ItemUniqueId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCurrencyItemExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentCurrencyItemExcel( + builder, + _o.EventContentId, + _o.EventContentItemType, + _o.ItemUniqueId); + } +} + +public class EventContentCurrencyItemExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentItemType EventContentItemType { get; set; } + public long ItemUniqueId { get; set; } + + public EventContentCurrencyItemExcelT() { + this.EventContentId = 0; + this.EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint; + this.ItemUniqueId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs b/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs index 9ba7f8b..e74cb1a 100644 --- a/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentCurrencyItemExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentCurrencyItemExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentCurrencyItemExcelTableT UnPack() { + var _o = new EventContentCurrencyItemExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentCurrencyItemExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentCurrencyItemExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentCurrencyItemExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentCurrencyItemExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentCurrencyItemExcelTable( + builder, + _DataList); + } +} + +public class EventContentCurrencyItemExcelTableT +{ + public List DataList { get; set; } + + public EventContentCurrencyItemExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs b/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs index 70cbff2..1d9596d 100644 --- a/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDebuffRewardExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct EventContentDebuffRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDebuffRewardExcelT UnPack() { + var _o = new EventContentDebuffRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDebuffRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDebuffReward"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventStageId = TableEncryptionService.Convert(this.EventStageId, key); + _o.EventContentItemType = TableEncryptionService.Convert(this.EventContentItemType, key); + _o.RewardPercentage = TableEncryptionService.Convert(this.RewardPercentage, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDebuffRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentDebuffRewardExcel( + builder, + _o.EventContentId, + _o.EventStageId, + _o.EventContentItemType, + _o.RewardPercentage); + } +} + +public class EventContentDebuffRewardExcelT +{ + public long EventContentId { get; set; } + public long EventStageId { get; set; } + public SCHALE.Common.FlatData.EventContentItemType EventContentItemType { get; set; } + public long RewardPercentage { get; set; } + + public EventContentDebuffRewardExcelT() { + this.EventContentId = 0; + this.EventStageId = 0; + this.EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint; + this.RewardPercentage = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs index 55bac7e..f1175f6 100644 --- a/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDebuffRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDebuffRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDebuffRewardExcelTableT UnPack() { + var _o = new EventContentDebuffRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDebuffRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDebuffRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDebuffRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDebuffRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDebuffRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentDebuffRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentDebuffRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs index 797d0aa..ec21e3e 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceEffectExcel : IFlatbufferObject @@ -68,6 +69,53 @@ public struct EventContentDiceRaceEffectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceEffectExcelT UnPack() { + var _o = new EventContentDiceRaceEffectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceEffectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceEffect"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentDiceRaceResultType = TableEncryptionService.Convert(this.EventContentDiceRaceResultType, key); + _o.IsDiceResult = TableEncryptionService.Convert(this.IsDiceResult, key); + _o.AniClip = TableEncryptionService.Convert(this.AniClip, key); + _o.VoiceId = new List(); + for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceEffectExcelT _o) { + if (_o == null) return default(Offset); + var _AniClip = _o.AniClip == null ? default(StringOffset) : builder.CreateString(_o.AniClip); + var _VoiceId = default(VectorOffset); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + return CreateEventContentDiceRaceEffectExcel( + builder, + _o.EventContentId, + _o.EventContentDiceRaceResultType, + _o.IsDiceResult, + _AniClip, + _VoiceId); + } +} + +public class EventContentDiceRaceEffectExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentDiceRaceResultType EventContentDiceRaceResultType { get; set; } + public bool IsDiceResult { get; set; } + public string AniClip { get; set; } + public List VoiceId { get; set; } + + public EventContentDiceRaceEffectExcelT() { + this.EventContentId = 0; + this.EventContentDiceRaceResultType = SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1; + this.IsDiceResult = false; + this.AniClip = null; + this.VoiceId = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs index b3ab816..6407428 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceEffectExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDiceRaceEffectExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceEffectExcelTableT UnPack() { + var _o = new EventContentDiceRaceEffectExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceEffectExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceEffectExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceEffectExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDiceRaceEffectExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDiceRaceEffectExcelTable( + builder, + _DataList); + } +} + +public class EventContentDiceRaceEffectExcelTableT +{ + public List DataList { get; set; } + + public EventContentDiceRaceEffectExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs index e3ad399..aff31e5 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceExcel : IFlatbufferObject @@ -66,6 +67,58 @@ public struct EventContentDiceRaceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceExcelT UnPack() { + var _o = new EventContentDiceRaceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRace"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DiceCostGoodsId = TableEncryptionService.Convert(this.DiceCostGoodsId, key); + _o.SkipableLap = TableEncryptionService.Convert(this.SkipableLap, key); + _o.DiceRacePawnPrefab = TableEncryptionService.Convert(this.DiceRacePawnPrefab, key); + _o.IsUsingFixedDice = TableEncryptionService.Convert(this.IsUsingFixedDice, key); + _o.DiceRaceEventType = new List(); + for (var _j = 0; _j < this.DiceRaceEventTypeLength; ++_j) {_o.DiceRaceEventType.Add(TableEncryptionService.Convert(this.DiceRaceEventType(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceExcelT _o) { + if (_o == null) return default(Offset); + var _DiceRacePawnPrefab = _o.DiceRacePawnPrefab == null ? default(StringOffset) : builder.CreateString(_o.DiceRacePawnPrefab); + var _DiceRaceEventType = default(VectorOffset); + if (_o.DiceRaceEventType != null) { + var __DiceRaceEventType = new StringOffset[_o.DiceRaceEventType.Count]; + for (var _j = 0; _j < __DiceRaceEventType.Length; ++_j) { __DiceRaceEventType[_j] = builder.CreateString(_o.DiceRaceEventType[_j]); } + _DiceRaceEventType = CreateDiceRaceEventTypeVector(builder, __DiceRaceEventType); + } + return CreateEventContentDiceRaceExcel( + builder, + _o.EventContentId, + _o.DiceCostGoodsId, + _o.SkipableLap, + _DiceRacePawnPrefab, + _o.IsUsingFixedDice, + _DiceRaceEventType); + } +} + +public class EventContentDiceRaceExcelT +{ + public long EventContentId { get; set; } + public long DiceCostGoodsId { get; set; } + public int SkipableLap { get; set; } + public string DiceRacePawnPrefab { get; set; } + public bool IsUsingFixedDice { get; set; } + public List DiceRaceEventType { get; set; } + + public EventContentDiceRaceExcelT() { + this.EventContentId = 0; + this.DiceCostGoodsId = 0; + this.SkipableLap = 0; + this.DiceRacePawnPrefab = null; + this.IsUsingFixedDice = false; + this.DiceRaceEventType = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs index d855cb7..aecb588 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDiceRaceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceExcelTableT UnPack() { + var _o = new EventContentDiceRaceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDiceRaceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDiceRaceExcelTable( + builder, + _DataList); + } +} + +public class EventContentDiceRaceExcelTableT +{ + public List DataList { get; set; } + + public EventContentDiceRaceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs index cbaaf5a..39a99ef 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceNodeExcel : IFlatbufferObject @@ -94,6 +95,72 @@ public struct EventContentDiceRaceNodeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceNodeExcelT UnPack() { + var _o = new EventContentDiceRaceNodeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceNodeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceNode"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.NodeId = TableEncryptionService.Convert(this.NodeId, key); + _o.EventContentDiceRaceNodeType = TableEncryptionService.Convert(this.EventContentDiceRaceNodeType, key); + _o.MoveForwardTypeArg = TableEncryptionService.Convert(this.MoveForwardTypeArg, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceNodeExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateEventContentDiceRaceNodeExcel( + builder, + _o.EventContentId, + _o.NodeId, + _o.EventContentDiceRaceNodeType, + _o.MoveForwardTypeArg, + _RewardParcelType, + _RewardParcelId, + _RewardAmount); + } +} + +public class EventContentDiceRaceNodeExcelT +{ + public long EventContentId { get; set; } + public long NodeId { get; set; } + public SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType { get; set; } + public int MoveForwardTypeArg { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardAmount { get; set; } + + public EventContentDiceRaceNodeExcelT() { + this.EventContentId = 0; + this.NodeId = 0; + this.EventContentDiceRaceNodeType = SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode; + this.MoveForwardTypeArg = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs index 4db246c..5bfde43 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceNodeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDiceRaceNodeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceNodeExcelTableT UnPack() { + var _o = new EventContentDiceRaceNodeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceNodeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceNodeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceNodeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDiceRaceNodeExcelTable( + builder, + _DataList); + } +} + +public class EventContentDiceRaceNodeExcelTableT +{ + public List DataList { get; set; } + + public EventContentDiceRaceNodeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs index 794879c..05472ad 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceProbExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct EventContentDiceRaceProbExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceProbExcelT UnPack() { + var _o = new EventContentDiceRaceProbExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceProbExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceProb"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentDiceRaceResultType = TableEncryptionService.Convert(this.EventContentDiceRaceResultType, key); + _o.CostItemId = TableEncryptionService.Convert(this.CostItemId, key); + _o.CostItemAmount = TableEncryptionService.Convert(this.CostItemAmount, key); + _o.DiceResult = TableEncryptionService.Convert(this.DiceResult, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceProbExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentDiceRaceProbExcel( + builder, + _o.EventContentId, + _o.EventContentDiceRaceResultType, + _o.CostItemId, + _o.CostItemAmount, + _o.DiceResult, + _o.Prob); + } +} + +public class EventContentDiceRaceProbExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentDiceRaceResultType EventContentDiceRaceResultType { get; set; } + public long CostItemId { get; set; } + public int CostItemAmount { get; set; } + public int DiceResult { get; set; } + public int Prob { get; set; } + + public EventContentDiceRaceProbExcelT() { + this.EventContentId = 0; + this.EventContentDiceRaceResultType = SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1; + this.CostItemId = 0; + this.CostItemAmount = 0; + this.DiceResult = 0; + this.Prob = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs index 3d787c0..aaeb019 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceProbExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDiceRaceProbExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceProbExcelTableT UnPack() { + var _o = new EventContentDiceRaceProbExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceProbExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceProbExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceProbExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDiceRaceProbExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDiceRaceProbExcelTable( + builder, + _DataList); + } +} + +public class EventContentDiceRaceProbExcelTableT +{ + public List DataList { get; set; } + + public EventContentDiceRaceProbExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs index 145a72c..1cf9d10 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceTotalRewardExcel : IFlatbufferObject @@ -94,6 +95,72 @@ public struct EventContentDiceRaceTotalRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceTotalRewardExcelT UnPack() { + var _o = new EventContentDiceRaceTotalRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceTotalRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceTotalReward"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.RewardID = TableEncryptionService.Convert(this.RewardID, key); + _o.RequiredLapFinishCount = TableEncryptionService.Convert(this.RequiredLapFinishCount, key); + _o.DisplayLapFinishCount = TableEncryptionService.Convert(this.DisplayLapFinishCount, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceTotalRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEventContentDiceRaceTotalRewardExcel( + builder, + _o.EventContentId, + _o.RewardID, + _o.RequiredLapFinishCount, + _o.DisplayLapFinishCount, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class EventContentDiceRaceTotalRewardExcelT +{ + public long EventContentId { get; set; } + public long RewardID { get; set; } + public int RequiredLapFinishCount { get; set; } + public int DisplayLapFinishCount { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public EventContentDiceRaceTotalRewardExcelT() { + this.EventContentId = 0; + this.RewardID = 0; + this.RequiredLapFinishCount = 0; + this.DisplayLapFinishCount = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs index e1d8db3..0b2e71c 100644 --- a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentDiceRaceTotalRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentDiceRaceTotalRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentDiceRaceTotalRewardExcelTableT UnPack() { + var _o = new EventContentDiceRaceTotalRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentDiceRaceTotalRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentDiceRaceTotalRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentDiceRaceTotalRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentDiceRaceTotalRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentDiceRaceTotalRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentDiceRaceTotalRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentDiceRaceTotalRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentExcel.cs b/SCHALE.Common/FlatData/EventContentExcel.cs index 744ef71..11ed013 100644 --- a/SCHALE.Common/FlatData/EventContentExcel.cs +++ b/SCHALE.Common/FlatData/EventContentExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct EventContentExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentExcelT UnPack() { + var _o = new EventContentExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContent"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.BgImagePath = TableEncryptionService.Convert(this.BgImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _BgImagePath = _o.BgImagePath == null ? default(StringOffset) : builder.CreateString(_o.BgImagePath); + return CreateEventContentExcel( + builder, + _o.Id, + _DevName, + _o.EventContentId, + _BgImagePath); + } +} + +public class EventContentExcelT +{ + public long Id { get; set; } + public string DevName { get; set; } + public long EventContentId { get; set; } + public string BgImagePath { get; set; } + + public EventContentExcelT() { + this.Id = 0; + this.DevName = null; + this.EventContentId = 0; + this.BgImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentExcelTable.cs b/SCHALE.Common/FlatData/EventContentExcelTable.cs index 082333b..c857923 100644 --- a/SCHALE.Common/FlatData/EventContentExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentExcelTableT UnPack() { + var _o = new EventContentExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentExcelTable( + builder, + _DataList); + } +} + +public class EventContentExcelTableT +{ + public List DataList { get; set; } + + public EventContentExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs index 068c6b4..773efe7 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaExcel : IFlatbufferObject @@ -48,6 +49,39 @@ public struct EventContentFortuneGachaExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaExcelT UnPack() { + var _o = new EventContentFortuneGachaExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGacha"); + _o.FortuneGachaGroupId = TableEncryptionService.Convert(this.FortuneGachaGroupId, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateEventContentFortuneGachaExcel( + builder, + _o.FortuneGachaGroupId, + _o.LocalizeEtcId, + _IconPath); + } +} + +public class EventContentFortuneGachaExcelT +{ + public int FortuneGachaGroupId { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + + public EventContentFortuneGachaExcelT() { + this.FortuneGachaGroupId = 0; + this.LocalizeEtcId = 0; + this.IconPath = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs index b282305..1cb6d07 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentFortuneGachaExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaExcelTableT UnPack() { + var _o = new EventContentFortuneGachaExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGachaExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentFortuneGachaExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentFortuneGachaExcelTable( + builder, + _DataList); + } +} + +public class EventContentFortuneGachaExcelTableT +{ + public List DataList { get; set; } + + public EventContentFortuneGachaExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs index 8920d2f..e6b5711 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaModifyExcel : IFlatbufferObject @@ -82,6 +83,58 @@ public struct EventContentFortuneGachaModifyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaModifyExcelT UnPack() { + var _o = new EventContentFortuneGachaModifyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaModifyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGachaModify"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.TargetGrade = TableEncryptionService.Convert(this.TargetGrade, key); + _o.ProbModifyStartCount = TableEncryptionService.Convert(this.ProbModifyStartCount, key); + _o.UsePrefabName = TableEncryptionService.Convert(this.UsePrefabName, key); + _o.BucketImagePath = TableEncryptionService.Convert(this.BucketImagePath, key); + _o.ShopBgImagePath = TableEncryptionService.Convert(this.ShopBgImagePath, key); + _o.TitleLocalizeKey = TableEncryptionService.Convert(this.TitleLocalizeKey, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaModifyExcelT _o) { + if (_o == null) return default(Offset); + var _UsePrefabName = _o.UsePrefabName == null ? default(StringOffset) : builder.CreateString(_o.UsePrefabName); + var _BucketImagePath = _o.BucketImagePath == null ? default(StringOffset) : builder.CreateString(_o.BucketImagePath); + var _ShopBgImagePath = _o.ShopBgImagePath == null ? default(StringOffset) : builder.CreateString(_o.ShopBgImagePath); + var _TitleLocalizeKey = _o.TitleLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.TitleLocalizeKey); + return CreateEventContentFortuneGachaModifyExcel( + builder, + _o.EventContentId, + _o.TargetGrade, + _o.ProbModifyStartCount, + _UsePrefabName, + _BucketImagePath, + _ShopBgImagePath, + _TitleLocalizeKey); + } +} + +public class EventContentFortuneGachaModifyExcelT +{ + public int EventContentId { get; set; } + public int TargetGrade { get; set; } + public int ProbModifyStartCount { get; set; } + public string UsePrefabName { get; set; } + public string BucketImagePath { get; set; } + public string ShopBgImagePath { get; set; } + public string TitleLocalizeKey { get; set; } + + public EventContentFortuneGachaModifyExcelT() { + this.EventContentId = 0; + this.TargetGrade = 0; + this.ProbModifyStartCount = 0; + this.UsePrefabName = null; + this.BucketImagePath = null; + this.ShopBgImagePath = null; + this.TitleLocalizeKey = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs index 2d65229..c30d873 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaModifyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentFortuneGachaModifyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaModifyExcelTableT UnPack() { + var _o = new EventContentFortuneGachaModifyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaModifyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGachaModifyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaModifyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentFortuneGachaModifyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentFortuneGachaModifyExcelTable( + builder, + _DataList); + } +} + +public class EventContentFortuneGachaModifyExcelTableT +{ + public List DataList { get; set; } + + public EventContentFortuneGachaModifyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs index bc0c9c0..1273782 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaShopExcel : IFlatbufferObject @@ -114,6 +115,92 @@ public struct EventContentFortuneGachaShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaShopExcelT UnPack() { + var _o = new EventContentFortuneGachaShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGachaShop"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Grade = TableEncryptionService.Convert(this.Grade, key); + _o.CostGoodsId = TableEncryptionService.Convert(this.CostGoodsId, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.FortuneGachaGroupId = TableEncryptionService.Convert(this.FortuneGachaGroupId, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.ProbModifyValue = TableEncryptionService.Convert(this.ProbModifyValue, key); + _o.ProbModifyLimit = TableEncryptionService.Convert(this.ProbModifyLimit, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaShopExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEventContentFortuneGachaShopExcel( + builder, + _o.EventContentId, + _o.Id, + _o.Grade, + _o.CostGoodsId, + _o.IsLegacy, + _o.FortuneGachaGroupId, + _o.Prob, + _o.ProbModifyValue, + _o.ProbModifyLimit, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class EventContentFortuneGachaShopExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public int Grade { get; set; } + public long CostGoodsId { get; set; } + public bool IsLegacy { get; set; } + public int FortuneGachaGroupId { get; set; } + public int Prob { get; set; } + public int ProbModifyValue { get; set; } + public int ProbModifyLimit { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public EventContentFortuneGachaShopExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.Grade = 0; + this.CostGoodsId = 0; + this.IsLegacy = false; + this.FortuneGachaGroupId = 0; + this.Prob = 0; + this.ProbModifyValue = 0; + this.ProbModifyLimit = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs index 0b21a6d..52668c1 100644 --- a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentFortuneGachaShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentFortuneGachaShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentFortuneGachaShopExcelTableT UnPack() { + var _o = new EventContentFortuneGachaShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentFortuneGachaShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentFortuneGachaShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentFortuneGachaShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentFortuneGachaShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentFortuneGachaShopExcelTable( + builder, + _DataList); + } +} + +public class EventContentFortuneGachaShopExcelTableT +{ + public List DataList { get; set; } + + public EventContentFortuneGachaShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs b/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs index 50c423f..f70fd07 100644 --- a/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs +++ b/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLobbyMenuExcel : IFlatbufferObject @@ -80,6 +81,61 @@ public struct EventContentLobbyMenuExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLobbyMenuExcelT UnPack() { + var _o = new EventContentLobbyMenuExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLobbyMenuExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLobbyMenu"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentType = TableEncryptionService.Convert(this.EventContentType, key); + _o.IconSpriteName = TableEncryptionService.Convert(this.IconSpriteName, key); + _o.ButtonText = TableEncryptionService.Convert(this.ButtonText, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.IconOffsetX = TableEncryptionService.Convert(this.IconOffsetX, key); + _o.IconOffsetY = TableEncryptionService.Convert(this.IconOffsetY, key); + _o.ReddotSpriteName = TableEncryptionService.Convert(this.ReddotSpriteName, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLobbyMenuExcelT _o) { + if (_o == null) return default(Offset); + var _IconSpriteName = _o.IconSpriteName == null ? default(StringOffset) : builder.CreateString(_o.IconSpriteName); + var _ButtonText = _o.ButtonText == null ? default(StringOffset) : builder.CreateString(_o.ButtonText); + var _ReddotSpriteName = _o.ReddotSpriteName == null ? default(StringOffset) : builder.CreateString(_o.ReddotSpriteName); + return CreateEventContentLobbyMenuExcel( + builder, + _o.EventContentId, + _o.EventContentType, + _IconSpriteName, + _ButtonText, + _o.DisplayOrder, + _o.IconOffsetX, + _o.IconOffsetY, + _ReddotSpriteName); + } +} + +public class EventContentLobbyMenuExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentType EventContentType { get; set; } + public string IconSpriteName { get; set; } + public string ButtonText { get; set; } + public int DisplayOrder { get; set; } + public float IconOffsetX { get; set; } + public float IconOffsetY { get; set; } + public string ReddotSpriteName { get; set; } + + public EventContentLobbyMenuExcelT() { + this.EventContentId = 0; + this.EventContentType = SCHALE.Common.FlatData.EventContentType.Stage; + this.IconSpriteName = null; + this.ButtonText = null; + this.DisplayOrder = 0; + this.IconOffsetX = 0.0f; + this.IconOffsetY = 0.0f; + this.ReddotSpriteName = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs b/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs index a966db8..60252ac 100644 --- a/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLobbyMenuExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentLobbyMenuExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLobbyMenuExcelTableT UnPack() { + var _o = new EventContentLobbyMenuExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLobbyMenuExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLobbyMenuExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLobbyMenuExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentLobbyMenuExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentLobbyMenuExcelTable( + builder, + _DataList); + } +} + +public class EventContentLobbyMenuExcelTableT +{ + public List DataList { get; set; } + + public EventContentLobbyMenuExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentLocationExcel.cs b/SCHALE.Common/FlatData/EventContentLocationExcel.cs index c180628..e44624c 100644 --- a/SCHALE.Common/FlatData/EventContentLocationExcel.cs +++ b/SCHALE.Common/FlatData/EventContentLocationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLocationExcel : IFlatbufferObject @@ -80,6 +81,71 @@ public struct EventContentLocationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLocationExcelT UnPack() { + var _o = new EventContentLocationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLocationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLocation"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.PrefabPath = TableEncryptionService.Convert(this.PrefabPath, key); + _o.LocationResetScheduleCount = TableEncryptionService.Convert(this.LocationResetScheduleCount, key); + _o.ScheduleEventPointCostParcelType = TableEncryptionService.Convert(this.ScheduleEventPointCostParcelType, key); + _o.ScheduleEventPointCostParcelId = TableEncryptionService.Convert(this.ScheduleEventPointCostParcelId, key); + _o.ScheduleEventPointCostParcelAmount = TableEncryptionService.Convert(this.ScheduleEventPointCostParcelAmount, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.InformationGroupId = TableEncryptionService.Convert(this.InformationGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLocationExcelT _o) { + if (_o == null) return default(Offset); + var _PrefabPath = _o.PrefabPath == null ? default(StringOffset) : builder.CreateString(_o.PrefabPath); + return CreateEventContentLocationExcel( + builder, + _o.EventContentId, + _o.Id, + _o.LocalizeEtcId, + _PrefabPath, + _o.LocationResetScheduleCount, + _o.ScheduleEventPointCostParcelType, + _o.ScheduleEventPointCostParcelId, + _o.ScheduleEventPointCostParcelAmount, + _o.RewardParcelType, + _o.RewardParcelId, + _o.InformationGroupId); + } +} + +public class EventContentLocationExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public string PrefabPath { get; set; } + public int LocationResetScheduleCount { get; set; } + public SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType { get; set; } + public long ScheduleEventPointCostParcelId { get; set; } + public long ScheduleEventPointCostParcelAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long InformationGroupId { get; set; } + + public EventContentLocationExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.LocalizeEtcId = 0; + this.PrefabPath = null; + this.LocationResetScheduleCount = 0; + this.ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ScheduleEventPointCostParcelId = 0; + this.ScheduleEventPointCostParcelAmount = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.InformationGroupId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs b/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs index 91ea91f..106871d 100644 --- a/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLocationExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentLocationExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLocationExcelTableT UnPack() { + var _o = new EventContentLocationExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLocationExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLocationExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLocationExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentLocationExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentLocationExcelTable( + builder, + _DataList); + } +} + +public class EventContentLocationExcelTableT +{ + public List DataList { get; set; } + + public EventContentLocationExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs b/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs index d074452..b5e53bc 100644 --- a/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLocationRewardExcel : IFlatbufferObject @@ -234,6 +235,166 @@ public struct EventContentLocationRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLocationRewardExcelT UnPack() { + var _o = new EventContentLocationRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLocationRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLocationReward"); + _o.Location = TableEncryptionService.Convert(this.Location, key); + _o.ScheduleGroupId = TableEncryptionService.Convert(this.ScheduleGroupId, key); + _o.OrderInGroup = TableEncryptionService.Convert(this.OrderInGroup, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProgressTexture = TableEncryptionService.Convert(this.ProgressTexture, key); + _o.VoiceId = new List(); + for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.LocationRank = TableEncryptionService.Convert(this.LocationRank, key); + _o.FavorExp = TableEncryptionService.Convert(this.FavorExp, key); + _o.SecretStoneAmount = TableEncryptionService.Convert(this.SecretStoneAmount, key); + _o.SecretStoneProb = TableEncryptionService.Convert(this.SecretStoneProb, key); + _o.ExtraFavorExp = TableEncryptionService.Convert(this.ExtraFavorExp, key); + _o.ExtraFavorExpProb = TableEncryptionService.Convert(this.ExtraFavorExpProb, key); + _o.ExtraRewardParcelType = new List(); + for (var _j = 0; _j < this.ExtraRewardParcelTypeLength; ++_j) {_o.ExtraRewardParcelType.Add(TableEncryptionService.Convert(this.ExtraRewardParcelType(_j), key));} + _o.ExtraRewardParcelId = new List(); + for (var _j = 0; _j < this.ExtraRewardParcelIdLength; ++_j) {_o.ExtraRewardParcelId.Add(TableEncryptionService.Convert(this.ExtraRewardParcelId(_j), key));} + _o.ExtraRewardAmount = new List(); + for (var _j = 0; _j < this.ExtraRewardAmountLength; ++_j) {_o.ExtraRewardAmount.Add(TableEncryptionService.Convert(this.ExtraRewardAmount(_j), key));} + _o.ExtraRewardProb = new List(); + for (var _j = 0; _j < this.ExtraRewardProbLength; ++_j) {_o.ExtraRewardProb.Add(TableEncryptionService.Convert(this.ExtraRewardProb(_j), key));} + _o.IsExtraRewardDisplayed = new List(); + for (var _j = 0; _j < this.IsExtraRewardDisplayedLength; ++_j) {_o.IsExtraRewardDisplayed.Add(TableEncryptionService.Convert(this.IsExtraRewardDisplayed(_j), key));} + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLocationRewardExcelT _o) { + if (_o == null) return default(Offset); + var _Location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location); + var _ProgressTexture = _o.ProgressTexture == null ? default(StringOffset) : builder.CreateString(_o.ProgressTexture); + var _VoiceId = default(VectorOffset); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + var _ExtraRewardParcelType = default(VectorOffset); + if (_o.ExtraRewardParcelType != null) { + var __ExtraRewardParcelType = _o.ExtraRewardParcelType.ToArray(); + _ExtraRewardParcelType = CreateExtraRewardParcelTypeVector(builder, __ExtraRewardParcelType); + } + var _ExtraRewardParcelId = default(VectorOffset); + if (_o.ExtraRewardParcelId != null) { + var __ExtraRewardParcelId = _o.ExtraRewardParcelId.ToArray(); + _ExtraRewardParcelId = CreateExtraRewardParcelIdVector(builder, __ExtraRewardParcelId); + } + var _ExtraRewardAmount = default(VectorOffset); + if (_o.ExtraRewardAmount != null) { + var __ExtraRewardAmount = _o.ExtraRewardAmount.ToArray(); + _ExtraRewardAmount = CreateExtraRewardAmountVector(builder, __ExtraRewardAmount); + } + var _ExtraRewardProb = default(VectorOffset); + if (_o.ExtraRewardProb != null) { + var __ExtraRewardProb = _o.ExtraRewardProb.ToArray(); + _ExtraRewardProb = CreateExtraRewardProbVector(builder, __ExtraRewardProb); + } + var _IsExtraRewardDisplayed = default(VectorOffset); + if (_o.IsExtraRewardDisplayed != null) { + var __IsExtraRewardDisplayed = _o.IsExtraRewardDisplayed.ToArray(); + _IsExtraRewardDisplayed = CreateIsExtraRewardDisplayedVector(builder, __IsExtraRewardDisplayed); + } + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateEventContentLocationRewardExcel( + builder, + _Location, + _o.ScheduleGroupId, + _o.OrderInGroup, + _o.Id, + _ProgressTexture, + _VoiceId, + _o.LocalizeEtcId, + _o.LocationRank, + _o.FavorExp, + _o.SecretStoneAmount, + _o.SecretStoneProb, + _o.ExtraFavorExp, + _o.ExtraFavorExpProb, + _ExtraRewardParcelType, + _ExtraRewardParcelId, + _ExtraRewardAmount, + _ExtraRewardProb, + _IsExtraRewardDisplayed, + _RewardParcelType, + _RewardParcelId, + _RewardAmount); + } +} + +public class EventContentLocationRewardExcelT +{ + public string Location { get; set; } + public long ScheduleGroupId { get; set; } + public long OrderInGroup { get; set; } + public long Id { get; set; } + public string ProgressTexture { get; set; } + public List VoiceId { get; set; } + public uint LocalizeEtcId { get; set; } + public long LocationRank { get; set; } + public long FavorExp { get; set; } + public long SecretStoneAmount { get; set; } + public long SecretStoneProb { get; set; } + public long ExtraFavorExp { get; set; } + public long ExtraFavorExpProb { get; set; } + public List ExtraRewardParcelType { get; set; } + public List ExtraRewardParcelId { get; set; } + public List ExtraRewardAmount { get; set; } + public List ExtraRewardProb { get; set; } + public List IsExtraRewardDisplayed { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardAmount { get; set; } + + public EventContentLocationRewardExcelT() { + this.Location = null; + this.ScheduleGroupId = 0; + this.OrderInGroup = 0; + this.Id = 0; + this.ProgressTexture = null; + this.VoiceId = null; + this.LocalizeEtcId = 0; + this.LocationRank = 0; + this.FavorExp = 0; + this.SecretStoneAmount = 0; + this.SecretStoneProb = 0; + this.ExtraFavorExp = 0; + this.ExtraFavorExpProb = 0; + this.ExtraRewardParcelType = null; + this.ExtraRewardParcelId = null; + this.ExtraRewardAmount = null; + this.ExtraRewardProb = null; + this.IsExtraRewardDisplayed = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs index d88a613..93bd672 100644 --- a/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentLocationRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentLocationRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentLocationRewardExcelTableT UnPack() { + var _o = new EventContentLocationRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentLocationRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentLocationRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentLocationRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentLocationRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentLocationRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentLocationRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentLocationRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentMeetupExcel.cs b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs index d8424d2..940c139 100644 --- a/SCHALE.Common/FlatData/EventContentMeetupExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMeetupExcel : IFlatbufferObject @@ -70,6 +71,60 @@ public struct EventContentMeetupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMeetupExcelT UnPack() { + var _o = new EventContentMeetupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMeetupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMeetup"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.ConditionScenarioGroupId = TableEncryptionService.Convert(this.ConditionScenarioGroupId, key); + _o.ConditionType = TableEncryptionService.Convert(this.ConditionType, key); + _o.ConditionParameter = new List(); + for (var _j = 0; _j < this.ConditionParameterLength; ++_j) {_o.ConditionParameter.Add(TableEncryptionService.Convert(this.ConditionParameter(_j), key));} + _o.ConditionPrintType = TableEncryptionService.Convert(this.ConditionPrintType, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMeetupExcelT _o) { + if (_o == null) return default(Offset); + var _ConditionParameter = default(VectorOffset); + if (_o.ConditionParameter != null) { + var __ConditionParameter = _o.ConditionParameter.ToArray(); + _ConditionParameter = CreateConditionParameterVector(builder, __ConditionParameter); + } + return CreateEventContentMeetupExcel( + builder, + _o.Id, + _o.EventContentId, + _o.CharacterId, + _o.ConditionScenarioGroupId, + _o.ConditionType, + _ConditionParameter, + _o.ConditionPrintType); + } +} + +public class EventContentMeetupExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long CharacterId { get; set; } + public long ConditionScenarioGroupId { get; set; } + public SCHALE.Common.FlatData.MeetupConditionType ConditionType { get; set; } + public List ConditionParameter { get; set; } + public SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType { get; set; } + + public EventContentMeetupExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.CharacterId = 0; + this.ConditionScenarioGroupId = 0; + this.ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None; + this.ConditionParameter = null; + this.ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None; + } } diff --git a/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs b/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs index 2fe7911..c503f2e 100644 --- a/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMeetupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentMeetupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMeetupExcelTableT UnPack() { + var _o = new EventContentMeetupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMeetupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMeetupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMeetupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentMeetupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentMeetupExcelTable( + builder, + _DataList); + } +} + +public class EventContentMeetupExcelTableT +{ + public List DataList { get; set; } + + public EventContentMeetupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs index 3fa7c89..c2d16c5 100644 --- a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMiniEventShortCutExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct EventContentMiniEventShortCutExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMiniEventShortCutExcelT UnPack() { + var _o = new EventContentMiniEventShortCutExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMiniEventShortCutExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMiniEventShortCut"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.ShorcutContentType = TableEncryptionService.Convert(this.ShorcutContentType, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMiniEventShortCutExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentMiniEventShortCutExcel( + builder, + _o.Id, + _o.LocalizeEtcId, + _o.ShorcutContentType); + } +} + +public class EventContentMiniEventShortCutExcelT +{ + public int Id { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.EventTargetType ShorcutContentType { get; set; } + + public EventContentMiniEventShortCutExcelT() { + this.Id = 0; + this.LocalizeEtcId = 0; + this.ShorcutContentType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon; + } } diff --git a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs index 0017097..f20af4d 100644 --- a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMiniEventShortCutExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentMiniEventShortCutExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMiniEventShortCutExcelTableT UnPack() { + var _o = new EventContentMiniEventShortCutExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMiniEventShortCutExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMiniEventShortCutExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMiniEventShortCutExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentMiniEventShortCutExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentMiniEventShortCutExcelTable( + builder, + _DataList); + } +} + +public class EventContentMiniEventShortCutExcelTableT +{ + public List DataList { get; set; } + + public EventContentMiniEventShortCutExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs index ec20440..e7c63b2 100644 --- a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMiniEventTokenExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct EventContentMiniEventTokenExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMiniEventTokenExcelT UnPack() { + var _o = new EventContentMiniEventTokenExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMiniEventTokenExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMiniEventToken"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ItemUniqueId = TableEncryptionService.Convert(this.ItemUniqueId, key); + _o.MaximumAmount = TableEncryptionService.Convert(this.MaximumAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMiniEventTokenExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentMiniEventTokenExcel( + builder, + _o.EventContentId, + _o.ItemUniqueId, + _o.MaximumAmount); + } +} + +public class EventContentMiniEventTokenExcelT +{ + public long EventContentId { get; set; } + public long ItemUniqueId { get; set; } + public long MaximumAmount { get; set; } + + public EventContentMiniEventTokenExcelT() { + this.EventContentId = 0; + this.ItemUniqueId = 0; + this.MaximumAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs index 8c99224..43253d4 100644 --- a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMiniEventTokenExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentMiniEventTokenExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMiniEventTokenExcelTableT UnPack() { + var _o = new EventContentMiniEventTokenExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMiniEventTokenExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMiniEventTokenExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMiniEventTokenExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentMiniEventTokenExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentMiniEventTokenExcelTable( + builder, + _DataList); + } +} + +public class EventContentMiniEventTokenExcelTableT +{ + public List DataList { get; set; } + + public EventContentMiniEventTokenExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentMissionExcel.cs b/SCHALE.Common/FlatData/EventContentMissionExcel.cs index b797d7d..b9daaa3 100644 --- a/SCHALE.Common/FlatData/EventContentMissionExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMissionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMissionExcel : IFlatbufferObject @@ -30,13 +31,7 @@ public struct EventContentMissionExcel : IFlatbufferObject #endif public byte[] GetGroupNameArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } - public string Description { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } -#if ENABLE_SPAN_T - public Span GetDescriptionBytes() { return __p.__vector_as_span(14, 1); } -#else - public ArraySegment? GetDescriptionBytes() { return __p.__vector_as_arraysegment(14); } -#endif - public byte[] GetDescriptionArray() { return __p.__vector_as_array(14); } + public uint Description { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -151,7 +146,7 @@ public struct EventContentMissionExcel : IFlatbufferObject long GroupId = 0, StringOffset GroupNameOffset = default(StringOffset), SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, - StringOffset DescriptionOffset = default(StringOffset), + uint Description = 0, SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), @@ -202,7 +197,7 @@ public struct EventContentMissionExcel : IFlatbufferObject EventContentMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); EventContentMissionExcel.AddToastDisplayType(builder, ToastDisplayType); EventContentMissionExcel.AddResetType(builder, ResetType); - EventContentMissionExcel.AddDescription(builder, DescriptionOffset); + EventContentMissionExcel.AddDescription(builder, Description); EventContentMissionExcel.AddCategory(builder, Category); EventContentMissionExcel.AddGroupName(builder, GroupNameOffset); EventContentMissionExcel.AddIsCompleteExtensionTime(builder, IsCompleteExtensionTime); @@ -216,7 +211,7 @@ public struct EventContentMissionExcel : IFlatbufferObject public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(2, groupId, 0); } public static void AddGroupName(FlatBufferBuilder builder, StringOffset groupNameOffset) { builder.AddOffset(3, groupNameOffset.Value, 0); } public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCategory category) { builder.AddInt(4, (int)category, 0); } - public static void AddDescription(FlatBufferBuilder builder, StringOffset descriptionOffset) { builder.AddOffset(5, descriptionOffset.Value, 0); } + public static void AddDescription(FlatBufferBuilder builder, uint description) { builder.AddUint(5, description, 0); } public static void AddResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionResetType resetType) { builder.AddInt(6, (int)resetType, 0); } public static void AddToastDisplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionToastDisplayConditionType toastDisplayType) { builder.AddInt(7, (int)toastDisplayType, 0); } public static void AddToastImagePath(FlatBufferBuilder builder, StringOffset toastImagePathOffset) { builder.AddOffset(8, toastImagePathOffset.Value, 0); } @@ -300,6 +295,216 @@ public struct EventContentMissionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMissionExcelT UnPack() { + var _o = new EventContentMissionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMissionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMission"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.GroupName = TableEncryptionService.Convert(this.GroupName, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.Description = TableEncryptionService.Convert(this.Description, key); + _o.ResetType = TableEncryptionService.Convert(this.ResetType, key); + _o.ToastDisplayType = TableEncryptionService.Convert(this.ToastDisplayType, key); + _o.ToastImagePath = TableEncryptionService.Convert(this.ToastImagePath, key); + _o.ViewFlag = TableEncryptionService.Convert(this.ViewFlag, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.PreMissionId = new List(); + for (var _j = 0; _j < this.PreMissionIdLength; ++_j) {_o.PreMissionId.Add(TableEncryptionService.Convert(this.PreMissionId(_j), key));} + _o.AccountType = TableEncryptionService.Convert(this.AccountType, key); + _o.AccountLevel = TableEncryptionService.Convert(this.AccountLevel, key); + _o.ShortcutUI = new List(); + for (var _j = 0; _j < this.ShortcutUILength; ++_j) {_o.ShortcutUI.Add(TableEncryptionService.Convert(this.ShortcutUI(_j), key));} + _o.ChallengeStageShortcut = TableEncryptionService.Convert(this.ChallengeStageShortcut, key); + _o.CompleteConditionType = TableEncryptionService.Convert(this.CompleteConditionType, key); + _o.IsCompleteExtensionTime = TableEncryptionService.Convert(this.IsCompleteExtensionTime, key); + _o.CompleteConditionCount = TableEncryptionService.Convert(this.CompleteConditionCount, key); + _o.CompleteConditionParameter = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterLength; ++_j) {_o.CompleteConditionParameter.Add(TableEncryptionService.Convert(this.CompleteConditionParameter(_j), key));} + _o.CompleteConditionParameterTag = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterTagLength; ++_j) {_o.CompleteConditionParameterTag.Add(TableEncryptionService.Convert(this.CompleteConditionParameterTag(_j), key));} + _o.RewardIcon = TableEncryptionService.Convert(this.RewardIcon, key); + _o.CompleteConditionMissionId = new List(); + for (var _j = 0; _j < this.CompleteConditionMissionIdLength; ++_j) {_o.CompleteConditionMissionId.Add(TableEncryptionService.Convert(this.CompleteConditionMissionId(_j), key));} + _o.CompleteConditionMissionCount = TableEncryptionService.Convert(this.CompleteConditionMissionCount, key); + _o.MissionRewardParcelType = new List(); + for (var _j = 0; _j < this.MissionRewardParcelTypeLength; ++_j) {_o.MissionRewardParcelType.Add(TableEncryptionService.Convert(this.MissionRewardParcelType(_j), key));} + _o.MissionRewardParcelId = new List(); + for (var _j = 0; _j < this.MissionRewardParcelIdLength; ++_j) {_o.MissionRewardParcelId.Add(TableEncryptionService.Convert(this.MissionRewardParcelId(_j), key));} + _o.MissionRewardAmount = new List(); + for (var _j = 0; _j < this.MissionRewardAmountLength; ++_j) {_o.MissionRewardAmount.Add(TableEncryptionService.Convert(this.MissionRewardAmount(_j), key));} + _o.ConditionRewardParcelType = new List(); + for (var _j = 0; _j < this.ConditionRewardParcelTypeLength; ++_j) {_o.ConditionRewardParcelType.Add(TableEncryptionService.Convert(this.ConditionRewardParcelType(_j), key));} + _o.ConditionRewardParcelId = new List(); + for (var _j = 0; _j < this.ConditionRewardParcelIdLength; ++_j) {_o.ConditionRewardParcelId.Add(TableEncryptionService.Convert(this.ConditionRewardParcelId(_j), key));} + _o.ConditionRewardAmount = new List(); + for (var _j = 0; _j < this.ConditionRewardAmountLength; ++_j) {_o.ConditionRewardAmount.Add(TableEncryptionService.Convert(this.ConditionRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMissionExcelT _o) { + if (_o == null) return default(Offset); + var _GroupName = _o.GroupName == null ? default(StringOffset) : builder.CreateString(_o.GroupName); + var _ToastImagePath = _o.ToastImagePath == null ? default(StringOffset) : builder.CreateString(_o.ToastImagePath); + var _PreMissionId = default(VectorOffset); + if (_o.PreMissionId != null) { + var __PreMissionId = _o.PreMissionId.ToArray(); + _PreMissionId = CreatePreMissionIdVector(builder, __PreMissionId); + } + var _ShortcutUI = default(VectorOffset); + if (_o.ShortcutUI != null) { + var __ShortcutUI = new StringOffset[_o.ShortcutUI.Count]; + for (var _j = 0; _j < __ShortcutUI.Length; ++_j) { __ShortcutUI[_j] = builder.CreateString(_o.ShortcutUI[_j]); } + _ShortcutUI = CreateShortcutUIVector(builder, __ShortcutUI); + } + var _CompleteConditionParameter = default(VectorOffset); + if (_o.CompleteConditionParameter != null) { + var __CompleteConditionParameter = _o.CompleteConditionParameter.ToArray(); + _CompleteConditionParameter = CreateCompleteConditionParameterVector(builder, __CompleteConditionParameter); + } + var _CompleteConditionParameterTag = default(VectorOffset); + if (_o.CompleteConditionParameterTag != null) { + var __CompleteConditionParameterTag = _o.CompleteConditionParameterTag.ToArray(); + _CompleteConditionParameterTag = CreateCompleteConditionParameterTagVector(builder, __CompleteConditionParameterTag); + } + var _RewardIcon = _o.RewardIcon == null ? default(StringOffset) : builder.CreateString(_o.RewardIcon); + var _CompleteConditionMissionId = default(VectorOffset); + if (_o.CompleteConditionMissionId != null) { + var __CompleteConditionMissionId = _o.CompleteConditionMissionId.ToArray(); + _CompleteConditionMissionId = CreateCompleteConditionMissionIdVector(builder, __CompleteConditionMissionId); + } + var _MissionRewardParcelType = default(VectorOffset); + if (_o.MissionRewardParcelType != null) { + var __MissionRewardParcelType = _o.MissionRewardParcelType.ToArray(); + _MissionRewardParcelType = CreateMissionRewardParcelTypeVector(builder, __MissionRewardParcelType); + } + var _MissionRewardParcelId = default(VectorOffset); + if (_o.MissionRewardParcelId != null) { + var __MissionRewardParcelId = _o.MissionRewardParcelId.ToArray(); + _MissionRewardParcelId = CreateMissionRewardParcelIdVector(builder, __MissionRewardParcelId); + } + var _MissionRewardAmount = default(VectorOffset); + if (_o.MissionRewardAmount != null) { + var __MissionRewardAmount = _o.MissionRewardAmount.ToArray(); + _MissionRewardAmount = CreateMissionRewardAmountVector(builder, __MissionRewardAmount); + } + var _ConditionRewardParcelType = default(VectorOffset); + if (_o.ConditionRewardParcelType != null) { + var __ConditionRewardParcelType = _o.ConditionRewardParcelType.ToArray(); + _ConditionRewardParcelType = CreateConditionRewardParcelTypeVector(builder, __ConditionRewardParcelType); + } + var _ConditionRewardParcelId = default(VectorOffset); + if (_o.ConditionRewardParcelId != null) { + var __ConditionRewardParcelId = _o.ConditionRewardParcelId.ToArray(); + _ConditionRewardParcelId = CreateConditionRewardParcelIdVector(builder, __ConditionRewardParcelId); + } + var _ConditionRewardAmount = default(VectorOffset); + if (_o.ConditionRewardAmount != null) { + var __ConditionRewardAmount = _o.ConditionRewardAmount.ToArray(); + _ConditionRewardAmount = CreateConditionRewardAmountVector(builder, __ConditionRewardAmount); + } + return CreateEventContentMissionExcel( + builder, + _o.Id, + _o.EventContentId, + _o.GroupId, + _GroupName, + _o.Category, + _o.Description, + _o.ResetType, + _o.ToastDisplayType, + _ToastImagePath, + _o.ViewFlag, + _o.DisplayOrder, + _PreMissionId, + _o.AccountType, + _o.AccountLevel, + _ShortcutUI, + _o.ChallengeStageShortcut, + _o.CompleteConditionType, + _o.IsCompleteExtensionTime, + _o.CompleteConditionCount, + _CompleteConditionParameter, + _CompleteConditionParameterTag, + _RewardIcon, + _CompleteConditionMissionId, + _o.CompleteConditionMissionCount, + _MissionRewardParcelType, + _MissionRewardParcelId, + _MissionRewardAmount, + _ConditionRewardParcelType, + _ConditionRewardParcelId, + _ConditionRewardAmount); + } +} + +public class EventContentMissionExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long GroupId { get; set; } + public string GroupName { get; set; } + public SCHALE.Common.FlatData.MissionCategory Category { get; set; } + public uint Description { get; set; } + public SCHALE.Common.FlatData.MissionResetType ResetType { get; set; } + public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get; set; } + public string ToastImagePath { get; set; } + public bool ViewFlag { get; set; } + public long DisplayOrder { get; set; } + public List PreMissionId { get; set; } + public SCHALE.Common.FlatData.AccountState AccountType { get; set; } + public long AccountLevel { get; set; } + public List ShortcutUI { get; set; } + public long ChallengeStageShortcut { get; set; } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get; set; } + public bool IsCompleteExtensionTime { get; set; } + public long CompleteConditionCount { get; set; } + public List CompleteConditionParameter { get; set; } + public List CompleteConditionParameterTag { get; set; } + public string RewardIcon { get; set; } + public List CompleteConditionMissionId { get; set; } + public long CompleteConditionMissionCount { get; set; } + public List MissionRewardParcelType { get; set; } + public List MissionRewardParcelId { get; set; } + public List MissionRewardAmount { get; set; } + public List ConditionRewardParcelType { get; set; } + public List ConditionRewardParcelId { get; set; } + public List ConditionRewardAmount { get; set; } + + public EventContentMissionExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.GroupId = 0; + this.GroupName = null; + this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; + this.Description = 0; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; + this.ToastImagePath = null; + this.ViewFlag = false; + this.DisplayOrder = 0; + this.PreMissionId = null; + this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; + this.AccountLevel = 0; + this.ShortcutUI = null; + this.ChallengeStageShortcut = 0; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.IsCompleteExtensionTime = false; + this.CompleteConditionCount = 0; + this.CompleteConditionParameter = null; + this.CompleteConditionParameterTag = null; + this.RewardIcon = null; + this.CompleteConditionMissionId = null; + this.CompleteConditionMissionCount = 0; + this.MissionRewardParcelType = null; + this.MissionRewardParcelId = null; + this.MissionRewardAmount = null; + this.ConditionRewardParcelType = null; + this.ConditionRewardParcelId = null; + this.ConditionRewardAmount = null; + } } @@ -313,7 +518,7 @@ static public class EventContentMissionExcelVerify && verifier.VerifyField(tablePos, 8 /*GroupId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 10 /*GroupName*/, false) && verifier.VerifyField(tablePos, 12 /*Category*/, 4 /*SCHALE.Common.FlatData.MissionCategory*/, 4, false) - && verifier.VerifyString(tablePos, 14 /*Description*/, false) + && verifier.VerifyField(tablePos, 14 /*Description*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 16 /*ResetType*/, 4 /*SCHALE.Common.FlatData.MissionResetType*/, 4, false) && verifier.VerifyField(tablePos, 18 /*ToastDisplayType*/, 4 /*SCHALE.Common.FlatData.MissionToastDisplayConditionType*/, 4, false) && verifier.VerifyString(tablePos, 20 /*ToastImagePath*/, false) diff --git a/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs b/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs index 5aebe41..8a98d7e 100644 --- a/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentMissionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentMissionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentMissionExcelTableT UnPack() { + var _o = new EventContentMissionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentMissionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentMissionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentMissionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentMissionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentMissionExcelTable( + builder, + _DataList); + } +} + +public class EventContentMissionExcelTableT +{ + public List DataList { get; set; } + + public EventContentMissionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentNotifyExcel.cs b/SCHALE.Common/FlatData/EventContentNotifyExcel.cs index 3ec81ae..0ce48dc 100644 --- a/SCHALE.Common/FlatData/EventContentNotifyExcel.cs +++ b/SCHALE.Common/FlatData/EventContentNotifyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentNotifyExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct EventContentNotifyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentNotifyExcelT UnPack() { + var _o = new EventContentNotifyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentNotifyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentNotify"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.EventNotifyType = TableEncryptionService.Convert(this.EventNotifyType, key); + _o.EventTargetType = TableEncryptionService.Convert(this.EventTargetType, key); + _o.ShortcutEventTargetType = TableEncryptionService.Convert(this.ShortcutEventTargetType, key); + _o.IsShortcutEnable = TableEncryptionService.Convert(this.IsShortcutEnable, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentNotifyExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateEventContentNotifyExcel( + builder, + _o.Id, + _o.LocalizeEtcId, + _IconPath, + _o.EventNotifyType, + _o.EventTargetType, + _o.ShortcutEventTargetType, + _o.IsShortcutEnable); + } +} + +public class EventContentNotifyExcelT +{ + public int Id { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + public SCHALE.Common.FlatData.EventNotifyType EventNotifyType { get; set; } + public SCHALE.Common.FlatData.EventTargetType EventTargetType { get; set; } + public SCHALE.Common.FlatData.EventTargetType ShortcutEventTargetType { get; set; } + public bool IsShortcutEnable { get; set; } + + public EventContentNotifyExcelT() { + this.Id = 0; + this.LocalizeEtcId = 0; + this.IconPath = null; + this.EventNotifyType = SCHALE.Common.FlatData.EventNotifyType.RewardIncreaseEvent; + this.EventTargetType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon; + this.ShortcutEventTargetType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon; + this.IsShortcutEnable = false; + } } diff --git a/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs b/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs deleted file mode 100644 index d535525..0000000 --- a/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct EventContentNotifyExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static EventContentNotifyExcelTable GetRootAsEventContentNotifyExcelTable(ByteBuffer _bb) { return GetRootAsEventContentNotifyExcelTable(_bb, new EventContentNotifyExcelTable()); } - public static EventContentNotifyExcelTable GetRootAsEventContentNotifyExcelTable(ByteBuffer _bb, EventContentNotifyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public EventContentNotifyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.EventContentNotifyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentNotifyExcel?)(new SCHALE.Common.FlatData.EventContentNotifyExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateEventContentNotifyExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - EventContentNotifyExcelTable.AddDataList(builder, DataListOffset); - return EventContentNotifyExcelTable.EndEventContentNotifyExcelTable(builder); - } - - public static void StartEventContentNotifyExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndEventContentNotifyExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class EventContentNotifyExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentNotifyExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/EventContentPlayGuideExcel.cs b/SCHALE.Common/FlatData/EventContentPlayGuideExcel.cs index c845904..5c3f214 100644 --- a/SCHALE.Common/FlatData/EventContentPlayGuideExcel.cs +++ b/SCHALE.Common/FlatData/EventContentPlayGuideExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentPlayGuideExcel : IFlatbufferObject @@ -72,6 +73,53 @@ public struct EventContentPlayGuideExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentPlayGuideExcelT UnPack() { + var _o = new EventContentPlayGuideExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentPlayGuideExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentPlayGuide"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.GuideTitle = TableEncryptionService.Convert(this.GuideTitle, key); + _o.GuideImagePath = TableEncryptionService.Convert(this.GuideImagePath, key); + _o.GuideText = TableEncryptionService.Convert(this.GuideText, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentPlayGuideExcelT _o) { + if (_o == null) return default(Offset); + var _GuideTitle = _o.GuideTitle == null ? default(StringOffset) : builder.CreateString(_o.GuideTitle); + var _GuideImagePath = _o.GuideImagePath == null ? default(StringOffset) : builder.CreateString(_o.GuideImagePath); + var _GuideText = _o.GuideText == null ? default(StringOffset) : builder.CreateString(_o.GuideText); + return CreateEventContentPlayGuideExcel( + builder, + _o.Id, + _o.EventContentId, + _o.DisplayOrder, + _GuideTitle, + _GuideImagePath, + _GuideText); + } +} + +public class EventContentPlayGuideExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public int DisplayOrder { get; set; } + public string GuideTitle { get; set; } + public string GuideImagePath { get; set; } + public string GuideText { get; set; } + + public EventContentPlayGuideExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.DisplayOrder = 0; + this.GuideTitle = null; + this.GuideImagePath = null; + this.GuideText = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs b/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs index 6ec08f0..fda21ad 100644 --- a/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentPlayGuideExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentPlayGuideExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentPlayGuideExcelTableT UnPack() { + var _o = new EventContentPlayGuideExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentPlayGuideExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentPlayGuideExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentPlayGuideExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentPlayGuideExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentPlayGuideExcelTable( + builder, + _DataList); + } +} + +public class EventContentPlayGuideExcelTableT +{ + public List DataList { get; set; } + + public EventContentPlayGuideExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentScenarioExcel.cs b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs index d487f87..4f547b9 100644 --- a/SCHALE.Common/FlatData/EventContentScenarioExcel.cs +++ b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentScenarioExcel : IFlatbufferObject @@ -172,6 +173,139 @@ public struct EventContentScenarioExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentScenarioExcelT UnPack() { + var _o = new EventContentScenarioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentScenarioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentScenario"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ReplayDisplayGroup = TableEncryptionService.Convert(this.ReplayDisplayGroup, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.RecollectionNumber = TableEncryptionService.Convert(this.RecollectionNumber, key); + _o.IsRecollection = TableEncryptionService.Convert(this.IsRecollection, key); + _o.IsMeetup = TableEncryptionService.Convert(this.IsMeetup, key); + _o.IsOmnibus = TableEncryptionService.Convert(this.IsOmnibus, key); + _o.ScenarioGroupId = new List(); + for (var _j = 0; _j < this.ScenarioGroupIdLength; ++_j) {_o.ScenarioGroupId.Add(TableEncryptionService.Convert(this.ScenarioGroupId(_j), key));} + _o.ScenarioConditionType = TableEncryptionService.Convert(this.ScenarioConditionType, key); + _o.ConditionAmount = TableEncryptionService.Convert(this.ConditionAmount, key); + _o.ConditionEventContentId = TableEncryptionService.Convert(this.ConditionEventContentId, key); + _o.ClearedScenarioGroupId = TableEncryptionService.Convert(this.ClearedScenarioGroupId, key); + _o.RecollectionSummaryLocalizeScenarioId = TableEncryptionService.Convert(this.RecollectionSummaryLocalizeScenarioId, key); + _o.RecollectionResource = TableEncryptionService.Convert(this.RecollectionResource, key); + _o.IsRecollectionHorizon = TableEncryptionService.Convert(this.IsRecollectionHorizon, key); + _o.CostParcelType = TableEncryptionService.Convert(this.CostParcelType, key); + _o.CostId = TableEncryptionService.Convert(this.CostId, key); + _o.CostAmount = TableEncryptionService.Convert(this.CostAmount, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardId = new List(); + for (var _j = 0; _j < this.RewardIdLength; ++_j) {_o.RewardId.Add(TableEncryptionService.Convert(this.RewardId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentScenarioExcelT _o) { + if (_o == null) return default(Offset); + var _ScenarioGroupId = default(VectorOffset); + if (_o.ScenarioGroupId != null) { + var __ScenarioGroupId = _o.ScenarioGroupId.ToArray(); + _ScenarioGroupId = CreateScenarioGroupIdVector(builder, __ScenarioGroupId); + } + var _RecollectionResource = _o.RecollectionResource == null ? default(StringOffset) : builder.CreateString(_o.RecollectionResource); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardId = default(VectorOffset); + if (_o.RewardId != null) { + var __RewardId = _o.RewardId.ToArray(); + _RewardId = CreateRewardIdVector(builder, __RewardId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateEventContentScenarioExcel( + builder, + _o.Id, + _o.EventContentId, + _o.ReplayDisplayGroup, + _o.Order, + _o.RecollectionNumber, + _o.IsRecollection, + _o.IsMeetup, + _o.IsOmnibus, + _ScenarioGroupId, + _o.ScenarioConditionType, + _o.ConditionAmount, + _o.ConditionEventContentId, + _o.ClearedScenarioGroupId, + _o.RecollectionSummaryLocalizeScenarioId, + _RecollectionResource, + _o.IsRecollectionHorizon, + _o.CostParcelType, + _o.CostId, + _o.CostAmount, + _RewardParcelType, + _RewardId, + _RewardAmount); + } +} + +public class EventContentScenarioExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public int ReplayDisplayGroup { get; set; } + public long Order { get; set; } + public long RecollectionNumber { get; set; } + public bool IsRecollection { get; set; } + public bool IsMeetup { get; set; } + public bool IsOmnibus { get; set; } + public List ScenarioGroupId { get; set; } + public SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType { get; set; } + public long ConditionAmount { get; set; } + public long ConditionEventContentId { get; set; } + public long ClearedScenarioGroupId { get; set; } + public uint RecollectionSummaryLocalizeScenarioId { get; set; } + public string RecollectionResource { get; set; } + public bool IsRecollectionHorizon { get; set; } + public SCHALE.Common.FlatData.ParcelType CostParcelType { get; set; } + public long CostId { get; set; } + public int CostAmount { get; set; } + public List RewardParcelType { get; set; } + public List RewardId { get; set; } + public List RewardAmount { get; set; } + + public EventContentScenarioExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.ReplayDisplayGroup = 0; + this.Order = 0; + this.RecollectionNumber = 0; + this.IsRecollection = false; + this.IsMeetup = false; + this.IsOmnibus = false; + this.ScenarioGroupId = null; + this.ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None; + this.ConditionAmount = 0; + this.ConditionEventContentId = 0; + this.ClearedScenarioGroupId = 0; + this.RecollectionSummaryLocalizeScenarioId = 0; + this.RecollectionResource = null; + this.IsRecollectionHorizon = false; + this.CostParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CostId = 0; + this.CostAmount = 0; + this.RewardParcelType = null; + this.RewardId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs b/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs index 5790cd3..2c4a986 100644 --- a/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentScenarioExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentScenarioExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentScenarioExcelTableT UnPack() { + var _o = new EventContentScenarioExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentScenarioExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentScenarioExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentScenarioExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentScenarioExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentScenarioExcelTable( + builder, + _DataList); + } +} + +public class EventContentScenarioExcelTableT +{ + public List DataList { get; set; } + + public EventContentScenarioExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentSeasonExcel.cs b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs index 32d3039..d0913a4 100644 --- a/SCHALE.Common/FlatData/EventContentSeasonExcel.cs +++ b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSeasonExcel : IFlatbufferObject @@ -272,6 +273,187 @@ public struct EventContentSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSeasonExcelT UnPack() { + var _o = new EventContentSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSeason"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.OriginalEventContentId = TableEncryptionService.Convert(this.OriginalEventContentId, key); + _o.IsReturn = TableEncryptionService.Convert(this.IsReturn, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.EventContentType = TableEncryptionService.Convert(this.EventContentType, key); + _o.OpenConditionContent = TableEncryptionService.Convert(this.OpenConditionContent, key); + _o.EventDisplay = TableEncryptionService.Convert(this.EventDisplay, key); + _o.IconOrder = TableEncryptionService.Convert(this.IconOrder, key); + _o.SubEventType = TableEncryptionService.Convert(this.SubEventType, key); + _o.SubEvent = TableEncryptionService.Convert(this.SubEvent, key); + _o.EventItemId = TableEncryptionService.Convert(this.EventItemId, key); + _o.MainEventId = TableEncryptionService.Convert(this.MainEventId, key); + _o.EventChangeOpenCondition = TableEncryptionService.Convert(this.EventChangeOpenCondition, key); + _o.BeforehandExposedTime = TableEncryptionService.Convert(this.BeforehandExposedTime, key); + _o.EventContentOpenTime = TableEncryptionService.Convert(this.EventContentOpenTime, key); + _o.EventContentCloseTime = TableEncryptionService.Convert(this.EventContentCloseTime, key); + _o.ExtensionTime = TableEncryptionService.Convert(this.ExtensionTime, key); + _o.MainIconParcelPath = TableEncryptionService.Convert(this.MainIconParcelPath, key); + _o.SubIconParcelPath = TableEncryptionService.Convert(this.SubIconParcelPath, key); + _o.BeforehandBgImagePath = TableEncryptionService.Convert(this.BeforehandBgImagePath, key); + _o.MinigamePrologScenarioGroupId = TableEncryptionService.Convert(this.MinigamePrologScenarioGroupId, key); + _o.BeforehandScenarioGroupId = new List(); + for (var _j = 0; _j < this.BeforehandScenarioGroupIdLength; ++_j) {_o.BeforehandScenarioGroupId.Add(TableEncryptionService.Convert(this.BeforehandScenarioGroupId(_j), key));} + _o.MainBannerImagePath = TableEncryptionService.Convert(this.MainBannerImagePath, key); + _o.MainBgImagePath = TableEncryptionService.Convert(this.MainBgImagePath, key); + _o.ShiftTriggerStageId = TableEncryptionService.Convert(this.ShiftTriggerStageId, key); + _o.ShiftMainBgImagePath = TableEncryptionService.Convert(this.ShiftMainBgImagePath, key); + _o.MinigameLobbyPrefabName = TableEncryptionService.Convert(this.MinigameLobbyPrefabName, key); + _o.MinigameVictoryPrefabName = TableEncryptionService.Convert(this.MinigameVictoryPrefabName, key); + _o.MinigameMissionBgPrefabName = TableEncryptionService.Convert(this.MinigameMissionBgPrefabName, key); + _o.CardBgImagePath = TableEncryptionService.Convert(this.CardBgImagePath, key); + _o.EventAssist = TableEncryptionService.Convert(this.EventAssist, key); + _o.EventContentReleaseType = TableEncryptionService.Convert(this.EventContentReleaseType, key); + _o.EventContentStageRewardIdPermanent = TableEncryptionService.Convert(this.EventContentStageRewardIdPermanent, key); + _o.RewardTagPermanent = TableEncryptionService.Convert(this.RewardTagPermanent, key); + _o.MiniEventShortCutScenarioModeId = TableEncryptionService.Convert(this.MiniEventShortCutScenarioModeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _BeforehandExposedTime = _o.BeforehandExposedTime == null ? default(StringOffset) : builder.CreateString(_o.BeforehandExposedTime); + var _EventContentOpenTime = _o.EventContentOpenTime == null ? default(StringOffset) : builder.CreateString(_o.EventContentOpenTime); + var _EventContentCloseTime = _o.EventContentCloseTime == null ? default(StringOffset) : builder.CreateString(_o.EventContentCloseTime); + var _ExtensionTime = _o.ExtensionTime == null ? default(StringOffset) : builder.CreateString(_o.ExtensionTime); + var _MainIconParcelPath = _o.MainIconParcelPath == null ? default(StringOffset) : builder.CreateString(_o.MainIconParcelPath); + var _SubIconParcelPath = _o.SubIconParcelPath == null ? default(StringOffset) : builder.CreateString(_o.SubIconParcelPath); + var _BeforehandBgImagePath = _o.BeforehandBgImagePath == null ? default(StringOffset) : builder.CreateString(_o.BeforehandBgImagePath); + var _BeforehandScenarioGroupId = default(VectorOffset); + if (_o.BeforehandScenarioGroupId != null) { + var __BeforehandScenarioGroupId = _o.BeforehandScenarioGroupId.ToArray(); + _BeforehandScenarioGroupId = CreateBeforehandScenarioGroupIdVector(builder, __BeforehandScenarioGroupId); + } + var _MainBannerImagePath = _o.MainBannerImagePath == null ? default(StringOffset) : builder.CreateString(_o.MainBannerImagePath); + var _MainBgImagePath = _o.MainBgImagePath == null ? default(StringOffset) : builder.CreateString(_o.MainBgImagePath); + var _ShiftMainBgImagePath = _o.ShiftMainBgImagePath == null ? default(StringOffset) : builder.CreateString(_o.ShiftMainBgImagePath); + var _MinigameLobbyPrefabName = _o.MinigameLobbyPrefabName == null ? default(StringOffset) : builder.CreateString(_o.MinigameLobbyPrefabName); + var _MinigameVictoryPrefabName = _o.MinigameVictoryPrefabName == null ? default(StringOffset) : builder.CreateString(_o.MinigameVictoryPrefabName); + var _MinigameMissionBgPrefabName = _o.MinigameMissionBgPrefabName == null ? default(StringOffset) : builder.CreateString(_o.MinigameMissionBgPrefabName); + var _CardBgImagePath = _o.CardBgImagePath == null ? default(StringOffset) : builder.CreateString(_o.CardBgImagePath); + return CreateEventContentSeasonExcel( + builder, + _o.EventContentId, + _o.OriginalEventContentId, + _o.IsReturn, + _Name, + _o.EventContentType, + _o.OpenConditionContent, + _o.EventDisplay, + _o.IconOrder, + _o.SubEventType, + _o.SubEvent, + _o.EventItemId, + _o.MainEventId, + _o.EventChangeOpenCondition, + _BeforehandExposedTime, + _EventContentOpenTime, + _EventContentCloseTime, + _ExtensionTime, + _MainIconParcelPath, + _SubIconParcelPath, + _BeforehandBgImagePath, + _o.MinigamePrologScenarioGroupId, + _BeforehandScenarioGroupId, + _MainBannerImagePath, + _MainBgImagePath, + _o.ShiftTriggerStageId, + _ShiftMainBgImagePath, + _MinigameLobbyPrefabName, + _MinigameVictoryPrefabName, + _MinigameMissionBgPrefabName, + _CardBgImagePath, + _o.EventAssist, + _o.EventContentReleaseType, + _o.EventContentStageRewardIdPermanent, + _o.RewardTagPermanent, + _o.MiniEventShortCutScenarioModeId); + } +} + +public class EventContentSeasonExcelT +{ + public long EventContentId { get; set; } + public long OriginalEventContentId { get; set; } + public bool IsReturn { get; set; } + public string Name { get; set; } + public SCHALE.Common.FlatData.EventContentType EventContentType { get; set; } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent { get; set; } + public bool EventDisplay { get; set; } + public int IconOrder { get; set; } + public SCHALE.Common.FlatData.SubEventType SubEventType { get; set; } + public bool SubEvent { get; set; } + public long EventItemId { get; set; } + public long MainEventId { get; set; } + public long EventChangeOpenCondition { get; set; } + public string BeforehandExposedTime { get; set; } + public string EventContentOpenTime { get; set; } + public string EventContentCloseTime { get; set; } + public string ExtensionTime { get; set; } + public string MainIconParcelPath { get; set; } + public string SubIconParcelPath { get; set; } + public string BeforehandBgImagePath { get; set; } + public long MinigamePrologScenarioGroupId { get; set; } + public List BeforehandScenarioGroupId { get; set; } + public string MainBannerImagePath { get; set; } + public string MainBgImagePath { get; set; } + public long ShiftTriggerStageId { get; set; } + public string ShiftMainBgImagePath { get; set; } + public string MinigameLobbyPrefabName { get; set; } + public string MinigameVictoryPrefabName { get; set; } + public string MinigameMissionBgPrefabName { get; set; } + public string CardBgImagePath { get; set; } + public bool EventAssist { get; set; } + public SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType { get; set; } + public long EventContentStageRewardIdPermanent { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTagPermanent { get; set; } + public long MiniEventShortCutScenarioModeId { get; set; } + + public EventContentSeasonExcelT() { + this.EventContentId = 0; + this.OriginalEventContentId = 0; + this.IsReturn = false; + this.Name = null; + this.EventContentType = SCHALE.Common.FlatData.EventContentType.Stage; + this.OpenConditionContent = SCHALE.Common.FlatData.OpenConditionContent.Shop; + this.EventDisplay = false; + this.IconOrder = 0; + this.SubEventType = SCHALE.Common.FlatData.SubEventType.None; + this.SubEvent = false; + this.EventItemId = 0; + this.MainEventId = 0; + this.EventChangeOpenCondition = 0; + this.BeforehandExposedTime = null; + this.EventContentOpenTime = null; + this.EventContentCloseTime = null; + this.ExtensionTime = null; + this.MainIconParcelPath = null; + this.SubIconParcelPath = null; + this.BeforehandBgImagePath = null; + this.MinigamePrologScenarioGroupId = 0; + this.BeforehandScenarioGroupId = null; + this.MainBannerImagePath = null; + this.MainBgImagePath = null; + this.ShiftTriggerStageId = 0; + this.ShiftMainBgImagePath = null; + this.MinigameLobbyPrefabName = null; + this.MinigameVictoryPrefabName = null; + this.MinigameMissionBgPrefabName = null; + this.CardBgImagePath = null; + this.EventAssist = false; + this.EventContentReleaseType = SCHALE.Common.FlatData.EventContentReleaseType.None; + this.EventContentStageRewardIdPermanent = 0; + this.RewardTagPermanent = SCHALE.Common.FlatData.RewardTag.Default; + this.MiniEventShortCutScenarioModeId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs b/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs index a110541..cfb0126 100644 --- a/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSeasonExcelTableT UnPack() { + var _o = new EventContentSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentSeasonExcelTable( + builder, + _DataList); + } +} + +public class EventContentSeasonExcelTableT +{ + public List DataList { get; set; } + + public EventContentSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopExcel.cs b/SCHALE.Common/FlatData/EventContentShopExcel.cs index 868973a..c895405 100644 --- a/SCHALE.Common/FlatData/EventContentShopExcel.cs +++ b/SCHALE.Common/FlatData/EventContentShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopExcel : IFlatbufferObject @@ -116,6 +117,91 @@ public struct EventContentShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopExcelT UnPack() { + var _o = new EventContentShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShop"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.GoodsId = new List(); + for (var _j = 0; _j < this.GoodsIdLength; ++_j) {_o.GoodsId.Add(TableEncryptionService.Convert(this.GoodsId(_j), key));} + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.SalePeriodFrom = TableEncryptionService.Convert(this.SalePeriodFrom, key); + _o.SalePeriodTo = TableEncryptionService.Convert(this.SalePeriodTo, key); + _o.PurchaseCooltimeMin = TableEncryptionService.Convert(this.PurchaseCooltimeMin, key); + _o.PurchaseCountLimit = TableEncryptionService.Convert(this.PurchaseCountLimit, key); + _o.PurchaseCountResetType = TableEncryptionService.Convert(this.PurchaseCountResetType, key); + _o.BuyReportEventName = TableEncryptionService.Convert(this.BuyReportEventName, key); + _o.RestrictBuyWhenInventoryFull = TableEncryptionService.Convert(this.RestrictBuyWhenInventoryFull, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopExcelT _o) { + if (_o == null) return default(Offset); + var _GoodsId = default(VectorOffset); + if (_o.GoodsId != null) { + var __GoodsId = _o.GoodsId.ToArray(); + _GoodsId = CreateGoodsIdVector(builder, __GoodsId); + } + var _SalePeriodFrom = _o.SalePeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodFrom); + var _SalePeriodTo = _o.SalePeriodTo == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodTo); + var _BuyReportEventName = _o.BuyReportEventName == null ? default(StringOffset) : builder.CreateString(_o.BuyReportEventName); + return CreateEventContentShopExcel( + builder, + _o.EventContentId, + _o.Id, + _o.LocalizeEtcId, + _o.CategoryType, + _o.IsLegacy, + _GoodsId, + _o.DisplayOrder, + _SalePeriodFrom, + _SalePeriodTo, + _o.PurchaseCooltimeMin, + _o.PurchaseCountLimit, + _o.PurchaseCountResetType, + _BuyReportEventName, + _o.RestrictBuyWhenInventoryFull); + } +} + +public class EventContentShopExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public bool IsLegacy { get; set; } + public List GoodsId { get; set; } + public long DisplayOrder { get; set; } + public string SalePeriodFrom { get; set; } + public string SalePeriodTo { get; set; } + public long PurchaseCooltimeMin { get; set; } + public long PurchaseCountLimit { get; set; } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get; set; } + public string BuyReportEventName { get; set; } + public bool RestrictBuyWhenInventoryFull { get; set; } + + public EventContentShopExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.LocalizeEtcId = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.IsLegacy = false; + this.GoodsId = null; + this.DisplayOrder = 0; + this.SalePeriodFrom = null; + this.SalePeriodTo = null; + this.PurchaseCooltimeMin = 0; + this.PurchaseCountLimit = 0; + this.PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.BuyReportEventName = null; + this.RestrictBuyWhenInventoryFull = false; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopExcelTable.cs index e49cb71..1726019 100644 --- a/SCHALE.Common/FlatData/EventContentShopExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopExcelTableT UnPack() { + var _o = new EventContentShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentShopExcelTable( + builder, + _DataList); + } +} + +public class EventContentShopExcelTableT +{ + public List DataList { get; set; } + + public EventContentShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs b/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs index 32f2605..3e8f809 100644 --- a/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs +++ b/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopInfoExcel : IFlatbufferObject @@ -136,6 +137,99 @@ public struct EventContentShopInfoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopInfoExcelT UnPack() { + var _o = new EventContentShopInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShopInfo"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.LocalizeCode = TableEncryptionService.Convert(this.LocalizeCode, key); + _o.CostParcelType = new List(); + for (var _j = 0; _j < this.CostParcelTypeLength; ++_j) {_o.CostParcelType.Add(TableEncryptionService.Convert(this.CostParcelType(_j), key));} + _o.CostParcelId = new List(); + for (var _j = 0; _j < this.CostParcelIdLength; ++_j) {_o.CostParcelId.Add(TableEncryptionService.Convert(this.CostParcelId(_j), key));} + _o.IsRefresh = TableEncryptionService.Convert(this.IsRefresh, key); + _o.IsSoldOutDimmed = TableEncryptionService.Convert(this.IsSoldOutDimmed, key); + _o.AutoRefreshCoolTime = TableEncryptionService.Convert(this.AutoRefreshCoolTime, key); + _o.RefreshAbleCount = TableEncryptionService.Convert(this.RefreshAbleCount, key); + _o.GoodsId = new List(); + for (var _j = 0; _j < this.GoodsIdLength; ++_j) {_o.GoodsId.Add(TableEncryptionService.Convert(this.GoodsId(_j), key));} + _o.OpenPeriodFrom = TableEncryptionService.Convert(this.OpenPeriodFrom, key); + _o.OpenPeriodTo = TableEncryptionService.Convert(this.OpenPeriodTo, key); + _o.ShopProductUpdateDate = TableEncryptionService.Convert(this.ShopProductUpdateDate, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopInfoExcelT _o) { + if (_o == null) return default(Offset); + var _CostParcelType = default(VectorOffset); + if (_o.CostParcelType != null) { + var __CostParcelType = _o.CostParcelType.ToArray(); + _CostParcelType = CreateCostParcelTypeVector(builder, __CostParcelType); + } + var _CostParcelId = default(VectorOffset); + if (_o.CostParcelId != null) { + var __CostParcelId = _o.CostParcelId.ToArray(); + _CostParcelId = CreateCostParcelIdVector(builder, __CostParcelId); + } + var _GoodsId = default(VectorOffset); + if (_o.GoodsId != null) { + var __GoodsId = _o.GoodsId.ToArray(); + _GoodsId = CreateGoodsIdVector(builder, __GoodsId); + } + var _OpenPeriodFrom = _o.OpenPeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.OpenPeriodFrom); + var _OpenPeriodTo = _o.OpenPeriodTo == null ? default(StringOffset) : builder.CreateString(_o.OpenPeriodTo); + var _ShopProductUpdateDate = _o.ShopProductUpdateDate == null ? default(StringOffset) : builder.CreateString(_o.ShopProductUpdateDate); + return CreateEventContentShopInfoExcel( + builder, + _o.EventContentId, + _o.CategoryType, + _o.LocalizeCode, + _CostParcelType, + _CostParcelId, + _o.IsRefresh, + _o.IsSoldOutDimmed, + _o.AutoRefreshCoolTime, + _o.RefreshAbleCount, + _GoodsId, + _OpenPeriodFrom, + _OpenPeriodTo, + _ShopProductUpdateDate); + } +} + +public class EventContentShopInfoExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public uint LocalizeCode { get; set; } + public List CostParcelType { get; set; } + public List CostParcelId { get; set; } + public bool IsRefresh { get; set; } + public bool IsSoldOutDimmed { get; set; } + public long AutoRefreshCoolTime { get; set; } + public long RefreshAbleCount { get; set; } + public List GoodsId { get; set; } + public string OpenPeriodFrom { get; set; } + public string OpenPeriodTo { get; set; } + public string ShopProductUpdateDate { get; set; } + + public EventContentShopInfoExcelT() { + this.EventContentId = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.LocalizeCode = 0; + this.CostParcelType = null; + this.CostParcelId = null; + this.IsRefresh = false; + this.IsSoldOutDimmed = false; + this.AutoRefreshCoolTime = 0; + this.RefreshAbleCount = 0; + this.GoodsId = null; + this.OpenPeriodFrom = null; + this.OpenPeriodTo = null; + this.ShopProductUpdateDate = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs index 4e76386..deeb4f8 100644 --- a/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopInfoExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentShopInfoExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopInfoExcelTableT UnPack() { + var _o = new EventContentShopInfoExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopInfoExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShopInfoExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopInfoExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentShopInfoExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentShopInfoExcelTable( + builder, + _DataList); + } +} + +public class EventContentShopInfoExcelTableT +{ + public List DataList { get; set; } + + public EventContentShopInfoExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs b/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs index 3167641..21a71ad 100644 --- a/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs +++ b/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopRefreshExcel : IFlatbufferObject @@ -76,6 +77,67 @@ public struct EventContentShopRefreshExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopRefreshExcelT UnPack() { + var _o = new EventContentShopRefreshExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopRefreshExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShopRefresh"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.RefreshGroup = TableEncryptionService.Convert(this.RefreshGroup, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.BuyReportEventName = TableEncryptionService.Convert(this.BuyReportEventName, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopRefreshExcelT _o) { + if (_o == null) return default(Offset); + var _BuyReportEventName = _o.BuyReportEventName == null ? default(StringOffset) : builder.CreateString(_o.BuyReportEventName); + return CreateEventContentShopRefreshExcel( + builder, + _o.EventContentId, + _o.Id, + _o.LocalizeEtcId, + _o.IsLegacy, + _o.GoodsId, + _o.DisplayOrder, + _o.CategoryType, + _o.RefreshGroup, + _o.Prob, + _BuyReportEventName); + } +} + +public class EventContentShopRefreshExcelT +{ + public long EventContentId { get; set; } + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public bool IsLegacy { get; set; } + public long GoodsId { get; set; } + public long DisplayOrder { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public int RefreshGroup { get; set; } + public int Prob { get; set; } + public string BuyReportEventName { get; set; } + + public EventContentShopRefreshExcelT() { + this.EventContentId = 0; + this.Id = 0; + this.LocalizeEtcId = 0; + this.IsLegacy = false; + this.GoodsId = 0; + this.DisplayOrder = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.RefreshGroup = 0; + this.Prob = 0; + this.BuyReportEventName = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs index 929f1e8..e06b5df 100644 --- a/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentShopRefreshExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentShopRefreshExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentShopRefreshExcelTableT UnPack() { + var _o = new EventContentShopRefreshExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentShopRefreshExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentShopRefreshExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentShopRefreshExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentShopRefreshExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentShopRefreshExcelTable( + builder, + _DataList); + } +} + +public class EventContentShopRefreshExcelTableT +{ + public List DataList { get; set; } + + public EventContentShopRefreshExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs index cbcbacc..b704fab 100644 --- a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs +++ b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpecialOperationsExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct EventContentSpecialOperationsExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpecialOperationsExcelT UnPack() { + var _o = new EventContentSpecialOperationsExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpecialOperationsExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpecialOperations"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.PointItemId = TableEncryptionService.Convert(this.PointItemId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpecialOperationsExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentSpecialOperationsExcel( + builder, + _o.EventContentId, + _o.PointItemId); + } +} + +public class EventContentSpecialOperationsExcelT +{ + public long EventContentId { get; set; } + public long PointItemId { get; set; } + + public EventContentSpecialOperationsExcelT() { + this.EventContentId = 0; + this.PointItemId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs index 7ad7346..7e7d263 100644 --- a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpecialOperationsExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentSpecialOperationsExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpecialOperationsExcelTableT UnPack() { + var _o = new EventContentSpecialOperationsExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpecialOperationsExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpecialOperationsExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpecialOperationsExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentSpecialOperationsExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentSpecialOperationsExcelTable( + builder, + _DataList); + } +} + +public class EventContentSpecialOperationsExcelTableT +{ + public List DataList { get; set; } + + public EventContentSpecialOperationsExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs index 1c3b981..bac5953 100644 --- a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs +++ b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpineDialogOffsetExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct EventContentSpineDialogOffsetExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpineDialogOffsetExcelT UnPack() { + var _o = new EventContentSpineDialogOffsetExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpineDialogOffsetExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpineDialogOffset"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentType = TableEncryptionService.Convert(this.EventContentType, key); + _o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key); + _o.SpineOffsetX = TableEncryptionService.Convert(this.SpineOffsetX, key); + _o.SpineOffsetY = TableEncryptionService.Convert(this.SpineOffsetY, key); + _o.DialogOffsetX = TableEncryptionService.Convert(this.DialogOffsetX, key); + _o.DialogOffsetY = TableEncryptionService.Convert(this.DialogOffsetY, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpineDialogOffsetExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentSpineDialogOffsetExcel( + builder, + _o.EventContentId, + _o.EventContentType, + _o.CostumeUniqueId, + _o.SpineOffsetX, + _o.SpineOffsetY, + _o.DialogOffsetX, + _o.DialogOffsetY); + } +} + +public class EventContentSpineDialogOffsetExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentType EventContentType { get; set; } + public long CostumeUniqueId { get; set; } + public float SpineOffsetX { get; set; } + public float SpineOffsetY { get; set; } + public float DialogOffsetX { get; set; } + public float DialogOffsetY { get; set; } + + public EventContentSpineDialogOffsetExcelT() { + this.EventContentId = 0; + this.EventContentType = SCHALE.Common.FlatData.EventContentType.Stage; + this.CostumeUniqueId = 0; + this.SpineOffsetX = 0.0f; + this.SpineOffsetY = 0.0f; + this.DialogOffsetX = 0.0f; + this.DialogOffsetY = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs index c84e3ad..a4e26f5 100644 --- a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpineDialogOffsetExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentSpineDialogOffsetExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpineDialogOffsetExcelTableT UnPack() { + var _o = new EventContentSpineDialogOffsetExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpineDialogOffsetExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpineDialogOffsetExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpineDialogOffsetExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentSpineDialogOffsetExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentSpineDialogOffsetExcelTable( + builder, + _DataList); + } +} + +public class EventContentSpineDialogOffsetExcelTableT +{ + public List DataList { get; set; } + + public EventContentSpineDialogOffsetExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs index bf1f860..602c576 100644 --- a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs +++ b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpoilerPopupExcel : IFlatbufferObject @@ -62,6 +63,48 @@ public struct EventContentSpoilerPopupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpoilerPopupExcelT UnPack() { + var _o = new EventContentSpoilerPopupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpoilerPopupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpoilerPopup"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.SpoilerPopupTitle = TableEncryptionService.Convert(this.SpoilerPopupTitle, key); + _o.SpoilerPopupDescription = TableEncryptionService.Convert(this.SpoilerPopupDescription, key); + _o.IsWarningPopUp = TableEncryptionService.Convert(this.IsWarningPopUp, key); + _o.ConditionScenarioModeId = TableEncryptionService.Convert(this.ConditionScenarioModeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpoilerPopupExcelT _o) { + if (_o == null) return default(Offset); + var _SpoilerPopupTitle = _o.SpoilerPopupTitle == null ? default(StringOffset) : builder.CreateString(_o.SpoilerPopupTitle); + var _SpoilerPopupDescription = _o.SpoilerPopupDescription == null ? default(StringOffset) : builder.CreateString(_o.SpoilerPopupDescription); + return CreateEventContentSpoilerPopupExcel( + builder, + _o.EventContentId, + _SpoilerPopupTitle, + _SpoilerPopupDescription, + _o.IsWarningPopUp, + _o.ConditionScenarioModeId); + } +} + +public class EventContentSpoilerPopupExcelT +{ + public long EventContentId { get; set; } + public string SpoilerPopupTitle { get; set; } + public string SpoilerPopupDescription { get; set; } + public bool IsWarningPopUp { get; set; } + public long ConditionScenarioModeId { get; set; } + + public EventContentSpoilerPopupExcelT() { + this.EventContentId = 0; + this.SpoilerPopupTitle = null; + this.SpoilerPopupDescription = null; + this.IsWarningPopUp = false; + this.ConditionScenarioModeId = 0; + } } diff --git a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs index 3e99e37..6a347ea 100644 --- a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentSpoilerPopupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentSpoilerPopupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentSpoilerPopupExcelTableT UnPack() { + var _o = new EventContentSpoilerPopupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentSpoilerPopupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentSpoilerPopupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentSpoilerPopupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentSpoilerPopupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentSpoilerPopupExcelTable( + builder, + _DataList); + } +} + +public class EventContentSpoilerPopupExcelTableT +{ + public List DataList { get; set; } + + public EventContentSpoilerPopupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentStageExcel.cs b/SCHALE.Common/FlatData/EventContentStageExcel.cs index 632b1aa..7e27f33 100644 --- a/SCHALE.Common/FlatData/EventContentStageExcel.cs +++ b/SCHALE.Common/FlatData/EventContentStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageExcel : IFlatbufferObject @@ -40,84 +41,86 @@ public struct EventContentStageExcel : IFlatbufferObject public long PrevStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenDate { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenEventPoint { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long OpenConditionScenarioId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } - public long OpenConditionContentId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long BattleDuration { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(30); 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(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int StageEnterCostAmount { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int StageEnterEchelonCount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long StarConditionTacticRankSCount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long StarConditionTurnCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long EnterScenarioGroupId(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } - public int EnterScenarioGroupIdLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } + public long OpenConditionScenarioPermanentSubEventId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrevStageSubEventId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenConditionScenarioId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } + public long OpenConditionContentId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(34); 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(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageEnterCostAmount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StageEnterEchelonCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StarConditionTacticRankSCount { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StarConditionTurnCount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnterScenarioGroupId(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EnterScenarioGroupIdLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(42, 8); } + public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(46, 8); } #else - public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(42); } + public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(46); } #endif - public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(42); } - public long ClearScenarioGroupId(int j) { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } - public int ClearScenarioGroupIdLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } + public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(46); } + public long ClearScenarioGroupId(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ClearScenarioGroupIdLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(44, 8); } + public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(48, 8); } #else - public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(44); } + public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(48); } #endif - public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(44); } - public string StrategyMap { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(48); } + public string StrategyMap { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetStrategyMapBytes() { return __p.__vector_as_span(46, 1); } + public Span GetStrategyMapBytes() { return __p.__vector_as_span(50, 1); } #else - public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(46); } + public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(50); } #endif - public byte[] GetStrategyMapArray() { return __p.__vector_as_array(46); } - public string StrategyMapBG { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetStrategyMapArray() { return __p.__vector_as_array(50); } + public string StrategyMapBG { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(48, 1); } + public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(52, 1); } #else - public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(48); } + public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(52); } #endif - public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(48); } - public long EventContentStageRewardId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int MaxTurn { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(54); 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(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public string BgmId { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(52); } + public long EventContentStageRewardId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxTurn { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(58); 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(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string BgmId { get { int o = __p.__offset(62); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetBgmIdBytes() { return __p.__vector_as_span(58, 1); } + public Span GetBgmIdBytes() { return __p.__vector_as_span(62, 1); } #else - public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(58); } + public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(62); } #endif - public byte[] GetBgmIdArray() { return __p.__vector_as_array(58); } - public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } - public long GroundID { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(64); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } - public long BGMId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool InstantClear { get { int o = __p.__offset(68); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public long BuffContentId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FixedEchelonId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool ChallengeDisplay { get { int o = __p.__offset(74); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(76); return o != 0 ? (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StarGoalType)0; } - public int StarGoalLength { get { int o = __p.__offset(76); return o != 0 ? __p.__vector_len(o) : 0; } } + public byte[] GetBgmIdArray() { return __p.__vector_as_array(62); } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(64); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } + public long GroundID { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(68); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long BGMId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool InstantClear { get { int o = __p.__offset(72); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BuffContentId { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedEchelonId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ChallengeDisplay { get { int o = __p.__offset(78); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StarGoalType)0; } + public int StarGoalLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetStarGoalBytes() { return __p.__vector_as_span(76, 4); } + public Span GetStarGoalBytes() { return __p.__vector_as_span(80, 4); } #else - public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(76); } + public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(80); } #endif - public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(76); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StarGoalType[] a = new SCHALE.Common.FlatData.StarGoalType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(p + i * 4); } return a; } - public int StarGoalAmount(int j) { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } - public int StarGoalAmountLength { get { int o = __p.__offset(78); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(80); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StarGoalType[] a = new SCHALE.Common.FlatData.StarGoalType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(p + i * 4); } return a; } + public int StarGoalAmount(int j) { int o = __p.__offset(82); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int StarGoalAmountLength { get { int o = __p.__offset(82); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(78, 4); } + public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(82, 4); } #else - public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(78); } + public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(82); } #endif - public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(78); } - public bool IsDefeatBattle { get { int o = __p.__offset(80); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public uint StageHint { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(84); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(82); } + public bool IsDefeatBattle { get { int o = __p.__offset(84); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint StageHint { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(88); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public static Offset CreateEventContentStageExcel(FlatBufferBuilder builder, long Id = 0, @@ -129,6 +132,8 @@ public struct EventContentStageExcel : IFlatbufferObject long PrevStageId = 0, long OpenDate = 0, long OpenEventPoint = 0, + long OpenConditionScenarioPermanentSubEventId = 0, + long PrevStageSubEventId = 0, long OpenConditionScenarioId = 0, SCHALE.Common.FlatData.EventContentType OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage, long OpenConditionContentId = 0, @@ -161,7 +166,7 @@ public struct EventContentStageExcel : IFlatbufferObject bool IsDefeatBattle = false, uint StageHint = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { - builder.StartTable(41); + builder.StartTable(43); EventContentStageExcel.AddFixedEchelonId(builder, FixedEchelonId); EventContentStageExcel.AddBuffContentId(builder, BuffContentId); EventContentStageExcel.AddBGMId(builder, BGMId); @@ -173,6 +178,8 @@ public struct EventContentStageExcel : IFlatbufferObject EventContentStageExcel.AddBattleDuration(builder, BattleDuration); EventContentStageExcel.AddOpenConditionContentId(builder, OpenConditionContentId); EventContentStageExcel.AddOpenConditionScenarioId(builder, OpenConditionScenarioId); + EventContentStageExcel.AddPrevStageSubEventId(builder, PrevStageSubEventId); + EventContentStageExcel.AddOpenConditionScenarioPermanentSubEventId(builder, OpenConditionScenarioPermanentSubEventId); EventContentStageExcel.AddOpenEventPoint(builder, OpenEventPoint); EventContentStageExcel.AddOpenDate(builder, OpenDate); EventContentStageExcel.AddPrevStageId(builder, PrevStageId); @@ -206,7 +213,7 @@ public struct EventContentStageExcel : IFlatbufferObject return EventContentStageExcel.EndEventContentStageExcel(builder); } - public static void StartEventContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(41); } + public static void StartEventContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(43); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } @@ -216,62 +223,285 @@ public struct EventContentStageExcel : IFlatbufferObject public static void AddPrevStageId(FlatBufferBuilder builder, long prevStageId) { builder.AddLong(6, prevStageId, 0); } public static void AddOpenDate(FlatBufferBuilder builder, long openDate) { builder.AddLong(7, openDate, 0); } public static void AddOpenEventPoint(FlatBufferBuilder builder, long openEventPoint) { builder.AddLong(8, openEventPoint, 0); } - public static void AddOpenConditionScenarioId(FlatBufferBuilder builder, long openConditionScenarioId) { builder.AddLong(9, openConditionScenarioId, 0); } - public static void AddOpenConditionContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType openConditionContentType) { builder.AddInt(10, (int)openConditionContentType, 0); } - public static void AddOpenConditionContentId(FlatBufferBuilder builder, long openConditionContentId) { builder.AddLong(11, openConditionContentId, 0); } - public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(12, battleDuration, 0); } - public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(13, (int)stageEnterCostType, 0); } - public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(14, stageEnterCostId, 0); } - public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(15, stageEnterCostAmount, 0); } - public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(16, stageEnterEchelonCount, 0); } - public static void AddStarConditionTacticRankSCount(FlatBufferBuilder builder, long starConditionTacticRankSCount) { builder.AddLong(17, starConditionTacticRankSCount, 0); } - public static void AddStarConditionTurnCount(FlatBufferBuilder builder, long starConditionTurnCount) { builder.AddLong(18, starConditionTurnCount, 0); } - public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(19, enterScenarioGroupIdOffset.Value, 0); } + public static void AddOpenConditionScenarioPermanentSubEventId(FlatBufferBuilder builder, long openConditionScenarioPermanentSubEventId) { builder.AddLong(9, openConditionScenarioPermanentSubEventId, 0); } + public static void AddPrevStageSubEventId(FlatBufferBuilder builder, long prevStageSubEventId) { builder.AddLong(10, prevStageSubEventId, 0); } + public static void AddOpenConditionScenarioId(FlatBufferBuilder builder, long openConditionScenarioId) { builder.AddLong(11, openConditionScenarioId, 0); } + public static void AddOpenConditionContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType openConditionContentType) { builder.AddInt(12, (int)openConditionContentType, 0); } + public static void AddOpenConditionContentId(FlatBufferBuilder builder, long openConditionContentId) { builder.AddLong(13, openConditionContentId, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(14, battleDuration, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(15, (int)stageEnterCostType, 0); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(16, stageEnterCostId, 0); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(17, stageEnterCostAmount, 0); } + public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(18, stageEnterEchelonCount, 0); } + public static void AddStarConditionTacticRankSCount(FlatBufferBuilder builder, long starConditionTacticRankSCount) { builder.AddLong(19, starConditionTacticRankSCount, 0); } + public static void AddStarConditionTurnCount(FlatBufferBuilder builder, long starConditionTurnCount) { builder.AddLong(20, starConditionTurnCount, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(21, enterScenarioGroupIdOffset.Value, 0); } public static VectorOffset CreateEnterScenarioGroupIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEnterScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartEnterScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } - public static void AddClearScenarioGroupId(FlatBufferBuilder builder, VectorOffset clearScenarioGroupIdOffset) { builder.AddOffset(20, clearScenarioGroupIdOffset.Value, 0); } + public static void AddClearScenarioGroupId(FlatBufferBuilder builder, VectorOffset clearScenarioGroupIdOffset) { builder.AddOffset(22, clearScenarioGroupIdOffset.Value, 0); } public static VectorOffset CreateClearScenarioGroupIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateClearScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartClearScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } - public static void AddStrategyMap(FlatBufferBuilder builder, StringOffset strategyMapOffset) { builder.AddOffset(21, strategyMapOffset.Value, 0); } - public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(22, strategyMapBGOffset.Value, 0); } - public static void AddEventContentStageRewardId(FlatBufferBuilder builder, long eventContentStageRewardId) { builder.AddLong(23, eventContentStageRewardId, 0); } - public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(24, maxTurn, 0); } - public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(25, (int)stageTopography, 0); } - public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(26, recommandLevel, 0); } - public static void AddBgmId(FlatBufferBuilder builder, StringOffset bgmIdOffset) { builder.AddOffset(27, bgmIdOffset.Value, 0); } - public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(28, (int)strategyEnvironment, 0); } - public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(29, groundID, 0); } - public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(30, (int)contentType, 0); } - public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(31, bGMId, 0); } - public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(32, instantClear, false); } - public static void AddBuffContentId(FlatBufferBuilder builder, long buffContentId) { builder.AddLong(33, buffContentId, 0); } - public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(34, fixedEchelonId, 0); } - public static void AddChallengeDisplay(FlatBufferBuilder builder, bool challengeDisplay) { builder.AddBool(35, challengeDisplay, false); } - public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(36, starGoalOffset.Value, 0); } + public static void AddStrategyMap(FlatBufferBuilder builder, StringOffset strategyMapOffset) { builder.AddOffset(23, strategyMapOffset.Value, 0); } + public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(24, strategyMapBGOffset.Value, 0); } + public static void AddEventContentStageRewardId(FlatBufferBuilder builder, long eventContentStageRewardId) { builder.AddLong(25, eventContentStageRewardId, 0); } + public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(26, maxTurn, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(27, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(28, recommandLevel, 0); } + public static void AddBgmId(FlatBufferBuilder builder, StringOffset bgmIdOffset) { builder.AddOffset(29, bgmIdOffset.Value, 0); } + public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(30, (int)strategyEnvironment, 0); } + public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(31, groundID, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(32, (int)contentType, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(33, bGMId, 0); } + public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(34, instantClear, false); } + public static void AddBuffContentId(FlatBufferBuilder builder, long buffContentId) { builder.AddLong(35, buffContentId, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(36, fixedEchelonId, 0); } + public static void AddChallengeDisplay(FlatBufferBuilder builder, bool challengeDisplay) { builder.AddBool(37, challengeDisplay, false); } + public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(38, starGoalOffset.Value, 0); } public static VectorOffset CreateStarGoalVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.StarGoalType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.StarGoalType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStarGoalVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddStarGoalAmount(FlatBufferBuilder builder, VectorOffset starGoalAmountOffset) { builder.AddOffset(37, starGoalAmountOffset.Value, 0); } + public static void AddStarGoalAmount(FlatBufferBuilder builder, VectorOffset starGoalAmountOffset) { builder.AddOffset(39, starGoalAmountOffset.Value, 0); } public static VectorOffset CreateStarGoalAmountVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateStarGoalAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartStarGoalAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddIsDefeatBattle(FlatBufferBuilder builder, bool isDefeatBattle) { builder.AddBool(38, isDefeatBattle, false); } - public static void AddStageHint(FlatBufferBuilder builder, uint stageHint) { builder.AddUint(39, stageHint, 0); } - public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(40, (int)echelonExtensionType, 0); } + public static void AddIsDefeatBattle(FlatBufferBuilder builder, bool isDefeatBattle) { builder.AddBool(40, isDefeatBattle, false); } + public static void AddStageHint(FlatBufferBuilder builder, uint stageHint) { builder.AddUint(41, stageHint, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(42, (int)echelonExtensionType, 0); } public static Offset EndEventContentStageExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public EventContentStageExcelT UnPack() { + var _o = new EventContentStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.StageDifficulty = TableEncryptionService.Convert(this.StageDifficulty, key); + _o.StageNumber = TableEncryptionService.Convert(this.StageNumber, key); + _o.StageDisplay = TableEncryptionService.Convert(this.StageDisplay, key); + _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); + _o.OpenDate = TableEncryptionService.Convert(this.OpenDate, key); + _o.OpenEventPoint = TableEncryptionService.Convert(this.OpenEventPoint, key); + _o.OpenConditionScenarioPermanentSubEventId = TableEncryptionService.Convert(this.OpenConditionScenarioPermanentSubEventId, key); + _o.PrevStageSubEventId = TableEncryptionService.Convert(this.PrevStageSubEventId, key); + _o.OpenConditionScenarioId = TableEncryptionService.Convert(this.OpenConditionScenarioId, key); + _o.OpenConditionContentType = TableEncryptionService.Convert(this.OpenConditionContentType, key); + _o.OpenConditionContentId = TableEncryptionService.Convert(this.OpenConditionContentId, 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.StageEnterEchelonCount = TableEncryptionService.Convert(this.StageEnterEchelonCount, key); + _o.StarConditionTacticRankSCount = TableEncryptionService.Convert(this.StarConditionTacticRankSCount, key); + _o.StarConditionTurnCount = TableEncryptionService.Convert(this.StarConditionTurnCount, key); + _o.EnterScenarioGroupId = new List(); + for (var _j = 0; _j < this.EnterScenarioGroupIdLength; ++_j) {_o.EnterScenarioGroupId.Add(TableEncryptionService.Convert(this.EnterScenarioGroupId(_j), key));} + _o.ClearScenarioGroupId = new List(); + for (var _j = 0; _j < this.ClearScenarioGroupIdLength; ++_j) {_o.ClearScenarioGroupId.Add(TableEncryptionService.Convert(this.ClearScenarioGroupId(_j), key));} + _o.StrategyMap = TableEncryptionService.Convert(this.StrategyMap, key); + _o.StrategyMapBG = TableEncryptionService.Convert(this.StrategyMapBG, key); + _o.EventContentStageRewardId = TableEncryptionService.Convert(this.EventContentStageRewardId, key); + _o.MaxTurn = TableEncryptionService.Convert(this.MaxTurn, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); + _o.StrategyEnvironment = TableEncryptionService.Convert(this.StrategyEnvironment, key); + _o.GroundID = TableEncryptionService.Convert(this.GroundID, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.InstantClear = TableEncryptionService.Convert(this.InstantClear, key); + _o.BuffContentId = TableEncryptionService.Convert(this.BuffContentId, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.ChallengeDisplay = TableEncryptionService.Convert(this.ChallengeDisplay, key); + _o.StarGoal = new List(); + for (var _j = 0; _j < this.StarGoalLength; ++_j) {_o.StarGoal.Add(TableEncryptionService.Convert(this.StarGoal(_j), key));} + _o.StarGoalAmount = new List(); + for (var _j = 0; _j < this.StarGoalAmountLength; ++_j) {_o.StarGoalAmount.Add(TableEncryptionService.Convert(this.StarGoalAmount(_j), key));} + _o.IsDefeatBattle = TableEncryptionService.Convert(this.IsDefeatBattle, key); + _o.StageHint = TableEncryptionService.Convert(this.StageHint, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _StageNumber = _o.StageNumber == null ? default(StringOffset) : builder.CreateString(_o.StageNumber); + var _EnterScenarioGroupId = default(VectorOffset); + if (_o.EnterScenarioGroupId != null) { + var __EnterScenarioGroupId = _o.EnterScenarioGroupId.ToArray(); + _EnterScenarioGroupId = CreateEnterScenarioGroupIdVector(builder, __EnterScenarioGroupId); + } + var _ClearScenarioGroupId = default(VectorOffset); + if (_o.ClearScenarioGroupId != null) { + var __ClearScenarioGroupId = _o.ClearScenarioGroupId.ToArray(); + _ClearScenarioGroupId = CreateClearScenarioGroupIdVector(builder, __ClearScenarioGroupId); + } + var _StrategyMap = _o.StrategyMap == null ? default(StringOffset) : builder.CreateString(_o.StrategyMap); + var _StrategyMapBG = _o.StrategyMapBG == null ? default(StringOffset) : builder.CreateString(_o.StrategyMapBG); + var _BgmId = _o.BgmId == null ? default(StringOffset) : builder.CreateString(_o.BgmId); + var _StarGoal = default(VectorOffset); + if (_o.StarGoal != null) { + var __StarGoal = _o.StarGoal.ToArray(); + _StarGoal = CreateStarGoalVector(builder, __StarGoal); + } + var _StarGoalAmount = default(VectorOffset); + if (_o.StarGoalAmount != null) { + var __StarGoalAmount = _o.StarGoalAmount.ToArray(); + _StarGoalAmount = CreateStarGoalAmountVector(builder, __StarGoalAmount); + } + return CreateEventContentStageExcel( + builder, + _o.Id, + _Name, + _o.EventContentId, + _o.StageDifficulty, + _StageNumber, + _o.StageDisplay, + _o.PrevStageId, + _o.OpenDate, + _o.OpenEventPoint, + _o.OpenConditionScenarioPermanentSubEventId, + _o.PrevStageSubEventId, + _o.OpenConditionScenarioId, + _o.OpenConditionContentType, + _o.OpenConditionContentId, + _o.BattleDuration, + _o.StageEnterCostType, + _o.StageEnterCostId, + _o.StageEnterCostAmount, + _o.StageEnterEchelonCount, + _o.StarConditionTacticRankSCount, + _o.StarConditionTurnCount, + _EnterScenarioGroupId, + _ClearScenarioGroupId, + _StrategyMap, + _StrategyMapBG, + _o.EventContentStageRewardId, + _o.MaxTurn, + _o.StageTopography, + _o.RecommandLevel, + _BgmId, + _o.StrategyEnvironment, + _o.GroundID, + _o.ContentType, + _o.BGMId, + _o.InstantClear, + _o.BuffContentId, + _o.FixedEchelonId, + _o.ChallengeDisplay, + _StarGoal, + _StarGoalAmount, + _o.IsDefeatBattle, + _o.StageHint, + _o.EchelonExtensionType); + } +} + +public class EventContentStageExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty { get; set; } + public string StageNumber { get; set; } + public int StageDisplay { get; set; } + public long PrevStageId { get; set; } + public long OpenDate { get; set; } + public long OpenEventPoint { get; set; } + public long OpenConditionScenarioPermanentSubEventId { get; set; } + public long PrevStageSubEventId { get; set; } + public long OpenConditionScenarioId { get; set; } + public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get; set; } + public long OpenConditionContentId { 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 int StageEnterEchelonCount { get; set; } + public long StarConditionTacticRankSCount { get; set; } + public long StarConditionTurnCount { get; set; } + public List EnterScenarioGroupId { get; set; } + public List ClearScenarioGroupId { get; set; } + public string StrategyMap { get; set; } + public string StrategyMapBG { get; set; } + public long EventContentStageRewardId { get; set; } + public int MaxTurn { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public int RecommandLevel { get; set; } + public string BgmId { get; set; } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get; set; } + public long GroundID { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long BGMId { get; set; } + public bool InstantClear { get; set; } + public long BuffContentId { get; set; } + public long FixedEchelonId { get; set; } + public bool ChallengeDisplay { get; set; } + public List StarGoal { get; set; } + public List StarGoalAmount { get; set; } + public bool IsDefeatBattle { get; set; } + public uint StageHint { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public EventContentStageExcelT() { + this.Id = 0; + this.Name = null; + this.EventContentId = 0; + this.StageDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageNumber = null; + this.StageDisplay = 0; + this.PrevStageId = 0; + this.OpenDate = 0; + this.OpenEventPoint = 0; + this.OpenConditionScenarioPermanentSubEventId = 0; + this.PrevStageSubEventId = 0; + this.OpenConditionScenarioId = 0; + this.OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage; + this.OpenConditionContentId = 0; + this.BattleDuration = 0; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostId = 0; + this.StageEnterCostAmount = 0; + this.StageEnterEchelonCount = 0; + this.StarConditionTacticRankSCount = 0; + this.StarConditionTurnCount = 0; + this.EnterScenarioGroupId = null; + this.ClearScenarioGroupId = null; + this.StrategyMap = null; + this.StrategyMapBG = null; + this.EventContentStageRewardId = 0; + this.MaxTurn = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.BgmId = null; + this.StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.GroundID = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.BGMId = 0; + this.InstantClear = false; + this.BuffContentId = 0; + this.FixedEchelonId = 0; + this.ChallengeDisplay = false; + this.StarGoal = null; + this.StarGoalAmount = null; + this.IsDefeatBattle = false; + this.StageHint = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } @@ -289,38 +519,40 @@ static public class EventContentStageExcelVerify && verifier.VerifyField(tablePos, 16 /*PrevStageId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 18 /*OpenDate*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 20 /*OpenEventPoint*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 22 /*OpenConditionScenarioId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 24 /*OpenConditionContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) - && verifier.VerifyField(tablePos, 26 /*OpenConditionContentId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 28 /*BattleDuration*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 30 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 32 /*StageEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 34 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 36 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 38 /*StarConditionTacticRankSCount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 40 /*StarConditionTurnCount*/, 8 /*long*/, 8, false) - && verifier.VerifyVectorOfData(tablePos, 42 /*EnterScenarioGroupId*/, 8 /*long*/, false) - && verifier.VerifyVectorOfData(tablePos, 44 /*ClearScenarioGroupId*/, 8 /*long*/, false) - && verifier.VerifyString(tablePos, 46 /*StrategyMap*/, false) - && verifier.VerifyString(tablePos, 48 /*StrategyMapBG*/, false) - && verifier.VerifyField(tablePos, 50 /*EventContentStageRewardId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 52 /*MaxTurn*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 54 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) - && verifier.VerifyField(tablePos, 56 /*RecommandLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyString(tablePos, 58 /*BgmId*/, false) - && verifier.VerifyField(tablePos, 60 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) - && verifier.VerifyField(tablePos, 62 /*GroundID*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 64 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) - && verifier.VerifyField(tablePos, 66 /*BGMId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 68 /*InstantClear*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 70 /*BuffContentId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 72 /*FixedEchelonId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 74 /*ChallengeDisplay*/, 1 /*bool*/, 1, false) - && verifier.VerifyVectorOfData(tablePos, 76 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) - && verifier.VerifyVectorOfData(tablePos, 78 /*StarGoalAmount*/, 4 /*int*/, false) - && verifier.VerifyField(tablePos, 80 /*IsDefeatBattle*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 82 /*StageHint*/, 4 /*uint*/, 4, false) - && verifier.VerifyField(tablePos, 84 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*OpenConditionScenarioPermanentSubEventId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*PrevStageSubEventId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*OpenConditionScenarioId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*OpenConditionContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*OpenConditionContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*StageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*StarConditionTacticRankSCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*StarConditionTurnCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*EnterScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*ClearScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 50 /*StrategyMap*/, false) + && verifier.VerifyString(tablePos, 52 /*StrategyMapBG*/, false) + && verifier.VerifyField(tablePos, 54 /*EventContentStageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*MaxTurn*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 62 /*BgmId*/, false) + && verifier.VerifyField(tablePos, 64 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 66 /*GroundID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 70 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*InstantClear*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 74 /*BuffContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 76 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 78 /*ChallengeDisplay*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 80 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) + && verifier.VerifyVectorOfData(tablePos, 82 /*StarGoalAmount*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 84 /*IsDefeatBattle*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 86 /*StageHint*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 88 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/EventContentStageExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageExcelTable.cs index 6b02876..2f4edf0 100644 --- a/SCHALE.Common/FlatData/EventContentStageExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentStageExcelTableT UnPack() { + var _o = new EventContentStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentStageExcelTable( + builder, + _DataList); + } +} + +public class EventContentStageExcelTableT +{ + public List DataList { get; set; } + + public EventContentStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs index 9bb7903..ae269a1 100644 --- a/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct EventContentStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentStageRewardExcelT UnPack() { + var _o = new EventContentStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateEventContentStageRewardExcel( + builder, + _o.GroupId, + _o.RewardTag, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount, + _o.IsDisplayed); + } +} + +public class EventContentStageRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + public bool IsDisplayed { get; set; } + + public EventContentStageRewardExcelT() { + this.GroupId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs index 2884543..b70478d 100644 --- a/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentStageRewardExcelTableT UnPack() { + var _o = new EventContentStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentStageRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentStageRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs index 206f97c..c70310d 100644 --- a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageTotalRewardExcel : IFlatbufferObject @@ -90,6 +91,68 @@ public struct EventContentStageTotalRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentStageTotalRewardExcelT UnPack() { + var _o = new EventContentStageTotalRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageTotalRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStageTotalReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.RequiredEventItemAmount = TableEncryptionService.Convert(this.RequiredEventItemAmount, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageTotalRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEventContentStageTotalRewardExcel( + builder, + _o.Id, + _o.EventContentId, + _o.RequiredEventItemAmount, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class EventContentStageTotalRewardExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long RequiredEventItemAmount { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public EventContentStageTotalRewardExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.RequiredEventItemAmount = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs index 7521d25..aada7b5 100644 --- a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentStageTotalRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentStageTotalRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentStageTotalRewardExcelTableT UnPack() { + var _o = new EventContentStageTotalRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentStageTotalRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentStageTotalRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentStageTotalRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentStageTotalRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentStageTotalRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentStageTotalRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentStageTotalRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs index 58e20ae..2113d9c 100644 --- a/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentTreasureCellRewardExcel : IFlatbufferObject @@ -92,6 +93,65 @@ public struct EventContentTreasureCellRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentTreasureCellRewardExcelT UnPack() { + var _o = new EventContentTreasureCellRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentTreasureCellRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentTreasureCellReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeCodeID = TableEncryptionService.Convert(this.LocalizeCodeID, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentTreasureCellRewardExcelT _o) { + if (_o == null) return default(Offset); + var _LocalizeCodeID = _o.LocalizeCodeID == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCodeID); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateEventContentTreasureCellRewardExcel( + builder, + _o.Id, + _LocalizeCodeID, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class EventContentTreasureCellRewardExcelT +{ + public long Id { get; set; } + public string LocalizeCodeID { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public EventContentTreasureCellRewardExcelT() { + this.Id = 0; + this.LocalizeCodeID = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentTreasureExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureExcel.cs index f2dff8b..d978872 100644 --- a/SCHALE.Common/FlatData/EventContentTreasureExcel.cs +++ b/SCHALE.Common/FlatData/EventContentTreasureExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentTreasureExcel : IFlatbufferObject @@ -68,6 +69,49 @@ public struct EventContentTreasureExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentTreasureExcelT UnPack() { + var _o = new EventContentTreasureExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentTreasureExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentTreasure"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.TitleLocalize = TableEncryptionService.Convert(this.TitleLocalize, key); + _o.LoopRound = TableEncryptionService.Convert(this.LoopRound, key); + _o.UsePrefabName = TableEncryptionService.Convert(this.UsePrefabName, key); + _o.TreasureBGImagePath = TableEncryptionService.Convert(this.TreasureBGImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentTreasureExcelT _o) { + if (_o == null) return default(Offset); + var _TitleLocalize = _o.TitleLocalize == null ? default(StringOffset) : builder.CreateString(_o.TitleLocalize); + var _UsePrefabName = _o.UsePrefabName == null ? default(StringOffset) : builder.CreateString(_o.UsePrefabName); + var _TreasureBGImagePath = _o.TreasureBGImagePath == null ? default(StringOffset) : builder.CreateString(_o.TreasureBGImagePath); + return CreateEventContentTreasureExcel( + builder, + _o.EventContentId, + _TitleLocalize, + _o.LoopRound, + _UsePrefabName, + _TreasureBGImagePath); + } +} + +public class EventContentTreasureExcelT +{ + public long EventContentId { get; set; } + public string TitleLocalize { get; set; } + public int LoopRound { get; set; } + public string UsePrefabName { get; set; } + public string TreasureBGImagePath { get; set; } + + public EventContentTreasureExcelT() { + this.EventContentId = 0; + this.TitleLocalize = null; + this.LoopRound = 0; + this.UsePrefabName = null; + this.TreasureBGImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs index 354273d..009477d 100644 --- a/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentTreasureRewardExcel : IFlatbufferObject @@ -124,6 +125,87 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentTreasureRewardExcelT UnPack() { + var _o = new EventContentTreasureRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentTreasureRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentTreasureReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeCodeID = TableEncryptionService.Convert(this.LocalizeCodeID, key); + _o.CellUnderImageWidth = TableEncryptionService.Convert(this.CellUnderImageWidth, key); + _o.CellUnderImageHeight = TableEncryptionService.Convert(this.CellUnderImageHeight, key); + _o.HiddenImage = TableEncryptionService.Convert(this.HiddenImage, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + _o.CellUnderImagePath = TableEncryptionService.Convert(this.CellUnderImagePath, key); + _o.TreasureSmallImagePath = TableEncryptionService.Convert(this.TreasureSmallImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentTreasureRewardExcelT _o) { + if (_o == null) return default(Offset); + var _LocalizeCodeID = _o.LocalizeCodeID == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCodeID); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + var _CellUnderImagePath = _o.CellUnderImagePath == null ? default(StringOffset) : builder.CreateString(_o.CellUnderImagePath); + var _TreasureSmallImagePath = _o.TreasureSmallImagePath == null ? default(StringOffset) : builder.CreateString(_o.TreasureSmallImagePath); + return CreateEventContentTreasureRewardExcel( + builder, + _o.Id, + _LocalizeCodeID, + _o.CellUnderImageWidth, + _o.CellUnderImageHeight, + _o.HiddenImage, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount, + _CellUnderImagePath, + _TreasureSmallImagePath); + } +} + +public class EventContentTreasureRewardExcelT +{ + public long Id { get; set; } + public string LocalizeCodeID { get; set; } + public int CellUnderImageWidth { get; set; } + public int CellUnderImageHeight { get; set; } + public bool HiddenImage { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + public string CellUnderImagePath { get; set; } + public string TreasureSmallImagePath { get; set; } + + public EventContentTreasureRewardExcelT() { + this.Id = 0; + this.LocalizeCodeID = null; + this.CellUnderImageWidth = 0; + this.CellUnderImageHeight = 0; + this.HiddenImage = false; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + this.CellUnderImagePath = null; + this.TreasureSmallImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs index e91414a..b879cf2 100644 --- a/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs +++ b/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentTreasureRoundExcel : IFlatbufferObject @@ -108,6 +109,81 @@ public struct EventContentTreasureRoundExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentTreasureRoundExcelT UnPack() { + var _o = new EventContentTreasureRoundExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentTreasureRoundExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentTreasureRound"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.TreasureRound = TableEncryptionService.Convert(this.TreasureRound, key); + _o.TreasureRoundSize = new List(); + for (var _j = 0; _j < this.TreasureRoundSizeLength; ++_j) {_o.TreasureRoundSize.Add(TableEncryptionService.Convert(this.TreasureRoundSize(_j), key));} + _o.CellVisualSortUnstructed = TableEncryptionService.Convert(this.CellVisualSortUnstructed, key); + _o.CellCheckGoodsId = TableEncryptionService.Convert(this.CellCheckGoodsId, key); + _o.CellRewardId = TableEncryptionService.Convert(this.CellRewardId, key); + _o.RewardID = new List(); + for (var _j = 0; _j < this.RewardIDLength; ++_j) {_o.RewardID.Add(TableEncryptionService.Convert(this.RewardID(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + _o.TreasureCellImagePath = TableEncryptionService.Convert(this.TreasureCellImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, EventContentTreasureRoundExcelT _o) { + if (_o == null) return default(Offset); + var _TreasureRoundSize = default(VectorOffset); + if (_o.TreasureRoundSize != null) { + var __TreasureRoundSize = _o.TreasureRoundSize.ToArray(); + _TreasureRoundSize = CreateTreasureRoundSizeVector(builder, __TreasureRoundSize); + } + var _RewardID = default(VectorOffset); + if (_o.RewardID != null) { + var __RewardID = _o.RewardID.ToArray(); + _RewardID = CreateRewardIDVector(builder, __RewardID); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + var _TreasureCellImagePath = _o.TreasureCellImagePath == null ? default(StringOffset) : builder.CreateString(_o.TreasureCellImagePath); + return CreateEventContentTreasureRoundExcel( + builder, + _o.EventContentId, + _o.TreasureRound, + _TreasureRoundSize, + _o.CellVisualSortUnstructed, + _o.CellCheckGoodsId, + _o.CellRewardId, + _RewardID, + _RewardAmount, + _TreasureCellImagePath); + } +} + +public class EventContentTreasureRoundExcelT +{ + public long EventContentId { get; set; } + public int TreasureRound { get; set; } + public List TreasureRoundSize { get; set; } + public bool CellVisualSortUnstructed { get; set; } + public long CellCheckGoodsId { get; set; } + public long CellRewardId { get; set; } + public List RewardID { get; set; } + public List RewardAmount { get; set; } + public string TreasureCellImagePath { get; set; } + + public EventContentTreasureRoundExcelT() { + this.EventContentId = 0; + this.TreasureRound = 0; + this.TreasureRoundSize = null; + this.CellVisualSortUnstructed = false; + this.CellCheckGoodsId = 0; + this.CellRewardId = 0; + this.RewardID = null; + this.RewardAmount = null; + this.TreasureCellImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentType.cs b/SCHALE.Common/FlatData/EventContentType.cs index e7bef7c..abf835d 100644 --- a/SCHALE.Common/FlatData/EventContentType.cs +++ b/SCHALE.Common/FlatData/EventContentType.cs @@ -38,6 +38,7 @@ public enum EventContentType : int Treasure = 28, Field = 29, MultiFloorRaid = 30, + MinigameDreamMaker = 31, }; diff --git a/SCHALE.Common/FlatData/EventContentZoneExcel.cs b/SCHALE.Common/FlatData/EventContentZoneExcel.cs index 85bbf02..47a29b1 100644 --- a/SCHALE.Common/FlatData/EventContentZoneExcel.cs +++ b/SCHALE.Common/FlatData/EventContentZoneExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentZoneExcel : IFlatbufferObject @@ -106,6 +107,84 @@ public struct EventContentZoneExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentZoneExcelT UnPack() { + var _o = new EventContentZoneExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentZoneExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentZone"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.OriginalZoneId = TableEncryptionService.Convert(this.OriginalZoneId, key); + _o.LocationId = TableEncryptionService.Convert(this.LocationId, key); + _o.LocationRank = TableEncryptionService.Convert(this.LocationRank, key); + _o.EventPointForLocationRank = TableEncryptionService.Convert(this.EventPointForLocationRank, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.StudentVisitProb = new List(); + for (var _j = 0; _j < this.StudentVisitProbLength; ++_j) {_o.StudentVisitProb.Add(TableEncryptionService.Convert(this.StudentVisitProb(_j), key));} + _o.RewardGroupId = TableEncryptionService.Convert(this.RewardGroupId, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.WhiteListTags = new List(); + for (var _j = 0; _j < this.WhiteListTagsLength; ++_j) {_o.WhiteListTags.Add(TableEncryptionService.Convert(this.WhiteListTags(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentZoneExcelT _o) { + if (_o == null) return default(Offset); + var _StudentVisitProb = default(VectorOffset); + if (_o.StudentVisitProb != null) { + var __StudentVisitProb = _o.StudentVisitProb.ToArray(); + _StudentVisitProb = CreateStudentVisitProbVector(builder, __StudentVisitProb); + } + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + var _WhiteListTags = default(VectorOffset); + if (_o.WhiteListTags != null) { + var __WhiteListTags = _o.WhiteListTags.ToArray(); + _WhiteListTags = CreateWhiteListTagsVector(builder, __WhiteListTags); + } + return CreateEventContentZoneExcel( + builder, + _o.Id, + _o.OriginalZoneId, + _o.LocationId, + _o.LocationRank, + _o.EventPointForLocationRank, + _o.LocalizeEtcId, + _StudentVisitProb, + _o.RewardGroupId, + _Tags, + _WhiteListTags); + } +} + +public class EventContentZoneExcelT +{ + public long Id { get; set; } + public long OriginalZoneId { get; set; } + public long LocationId { get; set; } + public long LocationRank { get; set; } + public long EventPointForLocationRank { get; set; } + public uint LocalizeEtcId { get; set; } + public List StudentVisitProb { get; set; } + public long RewardGroupId { get; set; } + public List Tags { get; set; } + public List WhiteListTags { get; set; } + + public EventContentZoneExcelT() { + this.Id = 0; + this.OriginalZoneId = 0; + this.LocationId = 0; + this.LocationRank = 0; + this.EventPointForLocationRank = 0; + this.LocalizeEtcId = 0; + this.StudentVisitProb = null; + this.RewardGroupId = 0; + this.Tags = null; + this.WhiteListTags = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs b/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs index 5878e64..d1a307b 100644 --- a/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentZoneExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentZoneExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentZoneExcelTableT UnPack() { + var _o = new EventContentZoneExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentZoneExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentZoneExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentZoneExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentZoneExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentZoneExcelTable( + builder, + _DataList); + } +} + +public class EventContentZoneExcelTableT +{ + public List DataList { get; set; } + + public EventContentZoneExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs index 9aa57f1..a414c81 100644 --- a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentZoneVisitRewardExcel : IFlatbufferObject @@ -126,6 +127,88 @@ public struct EventContentZoneVisitRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentZoneVisitRewardExcelT UnPack() { + var _o = new EventContentZoneVisitRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentZoneVisitRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentZoneVisitReward"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentLocationId = TableEncryptionService.Convert(this.EventContentLocationId, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.CharacterDevName = TableEncryptionService.Convert(this.CharacterDevName, key); + _o.VisitRewardParcelType = new List(); + for (var _j = 0; _j < this.VisitRewardParcelTypeLength; ++_j) {_o.VisitRewardParcelType.Add(TableEncryptionService.Convert(this.VisitRewardParcelType(_j), key));} + _o.VisitRewardParcelId = new List(); + for (var _j = 0; _j < this.VisitRewardParcelIdLength; ++_j) {_o.VisitRewardParcelId.Add(TableEncryptionService.Convert(this.VisitRewardParcelId(_j), key));} + _o.VisitRewardAmount = new List(); + for (var _j = 0; _j < this.VisitRewardAmountLength; ++_j) {_o.VisitRewardAmount.Add(TableEncryptionService.Convert(this.VisitRewardAmount(_j), key));} + _o.VisitRewardProb = new List(); + for (var _j = 0; _j < this.VisitRewardProbLength; ++_j) {_o.VisitRewardProb.Add(TableEncryptionService.Convert(this.VisitRewardProb(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentZoneVisitRewardExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _CharacterDevName = _o.CharacterDevName == null ? default(StringOffset) : builder.CreateString(_o.CharacterDevName); + var _VisitRewardParcelType = default(VectorOffset); + if (_o.VisitRewardParcelType != null) { + var __VisitRewardParcelType = _o.VisitRewardParcelType.ToArray(); + _VisitRewardParcelType = CreateVisitRewardParcelTypeVector(builder, __VisitRewardParcelType); + } + var _VisitRewardParcelId = default(VectorOffset); + if (_o.VisitRewardParcelId != null) { + var __VisitRewardParcelId = _o.VisitRewardParcelId.ToArray(); + _VisitRewardParcelId = CreateVisitRewardParcelIdVector(builder, __VisitRewardParcelId); + } + var _VisitRewardAmount = default(VectorOffset); + if (_o.VisitRewardAmount != null) { + var __VisitRewardAmount = _o.VisitRewardAmount.ToArray(); + _VisitRewardAmount = CreateVisitRewardAmountVector(builder, __VisitRewardAmount); + } + var _VisitRewardProb = default(VectorOffset); + if (_o.VisitRewardProb != null) { + var __VisitRewardProb = _o.VisitRewardProb.ToArray(); + _VisitRewardProb = CreateVisitRewardProbVector(builder, __VisitRewardProb); + } + return CreateEventContentZoneVisitRewardExcel( + builder, + _o.EventContentId, + _o.EventContentLocationId, + _DevName, + _o.CharacterId, + _CharacterDevName, + _VisitRewardParcelType, + _VisitRewardParcelId, + _VisitRewardAmount, + _VisitRewardProb); + } +} + +public class EventContentZoneVisitRewardExcelT +{ + public long EventContentId { get; set; } + public long EventContentLocationId { get; set; } + public string DevName { get; set; } + public long CharacterId { get; set; } + public string CharacterDevName { get; set; } + public List VisitRewardParcelType { get; set; } + public List VisitRewardParcelId { get; set; } + public List VisitRewardAmount { get; set; } + public List VisitRewardProb { get; set; } + + public EventContentZoneVisitRewardExcelT() { + this.EventContentId = 0; + this.EventContentLocationId = 0; + this.DevName = null; + this.CharacterId = 0; + this.CharacterDevName = null; + this.VisitRewardParcelType = null; + this.VisitRewardParcelId = null; + this.VisitRewardAmount = null; + this.VisitRewardProb = null; + } } diff --git a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs index 3f58b19..0819fd9 100644 --- a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct EventContentZoneVisitRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct EventContentZoneVisitRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public EventContentZoneVisitRewardExcelTableT UnPack() { + var _o = new EventContentZoneVisitRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(EventContentZoneVisitRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("EventContentZoneVisitRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, EventContentZoneVisitRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EventContentZoneVisitRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateEventContentZoneVisitRewardExcelTable( + builder, + _DataList); + } +} + +public class EventContentZoneVisitRewardExcelTableT +{ + public List DataList { get; set; } + + public EventContentZoneVisitRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs index a90afd2..0b2bf60 100644 --- a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs +++ b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FarmingDungeonLocationManageExcel : IFlatbufferObject @@ -88,6 +89,69 @@ public struct FarmingDungeonLocationManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FarmingDungeonLocationManageExcelT UnPack() { + var _o = new FarmingDungeonLocationManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FarmingDungeonLocationManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FarmingDungeonLocationManage"); + _o.FarmingDungeonLocationId = TableEncryptionService.Convert(this.FarmingDungeonLocationId, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.WeekDungeonType = TableEncryptionService.Convert(this.WeekDungeonType, key); + _o.SchoolDungeonType = TableEncryptionService.Convert(this.SchoolDungeonType, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.OpenStartDateTime = TableEncryptionService.Convert(this.OpenStartDateTime, key); + _o.OpenEndDateTime = TableEncryptionService.Convert(this.OpenEndDateTime, key); + _o.LocationButtonImagePath = TableEncryptionService.Convert(this.LocationButtonImagePath, key); + _o.LocalizeCodeTitle = TableEncryptionService.Convert(this.LocalizeCodeTitle, key); + _o.LocalizeCodeInfo = TableEncryptionService.Convert(this.LocalizeCodeInfo, key); + } + public static Offset Pack(FlatBufferBuilder builder, FarmingDungeonLocationManageExcelT _o) { + if (_o == null) return default(Offset); + var _OpenStartDateTime = _o.OpenStartDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenStartDateTime); + var _OpenEndDateTime = _o.OpenEndDateTime == null ? default(StringOffset) : builder.CreateString(_o.OpenEndDateTime); + var _LocationButtonImagePath = _o.LocationButtonImagePath == null ? default(StringOffset) : builder.CreateString(_o.LocationButtonImagePath); + return CreateFarmingDungeonLocationManageExcel( + builder, + _o.FarmingDungeonLocationId, + _o.ContentType, + _o.WeekDungeonType, + _o.SchoolDungeonType, + _o.Order, + _OpenStartDateTime, + _OpenEndDateTime, + _LocationButtonImagePath, + _o.LocalizeCodeTitle, + _o.LocalizeCodeInfo); + } +} + +public class FarmingDungeonLocationManageExcelT +{ + public long FarmingDungeonLocationId { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get; set; } + public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType { get; set; } + public long Order { get; set; } + public string OpenStartDateTime { get; set; } + public string OpenEndDateTime { get; set; } + public string LocationButtonImagePath { get; set; } + public uint LocalizeCodeTitle { get; set; } + public uint LocalizeCodeInfo { get; set; } + + public FarmingDungeonLocationManageExcelT() { + this.FarmingDungeonLocationId = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None; + this.SchoolDungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; + this.Order = 0; + this.OpenStartDateTime = null; + this.OpenEndDateTime = null; + this.LocationButtonImagePath = null; + this.LocalizeCodeTitle = 0; + this.LocalizeCodeInfo = 0; + } } diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs index 7f7963a..1ec1c0e 100644 --- a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs +++ b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FarmingDungeonLocationManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FarmingDungeonLocationManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FarmingDungeonLocationManageExcelTableT UnPack() { + var _o = new FarmingDungeonLocationManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FarmingDungeonLocationManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FarmingDungeonLocationManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FarmingDungeonLocationManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFarmingDungeonLocationManageExcelTable( + builder, + _DataList); + } +} + +public class FarmingDungeonLocationManageExcelTableT +{ + public List DataList { get; set; } + + public FarmingDungeonLocationManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FavorLevelExcel.cs b/SCHALE.Common/FlatData/FavorLevelExcel.cs index ebeb8d5..7c8ac29 100644 --- a/SCHALE.Common/FlatData/FavorLevelExcel.cs +++ b/SCHALE.Common/FlatData/FavorLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FavorLevelExcel : IFlatbufferObject @@ -50,6 +51,40 @@ public struct FavorLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FavorLevelExcelT UnPack() { + var _o = new FavorLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FavorLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FavorLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.ExpType = new List(); + for (var _j = 0; _j < this.ExpTypeLength; ++_j) {_o.ExpType.Add(TableEncryptionService.Convert(this.ExpType(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FavorLevelExcelT _o) { + if (_o == null) return default(Offset); + var _ExpType = default(VectorOffset); + if (_o.ExpType != null) { + var __ExpType = _o.ExpType.ToArray(); + _ExpType = CreateExpTypeVector(builder, __ExpType); + } + return CreateFavorLevelExcel( + builder, + _o.Level, + _ExpType); + } +} + +public class FavorLevelExcelT +{ + public long Level { get; set; } + public List ExpType { get; set; } + + public FavorLevelExcelT() { + this.Level = 0; + this.ExpType = null; + } } diff --git a/SCHALE.Common/FlatData/FavorLevelExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelExcelTable.cs index ecb918d..fa67722 100644 --- a/SCHALE.Common/FlatData/FavorLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/FavorLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FavorLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FavorLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FavorLevelExcelTableT UnPack() { + var _o = new FavorLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FavorLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FavorLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FavorLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FavorLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFavorLevelExcelTable( + builder, + _DataList); + } +} + +public class FavorLevelExcelTableT +{ + public List DataList { get; set; } + + public FavorLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs b/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs index 79b7273..c7309ff 100644 --- a/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs +++ b/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FavorLevelRewardExcel : IFlatbufferObject @@ -118,6 +119,84 @@ public struct FavorLevelRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FavorLevelRewardExcelT UnPack() { + var _o = new FavorLevelRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FavorLevelRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FavorLevelReward"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.FavorLevel = TableEncryptionService.Convert(this.FavorLevel, key); + _o.StatType = new List(); + for (var _j = 0; _j < this.StatTypeLength; ++_j) {_o.StatType.Add(TableEncryptionService.Convert(this.StatType(_j), key));} + _o.StatValue = new List(); + for (var _j = 0; _j < this.StatValueLength; ++_j) {_o.StatValue.Add(TableEncryptionService.Convert(this.StatValue(_j), key));} + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardAmount = new List(); + for (var _j = 0; _j < this.RewardAmountLength; ++_j) {_o.RewardAmount.Add(TableEncryptionService.Convert(this.RewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FavorLevelRewardExcelT _o) { + if (_o == null) return default(Offset); + var _StatType = default(VectorOffset); + if (_o.StatType != null) { + var __StatType = _o.StatType.ToArray(); + _StatType = CreateStatTypeVector(builder, __StatType); + } + var _StatValue = default(VectorOffset); + if (_o.StatValue != null) { + var __StatValue = _o.StatValue.ToArray(); + _StatValue = CreateStatValueVector(builder, __StatValue); + } + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardAmount = default(VectorOffset); + if (_o.RewardAmount != null) { + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); + } + return CreateFavorLevelRewardExcel( + builder, + _o.CharacterId, + _o.FavorLevel, + _StatType, + _StatValue, + _RewardParcelType, + _RewardParcelId, + _RewardAmount); + } +} + +public class FavorLevelRewardExcelT +{ + public long CharacterId { get; set; } + public long FavorLevel { get; set; } + public List StatType { get; set; } + public List StatValue { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardAmount { get; set; } + + public FavorLevelRewardExcelT() { + this.CharacterId = 0; + this.FavorLevel = 0; + this.StatType = null; + this.StatValue = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs index 0a3b538..128ceee 100644 --- a/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FavorLevelRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FavorLevelRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FavorLevelRewardExcelTableT UnPack() { + var _o = new FavorLevelRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FavorLevelRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FavorLevelRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FavorLevelRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FavorLevelRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFavorLevelRewardExcelTable( + builder, + _DataList); + } +} + +public class FavorLevelRewardExcelTableT +{ + public List DataList { get; set; } + + public FavorLevelRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldContentStageExcel.cs b/SCHALE.Common/FlatData/FieldContentStageExcel.cs index 8b278c7..17058a9 100644 --- a/SCHALE.Common/FlatData/FieldContentStageExcel.cs +++ b/SCHALE.Common/FlatData/FieldContentStageExcel.cs @@ -7,6 +7,7 @@ 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 @@ -104,6 +105,95 @@ public struct FieldContentStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(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 Pack(FlatBufferBuilder builder, FieldContentStageExcelT _o) { + if (_o == null) return default(Offset); + 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; + } } diff --git a/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs b/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs index 03c2f57..5f88f33 100644 --- a/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldContentStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldContentStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldContentStageExcelTableT UnPack() { + var _o = new FieldContentStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldContentStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldContentStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldContentStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldContentStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldContentStageExcelTable( + builder, + _DataList); + } +} + +public class FieldContentStageExcelTableT +{ + public List DataList { get; set; } + + public FieldContentStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs index bd93ba6..0b40a61 100644 --- a/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldContentStageRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct FieldContentStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldContentStageRewardExcelT UnPack() { + var _o = new FieldContentStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldContentStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldContentStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldContentStageRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateFieldContentStageRewardExcel( + builder, + _o.GroupId, + _o.RewardTag, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount, + _o.IsDisplayed); + } +} + +public class FieldContentStageRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + public bool IsDisplayed { get; set; } + + public FieldContentStageRewardExcelT() { + this.GroupId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs b/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs index c9e57c2..613d057 100644 --- a/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldContentStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldContentStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldContentStageRewardExcelTableT UnPack() { + var _o = new FieldContentStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldContentStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldContentStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldContentStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldContentStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldContentStageRewardExcelTable( + builder, + _DataList); + } +} + +public class FieldContentStageRewardExcelTableT +{ + public List DataList { get; set; } + + public FieldContentStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldDateExcel.cs b/SCHALE.Common/FlatData/FieldDateExcel.cs index 8eb48a2..cc82031 100644 --- a/SCHALE.Common/FlatData/FieldDateExcel.cs +++ b/SCHALE.Common/FlatData/FieldDateExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldDateExcel : IFlatbufferObject @@ -90,6 +91,76 @@ public struct FieldDateExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldDateExcelT UnPack() { + var _o = new FieldDateExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldDateExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldDate"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.OpenDate = TableEncryptionService.Convert(this.OpenDate, key); + _o.DateLocalizeKey = TableEncryptionService.Convert(this.DateLocalizeKey, key); + _o.EntrySceneId = TableEncryptionService.Convert(this.EntrySceneId, key); + _o.StartConditionType = TableEncryptionService.Convert(this.StartConditionType, key); + _o.StartConditionId = TableEncryptionService.Convert(this.StartConditionId, key); + _o.EndConditionType = TableEncryptionService.Convert(this.EndConditionType, key); + _o.EndConditionId = TableEncryptionService.Convert(this.EndConditionId, key); + _o.OpenConditionStage = TableEncryptionService.Convert(this.OpenConditionStage, key); + _o.DateResultSpinePath = TableEncryptionService.Convert(this.DateResultSpinePath, key); + _o.DateResultSpineOffsetX = TableEncryptionService.Convert(this.DateResultSpineOffsetX, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldDateExcelT _o) { + if (_o == null) return default(Offset); + var _DateLocalizeKey = _o.DateLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.DateLocalizeKey); + var _DateResultSpinePath = _o.DateResultSpinePath == null ? default(StringOffset) : builder.CreateString(_o.DateResultSpinePath); + return CreateFieldDateExcel( + builder, + _o.UniqueId, + _o.SeasonId, + _o.OpenDate, + _DateLocalizeKey, + _o.EntrySceneId, + _o.StartConditionType, + _o.StartConditionId, + _o.EndConditionType, + _o.EndConditionId, + _o.OpenConditionStage, + _DateResultSpinePath, + _o.DateResultSpineOffsetX); + } +} + +public class FieldDateExcelT +{ + public long UniqueId { get; set; } + public long SeasonId { get; set; } + public long OpenDate { get; set; } + public string DateLocalizeKey { get; set; } + public long EntrySceneId { get; set; } + public SCHALE.Common.FlatData.FieldConditionType StartConditionType { get; set; } + public long StartConditionId { get; set; } + public SCHALE.Common.FlatData.FieldConditionType EndConditionType { get; set; } + public long EndConditionId { get; set; } + public long OpenConditionStage { get; set; } + public string DateResultSpinePath { get; set; } + public float DateResultSpineOffsetX { get; set; } + + public FieldDateExcelT() { + this.UniqueId = 0; + this.SeasonId = 0; + this.OpenDate = 0; + this.DateLocalizeKey = null; + this.EntrySceneId = 0; + this.StartConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; + this.StartConditionId = 0; + this.EndConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; + this.EndConditionId = 0; + this.OpenConditionStage = 0; + this.DateResultSpinePath = null; + this.DateResultSpineOffsetX = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/FieldDateExcelTable.cs b/SCHALE.Common/FlatData/FieldDateExcelTable.cs index bc08699..8815d07 100644 --- a/SCHALE.Common/FlatData/FieldDateExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldDateExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldDateExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldDateExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldDateExcelTableT UnPack() { + var _o = new FieldDateExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldDateExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldDateExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldDateExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldDateExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldDateExcelTable( + builder, + _DataList); + } +} + +public class FieldDateExcelTableT +{ + public List DataList { get; set; } + + public FieldDateExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldEvidenceExcel.cs b/SCHALE.Common/FlatData/FieldEvidenceExcel.cs index e0922f8..fed41ca 100644 --- a/SCHALE.Common/FlatData/FieldEvidenceExcel.cs +++ b/SCHALE.Common/FlatData/FieldEvidenceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldEvidenceExcel : IFlatbufferObject @@ -74,6 +75,50 @@ public struct FieldEvidenceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldEvidenceExcelT UnPack() { + var _o = new FieldEvidenceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldEvidenceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldEvidence"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.NameLocalizeKey = TableEncryptionService.Convert(this.NameLocalizeKey, key); + _o.DescriptionLocalizeKey = TableEncryptionService.Convert(this.DescriptionLocalizeKey, key); + _o.DetailLocalizeKey = TableEncryptionService.Convert(this.DetailLocalizeKey, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldEvidenceExcelT _o) { + if (_o == null) return default(Offset); + var _NameLocalizeKey = _o.NameLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.NameLocalizeKey); + var _DescriptionLocalizeKey = _o.DescriptionLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.DescriptionLocalizeKey); + var _DetailLocalizeKey = _o.DetailLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.DetailLocalizeKey); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + return CreateFieldEvidenceExcel( + builder, + _o.UniqueId, + _NameLocalizeKey, + _DescriptionLocalizeKey, + _DetailLocalizeKey, + _ImagePath); + } +} + +public class FieldEvidenceExcelT +{ + public long UniqueId { get; set; } + public string NameLocalizeKey { get; set; } + public string DescriptionLocalizeKey { get; set; } + public string DetailLocalizeKey { get; set; } + public string ImagePath { get; set; } + + public FieldEvidenceExcelT() { + this.UniqueId = 0; + this.NameLocalizeKey = null; + this.DescriptionLocalizeKey = null; + this.DetailLocalizeKey = null; + this.ImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs b/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs index a2102a2..dbfcc3f 100644 --- a/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldEvidenceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldEvidenceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldEvidenceExcelTableT UnPack() { + var _o = new FieldEvidenceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldEvidenceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldEvidenceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldEvidenceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldEvidenceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldEvidenceExcelTable( + builder, + _DataList); + } +} + +public class FieldEvidenceExcelTableT +{ + public List DataList { get; set; } + + public FieldEvidenceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldInteractionExcel.cs b/SCHALE.Common/FlatData/FieldInteractionExcel.cs index f75a8b2..5292ed4 100644 --- a/SCHALE.Common/FlatData/FieldInteractionExcel.cs +++ b/SCHALE.Common/FlatData/FieldInteractionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldInteractionExcel : IFlatbufferObject @@ -176,6 +177,125 @@ public struct FieldInteractionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldInteractionExcelT UnPack() { + var _o = new FieldInteractionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldInteractionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldInteraction"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.FieldDateId = TableEncryptionService.Convert(this.FieldDateId, key); + _o.ShowEmoji = TableEncryptionService.Convert(this.ShowEmoji, key); + _o.KeywordLocalize = TableEncryptionService.Convert(this.KeywordLocalize, key); + _o.FieldSeasonId = TableEncryptionService.Convert(this.FieldSeasonId, key); + _o.InteractionType = new List(); + for (var _j = 0; _j < this.InteractionTypeLength; ++_j) {_o.InteractionType.Add(TableEncryptionService.Convert(this.InteractionType(_j), key));} + _o.InteractionId = new List(); + for (var _j = 0; _j < this.InteractionIdLength; ++_j) {_o.InteractionId.Add(TableEncryptionService.Convert(this.InteractionId(_j), key));} + _o.ConditionClass = TableEncryptionService.Convert(this.ConditionClass, key); + _o.ConditionClassParameters = new List(); + for (var _j = 0; _j < this.ConditionClassParametersLength; ++_j) {_o.ConditionClassParameters.Add(TableEncryptionService.Convert(this.ConditionClassParameters(_j), key));} + _o.OnceOnly = TableEncryptionService.Convert(this.OnceOnly, key); + _o.ConditionIndex = new List(); + for (var _j = 0; _j < this.ConditionIndexLength; ++_j) {_o.ConditionIndex.Add(TableEncryptionService.Convert(this.ConditionIndex(_j), key));} + _o.ConditionType = new List(); + for (var _j = 0; _j < this.ConditionTypeLength; ++_j) {_o.ConditionType.Add(TableEncryptionService.Convert(this.ConditionType(_j), key));} + _o.ConditionId = new List(); + for (var _j = 0; _j < this.ConditionIdLength; ++_j) {_o.ConditionId.Add(TableEncryptionService.Convert(this.ConditionId(_j), key));} + _o.NegateCondition = new List(); + for (var _j = 0; _j < this.NegateConditionLength; ++_j) {_o.NegateCondition.Add(TableEncryptionService.Convert(this.NegateCondition(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FieldInteractionExcelT _o) { + if (_o == null) return default(Offset); + var _KeywordLocalize = _o.KeywordLocalize == null ? default(StringOffset) : builder.CreateString(_o.KeywordLocalize); + var _InteractionType = default(VectorOffset); + if (_o.InteractionType != null) { + var __InteractionType = _o.InteractionType.ToArray(); + _InteractionType = CreateInteractionTypeVector(builder, __InteractionType); + } + var _InteractionId = default(VectorOffset); + if (_o.InteractionId != null) { + var __InteractionId = _o.InteractionId.ToArray(); + _InteractionId = CreateInteractionIdVector(builder, __InteractionId); + } + var _ConditionClassParameters = default(VectorOffset); + if (_o.ConditionClassParameters != null) { + var __ConditionClassParameters = _o.ConditionClassParameters.ToArray(); + _ConditionClassParameters = CreateConditionClassParametersVector(builder, __ConditionClassParameters); + } + var _ConditionIndex = default(VectorOffset); + if (_o.ConditionIndex != null) { + var __ConditionIndex = _o.ConditionIndex.ToArray(); + _ConditionIndex = CreateConditionIndexVector(builder, __ConditionIndex); + } + var _ConditionType = default(VectorOffset); + if (_o.ConditionType != null) { + var __ConditionType = _o.ConditionType.ToArray(); + _ConditionType = CreateConditionTypeVector(builder, __ConditionType); + } + var _ConditionId = default(VectorOffset); + if (_o.ConditionId != null) { + var __ConditionId = _o.ConditionId.ToArray(); + _ConditionId = CreateConditionIdVector(builder, __ConditionId); + } + var _NegateCondition = default(VectorOffset); + if (_o.NegateCondition != null) { + var __NegateCondition = _o.NegateCondition.ToArray(); + _NegateCondition = CreateNegateConditionVector(builder, __NegateCondition); + } + return CreateFieldInteractionExcel( + builder, + _o.UniqueId, + _o.FieldDateId, + _o.ShowEmoji, + _KeywordLocalize, + _o.FieldSeasonId, + _InteractionType, + _InteractionId, + _o.ConditionClass, + _ConditionClassParameters, + _o.OnceOnly, + _ConditionIndex, + _ConditionType, + _ConditionId, + _NegateCondition); + } +} + +public class FieldInteractionExcelT +{ + public long UniqueId { get; set; } + public long FieldDateId { get; set; } + public bool ShowEmoji { get; set; } + public string KeywordLocalize { get; set; } + public long FieldSeasonId { get; set; } + public List InteractionType { get; set; } + public List InteractionId { get; set; } + public SCHALE.Common.FlatData.FieldConditionClass ConditionClass { get; set; } + public List ConditionClassParameters { get; set; } + public bool OnceOnly { get; set; } + public List ConditionIndex { get; set; } + public List ConditionType { get; set; } + public List ConditionId { get; set; } + public List NegateCondition { get; set; } + + public FieldInteractionExcelT() { + this.UniqueId = 0; + this.FieldDateId = 0; + this.ShowEmoji = false; + this.KeywordLocalize = null; + this.FieldSeasonId = 0; + this.InteractionType = null; + this.InteractionId = null; + this.ConditionClass = SCHALE.Common.FlatData.FieldConditionClass.AndOr; + this.ConditionClassParameters = null; + this.OnceOnly = false; + this.ConditionIndex = null; + this.ConditionType = null; + this.ConditionId = null; + this.NegateCondition = null; + } } diff --git a/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs b/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs index 9a63a65..d278f7a 100644 --- a/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldInteractionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldInteractionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldInteractionExcelTableT UnPack() { + var _o = new FieldInteractionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldInteractionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldInteractionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldInteractionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldInteractionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldInteractionExcelTable( + builder, + _DataList); + } +} + +public class FieldInteractionExcelTableT +{ + public List DataList { get; set; } + + public FieldInteractionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldKeywordExcel.cs b/SCHALE.Common/FlatData/FieldKeywordExcel.cs index 3f7b382..2d2ce9e 100644 --- a/SCHALE.Common/FlatData/FieldKeywordExcel.cs +++ b/SCHALE.Common/FlatData/FieldKeywordExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldKeywordExcel : IFlatbufferObject @@ -64,6 +65,45 @@ public struct FieldKeywordExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldKeywordExcelT UnPack() { + var _o = new FieldKeywordExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldKeywordExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldKeyword"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.NameLocalizeKey = TableEncryptionService.Convert(this.NameLocalizeKey, key); + _o.DescriptionLocalizeKey = TableEncryptionService.Convert(this.DescriptionLocalizeKey, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldKeywordExcelT _o) { + if (_o == null) return default(Offset); + var _NameLocalizeKey = _o.NameLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.NameLocalizeKey); + var _DescriptionLocalizeKey = _o.DescriptionLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.DescriptionLocalizeKey); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + return CreateFieldKeywordExcel( + builder, + _o.UniqueId, + _NameLocalizeKey, + _DescriptionLocalizeKey, + _ImagePath); + } +} + +public class FieldKeywordExcelT +{ + public long UniqueId { get; set; } + public string NameLocalizeKey { get; set; } + public string DescriptionLocalizeKey { get; set; } + public string ImagePath { get; set; } + + public FieldKeywordExcelT() { + this.UniqueId = 0; + this.NameLocalizeKey = null; + this.DescriptionLocalizeKey = null; + this.ImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs b/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs index 32ef2da..09588fd 100644 --- a/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldKeywordExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldKeywordExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldKeywordExcelTableT UnPack() { + var _o = new FieldKeywordExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldKeywordExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldKeywordExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldKeywordExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldKeywordExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldKeywordExcelTable( + builder, + _DataList); + } +} + +public class FieldKeywordExcelTableT +{ + public List DataList { get; set; } + + public FieldKeywordExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryExcel.cs b/SCHALE.Common/FlatData/FieldMasteryExcel.cs index aef535f..be349b3 100644 --- a/SCHALE.Common/FlatData/FieldMasteryExcel.cs +++ b/SCHALE.Common/FlatData/FieldMasteryExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryExcel : IFlatbufferObject @@ -66,6 +67,62 @@ public struct FieldMasteryExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryExcelT UnPack() { + var _o = new FieldMasteryExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMastery"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.ExpAmount = TableEncryptionService.Convert(this.ExpAmount, key); + _o.TokenType = TableEncryptionService.Convert(this.TokenType, key); + _o.TokenId = TableEncryptionService.Convert(this.TokenId, key); + _o.TokenRequirement = TableEncryptionService.Convert(this.TokenRequirement, key); + _o.AccomplishmentConditionType = TableEncryptionService.Convert(this.AccomplishmentConditionType, key); + _o.AccomplishmentConditionId = TableEncryptionService.Convert(this.AccomplishmentConditionId, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryExcelT _o) { + if (_o == null) return default(Offset); + return CreateFieldMasteryExcel( + builder, + _o.UniqueId, + _o.SeasonId, + _o.Order, + _o.ExpAmount, + _o.TokenType, + _o.TokenId, + _o.TokenRequirement, + _o.AccomplishmentConditionType, + _o.AccomplishmentConditionId); + } +} + +public class FieldMasteryExcelT +{ + public long UniqueId { get; set; } + public long SeasonId { get; set; } + public int Order { get; set; } + public long ExpAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType TokenType { get; set; } + public long TokenId { get; set; } + public long TokenRequirement { get; set; } + public SCHALE.Common.FlatData.FieldConditionType AccomplishmentConditionType { get; set; } + public long AccomplishmentConditionId { get; set; } + + public FieldMasteryExcelT() { + this.UniqueId = 0; + this.SeasonId = 0; + this.Order = 0; + this.ExpAmount = 0; + this.TokenType = SCHALE.Common.FlatData.ParcelType.None; + this.TokenId = 0; + this.TokenRequirement = 0; + this.AccomplishmentConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; + this.AccomplishmentConditionId = 0; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs index 40e567f..bab2ad3 100644 --- a/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldMasteryExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryExcelTableT UnPack() { + var _o = new FieldMasteryExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMasteryExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldMasteryExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldMasteryExcelTable( + builder, + _DataList); + } +} + +public class FieldMasteryExcelTableT +{ + public List DataList { get; set; } + + public FieldMasteryExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs b/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs index 4d6b4d3..932dee6 100644 --- a/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs +++ b/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryLevelExcel : IFlatbufferObject @@ -98,6 +99,70 @@ public struct FieldMasteryLevelExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryLevelExcelT UnPack() { + var _o = new FieldMasteryLevelExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryLevelExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMasteryLevel"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Id = new List(); + for (var _j = 0; _j < this.IdLength; ++_j) {_o.Id.Add(TableEncryptionService.Convert(this.Id(_j), key));} + _o.Exp = new List(); + for (var _j = 0; _j < this.ExpLength; ++_j) {_o.Exp.Add(TableEncryptionService.Convert(this.Exp(_j), key));} + _o.TotalExp = new List(); + for (var _j = 0; _j < this.TotalExpLength; ++_j) {_o.TotalExp.Add(TableEncryptionService.Convert(this.TotalExp(_j), key));} + _o.RewardId = new List(); + for (var _j = 0; _j < this.RewardIdLength; ++_j) {_o.RewardId.Add(TableEncryptionService.Convert(this.RewardId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryLevelExcelT _o) { + if (_o == null) return default(Offset); + var _Id = default(VectorOffset); + if (_o.Id != null) { + var __Id = _o.Id.ToArray(); + _Id = CreateIdVector(builder, __Id); + } + var _Exp = default(VectorOffset); + if (_o.Exp != null) { + var __Exp = _o.Exp.ToArray(); + _Exp = CreateExpVector(builder, __Exp); + } + var _TotalExp = default(VectorOffset); + if (_o.TotalExp != null) { + var __TotalExp = _o.TotalExp.ToArray(); + _TotalExp = CreateTotalExpVector(builder, __TotalExp); + } + var _RewardId = default(VectorOffset); + if (_o.RewardId != null) { + var __RewardId = _o.RewardId.ToArray(); + _RewardId = CreateRewardIdVector(builder, __RewardId); + } + return CreateFieldMasteryLevelExcel( + builder, + _o.Level, + _Id, + _Exp, + _TotalExp, + _RewardId); + } +} + +public class FieldMasteryLevelExcelT +{ + public int Level { get; set; } + public List Id { get; set; } + public List Exp { get; set; } + public List TotalExp { get; set; } + public List RewardId { get; set; } + + public FieldMasteryLevelExcelT() { + this.Level = 0; + this.Id = null; + this.Exp = null; + this.TotalExp = null; + this.RewardId = null; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs index db5aa43..32d67d2 100644 --- a/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryLevelExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldMasteryLevelExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryLevelExcelTableT UnPack() { + var _o = new FieldMasteryLevelExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryLevelExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMasteryLevelExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryLevelExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldMasteryLevelExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldMasteryLevelExcelTable( + builder, + _DataList); + } +} + +public class FieldMasteryLevelExcelTableT +{ + public List DataList { get; set; } + + public FieldMasteryLevelExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs b/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs index 9c1527c..7d31f9f 100644 --- a/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs +++ b/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryManageExcel : IFlatbufferObject @@ -52,6 +53,43 @@ public struct FieldMasteryManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryManageExcelT UnPack() { + var _o = new FieldMasteryManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMasteryManage"); + _o.FieldSeason = TableEncryptionService.Convert(this.FieldSeason, key); + _o.LocalizeEtc = TableEncryptionService.Convert(this.LocalizeEtc, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + _o.LevelId = TableEncryptionService.Convert(this.LevelId, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryManageExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + return CreateFieldMasteryManageExcel( + builder, + _o.FieldSeason, + _o.LocalizeEtc, + _ImagePath, + _o.LevelId); + } +} + +public class FieldMasteryManageExcelT +{ + public long FieldSeason { get; set; } + public uint LocalizeEtc { get; set; } + public string ImagePath { get; set; } + public long LevelId { get; set; } + + public FieldMasteryManageExcelT() { + this.FieldSeason = 0; + this.LocalizeEtc = 0; + this.ImagePath = null; + this.LevelId = 0; + } } diff --git a/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs index cc17aaa..9cabae4 100644 --- a/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldMasteryManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldMasteryManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldMasteryManageExcelTableT UnPack() { + var _o = new FieldMasteryManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldMasteryManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldMasteryManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldMasteryManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldMasteryManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldMasteryManageExcelTable( + builder, + _DataList); + } +} + +public class FieldMasteryManageExcelTableT +{ + public List DataList { get; set; } + + public FieldMasteryManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldQuestExcel.cs b/SCHALE.Common/FlatData/FieldQuestExcel.cs index f7125b8..041ed1f 100644 --- a/SCHALE.Common/FlatData/FieldQuestExcel.cs +++ b/SCHALE.Common/FlatData/FieldQuestExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldQuestExcel : IFlatbufferObject @@ -76,6 +77,67 @@ public struct FieldQuestExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldQuestExcelT UnPack() { + var _o = new FieldQuestExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldQuestExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldQuest"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.FieldSeasonId = TableEncryptionService.Convert(this.FieldSeasonId, key); + _o.IsDaily = TableEncryptionService.Convert(this.IsDaily, key); + _o.FieldDateId = TableEncryptionService.Convert(this.FieldDateId, key); + _o.Opendate = TableEncryptionService.Convert(this.Opendate, key); + _o.AssetPath = TableEncryptionService.Convert(this.AssetPath, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.QuestNamKey = TableEncryptionService.Convert(this.QuestNamKey, key); + _o.QuestDescKey = TableEncryptionService.Convert(this.QuestDescKey, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldQuestExcelT _o) { + if (_o == null) return default(Offset); + var _AssetPath = _o.AssetPath == null ? default(StringOffset) : builder.CreateString(_o.AssetPath); + return CreateFieldQuestExcel( + builder, + _o.UniqueId, + _o.FieldSeasonId, + _o.IsDaily, + _o.FieldDateId, + _o.Opendate, + _AssetPath, + _o.RewardId, + _o.Prob, + _o.QuestNamKey, + _o.QuestDescKey); + } +} + +public class FieldQuestExcelT +{ + public long UniqueId { get; set; } + public long FieldSeasonId { get; set; } + public bool IsDaily { get; set; } + public long FieldDateId { get; set; } + public long Opendate { get; set; } + public string AssetPath { get; set; } + public long RewardId { get; set; } + public int Prob { get; set; } + public uint QuestNamKey { get; set; } + public uint QuestDescKey { get; set; } + + public FieldQuestExcelT() { + this.UniqueId = 0; + this.FieldSeasonId = 0; + this.IsDaily = false; + this.FieldDateId = 0; + this.Opendate = 0; + this.AssetPath = null; + this.RewardId = 0; + this.Prob = 0; + this.QuestNamKey = 0; + this.QuestDescKey = 0; + } } diff --git a/SCHALE.Common/FlatData/FieldQuestExcelTable.cs b/SCHALE.Common/FlatData/FieldQuestExcelTable.cs index 64e664b..7bdb3f5 100644 --- a/SCHALE.Common/FlatData/FieldQuestExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldQuestExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldQuestExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldQuestExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldQuestExcelTableT UnPack() { + var _o = new FieldQuestExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldQuestExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldQuestExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldQuestExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldQuestExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldQuestExcelTable( + builder, + _DataList); + } +} + +public class FieldQuestExcelTableT +{ + public List DataList { get; set; } + + public FieldQuestExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldRewardExcel.cs b/SCHALE.Common/FlatData/FieldRewardExcel.cs index 6748acc..46a2d56 100644 --- a/SCHALE.Common/FlatData/FieldRewardExcel.cs +++ b/SCHALE.Common/FlatData/FieldRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldRewardExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct FieldRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldRewardExcelT UnPack() { + var _o = new FieldRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateFieldRewardExcel( + builder, + _o.GroupId, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount); + } +} + +public class FieldRewardExcelT +{ + public long GroupId { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + + public FieldRewardExcelT() { + this.GroupId = 0; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/FieldRewardExcelTable.cs b/SCHALE.Common/FlatData/FieldRewardExcelTable.cs index 0ad6aff..c7a5625 100644 --- a/SCHALE.Common/FlatData/FieldRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldRewardExcelTableT UnPack() { + var _o = new FieldRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldRewardExcelTable( + builder, + _DataList); + } +} + +public class FieldRewardExcelTableT +{ + public List DataList { get; set; } + + public FieldRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldSceneExcel.cs b/SCHALE.Common/FlatData/FieldSceneExcel.cs index 5567e76..4cfbbf2 100644 --- a/SCHALE.Common/FlatData/FieldSceneExcel.cs +++ b/SCHALE.Common/FlatData/FieldSceneExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldSceneExcel : IFlatbufferObject @@ -130,6 +131,92 @@ public struct FieldSceneExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldSceneExcelT UnPack() { + var _o = new FieldSceneExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldSceneExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldScene"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.DateId = TableEncryptionService.Convert(this.DateId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.ArtLevelPath = TableEncryptionService.Convert(this.ArtLevelPath, key); + _o.DesignLevelPath = TableEncryptionService.Convert(this.DesignLevelPath, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.ConditionalBGMQuestId = new List(); + for (var _j = 0; _j < this.ConditionalBGMQuestIdLength; ++_j) {_o.ConditionalBGMQuestId.Add(TableEncryptionService.Convert(this.ConditionalBGMQuestId(_j), key));} + _o.BeginConditionalBGMScenarioGroupId = new List(); + for (var _j = 0; _j < this.BeginConditionalBGMScenarioGroupIdLength; ++_j) {_o.BeginConditionalBGMScenarioGroupId.Add(TableEncryptionService.Convert(this.BeginConditionalBGMScenarioGroupId(_j), key));} + _o.EndConditionalBGMScenarioGroupId = new List(); + for (var _j = 0; _j < this.EndConditionalBGMScenarioGroupIdLength; ++_j) {_o.EndConditionalBGMScenarioGroupId.Add(TableEncryptionService.Convert(this.EndConditionalBGMScenarioGroupId(_j), key));} + _o.ConditionalBGMId = new List(); + for (var _j = 0; _j < this.ConditionalBGMIdLength; ++_j) {_o.ConditionalBGMId.Add(TableEncryptionService.Convert(this.ConditionalBGMId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FieldSceneExcelT _o) { + if (_o == null) return default(Offset); + var _ArtLevelPath = _o.ArtLevelPath == null ? default(StringOffset) : builder.CreateString(_o.ArtLevelPath); + var _DesignLevelPath = _o.DesignLevelPath == null ? default(StringOffset) : builder.CreateString(_o.DesignLevelPath); + var _ConditionalBGMQuestId = default(VectorOffset); + if (_o.ConditionalBGMQuestId != null) { + var __ConditionalBGMQuestId = _o.ConditionalBGMQuestId.ToArray(); + _ConditionalBGMQuestId = CreateConditionalBGMQuestIdVector(builder, __ConditionalBGMQuestId); + } + var _BeginConditionalBGMScenarioGroupId = default(VectorOffset); + if (_o.BeginConditionalBGMScenarioGroupId != null) { + var __BeginConditionalBGMScenarioGroupId = _o.BeginConditionalBGMScenarioGroupId.ToArray(); + _BeginConditionalBGMScenarioGroupId = CreateBeginConditionalBGMScenarioGroupIdVector(builder, __BeginConditionalBGMScenarioGroupId); + } + var _EndConditionalBGMScenarioGroupId = default(VectorOffset); + if (_o.EndConditionalBGMScenarioGroupId != null) { + var __EndConditionalBGMScenarioGroupId = _o.EndConditionalBGMScenarioGroupId.ToArray(); + _EndConditionalBGMScenarioGroupId = CreateEndConditionalBGMScenarioGroupIdVector(builder, __EndConditionalBGMScenarioGroupId); + } + var _ConditionalBGMId = default(VectorOffset); + if (_o.ConditionalBGMId != null) { + var __ConditionalBGMId = _o.ConditionalBGMId.ToArray(); + _ConditionalBGMId = CreateConditionalBGMIdVector(builder, __ConditionalBGMId); + } + return CreateFieldSceneExcel( + builder, + _o.UniqueId, + _o.DateId, + _o.GroupId, + _ArtLevelPath, + _DesignLevelPath, + _o.BGMId, + _ConditionalBGMQuestId, + _BeginConditionalBGMScenarioGroupId, + _EndConditionalBGMScenarioGroupId, + _ConditionalBGMId); + } +} + +public class FieldSceneExcelT +{ + public long UniqueId { get; set; } + public long DateId { get; set; } + public long GroupId { get; set; } + public string ArtLevelPath { get; set; } + public string DesignLevelPath { get; set; } + public long BGMId { get; set; } + public List ConditionalBGMQuestId { get; set; } + public List BeginConditionalBGMScenarioGroupId { get; set; } + public List EndConditionalBGMScenarioGroupId { get; set; } + public List ConditionalBGMId { get; set; } + + public FieldSceneExcelT() { + this.UniqueId = 0; + this.DateId = 0; + this.GroupId = 0; + this.ArtLevelPath = null; + this.DesignLevelPath = null; + this.BGMId = 0; + this.ConditionalBGMQuestId = null; + this.BeginConditionalBGMScenarioGroupId = null; + this.EndConditionalBGMScenarioGroupId = null; + this.ConditionalBGMId = null; + } } diff --git a/SCHALE.Common/FlatData/FieldSceneExcelTable.cs b/SCHALE.Common/FlatData/FieldSceneExcelTable.cs index 74369b6..bec536a 100644 --- a/SCHALE.Common/FlatData/FieldSceneExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldSceneExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldSceneExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldSceneExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldSceneExcelTableT UnPack() { + var _o = new FieldSceneExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldSceneExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldSceneExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldSceneExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldSceneExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldSceneExcelTable( + builder, + _DataList); + } +} + +public class FieldSceneExcelTableT +{ + public List DataList { get; set; } + + public FieldSceneExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldSeasonExcel.cs b/SCHALE.Common/FlatData/FieldSeasonExcel.cs index 28dce3e..0cd8aec 100644 --- a/SCHALE.Common/FlatData/FieldSeasonExcel.cs +++ b/SCHALE.Common/FlatData/FieldSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldSeasonExcel : IFlatbufferObject @@ -90,6 +91,66 @@ public struct FieldSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldSeasonExcelT UnPack() { + var _o = new FieldSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldSeason"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EntryDateId = TableEncryptionService.Convert(this.EntryDateId, key); + _o.InstantEntryDateId = TableEncryptionService.Convert(this.InstantEntryDateId, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.LobbyBGMChangeStageId = TableEncryptionService.Convert(this.LobbyBGMChangeStageId, key); + _o.CharacterIconPath = TableEncryptionService.Convert(this.CharacterIconPath, key); + _o.MasteryImagePath = TableEncryptionService.Convert(this.MasteryImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _CharacterIconPath = _o.CharacterIconPath == null ? default(StringOffset) : builder.CreateString(_o.CharacterIconPath); + var _MasteryImagePath = _o.MasteryImagePath == null ? default(StringOffset) : builder.CreateString(_o.MasteryImagePath); + return CreateFieldSeasonExcel( + builder, + _o.UniqueId, + _o.EventContentId, + _o.EntryDateId, + _o.InstantEntryDateId, + _StartDate, + _EndDate, + _o.LobbyBGMChangeStageId, + _CharacterIconPath, + _MasteryImagePath); + } +} + +public class FieldSeasonExcelT +{ + public long UniqueId { get; set; } + public long EventContentId { get; set; } + public long EntryDateId { get; set; } + public long InstantEntryDateId { get; set; } + public string StartDate { get; set; } + public string EndDate { get; set; } + public long LobbyBGMChangeStageId { get; set; } + public string CharacterIconPath { get; set; } + public string MasteryImagePath { get; set; } + + public FieldSeasonExcelT() { + this.UniqueId = 0; + this.EventContentId = 0; + this.EntryDateId = 0; + this.InstantEntryDateId = 0; + this.StartDate = null; + this.EndDate = null; + this.LobbyBGMChangeStageId = 0; + this.CharacterIconPath = null; + this.MasteryImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs b/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs index 2b53391..f23f312 100644 --- a/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldSeasonExcelTableT UnPack() { + var _o = new FieldSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldSeasonExcelTable( + builder, + _DataList); + } +} + +public class FieldSeasonExcelTableT +{ + public List DataList { get; set; } + + public FieldSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldStoryStageExcel.cs b/SCHALE.Common/FlatData/FieldStoryStageExcel.cs index 82f3067..5b4d97e 100644 --- a/SCHALE.Common/FlatData/FieldStoryStageExcel.cs +++ b/SCHALE.Common/FlatData/FieldStoryStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldStoryStageExcel : IFlatbufferObject @@ -76,6 +77,67 @@ public struct FieldStoryStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldStoryStageExcelT UnPack() { + var _o = new FieldStoryStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldStoryStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldStoryStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, 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.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.SkipFormationSettings = TableEncryptionService.Convert(this.SkipFormationSettings, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldStoryStageExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + return CreateFieldStoryStageExcel( + builder, + _o.Id, + _o.SeasonId, + _Name, + _o.BattleDuration, + _o.StageTopography, + _o.RecommandLevel, + _o.GroundID, + _o.BGMId, + _o.FixedEchelonId, + _o.SkipFormationSettings); + } +} + +public class FieldStoryStageExcelT +{ + public long Id { get; set; } + public long SeasonId { get; set; } + public string Name { get; set; } + public long BattleDuration { 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 long FixedEchelonId { get; set; } + public bool SkipFormationSettings { get; set; } + + public FieldStoryStageExcelT() { + this.Id = 0; + this.SeasonId = 0; + this.Name = null; + this.BattleDuration = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.GroundID = 0; + this.BGMId = 0; + this.FixedEchelonId = 0; + this.SkipFormationSettings = false; + } } diff --git a/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs b/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs index dd4de02..8cdbc3f 100644 --- a/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldStoryStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldStoryStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldStoryStageExcelTableT UnPack() { + var _o = new FieldStoryStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldStoryStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldStoryStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldStoryStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldStoryStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldStoryStageExcelTable( + builder, + _DataList); + } +} + +public class FieldStoryStageExcelTableT +{ + public List DataList { get; set; } + + public FieldStoryStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldTutorialExcel.cs b/SCHALE.Common/FlatData/FieldTutorialExcel.cs index f932c4a..21d9179 100644 --- a/SCHALE.Common/FlatData/FieldTutorialExcel.cs +++ b/SCHALE.Common/FlatData/FieldTutorialExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldTutorialExcel : IFlatbufferObject @@ -82,6 +83,60 @@ public struct FieldTutorialExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldTutorialExcelT UnPack() { + var _o = new FieldTutorialExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldTutorialExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldTutorial"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.TutorialType = new List(); + for (var _j = 0; _j < this.TutorialTypeLength; ++_j) {_o.TutorialType.Add(TableEncryptionService.Convert(this.TutorialType(_j), key));} + _o.ConditionType = new List(); + for (var _j = 0; _j < this.ConditionTypeLength; ++_j) {_o.ConditionType.Add(TableEncryptionService.Convert(this.ConditionType(_j), key));} + _o.ConditionId = new List(); + for (var _j = 0; _j < this.ConditionIdLength; ++_j) {_o.ConditionId.Add(TableEncryptionService.Convert(this.ConditionId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FieldTutorialExcelT _o) { + if (_o == null) return default(Offset); + var _TutorialType = default(VectorOffset); + if (_o.TutorialType != null) { + var __TutorialType = _o.TutorialType.ToArray(); + _TutorialType = CreateTutorialTypeVector(builder, __TutorialType); + } + var _ConditionType = default(VectorOffset); + if (_o.ConditionType != null) { + var __ConditionType = _o.ConditionType.ToArray(); + _ConditionType = CreateConditionTypeVector(builder, __ConditionType); + } + var _ConditionId = default(VectorOffset); + if (_o.ConditionId != null) { + var __ConditionId = _o.ConditionId.ToArray(); + _ConditionId = CreateConditionIdVector(builder, __ConditionId); + } + return CreateFieldTutorialExcel( + builder, + _o.SeasonId, + _TutorialType, + _ConditionType, + _ConditionId); + } +} + +public class FieldTutorialExcelT +{ + public long SeasonId { get; set; } + public List TutorialType { get; set; } + public List ConditionType { get; set; } + public List ConditionId { get; set; } + + public FieldTutorialExcelT() { + this.SeasonId = 0; + this.TutorialType = null; + this.ConditionType = null; + this.ConditionId = null; + } } diff --git a/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs b/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs index 024c351..a935ea4 100644 --- a/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldTutorialExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldTutorialExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldTutorialExcelTableT UnPack() { + var _o = new FieldTutorialExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldTutorialExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldTutorialExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldTutorialExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldTutorialExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldTutorialExcelTable( + builder, + _DataList); + } +} + +public class FieldTutorialExcelTableT +{ + public List DataList { get; set; } + + public FieldTutorialExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs b/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs index 6c10327..dc87c9b 100644 --- a/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs +++ b/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldWorldMapZoneExcel : IFlatbufferObject @@ -70,6 +71,66 @@ public struct FieldWorldMapZoneExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldWorldMapZoneExcelT UnPack() { + var _o = new FieldWorldMapZoneExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldWorldMapZoneExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldWorldMapZone"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.Date = TableEncryptionService.Convert(this.Date, key); + _o.OpenConditionType = TableEncryptionService.Convert(this.OpenConditionType, key); + _o.OpenConditionId = TableEncryptionService.Convert(this.OpenConditionId, key); + _o.CloseConditionType = TableEncryptionService.Convert(this.CloseConditionType, key); + _o.CloseConditionId = TableEncryptionService.Convert(this.CloseConditionId, key); + _o.ResultFieldScene = TableEncryptionService.Convert(this.ResultFieldScene, key); + _o.FieldStageInteractionId = TableEncryptionService.Convert(this.FieldStageInteractionId, key); + _o.LocalizeCode = TableEncryptionService.Convert(this.LocalizeCode, key); + } + public static Offset Pack(FlatBufferBuilder builder, FieldWorldMapZoneExcelT _o) { + if (_o == null) return default(Offset); + return CreateFieldWorldMapZoneExcel( + builder, + _o.Id, + _o.GroupId, + _o.Date, + _o.OpenConditionType, + _o.OpenConditionId, + _o.CloseConditionType, + _o.CloseConditionId, + _o.ResultFieldScene, + _o.FieldStageInteractionId, + _o.LocalizeCode); + } +} + +public class FieldWorldMapZoneExcelT +{ + public long Id { get; set; } + public int GroupId { get; set; } + public int Date { get; set; } + public SCHALE.Common.FlatData.FieldConditionType OpenConditionType { get; set; } + public long OpenConditionId { get; set; } + public SCHALE.Common.FlatData.FieldConditionType CloseConditionType { get; set; } + public long CloseConditionId { get; set; } + public long ResultFieldScene { get; set; } + public long FieldStageInteractionId { get; set; } + public uint LocalizeCode { get; set; } + + public FieldWorldMapZoneExcelT() { + this.Id = 0; + this.GroupId = 0; + this.Date = 0; + this.OpenConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; + this.OpenConditionId = 0; + this.CloseConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; + this.CloseConditionId = 0; + this.ResultFieldScene = 0; + this.FieldStageInteractionId = 0; + this.LocalizeCode = 0; + } } diff --git a/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs b/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs index 92bc938..f026990 100644 --- a/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs +++ b/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FieldWorldMapZoneExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FieldWorldMapZoneExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FieldWorldMapZoneExcelTableT UnPack() { + var _o = new FieldWorldMapZoneExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FieldWorldMapZoneExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FieldWorldMapZoneExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FieldWorldMapZoneExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FieldWorldMapZoneExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFieldWorldMapZoneExcelTable( + builder, + _DataList); + } +} + +public class FieldWorldMapZoneExcelTableT +{ + public List DataList { get; set; } + + public FieldWorldMapZoneExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FilterCategory.cs b/SCHALE.Common/FlatData/FilterCategory.cs new file mode 100644 index 0000000..b542616 --- /dev/null +++ b/SCHALE.Common/FlatData/FilterCategory.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FilterCategory : int +{ + Character = 0, + Equipment = 1, + Item = 2, + Craft = 3, + ShiftCraft = 4, + Shop = 5, + MemoryLobby = 6, + Trophy = 7, + Emblem = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/FilterIcon.cs b/SCHALE.Common/FlatData/FilterIcon.cs new file mode 100644 index 0000000..453047a --- /dev/null +++ b/SCHALE.Common/FlatData/FilterIcon.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FilterIcon : int +{ + TextOnly = 0, + TextWithIcon = 1, + Pin = 2, + Role = 3, + CharacterStar = 4, + WeaponStar = 5, + Attack = 6, + Defense = 7, + Range = 8, + MemoryLobby = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs b/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs index 1c5d12b..50ed541 100644 --- a/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs +++ b/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FixedEchelonSettingExcel : IFlatbufferObject @@ -526,6 +527,342 @@ public struct FixedEchelonSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FixedEchelonSettingExcelT UnPack() { + var _o = new FixedEchelonSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FixedEchelonSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FixedEchelonSetting"); + _o.FixedEchelonID = TableEncryptionService.Convert(this.FixedEchelonID, key); + _o.EchelonSceneSkip = TableEncryptionService.Convert(this.EchelonSceneSkip, key); + _o.MainLeaderSlot = TableEncryptionService.Convert(this.MainLeaderSlot, key); + _o.MainCharacterID = new List(); + for (var _j = 0; _j < this.MainCharacterIDLength; ++_j) {_o.MainCharacterID.Add(TableEncryptionService.Convert(this.MainCharacterID(_j), key));} + _o.MainLevel = new List(); + for (var _j = 0; _j < this.MainLevelLength; ++_j) {_o.MainLevel.Add(TableEncryptionService.Convert(this.MainLevel(_j), key));} + _o.MainGrade = new List(); + for (var _j = 0; _j < this.MainGradeLength; ++_j) {_o.MainGrade.Add(TableEncryptionService.Convert(this.MainGrade(_j), key));} + _o.MainExSkillLevel = new List(); + for (var _j = 0; _j < this.MainExSkillLevelLength; ++_j) {_o.MainExSkillLevel.Add(TableEncryptionService.Convert(this.MainExSkillLevel(_j), key));} + _o.MainNoneExSkillLevel = new List(); + for (var _j = 0; _j < this.MainNoneExSkillLevelLength; ++_j) {_o.MainNoneExSkillLevel.Add(TableEncryptionService.Convert(this.MainNoneExSkillLevel(_j), key));} + _o.MainEquipment1Tier = new List(); + for (var _j = 0; _j < this.MainEquipment1TierLength; ++_j) {_o.MainEquipment1Tier.Add(TableEncryptionService.Convert(this.MainEquipment1Tier(_j), key));} + _o.MainEquipment1Level = new List(); + for (var _j = 0; _j < this.MainEquipment1LevelLength; ++_j) {_o.MainEquipment1Level.Add(TableEncryptionService.Convert(this.MainEquipment1Level(_j), key));} + _o.MainEquipment2Tier = new List(); + for (var _j = 0; _j < this.MainEquipment2TierLength; ++_j) {_o.MainEquipment2Tier.Add(TableEncryptionService.Convert(this.MainEquipment2Tier(_j), key));} + _o.MainEquipment2Level = new List(); + for (var _j = 0; _j < this.MainEquipment2LevelLength; ++_j) {_o.MainEquipment2Level.Add(TableEncryptionService.Convert(this.MainEquipment2Level(_j), key));} + _o.MainEquipment3Tier = new List(); + for (var _j = 0; _j < this.MainEquipment3TierLength; ++_j) {_o.MainEquipment3Tier.Add(TableEncryptionService.Convert(this.MainEquipment3Tier(_j), key));} + _o.MainEquipment3Level = new List(); + for (var _j = 0; _j < this.MainEquipment3LevelLength; ++_j) {_o.MainEquipment3Level.Add(TableEncryptionService.Convert(this.MainEquipment3Level(_j), key));} + _o.MainCharacterWeaponGrade = new List(); + for (var _j = 0; _j < this.MainCharacterWeaponGradeLength; ++_j) {_o.MainCharacterWeaponGrade.Add(TableEncryptionService.Convert(this.MainCharacterWeaponGrade(_j), key));} + _o.MainCharacterWeaponLevel = new List(); + for (var _j = 0; _j < this.MainCharacterWeaponLevelLength; ++_j) {_o.MainCharacterWeaponLevel.Add(TableEncryptionService.Convert(this.MainCharacterWeaponLevel(_j), key));} + _o.MainCharacterGearTier = new List(); + for (var _j = 0; _j < this.MainCharacterGearTierLength; ++_j) {_o.MainCharacterGearTier.Add(TableEncryptionService.Convert(this.MainCharacterGearTier(_j), key));} + _o.MainCharacterGearLevel = new List(); + for (var _j = 0; _j < this.MainCharacterGearLevelLength; ++_j) {_o.MainCharacterGearLevel.Add(TableEncryptionService.Convert(this.MainCharacterGearLevel(_j), key));} + _o.SupportCharacterID = new List(); + for (var _j = 0; _j < this.SupportCharacterIDLength; ++_j) {_o.SupportCharacterID.Add(TableEncryptionService.Convert(this.SupportCharacterID(_j), key));} + _o.SupportLevel = new List(); + for (var _j = 0; _j < this.SupportLevelLength; ++_j) {_o.SupportLevel.Add(TableEncryptionService.Convert(this.SupportLevel(_j), key));} + _o.SupportGrade = new List(); + for (var _j = 0; _j < this.SupportGradeLength; ++_j) {_o.SupportGrade.Add(TableEncryptionService.Convert(this.SupportGrade(_j), key));} + _o.SupportExSkillLevel = new List(); + for (var _j = 0; _j < this.SupportExSkillLevelLength; ++_j) {_o.SupportExSkillLevel.Add(TableEncryptionService.Convert(this.SupportExSkillLevel(_j), key));} + _o.SupportNoneExSkillLevel = new List(); + for (var _j = 0; _j < this.SupportNoneExSkillLevelLength; ++_j) {_o.SupportNoneExSkillLevel.Add(TableEncryptionService.Convert(this.SupportNoneExSkillLevel(_j), key));} + _o.SupportEquipment1Tier = new List(); + for (var _j = 0; _j < this.SupportEquipment1TierLength; ++_j) {_o.SupportEquipment1Tier.Add(TableEncryptionService.Convert(this.SupportEquipment1Tier(_j), key));} + _o.SupportEquipment1Level = new List(); + for (var _j = 0; _j < this.SupportEquipment1LevelLength; ++_j) {_o.SupportEquipment1Level.Add(TableEncryptionService.Convert(this.SupportEquipment1Level(_j), key));} + _o.SupportEquipment2Tier = new List(); + for (var _j = 0; _j < this.SupportEquipment2TierLength; ++_j) {_o.SupportEquipment2Tier.Add(TableEncryptionService.Convert(this.SupportEquipment2Tier(_j), key));} + _o.SupportEquipment2Level = new List(); + for (var _j = 0; _j < this.SupportEquipment2LevelLength; ++_j) {_o.SupportEquipment2Level.Add(TableEncryptionService.Convert(this.SupportEquipment2Level(_j), key));} + _o.SupportEquipment3Tier = new List(); + for (var _j = 0; _j < this.SupportEquipment3TierLength; ++_j) {_o.SupportEquipment3Tier.Add(TableEncryptionService.Convert(this.SupportEquipment3Tier(_j), key));} + _o.SupportEquipment3Level = new List(); + for (var _j = 0; _j < this.SupportEquipment3LevelLength; ++_j) {_o.SupportEquipment3Level.Add(TableEncryptionService.Convert(this.SupportEquipment3Level(_j), key));} + _o.SupportCharacterWeaponGrade = new List(); + for (var _j = 0; _j < this.SupportCharacterWeaponGradeLength; ++_j) {_o.SupportCharacterWeaponGrade.Add(TableEncryptionService.Convert(this.SupportCharacterWeaponGrade(_j), key));} + _o.SupportCharacterWeaponLevel = new List(); + for (var _j = 0; _j < this.SupportCharacterWeaponLevelLength; ++_j) {_o.SupportCharacterWeaponLevel.Add(TableEncryptionService.Convert(this.SupportCharacterWeaponLevel(_j), key));} + _o.SupportCharacterGearTier = new List(); + for (var _j = 0; _j < this.SupportCharacterGearTierLength; ++_j) {_o.SupportCharacterGearTier.Add(TableEncryptionService.Convert(this.SupportCharacterGearTier(_j), key));} + _o.SupportCharacterGearLevel = new List(); + for (var _j = 0; _j < this.SupportCharacterGearLevelLength; ++_j) {_o.SupportCharacterGearLevel.Add(TableEncryptionService.Convert(this.SupportCharacterGearLevel(_j), key));} + _o.InteractionTSCharacterId = TableEncryptionService.Convert(this.InteractionTSCharacterId, key); + } + public static Offset Pack(FlatBufferBuilder builder, FixedEchelonSettingExcelT _o) { + if (_o == null) return default(Offset); + var _MainCharacterID = default(VectorOffset); + if (_o.MainCharacterID != null) { + var __MainCharacterID = _o.MainCharacterID.ToArray(); + _MainCharacterID = CreateMainCharacterIDVector(builder, __MainCharacterID); + } + var _MainLevel = default(VectorOffset); + if (_o.MainLevel != null) { + var __MainLevel = _o.MainLevel.ToArray(); + _MainLevel = CreateMainLevelVector(builder, __MainLevel); + } + var _MainGrade = default(VectorOffset); + if (_o.MainGrade != null) { + var __MainGrade = _o.MainGrade.ToArray(); + _MainGrade = CreateMainGradeVector(builder, __MainGrade); + } + var _MainExSkillLevel = default(VectorOffset); + if (_o.MainExSkillLevel != null) { + var __MainExSkillLevel = _o.MainExSkillLevel.ToArray(); + _MainExSkillLevel = CreateMainExSkillLevelVector(builder, __MainExSkillLevel); + } + var _MainNoneExSkillLevel = default(VectorOffset); + if (_o.MainNoneExSkillLevel != null) { + var __MainNoneExSkillLevel = _o.MainNoneExSkillLevel.ToArray(); + _MainNoneExSkillLevel = CreateMainNoneExSkillLevelVector(builder, __MainNoneExSkillLevel); + } + var _MainEquipment1Tier = default(VectorOffset); + if (_o.MainEquipment1Tier != null) { + var __MainEquipment1Tier = _o.MainEquipment1Tier.ToArray(); + _MainEquipment1Tier = CreateMainEquipment1TierVector(builder, __MainEquipment1Tier); + } + var _MainEquipment1Level = default(VectorOffset); + if (_o.MainEquipment1Level != null) { + var __MainEquipment1Level = _o.MainEquipment1Level.ToArray(); + _MainEquipment1Level = CreateMainEquipment1LevelVector(builder, __MainEquipment1Level); + } + var _MainEquipment2Tier = default(VectorOffset); + if (_o.MainEquipment2Tier != null) { + var __MainEquipment2Tier = _o.MainEquipment2Tier.ToArray(); + _MainEquipment2Tier = CreateMainEquipment2TierVector(builder, __MainEquipment2Tier); + } + var _MainEquipment2Level = default(VectorOffset); + if (_o.MainEquipment2Level != null) { + var __MainEquipment2Level = _o.MainEquipment2Level.ToArray(); + _MainEquipment2Level = CreateMainEquipment2LevelVector(builder, __MainEquipment2Level); + } + var _MainEquipment3Tier = default(VectorOffset); + if (_o.MainEquipment3Tier != null) { + var __MainEquipment3Tier = _o.MainEquipment3Tier.ToArray(); + _MainEquipment3Tier = CreateMainEquipment3TierVector(builder, __MainEquipment3Tier); + } + var _MainEquipment3Level = default(VectorOffset); + if (_o.MainEquipment3Level != null) { + var __MainEquipment3Level = _o.MainEquipment3Level.ToArray(); + _MainEquipment3Level = CreateMainEquipment3LevelVector(builder, __MainEquipment3Level); + } + var _MainCharacterWeaponGrade = default(VectorOffset); + if (_o.MainCharacterWeaponGrade != null) { + var __MainCharacterWeaponGrade = _o.MainCharacterWeaponGrade.ToArray(); + _MainCharacterWeaponGrade = CreateMainCharacterWeaponGradeVector(builder, __MainCharacterWeaponGrade); + } + var _MainCharacterWeaponLevel = default(VectorOffset); + if (_o.MainCharacterWeaponLevel != null) { + var __MainCharacterWeaponLevel = _o.MainCharacterWeaponLevel.ToArray(); + _MainCharacterWeaponLevel = CreateMainCharacterWeaponLevelVector(builder, __MainCharacterWeaponLevel); + } + var _MainCharacterGearTier = default(VectorOffset); + if (_o.MainCharacterGearTier != null) { + var __MainCharacterGearTier = _o.MainCharacterGearTier.ToArray(); + _MainCharacterGearTier = CreateMainCharacterGearTierVector(builder, __MainCharacterGearTier); + } + var _MainCharacterGearLevel = default(VectorOffset); + if (_o.MainCharacterGearLevel != null) { + var __MainCharacterGearLevel = _o.MainCharacterGearLevel.ToArray(); + _MainCharacterGearLevel = CreateMainCharacterGearLevelVector(builder, __MainCharacterGearLevel); + } + var _SupportCharacterID = default(VectorOffset); + if (_o.SupportCharacterID != null) { + var __SupportCharacterID = _o.SupportCharacterID.ToArray(); + _SupportCharacterID = CreateSupportCharacterIDVector(builder, __SupportCharacterID); + } + var _SupportLevel = default(VectorOffset); + if (_o.SupportLevel != null) { + var __SupportLevel = _o.SupportLevel.ToArray(); + _SupportLevel = CreateSupportLevelVector(builder, __SupportLevel); + } + var _SupportGrade = default(VectorOffset); + if (_o.SupportGrade != null) { + var __SupportGrade = _o.SupportGrade.ToArray(); + _SupportGrade = CreateSupportGradeVector(builder, __SupportGrade); + } + var _SupportExSkillLevel = default(VectorOffset); + if (_o.SupportExSkillLevel != null) { + var __SupportExSkillLevel = _o.SupportExSkillLevel.ToArray(); + _SupportExSkillLevel = CreateSupportExSkillLevelVector(builder, __SupportExSkillLevel); + } + var _SupportNoneExSkillLevel = default(VectorOffset); + if (_o.SupportNoneExSkillLevel != null) { + var __SupportNoneExSkillLevel = _o.SupportNoneExSkillLevel.ToArray(); + _SupportNoneExSkillLevel = CreateSupportNoneExSkillLevelVector(builder, __SupportNoneExSkillLevel); + } + var _SupportEquipment1Tier = default(VectorOffset); + if (_o.SupportEquipment1Tier != null) { + var __SupportEquipment1Tier = _o.SupportEquipment1Tier.ToArray(); + _SupportEquipment1Tier = CreateSupportEquipment1TierVector(builder, __SupportEquipment1Tier); + } + var _SupportEquipment1Level = default(VectorOffset); + if (_o.SupportEquipment1Level != null) { + var __SupportEquipment1Level = _o.SupportEquipment1Level.ToArray(); + _SupportEquipment1Level = CreateSupportEquipment1LevelVector(builder, __SupportEquipment1Level); + } + var _SupportEquipment2Tier = default(VectorOffset); + if (_o.SupportEquipment2Tier != null) { + var __SupportEquipment2Tier = _o.SupportEquipment2Tier.ToArray(); + _SupportEquipment2Tier = CreateSupportEquipment2TierVector(builder, __SupportEquipment2Tier); + } + var _SupportEquipment2Level = default(VectorOffset); + if (_o.SupportEquipment2Level != null) { + var __SupportEquipment2Level = _o.SupportEquipment2Level.ToArray(); + _SupportEquipment2Level = CreateSupportEquipment2LevelVector(builder, __SupportEquipment2Level); + } + var _SupportEquipment3Tier = default(VectorOffset); + if (_o.SupportEquipment3Tier != null) { + var __SupportEquipment3Tier = _o.SupportEquipment3Tier.ToArray(); + _SupportEquipment3Tier = CreateSupportEquipment3TierVector(builder, __SupportEquipment3Tier); + } + var _SupportEquipment3Level = default(VectorOffset); + if (_o.SupportEquipment3Level != null) { + var __SupportEquipment3Level = _o.SupportEquipment3Level.ToArray(); + _SupportEquipment3Level = CreateSupportEquipment3LevelVector(builder, __SupportEquipment3Level); + } + var _SupportCharacterWeaponGrade = default(VectorOffset); + if (_o.SupportCharacterWeaponGrade != null) { + var __SupportCharacterWeaponGrade = _o.SupportCharacterWeaponGrade.ToArray(); + _SupportCharacterWeaponGrade = CreateSupportCharacterWeaponGradeVector(builder, __SupportCharacterWeaponGrade); + } + var _SupportCharacterWeaponLevel = default(VectorOffset); + if (_o.SupportCharacterWeaponLevel != null) { + var __SupportCharacterWeaponLevel = _o.SupportCharacterWeaponLevel.ToArray(); + _SupportCharacterWeaponLevel = CreateSupportCharacterWeaponLevelVector(builder, __SupportCharacterWeaponLevel); + } + var _SupportCharacterGearTier = default(VectorOffset); + if (_o.SupportCharacterGearTier != null) { + var __SupportCharacterGearTier = _o.SupportCharacterGearTier.ToArray(); + _SupportCharacterGearTier = CreateSupportCharacterGearTierVector(builder, __SupportCharacterGearTier); + } + var _SupportCharacterGearLevel = default(VectorOffset); + if (_o.SupportCharacterGearLevel != null) { + var __SupportCharacterGearLevel = _o.SupportCharacterGearLevel.ToArray(); + _SupportCharacterGearLevel = CreateSupportCharacterGearLevelVector(builder, __SupportCharacterGearLevel); + } + return CreateFixedEchelonSettingExcel( + builder, + _o.FixedEchelonID, + _o.EchelonSceneSkip, + _o.MainLeaderSlot, + _MainCharacterID, + _MainLevel, + _MainGrade, + _MainExSkillLevel, + _MainNoneExSkillLevel, + _MainEquipment1Tier, + _MainEquipment1Level, + _MainEquipment2Tier, + _MainEquipment2Level, + _MainEquipment3Tier, + _MainEquipment3Level, + _MainCharacterWeaponGrade, + _MainCharacterWeaponLevel, + _MainCharacterGearTier, + _MainCharacterGearLevel, + _SupportCharacterID, + _SupportLevel, + _SupportGrade, + _SupportExSkillLevel, + _SupportNoneExSkillLevel, + _SupportEquipment1Tier, + _SupportEquipment1Level, + _SupportEquipment2Tier, + _SupportEquipment2Level, + _SupportEquipment3Tier, + _SupportEquipment3Level, + _SupportCharacterWeaponGrade, + _SupportCharacterWeaponLevel, + _SupportCharacterGearTier, + _SupportCharacterGearLevel, + _o.InteractionTSCharacterId); + } +} + +public class FixedEchelonSettingExcelT +{ + public long FixedEchelonID { get; set; } + public bool EchelonSceneSkip { get; set; } + public int MainLeaderSlot { get; set; } + public List MainCharacterID { get; set; } + public List MainLevel { get; set; } + public List MainGrade { get; set; } + public List MainExSkillLevel { get; set; } + public List MainNoneExSkillLevel { get; set; } + public List MainEquipment1Tier { get; set; } + public List MainEquipment1Level { get; set; } + public List MainEquipment2Tier { get; set; } + public List MainEquipment2Level { get; set; } + public List MainEquipment3Tier { get; set; } + public List MainEquipment3Level { get; set; } + public List MainCharacterWeaponGrade { get; set; } + public List MainCharacterWeaponLevel { get; set; } + public List MainCharacterGearTier { get; set; } + public List MainCharacterGearLevel { get; set; } + public List SupportCharacterID { get; set; } + public List SupportLevel { get; set; } + public List SupportGrade { get; set; } + public List SupportExSkillLevel { get; set; } + public List SupportNoneExSkillLevel { get; set; } + public List SupportEquipment1Tier { get; set; } + public List SupportEquipment1Level { get; set; } + public List SupportEquipment2Tier { get; set; } + public List SupportEquipment2Level { get; set; } + public List SupportEquipment3Tier { get; set; } + public List SupportEquipment3Level { get; set; } + public List SupportCharacterWeaponGrade { get; set; } + public List SupportCharacterWeaponLevel { get; set; } + public List SupportCharacterGearTier { get; set; } + public List SupportCharacterGearLevel { get; set; } + public long InteractionTSCharacterId { get; set; } + + public FixedEchelonSettingExcelT() { + this.FixedEchelonID = 0; + this.EchelonSceneSkip = false; + this.MainLeaderSlot = 0; + this.MainCharacterID = null; + this.MainLevel = null; + this.MainGrade = null; + this.MainExSkillLevel = null; + this.MainNoneExSkillLevel = null; + this.MainEquipment1Tier = null; + this.MainEquipment1Level = null; + this.MainEquipment2Tier = null; + this.MainEquipment2Level = null; + this.MainEquipment3Tier = null; + this.MainEquipment3Level = null; + this.MainCharacterWeaponGrade = null; + this.MainCharacterWeaponLevel = null; + this.MainCharacterGearTier = null; + this.MainCharacterGearLevel = null; + this.SupportCharacterID = null; + this.SupportLevel = null; + this.SupportGrade = null; + this.SupportExSkillLevel = null; + this.SupportNoneExSkillLevel = null; + this.SupportEquipment1Tier = null; + this.SupportEquipment1Level = null; + this.SupportEquipment2Tier = null; + this.SupportEquipment2Level = null; + this.SupportEquipment3Tier = null; + this.SupportEquipment3Level = null; + this.SupportCharacterWeaponGrade = null; + this.SupportCharacterWeaponLevel = null; + this.SupportCharacterGearTier = null; + this.SupportCharacterGearLevel = null; + this.InteractionTSCharacterId = 0; + } } diff --git a/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs b/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs index 493f979..856241b 100644 --- a/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FixedEchelonSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FixedEchelonSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FixedEchelonSettingExcelTableT UnPack() { + var _o = new FixedEchelonSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FixedEchelonSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FixedEchelonSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FixedEchelonSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FixedEchelonSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFixedEchelonSettingExcelTable( + builder, + _DataList); + } +} + +public class FixedEchelonSettingExcelTableT +{ + public List DataList { get; set; } + + public FixedEchelonSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FixedStrategyExcel.cs b/SCHALE.Common/FlatData/FixedStrategyExcel.cs index a18fbef..ab67be1 100644 --- a/SCHALE.Common/FlatData/FixedStrategyExcel.cs +++ b/SCHALE.Common/FlatData/FixedStrategyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FixedStrategyExcel : IFlatbufferObject @@ -66,6 +67,62 @@ public struct FixedStrategyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FixedStrategyExcelT UnPack() { + var _o = new FixedStrategyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FixedStrategyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FixedStrategy"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StageEnterEchelon01FixedEchelonId = TableEncryptionService.Convert(this.StageEnterEchelon01FixedEchelonId, key); + _o.StageEnterEchelon01Starttile = TableEncryptionService.Convert(this.StageEnterEchelon01Starttile, key); + _o.StageEnterEchelon02FixedEchelonId = TableEncryptionService.Convert(this.StageEnterEchelon02FixedEchelonId, key); + _o.StageEnterEchelon02Starttile = TableEncryptionService.Convert(this.StageEnterEchelon02Starttile, key); + _o.StageEnterEchelon03FixedEchelonId = TableEncryptionService.Convert(this.StageEnterEchelon03FixedEchelonId, key); + _o.StageEnterEchelon03Starttile = TableEncryptionService.Convert(this.StageEnterEchelon03Starttile, key); + _o.StageEnterEchelon04FixedEchelonId = TableEncryptionService.Convert(this.StageEnterEchelon04FixedEchelonId, key); + _o.StageEnterEchelon04Starttile = TableEncryptionService.Convert(this.StageEnterEchelon04Starttile, key); + } + public static Offset Pack(FlatBufferBuilder builder, FixedStrategyExcelT _o) { + if (_o == null) return default(Offset); + return CreateFixedStrategyExcel( + builder, + _o.Id, + _o.StageEnterEchelon01FixedEchelonId, + _o.StageEnterEchelon01Starttile, + _o.StageEnterEchelon02FixedEchelonId, + _o.StageEnterEchelon02Starttile, + _o.StageEnterEchelon03FixedEchelonId, + _o.StageEnterEchelon03Starttile, + _o.StageEnterEchelon04FixedEchelonId, + _o.StageEnterEchelon04Starttile); + } +} + +public class FixedStrategyExcelT +{ + public long Id { get; set; } + public long StageEnterEchelon01FixedEchelonId { get; set; } + public long StageEnterEchelon01Starttile { get; set; } + public long StageEnterEchelon02FixedEchelonId { get; set; } + public long StageEnterEchelon02Starttile { get; set; } + public long StageEnterEchelon03FixedEchelonId { get; set; } + public long StageEnterEchelon03Starttile { get; set; } + public long StageEnterEchelon04FixedEchelonId { get; set; } + public long StageEnterEchelon04Starttile { get; set; } + + public FixedStrategyExcelT() { + this.Id = 0; + this.StageEnterEchelon01FixedEchelonId = 0; + this.StageEnterEchelon01Starttile = 0; + this.StageEnterEchelon02FixedEchelonId = 0; + this.StageEnterEchelon02Starttile = 0; + this.StageEnterEchelon03FixedEchelonId = 0; + this.StageEnterEchelon03Starttile = 0; + this.StageEnterEchelon04FixedEchelonId = 0; + this.StageEnterEchelon04Starttile = 0; + } } diff --git a/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs b/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs index 71905c9..4921206 100644 --- a/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs +++ b/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FixedStrategyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FixedStrategyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FixedStrategyExcelTableT UnPack() { + var _o = new FixedStrategyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FixedStrategyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FixedStrategyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FixedStrategyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FixedStrategyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFixedStrategyExcelTable( + builder, + _DataList); + } +} + +public class FixedStrategyExcelTableT +{ + public List DataList { get; set; } + + public FixedStrategyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FloaterCommonExcel.cs b/SCHALE.Common/FlatData/FloaterCommonExcel.cs index 7d5cb4b..1b3db01 100644 --- a/SCHALE.Common/FlatData/FloaterCommonExcel.cs +++ b/SCHALE.Common/FlatData/FloaterCommonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FloaterCommonExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct FloaterCommonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FloaterCommonExcelT UnPack() { + var _o = new FloaterCommonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FloaterCommonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FloaterCommon"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TacticEntityType = TableEncryptionService.Convert(this.TacticEntityType, key); + _o.FloaterOffsetPosX = TableEncryptionService.Convert(this.FloaterOffsetPosX, key); + _o.FloaterOffsetPosY = TableEncryptionService.Convert(this.FloaterOffsetPosY, key); + _o.FloaterRandomPosRangeX = TableEncryptionService.Convert(this.FloaterRandomPosRangeX, key); + _o.FloaterRandomPosRangeY = TableEncryptionService.Convert(this.FloaterRandomPosRangeY, key); + } + public static Offset Pack(FlatBufferBuilder builder, FloaterCommonExcelT _o) { + if (_o == null) return default(Offset); + return CreateFloaterCommonExcel( + builder, + _o.Id, + _o.TacticEntityType, + _o.FloaterOffsetPosX, + _o.FloaterOffsetPosY, + _o.FloaterRandomPosRangeX, + _o.FloaterRandomPosRangeY); + } +} + +public class FloaterCommonExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get; set; } + public int FloaterOffsetPosX { get; set; } + public int FloaterOffsetPosY { get; set; } + public int FloaterRandomPosRangeX { get; set; } + public int FloaterRandomPosRangeY { get; set; } + + public FloaterCommonExcelT() { + this.Id = 0; + this.TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None; + this.FloaterOffsetPosX = 0; + this.FloaterOffsetPosY = 0; + this.FloaterRandomPosRangeX = 0; + this.FloaterRandomPosRangeY = 0; + } } diff --git a/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs b/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs index cc4057c..99cb84d 100644 --- a/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs +++ b/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FloaterCommonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FloaterCommonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FloaterCommonExcelTableT UnPack() { + var _o = new FloaterCommonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FloaterCommonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FloaterCommonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FloaterCommonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FloaterCommonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFloaterCommonExcelTable( + builder, + _DataList); + } +} + +public class FloaterCommonExcelTableT +{ + public List DataList { get; set; } + + public FloaterCommonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/Form.cs b/SCHALE.Common/FlatData/Form.cs index 7889260..c4642cd 100644 --- a/SCHALE.Common/FlatData/Form.cs +++ b/SCHALE.Common/FlatData/Form.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct Form : IFlatbufferObject @@ -19,11 +20,11 @@ public struct Form : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public Form __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.MoveEnd? MoveEnd { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MoveEnd?)(new SCHALE.Common.FlatData.MoveEnd()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public SCHALE.Common.FlatData.MoveEndTable? MoveEnd { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MoveEndTable?)(new SCHALE.Common.FlatData.MoveEndTable()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } public SCHALE.Common.FlatData.Motion? PublicSkill { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } public static Offset CreateForm(FlatBufferBuilder builder, - Offset MoveEndOffset = default(Offset), + Offset MoveEndOffset = default(Offset), Offset PublicSkillOffset = default(Offset)) { builder.StartTable(2); Form.AddPublicSkill(builder, PublicSkillOffset); @@ -32,12 +33,42 @@ public struct Form : IFlatbufferObject } public static void StartForm(FlatBufferBuilder builder) { builder.StartTable(2); } - public static void AddMoveEnd(FlatBufferBuilder builder, Offset moveEndOffset) { builder.AddOffset(0, moveEndOffset.Value, 0); } + public static void AddMoveEnd(FlatBufferBuilder builder, Offset moveEndOffset) { builder.AddOffset(0, moveEndOffset.Value, 0); } public static void AddPublicSkill(FlatBufferBuilder builder, Offset publicSkillOffset) { builder.AddOffset(1, publicSkillOffset.Value, 0); } public static Offset EndForm(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public FormT UnPack() { + var _o = new FormT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FormT _o) { + byte[] key = { 0 }; + _o.MoveEnd = this.MoveEnd.HasValue ? this.MoveEnd.Value.UnPack() : null; + _o.PublicSkill = this.PublicSkill.HasValue ? this.PublicSkill.Value.UnPack() : null; + } + public static Offset Pack(FlatBufferBuilder builder, FormT _o) { + if (_o == null) return default(Offset); + var _MoveEnd = _o.MoveEnd == null ? default(Offset) : SCHALE.Common.FlatData.MoveEndTable.Pack(builder, _o.MoveEnd); + var _PublicSkill = _o.PublicSkill == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.PublicSkill); + return CreateForm( + builder, + _MoveEnd, + _PublicSkill); + } +} + +public class FormT +{ + public SCHALE.Common.FlatData.MoveEndTableT MoveEnd { get; set; } + public SCHALE.Common.FlatData.MotionT PublicSkill { get; set; } + + public FormT() { + this.MoveEnd = null; + this.PublicSkill = null; + } } diff --git a/SCHALE.Common/FlatData/FormationLocationExcel.cs b/SCHALE.Common/FlatData/FormationLocationExcel.cs index f84df0d..bf29d6d 100644 --- a/SCHALE.Common/FlatData/FormationLocationExcel.cs +++ b/SCHALE.Common/FlatData/FormationLocationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FormationLocationExcel : IFlatbufferObject @@ -70,6 +71,54 @@ public struct FormationLocationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FormationLocationExcelT UnPack() { + var _o = new FormationLocationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FormationLocationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FormationLocation"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.GroupID = TableEncryptionService.Convert(this.GroupID, key); + _o.SlotZ = new List(); + for (var _j = 0; _j < this.SlotZLength; ++_j) {_o.SlotZ.Add(TableEncryptionService.Convert(this.SlotZ(_j), key));} + _o.SlotX = new List(); + for (var _j = 0; _j < this.SlotXLength; ++_j) {_o.SlotX.Add(TableEncryptionService.Convert(this.SlotX(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FormationLocationExcelT _o) { + if (_o == null) return default(Offset); + var _SlotZ = default(VectorOffset); + if (_o.SlotZ != null) { + var __SlotZ = _o.SlotZ.ToArray(); + _SlotZ = CreateSlotZVector(builder, __SlotZ); + } + var _SlotX = default(VectorOffset); + if (_o.SlotX != null) { + var __SlotX = _o.SlotX.ToArray(); + _SlotX = CreateSlotXVector(builder, __SlotX); + } + return CreateFormationLocationExcel( + builder, + _o.Id, + _o.GroupID, + _SlotZ, + _SlotX); + } +} + +public class FormationLocationExcelT +{ + public long Id { get; set; } + public long GroupID { get; set; } + public List SlotZ { get; set; } + public List SlotX { get; set; } + + public FormationLocationExcelT() { + this.Id = 0; + this.GroupID = 0; + this.SlotZ = null; + this.SlotX = null; + } } diff --git a/SCHALE.Common/FlatData/FormationLocationExcelTable.cs b/SCHALE.Common/FlatData/FormationLocationExcelTable.cs index d1258a3..2e3e832 100644 --- a/SCHALE.Common/FlatData/FormationLocationExcelTable.cs +++ b/SCHALE.Common/FlatData/FormationLocationExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FormationLocationExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FormationLocationExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FormationLocationExcelTableT UnPack() { + var _o = new FormationLocationExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FormationLocationExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FormationLocationExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FormationLocationExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FormationLocationExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFormationLocationExcelTable( + builder, + _DataList); + } +} + +public class FormationLocationExcelTableT +{ + public List DataList { get; set; } + + public FormationLocationExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureExcel.cs b/SCHALE.Common/FlatData/FurnitureExcel.cs index 07832e2..74f981a 100644 --- a/SCHALE.Common/FlatData/FurnitureExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureExcel : IFlatbufferObject @@ -266,6 +267,230 @@ public struct FurnitureExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureExcelT UnPack() { + var _o = new FurnitureExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Furniture"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.SubCategory = TableEncryptionService.Convert(this.SubCategory, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.StarGradeInit = TableEncryptionService.Convert(this.StarGradeInit, key); + _o.Tier = TableEncryptionService.Convert(this.Tier, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.SizeWidth = TableEncryptionService.Convert(this.SizeWidth, key); + _o.SizeHeight = TableEncryptionService.Convert(this.SizeHeight, key); + _o.OtherSize = TableEncryptionService.Convert(this.OtherSize, key); + _o.ExpandWidth = TableEncryptionService.Convert(this.ExpandWidth, key); + _o.Enable = TableEncryptionService.Convert(this.Enable, key); + _o.ReverseRotation = TableEncryptionService.Convert(this.ReverseRotation, key); + _o.Prefab = TableEncryptionService.Convert(this.Prefab, key); + _o.PrefabExpand = TableEncryptionService.Convert(this.PrefabExpand, key); + _o.SubPrefab = TableEncryptionService.Convert(this.SubPrefab, key); + _o.SubExpandPrefab = TableEncryptionService.Convert(this.SubExpandPrefab, key); + _o.CornerPrefab = TableEncryptionService.Convert(this.CornerPrefab, key); + _o.StackableMax = TableEncryptionService.Convert(this.StackableMax, key); + _o.RecipeCraftId = TableEncryptionService.Convert(this.RecipeCraftId, key); + _o.SetGroudpId = TableEncryptionService.Convert(this.SetGroudpId, key); + _o.ComfortBonus = TableEncryptionService.Convert(this.ComfortBonus, key); + _o.VisitOperationType = TableEncryptionService.Convert(this.VisitOperationType, key); + _o.VisitBonusOperationType = TableEncryptionService.Convert(this.VisitBonusOperationType, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.CraftQualityTier0 = TableEncryptionService.Convert(this.CraftQualityTier0, key); + _o.CraftQualityTier1 = TableEncryptionService.Convert(this.CraftQualityTier1, key); + _o.CraftQualityTier2 = TableEncryptionService.Convert(this.CraftQualityTier2, key); + _o.ShiftingCraftQuality = TableEncryptionService.Convert(this.ShiftingCraftQuality, key); + _o.FurnitureFunctionType = TableEncryptionService.Convert(this.FurnitureFunctionType, key); + _o.FurnitureFunctionParameter = TableEncryptionService.Convert(this.FurnitureFunctionParameter, key); + _o.VideoId = TableEncryptionService.Convert(this.VideoId, key); + _o.EventCollectionId = TableEncryptionService.Convert(this.EventCollectionId, key); + _o.FurnitureBubbleOffsetX = TableEncryptionService.Convert(this.FurnitureBubbleOffsetX, key); + _o.FurnitureBubbleOffsetY = TableEncryptionService.Convert(this.FurnitureBubbleOffsetY, key); + _o.CafeCharacterStateReq = new List(); + for (var _j = 0; _j < this.CafeCharacterStateReqLength; ++_j) {_o.CafeCharacterStateReq.Add(TableEncryptionService.Convert(this.CafeCharacterStateReq(_j), key));} + _o.CafeCharacterStateAdd = new List(); + for (var _j = 0; _j < this.CafeCharacterStateAddLength; ++_j) {_o.CafeCharacterStateAdd.Add(TableEncryptionService.Convert(this.CafeCharacterStateAdd(_j), key));} + _o.CafeCharacterStateMake = new List(); + for (var _j = 0; _j < this.CafeCharacterStateMakeLength; ++_j) {_o.CafeCharacterStateMake.Add(TableEncryptionService.Convert(this.CafeCharacterStateMake(_j), key));} + _o.CafeCharacterStateOnly = new List(); + for (var _j = 0; _j < this.CafeCharacterStateOnlyLength; ++_j) {_o.CafeCharacterStateOnly.Add(TableEncryptionService.Convert(this.CafeCharacterStateOnly(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureExcelT _o) { + if (_o == null) return default(Offset); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _Prefab = _o.Prefab == null ? default(StringOffset) : builder.CreateString(_o.Prefab); + var _PrefabExpand = _o.PrefabExpand == null ? default(StringOffset) : builder.CreateString(_o.PrefabExpand); + var _SubPrefab = _o.SubPrefab == null ? default(StringOffset) : builder.CreateString(_o.SubPrefab); + var _SubExpandPrefab = _o.SubExpandPrefab == null ? default(StringOffset) : builder.CreateString(_o.SubExpandPrefab); + var _CornerPrefab = _o.CornerPrefab == null ? default(StringOffset) : builder.CreateString(_o.CornerPrefab); + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + var _CafeCharacterStateReq = default(VectorOffset); + if (_o.CafeCharacterStateReq != null) { + var __CafeCharacterStateReq = new StringOffset[_o.CafeCharacterStateReq.Count]; + for (var _j = 0; _j < __CafeCharacterStateReq.Length; ++_j) { __CafeCharacterStateReq[_j] = builder.CreateString(_o.CafeCharacterStateReq[_j]); } + _CafeCharacterStateReq = CreateCafeCharacterStateReqVector(builder, __CafeCharacterStateReq); + } + var _CafeCharacterStateAdd = default(VectorOffset); + if (_o.CafeCharacterStateAdd != null) { + var __CafeCharacterStateAdd = new StringOffset[_o.CafeCharacterStateAdd.Count]; + for (var _j = 0; _j < __CafeCharacterStateAdd.Length; ++_j) { __CafeCharacterStateAdd[_j] = builder.CreateString(_o.CafeCharacterStateAdd[_j]); } + _CafeCharacterStateAdd = CreateCafeCharacterStateAddVector(builder, __CafeCharacterStateAdd); + } + var _CafeCharacterStateMake = default(VectorOffset); + if (_o.CafeCharacterStateMake != null) { + var __CafeCharacterStateMake = new StringOffset[_o.CafeCharacterStateMake.Count]; + for (var _j = 0; _j < __CafeCharacterStateMake.Length; ++_j) { __CafeCharacterStateMake[_j] = builder.CreateString(_o.CafeCharacterStateMake[_j]); } + _CafeCharacterStateMake = CreateCafeCharacterStateMakeVector(builder, __CafeCharacterStateMake); + } + var _CafeCharacterStateOnly = default(VectorOffset); + if (_o.CafeCharacterStateOnly != null) { + var __CafeCharacterStateOnly = new StringOffset[_o.CafeCharacterStateOnly.Count]; + for (var _j = 0; _j < __CafeCharacterStateOnly.Length; ++_j) { __CafeCharacterStateOnly[_j] = builder.CreateString(_o.CafeCharacterStateOnly[_j]); } + _CafeCharacterStateOnly = CreateCafeCharacterStateOnlyVector(builder, __CafeCharacterStateOnly); + } + return CreateFurnitureExcel( + builder, + _o.Id, + _o.ProductionStep, + _o.Rarity, + _o.Category, + _o.SubCategory, + _o.LocalizeEtcId, + _o.StarGradeInit, + _o.Tier, + _Icon, + _o.SizeWidth, + _o.SizeHeight, + _o.OtherSize, + _o.ExpandWidth, + _o.Enable, + _o.ReverseRotation, + _Prefab, + _PrefabExpand, + _SubPrefab, + _SubExpandPrefab, + _CornerPrefab, + _o.StackableMax, + _o.RecipeCraftId, + _o.SetGroudpId, + _o.ComfortBonus, + _o.VisitOperationType, + _o.VisitBonusOperationType, + _Tags, + _o.CraftQualityTier0, + _o.CraftQualityTier1, + _o.CraftQualityTier2, + _o.ShiftingCraftQuality, + _o.FurnitureFunctionType, + _o.FurnitureFunctionParameter, + _o.VideoId, + _o.EventCollectionId, + _o.FurnitureBubbleOffsetX, + _o.FurnitureBubbleOffsetY, + _CafeCharacterStateReq, + _CafeCharacterStateAdd, + _CafeCharacterStateMake, + _CafeCharacterStateOnly); + } +} + +public class FurnitureExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public SCHALE.Common.FlatData.FurnitureCategory Category { get; set; } + public SCHALE.Common.FlatData.FurnitureSubCategory SubCategory { get; set; } + public uint LocalizeEtcId { get; set; } + public int StarGradeInit { get; set; } + public long Tier { get; set; } + public string Icon { get; set; } + public int SizeWidth { get; set; } + public int SizeHeight { get; set; } + public int OtherSize { get; set; } + public int ExpandWidth { get; set; } + public bool Enable { get; set; } + public bool ReverseRotation { get; set; } + public string Prefab { get; set; } + public string PrefabExpand { get; set; } + public string SubPrefab { get; set; } + public string SubExpandPrefab { get; set; } + public string CornerPrefab { get; set; } + public long StackableMax { get; set; } + public long RecipeCraftId { get; set; } + public long SetGroudpId { get; set; } + public long ComfortBonus { get; set; } + public long VisitOperationType { get; set; } + public long VisitBonusOperationType { get; set; } + public List Tags { get; set; } + public long CraftQualityTier0 { get; set; } + public long CraftQualityTier1 { get; set; } + public long CraftQualityTier2 { get; set; } + public long ShiftingCraftQuality { get; set; } + public SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType { get; set; } + public long FurnitureFunctionParameter { get; set; } + public long VideoId { get; set; } + public long EventCollectionId { get; set; } + public long FurnitureBubbleOffsetX { get; set; } + public long FurnitureBubbleOffsetY { get; set; } + public List CafeCharacterStateReq { get; set; } + public List CafeCharacterStateAdd { get; set; } + public List CafeCharacterStateMake { get; set; } + public List CafeCharacterStateOnly { get; set; } + + public FurnitureExcelT() { + this.Id = 0; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.Category = SCHALE.Common.FlatData.FurnitureCategory.Furnitures; + this.SubCategory = SCHALE.Common.FlatData.FurnitureSubCategory.Table; + this.LocalizeEtcId = 0; + this.StarGradeInit = 0; + this.Tier = 0; + this.Icon = null; + this.SizeWidth = 0; + this.SizeHeight = 0; + this.OtherSize = 0; + this.ExpandWidth = 0; + this.Enable = false; + this.ReverseRotation = false; + this.Prefab = null; + this.PrefabExpand = null; + this.SubPrefab = null; + this.SubExpandPrefab = null; + this.CornerPrefab = null; + this.StackableMax = 0; + this.RecipeCraftId = 0; + this.SetGroudpId = 0; + this.ComfortBonus = 0; + this.VisitOperationType = 0; + this.VisitBonusOperationType = 0; + this.Tags = null; + this.CraftQualityTier0 = 0; + this.CraftQualityTier1 = 0; + this.CraftQualityTier2 = 0; + this.ShiftingCraftQuality = 0; + this.FurnitureFunctionType = SCHALE.Common.FlatData.FurnitureFunctionType.None; + this.FurnitureFunctionParameter = 0; + this.VideoId = 0; + this.EventCollectionId = 0; + this.FurnitureBubbleOffsetX = 0; + this.FurnitureBubbleOffsetY = 0; + this.CafeCharacterStateReq = null; + this.CafeCharacterStateAdd = null; + this.CafeCharacterStateMake = null; + this.CafeCharacterStateOnly = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureExcelTable.cs b/SCHALE.Common/FlatData/FurnitureExcelTable.cs index 885723e..9f41054 100644 --- a/SCHALE.Common/FlatData/FurnitureExcelTable.cs +++ b/SCHALE.Common/FlatData/FurnitureExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FurnitureExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureExcelTableT UnPack() { + var _o = new FurnitureExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FurnitureExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFurnitureExcelTable( + builder, + _DataList); + } +} + +public class FurnitureExcelTableT +{ + public List DataList { get; set; } + + public FurnitureExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureGroupExcel.cs b/SCHALE.Common/FlatData/FurnitureGroupExcel.cs index fa50f1f..2dbc37c 100644 --- a/SCHALE.Common/FlatData/FurnitureGroupExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureGroupExcel : IFlatbufferObject @@ -74,6 +75,58 @@ public struct FurnitureGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureGroupExcelT UnPack() { + var _o = new FurnitureGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureGroup"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.GroupNameLocalize = TableEncryptionService.Convert(this.GroupNameLocalize, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.RequiredFurnitureCount = new List(); + for (var _j = 0; _j < this.RequiredFurnitureCountLength; ++_j) {_o.RequiredFurnitureCount.Add(TableEncryptionService.Convert(this.RequiredFurnitureCount(_j), key));} + _o.ComfortBonus = new List(); + for (var _j = 0; _j < this.ComfortBonusLength; ++_j) {_o.ComfortBonus.Add(TableEncryptionService.Convert(this.ComfortBonus(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureGroupExcelT _o) { + if (_o == null) return default(Offset); + var _RequiredFurnitureCount = default(VectorOffset); + if (_o.RequiredFurnitureCount != null) { + var __RequiredFurnitureCount = _o.RequiredFurnitureCount.ToArray(); + _RequiredFurnitureCount = CreateRequiredFurnitureCountVector(builder, __RequiredFurnitureCount); + } + var _ComfortBonus = default(VectorOffset); + if (_o.ComfortBonus != null) { + var __ComfortBonus = _o.ComfortBonus.ToArray(); + _ComfortBonus = CreateComfortBonusVector(builder, __ComfortBonus); + } + return CreateFurnitureGroupExcel( + builder, + _o.Id, + _o.GroupNameLocalize, + _o.LocalizeEtcId, + _RequiredFurnitureCount, + _ComfortBonus); + } +} + +public class FurnitureGroupExcelT +{ + public long Id { get; set; } + public uint GroupNameLocalize { get; set; } + public uint LocalizeEtcId { get; set; } + public List RequiredFurnitureCount { get; set; } + public List ComfortBonus { get; set; } + + public FurnitureGroupExcelT() { + this.Id = 0; + this.GroupNameLocalize = 0; + this.LocalizeEtcId = 0; + this.RequiredFurnitureCount = null; + this.ComfortBonus = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs b/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs index c5f35e6..eef262a 100644 --- a/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FurnitureGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureGroupExcelTableT UnPack() { + var _o = new FurnitureGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FurnitureGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFurnitureGroupExcelTable( + builder, + _DataList); + } +} + +public class FurnitureGroupExcelTableT +{ + public List DataList { get; set; } + + public FurnitureGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs index 961f823..08f9a45 100644 --- a/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureTemplateElementExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct FurnitureTemplateElementExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureTemplateElementExcelT UnPack() { + var _o = new FurnitureTemplateElementExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureTemplateElementExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureTemplateElement"); + _o.FurnitureTemplateId = TableEncryptionService.Convert(this.FurnitureTemplateId, key); + _o.FurnitureId = TableEncryptionService.Convert(this.FurnitureId, key); + _o.Location = TableEncryptionService.Convert(this.Location, key); + _o.PositionX = TableEncryptionService.Convert(this.PositionX, key); + _o.PositionY = TableEncryptionService.Convert(this.PositionY, key); + _o.Rotation = TableEncryptionService.Convert(this.Rotation, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureTemplateElementExcelT _o) { + if (_o == null) return default(Offset); + return CreateFurnitureTemplateElementExcel( + builder, + _o.FurnitureTemplateId, + _o.FurnitureId, + _o.Location, + _o.PositionX, + _o.PositionY, + _o.Rotation, + _o.Order); + } +} + +public class FurnitureTemplateElementExcelT +{ + public long FurnitureTemplateId { get; set; } + public long FurnitureId { get; set; } + public SCHALE.Common.FlatData.FurnitureLocation Location { get; set; } + public float PositionX { get; set; } + public float PositionY { get; set; } + public float Rotation { get; set; } + public long Order { get; set; } + + public FurnitureTemplateElementExcelT() { + this.FurnitureTemplateId = 0; + this.FurnitureId = 0; + this.Location = SCHALE.Common.FlatData.FurnitureLocation.None; + this.PositionX = 0.0f; + this.PositionY = 0.0f; + this.Rotation = 0.0f; + this.Order = 0; + } } diff --git a/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs b/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs index 635bd1d..4701a31 100644 --- a/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs +++ b/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureTemplateElementExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FurnitureTemplateElementExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureTemplateElementExcelTableT UnPack() { + var _o = new FurnitureTemplateElementExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureTemplateElementExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureTemplateElementExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureTemplateElementExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FurnitureTemplateElementExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFurnitureTemplateElementExcelTable( + builder, + _DataList); + } +} + +public class FurnitureTemplateElementExcelTableT +{ + public List DataList { get; set; } + + public FurnitureTemplateElementExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs b/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs index 67edf66..b88b81a 100644 --- a/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureTemplateExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct FurnitureTemplateExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureTemplateExcelT UnPack() { + var _o = new FurnitureTemplateExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureTemplateExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureTemplate"); + _o.FurnitureTemplateId = TableEncryptionService.Convert(this.FurnitureTemplateId, key); + _o.FunitureTemplateTitle = TableEncryptionService.Convert(this.FunitureTemplateTitle, key); + _o.ThumbnailImagePath = TableEncryptionService.Convert(this.ThumbnailImagePath, key); + _o.ImagePath = TableEncryptionService.Convert(this.ImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureTemplateExcelT _o) { + if (_o == null) return default(Offset); + var _ThumbnailImagePath = _o.ThumbnailImagePath == null ? default(StringOffset) : builder.CreateString(_o.ThumbnailImagePath); + var _ImagePath = _o.ImagePath == null ? default(StringOffset) : builder.CreateString(_o.ImagePath); + return CreateFurnitureTemplateExcel( + builder, + _o.FurnitureTemplateId, + _o.FunitureTemplateTitle, + _ThumbnailImagePath, + _ImagePath); + } +} + +public class FurnitureTemplateExcelT +{ + public long FurnitureTemplateId { get; set; } + public uint FunitureTemplateTitle { get; set; } + public string ThumbnailImagePath { get; set; } + public string ImagePath { get; set; } + + public FurnitureTemplateExcelT() { + this.FurnitureTemplateId = 0; + this.FunitureTemplateTitle = 0; + this.ThumbnailImagePath = null; + this.ImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs b/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs index 3577fcd..658dd89 100644 --- a/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs +++ b/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct FurnitureTemplateExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct FurnitureTemplateExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public FurnitureTemplateExcelTableT UnPack() { + var _o = new FurnitureTemplateExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(FurnitureTemplateExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("FurnitureTemplateExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, FurnitureTemplateExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FurnitureTemplateExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateFurnitureTemplateExcelTable( + builder, + _DataList); + } +} + +public class FurnitureTemplateExcelTableT +{ + public List DataList { get; set; } + + public FurnitureTemplateExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs b/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs index 6acf5a0..d503e77 100644 --- a/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs +++ b/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftNodeExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct GachaCraftNodeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftNodeExcelT UnPack() { + var _o = new GachaCraftNodeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftNodeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftNode"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.Tier = TableEncryptionService.Convert(this.Tier, key); + _o.QuickCraftNodeDisplayOrder = TableEncryptionService.Convert(this.QuickCraftNodeDisplayOrder, key); + _o.NodeQuality = TableEncryptionService.Convert(this.NodeQuality, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.LocalizeKey = TableEncryptionService.Convert(this.LocalizeKey, key); + _o.Property = TableEncryptionService.Convert(this.Property, key); + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftNodeExcelT _o) { + if (_o == null) return default(Offset); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + return CreateGachaCraftNodeExcel( + builder, + _o.ID, + _o.Tier, + _o.QuickCraftNodeDisplayOrder, + _o.NodeQuality, + _Icon, + _o.LocalizeKey, + _o.Property); + } +} + +public class GachaCraftNodeExcelT +{ + public long ID { get; set; } + public long Tier { get; set; } + public int QuickCraftNodeDisplayOrder { get; set; } + public long NodeQuality { get; set; } + public string Icon { get; set; } + public uint LocalizeKey { get; set; } + public long Property { get; set; } + + public GachaCraftNodeExcelT() { + this.ID = 0; + this.Tier = 0; + this.QuickCraftNodeDisplayOrder = 0; + this.NodeQuality = 0; + this.Icon = null; + this.LocalizeKey = 0; + this.Property = 0; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs index 3a86298..8147e0a 100644 --- a/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftNodeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaCraftNodeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftNodeExcelTableT UnPack() { + var _o = new GachaCraftNodeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftNodeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftNodeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftNodeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaCraftNodeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaCraftNodeExcelTable( + builder, + _DataList); + } +} + +public class GachaCraftNodeExcelTableT +{ + public List DataList { get; set; } + + public GachaCraftNodeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs index 7c59484..5b181a8 100644 --- a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs +++ b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftNodeGroupExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct GachaCraftNodeGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftNodeGroupExcelT UnPack() { + var _o = new GachaCraftNodeGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftNodeGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftNodeGroup"); + _o.NodeId = TableEncryptionService.Convert(this.NodeId, key); + _o.GachaGroupId = TableEncryptionService.Convert(this.GachaGroupId, key); + _o.ProbWeight = TableEncryptionService.Convert(this.ProbWeight, key); + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftNodeGroupExcelT _o) { + if (_o == null) return default(Offset); + return CreateGachaCraftNodeGroupExcel( + builder, + _o.NodeId, + _o.GachaGroupId, + _o.ProbWeight); + } +} + +public class GachaCraftNodeGroupExcelT +{ + public long NodeId { get; set; } + public long GachaGroupId { get; set; } + public long ProbWeight { get; set; } + + public GachaCraftNodeGroupExcelT() { + this.NodeId = 0; + this.GachaGroupId = 0; + this.ProbWeight = 0; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs index 729b0de..06dda92 100644 --- a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftNodeGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaCraftNodeGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftNodeGroupExcelTableT UnPack() { + var _o = new GachaCraftNodeGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftNodeGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftNodeGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftNodeGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaCraftNodeGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaCraftNodeGroupExcelTable( + builder, + _DataList); + } +} + +public class GachaCraftNodeGroupExcelTableT +{ + public List DataList { get; set; } + + public GachaCraftNodeGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs b/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs index ace0c5e..a5cf011 100644 --- a/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs +++ b/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftOpenTagExcel : IFlatbufferObject @@ -50,6 +51,40 @@ public struct GachaCraftOpenTagExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftOpenTagExcelT UnPack() { + var _o = new GachaCraftOpenTagExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftOpenTagExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftOpenTag"); + _o.NodeTier = TableEncryptionService.Convert(this.NodeTier, key); + _o.Tag_ = new List(); + for (var _j = 0; _j < this.Tag_Length; ++_j) {_o.Tag_.Add(TableEncryptionService.Convert(this.Tag_(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftOpenTagExcelT _o) { + if (_o == null) return default(Offset); + var _Tag_ = default(VectorOffset); + if (_o.Tag_ != null) { + var __Tag_ = _o.Tag_.ToArray(); + _Tag_ = CreateTag_Vector(builder, __Tag_); + } + return CreateGachaCraftOpenTagExcel( + builder, + _o.NodeTier, + _Tag_); + } +} + +public class GachaCraftOpenTagExcelT +{ + public SCHALE.Common.FlatData.CraftNodeTier NodeTier { get; set; } + public List Tag_ { get; set; } + + public GachaCraftOpenTagExcelT() { + this.NodeTier = SCHALE.Common.FlatData.CraftNodeTier.Base; + this.Tag_ = null; + } } diff --git a/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs index b1c01ef..2584151 100644 --- a/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaCraftOpenTagExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaCraftOpenTagExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaCraftOpenTagExcelTableT UnPack() { + var _o = new GachaCraftOpenTagExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaCraftOpenTagExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaCraftOpenTagExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaCraftOpenTagExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaCraftOpenTagExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaCraftOpenTagExcelTable( + builder, + _DataList); + } +} + +public class GachaCraftOpenTagExcelTableT +{ + public List DataList { get; set; } + + public GachaCraftOpenTagExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaElementExcel.cs b/SCHALE.Common/FlatData/GachaElementExcel.cs index a72debf..5e15bec 100644 --- a/SCHALE.Common/FlatData/GachaElementExcel.cs +++ b/SCHALE.Common/FlatData/GachaElementExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaElementExcel : IFlatbufferObject @@ -66,6 +67,62 @@ public struct GachaElementExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaElementExcelT UnPack() { + var _o = new GachaElementExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaElementExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaElement"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.GachaGroupID = TableEncryptionService.Convert(this.GachaGroupID, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelID = TableEncryptionService.Convert(this.ParcelID, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.ParcelAmountMin = TableEncryptionService.Convert(this.ParcelAmountMin, key); + _o.ParcelAmountMax = TableEncryptionService.Convert(this.ParcelAmountMax, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.State = TableEncryptionService.Convert(this.State, key); + } + public static Offset Pack(FlatBufferBuilder builder, GachaElementExcelT _o) { + if (_o == null) return default(Offset); + return CreateGachaElementExcel( + builder, + _o.ID, + _o.GachaGroupID, + _o.ParcelType, + _o.ParcelID, + _o.Rarity, + _o.ParcelAmountMin, + _o.ParcelAmountMax, + _o.Prob, + _o.State); + } +} + +public class GachaElementExcelT +{ + public long ID { get; set; } + public long GachaGroupID { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelID { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public int ParcelAmountMin { get; set; } + public int ParcelAmountMax { get; set; } + public int Prob { get; set; } + public int State { get; set; } + + public GachaElementExcelT() { + this.ID = 0; + this.GachaGroupID = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelID = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.ParcelAmountMin = 0; + this.ParcelAmountMax = 0; + this.Prob = 0; + this.State = 0; + } } diff --git a/SCHALE.Common/FlatData/GachaElementExcelTable.cs b/SCHALE.Common/FlatData/GachaElementExcelTable.cs index b3218d1..998ee95 100644 --- a/SCHALE.Common/FlatData/GachaElementExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaElementExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaElementExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaElementExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaElementExcelTableT UnPack() { + var _o = new GachaElementExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaElementExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaElementExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaElementExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaElementExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaElementExcelTable( + builder, + _DataList); + } +} + +public class GachaElementExcelTableT +{ + public List DataList { get; set; } + + public GachaElementExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs index 8de54db..8c3a46a 100644 --- a/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs +++ b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaElementRecursiveExcel : IFlatbufferObject @@ -62,6 +63,58 @@ public struct GachaElementRecursiveExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaElementRecursiveExcelT UnPack() { + var _o = new GachaElementRecursiveExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaElementRecursiveExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaElementRecursive"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.GachaGroupID = TableEncryptionService.Convert(this.GachaGroupID, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelID = TableEncryptionService.Convert(this.ParcelID, key); + _o.ParcelAmountMin = TableEncryptionService.Convert(this.ParcelAmountMin, key); + _o.ParcelAmountMax = TableEncryptionService.Convert(this.ParcelAmountMax, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.State = TableEncryptionService.Convert(this.State, key); + } + public static Offset Pack(FlatBufferBuilder builder, GachaElementRecursiveExcelT _o) { + if (_o == null) return default(Offset); + return CreateGachaElementRecursiveExcel( + builder, + _o.ID, + _o.GachaGroupID, + _o.ParcelType, + _o.ParcelID, + _o.ParcelAmountMin, + _o.ParcelAmountMax, + _o.Prob, + _o.State); + } +} + +public class GachaElementRecursiveExcelT +{ + public long ID { get; set; } + public long GachaGroupID { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelID { get; set; } + public int ParcelAmountMin { get; set; } + public int ParcelAmountMax { get; set; } + public int Prob { get; set; } + public int State { get; set; } + + public GachaElementRecursiveExcelT() { + this.ID = 0; + this.GachaGroupID = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelID = 0; + this.ParcelAmountMin = 0; + this.ParcelAmountMax = 0; + this.Prob = 0; + this.State = 0; + } } diff --git a/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs b/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs index 5039e53..9279d48 100644 --- a/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaElementRecursiveExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaElementRecursiveExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaElementRecursiveExcelTableT UnPack() { + var _o = new GachaElementRecursiveExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaElementRecursiveExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaElementRecursiveExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaElementRecursiveExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaElementRecursiveExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaElementRecursiveExcelTable( + builder, + _DataList); + } +} + +public class GachaElementRecursiveExcelTableT +{ + public List DataList { get; set; } + + public GachaElementRecursiveExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GachaGroupExcel.cs b/SCHALE.Common/FlatData/GachaGroupExcel.cs index 8c6718e..a51e7b2 100644 --- a/SCHALE.Common/FlatData/GachaGroupExcel.cs +++ b/SCHALE.Common/FlatData/GachaGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaGroupExcel : IFlatbufferObject @@ -52,6 +53,43 @@ public struct GachaGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaGroupExcelT UnPack() { + var _o = new GachaGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaGroup"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.NameKr = TableEncryptionService.Convert(this.NameKr, key); + _o.IsRecursive = TableEncryptionService.Convert(this.IsRecursive, key); + _o.GroupType = TableEncryptionService.Convert(this.GroupType, key); + } + public static Offset Pack(FlatBufferBuilder builder, GachaGroupExcelT _o) { + if (_o == null) return default(Offset); + var _NameKr = _o.NameKr == null ? default(StringOffset) : builder.CreateString(_o.NameKr); + return CreateGachaGroupExcel( + builder, + _o.ID, + _NameKr, + _o.IsRecursive, + _o.GroupType); + } +} + +public class GachaGroupExcelT +{ + public long ID { get; set; } + public string NameKr { get; set; } + public bool IsRecursive { get; set; } + public SCHALE.Common.FlatData.GachaGroupType GroupType { get; set; } + + public GachaGroupExcelT() { + this.ID = 0; + this.NameKr = null; + this.IsRecursive = false; + this.GroupType = SCHALE.Common.FlatData.GachaGroupType.None; + } } diff --git a/SCHALE.Common/FlatData/GachaGroupExcelTable.cs b/SCHALE.Common/FlatData/GachaGroupExcelTable.cs index 8d8bd8f..5bd692d 100644 --- a/SCHALE.Common/FlatData/GachaGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/GachaGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GachaGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GachaGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GachaGroupExcelTableT UnPack() { + var _o = new GachaGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GachaGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GachaGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GachaGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GachaGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGachaGroupExcelTable( + builder, + _DataList); + } +} + +public class GachaGroupExcelTableT +{ + public List DataList { get; set; } + + public GachaGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GoodsExcel.cs b/SCHALE.Common/FlatData/GoodsExcel.cs index 715bfa3..b0a3327 100644 --- a/SCHALE.Common/FlatData/GoodsExcel.cs +++ b/SCHALE.Common/FlatData/GoodsExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GoodsExcel : IFlatbufferObject @@ -216,6 +217,153 @@ public struct GoodsExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GoodsExcelT UnPack() { + var _o = new GoodsExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GoodsExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Goods"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Type = TableEncryptionService.Convert(this.Type, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.ConsumeParcelType = new List(); + for (var _j = 0; _j < this.ConsumeParcelTypeLength; ++_j) {_o.ConsumeParcelType.Add(TableEncryptionService.Convert(this.ConsumeParcelType(_j), key));} + _o.ConsumeParcelId = new List(); + for (var _j = 0; _j < this.ConsumeParcelIdLength; ++_j) {_o.ConsumeParcelId.Add(TableEncryptionService.Convert(this.ConsumeParcelId(_j), key));} + _o.ConsumeParcelAmount = new List(); + for (var _j = 0; _j < this.ConsumeParcelAmountLength; ++_j) {_o.ConsumeParcelAmount.Add(TableEncryptionService.Convert(this.ConsumeParcelAmount(_j), key));} + _o.ConsumeCondition_ = new List(); + for (var _j = 0; _j < this.ConsumeCondition_Length; ++_j) {_o.ConsumeCondition_.Add(TableEncryptionService.Convert(this.ConsumeCondition_(_j), key));} + _o.ConsumeGachaTicketType = TableEncryptionService.Convert(this.ConsumeGachaTicketType, key); + _o.ConsumeGachaTicketTypeAmount = TableEncryptionService.Convert(this.ConsumeGachaTicketTypeAmount, key); + _o.ProductIdAOS = TableEncryptionService.Convert(this.ProductIdAOS, key); + _o.ProductIdiOS = TableEncryptionService.Convert(this.ProductIdiOS, key); + _o.ConsumeExtraStep = new List(); + for (var _j = 0; _j < this.ConsumeExtraStepLength; ++_j) {_o.ConsumeExtraStep.Add(TableEncryptionService.Convert(this.ConsumeExtraStep(_j), key));} + _o.ConsumeExtraAmount = new List(); + for (var _j = 0; _j < this.ConsumeExtraAmountLength; ++_j) {_o.ConsumeExtraAmount.Add(TableEncryptionService.Convert(this.ConsumeExtraAmount(_j), key));} + _o.State = TableEncryptionService.Convert(this.State, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ParcelAmount = new List(); + for (var _j = 0; _j < this.ParcelAmountLength; ++_j) {_o.ParcelAmount.Add(TableEncryptionService.Convert(this.ParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, GoodsExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _ConsumeParcelType = default(VectorOffset); + if (_o.ConsumeParcelType != null) { + var __ConsumeParcelType = _o.ConsumeParcelType.ToArray(); + _ConsumeParcelType = CreateConsumeParcelTypeVector(builder, __ConsumeParcelType); + } + var _ConsumeParcelId = default(VectorOffset); + if (_o.ConsumeParcelId != null) { + var __ConsumeParcelId = _o.ConsumeParcelId.ToArray(); + _ConsumeParcelId = CreateConsumeParcelIdVector(builder, __ConsumeParcelId); + } + var _ConsumeParcelAmount = default(VectorOffset); + if (_o.ConsumeParcelAmount != null) { + var __ConsumeParcelAmount = _o.ConsumeParcelAmount.ToArray(); + _ConsumeParcelAmount = CreateConsumeParcelAmountVector(builder, __ConsumeParcelAmount); + } + var _ConsumeCondition_ = default(VectorOffset); + if (_o.ConsumeCondition_ != null) { + var __ConsumeCondition_ = _o.ConsumeCondition_.ToArray(); + _ConsumeCondition_ = CreateConsumeCondition_Vector(builder, __ConsumeCondition_); + } + var _ConsumeExtraStep = default(VectorOffset); + if (_o.ConsumeExtraStep != null) { + var __ConsumeExtraStep = _o.ConsumeExtraStep.ToArray(); + _ConsumeExtraStep = CreateConsumeExtraStepVector(builder, __ConsumeExtraStep); + } + var _ConsumeExtraAmount = default(VectorOffset); + if (_o.ConsumeExtraAmount != null) { + var __ConsumeExtraAmount = _o.ConsumeExtraAmount.ToArray(); + _ConsumeExtraAmount = CreateConsumeExtraAmountVector(builder, __ConsumeExtraAmount); + } + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ParcelAmount = default(VectorOffset); + if (_o.ParcelAmount != null) { + var __ParcelAmount = _o.ParcelAmount.ToArray(); + _ParcelAmount = CreateParcelAmountVector(builder, __ParcelAmount); + } + return CreateGoodsExcel( + builder, + _o.Id, + _o.Type, + _o.Rarity, + _IconPath, + _ConsumeParcelType, + _ConsumeParcelId, + _ConsumeParcelAmount, + _ConsumeCondition_, + _o.ConsumeGachaTicketType, + _o.ConsumeGachaTicketTypeAmount, + _o.ProductIdAOS, + _o.ProductIdiOS, + _ConsumeExtraStep, + _ConsumeExtraAmount, + _o.State, + _ParcelType_, + _ParcelId, + _ParcelAmount); + } +} + +public class GoodsExcelT +{ + public long Id { get; set; } + public int Type { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public string IconPath { get; set; } + public List ConsumeParcelType { get; set; } + public List ConsumeParcelId { get; set; } + public List ConsumeParcelAmount { get; set; } + public List ConsumeCondition_ { get; set; } + public SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType { get; set; } + public long ConsumeGachaTicketTypeAmount { get; set; } + public long ProductIdAOS { get; set; } + public long ProductIdiOS { get; set; } + public List ConsumeExtraStep { get; set; } + public List ConsumeExtraAmount { get; set; } + public int State { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ParcelAmount { get; set; } + + public GoodsExcelT() { + this.Id = 0; + this.Type = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.IconPath = null; + this.ConsumeParcelType = null; + this.ConsumeParcelId = null; + this.ConsumeParcelAmount = null; + this.ConsumeCondition_ = null; + this.ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None; + this.ConsumeGachaTicketTypeAmount = 0; + this.ProductIdAOS = 0; + this.ProductIdiOS = 0; + this.ConsumeExtraStep = null; + this.ConsumeExtraAmount = null; + this.State = 0; + this.ParcelType_ = null; + this.ParcelId = null; + this.ParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/GoodsExcelTable.cs b/SCHALE.Common/FlatData/GoodsExcelTable.cs index 44bb5d4..b7de90d 100644 --- a/SCHALE.Common/FlatData/GoodsExcelTable.cs +++ b/SCHALE.Common/FlatData/GoodsExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GoodsExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GoodsExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GoodsExcelTableT UnPack() { + var _o = new GoodsExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GoodsExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GoodsExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GoodsExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GoodsExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGoodsExcelTable( + builder, + _DataList); + } +} + +public class GoodsExcelTableT +{ + public List DataList { get; set; } + + public GoodsExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GroundExcel.cs b/SCHALE.Common/FlatData/GroundExcel.cs index 6353cef..42f91e6 100644 --- a/SCHALE.Common/FlatData/GroundExcel.cs +++ b/SCHALE.Common/FlatData/GroundExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundExcel : IFlatbufferObject @@ -306,6 +307,278 @@ public struct GroundExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundExcelT UnPack() { + var _o = new GroundExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Ground"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StageFileName = new List(); + for (var _j = 0; _j < this.StageFileNameLength; ++_j) {_o.StageFileName.Add(TableEncryptionService.Convert(this.StageFileName(_j), key));} + _o.GroundSceneName = TableEncryptionService.Convert(this.GroundSceneName, key); + _o.FormationGroupId = TableEncryptionService.Convert(this.FormationGroupId, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.EnemyBulletType = TableEncryptionService.Convert(this.EnemyBulletType, key); + _o.EnemyArmorType = TableEncryptionService.Convert(this.EnemyArmorType, key); + _o.LevelNPC = TableEncryptionService.Convert(this.LevelNPC, key); + _o.LevelMinion = TableEncryptionService.Convert(this.LevelMinion, key); + _o.LevelElite = TableEncryptionService.Convert(this.LevelElite, key); + _o.LevelChampion = TableEncryptionService.Convert(this.LevelChampion, key); + _o.LevelBoss = TableEncryptionService.Convert(this.LevelBoss, key); + _o.ObstacleLevel = TableEncryptionService.Convert(this.ObstacleLevel, key); + _o.GradeNPC = TableEncryptionService.Convert(this.GradeNPC, key); + _o.GradeMinion = TableEncryptionService.Convert(this.GradeMinion, key); + _o.GradeElite = TableEncryptionService.Convert(this.GradeElite, key); + _o.GradeChampion = TableEncryptionService.Convert(this.GradeChampion, key); + _o.GradeBoss = TableEncryptionService.Convert(this.GradeBoss, key); + _o.PlayerSightPointAdd = TableEncryptionService.Convert(this.PlayerSightPointAdd, key); + _o.PlayerSightPointRate = TableEncryptionService.Convert(this.PlayerSightPointRate, key); + _o.PlayerAttackRangeAdd = TableEncryptionService.Convert(this.PlayerAttackRangeAdd, key); + _o.PlayerAttackRangeRate = TableEncryptionService.Convert(this.PlayerAttackRangeRate, key); + _o.EnemySightPointAdd = TableEncryptionService.Convert(this.EnemySightPointAdd, key); + _o.EnemySightPointRate = TableEncryptionService.Convert(this.EnemySightPointRate, key); + _o.EnemyAttackRangeAdd = TableEncryptionService.Convert(this.EnemyAttackRangeAdd, key); + _o.EnemyAttackRangeRate = TableEncryptionService.Convert(this.EnemyAttackRangeRate, key); + _o.PlayerSkillRangeAdd = TableEncryptionService.Convert(this.PlayerSkillRangeAdd, key); + _o.PlayerSkillRangeRate = TableEncryptionService.Convert(this.PlayerSkillRangeRate, key); + _o.EnemySkillRangeAdd = TableEncryptionService.Convert(this.EnemySkillRangeAdd, key); + _o.EnemySkillRangeRate = TableEncryptionService.Convert(this.EnemySkillRangeRate, key); + _o.PlayerMinimumPositionGapRate = TableEncryptionService.Convert(this.PlayerMinimumPositionGapRate, key); + _o.EnemyMinimumPositionGapRate = TableEncryptionService.Convert(this.EnemyMinimumPositionGapRate, key); + _o.PlayerSightRangeMax = TableEncryptionService.Convert(this.PlayerSightRangeMax, key); + _o.EnemySightRangeMax = TableEncryptionService.Convert(this.EnemySightRangeMax, key); + _o.TSSAirUnitHeight = TableEncryptionService.Convert(this.TSSAirUnitHeight, key); + _o.IsPhaseBGM = TableEncryptionService.Convert(this.IsPhaseBGM, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.WarningUI = TableEncryptionService.Convert(this.WarningUI, key); + _o.TSSHatchOpen = TableEncryptionService.Convert(this.TSSHatchOpen, key); + _o.ForcedTacticSpeed = TableEncryptionService.Convert(this.ForcedTacticSpeed, key); + _o.ForcedSkillUse = TableEncryptionService.Convert(this.ForcedSkillUse, key); + _o.ShowNPCSkillCutIn = TableEncryptionService.Convert(this.ShowNPCSkillCutIn, key); + _o.ImmuneHitBeforeTimeOutEnd = TableEncryptionService.Convert(this.ImmuneHitBeforeTimeOutEnd, key); + _o.UIBattleHideFromScratch = TableEncryptionService.Convert(this.UIBattleHideFromScratch, key); + _o.BattleReadyTimelinePath = TableEncryptionService.Convert(this.BattleReadyTimelinePath, key); + _o.BeforeVictoryTimelinePath = TableEncryptionService.Convert(this.BeforeVictoryTimelinePath, key); + _o.HideNPCWhenBattleEnd = TableEncryptionService.Convert(this.HideNPCWhenBattleEnd, key); + _o.UIHpScale = TableEncryptionService.Convert(this.UIHpScale, key); + _o.UIEmojiScale = TableEncryptionService.Convert(this.UIEmojiScale, key); + _o.UISkillMainLogScale = TableEncryptionService.Convert(this.UISkillMainLogScale, key); + _o.AllyPassiveSkillId = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillIdLength; ++_j) {_o.AllyPassiveSkillId.Add(TableEncryptionService.Convert(this.AllyPassiveSkillId(_j), key));} + _o.AllyPassiveSkillLevel = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillLevelLength; ++_j) {_o.AllyPassiveSkillLevel.Add(TableEncryptionService.Convert(this.AllyPassiveSkillLevel(_j), key));} + _o.EnemyPassiveSkillId = new List(); + for (var _j = 0; _j < this.EnemyPassiveSkillIdLength; ++_j) {_o.EnemyPassiveSkillId.Add(TableEncryptionService.Convert(this.EnemyPassiveSkillId(_j), key));} + _o.EnemyPassiveSkillLevel = new List(); + for (var _j = 0; _j < this.EnemyPassiveSkillLevelLength; ++_j) {_o.EnemyPassiveSkillLevel.Add(TableEncryptionService.Convert(this.EnemyPassiveSkillLevel(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, GroundExcelT _o) { + if (_o == null) return default(Offset); + var _StageFileName = default(VectorOffset); + if (_o.StageFileName != null) { + var __StageFileName = new StringOffset[_o.StageFileName.Count]; + for (var _j = 0; _j < __StageFileName.Length; ++_j) { __StageFileName[_j] = builder.CreateString(_o.StageFileName[_j]); } + _StageFileName = CreateStageFileNameVector(builder, __StageFileName); + } + var _GroundSceneName = _o.GroundSceneName == null ? default(StringOffset) : builder.CreateString(_o.GroundSceneName); + var _BattleReadyTimelinePath = _o.BattleReadyTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.BattleReadyTimelinePath); + var _BeforeVictoryTimelinePath = _o.BeforeVictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.BeforeVictoryTimelinePath); + var _AllyPassiveSkillId = default(VectorOffset); + if (_o.AllyPassiveSkillId != null) { + var __AllyPassiveSkillId = new StringOffset[_o.AllyPassiveSkillId.Count]; + for (var _j = 0; _j < __AllyPassiveSkillId.Length; ++_j) { __AllyPassiveSkillId[_j] = builder.CreateString(_o.AllyPassiveSkillId[_j]); } + _AllyPassiveSkillId = CreateAllyPassiveSkillIdVector(builder, __AllyPassiveSkillId); + } + var _AllyPassiveSkillLevel = default(VectorOffset); + if (_o.AllyPassiveSkillLevel != null) { + var __AllyPassiveSkillLevel = _o.AllyPassiveSkillLevel.ToArray(); + _AllyPassiveSkillLevel = CreateAllyPassiveSkillLevelVector(builder, __AllyPassiveSkillLevel); + } + var _EnemyPassiveSkillId = default(VectorOffset); + if (_o.EnemyPassiveSkillId != null) { + var __EnemyPassiveSkillId = new StringOffset[_o.EnemyPassiveSkillId.Count]; + for (var _j = 0; _j < __EnemyPassiveSkillId.Length; ++_j) { __EnemyPassiveSkillId[_j] = builder.CreateString(_o.EnemyPassiveSkillId[_j]); } + _EnemyPassiveSkillId = CreateEnemyPassiveSkillIdVector(builder, __EnemyPassiveSkillId); + } + var _EnemyPassiveSkillLevel = default(VectorOffset); + if (_o.EnemyPassiveSkillLevel != null) { + var __EnemyPassiveSkillLevel = _o.EnemyPassiveSkillLevel.ToArray(); + _EnemyPassiveSkillLevel = CreateEnemyPassiveSkillLevelVector(builder, __EnemyPassiveSkillLevel); + } + return CreateGroundExcel( + builder, + _o.Id, + _StageFileName, + _GroundSceneName, + _o.FormationGroupId, + _o.StageTopography, + _o.EnemyBulletType, + _o.EnemyArmorType, + _o.LevelNPC, + _o.LevelMinion, + _o.LevelElite, + _o.LevelChampion, + _o.LevelBoss, + _o.ObstacleLevel, + _o.GradeNPC, + _o.GradeMinion, + _o.GradeElite, + _o.GradeChampion, + _o.GradeBoss, + _o.PlayerSightPointAdd, + _o.PlayerSightPointRate, + _o.PlayerAttackRangeAdd, + _o.PlayerAttackRangeRate, + _o.EnemySightPointAdd, + _o.EnemySightPointRate, + _o.EnemyAttackRangeAdd, + _o.EnemyAttackRangeRate, + _o.PlayerSkillRangeAdd, + _o.PlayerSkillRangeRate, + _o.EnemySkillRangeAdd, + _o.EnemySkillRangeRate, + _o.PlayerMinimumPositionGapRate, + _o.EnemyMinimumPositionGapRate, + _o.PlayerSightRangeMax, + _o.EnemySightRangeMax, + _o.TSSAirUnitHeight, + _o.IsPhaseBGM, + _o.BGMId, + _o.WarningUI, + _o.TSSHatchOpen, + _o.ForcedTacticSpeed, + _o.ForcedSkillUse, + _o.ShowNPCSkillCutIn, + _o.ImmuneHitBeforeTimeOutEnd, + _o.UIBattleHideFromScratch, + _BattleReadyTimelinePath, + _BeforeVictoryTimelinePath, + _o.HideNPCWhenBattleEnd, + _o.UIHpScale, + _o.UIEmojiScale, + _o.UISkillMainLogScale, + _AllyPassiveSkillId, + _AllyPassiveSkillLevel, + _EnemyPassiveSkillId, + _EnemyPassiveSkillLevel); + } +} + +public class GroundExcelT +{ + public long Id { get; set; } + public List StageFileName { get; set; } + public string GroundSceneName { get; set; } + public long FormationGroupId { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public SCHALE.Common.FlatData.BulletType EnemyBulletType { get; set; } + public SCHALE.Common.FlatData.ArmorType EnemyArmorType { get; set; } + public long LevelNPC { get; set; } + public long LevelMinion { get; set; } + public long LevelElite { get; set; } + public long LevelChampion { get; set; } + public long LevelBoss { get; set; } + public long ObstacleLevel { get; set; } + public long GradeNPC { get; set; } + public long GradeMinion { get; set; } + public long GradeElite { get; set; } + public long GradeChampion { get; set; } + public long GradeBoss { get; set; } + public long PlayerSightPointAdd { get; set; } + public long PlayerSightPointRate { get; set; } + public long PlayerAttackRangeAdd { get; set; } + public long PlayerAttackRangeRate { get; set; } + public long EnemySightPointAdd { get; set; } + public long EnemySightPointRate { get; set; } + public long EnemyAttackRangeAdd { get; set; } + public long EnemyAttackRangeRate { get; set; } + public long PlayerSkillRangeAdd { get; set; } + public long PlayerSkillRangeRate { get; set; } + public long EnemySkillRangeAdd { get; set; } + public long EnemySkillRangeRate { get; set; } + public long PlayerMinimumPositionGapRate { get; set; } + public long EnemyMinimumPositionGapRate { get; set; } + public bool PlayerSightRangeMax { get; set; } + public bool EnemySightRangeMax { get; set; } + public long TSSAirUnitHeight { get; set; } + public bool IsPhaseBGM { get; set; } + public long BGMId { get; set; } + public bool WarningUI { get; set; } + public bool TSSHatchOpen { get; set; } + public SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed { get; set; } + public SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse { get; set; } + public SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn { get; set; } + public bool ImmuneHitBeforeTimeOutEnd { get; set; } + public bool UIBattleHideFromScratch { get; set; } + public string BattleReadyTimelinePath { get; set; } + public string BeforeVictoryTimelinePath { get; set; } + public bool HideNPCWhenBattleEnd { get; set; } + public float UIHpScale { get; set; } + public float UIEmojiScale { get; set; } + public float UISkillMainLogScale { get; set; } + public List AllyPassiveSkillId { get; set; } + public List AllyPassiveSkillLevel { get; set; } + public List EnemyPassiveSkillId { get; set; } + public List EnemyPassiveSkillLevel { get; set; } + + public GroundExcelT() { + this.Id = 0; + this.StageFileName = null; + this.GroundSceneName = null; + this.FormationGroupId = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.EnemyBulletType = SCHALE.Common.FlatData.BulletType.Normal; + this.EnemyArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor; + this.LevelNPC = 0; + this.LevelMinion = 0; + this.LevelElite = 0; + this.LevelChampion = 0; + this.LevelBoss = 0; + this.ObstacleLevel = 0; + this.GradeNPC = 0; + this.GradeMinion = 0; + this.GradeElite = 0; + this.GradeChampion = 0; + this.GradeBoss = 0; + this.PlayerSightPointAdd = 0; + this.PlayerSightPointRate = 0; + this.PlayerAttackRangeAdd = 0; + this.PlayerAttackRangeRate = 0; + this.EnemySightPointAdd = 0; + this.EnemySightPointRate = 0; + this.EnemyAttackRangeAdd = 0; + this.EnemyAttackRangeRate = 0; + this.PlayerSkillRangeAdd = 0; + this.PlayerSkillRangeRate = 0; + this.EnemySkillRangeAdd = 0; + this.EnemySkillRangeRate = 0; + this.PlayerMinimumPositionGapRate = 0; + this.EnemyMinimumPositionGapRate = 0; + this.PlayerSightRangeMax = false; + this.EnemySightRangeMax = false; + this.TSSAirUnitHeight = 0; + this.IsPhaseBGM = false; + this.BGMId = 0; + this.WarningUI = false; + this.TSSHatchOpen = false; + this.ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None; + this.ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None; + this.ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None; + this.ImmuneHitBeforeTimeOutEnd = false; + this.UIBattleHideFromScratch = false; + this.BattleReadyTimelinePath = null; + this.BeforeVictoryTimelinePath = null; + this.HideNPCWhenBattleEnd = false; + this.UIHpScale = 0.0f; + this.UIEmojiScale = 0.0f; + this.UISkillMainLogScale = 0.0f; + this.AllyPassiveSkillId = null; + this.AllyPassiveSkillLevel = null; + this.EnemyPassiveSkillId = null; + this.EnemyPassiveSkillLevel = null; + } } diff --git a/SCHALE.Common/FlatData/GroundExcelTable.cs b/SCHALE.Common/FlatData/GroundExcelTable.cs index 07a302a..f3586a7 100644 --- a/SCHALE.Common/FlatData/GroundExcelTable.cs +++ b/SCHALE.Common/FlatData/GroundExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GroundExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundExcelTableT UnPack() { + var _o = new GroundExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GroundExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GroundExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GroundExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGroundExcelTable( + builder, + _DataList); + } +} + +public class GroundExcelTableT +{ + public List DataList { get; set; } + + public GroundExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GroundGridFlat.cs b/SCHALE.Common/FlatData/GroundGridFlat.cs index 284c7cd..9c9d8d4 100644 --- a/SCHALE.Common/FlatData/GroundGridFlat.cs +++ b/SCHALE.Common/FlatData/GroundGridFlat.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundGridFlat : IFlatbufferObject @@ -70,6 +71,62 @@ public struct GroundGridFlat : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundGridFlatT UnPack() { + var _o = new GroundGridFlatT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundGridFlatT _o) { + byte[] key = { 0 }; + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Y = TableEncryptionService.Convert(this.Y, key); + _o.StartX = TableEncryptionService.Convert(this.StartX, key); + _o.StartY = TableEncryptionService.Convert(this.StartY, key); + _o.Gap = TableEncryptionService.Convert(this.Gap, key); + _o.Nodes = new List(); + for (var _j = 0; _j < this.NodesLength; ++_j) {_o.Nodes.Add(this.Nodes(_j).HasValue ? this.Nodes(_j).Value.UnPack() : null);} + _o.Version = TableEncryptionService.Convert(this.Version, key); + } + public static Offset Pack(FlatBufferBuilder builder, GroundGridFlatT _o) { + if (_o == null) return default(Offset); + var _Nodes = default(VectorOffset); + if (_o.Nodes != null) { + var __Nodes = new Offset[_o.Nodes.Count]; + for (var _j = 0; _j < __Nodes.Length; ++_j) { __Nodes[_j] = SCHALE.Common.FlatData.GroundNodeFlat.Pack(builder, _o.Nodes[_j]); } + _Nodes = CreateNodesVector(builder, __Nodes); + } + var _Version = _o.Version == null ? default(StringOffset) : builder.CreateString(_o.Version); + return CreateGroundGridFlat( + builder, + _o.X, + _o.Y, + _o.StartX, + _o.StartY, + _o.Gap, + _Nodes, + _Version); + } +} + +public class GroundGridFlatT +{ + public int X { get; set; } + public int Y { get; set; } + public float StartX { get; set; } + public float StartY { get; set; } + public float Gap { get; set; } + public List Nodes { get; set; } + public string Version { get; set; } + + public GroundGridFlatT() { + this.X = 0; + this.Y = 0; + this.StartX = 0.0f; + this.StartY = 0.0f; + this.Gap = 0.0f; + this.Nodes = null; + this.Version = null; + } } diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs index 08a2147..0a6d4d6 100644 --- a/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs +++ b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundModuleRewardExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct GroundModuleRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundModuleRewardExcelT UnPack() { + var _o = new GroundModuleRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundModuleRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GroundModuleReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + _o.RewardParcelProbability = TableEncryptionService.Convert(this.RewardParcelProbability, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + _o.DropItemModelPrefabPath = TableEncryptionService.Convert(this.DropItemModelPrefabPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, GroundModuleRewardExcelT _o) { + if (_o == null) return default(Offset); + var _DropItemModelPrefabPath = _o.DropItemModelPrefabPath == null ? default(StringOffset) : builder.CreateString(_o.DropItemModelPrefabPath); + return CreateGroundModuleRewardExcel( + builder, + _o.GroupId, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount, + _o.RewardParcelProbability, + _o.IsDisplayed, + _DropItemModelPrefabPath); + } +} + +public class GroundModuleRewardExcelT +{ + public uint GroupId { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + public long RewardParcelProbability { get; set; } + public bool IsDisplayed { get; set; } + public string DropItemModelPrefabPath { get; set; } + + public GroundModuleRewardExcelT() { + this.GroupId = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + this.RewardParcelProbability = 0; + this.IsDisplayed = false; + this.DropItemModelPrefabPath = null; + } } diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs index f30a101..81c03d7 100644 --- a/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundModuleRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GroundModuleRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundModuleRewardExcelTableT UnPack() { + var _o = new GroundModuleRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundModuleRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GroundModuleRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GroundModuleRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GroundModuleRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGroundModuleRewardExcelTable( + builder, + _DataList); + } +} + +public class GroundModuleRewardExcelTableT +{ + public List DataList { get; set; } + + public GroundModuleRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GroundNodeFlat.cs b/SCHALE.Common/FlatData/GroundNodeFlat.cs index b583baa..120f243 100644 --- a/SCHALE.Common/FlatData/GroundNodeFlat.cs +++ b/SCHALE.Common/FlatData/GroundNodeFlat.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundNodeFlat : IFlatbufferObject @@ -54,6 +55,51 @@ public struct GroundNodeFlat : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundNodeFlatT UnPack() { + var _o = new GroundNodeFlatT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundNodeFlatT _o) { + byte[] key = { 0 }; + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Y = TableEncryptionService.Convert(this.Y, key); + _o.IsCanNotUseSkill = TableEncryptionService.Convert(this.IsCanNotUseSkill, key); + _o.Position = this.Position.HasValue ? this.Position.Value.UnPack() : null; + _o.NodeType = TableEncryptionService.Convert(this.NodeType, key); + _o.OriginalNodeType = TableEncryptionService.Convert(this.OriginalNodeType, key); + } + public static Offset Pack(FlatBufferBuilder builder, GroundNodeFlatT _o) { + if (_o == null) return default(Offset); + var _Position = _o.Position == null ? default(Offset) : SCHALE.Common.FlatData.GroundVector3.Pack(builder, _o.Position); + return CreateGroundNodeFlat( + builder, + _o.X, + _o.Y, + _o.IsCanNotUseSkill, + _Position, + _o.NodeType, + _o.OriginalNodeType); + } +} + +public class GroundNodeFlatT +{ + public int X { get; set; } + public int Y { get; set; } + public bool IsCanNotUseSkill { get; set; } + public SCHALE.Common.FlatData.GroundVector3T Position { get; set; } + public SCHALE.Common.FlatData.GroundNodeType NodeType { get; set; } + public SCHALE.Common.FlatData.GroundNodeType OriginalNodeType { get; set; } + + public GroundNodeFlatT() { + this.X = 0; + this.Y = 0; + this.IsCanNotUseSkill = false; + this.Position = null; + this.NodeType = SCHALE.Common.FlatData.GroundNodeType.None; + this.OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None; + } } diff --git a/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs b/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs index bd06b58..d183b79 100644 --- a/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs +++ b/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundNodeLayerFlat : IFlatbufferObject @@ -25,6 +26,26 @@ public struct GroundNodeLayerFlat : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundNodeLayerFlatT UnPack() { + var _o = new GroundNodeLayerFlatT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundNodeLayerFlatT _o) { + byte[] key = { 0 }; + } + public static Offset Pack(FlatBufferBuilder builder, GroundNodeLayerFlatT _o) { + if (_o == null) return default(Offset); + StartGroundNodeLayerFlat(builder); + return EndGroundNodeLayerFlat(builder); + } +} + +public class GroundNodeLayerFlatT +{ + + public GroundNodeLayerFlatT() { + } } diff --git a/SCHALE.Common/FlatData/GroundVector3.cs b/SCHALE.Common/FlatData/GroundVector3.cs index 57633af..d25acc8 100644 --- a/SCHALE.Common/FlatData/GroundVector3.cs +++ b/SCHALE.Common/FlatData/GroundVector3.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GroundVector3 : IFlatbufferObject @@ -42,6 +43,38 @@ public struct GroundVector3 : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GroundVector3T UnPack() { + var _o = new GroundVector3T(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GroundVector3T _o) { + byte[] key = { 0 }; + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Y = TableEncryptionService.Convert(this.Y, key); + _o.Z = TableEncryptionService.Convert(this.Z, key); + } + public static Offset Pack(FlatBufferBuilder builder, GroundVector3T _o) { + if (_o == null) return default(Offset); + return CreateGroundVector3( + builder, + _o.X, + _o.Y, + _o.Z); + } +} + +public class GroundVector3T +{ + public float X { get; set; } + public float Y { get; set; } + public float Z { get; set; } + + public GroundVector3T() { + this.X = 0.0f; + this.Y = 0.0f; + this.Z = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/GuideMissionExcel.cs b/SCHALE.Common/FlatData/GuideMissionExcel.cs index 8115e1c..d8d5083 100644 --- a/SCHALE.Common/FlatData/GuideMissionExcel.cs +++ b/SCHALE.Common/FlatData/GuideMissionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionExcel : IFlatbufferObject @@ -32,13 +33,7 @@ public struct GuideMissionExcel : IFlatbufferObject public ArraySegment? GetPreMissionIdBytes() { return __p.__vector_as_arraysegment(14); } #endif public long[] GetPreMissionIdArray() { return __p.__vector_as_array(14); } - public string Description { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } -#if ENABLE_SPAN_T - public Span GetDescriptionBytes() { return __p.__vector_as_span(16, 1); } -#else - public ArraySegment? GetDescriptionBytes() { return __p.__vector_as_arraysegment(16); } -#endif - public byte[] GetDescriptionArray() { return __p.__vector_as_array(16); } + public uint Description { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -100,7 +95,7 @@ public struct GuideMissionExcel : IFlatbufferObject bool IsLegacy = false, long TabNumber = 0, VectorOffset PreMissionIdOffset = default(VectorOffset), - StringOffset DescriptionOffset = default(StringOffset), + uint Description = 0, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), VectorOffset ShortcutUIOffset = default(VectorOffset), @@ -126,7 +121,7 @@ public struct GuideMissionExcel : IFlatbufferObject GuideMissionExcel.AddShortcutUI(builder, ShortcutUIOffset); GuideMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); GuideMissionExcel.AddToastDisplayType(builder, ToastDisplayType); - GuideMissionExcel.AddDescription(builder, DescriptionOffset); + GuideMissionExcel.AddDescription(builder, Description); GuideMissionExcel.AddPreMissionId(builder, PreMissionIdOffset); GuideMissionExcel.AddCategory(builder, Category); GuideMissionExcel.AddIsAutoClearForScenario(builder, IsAutoClearForScenario); @@ -146,7 +141,7 @@ public struct GuideMissionExcel : IFlatbufferObject public static VectorOffset CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartPreMissionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } - public static void AddDescription(FlatBufferBuilder builder, StringOffset descriptionOffset) { builder.AddOffset(6, descriptionOffset.Value, 0); } + public static void AddDescription(FlatBufferBuilder builder, uint description) { builder.AddUint(6, description, 0); } public static void AddToastDisplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionToastDisplayConditionType toastDisplayType) { builder.AddInt(7, (int)toastDisplayType, 0); } public static void AddToastImagePath(FlatBufferBuilder builder, StringOffset toastImagePathOffset) { builder.AddOffset(8, toastImagePathOffset.Value, 0); } public static void AddShortcutUI(FlatBufferBuilder builder, VectorOffset shortcutUIOffset) { builder.AddOffset(9, shortcutUIOffset.Value, 0); } @@ -192,6 +187,142 @@ public struct GuideMissionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionExcelT UnPack() { + var _o = new GuideMissionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMission"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.TabNumber = TableEncryptionService.Convert(this.TabNumber, key); + _o.PreMissionId = new List(); + for (var _j = 0; _j < this.PreMissionIdLength; ++_j) {_o.PreMissionId.Add(TableEncryptionService.Convert(this.PreMissionId(_j), key));} + _o.Description = TableEncryptionService.Convert(this.Description, key); + _o.ToastDisplayType = TableEncryptionService.Convert(this.ToastDisplayType, key); + _o.ToastImagePath = TableEncryptionService.Convert(this.ToastImagePath, key); + _o.ShortcutUI = new List(); + for (var _j = 0; _j < this.ShortcutUILength; ++_j) {_o.ShortcutUI.Add(TableEncryptionService.Convert(this.ShortcutUI(_j), key));} + _o.CompleteConditionType = TableEncryptionService.Convert(this.CompleteConditionType, key); + _o.CompleteConditionCount = TableEncryptionService.Convert(this.CompleteConditionCount, key); + _o.CompleteConditionParameter = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterLength; ++_j) {_o.CompleteConditionParameter.Add(TableEncryptionService.Convert(this.CompleteConditionParameter(_j), key));} + _o.CompleteConditionParameterTag = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterTagLength; ++_j) {_o.CompleteConditionParameterTag.Add(TableEncryptionService.Convert(this.CompleteConditionParameterTag(_j), key));} + _o.IsAutoClearForScenario = TableEncryptionService.Convert(this.IsAutoClearForScenario, key); + _o.MissionRewardParcelType = new List(); + for (var _j = 0; _j < this.MissionRewardParcelTypeLength; ++_j) {_o.MissionRewardParcelType.Add(TableEncryptionService.Convert(this.MissionRewardParcelType(_j), key));} + _o.MissionRewardParcelId = new List(); + for (var _j = 0; _j < this.MissionRewardParcelIdLength; ++_j) {_o.MissionRewardParcelId.Add(TableEncryptionService.Convert(this.MissionRewardParcelId(_j), key));} + _o.MissionRewardAmount = new List(); + for (var _j = 0; _j < this.MissionRewardAmountLength; ++_j) {_o.MissionRewardAmount.Add(TableEncryptionService.Convert(this.MissionRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionExcelT _o) { + if (_o == null) return default(Offset); + var _PreMissionId = default(VectorOffset); + if (_o.PreMissionId != null) { + var __PreMissionId = _o.PreMissionId.ToArray(); + _PreMissionId = CreatePreMissionIdVector(builder, __PreMissionId); + } + var _ToastImagePath = _o.ToastImagePath == null ? default(StringOffset) : builder.CreateString(_o.ToastImagePath); + var _ShortcutUI = default(VectorOffset); + if (_o.ShortcutUI != null) { + var __ShortcutUI = new StringOffset[_o.ShortcutUI.Count]; + for (var _j = 0; _j < __ShortcutUI.Length; ++_j) { __ShortcutUI[_j] = builder.CreateString(_o.ShortcutUI[_j]); } + _ShortcutUI = CreateShortcutUIVector(builder, __ShortcutUI); + } + var _CompleteConditionParameter = default(VectorOffset); + if (_o.CompleteConditionParameter != null) { + var __CompleteConditionParameter = _o.CompleteConditionParameter.ToArray(); + _CompleteConditionParameter = CreateCompleteConditionParameterVector(builder, __CompleteConditionParameter); + } + var _CompleteConditionParameterTag = default(VectorOffset); + if (_o.CompleteConditionParameterTag != null) { + var __CompleteConditionParameterTag = _o.CompleteConditionParameterTag.ToArray(); + _CompleteConditionParameterTag = CreateCompleteConditionParameterTagVector(builder, __CompleteConditionParameterTag); + } + var _MissionRewardParcelType = default(VectorOffset); + if (_o.MissionRewardParcelType != null) { + var __MissionRewardParcelType = _o.MissionRewardParcelType.ToArray(); + _MissionRewardParcelType = CreateMissionRewardParcelTypeVector(builder, __MissionRewardParcelType); + } + var _MissionRewardParcelId = default(VectorOffset); + if (_o.MissionRewardParcelId != null) { + var __MissionRewardParcelId = _o.MissionRewardParcelId.ToArray(); + _MissionRewardParcelId = CreateMissionRewardParcelIdVector(builder, __MissionRewardParcelId); + } + var _MissionRewardAmount = default(VectorOffset); + if (_o.MissionRewardAmount != null) { + var __MissionRewardAmount = _o.MissionRewardAmount.ToArray(); + _MissionRewardAmount = CreateMissionRewardAmountVector(builder, __MissionRewardAmount); + } + return CreateGuideMissionExcel( + builder, + _o.SeasonId, + _o.Id, + _o.Category, + _o.IsLegacy, + _o.TabNumber, + _PreMissionId, + _o.Description, + _o.ToastDisplayType, + _ToastImagePath, + _ShortcutUI, + _o.CompleteConditionType, + _o.CompleteConditionCount, + _CompleteConditionParameter, + _CompleteConditionParameterTag, + _o.IsAutoClearForScenario, + _MissionRewardParcelType, + _MissionRewardParcelId, + _MissionRewardAmount); + } +} + +public class GuideMissionExcelT +{ + public long SeasonId { get; set; } + public long Id { get; set; } + public SCHALE.Common.FlatData.MissionCategory Category { get; set; } + public bool IsLegacy { get; set; } + public long TabNumber { get; set; } + public List PreMissionId { get; set; } + public uint Description { get; set; } + public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get; set; } + public string ToastImagePath { get; set; } + public List ShortcutUI { get; set; } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get; set; } + public long CompleteConditionCount { get; set; } + public List CompleteConditionParameter { get; set; } + public List CompleteConditionParameterTag { get; set; } + public bool IsAutoClearForScenario { get; set; } + public List MissionRewardParcelType { get; set; } + public List MissionRewardParcelId { get; set; } + public List MissionRewardAmount { get; set; } + + public GuideMissionExcelT() { + this.SeasonId = 0; + this.Id = 0; + this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; + this.IsLegacy = false; + this.TabNumber = 0; + this.PreMissionId = null; + this.Description = 0; + this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; + this.ToastImagePath = null; + this.ShortcutUI = null; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionCount = 0; + this.CompleteConditionParameter = null; + this.CompleteConditionParameterTag = null; + this.IsAutoClearForScenario = false; + this.MissionRewardParcelType = null; + this.MissionRewardParcelId = null; + this.MissionRewardAmount = null; + } } @@ -206,7 +337,7 @@ static public class GuideMissionExcelVerify && verifier.VerifyField(tablePos, 10 /*IsLegacy*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 12 /*TabNumber*/, 8 /*long*/, 8, false) && verifier.VerifyVectorOfData(tablePos, 14 /*PreMissionId*/, 8 /*long*/, false) - && verifier.VerifyString(tablePos, 16 /*Description*/, false) + && verifier.VerifyField(tablePos, 16 /*Description*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 18 /*ToastDisplayType*/, 4 /*SCHALE.Common.FlatData.MissionToastDisplayConditionType*/, 4, false) && verifier.VerifyString(tablePos, 20 /*ToastImagePath*/, false) && verifier.VerifyVectorOfStrings(tablePos, 22 /*ShortcutUI*/, false) diff --git a/SCHALE.Common/FlatData/GuideMissionExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionExcelTable.cs index 023825f..cfbe9ca 100644 --- a/SCHALE.Common/FlatData/GuideMissionExcelTable.cs +++ b/SCHALE.Common/FlatData/GuideMissionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GuideMissionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionExcelTableT UnPack() { + var _o = new GuideMissionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMissionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GuideMissionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGuideMissionExcelTable( + builder, + _DataList); + } +} + +public class GuideMissionExcelTableT +{ + public List DataList { get; set; } + + public GuideMissionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs index 4df6d10..39e3052 100644 --- a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs +++ b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionOpenStageConditionExcel : IFlatbufferObject @@ -96,6 +97,67 @@ public struct GuideMissionOpenStageConditionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionOpenStageConditionExcelT UnPack() { + var _o = new GuideMissionOpenStageConditionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionOpenStageConditionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMissionOpenStageCondition"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.OrderNumber = TableEncryptionService.Convert(this.OrderNumber, key); + _o.TabLocalizeCode = TableEncryptionService.Convert(this.TabLocalizeCode, key); + _o.ClearScenarioModeId = TableEncryptionService.Convert(this.ClearScenarioModeId, key); + _o.LockScenarioTextLocailzeCode = TableEncryptionService.Convert(this.LockScenarioTextLocailzeCode, key); + _o.ShortcutScenarioUI = TableEncryptionService.Convert(this.ShortcutScenarioUI, key); + _o.ClearStageId = TableEncryptionService.Convert(this.ClearStageId, key); + _o.LockStageTextLocailzeCode = TableEncryptionService.Convert(this.LockStageTextLocailzeCode, key); + _o.ShortcutStageUI = TableEncryptionService.Convert(this.ShortcutStageUI, key); + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionOpenStageConditionExcelT _o) { + if (_o == null) return default(Offset); + var _TabLocalizeCode = _o.TabLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.TabLocalizeCode); + var _LockScenarioTextLocailzeCode = _o.LockScenarioTextLocailzeCode == null ? default(StringOffset) : builder.CreateString(_o.LockScenarioTextLocailzeCode); + var _ShortcutScenarioUI = _o.ShortcutScenarioUI == null ? default(StringOffset) : builder.CreateString(_o.ShortcutScenarioUI); + var _LockStageTextLocailzeCode = _o.LockStageTextLocailzeCode == null ? default(StringOffset) : builder.CreateString(_o.LockStageTextLocailzeCode); + var _ShortcutStageUI = _o.ShortcutStageUI == null ? default(StringOffset) : builder.CreateString(_o.ShortcutStageUI); + return CreateGuideMissionOpenStageConditionExcel( + builder, + _o.SeasonId, + _o.OrderNumber, + _TabLocalizeCode, + _o.ClearScenarioModeId, + _LockScenarioTextLocailzeCode, + _ShortcutScenarioUI, + _o.ClearStageId, + _LockStageTextLocailzeCode, + _ShortcutStageUI); + } +} + +public class GuideMissionOpenStageConditionExcelT +{ + public long SeasonId { get; set; } + public long OrderNumber { get; set; } + public string TabLocalizeCode { get; set; } + public long ClearScenarioModeId { get; set; } + public string LockScenarioTextLocailzeCode { get; set; } + public string ShortcutScenarioUI { get; set; } + public long ClearStageId { get; set; } + public string LockStageTextLocailzeCode { get; set; } + public string ShortcutStageUI { get; set; } + + public GuideMissionOpenStageConditionExcelT() { + this.SeasonId = 0; + this.OrderNumber = 0; + this.TabLocalizeCode = null; + this.ClearScenarioModeId = 0; + this.LockScenarioTextLocailzeCode = null; + this.ShortcutScenarioUI = null; + this.ClearStageId = 0; + this.LockStageTextLocailzeCode = null; + this.ShortcutStageUI = null; + } } diff --git a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs index daeaacf..1dcc331 100644 --- a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs +++ b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionOpenStageConditionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GuideMissionOpenStageConditionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionOpenStageConditionExcelTableT UnPack() { + var _o = new GuideMissionOpenStageConditionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionOpenStageConditionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMissionOpenStageConditionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionOpenStageConditionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGuideMissionOpenStageConditionExcelTable( + builder, + _DataList); + } +} + +public class GuideMissionOpenStageConditionExcelTableT +{ + public List DataList { get; set; } + + public GuideMissionOpenStageConditionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs index 85801d3..7b92a5d 100644 --- a/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs +++ b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionSeasonExcel : IFlatbufferObject @@ -202,6 +203,138 @@ public struct GuideMissionSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionSeasonExcelT UnPack() { + var _o = new GuideMissionSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMissionSeason"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TitleLocalizeCode = TableEncryptionService.Convert(this.TitleLocalizeCode, key); + _o.PermanentInfomationLocalizeCode = TableEncryptionService.Convert(this.PermanentInfomationLocalizeCode, key); + _o.InfomationLocalizeCode = TableEncryptionService.Convert(this.InfomationLocalizeCode, key); + _o.AccountType = TableEncryptionService.Convert(this.AccountType, key); + _o.Enabled = TableEncryptionService.Convert(this.Enabled, key); + _o.BannerOpenDate = TableEncryptionService.Convert(this.BannerOpenDate, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.StartableEndDate = TableEncryptionService.Convert(this.StartableEndDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.CloseBannerAfterCompletion = TableEncryptionService.Convert(this.CloseBannerAfterCompletion, key); + _o.MaximumLoginCount = TableEncryptionService.Convert(this.MaximumLoginCount, key); + _o.ExpiryDate = TableEncryptionService.Convert(this.ExpiryDate, key); + _o.SpineCharacterId = TableEncryptionService.Convert(this.SpineCharacterId, key); + _o.RequirementParcelImage = TableEncryptionService.Convert(this.RequirementParcelImage, key); + _o.RewardImage = TableEncryptionService.Convert(this.RewardImage, key); + _o.LobbyBannerImage = TableEncryptionService.Convert(this.LobbyBannerImage, key); + _o.BackgroundImage = TableEncryptionService.Convert(this.BackgroundImage, key); + _o.TitleImage = TableEncryptionService.Convert(this.TitleImage, key); + _o.RequirementParcelType = TableEncryptionService.Convert(this.RequirementParcelType, key); + _o.RequirementParcelId = TableEncryptionService.Convert(this.RequirementParcelId, key); + _o.RequirementParcelAmount = TableEncryptionService.Convert(this.RequirementParcelAmount, key); + _o.TabType = TableEncryptionService.Convert(this.TabType, key); + _o.IsPermanent = TableEncryptionService.Convert(this.IsPermanent, key); + _o.PreSeasonId = TableEncryptionService.Convert(this.PreSeasonId, key); + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _TitleLocalizeCode = _o.TitleLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.TitleLocalizeCode); + var _PermanentInfomationLocalizeCode = _o.PermanentInfomationLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.PermanentInfomationLocalizeCode); + var _InfomationLocalizeCode = _o.InfomationLocalizeCode == null ? default(StringOffset) : builder.CreateString(_o.InfomationLocalizeCode); + var _BannerOpenDate = _o.BannerOpenDate == null ? default(StringOffset) : builder.CreateString(_o.BannerOpenDate); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _StartableEndDate = _o.StartableEndDate == null ? default(StringOffset) : builder.CreateString(_o.StartableEndDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _RequirementParcelImage = _o.RequirementParcelImage == null ? default(StringOffset) : builder.CreateString(_o.RequirementParcelImage); + var _RewardImage = _o.RewardImage == null ? default(StringOffset) : builder.CreateString(_o.RewardImage); + var _LobbyBannerImage = _o.LobbyBannerImage == null ? default(StringOffset) : builder.CreateString(_o.LobbyBannerImage); + var _BackgroundImage = _o.BackgroundImage == null ? default(StringOffset) : builder.CreateString(_o.BackgroundImage); + var _TitleImage = _o.TitleImage == null ? default(StringOffset) : builder.CreateString(_o.TitleImage); + return CreateGuideMissionSeasonExcel( + builder, + _o.Id, + _TitleLocalizeCode, + _PermanentInfomationLocalizeCode, + _InfomationLocalizeCode, + _o.AccountType, + _o.Enabled, + _BannerOpenDate, + _StartDate, + _StartableEndDate, + _EndDate, + _o.CloseBannerAfterCompletion, + _o.MaximumLoginCount, + _o.ExpiryDate, + _o.SpineCharacterId, + _RequirementParcelImage, + _RewardImage, + _LobbyBannerImage, + _BackgroundImage, + _TitleImage, + _o.RequirementParcelType, + _o.RequirementParcelId, + _o.RequirementParcelAmount, + _o.TabType, + _o.IsPermanent, + _o.PreSeasonId); + } +} + +public class GuideMissionSeasonExcelT +{ + public long Id { get; set; } + public string TitleLocalizeCode { get; set; } + public string PermanentInfomationLocalizeCode { get; set; } + public string InfomationLocalizeCode { get; set; } + public SCHALE.Common.FlatData.AccountState AccountType { get; set; } + public bool Enabled { get; set; } + public string BannerOpenDate { get; set; } + public string StartDate { get; set; } + public string StartableEndDate { get; set; } + public string EndDate { get; set; } + public bool CloseBannerAfterCompletion { get; set; } + public long MaximumLoginCount { get; set; } + public long ExpiryDate { get; set; } + public long SpineCharacterId { get; set; } + public string RequirementParcelImage { get; set; } + public string RewardImage { get; set; } + public string LobbyBannerImage { get; set; } + public string BackgroundImage { get; set; } + public string TitleImage { get; set; } + public SCHALE.Common.FlatData.ParcelType RequirementParcelType { get; set; } + public long RequirementParcelId { get; set; } + public int RequirementParcelAmount { get; set; } + public SCHALE.Common.FlatData.GuideMissionTabType TabType { get; set; } + public bool IsPermanent { get; set; } + public long PreSeasonId { get; set; } + + public GuideMissionSeasonExcelT() { + this.Id = 0; + this.TitleLocalizeCode = null; + this.PermanentInfomationLocalizeCode = null; + this.InfomationLocalizeCode = null; + this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; + this.Enabled = false; + this.BannerOpenDate = null; + this.StartDate = null; + this.StartableEndDate = null; + this.EndDate = null; + this.CloseBannerAfterCompletion = false; + this.MaximumLoginCount = 0; + this.ExpiryDate = 0; + this.SpineCharacterId = 0; + this.RequirementParcelImage = null; + this.RewardImage = null; + this.LobbyBannerImage = null; + this.BackgroundImage = null; + this.TitleImage = null; + this.RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RequirementParcelId = 0; + this.RequirementParcelAmount = 0; + this.TabType = SCHALE.Common.FlatData.GuideMissionTabType.None; + this.IsPermanent = false; + this.PreSeasonId = 0; + } } diff --git a/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs index d5e21c1..79768ed 100644 --- a/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct GuideMissionSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct GuideMissionSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public GuideMissionSeasonExcelTableT UnPack() { + var _o = new GuideMissionSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(GuideMissionSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("GuideMissionSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, GuideMissionSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GuideMissionSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateGuideMissionSeasonExcelTable( + builder, + _DataList); + } +} + +public class GuideMissionSeasonExcelTableT +{ + public List DataList { get; set; } + + public GuideMissionSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs b/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs index 3e9390c..4967629 100644 --- a/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs +++ b/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct HpBarAbbreviationExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct HpBarAbbreviationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public HpBarAbbreviationExcelT UnPack() { + var _o = new HpBarAbbreviationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(HpBarAbbreviationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("HpBarAbbreviation"); + _o.MonsterLv = TableEncryptionService.Convert(this.MonsterLv, key); + _o.StandardHpBar = TableEncryptionService.Convert(this.StandardHpBar, key); + _o.RaidBossHpBar = TableEncryptionService.Convert(this.RaidBossHpBar, key); + } + public static Offset Pack(FlatBufferBuilder builder, HpBarAbbreviationExcelT _o) { + if (_o == null) return default(Offset); + return CreateHpBarAbbreviationExcel( + builder, + _o.MonsterLv, + _o.StandardHpBar, + _o.RaidBossHpBar); + } +} + +public class HpBarAbbreviationExcelT +{ + public int MonsterLv { get; set; } + public int StandardHpBar { get; set; } + public int RaidBossHpBar { get; set; } + + public HpBarAbbreviationExcelT() { + this.MonsterLv = 0; + this.StandardHpBar = 0; + this.RaidBossHpBar = 0; + } } diff --git a/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs b/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs index bccb8a1..516f942 100644 --- a/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs +++ b/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct HpBarAbbreviationExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct HpBarAbbreviationExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public HpBarAbbreviationExcelTableT UnPack() { + var _o = new HpBarAbbreviationExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(HpBarAbbreviationExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("HpBarAbbreviationExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, HpBarAbbreviationExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.HpBarAbbreviationExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateHpBarAbbreviationExcelTable( + builder, + _DataList); + } +} + +public class HpBarAbbreviationExcelTableT +{ + public List DataList { get; set; } + + public HpBarAbbreviationExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs b/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs index 2221fe9..ffb101d 100644 --- a/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs +++ b/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct IdCardBackgroundExcel : IFlatbufferObject @@ -74,6 +75,60 @@ public struct IdCardBackgroundExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public IdCardBackgroundExcelT UnPack() { + var _o = new IdCardBackgroundExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(IdCardBackgroundExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("IdCardBackground"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); + _o.IsDefault = TableEncryptionService.Convert(this.IsDefault, key); + _o.BgPath = TableEncryptionService.Convert(this.BgPath, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + } + public static Offset Pack(FlatBufferBuilder builder, IdCardBackgroundExcelT _o) { + if (_o == null) return default(Offset); + var _BgPath = _o.BgPath == null ? default(StringOffset) : builder.CreateString(_o.BgPath); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + return CreateIdCardBackgroundExcel( + builder, + _o.Id, + _o.Rarity, + _o.DisplayOrder, + _o.CollectionVisible, + _o.IsDefault, + _BgPath, + _o.LocalizeEtcId, + _Icon); + } +} + +public class IdCardBackgroundExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public long DisplayOrder { get; set; } + public bool CollectionVisible { get; set; } + public bool IsDefault { get; set; } + public string BgPath { get; set; } + public uint LocalizeEtcId { get; set; } + public string Icon { get; set; } + + public IdCardBackgroundExcelT() { + this.Id = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.DisplayOrder = 0; + this.CollectionVisible = false; + this.IsDefault = false; + this.BgPath = null; + this.LocalizeEtcId = 0; + this.Icon = null; + } } diff --git a/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs b/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs index 727ad6c..e3b4ae6 100644 --- a/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs +++ b/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct IdCardBackgroundExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct IdCardBackgroundExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public IdCardBackgroundExcelTableT UnPack() { + var _o = new IdCardBackgroundExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(IdCardBackgroundExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("IdCardBackgroundExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, IdCardBackgroundExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.IdCardBackgroundExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateIdCardBackgroundExcelTable( + builder, + _DataList); + } +} + +public class IdCardBackgroundExcelTableT +{ + public List DataList { get; set; } + + public IdCardBackgroundExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/InformationExcel.cs b/SCHALE.Common/FlatData/InformationExcel.cs index 1cffcb3..698ab90 100644 --- a/SCHALE.Common/FlatData/InformationExcel.cs +++ b/SCHALE.Common/FlatData/InformationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct InformationExcel : IFlatbufferObject @@ -74,6 +75,62 @@ public struct InformationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public InformationExcelT UnPack() { + var _o = new InformationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(InformationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Information"); + _o.GroupID = TableEncryptionService.Convert(this.GroupID, key); + _o.PageName = TableEncryptionService.Convert(this.PageName, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + _o.TutorialParentName = new List(); + for (var _j = 0; _j < this.TutorialParentNameLength; ++_j) {_o.TutorialParentName.Add(TableEncryptionService.Convert(this.TutorialParentName(_j), key));} + _o.UIName = new List(); + for (var _j = 0; _j < this.UINameLength; ++_j) {_o.UIName.Add(TableEncryptionService.Convert(this.UIName(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, InformationExcelT _o) { + if (_o == null) return default(Offset); + var _PageName = _o.PageName == null ? default(StringOffset) : builder.CreateString(_o.PageName); + var _LocalizeCodeId = _o.LocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCodeId); + var _TutorialParentName = default(VectorOffset); + if (_o.TutorialParentName != null) { + var __TutorialParentName = new StringOffset[_o.TutorialParentName.Count]; + for (var _j = 0; _j < __TutorialParentName.Length; ++_j) { __TutorialParentName[_j] = builder.CreateString(_o.TutorialParentName[_j]); } + _TutorialParentName = CreateTutorialParentNameVector(builder, __TutorialParentName); + } + var _UIName = default(VectorOffset); + if (_o.UIName != null) { + var __UIName = new StringOffset[_o.UIName.Count]; + for (var _j = 0; _j < __UIName.Length; ++_j) { __UIName[_j] = builder.CreateString(_o.UIName[_j]); } + _UIName = CreateUINameVector(builder, __UIName); + } + return CreateInformationExcel( + builder, + _o.GroupID, + _PageName, + _LocalizeCodeId, + _TutorialParentName, + _UIName); + } +} + +public class InformationExcelT +{ + public long GroupID { get; set; } + public string PageName { get; set; } + public string LocalizeCodeId { get; set; } + public List TutorialParentName { get; set; } + public List UIName { get; set; } + + public InformationExcelT() { + this.GroupID = 0; + this.PageName = null; + this.LocalizeCodeId = null; + this.TutorialParentName = null; + this.UIName = null; + } } diff --git a/SCHALE.Common/FlatData/InformationExcelTable.cs b/SCHALE.Common/FlatData/InformationExcelTable.cs deleted file mode 100644 index bef6bfa..0000000 --- a/SCHALE.Common/FlatData/InformationExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct InformationExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static InformationExcelTable GetRootAsInformationExcelTable(ByteBuffer _bb) { return GetRootAsInformationExcelTable(_bb, new InformationExcelTable()); } - public static InformationExcelTable GetRootAsInformationExcelTable(ByteBuffer _bb, InformationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public InformationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.InformationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.InformationExcel?)(new SCHALE.Common.FlatData.InformationExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateInformationExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - InformationExcelTable.AddDataList(builder, DataListOffset); - return InformationExcelTable.EndInformationExcelTable(builder); - } - - public static void StartInformationExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndInformationExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class InformationExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.InformationExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/InformationStrategyObjectExcel.cs b/SCHALE.Common/FlatData/InformationStrategyObjectExcel.cs index d84fede..2b5ae7d 100644 --- a/SCHALE.Common/FlatData/InformationStrategyObjectExcel.cs +++ b/SCHALE.Common/FlatData/InformationStrategyObjectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct InformationStrategyObjectExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct InformationStrategyObjectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public InformationStrategyObjectExcelT UnPack() { + var _o = new InformationStrategyObjectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(InformationStrategyObjectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("InformationStrategyObject"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StageId = TableEncryptionService.Convert(this.StageId, key); + _o.PageName = TableEncryptionService.Convert(this.PageName, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, InformationStrategyObjectExcelT _o) { + if (_o == null) return default(Offset); + var _PageName = _o.PageName == null ? default(StringOffset) : builder.CreateString(_o.PageName); + var _LocalizeCodeId = _o.LocalizeCodeId == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCodeId); + return CreateInformationStrategyObjectExcel( + builder, + _o.Id, + _o.StageId, + _PageName, + _LocalizeCodeId); + } +} + +public class InformationStrategyObjectExcelT +{ + public long Id { get; set; } + public long StageId { get; set; } + public string PageName { get; set; } + public string LocalizeCodeId { get; set; } + + public InformationStrategyObjectExcelT() { + this.Id = 0; + this.StageId = 0; + this.PageName = null; + this.LocalizeCodeId = null; + } } diff --git a/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs b/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs index 0e2c8a0..19275a8 100644 --- a/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs +++ b/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct InformationStrategyObjectExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct InformationStrategyObjectExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public InformationStrategyObjectExcelTableT UnPack() { + var _o = new InformationStrategyObjectExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(InformationStrategyObjectExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("InformationStrategyObjectExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, InformationStrategyObjectExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.InformationStrategyObjectExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateInformationStrategyObjectExcelTable( + builder, + _DataList); + } +} + +public class InformationStrategyObjectExcelTableT +{ + public List DataList { get; set; } + + public InformationStrategyObjectExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ItemExcel.cs b/SCHALE.Common/FlatData/ItemExcel.cs index b646445..f9da83e 100644 --- a/SCHALE.Common/FlatData/ItemExcel.cs +++ b/SCHALE.Common/FlatData/ItemExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ItemExcel : IFlatbufferObject @@ -200,6 +201,169 @@ public struct ItemExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ItemExcelT UnPack() { + var _o = new ItemExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ItemExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Item"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.ItemCategory = TableEncryptionService.Convert(this.ItemCategory, key); + _o.Quality = TableEncryptionService.Convert(this.Quality, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.SpriteName = TableEncryptionService.Convert(this.SpriteName, key); + _o.StackableMax = TableEncryptionService.Convert(this.StackableMax, key); + _o.StackableFunction = TableEncryptionService.Convert(this.StackableFunction, key); + _o.ImmediateUse = TableEncryptionService.Convert(this.ImmediateUse, key); + _o.UsingResultParcelType = TableEncryptionService.Convert(this.UsingResultParcelType, key); + _o.UsingResultId = TableEncryptionService.Convert(this.UsingResultId, key); + _o.UsingResultAmount = TableEncryptionService.Convert(this.UsingResultAmount, key); + _o.MailType = TableEncryptionService.Convert(this.MailType, key); + _o.ExpiryChangeParcelType = TableEncryptionService.Convert(this.ExpiryChangeParcelType, key); + _o.ExpiryChangeId = TableEncryptionService.Convert(this.ExpiryChangeId, key); + _o.ExpiryChangeAmount = TableEncryptionService.Convert(this.ExpiryChangeAmount, key); + _o.CanTierUpgrade = TableEncryptionService.Convert(this.CanTierUpgrade, key); + _o.TierUpgradeRecipeCraftId = TableEncryptionService.Convert(this.TierUpgradeRecipeCraftId, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.CraftQualityTier0 = TableEncryptionService.Convert(this.CraftQualityTier0, key); + _o.CraftQualityTier1 = TableEncryptionService.Convert(this.CraftQualityTier1, key); + _o.CraftQualityTier2 = TableEncryptionService.Convert(this.CraftQualityTier2, key); + _o.ShiftingCraftQuality = TableEncryptionService.Convert(this.ShiftingCraftQuality, key); + _o.MaxGiftTags = TableEncryptionService.Convert(this.MaxGiftTags, key); + _o.ShopCategory = new List(); + for (var _j = 0; _j < this.ShopCategoryLength; ++_j) {_o.ShopCategory.Add(TableEncryptionService.Convert(this.ShopCategory(_j), key));} + _o.ExpirationDateTime = TableEncryptionService.Convert(this.ExpirationDateTime, key); + _o.ExpirationNotifyDateIn = TableEncryptionService.Convert(this.ExpirationNotifyDateIn, key); + _o.ShortcutTypeId = TableEncryptionService.Convert(this.ShortcutTypeId, key); + _o.GachaTicket = TableEncryptionService.Convert(this.GachaTicket, key); + } + public static Offset Pack(FlatBufferBuilder builder, ItemExcelT _o) { + if (_o == null) return default(Offset); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _SpriteName = _o.SpriteName == null ? default(StringOffset) : builder.CreateString(_o.SpriteName); + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); + } + var _ShopCategory = default(VectorOffset); + if (_o.ShopCategory != null) { + var __ShopCategory = _o.ShopCategory.ToArray(); + _ShopCategory = CreateShopCategoryVector(builder, __ShopCategory); + } + var _ExpirationDateTime = _o.ExpirationDateTime == null ? default(StringOffset) : builder.CreateString(_o.ExpirationDateTime); + return CreateItemExcel( + builder, + _o.Id, + _o.GroupId, + _o.Rarity, + _o.ProductionStep, + _o.LocalizeEtcId, + _o.ItemCategory, + _o.Quality, + _Icon, + _SpriteName, + _o.StackableMax, + _o.StackableFunction, + _o.ImmediateUse, + _o.UsingResultParcelType, + _o.UsingResultId, + _o.UsingResultAmount, + _o.MailType, + _o.ExpiryChangeParcelType, + _o.ExpiryChangeId, + _o.ExpiryChangeAmount, + _o.CanTierUpgrade, + _o.TierUpgradeRecipeCraftId, + _Tags, + _o.CraftQualityTier0, + _o.CraftQualityTier1, + _o.CraftQualityTier2, + _o.ShiftingCraftQuality, + _o.MaxGiftTags, + _ShopCategory, + _ExpirationDateTime, + _o.ExpirationNotifyDateIn, + _o.ShortcutTypeId, + _o.GachaTicket); + } +} + +public class ItemExcelT +{ + public long Id { get; set; } + public long GroupId { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.ItemCategory ItemCategory { get; set; } + public long Quality { get; set; } + public string Icon { get; set; } + public string SpriteName { get; set; } + public int StackableMax { get; set; } + public int StackableFunction { get; set; } + public bool ImmediateUse { get; set; } + public SCHALE.Common.FlatData.ParcelType UsingResultParcelType { get; set; } + public long UsingResultId { get; set; } + public long UsingResultAmount { get; set; } + public SCHALE.Common.FlatData.MailType MailType { get; set; } + public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get; set; } + public long ExpiryChangeId { get; set; } + public long ExpiryChangeAmount { get; set; } + public bool CanTierUpgrade { get; set; } + public long TierUpgradeRecipeCraftId { get; set; } + public List Tags { get; set; } + public long CraftQualityTier0 { get; set; } + public long CraftQualityTier1 { get; set; } + public long CraftQualityTier2 { get; set; } + public long ShiftingCraftQuality { get; set; } + public int MaxGiftTags { get; set; } + public List ShopCategory { get; set; } + public string ExpirationDateTime { get; set; } + public int ExpirationNotifyDateIn { get; set; } + public long ShortcutTypeId { get; set; } + public SCHALE.Common.FlatData.GachaTicketType GachaTicket { get; set; } + + public ItemExcelT() { + this.Id = 0; + this.GroupId = 0; + this.Rarity = SCHALE.Common.FlatData.Rarity.N; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.LocalizeEtcId = 0; + this.ItemCategory = SCHALE.Common.FlatData.ItemCategory.Coin; + this.Quality = 0; + this.Icon = null; + this.SpriteName = null; + this.StackableMax = 0; + this.StackableFunction = 0; + this.ImmediateUse = false; + this.UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.UsingResultId = 0; + this.UsingResultAmount = 0; + this.MailType = SCHALE.Common.FlatData.MailType.System; + this.ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ExpiryChangeId = 0; + this.ExpiryChangeAmount = 0; + this.CanTierUpgrade = false; + this.TierUpgradeRecipeCraftId = 0; + this.Tags = null; + this.CraftQualityTier0 = 0; + this.CraftQualityTier1 = 0; + this.CraftQualityTier2 = 0; + this.ShiftingCraftQuality = 0; + this.MaxGiftTags = 0; + this.ShopCategory = null; + this.ExpirationDateTime = null; + this.ExpirationNotifyDateIn = 0; + this.ShortcutTypeId = 0; + this.GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None; + } } diff --git a/SCHALE.Common/FlatData/ItemExcelTable.cs b/SCHALE.Common/FlatData/ItemExcelTable.cs index 835fa32..6d9b3ab 100644 --- a/SCHALE.Common/FlatData/ItemExcelTable.cs +++ b/SCHALE.Common/FlatData/ItemExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ItemExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ItemExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ItemExcelTableT UnPack() { + var _o = new ItemExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ItemExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ItemExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ItemExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ItemExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateItemExcelTable( + builder, + _DataList); + } +} + +public class ItemExcelTableT +{ + public List DataList { get; set; } + + public ItemExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/KnockBackExcel.cs b/SCHALE.Common/FlatData/KnockBackExcel.cs index 0bf2f47..3a8db6e 100644 --- a/SCHALE.Common/FlatData/KnockBackExcel.cs +++ b/SCHALE.Common/FlatData/KnockBackExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct KnockBackExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct KnockBackExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public KnockBackExcelT UnPack() { + var _o = new KnockBackExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(KnockBackExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("KnockBack"); + _o.Index = TableEncryptionService.Convert(this.Index, key); + _o.Dist = TableEncryptionService.Convert(this.Dist, key); + _o.Speed = TableEncryptionService.Convert(this.Speed, key); + } + public static Offset Pack(FlatBufferBuilder builder, KnockBackExcelT _o) { + if (_o == null) return default(Offset); + return CreateKnockBackExcel( + builder, + _o.Index, + _o.Dist, + _o.Speed); + } +} + +public class KnockBackExcelT +{ + public long Index { get; set; } + public float Dist { get; set; } + public float Speed { get; set; } + + public KnockBackExcelT() { + this.Index = 0; + this.Dist = 0.0f; + this.Speed = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/KnockBackExcelTable.cs b/SCHALE.Common/FlatData/KnockBackExcelTable.cs index eec581c..7ca97b9 100644 --- a/SCHALE.Common/FlatData/KnockBackExcelTable.cs +++ b/SCHALE.Common/FlatData/KnockBackExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct KnockBackExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct KnockBackExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public KnockBackExcelTableT UnPack() { + var _o = new KnockBackExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(KnockBackExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("KnockBackExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, KnockBackExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.KnockBackExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateKnockBackExcelTable( + builder, + _DataList); + } +} + +public class KnockBackExcelTableT +{ + public List DataList { get; set; } + + public KnockBackExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageExcel.cs b/SCHALE.Common/FlatData/LimitedStageExcel.cs index 35ad211..fd5a698 100644 --- a/SCHALE.Common/FlatData/LimitedStageExcel.cs +++ b/SCHALE.Common/FlatData/LimitedStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageExcel : IFlatbufferObject @@ -212,6 +213,171 @@ public struct LimitedStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageExcelT UnPack() { + var _o = new LimitedStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.StageDifficulty = TableEncryptionService.Convert(this.StageDifficulty, key); + _o.StageNumber = TableEncryptionService.Convert(this.StageNumber, key); + _o.StageDisplay = TableEncryptionService.Convert(this.StageDisplay, key); + _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); + _o.OpenDate = TableEncryptionService.Convert(this.OpenDate, key); + _o.OpenEventPoint = TableEncryptionService.Convert(this.OpenEventPoint, 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.StageEnterEchelonCount = TableEncryptionService.Convert(this.StageEnterEchelonCount, key); + _o.StarConditionTacticRankSCount = TableEncryptionService.Convert(this.StarConditionTacticRankSCount, key); + _o.StarConditionTurnCount = TableEncryptionService.Convert(this.StarConditionTurnCount, key); + _o.EnterScenarioGroupId = new List(); + for (var _j = 0; _j < this.EnterScenarioGroupIdLength; ++_j) {_o.EnterScenarioGroupId.Add(TableEncryptionService.Convert(this.EnterScenarioGroupId(_j), key));} + _o.ClearScenarioGroupId = new List(); + for (var _j = 0; _j < this.ClearScenarioGroupIdLength; ++_j) {_o.ClearScenarioGroupId.Add(TableEncryptionService.Convert(this.ClearScenarioGroupId(_j), key));} + _o.StrategyMap = TableEncryptionService.Convert(this.StrategyMap, key); + _o.StrategyMapBG = TableEncryptionService.Convert(this.StrategyMapBG, key); + _o.StageRewardId = TableEncryptionService.Convert(this.StageRewardId, key); + _o.MaxTurn = TableEncryptionService.Convert(this.MaxTurn, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); + _o.StrategyEnvironment = TableEncryptionService.Convert(this.StrategyEnvironment, key); + _o.GroundID = TableEncryptionService.Convert(this.GroundID, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.InstantClear = TableEncryptionService.Convert(this.InstantClear, key); + _o.BuffContentId = TableEncryptionService.Convert(this.BuffContentId, key); + _o.ChallengeDisplay = TableEncryptionService.Convert(this.ChallengeDisplay, key); + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _StageNumber = _o.StageNumber == null ? default(StringOffset) : builder.CreateString(_o.StageNumber); + var _EnterScenarioGroupId = default(VectorOffset); + if (_o.EnterScenarioGroupId != null) { + var __EnterScenarioGroupId = _o.EnterScenarioGroupId.ToArray(); + _EnterScenarioGroupId = CreateEnterScenarioGroupIdVector(builder, __EnterScenarioGroupId); + } + var _ClearScenarioGroupId = default(VectorOffset); + if (_o.ClearScenarioGroupId != null) { + var __ClearScenarioGroupId = _o.ClearScenarioGroupId.ToArray(); + _ClearScenarioGroupId = CreateClearScenarioGroupIdVector(builder, __ClearScenarioGroupId); + } + var _StrategyMap = _o.StrategyMap == null ? default(StringOffset) : builder.CreateString(_o.StrategyMap); + var _StrategyMapBG = _o.StrategyMapBG == null ? default(StringOffset) : builder.CreateString(_o.StrategyMapBG); + var _BgmId = _o.BgmId == null ? default(StringOffset) : builder.CreateString(_o.BgmId); + return CreateLimitedStageExcel( + builder, + _o.Id, + _Name, + _o.SeasonId, + _o.StageDifficulty, + _StageNumber, + _o.StageDisplay, + _o.PrevStageId, + _o.OpenDate, + _o.OpenEventPoint, + _o.BattleDuration, + _o.StageEnterCostType, + _o.StageEnterCostId, + _o.StageEnterCostAmount, + _o.StageEnterEchelonCount, + _o.StarConditionTacticRankSCount, + _o.StarConditionTurnCount, + _EnterScenarioGroupId, + _ClearScenarioGroupId, + _StrategyMap, + _StrategyMapBG, + _o.StageRewardId, + _o.MaxTurn, + _o.StageTopography, + _o.RecommandLevel, + _BgmId, + _o.StrategyEnvironment, + _o.GroundID, + _o.ContentType, + _o.BGMId, + _o.InstantClear, + _o.BuffContentId, + _o.ChallengeDisplay); + } +} + +public class LimitedStageExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + public long SeasonId { get; set; } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty { get; set; } + public string StageNumber { get; set; } + public int StageDisplay { get; set; } + public long PrevStageId { get; set; } + public long OpenDate { get; set; } + public long OpenEventPoint { 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 int StageEnterEchelonCount { get; set; } + public long StarConditionTacticRankSCount { get; set; } + public long StarConditionTurnCount { get; set; } + public List EnterScenarioGroupId { get; set; } + public List ClearScenarioGroupId { get; set; } + public string StrategyMap { get; set; } + public string StrategyMapBG { get; set; } + public long StageRewardId { get; set; } + public int MaxTurn { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public int RecommandLevel { get; set; } + public string BgmId { get; set; } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get; set; } + public long GroundID { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long BGMId { get; set; } + public bool InstantClear { get; set; } + public long BuffContentId { get; set; } + public bool ChallengeDisplay { get; set; } + + public LimitedStageExcelT() { + this.Id = 0; + this.Name = null; + this.SeasonId = 0; + this.StageDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageNumber = null; + this.StageDisplay = 0; + this.PrevStageId = 0; + this.OpenDate = 0; + this.OpenEventPoint = 0; + this.BattleDuration = 0; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostId = 0; + this.StageEnterCostAmount = 0; + this.StageEnterEchelonCount = 0; + this.StarConditionTacticRankSCount = 0; + this.StarConditionTurnCount = 0; + this.EnterScenarioGroupId = null; + this.ClearScenarioGroupId = null; + this.StrategyMap = null; + this.StrategyMapBG = null; + this.StageRewardId = 0; + this.MaxTurn = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.BgmId = null; + this.StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.GroundID = 0; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.BGMId = 0; + this.InstantClear = false; + this.BuffContentId = 0; + this.ChallengeDisplay = false; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageExcelTable.cs index 912c1c1..b1a91ab 100644 --- a/SCHALE.Common/FlatData/LimitedStageExcelTable.cs +++ b/SCHALE.Common/FlatData/LimitedStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LimitedStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageExcelTableT UnPack() { + var _o = new LimitedStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LimitedStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLimitedStageExcelTable( + builder, + _DataList); + } +} + +public class LimitedStageExcelTableT +{ + public List DataList { get; set; } + + public LimitedStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs index 72fc5df..a879c5f 100644 --- a/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct LimitedStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageRewardExcelT UnPack() { + var _o = new LimitedStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.RewardAmount = TableEncryptionService.Convert(this.RewardAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateLimitedStageRewardExcel( + builder, + _o.GroupId, + _o.RewardTag, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardId, + _o.RewardAmount, + _o.IsDisplayed); + } +} + +public class LimitedStageRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardId { get; set; } + public int RewardAmount { get; set; } + public bool IsDisplayed { get; set; } + + public LimitedStageRewardExcelT() { + this.GroupId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardId = 0; + this.RewardAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs index 748529e..f2c4eb4 100644 --- a/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LimitedStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageRewardExcelTableT UnPack() { + var _o = new LimitedStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LimitedStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLimitedStageRewardExcelTable( + builder, + _DataList); + } +} + +public class LimitedStageRewardExcelTableT +{ + public List DataList { get; set; } + + public LimitedStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs b/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs index 316666c..78f1db5 100644 --- a/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs +++ b/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageSeasonExcel : IFlatbufferObject @@ -66,6 +67,52 @@ public struct LimitedStageSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageSeasonExcelT UnPack() { + var _o = new LimitedStageSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStageSeason"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.TypeACount = TableEncryptionService.Convert(this.TypeACount, key); + _o.TypeBCount = TableEncryptionService.Convert(this.TypeBCount, key); + _o.TypeCCount = TableEncryptionService.Convert(this.TypeCCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + return CreateLimitedStageSeasonExcel( + builder, + _o.Id, + _StartDate, + _EndDate, + _o.TypeACount, + _o.TypeBCount, + _o.TypeCCount); + } +} + +public class LimitedStageSeasonExcelT +{ + public long Id { get; set; } + public string StartDate { get; set; } + public string EndDate { get; set; } + public long TypeACount { get; set; } + public long TypeBCount { get; set; } + public long TypeCCount { get; set; } + + public LimitedStageSeasonExcelT() { + this.Id = 0; + this.StartDate = null; + this.EndDate = null; + this.TypeACount = 0; + this.TypeBCount = 0; + this.TypeCCount = 0; + } } diff --git a/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs index 45cad31..3a4e1d9 100644 --- a/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LimitedStageSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LimitedStageSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LimitedStageSeasonExcelTableT UnPack() { + var _o = new LimitedStageSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LimitedStageSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LimitedStageSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LimitedStageSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LimitedStageSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLimitedStageSeasonExcelTable( + builder, + _DataList); + } +} + +public class LimitedStageSeasonExcelTableT +{ + public List DataList { get; set; } + + public LimitedStageSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LoadingImageExcel.cs b/SCHALE.Common/FlatData/LoadingImageExcel.cs index d677531..370fcf2 100644 --- a/SCHALE.Common/FlatData/LoadingImageExcel.cs +++ b/SCHALE.Common/FlatData/LoadingImageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LoadingImageExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct LoadingImageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LoadingImageExcelT UnPack() { + var _o = new LoadingImageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LoadingImageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LoadingImage"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.ImagePathKr = TableEncryptionService.Convert(this.ImagePathKr, key); + _o.ImagePathJp = TableEncryptionService.Convert(this.ImagePathJp, key); + _o.DisplayWeight = TableEncryptionService.Convert(this.DisplayWeight, key); + } + public static Offset Pack(FlatBufferBuilder builder, LoadingImageExcelT _o) { + if (_o == null) return default(Offset); + var _ImagePathKr = _o.ImagePathKr == null ? default(StringOffset) : builder.CreateString(_o.ImagePathKr); + var _ImagePathJp = _o.ImagePathJp == null ? default(StringOffset) : builder.CreateString(_o.ImagePathJp); + return CreateLoadingImageExcel( + builder, + _o.ID, + _ImagePathKr, + _ImagePathJp, + _o.DisplayWeight); + } +} + +public class LoadingImageExcelT +{ + public long ID { get; set; } + public string ImagePathKr { get; set; } + public string ImagePathJp { get; set; } + public int DisplayWeight { get; set; } + + public LoadingImageExcelT() { + this.ID = 0; + this.ImagePathKr = null; + this.ImagePathJp = null; + this.DisplayWeight = 0; + } } diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs index 0513d15..e148b1f 100644 --- a/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeCharProfileExcel : IFlatbufferObject @@ -404,6 +405,215 @@ public struct LocalizeCharProfileExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeCharProfileExcelT UnPack() { + var _o = new LocalizeCharProfileExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeCharProfileExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeCharProfile"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.StatusMessageKr = TableEncryptionService.Convert(this.StatusMessageKr, key); + _o.StatusMessageJp = TableEncryptionService.Convert(this.StatusMessageJp, key); + _o.FullNameKr = TableEncryptionService.Convert(this.FullNameKr, key); + _o.FullNameJp = TableEncryptionService.Convert(this.FullNameJp, key); + _o.FamilyNameKr = TableEncryptionService.Convert(this.FamilyNameKr, key); + _o.FamilyNameRubyKr = TableEncryptionService.Convert(this.FamilyNameRubyKr, key); + _o.PersonalNameKr = TableEncryptionService.Convert(this.PersonalNameKr, key); + _o.PersonalNameRubyKr = TableEncryptionService.Convert(this.PersonalNameRubyKr, key); + _o.FamilyNameJp = TableEncryptionService.Convert(this.FamilyNameJp, key); + _o.FamilyNameRubyJp = TableEncryptionService.Convert(this.FamilyNameRubyJp, key); + _o.PersonalNameJp = TableEncryptionService.Convert(this.PersonalNameJp, key); + _o.PersonalNameRubyJp = TableEncryptionService.Convert(this.PersonalNameRubyJp, key); + _o.SchoolYearKr = TableEncryptionService.Convert(this.SchoolYearKr, key); + _o.SchoolYearJp = TableEncryptionService.Convert(this.SchoolYearJp, key); + _o.CharacterAgeKr = TableEncryptionService.Convert(this.CharacterAgeKr, key); + _o.CharacterAgeJp = TableEncryptionService.Convert(this.CharacterAgeJp, key); + _o.BirthDay = TableEncryptionService.Convert(this.BirthDay, key); + _o.BirthdayKr = TableEncryptionService.Convert(this.BirthdayKr, key); + _o.BirthdayJp = TableEncryptionService.Convert(this.BirthdayJp, key); + _o.CharHeightKr = TableEncryptionService.Convert(this.CharHeightKr, key); + _o.CharHeightJp = TableEncryptionService.Convert(this.CharHeightJp, key); + _o.DesignerNameKr = TableEncryptionService.Convert(this.DesignerNameKr, key); + _o.DesignerNameJp = TableEncryptionService.Convert(this.DesignerNameJp, key); + _o.IllustratorNameKr = TableEncryptionService.Convert(this.IllustratorNameKr, key); + _o.IllustratorNameJp = TableEncryptionService.Convert(this.IllustratorNameJp, key); + _o.CharacterVoiceKr = TableEncryptionService.Convert(this.CharacterVoiceKr, key); + _o.CharacterVoiceJp = TableEncryptionService.Convert(this.CharacterVoiceJp, key); + _o.HobbyKr = TableEncryptionService.Convert(this.HobbyKr, key); + _o.HobbyJp = TableEncryptionService.Convert(this.HobbyJp, key); + _o.WeaponNameKr = TableEncryptionService.Convert(this.WeaponNameKr, key); + _o.WeaponDescKr = TableEncryptionService.Convert(this.WeaponDescKr, key); + _o.WeaponNameJp = TableEncryptionService.Convert(this.WeaponNameJp, key); + _o.WeaponDescJp = TableEncryptionService.Convert(this.WeaponDescJp, key); + _o.ProfileIntroductionKr = TableEncryptionService.Convert(this.ProfileIntroductionKr, key); + _o.ProfileIntroductionJp = TableEncryptionService.Convert(this.ProfileIntroductionJp, key); + _o.CharacterSSRNewKr = TableEncryptionService.Convert(this.CharacterSSRNewKr, key); + _o.CharacterSSRNewJp = TableEncryptionService.Convert(this.CharacterSSRNewJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeCharProfileExcelT _o) { + if (_o == null) return default(Offset); + var _StatusMessageKr = _o.StatusMessageKr == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageKr); + var _StatusMessageJp = _o.StatusMessageJp == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageJp); + var _FullNameKr = _o.FullNameKr == null ? default(StringOffset) : builder.CreateString(_o.FullNameKr); + var _FullNameJp = _o.FullNameJp == null ? default(StringOffset) : builder.CreateString(_o.FullNameJp); + var _FamilyNameKr = _o.FamilyNameKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameKr); + var _FamilyNameRubyKr = _o.FamilyNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyKr); + var _PersonalNameKr = _o.PersonalNameKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameKr); + var _PersonalNameRubyKr = _o.PersonalNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyKr); + var _FamilyNameJp = _o.FamilyNameJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameJp); + var _FamilyNameRubyJp = _o.FamilyNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyJp); + var _PersonalNameJp = _o.PersonalNameJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameJp); + var _PersonalNameRubyJp = _o.PersonalNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyJp); + var _SchoolYearKr = _o.SchoolYearKr == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearKr); + var _SchoolYearJp = _o.SchoolYearJp == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearJp); + var _CharacterAgeKr = _o.CharacterAgeKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeKr); + var _CharacterAgeJp = _o.CharacterAgeJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeJp); + var _BirthDay = _o.BirthDay == null ? default(StringOffset) : builder.CreateString(_o.BirthDay); + var _BirthdayKr = _o.BirthdayKr == null ? default(StringOffset) : builder.CreateString(_o.BirthdayKr); + var _BirthdayJp = _o.BirthdayJp == null ? default(StringOffset) : builder.CreateString(_o.BirthdayJp); + var _CharHeightKr = _o.CharHeightKr == null ? default(StringOffset) : builder.CreateString(_o.CharHeightKr); + var _CharHeightJp = _o.CharHeightJp == null ? default(StringOffset) : builder.CreateString(_o.CharHeightJp); + var _DesignerNameKr = _o.DesignerNameKr == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameKr); + var _DesignerNameJp = _o.DesignerNameJp == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameJp); + var _IllustratorNameKr = _o.IllustratorNameKr == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameKr); + var _IllustratorNameJp = _o.IllustratorNameJp == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameJp); + var _CharacterVoiceKr = _o.CharacterVoiceKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceKr); + var _CharacterVoiceJp = _o.CharacterVoiceJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceJp); + var _HobbyKr = _o.HobbyKr == null ? default(StringOffset) : builder.CreateString(_o.HobbyKr); + var _HobbyJp = _o.HobbyJp == null ? default(StringOffset) : builder.CreateString(_o.HobbyJp); + var _WeaponNameKr = _o.WeaponNameKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameKr); + var _WeaponDescKr = _o.WeaponDescKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescKr); + var _WeaponNameJp = _o.WeaponNameJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameJp); + var _WeaponDescJp = _o.WeaponDescJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescJp); + var _ProfileIntroductionKr = _o.ProfileIntroductionKr == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionKr); + var _ProfileIntroductionJp = _o.ProfileIntroductionJp == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionJp); + var _CharacterSSRNewKr = _o.CharacterSSRNewKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterSSRNewKr); + var _CharacterSSRNewJp = _o.CharacterSSRNewJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterSSRNewJp); + return CreateLocalizeCharProfileExcel( + builder, + _o.CharacterId, + _StatusMessageKr, + _StatusMessageJp, + _FullNameKr, + _FullNameJp, + _FamilyNameKr, + _FamilyNameRubyKr, + _PersonalNameKr, + _PersonalNameRubyKr, + _FamilyNameJp, + _FamilyNameRubyJp, + _PersonalNameJp, + _PersonalNameRubyJp, + _SchoolYearKr, + _SchoolYearJp, + _CharacterAgeKr, + _CharacterAgeJp, + _BirthDay, + _BirthdayKr, + _BirthdayJp, + _CharHeightKr, + _CharHeightJp, + _DesignerNameKr, + _DesignerNameJp, + _IllustratorNameKr, + _IllustratorNameJp, + _CharacterVoiceKr, + _CharacterVoiceJp, + _HobbyKr, + _HobbyJp, + _WeaponNameKr, + _WeaponDescKr, + _WeaponNameJp, + _WeaponDescJp, + _ProfileIntroductionKr, + _ProfileIntroductionJp, + _CharacterSSRNewKr, + _CharacterSSRNewJp); + } +} + +public class LocalizeCharProfileExcelT +{ + public long CharacterId { get; set; } + public string StatusMessageKr { get; set; } + public string StatusMessageJp { get; set; } + public string FullNameKr { get; set; } + public string FullNameJp { get; set; } + public string FamilyNameKr { get; set; } + public string FamilyNameRubyKr { get; set; } + public string PersonalNameKr { get; set; } + public string PersonalNameRubyKr { get; set; } + public string FamilyNameJp { get; set; } + public string FamilyNameRubyJp { get; set; } + public string PersonalNameJp { get; set; } + public string PersonalNameRubyJp { get; set; } + public string SchoolYearKr { get; set; } + public string SchoolYearJp { get; set; } + public string CharacterAgeKr { get; set; } + public string CharacterAgeJp { get; set; } + public string BirthDay { get; set; } + public string BirthdayKr { get; set; } + public string BirthdayJp { get; set; } + public string CharHeightKr { get; set; } + public string CharHeightJp { get; set; } + public string DesignerNameKr { get; set; } + public string DesignerNameJp { get; set; } + public string IllustratorNameKr { get; set; } + public string IllustratorNameJp { get; set; } + public string CharacterVoiceKr { get; set; } + public string CharacterVoiceJp { get; set; } + public string HobbyKr { get; set; } + public string HobbyJp { get; set; } + public string WeaponNameKr { get; set; } + public string WeaponDescKr { get; set; } + public string WeaponNameJp { get; set; } + public string WeaponDescJp { get; set; } + public string ProfileIntroductionKr { get; set; } + public string ProfileIntroductionJp { get; set; } + public string CharacterSSRNewKr { get; set; } + public string CharacterSSRNewJp { get; set; } + + public LocalizeCharProfileExcelT() { + this.CharacterId = 0; + this.StatusMessageKr = null; + this.StatusMessageJp = null; + this.FullNameKr = null; + this.FullNameJp = null; + this.FamilyNameKr = null; + this.FamilyNameRubyKr = null; + this.PersonalNameKr = null; + this.PersonalNameRubyKr = null; + this.FamilyNameJp = null; + this.FamilyNameRubyJp = null; + this.PersonalNameJp = null; + this.PersonalNameRubyJp = null; + this.SchoolYearKr = null; + this.SchoolYearJp = null; + this.CharacterAgeKr = null; + this.CharacterAgeJp = null; + this.BirthDay = null; + this.BirthdayKr = null; + this.BirthdayJp = null; + this.CharHeightKr = null; + this.CharHeightJp = null; + this.DesignerNameKr = null; + this.DesignerNameJp = null; + this.IllustratorNameKr = null; + this.IllustratorNameJp = null; + this.CharacterVoiceKr = null; + this.CharacterVoiceJp = null; + this.HobbyKr = null; + this.HobbyJp = null; + this.WeaponNameKr = null; + this.WeaponDescKr = null; + this.WeaponNameJp = null; + this.WeaponDescJp = null; + this.ProfileIntroductionKr = null; + this.ProfileIntroductionJp = null; + this.CharacterSSRNewKr = null; + this.CharacterSSRNewJp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs index 66171b2..bb86732 100644 --- a/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeCharProfileExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LocalizeCharProfileExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeCharProfileExcelTableT UnPack() { + var _o = new LocalizeCharProfileExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeCharProfileExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeCharProfileExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeCharProfileExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeCharProfileExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLocalizeCharProfileExcelTable( + builder, + _DataList); + } +} + +public class LocalizeCharProfileExcelTableT +{ + public List DataList { get; set; } + + public LocalizeCharProfileExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs index aa5b42d..3c3014f 100644 --- a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeCodeInBuildExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct LocalizeCodeInBuildExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeCodeInBuildExcelT UnPack() { + var _o = new LocalizeCodeInBuildExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeCodeInBuildExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeCodeInBuild"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Kr = TableEncryptionService.Convert(this.Kr, key); + _o.Jp = TableEncryptionService.Convert(this.Jp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeCodeInBuildExcelT _o) { + if (_o == null) return default(Offset); + var _Kr = _o.Kr == null ? default(StringOffset) : builder.CreateString(_o.Kr); + var _Jp = _o.Jp == null ? default(StringOffset) : builder.CreateString(_o.Jp); + return CreateLocalizeCodeInBuildExcel( + builder, + _o.Key, + _Kr, + _Jp); + } +} + +public class LocalizeCodeInBuildExcelT +{ + public uint Key { get; set; } + public string Kr { get; set; } + public string Jp { get; set; } + + public LocalizeCodeInBuildExcelT() { + this.Key = 0; + this.Kr = null; + this.Jp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs index 5b0b5a6..08a0e74 100644 --- a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeCodeInBuildExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LocalizeCodeInBuildExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeCodeInBuildExcelTableT UnPack() { + var _o = new LocalizeCodeInBuildExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeCodeInBuildExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeCodeInBuildExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeCodeInBuildExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeCodeInBuildExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLocalizeCodeInBuildExcelTable( + builder, + _DataList); + } +} + +public class LocalizeCodeInBuildExcelTableT +{ + public List DataList { get; set; } + + public LocalizeCodeInBuildExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeErrorExcel.cs b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs index be44e2b..2de46bb 100644 --- a/SCHALE.Common/FlatData/LocalizeErrorExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeErrorExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct LocalizeErrorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeErrorExcelT UnPack() { + var _o = new LocalizeErrorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeErrorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeError"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.ErrorLevel = TableEncryptionService.Convert(this.ErrorLevel, key); + _o.Kr = TableEncryptionService.Convert(this.Kr, key); + _o.Jp = TableEncryptionService.Convert(this.Jp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeErrorExcelT _o) { + if (_o == null) return default(Offset); + var _Kr = _o.Kr == null ? default(StringOffset) : builder.CreateString(_o.Kr); + var _Jp = _o.Jp == null ? default(StringOffset) : builder.CreateString(_o.Jp); + return CreateLocalizeErrorExcel( + builder, + _o.Key, + _o.ErrorLevel, + _Kr, + _Jp); + } +} + +public class LocalizeErrorExcelT +{ + public uint Key { get; set; } + public SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel { get; set; } + public string Kr { get; set; } + public string Jp { get; set; } + + public LocalizeErrorExcelT() { + this.Key = 0; + this.ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None; + this.Kr = null; + this.Jp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeEtcExcel.cs b/SCHALE.Common/FlatData/LocalizeEtcExcel.cs index 454fb7d..3171438 100644 --- a/SCHALE.Common/FlatData/LocalizeEtcExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeEtcExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeEtcExcel : IFlatbufferObject @@ -74,6 +75,50 @@ public struct LocalizeEtcExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeEtcExcelT UnPack() { + var _o = new LocalizeEtcExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeEtcExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeEtc"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.NameKr = TableEncryptionService.Convert(this.NameKr, key); + _o.DescriptionKr = TableEncryptionService.Convert(this.DescriptionKr, key); + _o.NameJp = TableEncryptionService.Convert(this.NameJp, key); + _o.DescriptionJp = TableEncryptionService.Convert(this.DescriptionJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeEtcExcelT _o) { + if (_o == null) return default(Offset); + var _NameKr = _o.NameKr == null ? default(StringOffset) : builder.CreateString(_o.NameKr); + var _DescriptionKr = _o.DescriptionKr == null ? default(StringOffset) : builder.CreateString(_o.DescriptionKr); + var _NameJp = _o.NameJp == null ? default(StringOffset) : builder.CreateString(_o.NameJp); + var _DescriptionJp = _o.DescriptionJp == null ? default(StringOffset) : builder.CreateString(_o.DescriptionJp); + return CreateLocalizeEtcExcel( + builder, + _o.Key, + _NameKr, + _DescriptionKr, + _NameJp, + _DescriptionJp); + } +} + +public class LocalizeEtcExcelT +{ + public uint Key { get; set; } + public string NameKr { get; set; } + public string DescriptionKr { get; set; } + public string NameJp { get; set; } + public string DescriptionJp { get; set; } + + public LocalizeEtcExcelT() { + this.Key = 0; + this.NameKr = null; + this.DescriptionKr = null; + this.NameJp = null; + this.DescriptionJp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs b/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs index 28aaba9..0628b04 100644 --- a/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeEtcExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LocalizeEtcExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeEtcExcelTableT UnPack() { + var _o = new LocalizeEtcExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeEtcExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeEtcExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeEtcExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeEtcExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLocalizeEtcExcelTable( + builder, + _DataList); + } +} + +public class LocalizeEtcExcelTableT +{ + public List DataList { get; set; } + + public LocalizeEtcExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeExcel.cs b/SCHALE.Common/FlatData/LocalizeExcel.cs index 4be5559..3230206 100644 --- a/SCHALE.Common/FlatData/LocalizeExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct LocalizeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeExcelT UnPack() { + var _o = new LocalizeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Localize"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Kr = TableEncryptionService.Convert(this.Kr, key); + _o.Jp = TableEncryptionService.Convert(this.Jp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeExcelT _o) { + if (_o == null) return default(Offset); + var _Kr = _o.Kr == null ? default(StringOffset) : builder.CreateString(_o.Kr); + var _Jp = _o.Jp == null ? default(StringOffset) : builder.CreateString(_o.Jp); + return CreateLocalizeExcel( + builder, + _o.Key, + _Kr, + _Jp); + } +} + +public class LocalizeExcelT +{ + public uint Key { get; set; } + public string Kr { get; set; } + public string Jp { get; set; } + + public LocalizeExcelT() { + this.Key = 0; + this.Kr = null; + this.Jp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeFieldExcel.cs b/SCHALE.Common/FlatData/LocalizeFieldExcel.cs index f22d30a..905922d 100644 --- a/SCHALE.Common/FlatData/LocalizeFieldExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeFieldExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeFieldExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct LocalizeFieldExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeFieldExcelT UnPack() { + var _o = new LocalizeFieldExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeFieldExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeField"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.Kr = TableEncryptionService.Convert(this.Kr, key); + _o.Jp = TableEncryptionService.Convert(this.Jp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeFieldExcelT _o) { + if (_o == null) return default(Offset); + var _Kr = _o.Kr == null ? default(StringOffset) : builder.CreateString(_o.Kr); + var _Jp = _o.Jp == null ? default(StringOffset) : builder.CreateString(_o.Jp); + return CreateLocalizeFieldExcel( + builder, + _o.Key, + _Kr, + _Jp); + } +} + +public class LocalizeFieldExcelT +{ + public uint Key { get; set; } + public string Kr { get; set; } + public string Jp { get; set; } + + public LocalizeFieldExcelT() { + this.Key = 0; + this.Kr = null; + this.Jp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs b/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs index 5b78edd..4eba4fa 100644 --- a/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeFieldExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LocalizeFieldExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeFieldExcelTableT UnPack() { + var _o = new LocalizeFieldExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeFieldExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeFieldExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeFieldExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeFieldExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLocalizeFieldExcelTable( + builder, + _DataList); + } +} + +public class LocalizeFieldExcelTableT +{ + public List DataList { get; set; } + + public LocalizeFieldExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs b/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs index 607ecfe..31c7327 100644 --- a/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeGachaShopExcel : IFlatbufferObject @@ -114,6 +115,70 @@ public struct LocalizeGachaShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeGachaShopExcelT UnPack() { + var _o = new LocalizeGachaShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeGachaShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeGachaShop"); + _o.GachaShopId = TableEncryptionService.Convert(this.GachaShopId, key); + _o.TabNameKr = TableEncryptionService.Convert(this.TabNameKr, key); + _o.TabNameJp = TableEncryptionService.Convert(this.TabNameJp, key); + _o.TitleNameKr = TableEncryptionService.Convert(this.TitleNameKr, key); + _o.TitleNameJp = TableEncryptionService.Convert(this.TitleNameJp, key); + _o.SubTitleKr = TableEncryptionService.Convert(this.SubTitleKr, key); + _o.SubTitleJp = TableEncryptionService.Convert(this.SubTitleJp, key); + _o.GachaDescriptionKr = TableEncryptionService.Convert(this.GachaDescriptionKr, key); + _o.GachaDescriptionJp = TableEncryptionService.Convert(this.GachaDescriptionJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeGachaShopExcelT _o) { + if (_o == null) return default(Offset); + var _TabNameKr = _o.TabNameKr == null ? default(StringOffset) : builder.CreateString(_o.TabNameKr); + var _TabNameJp = _o.TabNameJp == null ? default(StringOffset) : builder.CreateString(_o.TabNameJp); + var _TitleNameKr = _o.TitleNameKr == null ? default(StringOffset) : builder.CreateString(_o.TitleNameKr); + var _TitleNameJp = _o.TitleNameJp == null ? default(StringOffset) : builder.CreateString(_o.TitleNameJp); + var _SubTitleKr = _o.SubTitleKr == null ? default(StringOffset) : builder.CreateString(_o.SubTitleKr); + var _SubTitleJp = _o.SubTitleJp == null ? default(StringOffset) : builder.CreateString(_o.SubTitleJp); + var _GachaDescriptionKr = _o.GachaDescriptionKr == null ? default(StringOffset) : builder.CreateString(_o.GachaDescriptionKr); + var _GachaDescriptionJp = _o.GachaDescriptionJp == null ? default(StringOffset) : builder.CreateString(_o.GachaDescriptionJp); + return CreateLocalizeGachaShopExcel( + builder, + _o.GachaShopId, + _TabNameKr, + _TabNameJp, + _TitleNameKr, + _TitleNameJp, + _SubTitleKr, + _SubTitleJp, + _GachaDescriptionKr, + _GachaDescriptionJp); + } +} + +public class LocalizeGachaShopExcelT +{ + public long GachaShopId { get; set; } + public string TabNameKr { get; set; } + public string TabNameJp { get; set; } + public string TitleNameKr { get; set; } + public string TitleNameJp { get; set; } + public string SubTitleKr { get; set; } + public string SubTitleJp { get; set; } + public string GachaDescriptionKr { get; set; } + public string GachaDescriptionJp { get; set; } + + public LocalizeGachaShopExcelT() { + this.GachaShopId = 0; + this.TabNameKr = null; + this.TabNameJp = null; + this.TitleNameKr = null; + this.TitleNameJp = null; + this.SubTitleKr = null; + this.SubTitleJp = null; + this.GachaDescriptionKr = null; + this.GachaDescriptionJp = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs b/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs index e0dbf36..40b0f31 100644 --- a/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeGachaShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LocalizeGachaShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeGachaShopExcelTableT UnPack() { + var _o = new LocalizeGachaShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeGachaShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeGachaShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeGachaShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeGachaShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLocalizeGachaShopExcelTable( + builder, + _DataList); + } +} + +public class LocalizeGachaShopExcelTableT +{ + public List DataList { get; set; } + + public LocalizeGachaShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/LocalizeSkillExcel.cs b/SCHALE.Common/FlatData/LocalizeSkillExcel.cs index b4eb5db..bdaebb3 100644 --- a/SCHALE.Common/FlatData/LocalizeSkillExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeSkillExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LocalizeSkillExcel : IFlatbufferObject @@ -94,6 +95,60 @@ public struct LocalizeSkillExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LocalizeSkillExcelT UnPack() { + var _o = new LocalizeSkillExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LocalizeSkillExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LocalizeSkill"); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.NameKr = TableEncryptionService.Convert(this.NameKr, key); + _o.DescriptionKr = TableEncryptionService.Convert(this.DescriptionKr, key); + _o.SkillInvokeLocalizeKr = TableEncryptionService.Convert(this.SkillInvokeLocalizeKr, key); + _o.NameJp = TableEncryptionService.Convert(this.NameJp, key); + _o.DescriptionJp = TableEncryptionService.Convert(this.DescriptionJp, key); + _o.SkillInvokeLocalizeJp = TableEncryptionService.Convert(this.SkillInvokeLocalizeJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, LocalizeSkillExcelT _o) { + if (_o == null) return default(Offset); + var _NameKr = _o.NameKr == null ? default(StringOffset) : builder.CreateString(_o.NameKr); + var _DescriptionKr = _o.DescriptionKr == null ? default(StringOffset) : builder.CreateString(_o.DescriptionKr); + var _SkillInvokeLocalizeKr = _o.SkillInvokeLocalizeKr == null ? default(StringOffset) : builder.CreateString(_o.SkillInvokeLocalizeKr); + var _NameJp = _o.NameJp == null ? default(StringOffset) : builder.CreateString(_o.NameJp); + var _DescriptionJp = _o.DescriptionJp == null ? default(StringOffset) : builder.CreateString(_o.DescriptionJp); + var _SkillInvokeLocalizeJp = _o.SkillInvokeLocalizeJp == null ? default(StringOffset) : builder.CreateString(_o.SkillInvokeLocalizeJp); + return CreateLocalizeSkillExcel( + builder, + _o.Key, + _NameKr, + _DescriptionKr, + _SkillInvokeLocalizeKr, + _NameJp, + _DescriptionJp, + _SkillInvokeLocalizeJp); + } +} + +public class LocalizeSkillExcelT +{ + public uint Key { get; set; } + public string NameKr { get; set; } + public string DescriptionKr { get; set; } + public string SkillInvokeLocalizeKr { get; set; } + public string NameJp { get; set; } + public string DescriptionJp { get; set; } + public string SkillInvokeLocalizeJp { get; set; } + + public LocalizeSkillExcelT() { + this.Key = 0; + this.NameKr = null; + this.DescriptionKr = null; + this.SkillInvokeLocalizeKr = null; + this.NameJp = null; + this.DescriptionJp = null; + this.SkillInvokeLocalizeJp = null; + } } diff --git a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs index 4d64e41..34f6d27 100644 --- a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs +++ b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LogicEffectCommonVisualExcel : IFlatbufferObject @@ -130,6 +131,90 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LogicEffectCommonVisualExcelT UnPack() { + var _o = new LogicEffectCommonVisualExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LogicEffectCommonVisualExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("LogicEffectCommonVisual"); + _o.StringID = TableEncryptionService.Convert(this.StringID, key); + _o.IconSpriteName = TableEncryptionService.Convert(this.IconSpriteName, key); + _o.IconDispelColor = new List(); + for (var _j = 0; _j < this.IconDispelColorLength; ++_j) {_o.IconDispelColor.Add(TableEncryptionService.Convert(this.IconDispelColor(_j), key));} + _o.ParticleEnterPath = TableEncryptionService.Convert(this.ParticleEnterPath, key); + _o.ParticleEnterSocket = TableEncryptionService.Convert(this.ParticleEnterSocket, key); + _o.ParticleLoopPath = TableEncryptionService.Convert(this.ParticleLoopPath, key); + _o.ParticleLoopSocket = TableEncryptionService.Convert(this.ParticleLoopSocket, key); + _o.ParticleEndPath = TableEncryptionService.Convert(this.ParticleEndPath, key); + _o.ParticleEndSocket = TableEncryptionService.Convert(this.ParticleEndSocket, key); + _o.ParticleApplyPath = TableEncryptionService.Convert(this.ParticleApplyPath, key); + _o.ParticleApplySocket = TableEncryptionService.Convert(this.ParticleApplySocket, key); + _o.ParticleRemovedPath = TableEncryptionService.Convert(this.ParticleRemovedPath, key); + _o.ParticleRemovedSocket = TableEncryptionService.Convert(this.ParticleRemovedSocket, key); + } + public static Offset Pack(FlatBufferBuilder builder, LogicEffectCommonVisualExcelT _o) { + if (_o == null) return default(Offset); + var _IconSpriteName = _o.IconSpriteName == null ? default(StringOffset) : builder.CreateString(_o.IconSpriteName); + var _IconDispelColor = default(VectorOffset); + if (_o.IconDispelColor != null) { + var __IconDispelColor = _o.IconDispelColor.ToArray(); + _IconDispelColor = CreateIconDispelColorVector(builder, __IconDispelColor); + } + var _ParticleEnterPath = _o.ParticleEnterPath == null ? default(StringOffset) : builder.CreateString(_o.ParticleEnterPath); + var _ParticleLoopPath = _o.ParticleLoopPath == null ? default(StringOffset) : builder.CreateString(_o.ParticleLoopPath); + var _ParticleEndPath = _o.ParticleEndPath == null ? default(StringOffset) : builder.CreateString(_o.ParticleEndPath); + var _ParticleApplyPath = _o.ParticleApplyPath == null ? default(StringOffset) : builder.CreateString(_o.ParticleApplyPath); + var _ParticleRemovedPath = _o.ParticleRemovedPath == null ? default(StringOffset) : builder.CreateString(_o.ParticleRemovedPath); + return CreateLogicEffectCommonVisualExcel( + builder, + _o.StringID, + _IconSpriteName, + _IconDispelColor, + _ParticleEnterPath, + _o.ParticleEnterSocket, + _ParticleLoopPath, + _o.ParticleLoopSocket, + _ParticleEndPath, + _o.ParticleEndSocket, + _ParticleApplyPath, + _o.ParticleApplySocket, + _ParticleRemovedPath, + _o.ParticleRemovedSocket); + } +} + +public class LogicEffectCommonVisualExcelT +{ + public uint StringID { get; set; } + public string IconSpriteName { get; set; } + public List IconDispelColor { get; set; } + public string ParticleEnterPath { get; set; } + public SCHALE.Common.FlatData.EffectBone ParticleEnterSocket { get; set; } + public string ParticleLoopPath { get; set; } + public SCHALE.Common.FlatData.EffectBone ParticleLoopSocket { get; set; } + public string ParticleEndPath { get; set; } + public SCHALE.Common.FlatData.EffectBone ParticleEndSocket { get; set; } + public string ParticleApplyPath { get; set; } + public SCHALE.Common.FlatData.EffectBone ParticleApplySocket { get; set; } + public string ParticleRemovedPath { get; set; } + public SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket { get; set; } + + public LogicEffectCommonVisualExcelT() { + this.StringID = 0; + this.IconSpriteName = null; + this.IconDispelColor = null; + this.ParticleEnterPath = null; + this.ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleLoopPath = null; + this.ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleEndPath = null; + this.ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleApplyPath = null; + this.ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleRemovedPath = null; + this.ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None; + } } diff --git a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs index 7c12672..32f9f8f 100644 --- a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs +++ b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct LogicEffectCommonVisualExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct LogicEffectCommonVisualExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public LogicEffectCommonVisualExcelTableT UnPack() { + var _o = new LogicEffectCommonVisualExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(LogicEffectCommonVisualExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("LogicEffectCommonVisualExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, LogicEffectCommonVisualExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LogicEffectCommonVisualExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateLogicEffectCommonVisualExcelTable( + builder, + _DataList); + } +} + +public class LogicEffectCommonVisualExcelTableT +{ + public List DataList { get; set; } + + public LogicEffectCommonVisualExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcel.cs b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs index 9de7fba..9fd4a27 100644 --- a/SCHALE.Common/FlatData/MemoryLobbyExcel.cs +++ b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MemoryLobbyExcel : IFlatbufferObject @@ -104,6 +105,75 @@ public struct MemoryLobbyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MemoryLobbyExcelT UnPack() { + var _o = new MemoryLobbyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MemoryLobbyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MemoryLobby"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.MemoryLobbyCategory = TableEncryptionService.Convert(this.MemoryLobbyCategory, key); + _o.SlotTextureName = TableEncryptionService.Convert(this.SlotTextureName, key); + _o.RewardTextureName = TableEncryptionService.Convert(this.RewardTextureName, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.AudioClipJp = TableEncryptionService.Convert(this.AudioClipJp, key); + _o.AudioClipKr = TableEncryptionService.Convert(this.AudioClipKr, key); + } + public static Offset Pack(FlatBufferBuilder builder, MemoryLobbyExcelT _o) { + if (_o == null) return default(Offset); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _SlotTextureName = _o.SlotTextureName == null ? default(StringOffset) : builder.CreateString(_o.SlotTextureName); + var _RewardTextureName = _o.RewardTextureName == null ? default(StringOffset) : builder.CreateString(_o.RewardTextureName); + var _AudioClipJp = _o.AudioClipJp == null ? default(StringOffset) : builder.CreateString(_o.AudioClipJp); + var _AudioClipKr = _o.AudioClipKr == null ? default(StringOffset) : builder.CreateString(_o.AudioClipKr); + return CreateMemoryLobbyExcel( + builder, + _o.Id, + _o.ProductionStep, + _o.LocalizeEtcId, + _o.CharacterId, + _PrefabName, + _o.MemoryLobbyCategory, + _SlotTextureName, + _RewardTextureName, + _o.BGMId, + _AudioClipJp, + _AudioClipKr); + } +} + +public class MemoryLobbyExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public uint LocalizeEtcId { get; set; } + public long CharacterId { get; set; } + public string PrefabName { get; set; } + public SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory { get; set; } + public string SlotTextureName { get; set; } + public string RewardTextureName { get; set; } + public long BGMId { get; set; } + public string AudioClipJp { get; set; } + public string AudioClipKr { get; set; } + + public MemoryLobbyExcelT() { + this.Id = 0; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.LocalizeEtcId = 0; + this.CharacterId = 0; + this.PrefabName = null; + this.MemoryLobbyCategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None; + this.SlotTextureName = null; + this.RewardTextureName = null; + this.BGMId = 0; + this.AudioClipJp = null; + this.AudioClipKr = null; + } } diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs b/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs index f637043..d555fd9 100644 --- a/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs +++ b/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MemoryLobbyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MemoryLobbyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MemoryLobbyExcelTableT UnPack() { + var _o = new MemoryLobbyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MemoryLobbyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MemoryLobbyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MemoryLobbyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MemoryLobbyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMemoryLobbyExcelTable( + builder, + _DataList); + } +} + +public class MemoryLobbyExcelTableT +{ + public List DataList { get; set; } + + public MemoryLobbyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MessagePopupExcel.cs b/SCHALE.Common/FlatData/MessagePopupExcel.cs index ccce1a9..fb36c98 100644 --- a/SCHALE.Common/FlatData/MessagePopupExcel.cs +++ b/SCHALE.Common/FlatData/MessagePopupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MessagePopupExcel : IFlatbufferObject @@ -136,6 +137,111 @@ public struct MessagePopupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MessagePopupExcelT UnPack() { + var _o = new MessagePopupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MessagePopupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MessagePopup"); + _o.StringId = TableEncryptionService.Convert(this.StringId, key); + _o.MessagePopupLayout = TableEncryptionService.Convert(this.MessagePopupLayout, key); + _o.OrderType = TableEncryptionService.Convert(this.OrderType, key); + _o.Image = TableEncryptionService.Convert(this.Image, key); + _o.TitleText = TableEncryptionService.Convert(this.TitleText, key); + _o.SubTitleText = TableEncryptionService.Convert(this.SubTitleText, key); + _o.MessageText = TableEncryptionService.Convert(this.MessageText, key); + _o.ConditionText = new List(); + for (var _j = 0; _j < this.ConditionTextLength; ++_j) {_o.ConditionText.Add(TableEncryptionService.Convert(this.ConditionText(_j), key));} + _o.DisplayXButton = TableEncryptionService.Convert(this.DisplayXButton, key); + _o.Button = new List(); + for (var _j = 0; _j < this.ButtonLength; ++_j) {_o.Button.Add(TableEncryptionService.Convert(this.Button(_j), key));} + _o.ButtonText = new List(); + for (var _j = 0; _j < this.ButtonTextLength; ++_j) {_o.ButtonText.Add(TableEncryptionService.Convert(this.ButtonText(_j), key));} + _o.ButtonCommand = new List(); + for (var _j = 0; _j < this.ButtonCommandLength; ++_j) {_o.ButtonCommand.Add(TableEncryptionService.Convert(this.ButtonCommand(_j), key));} + _o.ButtonParameter = new List(); + for (var _j = 0; _j < this.ButtonParameterLength; ++_j) {_o.ButtonParameter.Add(TableEncryptionService.Convert(this.ButtonParameter(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MessagePopupExcelT _o) { + if (_o == null) return default(Offset); + var _Image = _o.Image == null ? default(StringOffset) : builder.CreateString(_o.Image); + var _ConditionText = default(VectorOffset); + if (_o.ConditionText != null) { + var __ConditionText = _o.ConditionText.ToArray(); + _ConditionText = CreateConditionTextVector(builder, __ConditionText); + } + var _Button = default(VectorOffset); + if (_o.Button != null) { + var __Button = _o.Button.ToArray(); + _Button = CreateButtonVector(builder, __Button); + } + var _ButtonText = default(VectorOffset); + if (_o.ButtonText != null) { + var __ButtonText = _o.ButtonText.ToArray(); + _ButtonText = CreateButtonTextVector(builder, __ButtonText); + } + var _ButtonCommand = default(VectorOffset); + if (_o.ButtonCommand != null) { + var __ButtonCommand = new StringOffset[_o.ButtonCommand.Count]; + for (var _j = 0; _j < __ButtonCommand.Length; ++_j) { __ButtonCommand[_j] = builder.CreateString(_o.ButtonCommand[_j]); } + _ButtonCommand = CreateButtonCommandVector(builder, __ButtonCommand); + } + var _ButtonParameter = default(VectorOffset); + if (_o.ButtonParameter != null) { + var __ButtonParameter = new StringOffset[_o.ButtonParameter.Count]; + for (var _j = 0; _j < __ButtonParameter.Length; ++_j) { __ButtonParameter[_j] = builder.CreateString(_o.ButtonParameter[_j]); } + _ButtonParameter = CreateButtonParameterVector(builder, __ButtonParameter); + } + return CreateMessagePopupExcel( + builder, + _o.StringId, + _o.MessagePopupLayout, + _o.OrderType, + _Image, + _o.TitleText, + _o.SubTitleText, + _o.MessageText, + _ConditionText, + _o.DisplayXButton, + _Button, + _ButtonText, + _ButtonCommand, + _ButtonParameter); + } +} + +public class MessagePopupExcelT +{ + public uint StringId { get; set; } + public SCHALE.Common.FlatData.MessagePopupLayout MessagePopupLayout { get; set; } + public SCHALE.Common.FlatData.MessagePopupImagePositionType OrderType { get; set; } + public string Image { get; set; } + public uint TitleText { get; set; } + public uint SubTitleText { get; set; } + public uint MessageText { get; set; } + public List ConditionText { get; set; } + public bool DisplayXButton { get; set; } + public List Button { get; set; } + public List ButtonText { get; set; } + public List ButtonCommand { get; set; } + public List ButtonParameter { get; set; } + + public MessagePopupExcelT() { + this.StringId = 0; + this.MessagePopupLayout = SCHALE.Common.FlatData.MessagePopupLayout.TextOnly; + this.OrderType = SCHALE.Common.FlatData.MessagePopupImagePositionType.ImageFirst; + this.Image = null; + this.TitleText = 0; + this.SubTitleText = 0; + this.MessageText = 0; + this.ConditionText = null; + this.DisplayXButton = false; + this.Button = null; + this.ButtonText = null; + this.ButtonCommand = null; + this.ButtonParameter = null; + } } diff --git a/SCHALE.Common/FlatData/MessagePopupExcelTable.cs b/SCHALE.Common/FlatData/MessagePopupExcelTable.cs deleted file mode 100644 index 12a610c..0000000 --- a/SCHALE.Common/FlatData/MessagePopupExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct MessagePopupExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static MessagePopupExcelTable GetRootAsMessagePopupExcelTable(ByteBuffer _bb) { return GetRootAsMessagePopupExcelTable(_bb, new MessagePopupExcelTable()); } - public static MessagePopupExcelTable GetRootAsMessagePopupExcelTable(ByteBuffer _bb, MessagePopupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public MessagePopupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.MessagePopupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MessagePopupExcel?)(new SCHALE.Common.FlatData.MessagePopupExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateMessagePopupExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - MessagePopupExcelTable.AddDataList(builder, DataListOffset); - return MessagePopupExcelTable.EndMessagePopupExcelTable(builder); - } - - public static void StartMessagePopupExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndMessagePopupExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class MessagePopupExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MessagePopupExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs index 6b31c86..582a00d 100644 --- a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameAudioAnimatorExcel : IFlatbufferObject @@ -104,6 +105,85 @@ public struct MiniGameAudioAnimatorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameAudioAnimatorExcelT UnPack() { + var _o = new MiniGameAudioAnimatorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameAudioAnimatorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameAudioAnimator"); + _o.ControllerNameHash = TableEncryptionService.Convert(this.ControllerNameHash, key); + _o.VoiceNamePrefix = TableEncryptionService.Convert(this.VoiceNamePrefix, key); + _o.StateNameHash = TableEncryptionService.Convert(this.StateNameHash, key); + _o.StateName = TableEncryptionService.Convert(this.StateName, key); + _o.IgnoreInterruptDelay = TableEncryptionService.Convert(this.IgnoreInterruptDelay, key); + _o.IgnoreInterruptPlay = TableEncryptionService.Convert(this.IgnoreInterruptPlay, key); + _o.Volume = TableEncryptionService.Convert(this.Volume, key); + _o.Delay = TableEncryptionService.Convert(this.Delay, key); + _o.AudioPriority = TableEncryptionService.Convert(this.AudioPriority, key); + _o.AudioClipPath = new List(); + for (var _j = 0; _j < this.AudioClipPathLength; ++_j) {_o.AudioClipPath.Add(TableEncryptionService.Convert(this.AudioClipPath(_j), key));} + _o.VoiceHash = new List(); + for (var _j = 0; _j < this.VoiceHashLength; ++_j) {_o.VoiceHash.Add(TableEncryptionService.Convert(this.VoiceHash(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameAudioAnimatorExcelT _o) { + if (_o == null) return default(Offset); + var _VoiceNamePrefix = _o.VoiceNamePrefix == null ? default(StringOffset) : builder.CreateString(_o.VoiceNamePrefix); + var _StateName = _o.StateName == null ? default(StringOffset) : builder.CreateString(_o.StateName); + var _AudioClipPath = default(VectorOffset); + if (_o.AudioClipPath != null) { + var __AudioClipPath = new StringOffset[_o.AudioClipPath.Count]; + for (var _j = 0; _j < __AudioClipPath.Length; ++_j) { __AudioClipPath[_j] = builder.CreateString(_o.AudioClipPath[_j]); } + _AudioClipPath = CreateAudioClipPathVector(builder, __AudioClipPath); + } + var _VoiceHash = default(VectorOffset); + if (_o.VoiceHash != null) { + var __VoiceHash = _o.VoiceHash.ToArray(); + _VoiceHash = CreateVoiceHashVector(builder, __VoiceHash); + } + return CreateMiniGameAudioAnimatorExcel( + builder, + _o.ControllerNameHash, + _VoiceNamePrefix, + _o.StateNameHash, + _StateName, + _o.IgnoreInterruptDelay, + _o.IgnoreInterruptPlay, + _o.Volume, + _o.Delay, + _o.AudioPriority, + _AudioClipPath, + _VoiceHash); + } +} + +public class MiniGameAudioAnimatorExcelT +{ + public uint ControllerNameHash { get; set; } + public string VoiceNamePrefix { get; set; } + public uint StateNameHash { get; set; } + public string StateName { get; set; } + public bool IgnoreInterruptDelay { get; set; } + public bool IgnoreInterruptPlay { get; set; } + public float Volume { get; set; } + public float Delay { get; set; } + public int AudioPriority { get; set; } + public List AudioClipPath { get; set; } + public List VoiceHash { get; set; } + + public MiniGameAudioAnimatorExcelT() { + this.ControllerNameHash = 0; + this.VoiceNamePrefix = null; + this.StateNameHash = 0; + this.StateName = null; + this.IgnoreInterruptDelay = false; + this.IgnoreInterruptPlay = false; + this.Volume = 0.0f; + this.Delay = 0.0f; + this.AudioPriority = 0; + this.AudioClipPath = null; + this.VoiceHash = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs index de64632..285d2c5 100644 --- a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameAudioAnimatorExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameAudioAnimatorExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameAudioAnimatorExcelTableT UnPack() { + var _o = new MiniGameAudioAnimatorExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameAudioAnimatorExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameAudioAnimatorExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameAudioAnimatorExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameAudioAnimatorExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameAudioAnimatorExcelTable( + builder, + _DataList); + } +} + +public class MiniGameAudioAnimatorExcelTableT +{ + public List DataList { get; set; } + + public MiniGameAudioAnimatorExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameDreamCollectionScenarioExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamCollectionScenarioExcel.cs new file mode 100644 index 0000000..751dde7 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamCollectionScenarioExcel.cs @@ -0,0 +1,156 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamCollectionScenarioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamCollectionScenarioExcel GetRootAsMiniGameDreamCollectionScenarioExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamCollectionScenarioExcel(_bb, new MiniGameDreamCollectionScenarioExcel()); } + public static MiniGameDreamCollectionScenarioExcel GetRootAsMiniGameDreamCollectionScenarioExcel(ByteBuffer _bb, MiniGameDreamCollectionScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamCollectionScenarioExcel __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 bool IsSkip { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerParameterType Parameter(int j) { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerParameterType)0; } + public int ParameterLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParameterBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetParameterBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.DreamMakerParameterType[] GetParameterArray() { int o = __p.__offset(10); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.DreamMakerParameterType[] a = new SCHALE.Common.FlatData.DreamMakerParameterType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(p + i * 4); } return a; } + public long ParameterAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParameterAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParameterAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetParameterAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetParameterAmountArray() { return __p.__vector_as_array(12); } + public long ScenarioGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameDreamCollectionScenarioExcel(FlatBufferBuilder builder, + long Id = 0, + bool IsSkip = false, + long EventContentId = 0, + VectorOffset ParameterOffset = default(VectorOffset), + VectorOffset ParameterAmountOffset = default(VectorOffset), + long ScenarioGroupId = 0) { + builder.StartTable(6); + MiniGameDreamCollectionScenarioExcel.AddScenarioGroupId(builder, ScenarioGroupId); + MiniGameDreamCollectionScenarioExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamCollectionScenarioExcel.AddId(builder, Id); + MiniGameDreamCollectionScenarioExcel.AddParameterAmount(builder, ParameterAmountOffset); + MiniGameDreamCollectionScenarioExcel.AddParameter(builder, ParameterOffset); + MiniGameDreamCollectionScenarioExcel.AddIsSkip(builder, IsSkip); + return MiniGameDreamCollectionScenarioExcel.EndMiniGameDreamCollectionScenarioExcel(builder); + } + + public static void StartMiniGameDreamCollectionScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddIsSkip(FlatBufferBuilder builder, bool isSkip) { builder.AddBool(1, isSkip, false); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } + public static void AddParameter(FlatBufferBuilder builder, VectorOffset parameterOffset) { builder.AddOffset(3, parameterOffset.Value, 0); } + public static VectorOffset CreateParameterVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParameterType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateParameterVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParameterType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParameterAmount(FlatBufferBuilder builder, VectorOffset parameterAmountOffset) { builder.AddOffset(4, parameterAmountOffset.Value, 0); } + public static VectorOffset CreateParameterAmountVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateParameterAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParameterAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParameterAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParameterAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, long scenarioGroupId) { builder.AddLong(5, scenarioGroupId, 0); } + public static Offset EndMiniGameDreamCollectionScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamCollectionScenarioExcelT UnPack() { + var _o = new MiniGameDreamCollectionScenarioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamCollectionScenarioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamCollectionScenario"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.IsSkip = TableEncryptionService.Convert(this.IsSkip, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.Parameter = new List(); + for (var _j = 0; _j < this.ParameterLength; ++_j) {_o.Parameter.Add(TableEncryptionService.Convert(this.Parameter(_j), key));} + _o.ParameterAmount = new List(); + for (var _j = 0; _j < this.ParameterAmountLength; ++_j) {_o.ParameterAmount.Add(TableEncryptionService.Convert(this.ParameterAmount(_j), key));} + _o.ScenarioGroupId = TableEncryptionService.Convert(this.ScenarioGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamCollectionScenarioExcelT _o) { + if (_o == null) return default(Offset); + var _Parameter = default(VectorOffset); + if (_o.Parameter != null) { + var __Parameter = _o.Parameter.ToArray(); + _Parameter = CreateParameterVector(builder, __Parameter); + } + var _ParameterAmount = default(VectorOffset); + if (_o.ParameterAmount != null) { + var __ParameterAmount = _o.ParameterAmount.ToArray(); + _ParameterAmount = CreateParameterAmountVector(builder, __ParameterAmount); + } + return CreateMiniGameDreamCollectionScenarioExcel( + builder, + _o.Id, + _o.IsSkip, + _o.EventContentId, + _Parameter, + _ParameterAmount, + _o.ScenarioGroupId); + } +} + +public class MiniGameDreamCollectionScenarioExcelT +{ + public long Id { get; set; } + public bool IsSkip { get; set; } + public long EventContentId { get; set; } + public List Parameter { get; set; } + public List ParameterAmount { get; set; } + public long ScenarioGroupId { get; set; } + + public MiniGameDreamCollectionScenarioExcelT() { + this.Id = 0; + this.IsSkip = false; + this.EventContentId = 0; + this.Parameter = null; + this.ParameterAmount = null; + this.ScenarioGroupId = 0; + } +} + + +static public class MiniGameDreamCollectionScenarioExcelVerify +{ + 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 /*IsSkip*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*Parameter*/, 4 /*SCHALE.Common.FlatData.DreamMakerParameterType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ParameterAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*ScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamDailyPointExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamDailyPointExcel.cs new file mode 100644 index 0000000..9cb179f --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamDailyPointExcel.cs @@ -0,0 +1,120 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamDailyPointExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamDailyPointExcel GetRootAsMiniGameDreamDailyPointExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamDailyPointExcel(_bb, new MiniGameDreamDailyPointExcel()); } + public static MiniGameDreamDailyPointExcel GetRootAsMiniGameDreamDailyPointExcel(ByteBuffer _bb, MiniGameDreamDailyPointExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamDailyPointExcel __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; } } + public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TotalParameterMin { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TotalParameterMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DailyPointCoefficient { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DailyPointCorrectionValue { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameDreamDailyPointExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long EventContentId = 0, + long TotalParameterMin = 0, + long TotalParameterMax = 0, + long DailyPointCoefficient = 0, + long DailyPointCorrectionValue = 0) { + builder.StartTable(6); + MiniGameDreamDailyPointExcel.AddDailyPointCorrectionValue(builder, DailyPointCorrectionValue); + MiniGameDreamDailyPointExcel.AddDailyPointCoefficient(builder, DailyPointCoefficient); + MiniGameDreamDailyPointExcel.AddTotalParameterMax(builder, TotalParameterMax); + MiniGameDreamDailyPointExcel.AddTotalParameterMin(builder, TotalParameterMin); + MiniGameDreamDailyPointExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamDailyPointExcel.AddUniqueId(builder, UniqueId); + return MiniGameDreamDailyPointExcel.EndMiniGameDreamDailyPointExcel(builder); + } + + public static void StartMiniGameDreamDailyPointExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddTotalParameterMin(FlatBufferBuilder builder, long totalParameterMin) { builder.AddLong(2, totalParameterMin, 0); } + public static void AddTotalParameterMax(FlatBufferBuilder builder, long totalParameterMax) { builder.AddLong(3, totalParameterMax, 0); } + public static void AddDailyPointCoefficient(FlatBufferBuilder builder, long dailyPointCoefficient) { builder.AddLong(4, dailyPointCoefficient, 0); } + public static void AddDailyPointCorrectionValue(FlatBufferBuilder builder, long dailyPointCorrectionValue) { builder.AddLong(5, dailyPointCorrectionValue, 0); } + public static Offset EndMiniGameDreamDailyPointExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamDailyPointExcelT UnPack() { + var _o = new MiniGameDreamDailyPointExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamDailyPointExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamDailyPoint"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.TotalParameterMin = TableEncryptionService.Convert(this.TotalParameterMin, key); + _o.TotalParameterMax = TableEncryptionService.Convert(this.TotalParameterMax, key); + _o.DailyPointCoefficient = TableEncryptionService.Convert(this.DailyPointCoefficient, key); + _o.DailyPointCorrectionValue = TableEncryptionService.Convert(this.DailyPointCorrectionValue, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamDailyPointExcelT _o) { + if (_o == null) return default(Offset); + return CreateMiniGameDreamDailyPointExcel( + builder, + _o.UniqueId, + _o.EventContentId, + _o.TotalParameterMin, + _o.TotalParameterMax, + _o.DailyPointCoefficient, + _o.DailyPointCorrectionValue); + } +} + +public class MiniGameDreamDailyPointExcelT +{ + public long UniqueId { get; set; } + public long EventContentId { get; set; } + public long TotalParameterMin { get; set; } + public long TotalParameterMax { get; set; } + public long DailyPointCoefficient { get; set; } + public long DailyPointCorrectionValue { get; set; } + + public MiniGameDreamDailyPointExcelT() { + this.UniqueId = 0; + this.EventContentId = 0; + this.TotalParameterMin = 0; + this.TotalParameterMax = 0; + this.DailyPointCoefficient = 0; + this.DailyPointCorrectionValue = 0; + } +} + + +static public class MiniGameDreamDailyPointExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*TotalParameterMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*TotalParameterMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*DailyPointCoefficient*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*DailyPointCorrectionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs new file mode 100644 index 0000000..17c2a92 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs @@ -0,0 +1,165 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamEndingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamEndingExcel GetRootAsMiniGameDreamEndingExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamEndingExcel(_bb, new MiniGameDreamEndingExcel()); } + public static MiniGameDreamEndingExcel GetRootAsMiniGameDreamEndingExcel(ByteBuffer _bb, MiniGameDreamEndingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamEndingExcel __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 EndingId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None; } } + public int Order { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long ScenarioGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerEndingCondition EndingCondition(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingCondition)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerEndingCondition)0; } + public int EndingConditionLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEndingConditionBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetEndingConditionBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.DreamMakerEndingCondition[] GetEndingConditionArray() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.DreamMakerEndingCondition[] a = new SCHALE.Common.FlatData.DreamMakerEndingCondition[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.DreamMakerEndingCondition)__p.bb.GetInt(p + i * 4); } return a; } + public long EndingConditionValue(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EndingConditionValueLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEndingConditionValueBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetEndingConditionValueBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetEndingConditionValueArray() { return __p.__vector_as_array(16); } + + public static Offset CreateMiniGameDreamEndingExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long EndingId = 0, + SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType = SCHALE.Common.FlatData.DreamMakerEndingType.None, + int Order = 0, + long ScenarioGroupId = 0, + VectorOffset EndingConditionOffset = default(VectorOffset), + VectorOffset EndingConditionValueOffset = default(VectorOffset)) { + builder.StartTable(7); + MiniGameDreamEndingExcel.AddScenarioGroupId(builder, ScenarioGroupId); + MiniGameDreamEndingExcel.AddEndingId(builder, EndingId); + MiniGameDreamEndingExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamEndingExcel.AddEndingConditionValue(builder, EndingConditionValueOffset); + MiniGameDreamEndingExcel.AddEndingCondition(builder, EndingConditionOffset); + MiniGameDreamEndingExcel.AddOrder(builder, Order); + MiniGameDreamEndingExcel.AddDreamMakerEndingType(builder, DreamMakerEndingType); + return MiniGameDreamEndingExcel.EndMiniGameDreamEndingExcel(builder); + } + + public static void StartMiniGameDreamEndingExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEndingId(FlatBufferBuilder builder, long endingId) { builder.AddLong(1, endingId, 0); } + public static void AddDreamMakerEndingType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerEndingType dreamMakerEndingType) { builder.AddInt(2, (int)dreamMakerEndingType, 0); } + public static void AddOrder(FlatBufferBuilder builder, int order) { builder.AddInt(3, order, 0); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, long scenarioGroupId) { builder.AddLong(4, scenarioGroupId, 0); } + public static void AddEndingCondition(FlatBufferBuilder builder, VectorOffset endingConditionOffset) { builder.AddOffset(5, endingConditionOffset.Value, 0); } + public static VectorOffset CreateEndingConditionVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerEndingCondition[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerEndingCondition[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEndingConditionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEndingConditionValue(FlatBufferBuilder builder, VectorOffset endingConditionValueOffset) { builder.AddOffset(6, endingConditionValueOffset.Value, 0); } + public static VectorOffset CreateEndingConditionValueVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndingConditionValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEndingConditionValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndMiniGameDreamEndingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamEndingExcelT UnPack() { + var _o = new MiniGameDreamEndingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamEndingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamEnding"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EndingId = TableEncryptionService.Convert(this.EndingId, key); + _o.DreamMakerEndingType = TableEncryptionService.Convert(this.DreamMakerEndingType, key); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.ScenarioGroupId = TableEncryptionService.Convert(this.ScenarioGroupId, key); + _o.EndingCondition = new List(); + for (var _j = 0; _j < this.EndingConditionLength; ++_j) {_o.EndingCondition.Add(TableEncryptionService.Convert(this.EndingCondition(_j), key));} + _o.EndingConditionValue = new List(); + for (var _j = 0; _j < this.EndingConditionValueLength; ++_j) {_o.EndingConditionValue.Add(TableEncryptionService.Convert(this.EndingConditionValue(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamEndingExcelT _o) { + if (_o == null) return default(Offset); + var _EndingCondition = default(VectorOffset); + if (_o.EndingCondition != null) { + var __EndingCondition = _o.EndingCondition.ToArray(); + _EndingCondition = CreateEndingConditionVector(builder, __EndingCondition); + } + var _EndingConditionValue = default(VectorOffset); + if (_o.EndingConditionValue != null) { + var __EndingConditionValue = _o.EndingConditionValue.ToArray(); + _EndingConditionValue = CreateEndingConditionValueVector(builder, __EndingConditionValue); + } + return CreateMiniGameDreamEndingExcel( + builder, + _o.EventContentId, + _o.EndingId, + _o.DreamMakerEndingType, + _o.Order, + _o.ScenarioGroupId, + _EndingCondition, + _EndingConditionValue); + } +} + +public class MiniGameDreamEndingExcelT +{ + public long EventContentId { get; set; } + public long EndingId { get; set; } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType { get; set; } + public int Order { get; set; } + public long ScenarioGroupId { get; set; } + public List EndingCondition { get; set; } + public List EndingConditionValue { get; set; } + + public MiniGameDreamEndingExcelT() { + this.EventContentId = 0; + this.EndingId = 0; + this.DreamMakerEndingType = SCHALE.Common.FlatData.DreamMakerEndingType.None; + this.Order = 0; + this.ScenarioGroupId = 0; + this.EndingCondition = null; + this.EndingConditionValue = null; + } +} + + +static public class MiniGameDreamEndingExcelVerify +{ + 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 /*EndingId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DreamMakerEndingType*/, 4 /*SCHALE.Common.FlatData.DreamMakerEndingType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Order*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*EndingCondition*/, 4 /*SCHALE.Common.FlatData.DreamMakerEndingCondition*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*EndingConditionValue*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs new file mode 100644 index 0000000..ba9937a --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs @@ -0,0 +1,192 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamEndingRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamEndingRewardExcel GetRootAsMiniGameDreamEndingRewardExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamEndingRewardExcel(_bb, new MiniGameDreamEndingRewardExcel()); } + public static MiniGameDreamEndingRewardExcel GetRootAsMiniGameDreamEndingRewardExcel(ByteBuffer _bb, MiniGameDreamEndingRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamEndingRewardExcel __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 EndingId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingRewardType.None; } } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int RewardParcelTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ParcelType[] a = new SCHALE.Common.FlatData.ParcelType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(p + i * 4); } return a; } + public long RewardParcelId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(16); } + public long RewardParcelAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(18); } + + public static Offset CreateMiniGameDreamEndingRewardExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long EndingId = 0, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None, + SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType = SCHALE.Common.FlatData.DreamMakerEndingType.None, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(8); + MiniGameDreamEndingRewardExcel.AddEndingId(builder, EndingId); + MiniGameDreamEndingRewardExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamEndingRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + MiniGameDreamEndingRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + MiniGameDreamEndingRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + MiniGameDreamEndingRewardExcel.AddDreamMakerEndingType(builder, DreamMakerEndingType); + MiniGameDreamEndingRewardExcel.AddDreamMakerEndingRewardType(builder, DreamMakerEndingRewardType); + MiniGameDreamEndingRewardExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return MiniGameDreamEndingRewardExcel.EndMiniGameDreamEndingRewardExcel(builder); + } + + public static void StartMiniGameDreamEndingRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEndingId(FlatBufferBuilder builder, long endingId) { builder.AddLong(1, endingId, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddDreamMakerEndingRewardType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerEndingRewardType dreamMakerEndingRewardType) { builder.AddInt(3, (int)dreamMakerEndingRewardType, 0); } + public static void AddDreamMakerEndingType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerEndingType dreamMakerEndingType) { builder.AddInt(4, (int)dreamMakerEndingType, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(5, rewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateRewardParcelTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParcelId(FlatBufferBuilder builder, VectorOffset rewardParcelIdOffset) { builder.AddOffset(6, rewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateRewardParcelIdVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, VectorOffset rewardParcelAmountOffset) { builder.AddOffset(7, rewardParcelAmountOffset.Value, 0); } + public static VectorOffset CreateRewardParcelAmountVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndMiniGameDreamEndingRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamEndingRewardExcelT UnPack() { + var _o = new MiniGameDreamEndingRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamEndingRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamEndingReward"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EndingId = TableEncryptionService.Convert(this.EndingId, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.DreamMakerEndingRewardType = TableEncryptionService.Convert(this.DreamMakerEndingRewardType, key); + _o.DreamMakerEndingType = TableEncryptionService.Convert(this.DreamMakerEndingType, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamEndingRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateMiniGameDreamEndingRewardExcel( + builder, + _o.EventContentId, + _o.EndingId, + _o.LocalizeEtcId, + _o.DreamMakerEndingRewardType, + _o.DreamMakerEndingType, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class MiniGameDreamEndingRewardExcelT +{ + public long EventContentId { get; set; } + public long EndingId { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType { get; set; } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public MiniGameDreamEndingRewardExcelT() { + this.EventContentId = 0; + this.EndingId = 0; + this.LocalizeEtcId = 0; + this.DreamMakerEndingRewardType = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None; + this.DreamMakerEndingType = SCHALE.Common.FlatData.DreamMakerEndingType.None; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } +} + + +static public class MiniGameDreamEndingRewardExcelVerify +{ + 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 /*EndingId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DreamMakerEndingRewardType*/, 4 /*SCHALE.Common.FlatData.DreamMakerEndingRewardType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*DreamMakerEndingType*/, 4 /*SCHALE.Common.FlatData.DreamMakerEndingType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs new file mode 100644 index 0000000..3cfd105 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs @@ -0,0 +1,183 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamInfoExcel GetRootAsMiniGameDreamInfoExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamInfoExcel(_bb, new MiniGameDreamInfoExcel()); } + public static MiniGameDreamInfoExcel GetRootAsMiniGameDreamInfoExcel(ByteBuffer _bb, MiniGameDreamInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamInfoExcel __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 SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerMultiplierCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None; } } + public long DreamMakerMultiplierConditionValue { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerMultiplierMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerDays { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerActionPoint { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType DreamMakerParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long DreamMakerParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long DreamMakerDailyPointId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerParameterTransfer { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScheduleCostGoodsId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LobbyBGMChangeScenarioId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameDreamInfoExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None, + long DreamMakerMultiplierConditionValue = 0, + long DreamMakerMultiplierMax = 0, + long DreamMakerDays = 0, + long DreamMakerActionPoint = 0, + SCHALE.Common.FlatData.ParcelType DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None, + long DreamMakerParcelId = 0, + SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None, + long DreamMakerDailyPointId = 0, + long DreamMakerParameterTransfer = 0, + long ScheduleCostGoodsId = 0, + long LobbyBGMChangeScenarioId = 0) { + builder.StartTable(13); + MiniGameDreamInfoExcel.AddLobbyBGMChangeScenarioId(builder, LobbyBGMChangeScenarioId); + MiniGameDreamInfoExcel.AddScheduleCostGoodsId(builder, ScheduleCostGoodsId); + MiniGameDreamInfoExcel.AddDreamMakerParameterTransfer(builder, DreamMakerParameterTransfer); + MiniGameDreamInfoExcel.AddDreamMakerDailyPointId(builder, DreamMakerDailyPointId); + MiniGameDreamInfoExcel.AddDreamMakerParcelId(builder, DreamMakerParcelId); + MiniGameDreamInfoExcel.AddDreamMakerActionPoint(builder, DreamMakerActionPoint); + MiniGameDreamInfoExcel.AddDreamMakerDays(builder, DreamMakerDays); + MiniGameDreamInfoExcel.AddDreamMakerMultiplierMax(builder, DreamMakerMultiplierMax); + MiniGameDreamInfoExcel.AddDreamMakerMultiplierConditionValue(builder, DreamMakerMultiplierConditionValue); + MiniGameDreamInfoExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamInfoExcel.AddDreamMakerDailyPointParcelType(builder, DreamMakerDailyPointParcelType); + MiniGameDreamInfoExcel.AddDreamMakerParcelType(builder, DreamMakerParcelType); + MiniGameDreamInfoExcel.AddDreamMakerMultiplierCondition(builder, DreamMakerMultiplierCondition); + return MiniGameDreamInfoExcel.EndMiniGameDreamInfoExcel(builder); + } + + public static void StartMiniGameDreamInfoExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddDreamMakerMultiplierCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerMultiplierCondition dreamMakerMultiplierCondition) { builder.AddInt(1, (int)dreamMakerMultiplierCondition, 0); } + public static void AddDreamMakerMultiplierConditionValue(FlatBufferBuilder builder, long dreamMakerMultiplierConditionValue) { builder.AddLong(2, dreamMakerMultiplierConditionValue, 0); } + public static void AddDreamMakerMultiplierMax(FlatBufferBuilder builder, long dreamMakerMultiplierMax) { builder.AddLong(3, dreamMakerMultiplierMax, 0); } + public static void AddDreamMakerDays(FlatBufferBuilder builder, long dreamMakerDays) { builder.AddLong(4, dreamMakerDays, 0); } + public static void AddDreamMakerActionPoint(FlatBufferBuilder builder, long dreamMakerActionPoint) { builder.AddLong(5, dreamMakerActionPoint, 0); } + public static void AddDreamMakerParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType dreamMakerParcelType) { builder.AddInt(6, (int)dreamMakerParcelType, 0); } + public static void AddDreamMakerParcelId(FlatBufferBuilder builder, long dreamMakerParcelId) { builder.AddLong(7, dreamMakerParcelId, 0); } + public static void AddDreamMakerDailyPointParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType dreamMakerDailyPointParcelType) { builder.AddInt(8, (int)dreamMakerDailyPointParcelType, 0); } + public static void AddDreamMakerDailyPointId(FlatBufferBuilder builder, long dreamMakerDailyPointId) { builder.AddLong(9, dreamMakerDailyPointId, 0); } + public static void AddDreamMakerParameterTransfer(FlatBufferBuilder builder, long dreamMakerParameterTransfer) { builder.AddLong(10, dreamMakerParameterTransfer, 0); } + public static void AddScheduleCostGoodsId(FlatBufferBuilder builder, long scheduleCostGoodsId) { builder.AddLong(11, scheduleCostGoodsId, 0); } + public static void AddLobbyBGMChangeScenarioId(FlatBufferBuilder builder, long lobbyBGMChangeScenarioId) { builder.AddLong(12, lobbyBGMChangeScenarioId, 0); } + public static Offset EndMiniGameDreamInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamInfoExcelT UnPack() { + var _o = new MiniGameDreamInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamInfo"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DreamMakerMultiplierCondition = TableEncryptionService.Convert(this.DreamMakerMultiplierCondition, key); + _o.DreamMakerMultiplierConditionValue = TableEncryptionService.Convert(this.DreamMakerMultiplierConditionValue, key); + _o.DreamMakerMultiplierMax = TableEncryptionService.Convert(this.DreamMakerMultiplierMax, key); + _o.DreamMakerDays = TableEncryptionService.Convert(this.DreamMakerDays, key); + _o.DreamMakerActionPoint = TableEncryptionService.Convert(this.DreamMakerActionPoint, key); + _o.DreamMakerParcelType = TableEncryptionService.Convert(this.DreamMakerParcelType, key); + _o.DreamMakerParcelId = TableEncryptionService.Convert(this.DreamMakerParcelId, key); + _o.DreamMakerDailyPointParcelType = TableEncryptionService.Convert(this.DreamMakerDailyPointParcelType, key); + _o.DreamMakerDailyPointId = TableEncryptionService.Convert(this.DreamMakerDailyPointId, key); + _o.DreamMakerParameterTransfer = TableEncryptionService.Convert(this.DreamMakerParameterTransfer, key); + _o.ScheduleCostGoodsId = TableEncryptionService.Convert(this.ScheduleCostGoodsId, key); + _o.LobbyBGMChangeScenarioId = TableEncryptionService.Convert(this.LobbyBGMChangeScenarioId, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamInfoExcelT _o) { + if (_o == null) return default(Offset); + return CreateMiniGameDreamInfoExcel( + builder, + _o.EventContentId, + _o.DreamMakerMultiplierCondition, + _o.DreamMakerMultiplierConditionValue, + _o.DreamMakerMultiplierMax, + _o.DreamMakerDays, + _o.DreamMakerActionPoint, + _o.DreamMakerParcelType, + _o.DreamMakerParcelId, + _o.DreamMakerDailyPointParcelType, + _o.DreamMakerDailyPointId, + _o.DreamMakerParameterTransfer, + _o.ScheduleCostGoodsId, + _o.LobbyBGMChangeScenarioId); + } +} + +public class MiniGameDreamInfoExcelT +{ + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition { get; set; } + public long DreamMakerMultiplierConditionValue { get; set; } + public long DreamMakerMultiplierMax { get; set; } + public long DreamMakerDays { get; set; } + public long DreamMakerActionPoint { get; set; } + public SCHALE.Common.FlatData.ParcelType DreamMakerParcelType { get; set; } + public long DreamMakerParcelId { get; set; } + public SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType { get; set; } + public long DreamMakerDailyPointId { get; set; } + public long DreamMakerParameterTransfer { get; set; } + public long ScheduleCostGoodsId { get; set; } + public long LobbyBGMChangeScenarioId { get; set; } + + public MiniGameDreamInfoExcelT() { + this.EventContentId = 0; + this.DreamMakerMultiplierCondition = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None; + this.DreamMakerMultiplierConditionValue = 0; + this.DreamMakerMultiplierMax = 0; + this.DreamMakerDays = 0; + this.DreamMakerActionPoint = 0; + this.DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DreamMakerParcelId = 0; + this.DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DreamMakerDailyPointId = 0; + this.DreamMakerParameterTransfer = 0; + this.ScheduleCostGoodsId = 0; + this.LobbyBGMChangeScenarioId = 0; + } +} + + +static public class MiniGameDreamInfoExcelVerify +{ + 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 /*DreamMakerMultiplierCondition*/, 4 /*SCHALE.Common.FlatData.DreamMakerMultiplierCondition*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*DreamMakerMultiplierConditionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*DreamMakerMultiplierMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*DreamMakerDays*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*DreamMakerActionPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*DreamMakerParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*DreamMakerParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*DreamMakerDailyPointParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*DreamMakerDailyPointId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*DreamMakerParameterTransfer*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ScheduleCostGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*LobbyBGMChangeScenarioId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs new file mode 100644 index 0000000..2e6d898 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs @@ -0,0 +1,154 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamParameterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamParameterExcel GetRootAsMiniGameDreamParameterExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamParameterExcel(_bb, new MiniGameDreamParameterExcel()); } + public static MiniGameDreamParameterExcel GetRootAsMiniGameDreamParameterExcel(ByteBuffer _bb, MiniGameDreamParameterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamParameterExcel __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 EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerParameterType ParameterType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerParameterType.None; } } + public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(12); } + public long ParameterBase { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParameterBaseMax { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParameterMin { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParameterMax { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameDreamParameterExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.DreamMakerParameterType ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset), + long ParameterBase = 0, + long ParameterBaseMax = 0, + long ParameterMin = 0, + long ParameterMax = 0) { + builder.StartTable(9); + MiniGameDreamParameterExcel.AddParameterMax(builder, ParameterMax); + MiniGameDreamParameterExcel.AddParameterMin(builder, ParameterMin); + MiniGameDreamParameterExcel.AddParameterBaseMax(builder, ParameterBaseMax); + MiniGameDreamParameterExcel.AddParameterBase(builder, ParameterBase); + MiniGameDreamParameterExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamParameterExcel.AddId(builder, Id); + MiniGameDreamParameterExcel.AddIconPath(builder, IconPathOffset); + MiniGameDreamParameterExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + MiniGameDreamParameterExcel.AddParameterType(builder, ParameterType); + return MiniGameDreamParameterExcel.EndMiniGameDreamParameterExcel(builder); + } + + public static void StartMiniGameDreamParameterExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddParameterType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParameterType parameterType) { builder.AddInt(2, (int)parameterType, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(3, localizeEtcId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(4, iconPathOffset.Value, 0); } + public static void AddParameterBase(FlatBufferBuilder builder, long parameterBase) { builder.AddLong(5, parameterBase, 0); } + public static void AddParameterBaseMax(FlatBufferBuilder builder, long parameterBaseMax) { builder.AddLong(6, parameterBaseMax, 0); } + public static void AddParameterMin(FlatBufferBuilder builder, long parameterMin) { builder.AddLong(7, parameterMin, 0); } + public static void AddParameterMax(FlatBufferBuilder builder, long parameterMax) { builder.AddLong(8, parameterMax, 0); } + public static Offset EndMiniGameDreamParameterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamParameterExcelT UnPack() { + var _o = new MiniGameDreamParameterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamParameterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamParameter"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ParameterType = TableEncryptionService.Convert(this.ParameterType, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.ParameterBase = TableEncryptionService.Convert(this.ParameterBase, key); + _o.ParameterBaseMax = TableEncryptionService.Convert(this.ParameterBaseMax, key); + _o.ParameterMin = TableEncryptionService.Convert(this.ParameterMin, key); + _o.ParameterMax = TableEncryptionService.Convert(this.ParameterMax, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamParameterExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateMiniGameDreamParameterExcel( + builder, + _o.Id, + _o.EventContentId, + _o.ParameterType, + _o.LocalizeEtcId, + _IconPath, + _o.ParameterBase, + _o.ParameterBaseMax, + _o.ParameterMin, + _o.ParameterMax); + } +} + +public class MiniGameDreamParameterExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.DreamMakerParameterType ParameterType { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + public long ParameterBase { get; set; } + public long ParameterBaseMax { get; set; } + public long ParameterMin { get; set; } + public long ParameterMax { get; set; } + + public MiniGameDreamParameterExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None; + this.LocalizeEtcId = 0; + this.IconPath = null; + this.ParameterBase = 0; + this.ParameterBaseMax = 0; + this.ParameterMin = 0; + this.ParameterMax = 0; + } +} + + +static public class MiniGameDreamParameterExcelVerify +{ + 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 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ParameterType*/, 4 /*SCHALE.Common.FlatData.DreamMakerParameterType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*IconPath*/, false) + && verifier.VerifyField(tablePos, 14 /*ParameterBase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*ParameterBaseMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*ParameterMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ParameterMax*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamReplayScenarioExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamReplayScenarioExcel.cs new file mode 100644 index 0000000..414f3c3 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamReplayScenarioExcel.cs @@ -0,0 +1,136 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +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 GetReplayScenarioResourceBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetReplayScenarioResourceBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetReplayScenarioResourceArray() { return __p.__vector_as_array(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 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 EndMiniGameDreamReplayScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(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 Pack(FlatBufferBuilder builder, MiniGameDreamReplayScenarioExcelT _o) { + if (_o == null) return default(Offset); + 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); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamScheduleExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamScheduleExcel.cs new file mode 100644 index 0000000..17aa564 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamScheduleExcel.cs @@ -0,0 +1,166 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamScheduleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamScheduleExcel GetRootAsMiniGameDreamScheduleExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamScheduleExcel(_bb, new MiniGameDreamScheduleExcel()); } + public static MiniGameDreamScheduleExcel GetRootAsMiniGameDreamScheduleExcel(ByteBuffer _bb, MiniGameDreamScheduleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamScheduleExcel __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 DreamMakerScheduleGroupId { 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; } } + public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(12); } + public string LoadingResource01 { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLoadingResource01Bytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetLoadingResource01Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetLoadingResource01Array() { return __p.__vector_as_array(14); } + public string LoadingResource02 { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLoadingResource02Bytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetLoadingResource02Bytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetLoadingResource02Array() { return __p.__vector_as_array(16); } + public string AnimationName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetAnimationNameArray() { return __p.__vector_as_array(18); } + + public static Offset CreateMiniGameDreamScheduleExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long DreamMakerScheduleGroupId = 0, + long DisplayOrder = 0, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset), + StringOffset LoadingResource01Offset = default(StringOffset), + StringOffset LoadingResource02Offset = default(StringOffset), + StringOffset AnimationNameOffset = default(StringOffset)) { + builder.StartTable(8); + MiniGameDreamScheduleExcel.AddDisplayOrder(builder, DisplayOrder); + MiniGameDreamScheduleExcel.AddDreamMakerScheduleGroupId(builder, DreamMakerScheduleGroupId); + MiniGameDreamScheduleExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamScheduleExcel.AddAnimationName(builder, AnimationNameOffset); + MiniGameDreamScheduleExcel.AddLoadingResource02(builder, LoadingResource02Offset); + MiniGameDreamScheduleExcel.AddLoadingResource01(builder, LoadingResource01Offset); + MiniGameDreamScheduleExcel.AddIconPath(builder, IconPathOffset); + MiniGameDreamScheduleExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return MiniGameDreamScheduleExcel.EndMiniGameDreamScheduleExcel(builder); + } + + public static void StartMiniGameDreamScheduleExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddDreamMakerScheduleGroupId(FlatBufferBuilder builder, long dreamMakerScheduleGroupId) { builder.AddLong(1, dreamMakerScheduleGroupId, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(3, localizeEtcId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(4, iconPathOffset.Value, 0); } + public static void AddLoadingResource01(FlatBufferBuilder builder, StringOffset loadingResource01Offset) { builder.AddOffset(5, loadingResource01Offset.Value, 0); } + public static void AddLoadingResource02(FlatBufferBuilder builder, StringOffset loadingResource02Offset) { builder.AddOffset(6, loadingResource02Offset.Value, 0); } + public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(7, animationNameOffset.Value, 0); } + public static Offset EndMiniGameDreamScheduleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamScheduleExcelT UnPack() { + var _o = new MiniGameDreamScheduleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamScheduleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamSchedule"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DreamMakerScheduleGroupId = TableEncryptionService.Convert(this.DreamMakerScheduleGroupId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.LoadingResource01 = TableEncryptionService.Convert(this.LoadingResource01, key); + _o.LoadingResource02 = TableEncryptionService.Convert(this.LoadingResource02, key); + _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamScheduleExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _LoadingResource01 = _o.LoadingResource01 == null ? default(StringOffset) : builder.CreateString(_o.LoadingResource01); + var _LoadingResource02 = _o.LoadingResource02 == null ? default(StringOffset) : builder.CreateString(_o.LoadingResource02); + var _AnimationName = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName); + return CreateMiniGameDreamScheduleExcel( + builder, + _o.EventContentId, + _o.DreamMakerScheduleGroupId, + _o.DisplayOrder, + _o.LocalizeEtcId, + _IconPath, + _LoadingResource01, + _LoadingResource02, + _AnimationName); + } +} + +public class MiniGameDreamScheduleExcelT +{ + public long EventContentId { get; set; } + public long DreamMakerScheduleGroupId { get; set; } + public long DisplayOrder { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + public string LoadingResource01 { get; set; } + public string LoadingResource02 { get; set; } + public string AnimationName { get; set; } + + public MiniGameDreamScheduleExcelT() { + this.EventContentId = 0; + this.DreamMakerScheduleGroupId = 0; + this.DisplayOrder = 0; + this.LocalizeEtcId = 0; + this.IconPath = null; + this.LoadingResource01 = null; + this.LoadingResource02 = null; + this.AnimationName = null; + } +} + + +static public class MiniGameDreamScheduleExcelVerify +{ + 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 /*DreamMakerScheduleGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*IconPath*/, false) + && verifier.VerifyString(tablePos, 14 /*LoadingResource01*/, false) + && verifier.VerifyString(tablePos, 16 /*LoadingResource02*/, false) + && verifier.VerifyString(tablePos, 18 /*AnimationName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs new file mode 100644 index 0000000..cb79a09 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs @@ -0,0 +1,219 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamScheduleResultExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamScheduleResultExcel GetRootAsMiniGameDreamScheduleResultExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamScheduleResultExcel(_bb, new MiniGameDreamScheduleResultExcel()); } + public static MiniGameDreamScheduleResultExcel GetRootAsMiniGameDreamScheduleResultExcel(ByteBuffer _bb, MiniGameDreamScheduleResultExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamScheduleResultExcel __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 EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerResult)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerResult.None; } } + public long DreamMakerScheduleGroup { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Prob { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.DreamMakerParameterType RewardParameter(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerParameterType)0; } + public int RewardParameterLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParameterBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetRewardParameterBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.DreamMakerParameterType[] GetRewardParameterArray() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.DreamMakerParameterType[] a = new SCHALE.Common.FlatData.DreamMakerParameterType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.DreamMakerParamOperationType RewardParameterOperationType(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParamOperationType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerParamOperationType)0; } + public int RewardParameterOperationTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParameterOperationTypeBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetRewardParameterOperationTypeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public SCHALE.Common.FlatData.DreamMakerParamOperationType[] GetRewardParameterOperationTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.DreamMakerParamOperationType[] a = new SCHALE.Common.FlatData.DreamMakerParamOperationType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.DreamMakerParamOperationType)__p.bb.GetInt(p + i * 4); } return a; } + public long RewardParameterAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParameterAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParameterAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetRewardParameterAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetRewardParameterAmountArray() { return __p.__vector_as_array(18); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardParcelId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameDreamScheduleResultExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult = SCHALE.Common.FlatData.DreamMakerResult.None, + long DreamMakerScheduleGroup = 0, + int Prob = 0, + VectorOffset RewardParameterOffset = default(VectorOffset), + VectorOffset RewardParameterOperationTypeOffset = default(VectorOffset), + VectorOffset RewardParameterAmountOffset = default(VectorOffset), + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0) { + builder.StartTable(11); + MiniGameDreamScheduleResultExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + MiniGameDreamScheduleResultExcel.AddRewardParcelId(builder, RewardParcelId); + MiniGameDreamScheduleResultExcel.AddDreamMakerScheduleGroup(builder, DreamMakerScheduleGroup); + MiniGameDreamScheduleResultExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamScheduleResultExcel.AddId(builder, Id); + MiniGameDreamScheduleResultExcel.AddRewardParcelType(builder, RewardParcelType); + MiniGameDreamScheduleResultExcel.AddRewardParameterAmount(builder, RewardParameterAmountOffset); + MiniGameDreamScheduleResultExcel.AddRewardParameterOperationType(builder, RewardParameterOperationTypeOffset); + MiniGameDreamScheduleResultExcel.AddRewardParameter(builder, RewardParameterOffset); + MiniGameDreamScheduleResultExcel.AddProb(builder, Prob); + MiniGameDreamScheduleResultExcel.AddDreamMakerResult(builder, DreamMakerResult); + return MiniGameDreamScheduleResultExcel.EndMiniGameDreamScheduleResultExcel(builder); + } + + public static void StartMiniGameDreamScheduleResultExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddDreamMakerResult(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerResult dreamMakerResult) { builder.AddInt(2, (int)dreamMakerResult, 0); } + public static void AddDreamMakerScheduleGroup(FlatBufferBuilder builder, long dreamMakerScheduleGroup) { builder.AddLong(3, dreamMakerScheduleGroup, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(4, prob, 0); } + public static void AddRewardParameter(FlatBufferBuilder builder, VectorOffset rewardParameterOffset) { builder.AddOffset(5, rewardParameterOffset.Value, 0); } + public static VectorOffset CreateRewardParameterVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParameterType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParameterType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParameterOperationType(FlatBufferBuilder builder, VectorOffset rewardParameterOperationTypeOffset) { builder.AddOffset(6, rewardParameterOperationTypeOffset.Value, 0); } + public static VectorOffset CreateRewardParameterOperationTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParamOperationType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterOperationTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerParamOperationType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterOperationTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterOperationTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParameterOperationTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParameterAmount(FlatBufferBuilder builder, VectorOffset rewardParameterAmountOffset) { builder.AddOffset(7, rewardParameterAmountOffset.Value, 0); } + public static VectorOffset CreateRewardParameterAmountVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParameterAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParameterAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(8, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(9, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(10, rewardParcelAmount, 0); } + public static Offset EndMiniGameDreamScheduleResultExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamScheduleResultExcelT UnPack() { + var _o = new MiniGameDreamScheduleResultExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamScheduleResultExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamScheduleResult"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DreamMakerResult = TableEncryptionService.Convert(this.DreamMakerResult, key); + _o.DreamMakerScheduleGroup = TableEncryptionService.Convert(this.DreamMakerScheduleGroup, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.RewardParameter = new List(); + for (var _j = 0; _j < this.RewardParameterLength; ++_j) {_o.RewardParameter.Add(TableEncryptionService.Convert(this.RewardParameter(_j), key));} + _o.RewardParameterOperationType = new List(); + for (var _j = 0; _j < this.RewardParameterOperationTypeLength; ++_j) {_o.RewardParameterOperationType.Add(TableEncryptionService.Convert(this.RewardParameterOperationType(_j), key));} + _o.RewardParameterAmount = new List(); + for (var _j = 0; _j < this.RewardParameterAmountLength; ++_j) {_o.RewardParameterAmount.Add(TableEncryptionService.Convert(this.RewardParameterAmount(_j), key));} + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamScheduleResultExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParameter = default(VectorOffset); + if (_o.RewardParameter != null) { + var __RewardParameter = _o.RewardParameter.ToArray(); + _RewardParameter = CreateRewardParameterVector(builder, __RewardParameter); + } + var _RewardParameterOperationType = default(VectorOffset); + if (_o.RewardParameterOperationType != null) { + var __RewardParameterOperationType = _o.RewardParameterOperationType.ToArray(); + _RewardParameterOperationType = CreateRewardParameterOperationTypeVector(builder, __RewardParameterOperationType); + } + var _RewardParameterAmount = default(VectorOffset); + if (_o.RewardParameterAmount != null) { + var __RewardParameterAmount = _o.RewardParameterAmount.ToArray(); + _RewardParameterAmount = CreateRewardParameterAmountVector(builder, __RewardParameterAmount); + } + return CreateMiniGameDreamScheduleResultExcel( + builder, + _o.Id, + _o.EventContentId, + _o.DreamMakerResult, + _o.DreamMakerScheduleGroup, + _o.Prob, + _RewardParameter, + _RewardParameterOperationType, + _RewardParameterAmount, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount); + } +} + +public class MiniGameDreamScheduleResultExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult { get; set; } + public long DreamMakerScheduleGroup { get; set; } + public int Prob { get; set; } + public List RewardParameter { get; set; } + public List RewardParameterOperationType { get; set; } + public List RewardParameterAmount { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + + public MiniGameDreamScheduleResultExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.DreamMakerResult = SCHALE.Common.FlatData.DreamMakerResult.None; + this.DreamMakerScheduleGroup = 0; + this.Prob = 0; + this.RewardParameter = null; + this.RewardParameterOperationType = null; + this.RewardParameterAmount = null; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + } +} + + +static public class MiniGameDreamScheduleResultExcelVerify +{ + 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 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DreamMakerResult*/, 4 /*SCHALE.Common.FlatData.DreamMakerResult*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DreamMakerScheduleGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParameter*/, 4 /*SCHALE.Common.FlatData.DreamMakerParameterType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParameterOperationType*/, 4 /*SCHALE.Common.FlatData.DreamMakerParamOperationType*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParameterAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 20 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameDreamTimelineExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamTimelineExcel.cs new file mode 100644 index 0000000..658affe --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameDreamTimelineExcel.cs @@ -0,0 +1,161 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MiniGameDreamTimelineExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameDreamTimelineExcel GetRootAsMiniGameDreamTimelineExcel(ByteBuffer _bb) { return GetRootAsMiniGameDreamTimelineExcel(_bb, new MiniGameDreamTimelineExcel()); } + public static MiniGameDreamTimelineExcel GetRootAsMiniGameDreamTimelineExcel(ByteBuffer _bb, MiniGameDreamTimelineExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameDreamTimelineExcel __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 EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerDays { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DreamMakerActionPoint { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnterScenarioGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Bgm { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ArtLevelPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetArtLevelPathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetArtLevelPathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetArtLevelPathArray() { return __p.__vector_as_array(18); } + public string DesignLevelPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDesignLevelPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetDesignLevelPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetDesignLevelPathArray() { return __p.__vector_as_array(20); } + + public static Offset CreateMiniGameDreamTimelineExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long GroupId = 0, + long DreamMakerDays = 0, + long DreamMakerActionPoint = 0, + long EnterScenarioGroupId = 0, + long Bgm = 0, + StringOffset ArtLevelPathOffset = default(StringOffset), + StringOffset DesignLevelPathOffset = default(StringOffset)) { + builder.StartTable(9); + MiniGameDreamTimelineExcel.AddBgm(builder, Bgm); + MiniGameDreamTimelineExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupId); + MiniGameDreamTimelineExcel.AddDreamMakerActionPoint(builder, DreamMakerActionPoint); + MiniGameDreamTimelineExcel.AddDreamMakerDays(builder, DreamMakerDays); + MiniGameDreamTimelineExcel.AddGroupId(builder, GroupId); + MiniGameDreamTimelineExcel.AddEventContentId(builder, EventContentId); + MiniGameDreamTimelineExcel.AddId(builder, Id); + MiniGameDreamTimelineExcel.AddDesignLevelPath(builder, DesignLevelPathOffset); + MiniGameDreamTimelineExcel.AddArtLevelPath(builder, ArtLevelPathOffset); + return MiniGameDreamTimelineExcel.EndMiniGameDreamTimelineExcel(builder); + } + + public static void StartMiniGameDreamTimelineExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(2, groupId, 0); } + public static void AddDreamMakerDays(FlatBufferBuilder builder, long dreamMakerDays) { builder.AddLong(3, dreamMakerDays, 0); } + public static void AddDreamMakerActionPoint(FlatBufferBuilder builder, long dreamMakerActionPoint) { builder.AddLong(4, dreamMakerActionPoint, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, long enterScenarioGroupId) { builder.AddLong(5, enterScenarioGroupId, 0); } + public static void AddBgm(FlatBufferBuilder builder, long bgm) { builder.AddLong(6, bgm, 0); } + public static void AddArtLevelPath(FlatBufferBuilder builder, StringOffset artLevelPathOffset) { builder.AddOffset(7, artLevelPathOffset.Value, 0); } + public static void AddDesignLevelPath(FlatBufferBuilder builder, StringOffset designLevelPathOffset) { builder.AddOffset(8, designLevelPathOffset.Value, 0); } + public static Offset EndMiniGameDreamTimelineExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MiniGameDreamTimelineExcelT UnPack() { + var _o = new MiniGameDreamTimelineExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameDreamTimelineExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameDreamTimeline"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.DreamMakerDays = TableEncryptionService.Convert(this.DreamMakerDays, key); + _o.DreamMakerActionPoint = TableEncryptionService.Convert(this.DreamMakerActionPoint, key); + _o.EnterScenarioGroupId = TableEncryptionService.Convert(this.EnterScenarioGroupId, key); + _o.Bgm = TableEncryptionService.Convert(this.Bgm, key); + _o.ArtLevelPath = TableEncryptionService.Convert(this.ArtLevelPath, key); + _o.DesignLevelPath = TableEncryptionService.Convert(this.DesignLevelPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameDreamTimelineExcelT _o) { + if (_o == null) return default(Offset); + var _ArtLevelPath = _o.ArtLevelPath == null ? default(StringOffset) : builder.CreateString(_o.ArtLevelPath); + var _DesignLevelPath = _o.DesignLevelPath == null ? default(StringOffset) : builder.CreateString(_o.DesignLevelPath); + return CreateMiniGameDreamTimelineExcel( + builder, + _o.Id, + _o.EventContentId, + _o.GroupId, + _o.DreamMakerDays, + _o.DreamMakerActionPoint, + _o.EnterScenarioGroupId, + _o.Bgm, + _ArtLevelPath, + _DesignLevelPath); + } +} + +public class MiniGameDreamTimelineExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long GroupId { get; set; } + public long DreamMakerDays { get; set; } + public long DreamMakerActionPoint { get; set; } + public long EnterScenarioGroupId { get; set; } + public long Bgm { get; set; } + public string ArtLevelPath { get; set; } + public string DesignLevelPath { get; set; } + + public MiniGameDreamTimelineExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.GroupId = 0; + this.DreamMakerDays = 0; + this.DreamMakerActionPoint = 0; + this.EnterScenarioGroupId = 0; + this.Bgm = 0; + this.ArtLevelPath = null; + this.DesignLevelPath = null; + } +} + + +static public class MiniGameDreamTimelineExcelVerify +{ + 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 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*DreamMakerDays*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*DreamMakerActionPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*EnterScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*Bgm*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*ArtLevelPath*/, false) + && verifier.VerifyString(tablePos, 20 /*DesignLevelPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameMissionExcel.cs b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs index ae29379..96b6430 100644 --- a/SCHALE.Common/FlatData/MiniGameMissionExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameMissionExcel : IFlatbufferObject @@ -30,13 +31,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject #endif public byte[] GetGroupNameArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } - public string Description { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } -#if ENABLE_SPAN_T - public Span GetDescriptionBytes() { return __p.__vector_as_span(14, 1); } -#else - public ArraySegment? GetDescriptionBytes() { return __p.__vector_as_arraysegment(14); } -#endif - public byte[] GetDescriptionArray() { return __p.__vector_as_array(14); } + public uint Description { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -117,7 +112,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject long GroupId = 0, StringOffset GroupNameOffset = default(StringOffset), SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, - StringOffset DescriptionOffset = default(StringOffset), + uint Description = 0, SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), @@ -156,7 +151,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject MiniGameMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); MiniGameMissionExcel.AddToastDisplayType(builder, ToastDisplayType); MiniGameMissionExcel.AddResetType(builder, ResetType); - MiniGameMissionExcel.AddDescription(builder, DescriptionOffset); + MiniGameMissionExcel.AddDescription(builder, Description); MiniGameMissionExcel.AddCategory(builder, Category); MiniGameMissionExcel.AddGroupName(builder, GroupNameOffset); MiniGameMissionExcel.AddIsCompleteExtensionTime(builder, IsCompleteExtensionTime); @@ -170,7 +165,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(2, groupId, 0); } public static void AddGroupName(FlatBufferBuilder builder, StringOffset groupNameOffset) { builder.AddOffset(3, groupNameOffset.Value, 0); } public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCategory category) { builder.AddInt(4, (int)category, 0); } - public static void AddDescription(FlatBufferBuilder builder, StringOffset descriptionOffset) { builder.AddOffset(5, descriptionOffset.Value, 0); } + public static void AddDescription(FlatBufferBuilder builder, uint description) { builder.AddUint(5, description, 0); } public static void AddResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionResetType resetType) { builder.AddInt(6, (int)resetType, 0); } public static void AddToastDisplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionToastDisplayConditionType toastDisplayType) { builder.AddInt(7, (int)toastDisplayType, 0); } public static void AddToastImagePath(FlatBufferBuilder builder, StringOffset toastImagePathOffset) { builder.AddOffset(8, toastImagePathOffset.Value, 0); } @@ -228,6 +223,168 @@ public struct MiniGameMissionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameMissionExcelT UnPack() { + var _o = new MiniGameMissionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameMissionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameMission"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.GroupName = TableEncryptionService.Convert(this.GroupName, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.Description = TableEncryptionService.Convert(this.Description, key); + _o.ResetType = TableEncryptionService.Convert(this.ResetType, key); + _o.ToastDisplayType = TableEncryptionService.Convert(this.ToastDisplayType, key); + _o.ToastImagePath = TableEncryptionService.Convert(this.ToastImagePath, key); + _o.ViewFlag = TableEncryptionService.Convert(this.ViewFlag, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.PreMissionId = new List(); + for (var _j = 0; _j < this.PreMissionIdLength; ++_j) {_o.PreMissionId.Add(TableEncryptionService.Convert(this.PreMissionId(_j), key));} + _o.AccountType = TableEncryptionService.Convert(this.AccountType, key); + _o.AccountLevel = TableEncryptionService.Convert(this.AccountLevel, key); + _o.ShortcutUI = new List(); + for (var _j = 0; _j < this.ShortcutUILength; ++_j) {_o.ShortcutUI.Add(TableEncryptionService.Convert(this.ShortcutUI(_j), key));} + _o.CompleteConditionType = TableEncryptionService.Convert(this.CompleteConditionType, key); + _o.IsCompleteExtensionTime = TableEncryptionService.Convert(this.IsCompleteExtensionTime, key); + _o.CompleteConditionCount = TableEncryptionService.Convert(this.CompleteConditionCount, key); + _o.CompleteConditionParameter = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterLength; ++_j) {_o.CompleteConditionParameter.Add(TableEncryptionService.Convert(this.CompleteConditionParameter(_j), key));} + _o.CompleteConditionParameterTag = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterTagLength; ++_j) {_o.CompleteConditionParameterTag.Add(TableEncryptionService.Convert(this.CompleteConditionParameterTag(_j), key));} + _o.RewardIcon = TableEncryptionService.Convert(this.RewardIcon, key); + _o.MissionRewardParcelType = new List(); + for (var _j = 0; _j < this.MissionRewardParcelTypeLength; ++_j) {_o.MissionRewardParcelType.Add(TableEncryptionService.Convert(this.MissionRewardParcelType(_j), key));} + _o.MissionRewardParcelId = new List(); + for (var _j = 0; _j < this.MissionRewardParcelIdLength; ++_j) {_o.MissionRewardParcelId.Add(TableEncryptionService.Convert(this.MissionRewardParcelId(_j), key));} + _o.MissionRewardAmount = new List(); + for (var _j = 0; _j < this.MissionRewardAmountLength; ++_j) {_o.MissionRewardAmount.Add(TableEncryptionService.Convert(this.MissionRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameMissionExcelT _o) { + if (_o == null) return default(Offset); + var _GroupName = _o.GroupName == null ? default(StringOffset) : builder.CreateString(_o.GroupName); + var _ToastImagePath = _o.ToastImagePath == null ? default(StringOffset) : builder.CreateString(_o.ToastImagePath); + var _PreMissionId = default(VectorOffset); + if (_o.PreMissionId != null) { + var __PreMissionId = _o.PreMissionId.ToArray(); + _PreMissionId = CreatePreMissionIdVector(builder, __PreMissionId); + } + var _ShortcutUI = default(VectorOffset); + if (_o.ShortcutUI != null) { + var __ShortcutUI = new StringOffset[_o.ShortcutUI.Count]; + for (var _j = 0; _j < __ShortcutUI.Length; ++_j) { __ShortcutUI[_j] = builder.CreateString(_o.ShortcutUI[_j]); } + _ShortcutUI = CreateShortcutUIVector(builder, __ShortcutUI); + } + var _CompleteConditionParameter = default(VectorOffset); + if (_o.CompleteConditionParameter != null) { + var __CompleteConditionParameter = _o.CompleteConditionParameter.ToArray(); + _CompleteConditionParameter = CreateCompleteConditionParameterVector(builder, __CompleteConditionParameter); + } + var _CompleteConditionParameterTag = default(VectorOffset); + if (_o.CompleteConditionParameterTag != null) { + var __CompleteConditionParameterTag = _o.CompleteConditionParameterTag.ToArray(); + _CompleteConditionParameterTag = CreateCompleteConditionParameterTagVector(builder, __CompleteConditionParameterTag); + } + var _RewardIcon = _o.RewardIcon == null ? default(StringOffset) : builder.CreateString(_o.RewardIcon); + var _MissionRewardParcelType = default(VectorOffset); + if (_o.MissionRewardParcelType != null) { + var __MissionRewardParcelType = _o.MissionRewardParcelType.ToArray(); + _MissionRewardParcelType = CreateMissionRewardParcelTypeVector(builder, __MissionRewardParcelType); + } + var _MissionRewardParcelId = default(VectorOffset); + if (_o.MissionRewardParcelId != null) { + var __MissionRewardParcelId = _o.MissionRewardParcelId.ToArray(); + _MissionRewardParcelId = CreateMissionRewardParcelIdVector(builder, __MissionRewardParcelId); + } + var _MissionRewardAmount = default(VectorOffset); + if (_o.MissionRewardAmount != null) { + var __MissionRewardAmount = _o.MissionRewardAmount.ToArray(); + _MissionRewardAmount = CreateMissionRewardAmountVector(builder, __MissionRewardAmount); + } + return CreateMiniGameMissionExcel( + builder, + _o.Id, + _o.EventContentId, + _o.GroupId, + _GroupName, + _o.Category, + _o.Description, + _o.ResetType, + _o.ToastDisplayType, + _ToastImagePath, + _o.ViewFlag, + _o.DisplayOrder, + _PreMissionId, + _o.AccountType, + _o.AccountLevel, + _ShortcutUI, + _o.CompleteConditionType, + _o.IsCompleteExtensionTime, + _o.CompleteConditionCount, + _CompleteConditionParameter, + _CompleteConditionParameterTag, + _RewardIcon, + _MissionRewardParcelType, + _MissionRewardParcelId, + _MissionRewardAmount); + } +} + +public class MiniGameMissionExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public long GroupId { get; set; } + public string GroupName { get; set; } + public SCHALE.Common.FlatData.MissionCategory Category { get; set; } + public uint Description { get; set; } + public SCHALE.Common.FlatData.MissionResetType ResetType { get; set; } + public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get; set; } + public string ToastImagePath { get; set; } + public bool ViewFlag { get; set; } + public long DisplayOrder { get; set; } + public List PreMissionId { get; set; } + public SCHALE.Common.FlatData.AccountState AccountType { get; set; } + public long AccountLevel { get; set; } + public List ShortcutUI { get; set; } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get; set; } + public bool IsCompleteExtensionTime { get; set; } + public long CompleteConditionCount { get; set; } + public List CompleteConditionParameter { get; set; } + public List CompleteConditionParameterTag { get; set; } + public string RewardIcon { get; set; } + public List MissionRewardParcelType { get; set; } + public List MissionRewardParcelId { get; set; } + public List MissionRewardAmount { get; set; } + + public MiniGameMissionExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.GroupId = 0; + this.GroupName = null; + this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; + this.Description = 0; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; + this.ToastImagePath = null; + this.ViewFlag = false; + this.DisplayOrder = 0; + this.PreMissionId = null; + this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; + this.AccountLevel = 0; + this.ShortcutUI = null; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.IsCompleteExtensionTime = false; + this.CompleteConditionCount = 0; + this.CompleteConditionParameter = null; + this.CompleteConditionParameterTag = null; + this.RewardIcon = null; + this.MissionRewardParcelType = null; + this.MissionRewardParcelId = null; + this.MissionRewardAmount = null; + } } @@ -241,7 +398,7 @@ static public class MiniGameMissionExcelVerify && verifier.VerifyField(tablePos, 8 /*GroupId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 10 /*GroupName*/, false) && verifier.VerifyField(tablePos, 12 /*Category*/, 4 /*SCHALE.Common.FlatData.MissionCategory*/, 4, false) - && verifier.VerifyString(tablePos, 14 /*Description*/, false) + && verifier.VerifyField(tablePos, 14 /*Description*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 16 /*ResetType*/, 4 /*SCHALE.Common.FlatData.MissionResetType*/, 4, false) && verifier.VerifyField(tablePos, 18 /*ToastDisplayType*/, 4 /*SCHALE.Common.FlatData.MissionToastDisplayConditionType*/, 4, false) && verifier.VerifyString(tablePos, 20 /*ToastImagePath*/, false) diff --git a/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs b/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs index 2af8f19..7e8beb9 100644 --- a/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameMissionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameMissionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameMissionExcelTableT UnPack() { + var _o = new MiniGameMissionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameMissionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameMissionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameMissionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameMissionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameMissionExcelTable( + builder, + _DataList); + } +} + +public class MiniGameMissionExcelTableT +{ + public List DataList { get; set; } + + public MiniGameMissionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs b/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs index 86744e0..00c9fc8 100644 --- a/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs +++ b/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGamePlayGuideExcel : IFlatbufferObject @@ -72,6 +73,53 @@ public struct MiniGamePlayGuideExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGamePlayGuideExcelT UnPack() { + var _o = new MiniGamePlayGuideExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGamePlayGuideExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGamePlayGuide"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.GuideTitle = TableEncryptionService.Convert(this.GuideTitle, key); + _o.GuideImagePath = TableEncryptionService.Convert(this.GuideImagePath, key); + _o.GuideText = TableEncryptionService.Convert(this.GuideText, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGamePlayGuideExcelT _o) { + if (_o == null) return default(Offset); + var _GuideTitle = _o.GuideTitle == null ? default(StringOffset) : builder.CreateString(_o.GuideTitle); + var _GuideImagePath = _o.GuideImagePath == null ? default(StringOffset) : builder.CreateString(_o.GuideImagePath); + var _GuideText = _o.GuideText == null ? default(StringOffset) : builder.CreateString(_o.GuideText); + return CreateMiniGamePlayGuideExcel( + builder, + _o.Id, + _o.EventContentId, + _o.DisplayOrder, + _GuideTitle, + _GuideImagePath, + _GuideText); + } +} + +public class MiniGamePlayGuideExcelT +{ + public long Id { get; set; } + public long EventContentId { get; set; } + public int DisplayOrder { get; set; } + public string GuideTitle { get; set; } + public string GuideImagePath { get; set; } + public string GuideText { get; set; } + + public MiniGamePlayGuideExcelT() { + this.Id = 0; + this.EventContentId = 0; + this.DisplayOrder = 0; + this.GuideTitle = null; + this.GuideImagePath = null; + this.GuideText = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs b/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs index 281d3c8..ba14a92 100644 --- a/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGamePlayGuideExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGamePlayGuideExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGamePlayGuideExcelTableT UnPack() { + var _o = new MiniGamePlayGuideExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGamePlayGuideExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGamePlayGuideExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGamePlayGuideExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGamePlayGuideExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGamePlayGuideExcelTable( + builder, + _DataList); + } +} + +public class MiniGamePlayGuideExcelTableT +{ + public List DataList { get; set; } + + public MiniGamePlayGuideExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs index 6addd51..ecf2c0a 100644 --- a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameRhythmBgmExcel : IFlatbufferObject @@ -94,6 +95,70 @@ public struct MiniGameRhythmBgmExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameRhythmBgmExcelT UnPack() { + var _o = new MiniGameRhythmBgmExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameRhythmBgmExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameRhythmBgm"); + _o.RhythmBgmId = TableEncryptionService.Convert(this.RhythmBgmId, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.StageSelectImagePath = TableEncryptionService.Convert(this.StageSelectImagePath, key); + _o.Bpm = TableEncryptionService.Convert(this.Bpm, key); + _o.Bgm = TableEncryptionService.Convert(this.Bgm, key); + _o.BgmNameText = TableEncryptionService.Convert(this.BgmNameText, key); + _o.BgmArtistText = TableEncryptionService.Convert(this.BgmArtistText, key); + _o.HasLyricist = TableEncryptionService.Convert(this.HasLyricist, key); + _o.BgmComposerText = TableEncryptionService.Convert(this.BgmComposerText, key); + _o.BgmLength = TableEncryptionService.Convert(this.BgmLength, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameRhythmBgmExcelT _o) { + if (_o == null) return default(Offset); + var _StageSelectImagePath = _o.StageSelectImagePath == null ? default(StringOffset) : builder.CreateString(_o.StageSelectImagePath); + var _BgmNameText = _o.BgmNameText == null ? default(StringOffset) : builder.CreateString(_o.BgmNameText); + var _BgmArtistText = _o.BgmArtistText == null ? default(StringOffset) : builder.CreateString(_o.BgmArtistText); + var _BgmComposerText = _o.BgmComposerText == null ? default(StringOffset) : builder.CreateString(_o.BgmComposerText); + return CreateMiniGameRhythmBgmExcel( + builder, + _o.RhythmBgmId, + _o.EventContentId, + _StageSelectImagePath, + _o.Bpm, + _o.Bgm, + _BgmNameText, + _BgmArtistText, + _o.HasLyricist, + _BgmComposerText, + _o.BgmLength); + } +} + +public class MiniGameRhythmBgmExcelT +{ + public long RhythmBgmId { get; set; } + public long EventContentId { get; set; } + public string StageSelectImagePath { get; set; } + public long Bpm { get; set; } + public long Bgm { get; set; } + public string BgmNameText { get; set; } + public string BgmArtistText { get; set; } + public bool HasLyricist { get; set; } + public string BgmComposerText { get; set; } + public int BgmLength { get; set; } + + public MiniGameRhythmBgmExcelT() { + this.RhythmBgmId = 0; + this.EventContentId = 0; + this.StageSelectImagePath = null; + this.Bpm = 0; + this.Bgm = 0; + this.BgmNameText = null; + this.BgmArtistText = null; + this.HasLyricist = false; + this.BgmComposerText = null; + this.BgmLength = 0; + } } diff --git a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs index d09bfad..08cd432 100644 --- a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameRhythmBgmExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameRhythmBgmExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameRhythmBgmExcelTableT UnPack() { + var _o = new MiniGameRhythmBgmExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameRhythmBgmExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameRhythmBgmExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameRhythmBgmExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameRhythmBgmExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameRhythmBgmExcelTable( + builder, + _DataList); + } +} + +public class MiniGameRhythmBgmExcelTableT +{ + public List DataList { get; set; } + + public MiniGameRhythmBgmExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs b/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs index d8ef093..4337fd1 100644 --- a/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameRhythmExcel : IFlatbufferObject @@ -134,6 +135,110 @@ public struct MiniGameRhythmExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameRhythmExcelT UnPack() { + var _o = new MiniGameRhythmExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameRhythmExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameRhythm"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.RhythmBgmId = TableEncryptionService.Convert(this.RhythmBgmId, key); + _o.PresetName = TableEncryptionService.Convert(this.PresetName, key); + _o.StageDifficulty = TableEncryptionService.Convert(this.StageDifficulty, key); + _o.IsSpecial = TableEncryptionService.Convert(this.IsSpecial, key); + _o.OpenStageScoreAmount = TableEncryptionService.Convert(this.OpenStageScoreAmount, key); + _o.MaxHp = TableEncryptionService.Convert(this.MaxHp, key); + _o.MissDamage = TableEncryptionService.Convert(this.MissDamage, key); + _o.CriticalHPRestoreValue = TableEncryptionService.Convert(this.CriticalHPRestoreValue, key); + _o.MaxScore = TableEncryptionService.Convert(this.MaxScore, key); + _o.FeverScoreRate = TableEncryptionService.Convert(this.FeverScoreRate, key); + _o.NoteScoreRate = TableEncryptionService.Convert(this.NoteScoreRate, key); + _o.ComboScoreRate = TableEncryptionService.Convert(this.ComboScoreRate, key); + _o.AttackScoreRate = TableEncryptionService.Convert(this.AttackScoreRate, key); + _o.FeverCriticalRate = TableEncryptionService.Convert(this.FeverCriticalRate, key); + _o.FeverAttackRate = TableEncryptionService.Convert(this.FeverAttackRate, key); + _o.MaxHpScore = TableEncryptionService.Convert(this.MaxHpScore, key); + _o.RhythmFileName = TableEncryptionService.Convert(this.RhythmFileName, key); + _o.ArtLevelSceneName = TableEncryptionService.Convert(this.ArtLevelSceneName, key); + _o.ComboImagePath = TableEncryptionService.Convert(this.ComboImagePath, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameRhythmExcelT _o) { + if (_o == null) return default(Offset); + var _PresetName = _o.PresetName == null ? default(StringOffset) : builder.CreateString(_o.PresetName); + var _RhythmFileName = _o.RhythmFileName == null ? default(StringOffset) : builder.CreateString(_o.RhythmFileName); + var _ArtLevelSceneName = _o.ArtLevelSceneName == null ? default(StringOffset) : builder.CreateString(_o.ArtLevelSceneName); + var _ComboImagePath = _o.ComboImagePath == null ? default(StringOffset) : builder.CreateString(_o.ComboImagePath); + return CreateMiniGameRhythmExcel( + builder, + _o.UniqueId, + _o.RhythmBgmId, + _PresetName, + _o.StageDifficulty, + _o.IsSpecial, + _o.OpenStageScoreAmount, + _o.MaxHp, + _o.MissDamage, + _o.CriticalHPRestoreValue, + _o.MaxScore, + _o.FeverScoreRate, + _o.NoteScoreRate, + _o.ComboScoreRate, + _o.AttackScoreRate, + _o.FeverCriticalRate, + _o.FeverAttackRate, + _o.MaxHpScore, + _RhythmFileName, + _ArtLevelSceneName, + _ComboImagePath); + } +} + +public class MiniGameRhythmExcelT +{ + public long UniqueId { get; set; } + public long RhythmBgmId { get; set; } + public string PresetName { get; set; } + public SCHALE.Common.FlatData.Difficulty StageDifficulty { get; set; } + public bool IsSpecial { get; set; } + public long OpenStageScoreAmount { get; set; } + public long MaxHp { get; set; } + public long MissDamage { get; set; } + public long CriticalHPRestoreValue { get; set; } + public long MaxScore { get; set; } + public long FeverScoreRate { get; set; } + public long NoteScoreRate { get; set; } + public long ComboScoreRate { get; set; } + public long AttackScoreRate { get; set; } + public float FeverCriticalRate { get; set; } + public float FeverAttackRate { get; set; } + public long MaxHpScore { get; set; } + public string RhythmFileName { get; set; } + public string ArtLevelSceneName { get; set; } + public string ComboImagePath { get; set; } + + public MiniGameRhythmExcelT() { + this.UniqueId = 0; + this.RhythmBgmId = 0; + this.PresetName = null; + this.StageDifficulty = SCHALE.Common.FlatData.Difficulty.Normal; + this.IsSpecial = false; + this.OpenStageScoreAmount = 0; + this.MaxHp = 0; + this.MissDamage = 0; + this.CriticalHPRestoreValue = 0; + this.MaxScore = 0; + this.FeverScoreRate = 0; + this.NoteScoreRate = 0; + this.ComboScoreRate = 0; + this.AttackScoreRate = 0; + this.FeverCriticalRate = 0.0f; + this.FeverAttackRate = 0.0f; + this.MaxHpScore = 0; + this.RhythmFileName = null; + this.ArtLevelSceneName = null; + this.ComboImagePath = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs b/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs index 96f497c..987752e 100644 --- a/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameRhythmExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameRhythmExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameRhythmExcelTableT UnPack() { + var _o = new MiniGameRhythmExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameRhythmExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameRhythmExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameRhythmExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameRhythmExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameRhythmExcelTable( + builder, + _DataList); + } +} + +public class MiniGameRhythmExcelTableT +{ + public List DataList { get; set; } + + public MiniGameRhythmExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs index 3c8c04f..dba9378 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingCharacterExcel : IFlatbufferObject @@ -44,18 +45,25 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject public byte[] GetNormalAttackSkillDataArray() { return __p.__vector_as_array(12); } public string PublicSkillData(int j) { int o = __p.__offset(14); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int PublicSkillDataLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } - public long MaxHP { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long AttackPower { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long DefensePower { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CriticalRate { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CriticalDamageRate { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long AttackRange { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long MoveSpeed { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ShotTime { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool IsBoss { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public float Scale { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public bool IgnoreObstacleCheck { get { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public long CharacterVoiceGroupId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DeathSkillData { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDeathSkillDataBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetDeathSkillDataBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetDeathSkillDataArray() { return __p.__vector_as_array(16); } + public long MaxHP { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackPower { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePower { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalRate { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalDamageRate { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackRange { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MoveSpeed { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShotTime { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsBoss { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float Scale { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool IgnoreObstacleCheck { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CharacterVoiceGroupId { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateMiniGameShootingCharacterExcel(FlatBufferBuilder builder, long UniqueId = 0, @@ -64,6 +72,7 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject StringOffset ModelPrefabNameOffset = default(StringOffset), StringOffset NormalAttackSkillDataOffset = default(StringOffset), VectorOffset PublicSkillDataOffset = default(VectorOffset), + StringOffset DeathSkillDataOffset = default(StringOffset), long MaxHP = 0, long AttackPower = 0, long DefensePower = 0, @@ -76,7 +85,7 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject float Scale = 0.0f, bool IgnoreObstacleCheck = false, long CharacterVoiceGroupId = 0) { - builder.StartTable(18); + builder.StartTable(19); MiniGameShootingCharacterExcel.AddCharacterVoiceGroupId(builder, CharacterVoiceGroupId); MiniGameShootingCharacterExcel.AddShotTime(builder, ShotTime); MiniGameShootingCharacterExcel.AddMoveSpeed(builder, MoveSpeed); @@ -88,6 +97,7 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject MiniGameShootingCharacterExcel.AddMaxHP(builder, MaxHP); MiniGameShootingCharacterExcel.AddUniqueId(builder, UniqueId); MiniGameShootingCharacterExcel.AddScale(builder, Scale); + MiniGameShootingCharacterExcel.AddDeathSkillData(builder, DeathSkillDataOffset); MiniGameShootingCharacterExcel.AddPublicSkillData(builder, PublicSkillDataOffset); MiniGameShootingCharacterExcel.AddNormalAttackSkillData(builder, NormalAttackSkillDataOffset); MiniGameShootingCharacterExcel.AddModelPrefabName(builder, ModelPrefabNameOffset); @@ -98,7 +108,7 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject return MiniGameShootingCharacterExcel.EndMiniGameShootingCharacterExcel(builder); } - public static void StartMiniGameShootingCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + public static void StartMiniGameShootingCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(19); } public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } public static void AddSpineResourceName(FlatBufferBuilder builder, StringOffset spineResourceNameOffset) { builder.AddOffset(1, spineResourceNameOffset.Value, 0); } public static void AddBodyRadius(FlatBufferBuilder builder, float bodyRadius) { builder.AddFloat(2, bodyRadius, 0.0f); } @@ -110,22 +120,130 @@ public struct MiniGameShootingCharacterExcel : IFlatbufferObject public static VectorOffset CreatePublicSkillDataVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreatePublicSkillDataVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartPublicSkillDataVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddMaxHP(FlatBufferBuilder builder, long maxHP) { builder.AddLong(6, maxHP, 0); } - public static void AddAttackPower(FlatBufferBuilder builder, long attackPower) { builder.AddLong(7, attackPower, 0); } - public static void AddDefensePower(FlatBufferBuilder builder, long defensePower) { builder.AddLong(8, defensePower, 0); } - public static void AddCriticalRate(FlatBufferBuilder builder, long criticalRate) { builder.AddLong(9, criticalRate, 0); } - public static void AddCriticalDamageRate(FlatBufferBuilder builder, long criticalDamageRate) { builder.AddLong(10, criticalDamageRate, 0); } - public static void AddAttackRange(FlatBufferBuilder builder, long attackRange) { builder.AddLong(11, attackRange, 0); } - public static void AddMoveSpeed(FlatBufferBuilder builder, long moveSpeed) { builder.AddLong(12, moveSpeed, 0); } - public static void AddShotTime(FlatBufferBuilder builder, long shotTime) { builder.AddLong(13, shotTime, 0); } - public static void AddIsBoss(FlatBufferBuilder builder, bool isBoss) { builder.AddBool(14, isBoss, false); } - public static void AddScale(FlatBufferBuilder builder, float scale) { builder.AddFloat(15, scale, 0.0f); } - public static void AddIgnoreObstacleCheck(FlatBufferBuilder builder, bool ignoreObstacleCheck) { builder.AddBool(16, ignoreObstacleCheck, false); } - public static void AddCharacterVoiceGroupId(FlatBufferBuilder builder, long characterVoiceGroupId) { builder.AddLong(17, characterVoiceGroupId, 0); } + public static void AddDeathSkillData(FlatBufferBuilder builder, StringOffset deathSkillDataOffset) { builder.AddOffset(6, deathSkillDataOffset.Value, 0); } + public static void AddMaxHP(FlatBufferBuilder builder, long maxHP) { builder.AddLong(7, maxHP, 0); } + public static void AddAttackPower(FlatBufferBuilder builder, long attackPower) { builder.AddLong(8, attackPower, 0); } + public static void AddDefensePower(FlatBufferBuilder builder, long defensePower) { builder.AddLong(9, defensePower, 0); } + public static void AddCriticalRate(FlatBufferBuilder builder, long criticalRate) { builder.AddLong(10, criticalRate, 0); } + public static void AddCriticalDamageRate(FlatBufferBuilder builder, long criticalDamageRate) { builder.AddLong(11, criticalDamageRate, 0); } + public static void AddAttackRange(FlatBufferBuilder builder, long attackRange) { builder.AddLong(12, attackRange, 0); } + public static void AddMoveSpeed(FlatBufferBuilder builder, long moveSpeed) { builder.AddLong(13, moveSpeed, 0); } + public static void AddShotTime(FlatBufferBuilder builder, long shotTime) { builder.AddLong(14, shotTime, 0); } + public static void AddIsBoss(FlatBufferBuilder builder, bool isBoss) { builder.AddBool(15, isBoss, false); } + public static void AddScale(FlatBufferBuilder builder, float scale) { builder.AddFloat(16, scale, 0.0f); } + public static void AddIgnoreObstacleCheck(FlatBufferBuilder builder, bool ignoreObstacleCheck) { builder.AddBool(17, ignoreObstacleCheck, false); } + public static void AddCharacterVoiceGroupId(FlatBufferBuilder builder, long characterVoiceGroupId) { builder.AddLong(18, characterVoiceGroupId, 0); } public static Offset EndMiniGameShootingCharacterExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingCharacterExcelT UnPack() { + var _o = new MiniGameShootingCharacterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingCharacterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingCharacter"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.SpineResourceName = TableEncryptionService.Convert(this.SpineResourceName, key); + _o.BodyRadius = TableEncryptionService.Convert(this.BodyRadius, key); + _o.ModelPrefabName = TableEncryptionService.Convert(this.ModelPrefabName, key); + _o.NormalAttackSkillData = TableEncryptionService.Convert(this.NormalAttackSkillData, key); + _o.PublicSkillData = new List(); + for (var _j = 0; _j < this.PublicSkillDataLength; ++_j) {_o.PublicSkillData.Add(TableEncryptionService.Convert(this.PublicSkillData(_j), key));} + _o.DeathSkillData = TableEncryptionService.Convert(this.DeathSkillData, key); + _o.MaxHP = TableEncryptionService.Convert(this.MaxHP, key); + _o.AttackPower = TableEncryptionService.Convert(this.AttackPower, key); + _o.DefensePower = TableEncryptionService.Convert(this.DefensePower, key); + _o.CriticalRate = TableEncryptionService.Convert(this.CriticalRate, key); + _o.CriticalDamageRate = TableEncryptionService.Convert(this.CriticalDamageRate, key); + _o.AttackRange = TableEncryptionService.Convert(this.AttackRange, key); + _o.MoveSpeed = TableEncryptionService.Convert(this.MoveSpeed, key); + _o.ShotTime = TableEncryptionService.Convert(this.ShotTime, key); + _o.IsBoss = TableEncryptionService.Convert(this.IsBoss, key); + _o.Scale = TableEncryptionService.Convert(this.Scale, key); + _o.IgnoreObstacleCheck = TableEncryptionService.Convert(this.IgnoreObstacleCheck, key); + _o.CharacterVoiceGroupId = TableEncryptionService.Convert(this.CharacterVoiceGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingCharacterExcelT _o) { + if (_o == null) return default(Offset); + var _SpineResourceName = _o.SpineResourceName == null ? default(StringOffset) : builder.CreateString(_o.SpineResourceName); + var _ModelPrefabName = _o.ModelPrefabName == null ? default(StringOffset) : builder.CreateString(_o.ModelPrefabName); + var _NormalAttackSkillData = _o.NormalAttackSkillData == null ? default(StringOffset) : builder.CreateString(_o.NormalAttackSkillData); + var _PublicSkillData = default(VectorOffset); + if (_o.PublicSkillData != null) { + var __PublicSkillData = new StringOffset[_o.PublicSkillData.Count]; + for (var _j = 0; _j < __PublicSkillData.Length; ++_j) { __PublicSkillData[_j] = builder.CreateString(_o.PublicSkillData[_j]); } + _PublicSkillData = CreatePublicSkillDataVector(builder, __PublicSkillData); + } + var _DeathSkillData = _o.DeathSkillData == null ? default(StringOffset) : builder.CreateString(_o.DeathSkillData); + return CreateMiniGameShootingCharacterExcel( + builder, + _o.UniqueId, + _SpineResourceName, + _o.BodyRadius, + _ModelPrefabName, + _NormalAttackSkillData, + _PublicSkillData, + _DeathSkillData, + _o.MaxHP, + _o.AttackPower, + _o.DefensePower, + _o.CriticalRate, + _o.CriticalDamageRate, + _o.AttackRange, + _o.MoveSpeed, + _o.ShotTime, + _o.IsBoss, + _o.Scale, + _o.IgnoreObstacleCheck, + _o.CharacterVoiceGroupId); + } +} + +public class MiniGameShootingCharacterExcelT +{ + public long UniqueId { get; set; } + public string SpineResourceName { get; set; } + public float BodyRadius { get; set; } + public string ModelPrefabName { get; set; } + public string NormalAttackSkillData { get; set; } + public List PublicSkillData { get; set; } + public string DeathSkillData { get; set; } + public long MaxHP { get; set; } + public long AttackPower { get; set; } + public long DefensePower { get; set; } + public long CriticalRate { get; set; } + public long CriticalDamageRate { get; set; } + public long AttackRange { get; set; } + public long MoveSpeed { get; set; } + public long ShotTime { get; set; } + public bool IsBoss { get; set; } + public float Scale { get; set; } + public bool IgnoreObstacleCheck { get; set; } + public long CharacterVoiceGroupId { get; set; } + + public MiniGameShootingCharacterExcelT() { + this.UniqueId = 0; + this.SpineResourceName = null; + this.BodyRadius = 0.0f; + this.ModelPrefabName = null; + this.NormalAttackSkillData = null; + this.PublicSkillData = null; + this.DeathSkillData = null; + this.MaxHP = 0; + this.AttackPower = 0; + this.DefensePower = 0; + this.CriticalRate = 0; + this.CriticalDamageRate = 0; + this.AttackRange = 0; + this.MoveSpeed = 0; + this.ShotTime = 0; + this.IsBoss = false; + this.Scale = 0.0f; + this.IgnoreObstacleCheck = false; + this.CharacterVoiceGroupId = 0; + } } @@ -140,18 +258,19 @@ static public class MiniGameShootingCharacterExcelVerify && verifier.VerifyString(tablePos, 10 /*ModelPrefabName*/, false) && verifier.VerifyString(tablePos, 12 /*NormalAttackSkillData*/, false) && verifier.VerifyVectorOfStrings(tablePos, 14 /*PublicSkillData*/, false) - && verifier.VerifyField(tablePos, 16 /*MaxHP*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 18 /*AttackPower*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 20 /*DefensePower*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 22 /*CriticalRate*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 24 /*CriticalDamageRate*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 26 /*AttackRange*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 28 /*MoveSpeed*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 30 /*ShotTime*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 32 /*IsBoss*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 34 /*Scale*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 36 /*IgnoreObstacleCheck*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 38 /*CharacterVoiceGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 16 /*DeathSkillData*/, false) + && verifier.VerifyField(tablePos, 18 /*MaxHP*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*AttackPower*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*DefensePower*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*CriticalRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*CriticalDamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*AttackRange*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*MoveSpeed*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*ShotTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*IsBoss*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 36 /*Scale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*IgnoreObstacleCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 40 /*CharacterVoiceGroupId*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs index 49ead1c..56b4e69 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingCharacterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameShootingCharacterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingCharacterExcelTableT UnPack() { + var _o = new MiniGameShootingCharacterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingCharacterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingCharacterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingCharacterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameShootingCharacterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameShootingCharacterExcelTable( + builder, + _DataList); + } +} + +public class MiniGameShootingCharacterExcelTableT +{ + public List DataList { get; set; } + + public MiniGameShootingCharacterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs index 9b51789..8b0e7ff 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingGeasExcel : IFlatbufferObject @@ -74,6 +75,60 @@ public struct MiniGameShootingGeasExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingGeasExcelT UnPack() { + var _o = new MiniGameShootingGeasExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingGeasExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingGeas"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.GeasType = TableEncryptionService.Convert(this.GeasType, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.Probability = TableEncryptionService.Convert(this.Probability, key); + _o.MaxOverlapCount = TableEncryptionService.Convert(this.MaxOverlapCount, key); + _o.GeasData = TableEncryptionService.Convert(this.GeasData, key); + _o.NeedGeasId = TableEncryptionService.Convert(this.NeedGeasId, key); + _o.HideInPausePopup = TableEncryptionService.Convert(this.HideInPausePopup, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingGeasExcelT _o) { + if (_o == null) return default(Offset); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _GeasData = _o.GeasData == null ? default(StringOffset) : builder.CreateString(_o.GeasData); + return CreateMiniGameShootingGeasExcel( + builder, + _o.UniqueId, + _o.GeasType, + _Icon, + _o.Probability, + _o.MaxOverlapCount, + _GeasData, + _o.NeedGeasId, + _o.HideInPausePopup); + } +} + +public class MiniGameShootingGeasExcelT +{ + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.Geas GeasType { get; set; } + public string Icon { get; set; } + public long Probability { get; set; } + public int MaxOverlapCount { get; set; } + public string GeasData { get; set; } + public long NeedGeasId { get; set; } + public bool HideInPausePopup { get; set; } + + public MiniGameShootingGeasExcelT() { + this.UniqueId = 0; + this.GeasType = SCHALE.Common.FlatData.Geas.ForwardProjectile; + this.Icon = null; + this.Probability = 0; + this.MaxOverlapCount = 0; + this.GeasData = null; + this.NeedGeasId = 0; + this.HideInPausePopup = false; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs index 5cc2ec4..70caccf 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingGeasExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameShootingGeasExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingGeasExcelTableT UnPack() { + var _o = new MiniGameShootingGeasExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingGeasExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingGeasExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingGeasExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameShootingGeasExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameShootingGeasExcelTable( + builder, + _DataList); + } +} + +public class MiniGameShootingGeasExcelTableT +{ + public List DataList { get; set; } + + public MiniGameShootingGeasExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs index 30090af..4439ef2 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingStageExcel : IFlatbufferObject @@ -92,6 +93,73 @@ public struct MiniGameShootingStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingStageExcelT UnPack() { + var _o = new MiniGameShootingStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingStage"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); + _o.CostGoodsId = TableEncryptionService.Convert(this.CostGoodsId, key); + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.DesignLevel = TableEncryptionService.Convert(this.DesignLevel, key); + _o.ArtLevel = TableEncryptionService.Convert(this.ArtLevel, key); + _o.StartBattleDuration = TableEncryptionService.Convert(this.StartBattleDuration, key); + _o.DefaultBattleDuration = TableEncryptionService.Convert(this.DefaultBattleDuration, key); + _o.DefaultLogicEffect = TableEncryptionService.Convert(this.DefaultLogicEffect, key); + _o.CameraSizeRate = TableEncryptionService.Convert(this.CameraSizeRate, key); + _o.EventContentStageRewardId = TableEncryptionService.Convert(this.EventContentStageRewardId, key); + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingStageExcelT _o) { + if (_o == null) return default(Offset); + var _DesignLevel = _o.DesignLevel == null ? default(StringOffset) : builder.CreateString(_o.DesignLevel); + var _ArtLevel = _o.ArtLevel == null ? default(StringOffset) : builder.CreateString(_o.ArtLevel); + var _DefaultLogicEffect = _o.DefaultLogicEffect == null ? default(StringOffset) : builder.CreateString(_o.DefaultLogicEffect); + return CreateMiniGameShootingStageExcel( + builder, + _o.UniqueId, + _o.BgmId, + _o.CostGoodsId, + _o.Difficulty, + _DesignLevel, + _ArtLevel, + _o.StartBattleDuration, + _o.DefaultBattleDuration, + _DefaultLogicEffect, + _o.CameraSizeRate, + _o.EventContentStageRewardId); + } +} + +public class MiniGameShootingStageExcelT +{ + public long UniqueId { get; set; } + public long BgmId { get; set; } + public long CostGoodsId { get; set; } + public SCHALE.Common.FlatData.Difficulty Difficulty { get; set; } + public string DesignLevel { get; set; } + public string ArtLevel { get; set; } + public long StartBattleDuration { get; set; } + public long DefaultBattleDuration { get; set; } + public string DefaultLogicEffect { get; set; } + public float CameraSizeRate { get; set; } + public long EventContentStageRewardId { get; set; } + + public MiniGameShootingStageExcelT() { + this.UniqueId = 0; + this.BgmId = 0; + this.CostGoodsId = 0; + this.Difficulty = SCHALE.Common.FlatData.Difficulty.Normal; + this.DesignLevel = null; + this.ArtLevel = null; + this.StartBattleDuration = 0; + this.DefaultBattleDuration = 0; + this.DefaultLogicEffect = null; + this.CameraSizeRate = 0.0f; + this.EventContentStageRewardId = 0; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs index 66771cf..38a5571 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameShootingStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingStageExcelTableT UnPack() { + var _o = new MiniGameShootingStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameShootingStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameShootingStageExcelTable( + builder, + _DataList); + } +} + +public class MiniGameShootingStageExcelTableT +{ + public List DataList { get; set; } + + public MiniGameShootingStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs index e73afc5..c5586c1 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingStageRewardExcel : IFlatbufferObject @@ -90,6 +91,68 @@ public struct MiniGameShootingStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingStageRewardExcelT UnPack() { + var _o = new MiniGameShootingStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.RewardId = TableEncryptionService.Convert(this.RewardId, key); + _o.ClearSection = TableEncryptionService.Convert(this.ClearSection, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingStageRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateMiniGameShootingStageRewardExcel( + builder, + _o.GroupId, + _o.RewardId, + _o.ClearSection, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class MiniGameShootingStageRewardExcelT +{ + public long GroupId { get; set; } + public long RewardId { get; set; } + public long ClearSection { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public MiniGameShootingStageRewardExcelT() { + this.GroupId = 0; + this.RewardId = 0; + this.ClearSection = 0; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs index 8c06a15..ec7e4cc 100644 --- a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameShootingStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameShootingStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameShootingStageRewardExcelTableT UnPack() { + var _o = new MiniGameShootingStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameShootingStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameShootingStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameShootingStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameShootingStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameShootingStageRewardExcelTable( + builder, + _DataList); + } +} + +public class MiniGameShootingStageRewardExcelTableT +{ + public List DataList { get; set; } + + public MiniGameShootingStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs index 04cee34..fc43c86 100644 --- a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameTBGThemaRewardExcel : IFlatbufferObject @@ -98,6 +99,76 @@ public struct MiniGameTBGThemaRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameTBGThemaRewardExcelT UnPack() { + var _o = new MiniGameTBGThemaRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameTBGThemaRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameTBGThemaReward"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ThemaRound = TableEncryptionService.Convert(this.ThemaRound, key); + _o.ThemaUniqueId = TableEncryptionService.Convert(this.ThemaUniqueId, key); + _o.IsLoop = TableEncryptionService.Convert(this.IsLoop, key); + _o.MiniGameTBGThemaRewardType = TableEncryptionService.Convert(this.MiniGameTBGThemaRewardType, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameTBGThemaRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateMiniGameTBGThemaRewardExcel( + builder, + _o.EventContentId, + _o.ThemaRound, + _o.ThemaUniqueId, + _o.IsLoop, + _o.MiniGameTBGThemaRewardType, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount); + } +} + +public class MiniGameTBGThemaRewardExcelT +{ + public long EventContentId { get; set; } + public int ThemaRound { get; set; } + public int ThemaUniqueId { get; set; } + public bool IsLoop { get; set; } + public SCHALE.Common.FlatData.MiniGameTBGThemaRewardType MiniGameTBGThemaRewardType { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + + public MiniGameTBGThemaRewardExcelT() { + this.EventContentId = 0; + this.ThemaRound = 0; + this.ThemaUniqueId = 0; + this.IsLoop = false; + this.MiniGameTBGThemaRewardType = SCHALE.Common.FlatData.MiniGameTBGThemaRewardType.TreasureReward; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs index e1c87e2..3d10ccb 100644 --- a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MiniGameTBGThemaRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MiniGameTBGThemaRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MiniGameTBGThemaRewardExcelTableT UnPack() { + var _o = new MiniGameTBGThemaRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MiniGameTBGThemaRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MiniGameTBGThemaRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MiniGameTBGThemaRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MiniGameTBGThemaRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMiniGameTBGThemaRewardExcelTable( + builder, + _DataList); + } +} + +public class MiniGameTBGThemaRewardExcelTableT +{ + public List DataList { get; set; } + + public MiniGameTBGThemaRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs b/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs new file mode 100644 index 0000000..ffe9356 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs @@ -0,0 +1,102 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; + +public struct MinigameDreamVoiceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameDreamVoiceExcel GetRootAsMinigameDreamVoiceExcel(ByteBuffer _bb) { return GetRootAsMinigameDreamVoiceExcel(_bb, new MinigameDreamVoiceExcel()); } + public static MinigameDreamVoiceExcel GetRootAsMinigameDreamVoiceExcel(ByteBuffer _bb, MinigameDreamVoiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameDreamVoiceExcel __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 UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerVoiceCondition.None; } } + public uint VoiceClip { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateMinigameDreamVoiceExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long UniqueId = 0, + SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None, + uint VoiceClip = 0) { + builder.StartTable(4); + MinigameDreamVoiceExcel.AddUniqueId(builder, UniqueId); + MinigameDreamVoiceExcel.AddEventContentId(builder, EventContentId); + MinigameDreamVoiceExcel.AddVoiceClip(builder, VoiceClip); + MinigameDreamVoiceExcel.AddVoiceCondition(builder, VoiceCondition); + return MinigameDreamVoiceExcel.EndMinigameDreamVoiceExcel(builder); + } + + public static void StartMinigameDreamVoiceExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } + public static void AddVoiceCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DreamMakerVoiceCondition voiceCondition) { builder.AddInt(2, (int)voiceCondition, 0); } + public static void AddVoiceClip(FlatBufferBuilder builder, uint voiceClip) { builder.AddUint(3, voiceClip, 0); } + public static Offset EndMinigameDreamVoiceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public MinigameDreamVoiceExcelT UnPack() { + var _o = new MinigameDreamVoiceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameDreamVoiceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameDreamVoice"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.VoiceCondition = TableEncryptionService.Convert(this.VoiceCondition, key); + _o.VoiceClip = TableEncryptionService.Convert(this.VoiceClip, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameDreamVoiceExcelT _o) { + if (_o == null) return default(Offset); + return CreateMinigameDreamVoiceExcel( + builder, + _o.EventContentId, + _o.UniqueId, + _o.VoiceCondition, + _o.VoiceClip); + } +} + +public class MinigameDreamVoiceExcelT +{ + public long EventContentId { get; set; } + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition { get; set; } + public uint VoiceClip { get; set; } + + public MinigameDreamVoiceExcelT() { + this.EventContentId = 0; + this.UniqueId = 0; + this.VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None; + this.VoiceClip = 0; + } +} + + +static public class MinigameDreamVoiceExcelVerify +{ + 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 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*VoiceCondition*/, 4 /*SCHALE.Common.FlatData.DreamMakerVoiceCondition*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*VoiceClip*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs b/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs index e456dcf..19cdaee 100644 --- a/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGDiceExcel : IFlatbufferObject @@ -98,6 +99,76 @@ public struct MinigameTBGDiceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGDiceExcelT UnPack() { + var _o = new MinigameTBGDiceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGDiceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGDice"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.DiceGroup = TableEncryptionService.Convert(this.DiceGroup, key); + _o.DiceResult = TableEncryptionService.Convert(this.DiceResult, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.ProbModifyCondition = new List(); + for (var _j = 0; _j < this.ProbModifyConditionLength; ++_j) {_o.ProbModifyCondition.Add(TableEncryptionService.Convert(this.ProbModifyCondition(_j), key));} + _o.ProbModifyValue = new List(); + for (var _j = 0; _j < this.ProbModifyValueLength; ++_j) {_o.ProbModifyValue.Add(TableEncryptionService.Convert(this.ProbModifyValue(_j), key));} + _o.ProbModifyLimit = new List(); + for (var _j = 0; _j < this.ProbModifyLimitLength; ++_j) {_o.ProbModifyLimit.Add(TableEncryptionService.Convert(this.ProbModifyLimit(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGDiceExcelT _o) { + if (_o == null) return default(Offset); + var _ProbModifyCondition = default(VectorOffset); + if (_o.ProbModifyCondition != null) { + var __ProbModifyCondition = _o.ProbModifyCondition.ToArray(); + _ProbModifyCondition = CreateProbModifyConditionVector(builder, __ProbModifyCondition); + } + var _ProbModifyValue = default(VectorOffset); + if (_o.ProbModifyValue != null) { + var __ProbModifyValue = _o.ProbModifyValue.ToArray(); + _ProbModifyValue = CreateProbModifyValueVector(builder, __ProbModifyValue); + } + var _ProbModifyLimit = default(VectorOffset); + if (_o.ProbModifyLimit != null) { + var __ProbModifyLimit = _o.ProbModifyLimit.ToArray(); + _ProbModifyLimit = CreateProbModifyLimitVector(builder, __ProbModifyLimit); + } + return CreateMinigameTBGDiceExcel( + builder, + _o.EventContentId, + _o.UniqueId, + _o.DiceGroup, + _o.DiceResult, + _o.Prob, + _ProbModifyCondition, + _ProbModifyValue, + _ProbModifyLimit); + } +} + +public class MinigameTBGDiceExcelT +{ + public long EventContentId { get; set; } + public long UniqueId { get; set; } + public int DiceGroup { get; set; } + public int DiceResult { get; set; } + public int Prob { get; set; } + public List ProbModifyCondition { get; set; } + public List ProbModifyValue { get; set; } + public List ProbModifyLimit { get; set; } + + public MinigameTBGDiceExcelT() { + this.EventContentId = 0; + this.UniqueId = 0; + this.DiceGroup = 0; + this.DiceResult = 0; + this.Prob = 0; + this.ProbModifyCondition = null; + this.ProbModifyValue = null; + this.ProbModifyLimit = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs index b539879..f3c2de8 100644 --- a/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGDiceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGDiceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGDiceExcelTableT UnPack() { + var _o = new MinigameTBGDiceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGDiceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGDiceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGDiceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGDiceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGDiceExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGDiceExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGDiceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs index fbc2be2..5c8d8f3 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterExcel : IFlatbufferObject @@ -212,6 +213,133 @@ public struct MinigameTBGEncounterExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterExcelT UnPack() { + var _o = new MinigameTBGEncounterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounter"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.AllThema = TableEncryptionService.Convert(this.AllThema, key); + _o.ThemaIndex = TableEncryptionService.Convert(this.ThemaIndex, key); + _o.ThemaType = TableEncryptionService.Convert(this.ThemaType, key); + _o.ObjectType = TableEncryptionService.Convert(this.ObjectType, key); + _o.EnemyImagePath = TableEncryptionService.Convert(this.EnemyImagePath, key); + _o.EnemyPrefabName = TableEncryptionService.Convert(this.EnemyPrefabName, key); + _o.EnemyNameLocalize = TableEncryptionService.Convert(this.EnemyNameLocalize, key); + _o.OptionGroupId = TableEncryptionService.Convert(this.OptionGroupId, key); + _o.RewardHide = TableEncryptionService.Convert(this.RewardHide, key); + _o.EncounterTitleLocalize = TableEncryptionService.Convert(this.EncounterTitleLocalize, key); + _o.StoryImagePath = TableEncryptionService.Convert(this.StoryImagePath, key); + _o.BeforeStoryLocalize = TableEncryptionService.Convert(this.BeforeStoryLocalize, key); + _o.BeforeStoryOption1Localize = TableEncryptionService.Convert(this.BeforeStoryOption1Localize, key); + _o.BeforeStoryOption2Localize = TableEncryptionService.Convert(this.BeforeStoryOption2Localize, key); + _o.BeforeStoryOption3Localize = TableEncryptionService.Convert(this.BeforeStoryOption3Localize, key); + _o.AllyAttackLocalize = TableEncryptionService.Convert(this.AllyAttackLocalize, key); + _o.EnemyAttackLocalize = TableEncryptionService.Convert(this.EnemyAttackLocalize, key); + _o.AttackDefenceLocalize = TableEncryptionService.Convert(this.AttackDefenceLocalize, key); + _o.ClearStoryLocalize = TableEncryptionService.Convert(this.ClearStoryLocalize, key); + _o.DefeatStoryLocalize = TableEncryptionService.Convert(this.DefeatStoryLocalize, key); + _o.RunawayStoryLocalize = TableEncryptionService.Convert(this.RunawayStoryLocalize, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterExcelT _o) { + if (_o == null) return default(Offset); + var _EnemyImagePath = _o.EnemyImagePath == null ? default(StringOffset) : builder.CreateString(_o.EnemyImagePath); + var _EnemyPrefabName = _o.EnemyPrefabName == null ? default(StringOffset) : builder.CreateString(_o.EnemyPrefabName); + var _EnemyNameLocalize = _o.EnemyNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.EnemyNameLocalize); + var _EncounterTitleLocalize = _o.EncounterTitleLocalize == null ? default(StringOffset) : builder.CreateString(_o.EncounterTitleLocalize); + var _StoryImagePath = _o.StoryImagePath == null ? default(StringOffset) : builder.CreateString(_o.StoryImagePath); + var _BeforeStoryLocalize = _o.BeforeStoryLocalize == null ? default(StringOffset) : builder.CreateString(_o.BeforeStoryLocalize); + var _BeforeStoryOption1Localize = _o.BeforeStoryOption1Localize == null ? default(StringOffset) : builder.CreateString(_o.BeforeStoryOption1Localize); + var _BeforeStoryOption2Localize = _o.BeforeStoryOption2Localize == null ? default(StringOffset) : builder.CreateString(_o.BeforeStoryOption2Localize); + var _BeforeStoryOption3Localize = _o.BeforeStoryOption3Localize == null ? default(StringOffset) : builder.CreateString(_o.BeforeStoryOption3Localize); + var _AllyAttackLocalize = _o.AllyAttackLocalize == null ? default(StringOffset) : builder.CreateString(_o.AllyAttackLocalize); + var _EnemyAttackLocalize = _o.EnemyAttackLocalize == null ? default(StringOffset) : builder.CreateString(_o.EnemyAttackLocalize); + var _AttackDefenceLocalize = _o.AttackDefenceLocalize == null ? default(StringOffset) : builder.CreateString(_o.AttackDefenceLocalize); + var _ClearStoryLocalize = _o.ClearStoryLocalize == null ? default(StringOffset) : builder.CreateString(_o.ClearStoryLocalize); + var _DefeatStoryLocalize = _o.DefeatStoryLocalize == null ? default(StringOffset) : builder.CreateString(_o.DefeatStoryLocalize); + var _RunawayStoryLocalize = _o.RunawayStoryLocalize == null ? default(StringOffset) : builder.CreateString(_o.RunawayStoryLocalize); + return CreateMinigameTBGEncounterExcel( + builder, + _o.EventContentId, + _o.UniqueId, + _o.AllThema, + _o.ThemaIndex, + _o.ThemaType, + _o.ObjectType, + _EnemyImagePath, + _EnemyPrefabName, + _EnemyNameLocalize, + _o.OptionGroupId, + _o.RewardHide, + _EncounterTitleLocalize, + _StoryImagePath, + _BeforeStoryLocalize, + _BeforeStoryOption1Localize, + _BeforeStoryOption2Localize, + _BeforeStoryOption3Localize, + _AllyAttackLocalize, + _EnemyAttackLocalize, + _AttackDefenceLocalize, + _ClearStoryLocalize, + _DefeatStoryLocalize, + _RunawayStoryLocalize); + } +} + +public class MinigameTBGEncounterExcelT +{ + public long EventContentId { get; set; } + public long UniqueId { get; set; } + public bool AllThema { get; set; } + public int ThemaIndex { get; set; } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get; set; } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get; set; } + public string EnemyImagePath { get; set; } + public string EnemyPrefabName { get; set; } + public string EnemyNameLocalize { get; set; } + public long OptionGroupId { get; set; } + public bool RewardHide { get; set; } + public string EncounterTitleLocalize { get; set; } + public string StoryImagePath { get; set; } + public string BeforeStoryLocalize { get; set; } + public string BeforeStoryOption1Localize { get; set; } + public string BeforeStoryOption2Localize { get; set; } + public string BeforeStoryOption3Localize { get; set; } + public string AllyAttackLocalize { get; set; } + public string EnemyAttackLocalize { get; set; } + public string AttackDefenceLocalize { get; set; } + public string ClearStoryLocalize { get; set; } + public string DefeatStoryLocalize { get; set; } + public string RunawayStoryLocalize { get; set; } + + public MinigameTBGEncounterExcelT() { + this.EventContentId = 0; + this.UniqueId = 0; + this.AllThema = false; + this.ThemaIndex = 0; + this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None; + this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None; + this.EnemyImagePath = null; + this.EnemyPrefabName = null; + this.EnemyNameLocalize = null; + this.OptionGroupId = 0; + this.RewardHide = false; + this.EncounterTitleLocalize = null; + this.StoryImagePath = null; + this.BeforeStoryLocalize = null; + this.BeforeStoryOption1Localize = null; + this.BeforeStoryOption2Localize = null; + this.BeforeStoryOption3Localize = null; + this.AllyAttackLocalize = null; + this.EnemyAttackLocalize = null; + this.AttackDefenceLocalize = null; + this.ClearStoryLocalize = null; + this.DefeatStoryLocalize = null; + this.RunawayStoryLocalize = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs index 29c6d41..eccbe13 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGEncounterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterExcelTableT UnPack() { + var _o = new MinigameTBGEncounterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGEncounterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGEncounterExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGEncounterExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGEncounterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs index 1aa0e10..55c612f 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterOptionExcel : IFlatbufferObject @@ -96,6 +97,77 @@ public struct MinigameTBGEncounterOptionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterOptionExcelT UnPack() { + var _o = new MinigameTBGEncounterOptionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterOptionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounterOption"); + _o.OptionGroupId = TableEncryptionService.Convert(this.OptionGroupId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.SlotIndex = TableEncryptionService.Convert(this.SlotIndex, key); + _o.OptionTitleLocalize = TableEncryptionService.Convert(this.OptionTitleLocalize, key); + _o.OptionSuccessLocalize = TableEncryptionService.Convert(this.OptionSuccessLocalize, key); + _o.OptionSuccessRewardGroupId = TableEncryptionService.Convert(this.OptionSuccessRewardGroupId, key); + _o.OptionSuccessOrHigherDiceCount = TableEncryptionService.Convert(this.OptionSuccessOrHigherDiceCount, key); + _o.OptionGreatSuccessOrHigherDiceCount = TableEncryptionService.Convert(this.OptionGreatSuccessOrHigherDiceCount, key); + _o.OptionFailLocalize = TableEncryptionService.Convert(this.OptionFailLocalize, key); + _o.OptionFailLessDiceCount = TableEncryptionService.Convert(this.OptionFailLessDiceCount, key); + _o.RunawayOrHigherDiceCount = TableEncryptionService.Convert(this.RunawayOrHigherDiceCount, key); + _o.RewardHide = TableEncryptionService.Convert(this.RewardHide, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterOptionExcelT _o) { + if (_o == null) return default(Offset); + var _OptionTitleLocalize = _o.OptionTitleLocalize == null ? default(StringOffset) : builder.CreateString(_o.OptionTitleLocalize); + var _OptionSuccessLocalize = _o.OptionSuccessLocalize == null ? default(StringOffset) : builder.CreateString(_o.OptionSuccessLocalize); + var _OptionFailLocalize = _o.OptionFailLocalize == null ? default(StringOffset) : builder.CreateString(_o.OptionFailLocalize); + return CreateMinigameTBGEncounterOptionExcel( + builder, + _o.OptionGroupId, + _o.UniqueId, + _o.SlotIndex, + _OptionTitleLocalize, + _OptionSuccessLocalize, + _o.OptionSuccessRewardGroupId, + _o.OptionSuccessOrHigherDiceCount, + _o.OptionGreatSuccessOrHigherDiceCount, + _OptionFailLocalize, + _o.OptionFailLessDiceCount, + _o.RunawayOrHigherDiceCount, + _o.RewardHide); + } +} + +public class MinigameTBGEncounterOptionExcelT +{ + public long OptionGroupId { get; set; } + public long UniqueId { get; set; } + public int SlotIndex { get; set; } + public string OptionTitleLocalize { get; set; } + public string OptionSuccessLocalize { get; set; } + public long OptionSuccessRewardGroupId { get; set; } + public int OptionSuccessOrHigherDiceCount { get; set; } + public int OptionGreatSuccessOrHigherDiceCount { get; set; } + public string OptionFailLocalize { get; set; } + public int OptionFailLessDiceCount { get; set; } + public int RunawayOrHigherDiceCount { get; set; } + public bool RewardHide { get; set; } + + public MinigameTBGEncounterOptionExcelT() { + this.OptionGroupId = 0; + this.UniqueId = 0; + this.SlotIndex = 0; + this.OptionTitleLocalize = null; + this.OptionSuccessLocalize = null; + this.OptionSuccessRewardGroupId = 0; + this.OptionSuccessOrHigherDiceCount = 0; + this.OptionGreatSuccessOrHigherDiceCount = 0; + this.OptionFailLocalize = null; + this.OptionFailLessDiceCount = 0; + this.RunawayOrHigherDiceCount = 0; + this.RewardHide = false; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs index 31b8404..e83c1e6 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterOptionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGEncounterOptionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterOptionExcelTableT UnPack() { + var _o = new MinigameTBGEncounterOptionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterOptionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounterOptionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterOptionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGEncounterOptionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGEncounterOptionExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGEncounterOptionExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGEncounterOptionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs index 6f1c704..4979cd8 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterRewardExcel : IFlatbufferObject @@ -62,6 +63,58 @@ public struct MinigameTBGEncounterRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterRewardExcelT UnPack() { + var _o = new MinigameTBGEncounterRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounterReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.TBGOptionSuccessType = TableEncryptionService.Convert(this.TBGOptionSuccessType, key); + _o.Paremeter = TableEncryptionService.Convert(this.Paremeter, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key); + _o.Amount = TableEncryptionService.Convert(this.Amount, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateMinigameTBGEncounterRewardExcel( + builder, + _o.GroupId, + _o.UniqueId, + _o.TBGOptionSuccessType, + _o.Paremeter, + _o.ParcelType, + _o.ParcelId, + _o.Amount, + _o.Prob); + } +} + +public class MinigameTBGEncounterRewardExcelT +{ + public long GroupId { get; set; } + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType { get; set; } + public long Paremeter { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelId { get; set; } + public long Amount { get; set; } + public int Prob { get; set; } + + public MinigameTBGEncounterRewardExcelT() { + this.GroupId = 0; + this.UniqueId = 0; + this.TBGOptionSuccessType = SCHALE.Common.FlatData.TBGOptionSuccessType.None; + this.Paremeter = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelId = 0; + this.Amount = 0; + this.Prob = 0; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs index 6d11a1b..13900f6 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGEncounterRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGEncounterRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGEncounterRewardExcelTableT UnPack() { + var _o = new MinigameTBGEncounterRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGEncounterRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGEncounterRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGEncounterRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGEncounterRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGEncounterRewardExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGEncounterRewardExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGEncounterRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs index 40f34ed..963db67 100644 --- a/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGItemExcel : IFlatbufferObject @@ -90,6 +91,66 @@ public struct MinigameTBGItemExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGItemExcelT UnPack() { + var _o = new MinigameTBGItemExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGItemExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGItem"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.ItemType = TableEncryptionService.Convert(this.ItemType, key); + _o.TBGItemEffectType = TableEncryptionService.Convert(this.TBGItemEffectType, key); + _o.ItemParameter = TableEncryptionService.Convert(this.ItemParameter, key); + _o.LocalizeETCId = TableEncryptionService.Convert(this.LocalizeETCId, key); + _o.Icon = TableEncryptionService.Convert(this.Icon, key); + _o.BuffIcon = TableEncryptionService.Convert(this.BuffIcon, key); + _o.EncounterCount = TableEncryptionService.Convert(this.EncounterCount, key); + _o.DiceEffectAniClip = TableEncryptionService.Convert(this.DiceEffectAniClip, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGItemExcelT _o) { + if (_o == null) return default(Offset); + var _LocalizeETCId = _o.LocalizeETCId == null ? default(StringOffset) : builder.CreateString(_o.LocalizeETCId); + var _Icon = _o.Icon == null ? default(StringOffset) : builder.CreateString(_o.Icon); + var _BuffIcon = _o.BuffIcon == null ? default(StringOffset) : builder.CreateString(_o.BuffIcon); + var _DiceEffectAniClip = _o.DiceEffectAniClip == null ? default(StringOffset) : builder.CreateString(_o.DiceEffectAniClip); + return CreateMinigameTBGItemExcel( + builder, + _o.UniqueId, + _o.ItemType, + _o.TBGItemEffectType, + _o.ItemParameter, + _LocalizeETCId, + _Icon, + _BuffIcon, + _o.EncounterCount, + _DiceEffectAniClip); + } +} + +public class MinigameTBGItemExcelT +{ + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.TBGItemType ItemType { get; set; } + public SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType { get; set; } + public int ItemParameter { get; set; } + public string LocalizeETCId { get; set; } + public string Icon { get; set; } + public string BuffIcon { get; set; } + public int EncounterCount { get; set; } + public string DiceEffectAniClip { get; set; } + + public MinigameTBGItemExcelT() { + this.UniqueId = 0; + this.ItemType = SCHALE.Common.FlatData.TBGItemType.None; + this.TBGItemEffectType = SCHALE.Common.FlatData.TBGItemEffectType.None; + this.ItemParameter = 0; + this.LocalizeETCId = null; + this.Icon = null; + this.BuffIcon = null; + this.EncounterCount = 0; + this.DiceEffectAniClip = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs index 63943d4..88fbfac 100644 --- a/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGItemExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGItemExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGItemExcelTableT UnPack() { + var _o = new MinigameTBGItemExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGItemExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGItemExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGItemExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGItemExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGItemExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGItemExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGItemExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs index 152851e..7c20cce 100644 --- a/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGObjectExcel : IFlatbufferObject @@ -78,6 +79,64 @@ public struct MinigameTBGObjectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGObjectExcelT UnPack() { + var _o = new MinigameTBGObjectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGObjectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGObject"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.Key = TableEncryptionService.Convert(this.Key, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.ObjectType = TableEncryptionService.Convert(this.ObjectType, key); + _o.ObjectCostType = TableEncryptionService.Convert(this.ObjectCostType, key); + _o.ObjectCostId = TableEncryptionService.Convert(this.ObjectCostId, key); + _o.ObjectCostAmount = TableEncryptionService.Convert(this.ObjectCostAmount, key); + _o.Disposable = TableEncryptionService.Convert(this.Disposable, key); + _o.ReEncounterCost = TableEncryptionService.Convert(this.ReEncounterCost, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGObjectExcelT _o) { + if (_o == null) return default(Offset); + var _Key = _o.Key == null ? default(StringOffset) : builder.CreateString(_o.Key); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + return CreateMinigameTBGObjectExcel( + builder, + _o.UniqueId, + _Key, + _PrefabName, + _o.ObjectType, + _o.ObjectCostType, + _o.ObjectCostId, + _o.ObjectCostAmount, + _o.Disposable, + _o.ReEncounterCost); + } +} + +public class MinigameTBGObjectExcelT +{ + public long UniqueId { get; set; } + public string Key { get; set; } + public string PrefabName { get; set; } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get; set; } + public SCHALE.Common.FlatData.ParcelType ObjectCostType { get; set; } + public long ObjectCostId { get; set; } + public int ObjectCostAmount { get; set; } + public bool Disposable { get; set; } + public bool ReEncounterCost { get; set; } + + public MinigameTBGObjectExcelT() { + this.UniqueId = 0; + this.Key = null; + this.PrefabName = null; + this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None; + this.ObjectCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ObjectCostId = 0; + this.ObjectCostAmount = 0; + this.Disposable = false; + this.ReEncounterCost = false; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs index 6f4f1b6..c095822 100644 --- a/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGObjectExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGObjectExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGObjectExcelTableT UnPack() { + var _o = new MinigameTBGObjectExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGObjectExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGObjectExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGObjectExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGObjectExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGObjectExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGObjectExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGObjectExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs index cf09fd9..ec61053 100644 --- a/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGSeasonExcel : IFlatbufferObject @@ -170,6 +171,136 @@ public struct MinigameTBGSeasonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGSeasonExcelT UnPack() { + var _o = new MinigameTBGSeasonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGSeasonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGSeason"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.ItemSlot = TableEncryptionService.Convert(this.ItemSlot, key); + _o.DefaultEchelonHp = TableEncryptionService.Convert(this.DefaultEchelonHp, key); + _o.DefaultItemDiceId = TableEncryptionService.Convert(this.DefaultItemDiceId, key); + _o.EchelonSlot1CharacterId = TableEncryptionService.Convert(this.EchelonSlot1CharacterId, key); + _o.EchelonSlot2CharacterId = TableEncryptionService.Convert(this.EchelonSlot2CharacterId, key); + _o.EchelonSlot3CharacterId = TableEncryptionService.Convert(this.EchelonSlot3CharacterId, key); + _o.EchelonSlot4CharacterId = TableEncryptionService.Convert(this.EchelonSlot4CharacterId, key); + _o.EchelonSlot1Portrait = TableEncryptionService.Convert(this.EchelonSlot1Portrait, key); + _o.EchelonSlot2Portrait = TableEncryptionService.Convert(this.EchelonSlot2Portrait, key); + _o.EchelonSlot3Portrait = TableEncryptionService.Convert(this.EchelonSlot3Portrait, key); + _o.EchelonSlot4Portrait = TableEncryptionService.Convert(this.EchelonSlot4Portrait, key); + _o.EventUseCostType = TableEncryptionService.Convert(this.EventUseCostType, key); + _o.EventUseCostId = TableEncryptionService.Convert(this.EventUseCostId, key); + _o.EchelonRevivalCostType = TableEncryptionService.Convert(this.EchelonRevivalCostType, key); + _o.EchelonRevivalCostId = TableEncryptionService.Convert(this.EchelonRevivalCostId, key); + _o.EchelonRevivalCostAmount = TableEncryptionService.Convert(this.EchelonRevivalCostAmount, key); + _o.EnemyBossHP = TableEncryptionService.Convert(this.EnemyBossHP, key); + _o.EnemyMinionHP = TableEncryptionService.Convert(this.EnemyMinionHP, key); + _o.AttackDamage = TableEncryptionService.Convert(this.AttackDamage, key); + _o.CriticalAttackDamage = TableEncryptionService.Convert(this.CriticalAttackDamage, key); + _o.RoundItemSelectLimit = TableEncryptionService.Convert(this.RoundItemSelectLimit, key); + _o.InstantClearRound = TableEncryptionService.Convert(this.InstantClearRound, key); + _o.MaxHp = TableEncryptionService.Convert(this.MaxHp, key); + _o.MapImagePath = TableEncryptionService.Convert(this.MapImagePath, key); + _o.MapNameLocalize = TableEncryptionService.Convert(this.MapNameLocalize, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGSeasonExcelT _o) { + if (_o == null) return default(Offset); + var _EchelonSlot1Portrait = _o.EchelonSlot1Portrait == null ? default(StringOffset) : builder.CreateString(_o.EchelonSlot1Portrait); + var _EchelonSlot2Portrait = _o.EchelonSlot2Portrait == null ? default(StringOffset) : builder.CreateString(_o.EchelonSlot2Portrait); + var _EchelonSlot3Portrait = _o.EchelonSlot3Portrait == null ? default(StringOffset) : builder.CreateString(_o.EchelonSlot3Portrait); + var _EchelonSlot4Portrait = _o.EchelonSlot4Portrait == null ? default(StringOffset) : builder.CreateString(_o.EchelonSlot4Portrait); + var _MapImagePath = _o.MapImagePath == null ? default(StringOffset) : builder.CreateString(_o.MapImagePath); + var _MapNameLocalize = _o.MapNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.MapNameLocalize); + return CreateMinigameTBGSeasonExcel( + builder, + _o.EventContentId, + _o.ItemSlot, + _o.DefaultEchelonHp, + _o.DefaultItemDiceId, + _o.EchelonSlot1CharacterId, + _o.EchelonSlot2CharacterId, + _o.EchelonSlot3CharacterId, + _o.EchelonSlot4CharacterId, + _EchelonSlot1Portrait, + _EchelonSlot2Portrait, + _EchelonSlot3Portrait, + _EchelonSlot4Portrait, + _o.EventUseCostType, + _o.EventUseCostId, + _o.EchelonRevivalCostType, + _o.EchelonRevivalCostId, + _o.EchelonRevivalCostAmount, + _o.EnemyBossHP, + _o.EnemyMinionHP, + _o.AttackDamage, + _o.CriticalAttackDamage, + _o.RoundItemSelectLimit, + _o.InstantClearRound, + _o.MaxHp, + _MapImagePath, + _MapNameLocalize); + } +} + +public class MinigameTBGSeasonExcelT +{ + public long EventContentId { get; set; } + public int ItemSlot { get; set; } + public int DefaultEchelonHp { get; set; } + public long DefaultItemDiceId { get; set; } + public long EchelonSlot1CharacterId { get; set; } + public long EchelonSlot2CharacterId { get; set; } + public long EchelonSlot3CharacterId { get; set; } + public long EchelonSlot4CharacterId { get; set; } + public string EchelonSlot1Portrait { get; set; } + public string EchelonSlot2Portrait { get; set; } + public string EchelonSlot3Portrait { get; set; } + public string EchelonSlot4Portrait { get; set; } + public SCHALE.Common.FlatData.ParcelType EventUseCostType { get; set; } + public long EventUseCostId { get; set; } + public SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType { get; set; } + public long EchelonRevivalCostId { get; set; } + public int EchelonRevivalCostAmount { get; set; } + public int EnemyBossHP { get; set; } + public int EnemyMinionHP { get; set; } + public int AttackDamage { get; set; } + public int CriticalAttackDamage { get; set; } + public int RoundItemSelectLimit { get; set; } + public int InstantClearRound { get; set; } + public int MaxHp { get; set; } + public string MapImagePath { get; set; } + public string MapNameLocalize { get; set; } + + public MinigameTBGSeasonExcelT() { + this.EventContentId = 0; + this.ItemSlot = 0; + this.DefaultEchelonHp = 0; + this.DefaultItemDiceId = 0; + this.EchelonSlot1CharacterId = 0; + this.EchelonSlot2CharacterId = 0; + this.EchelonSlot3CharacterId = 0; + this.EchelonSlot4CharacterId = 0; + this.EchelonSlot1Portrait = null; + this.EchelonSlot2Portrait = null; + this.EchelonSlot3Portrait = null; + this.EchelonSlot4Portrait = null; + this.EventUseCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EventUseCostId = 0; + this.EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EchelonRevivalCostId = 0; + this.EchelonRevivalCostAmount = 0; + this.EnemyBossHP = 0; + this.EnemyMinionHP = 0; + this.AttackDamage = 0; + this.CriticalAttackDamage = 0; + this.RoundItemSelectLimit = 0; + this.InstantClearRound = 0; + this.MaxHp = 0; + this.MapImagePath = null; + this.MapNameLocalize = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs index 5264e28..2e91526 100644 --- a/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGSeasonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGSeasonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGSeasonExcelTableT UnPack() { + var _o = new MinigameTBGSeasonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGSeasonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGSeasonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGSeasonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGSeasonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGSeasonExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGSeasonExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGSeasonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs index 9d7b588..67a9cab 100644 --- a/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGThemaExcel : IFlatbufferObject @@ -140,6 +141,101 @@ public struct MinigameTBGThemaExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGThemaExcelT UnPack() { + var _o = new MinigameTBGThemaExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGThemaExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGThema"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.ThemaIndex = TableEncryptionService.Convert(this.ThemaIndex, key); + _o.ThemaType = TableEncryptionService.Convert(this.ThemaType, key); + _o.ThemaMap = TableEncryptionService.Convert(this.ThemaMap, key); + _o.ThemaMapBG = TableEncryptionService.Convert(this.ThemaMapBG, key); + _o.PortalCondition = new List(); + for (var _j = 0; _j < this.PortalConditionLength; ++_j) {_o.PortalCondition.Add(TableEncryptionService.Convert(this.PortalCondition(_j), key));} + _o.PortalConditionParameter = new List(); + for (var _j = 0; _j < this.PortalConditionParameterLength; ++_j) {_o.PortalConditionParameter.Add(TableEncryptionService.Convert(this.PortalConditionParameter(_j), key));} + _o.ThemaNameLocalize = TableEncryptionService.Convert(this.ThemaNameLocalize, key); + _o.ThemaLoadingImage = TableEncryptionService.Convert(this.ThemaLoadingImage, key); + _o.ThemaPlayerPrefab = TableEncryptionService.Convert(this.ThemaPlayerPrefab, key); + _o.ThemaLeaderId = TableEncryptionService.Convert(this.ThemaLeaderId, key); + _o.ThemaGoalLocalize = TableEncryptionService.Convert(this.ThemaGoalLocalize, key); + _o.InstantClearCostAmount = TableEncryptionService.Convert(this.InstantClearCostAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGThemaExcelT _o) { + if (_o == null) return default(Offset); + var _ThemaMap = _o.ThemaMap == null ? default(StringOffset) : builder.CreateString(_o.ThemaMap); + var _ThemaMapBG = _o.ThemaMapBG == null ? default(StringOffset) : builder.CreateString(_o.ThemaMapBG); + var _PortalCondition = default(VectorOffset); + if (_o.PortalCondition != null) { + var __PortalCondition = _o.PortalCondition.ToArray(); + _PortalCondition = CreatePortalConditionVector(builder, __PortalCondition); + } + var _PortalConditionParameter = default(VectorOffset); + if (_o.PortalConditionParameter != null) { + var __PortalConditionParameter = new StringOffset[_o.PortalConditionParameter.Count]; + for (var _j = 0; _j < __PortalConditionParameter.Length; ++_j) { __PortalConditionParameter[_j] = builder.CreateString(_o.PortalConditionParameter[_j]); } + _PortalConditionParameter = CreatePortalConditionParameterVector(builder, __PortalConditionParameter); + } + var _ThemaNameLocalize = _o.ThemaNameLocalize == null ? default(StringOffset) : builder.CreateString(_o.ThemaNameLocalize); + var _ThemaLoadingImage = _o.ThemaLoadingImage == null ? default(StringOffset) : builder.CreateString(_o.ThemaLoadingImage); + var _ThemaPlayerPrefab = _o.ThemaPlayerPrefab == null ? default(StringOffset) : builder.CreateString(_o.ThemaPlayerPrefab); + var _ThemaGoalLocalize = _o.ThemaGoalLocalize == null ? default(StringOffset) : builder.CreateString(_o.ThemaGoalLocalize); + return CreateMinigameTBGThemaExcel( + builder, + _o.EventContentId, + _o.UniqueId, + _o.ThemaIndex, + _o.ThemaType, + _ThemaMap, + _ThemaMapBG, + _PortalCondition, + _PortalConditionParameter, + _ThemaNameLocalize, + _ThemaLoadingImage, + _ThemaPlayerPrefab, + _o.ThemaLeaderId, + _ThemaGoalLocalize, + _o.InstantClearCostAmount); + } +} + +public class MinigameTBGThemaExcelT +{ + public long EventContentId { get; set; } + public long UniqueId { get; set; } + public int ThemaIndex { get; set; } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get; set; } + public string ThemaMap { get; set; } + public string ThemaMapBG { get; set; } + public List PortalCondition { get; set; } + public List PortalConditionParameter { get; set; } + public string ThemaNameLocalize { get; set; } + public string ThemaLoadingImage { get; set; } + public string ThemaPlayerPrefab { get; set; } + public long ThemaLeaderId { get; set; } + public string ThemaGoalLocalize { get; set; } + public long InstantClearCostAmount { get; set; } + + public MinigameTBGThemaExcelT() { + this.EventContentId = 0; + this.UniqueId = 0; + this.ThemaIndex = 0; + this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None; + this.ThemaMap = null; + this.ThemaMapBG = null; + this.PortalCondition = null; + this.PortalConditionParameter = null; + this.ThemaNameLocalize = null; + this.ThemaLoadingImage = null; + this.ThemaPlayerPrefab = null; + this.ThemaLeaderId = 0; + this.ThemaGoalLocalize = null; + this.InstantClearCostAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs index a19486c..9310169 100644 --- a/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGThemaExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGThemaExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGThemaExcelTableT UnPack() { + var _o = new MinigameTBGThemaExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGThemaExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGThemaExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGThemaExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGThemaExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGThemaExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGThemaExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGThemaExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs index 080b373..590d467 100644 --- a/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGVoiceExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct MinigameTBGVoiceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGVoiceExcelT UnPack() { + var _o = new MinigameTBGVoiceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGVoiceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGVoice"); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.VoiceCondition = TableEncryptionService.Convert(this.VoiceCondition, key); + _o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key); + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGVoiceExcelT _o) { + if (_o == null) return default(Offset); + return CreateMinigameTBGVoiceExcel( + builder, + _o.EventContentId, + _o.UniqueId, + _o.VoiceCondition, + _o.VoiceId); + } +} + +public class MinigameTBGVoiceExcelT +{ + public long EventContentId { get; set; } + public long UniqueId { get; set; } + public SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition { get; set; } + public uint VoiceId { get; set; } + + public MinigameTBGVoiceExcelT() { + this.EventContentId = 0; + this.UniqueId = 0; + this.VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None; + this.VoiceId = 0; + } } diff --git a/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs index d3da83d..9698472 100644 --- a/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs +++ b/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MinigameTBGVoiceExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MinigameTBGVoiceExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MinigameTBGVoiceExcelTableT UnPack() { + var _o = new MinigameTBGVoiceExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MinigameTBGVoiceExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MinigameTBGVoiceExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MinigameTBGVoiceExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MinigameTBGVoiceExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMinigameTBGVoiceExcelTable( + builder, + _DataList); + } +} + +public class MinigameTBGVoiceExcelTableT +{ + public List DataList { get; set; } + + public MinigameTBGVoiceExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/MissionCompleteConditionType.cs b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs index 02534df..cbb96ea 100644 --- a/SCHALE.Common/FlatData/MissionCompleteConditionType.cs +++ b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs @@ -166,6 +166,12 @@ public enum MissionCompleteConditionType : int Reset_PotentialAttackPowerAtSpecificLevel = 156, Reset_PotentialMaxHPAtSpecificLevel = 157, Reset_PotentialHealPowerAtSpecificLevel = 158, + Reset_DreamGetSpecificParameter = 159, + Reset_DreamGetSpecificScheduleCount = 160, + Reset_DreamGetScheduleCount = 161, + Reset_DreamGetEndingCount = 162, + Reset_DreamGetSpecificEndingCount = 163, + Reset_DreamGetCollectionScenarioCount = 164, }; diff --git a/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs b/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs index deb84d2..d060eff 100644 --- a/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs +++ b/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MissionEmergencyCompleteExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct MissionEmergencyCompleteExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MissionEmergencyCompleteExcelT UnPack() { + var _o = new MissionEmergencyCompleteExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MissionEmergencyCompleteExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MissionEmergencyComplete"); + _o.MissionId = TableEncryptionService.Convert(this.MissionId, key); + _o.EmergencyComplete = TableEncryptionService.Convert(this.EmergencyComplete, key); + } + public static Offset Pack(FlatBufferBuilder builder, MissionEmergencyCompleteExcelT _o) { + if (_o == null) return default(Offset); + return CreateMissionEmergencyCompleteExcel( + builder, + _o.MissionId, + _o.EmergencyComplete); + } +} + +public class MissionEmergencyCompleteExcelT +{ + public long MissionId { get; set; } + public bool EmergencyComplete { get; set; } + + public MissionEmergencyCompleteExcelT() { + this.MissionId = 0; + this.EmergencyComplete = false; + } } diff --git a/SCHALE.Common/FlatData/MissionExcel.cs b/SCHALE.Common/FlatData/MissionExcel.cs index 7be5d9e..e3de8e1 100644 --- a/SCHALE.Common/FlatData/MissionExcel.cs +++ b/SCHALE.Common/FlatData/MissionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MissionExcel : IFlatbufferObject @@ -21,13 +22,7 @@ public struct MissionExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } - public string Description { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } -#if ENABLE_SPAN_T - public Span GetDescriptionBytes() { return __p.__vector_as_span(8, 1); } -#else - public ArraySegment? GetDescriptionBytes() { return __p.__vector_as_arraysegment(8); } -#endif - public byte[] GetDescriptionArray() { return __p.__vector_as_array(8); } + public uint Description { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -137,7 +132,7 @@ public struct MissionExcel : IFlatbufferObject public static Offset CreateMissionExcel(FlatBufferBuilder builder, long Id = 0, SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, - StringOffset DescriptionOffset = default(StringOffset), + uint Description = 0, SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), @@ -188,7 +183,7 @@ public struct MissionExcel : IFlatbufferObject MissionExcel.AddToastImagePath(builder, ToastImagePathOffset); MissionExcel.AddToastDisplayType(builder, ToastDisplayType); MissionExcel.AddResetType(builder, ResetType); - MissionExcel.AddDescription(builder, DescriptionOffset); + MissionExcel.AddDescription(builder, Description); MissionExcel.AddCategory(builder, Category); MissionExcel.AddLimit(builder, Limit); MissionExcel.AddViewFlag(builder, ViewFlag); @@ -198,7 +193,7 @@ public struct MissionExcel : IFlatbufferObject public static void StartMissionExcel(FlatBufferBuilder builder) { builder.StartTable(28); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCategory category) { builder.AddInt(1, (int)category, 0); } - public static void AddDescription(FlatBufferBuilder builder, StringOffset descriptionOffset) { builder.AddOffset(2, descriptionOffset.Value, 0); } + public static void AddDescription(FlatBufferBuilder builder, uint description) { builder.AddUint(2, description, 0); } public static void AddResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionResetType resetType) { builder.AddInt(3, (int)resetType, 0); } public static void AddToastDisplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionToastDisplayConditionType toastDisplayType) { builder.AddInt(4, (int)toastDisplayType, 0); } public static void AddToastImagePath(FlatBufferBuilder builder, StringOffset toastImagePathOffset) { builder.AddOffset(5, toastImagePathOffset.Value, 0); } @@ -268,6 +263,192 @@ public struct MissionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MissionExcelT UnPack() { + var _o = new MissionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MissionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Mission"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Category = TableEncryptionService.Convert(this.Category, key); + _o.Description = TableEncryptionService.Convert(this.Description, key); + _o.ResetType = TableEncryptionService.Convert(this.ResetType, key); + _o.ToastDisplayType = TableEncryptionService.Convert(this.ToastDisplayType, key); + _o.ToastImagePath = TableEncryptionService.Convert(this.ToastImagePath, key); + _o.ViewFlag = TableEncryptionService.Convert(this.ViewFlag, key); + _o.Limit = TableEncryptionService.Convert(this.Limit, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.EndDay = TableEncryptionService.Convert(this.EndDay, key); + _o.StartableEndDate = TableEncryptionService.Convert(this.StartableEndDate, key); + _o.DateAutoRefer = TableEncryptionService.Convert(this.DateAutoRefer, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.PreMissionId = new List(); + for (var _j = 0; _j < this.PreMissionIdLength; ++_j) {_o.PreMissionId.Add(TableEncryptionService.Convert(this.PreMissionId(_j), key));} + _o.AccountType = TableEncryptionService.Convert(this.AccountType, key); + _o.AccountLevel = TableEncryptionService.Convert(this.AccountLevel, key); + _o.ContentTags = new List(); + for (var _j = 0; _j < this.ContentTagsLength; ++_j) {_o.ContentTags.Add(TableEncryptionService.Convert(this.ContentTags(_j), key));} + _o.ShortcutUI = new List(); + for (var _j = 0; _j < this.ShortcutUILength; ++_j) {_o.ShortcutUI.Add(TableEncryptionService.Convert(this.ShortcutUI(_j), key));} + _o.ChallengeStageShortcut = TableEncryptionService.Convert(this.ChallengeStageShortcut, key); + _o.CompleteConditionType = TableEncryptionService.Convert(this.CompleteConditionType, key); + _o.CompleteConditionCount = TableEncryptionService.Convert(this.CompleteConditionCount, key); + _o.CompleteConditionParameter = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterLength; ++_j) {_o.CompleteConditionParameter.Add(TableEncryptionService.Convert(this.CompleteConditionParameter(_j), key));} + _o.CompleteConditionParameterTag = new List(); + for (var _j = 0; _j < this.CompleteConditionParameterTagLength; ++_j) {_o.CompleteConditionParameterTag.Add(TableEncryptionService.Convert(this.CompleteConditionParameterTag(_j), key));} + _o.RewardIcon = TableEncryptionService.Convert(this.RewardIcon, key); + _o.MissionRewardParcelType = new List(); + for (var _j = 0; _j < this.MissionRewardParcelTypeLength; ++_j) {_o.MissionRewardParcelType.Add(TableEncryptionService.Convert(this.MissionRewardParcelType(_j), key));} + _o.MissionRewardParcelId = new List(); + for (var _j = 0; _j < this.MissionRewardParcelIdLength; ++_j) {_o.MissionRewardParcelId.Add(TableEncryptionService.Convert(this.MissionRewardParcelId(_j), key));} + _o.MissionRewardAmount = new List(); + for (var _j = 0; _j < this.MissionRewardAmountLength; ++_j) {_o.MissionRewardAmount.Add(TableEncryptionService.Convert(this.MissionRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MissionExcelT _o) { + if (_o == null) return default(Offset); + var _ToastImagePath = _o.ToastImagePath == null ? default(StringOffset) : builder.CreateString(_o.ToastImagePath); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _StartableEndDate = _o.StartableEndDate == null ? default(StringOffset) : builder.CreateString(_o.StartableEndDate); + var _PreMissionId = default(VectorOffset); + if (_o.PreMissionId != null) { + var __PreMissionId = _o.PreMissionId.ToArray(); + _PreMissionId = CreatePreMissionIdVector(builder, __PreMissionId); + } + var _ContentTags = default(VectorOffset); + if (_o.ContentTags != null) { + var __ContentTags = _o.ContentTags.ToArray(); + _ContentTags = CreateContentTagsVector(builder, __ContentTags); + } + var _ShortcutUI = default(VectorOffset); + if (_o.ShortcutUI != null) { + var __ShortcutUI = new StringOffset[_o.ShortcutUI.Count]; + for (var _j = 0; _j < __ShortcutUI.Length; ++_j) { __ShortcutUI[_j] = builder.CreateString(_o.ShortcutUI[_j]); } + _ShortcutUI = CreateShortcutUIVector(builder, __ShortcutUI); + } + var _CompleteConditionParameter = default(VectorOffset); + if (_o.CompleteConditionParameter != null) { + var __CompleteConditionParameter = _o.CompleteConditionParameter.ToArray(); + _CompleteConditionParameter = CreateCompleteConditionParameterVector(builder, __CompleteConditionParameter); + } + var _CompleteConditionParameterTag = default(VectorOffset); + if (_o.CompleteConditionParameterTag != null) { + var __CompleteConditionParameterTag = _o.CompleteConditionParameterTag.ToArray(); + _CompleteConditionParameterTag = CreateCompleteConditionParameterTagVector(builder, __CompleteConditionParameterTag); + } + var _RewardIcon = _o.RewardIcon == null ? default(StringOffset) : builder.CreateString(_o.RewardIcon); + var _MissionRewardParcelType = default(VectorOffset); + if (_o.MissionRewardParcelType != null) { + var __MissionRewardParcelType = _o.MissionRewardParcelType.ToArray(); + _MissionRewardParcelType = CreateMissionRewardParcelTypeVector(builder, __MissionRewardParcelType); + } + var _MissionRewardParcelId = default(VectorOffset); + if (_o.MissionRewardParcelId != null) { + var __MissionRewardParcelId = _o.MissionRewardParcelId.ToArray(); + _MissionRewardParcelId = CreateMissionRewardParcelIdVector(builder, __MissionRewardParcelId); + } + var _MissionRewardAmount = default(VectorOffset); + if (_o.MissionRewardAmount != null) { + var __MissionRewardAmount = _o.MissionRewardAmount.ToArray(); + _MissionRewardAmount = CreateMissionRewardAmountVector(builder, __MissionRewardAmount); + } + return CreateMissionExcel( + builder, + _o.Id, + _o.Category, + _o.Description, + _o.ResetType, + _o.ToastDisplayType, + _ToastImagePath, + _o.ViewFlag, + _o.Limit, + _StartDate, + _EndDate, + _o.EndDay, + _StartableEndDate, + _o.DateAutoRefer, + _o.DisplayOrder, + _PreMissionId, + _o.AccountType, + _o.AccountLevel, + _ContentTags, + _ShortcutUI, + _o.ChallengeStageShortcut, + _o.CompleteConditionType, + _o.CompleteConditionCount, + _CompleteConditionParameter, + _CompleteConditionParameterTag, + _RewardIcon, + _MissionRewardParcelType, + _MissionRewardParcelId, + _MissionRewardAmount); + } +} + +public class MissionExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.MissionCategory Category { get; set; } + public uint Description { get; set; } + public SCHALE.Common.FlatData.MissionResetType ResetType { get; set; } + public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get; set; } + public string ToastImagePath { get; set; } + public bool ViewFlag { get; set; } + public bool Limit { get; set; } + public string StartDate { get; set; } + public string EndDate { get; set; } + public long EndDay { get; set; } + public string StartableEndDate { get; set; } + public SCHALE.Common.FlatData.ContentType DateAutoRefer { get; set; } + public long DisplayOrder { get; set; } + public List PreMissionId { get; set; } + public SCHALE.Common.FlatData.AccountState AccountType { get; set; } + public long AccountLevel { get; set; } + public List ContentTags { get; set; } + public List ShortcutUI { get; set; } + public long ChallengeStageShortcut { get; set; } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get; set; } + public long CompleteConditionCount { get; set; } + public List CompleteConditionParameter { get; set; } + public List CompleteConditionParameterTag { get; set; } + public string RewardIcon { get; set; } + public List MissionRewardParcelType { get; set; } + public List MissionRewardParcelId { get; set; } + public List MissionRewardAmount { get; set; } + + public MissionExcelT() { + this.Id = 0; + this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; + this.Description = 0; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; + this.ToastImagePath = null; + this.ViewFlag = false; + this.Limit = false; + this.StartDate = null; + this.EndDate = null; + this.EndDay = 0; + this.StartableEndDate = null; + this.DateAutoRefer = SCHALE.Common.FlatData.ContentType.None; + this.DisplayOrder = 0; + this.PreMissionId = null; + this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; + this.AccountLevel = 0; + this.ContentTags = null; + this.ShortcutUI = null; + this.ChallengeStageShortcut = 0; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionCount = 0; + this.CompleteConditionParameter = null; + this.CompleteConditionParameterTag = null; + this.RewardIcon = null; + this.MissionRewardParcelType = null; + this.MissionRewardParcelId = null; + this.MissionRewardAmount = null; + } } @@ -278,7 +459,7 @@ static public class MissionExcelVerify return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*Category*/, 4 /*SCHALE.Common.FlatData.MissionCategory*/, 4, false) - && verifier.VerifyString(tablePos, 8 /*Description*/, false) + && verifier.VerifyField(tablePos, 8 /*Description*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 10 /*ResetType*/, 4 /*SCHALE.Common.FlatData.MissionResetType*/, 4, false) && verifier.VerifyField(tablePos, 12 /*ToastDisplayType*/, 4 /*SCHALE.Common.FlatData.MissionToastDisplayConditionType*/, 4, false) && verifier.VerifyString(tablePos, 14 /*ToastImagePath*/, false) diff --git a/SCHALE.Common/FlatData/MissionExcelTable.cs b/SCHALE.Common/FlatData/MissionExcelTable.cs index 433d9cc..d32859e 100644 --- a/SCHALE.Common/FlatData/MissionExcelTable.cs +++ b/SCHALE.Common/FlatData/MissionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MissionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct MissionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MissionExcelTableT UnPack() { + var _o = new MissionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MissionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("MissionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MissionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.MissionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateMissionExcelTable( + builder, + _DataList); + } +} + +public class MissionExcelTableT +{ + public List DataList { get; set; } + + public MissionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/Motion.cs b/SCHALE.Common/FlatData/Motion.cs index 1efde0c..be4a37f 100644 --- a/SCHALE.Common/FlatData/Motion.cs +++ b/SCHALE.Common/FlatData/Motion.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct Motion : IFlatbufferObject @@ -50,6 +51,42 @@ public struct Motion : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MotionT UnPack() { + var _o = new MotionT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MotionT _o) { + byte[] key = { 0 }; + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Positions = new List(); + for (var _j = 0; _j < this.PositionsLength; ++_j) {_o.Positions.Add(this.Positions(_j).HasValue ? this.Positions(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, MotionT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _Positions = default(VectorOffset); + if (_o.Positions != null) { + var __Positions = new Offset[_o.Positions.Count]; + for (var _j = 0; _j < __Positions.Length; ++_j) { __Positions[_j] = SCHALE.Common.FlatData.Position.Pack(builder, _o.Positions[_j]); } + _Positions = CreatePositionsVector(builder, __Positions); + } + return CreateMotion( + builder, + _Name, + _Positions); + } +} + +public class MotionT +{ + public string Name { get; set; } + public List Positions { get; set; } + + public MotionT() { + this.Name = null; + this.Positions = null; + } } diff --git a/SCHALE.Common/FlatData/MoveEnd.cs b/SCHALE.Common/FlatData/MoveEndTable.cs similarity index 53% rename from SCHALE.Common/FlatData/MoveEnd.cs rename to SCHALE.Common/FlatData/MoveEndTable.cs index 66007b9..466083f 100644 --- a/SCHALE.Common/FlatData/MoveEnd.cs +++ b/SCHALE.Common/FlatData/MoveEndTable.cs @@ -7,40 +7,76 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; -public struct MoveEnd : IFlatbufferObject +public struct MoveEndTable : IFlatbufferObject { private Table __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static MoveEnd GetRootAsMoveEndTable(ByteBuffer _bb) { return GetRootAsMoveEndTable(_bb, new MoveEnd()); } - public static MoveEnd GetRootAsMoveEndTable(ByteBuffer _bb, MoveEnd obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public static MoveEndTable GetRootAsMoveEndTable(ByteBuffer _bb) { return GetRootAsMoveEndTable(_bb, new MoveEndTable()); } + public static MoveEndTable GetRootAsMoveEndTable(ByteBuffer _bb, MoveEndTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public MoveEnd __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + public MoveEndTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public SCHALE.Common.FlatData.Motion? Normal { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } public SCHALE.Common.FlatData.Motion? Stand { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } public SCHALE.Common.FlatData.Motion? Kneel { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } - public static Offset CreateMoveEndTable(FlatBufferBuilder builder, + public static Offset CreateMoveEndTable(FlatBufferBuilder builder, Offset NormalOffset = default(Offset), Offset StandOffset = default(Offset), Offset KneelOffset = default(Offset)) { builder.StartTable(3); - MoveEnd.AddKneel(builder, KneelOffset); - MoveEnd.AddStand(builder, StandOffset); - MoveEnd.AddNormal(builder, NormalOffset); - return MoveEnd.EndMoveEndTable(builder); + MoveEndTable.AddKneel(builder, KneelOffset); + MoveEndTable.AddStand(builder, StandOffset); + MoveEndTable.AddNormal(builder, NormalOffset); + return MoveEndTable.EndMoveEndTable(builder); } public static void StartMoveEndTable(FlatBufferBuilder builder) { builder.StartTable(3); } public static void AddNormal(FlatBufferBuilder builder, Offset normalOffset) { builder.AddOffset(0, normalOffset.Value, 0); } public static void AddStand(FlatBufferBuilder builder, Offset standOffset) { builder.AddOffset(1, standOffset.Value, 0); } public static void AddKneel(FlatBufferBuilder builder, Offset kneelOffset) { builder.AddOffset(2, kneelOffset.Value, 0); } - public static Offset EndMoveEndTable(FlatBufferBuilder builder) { + public static Offset EndMoveEndTable(FlatBufferBuilder builder) { int o = builder.EndTable(); - return new Offset(o); + return new Offset(o); + } + public MoveEndTableT UnPack() { + var _o = new MoveEndTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MoveEndTableT _o) { + byte[] key = { 0 }; + _o.Normal = this.Normal.HasValue ? this.Normal.Value.UnPack() : null; + _o.Stand = this.Stand.HasValue ? this.Stand.Value.UnPack() : null; + _o.Kneel = this.Kneel.HasValue ? this.Kneel.Value.UnPack() : null; + } + public static Offset Pack(FlatBufferBuilder builder, MoveEndTableT _o) { + if (_o == null) return default(Offset); + var _Normal = _o.Normal == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.Normal); + var _Stand = _o.Stand == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.Stand); + var _Kneel = _o.Kneel == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.Kneel); + return CreateMoveEndTable( + builder, + _Normal, + _Stand, + _Kneel); + } +} + +public class MoveEndTableT +{ + public SCHALE.Common.FlatData.MotionT Normal { get; set; } + public SCHALE.Common.FlatData.MotionT Stand { get; set; } + public SCHALE.Common.FlatData.MotionT Kneel { get; set; } + + public MoveEndTableT() { + this.Normal = null; + this.Stand = null; + this.Kneel = null; } } diff --git a/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs index 983d8bf..cfd614c 100644 --- a/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs +++ b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MultiFloorRaidRewardExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct MultiFloorRaidRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MultiFloorRaidRewardExcelT UnPack() { + var _o = new MultiFloorRaidRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MultiFloorRaidRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MultiFloorRaidReward"); + _o.RewardGroupId = TableEncryptionService.Convert(this.RewardGroupId, key); + _o.ClearStageRewardProb = TableEncryptionService.Convert(this.ClearStageRewardProb, key); + _o.ClearStageRewardParcelType = TableEncryptionService.Convert(this.ClearStageRewardParcelType, key); + _o.ClearStageRewardParcelUniqueID = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueID, key); + _o.ClearStageRewardAmount = TableEncryptionService.Convert(this.ClearStageRewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, MultiFloorRaidRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateMultiFloorRaidRewardExcel( + builder, + _o.RewardGroupId, + _o.ClearStageRewardProb, + _o.ClearStageRewardParcelType, + _o.ClearStageRewardParcelUniqueID, + _o.ClearStageRewardAmount); + } +} + +public class MultiFloorRaidRewardExcelT +{ + public long RewardGroupId { get; set; } + public long ClearStageRewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get; set; } + public long ClearStageRewardParcelUniqueID { get; set; } + public long ClearStageRewardAmount { get; set; } + + public MultiFloorRaidRewardExcelT() { + this.RewardGroupId = 0; + this.ClearStageRewardProb = 0; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelUniqueID = 0; + this.ClearStageRewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs index 6e28b82..d208076 100644 --- a/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs +++ b/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MultiFloorRaidSeasonManageExcel : IFlatbufferObject @@ -106,6 +107,72 @@ public struct MultiFloorRaidSeasonManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MultiFloorRaidSeasonManageExcelT UnPack() { + var _o = new MultiFloorRaidSeasonManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MultiFloorRaidSeasonManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MultiFloorRaidSeasonManage"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.LobbyEnterScenario = TableEncryptionService.Convert(this.LobbyEnterScenario, key); + _o.ShowLobbyBanner = TableEncryptionService.Convert(this.ShowLobbyBanner, key); + _o.SeasonStartDate = TableEncryptionService.Convert(this.SeasonStartDate, key); + _o.SeasonEndDate = TableEncryptionService.Convert(this.SeasonEndDate, key); + _o.SettlementEndDate = TableEncryptionService.Convert(this.SettlementEndDate, key); + _o.OpenRaidBossGroupId = TableEncryptionService.Convert(this.OpenRaidBossGroupId, key); + _o.EnterScenarioKey = TableEncryptionService.Convert(this.EnterScenarioKey, key); + _o.LobbyImgPath = TableEncryptionService.Convert(this.LobbyImgPath, key); + _o.LevelImgPath = TableEncryptionService.Convert(this.LevelImgPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, MultiFloorRaidSeasonManageExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonStartDate = _o.SeasonStartDate == null ? default(StringOffset) : builder.CreateString(_o.SeasonStartDate); + var _SeasonEndDate = _o.SeasonEndDate == null ? default(StringOffset) : builder.CreateString(_o.SeasonEndDate); + var _SettlementEndDate = _o.SettlementEndDate == null ? default(StringOffset) : builder.CreateString(_o.SettlementEndDate); + var _OpenRaidBossGroupId = _o.OpenRaidBossGroupId == null ? default(StringOffset) : builder.CreateString(_o.OpenRaidBossGroupId); + var _LobbyImgPath = _o.LobbyImgPath == null ? default(StringOffset) : builder.CreateString(_o.LobbyImgPath); + var _LevelImgPath = _o.LevelImgPath == null ? default(StringOffset) : builder.CreateString(_o.LevelImgPath); + return CreateMultiFloorRaidSeasonManageExcel( + builder, + _o.SeasonId, + _o.LobbyEnterScenario, + _o.ShowLobbyBanner, + _SeasonStartDate, + _SeasonEndDate, + _SettlementEndDate, + _OpenRaidBossGroupId, + _o.EnterScenarioKey, + _LobbyImgPath, + _LevelImgPath); + } +} + +public class MultiFloorRaidSeasonManageExcelT +{ + public long SeasonId { get; set; } + public uint LobbyEnterScenario { get; set; } + public bool ShowLobbyBanner { get; set; } + public string SeasonStartDate { get; set; } + public string SeasonEndDate { get; set; } + public string SettlementEndDate { get; set; } + public string OpenRaidBossGroupId { get; set; } + public uint EnterScenarioKey { get; set; } + public string LobbyImgPath { get; set; } + public string LevelImgPath { get; set; } + + public MultiFloorRaidSeasonManageExcelT() { + this.SeasonId = 0; + this.LobbyEnterScenario = 0; + this.ShowLobbyBanner = false; + this.SeasonStartDate = null; + this.SeasonEndDate = null; + this.SettlementEndDate = null; + this.OpenRaidBossGroupId = null; + this.EnterScenarioKey = 0; + this.LobbyImgPath = null; + this.LevelImgPath = null; + } } diff --git a/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs index 84d8727..0b50187 100644 --- a/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs +++ b/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MultiFloorRaidStageExcel : IFlatbufferObject @@ -208,6 +209,161 @@ public struct MultiFloorRaidStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MultiFloorRaidStageExcelT UnPack() { + var _o = new MultiFloorRaidStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MultiFloorRaidStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MultiFloorRaidStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + _o.BossGroupId = TableEncryptionService.Convert(this.BossGroupId, key); + _o.AssistSlot = TableEncryptionService.Convert(this.AssistSlot, key); + _o.StageOpenCondition = TableEncryptionService.Convert(this.StageOpenCondition, key); + _o.FloorListSection = TableEncryptionService.Convert(this.FloorListSection, key); + _o.FloorListSectionOpenCondition = TableEncryptionService.Convert(this.FloorListSectionOpenCondition, key); + _o.FloorListSectionLabel = TableEncryptionService.Convert(this.FloorListSectionLabel, key); + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.UseBossIndex = TableEncryptionService.Convert(this.UseBossIndex, key); + _o.UseBossAIPhaseSync = TableEncryptionService.Convert(this.UseBossAIPhaseSync, key); + _o.FloorListImgPath = TableEncryptionService.Convert(this.FloorListImgPath, key); + _o.FloorImgPath = TableEncryptionService.Convert(this.FloorImgPath, key); + _o.RaidCharacterId = TableEncryptionService.Convert(this.RaidCharacterId, key); + _o.BossCharacterId = new List(); + for (var _j = 0; _j < this.BossCharacterIdLength; ++_j) {_o.BossCharacterId.Add(TableEncryptionService.Convert(this.BossCharacterId(_j), key));} + _o.StatChangeId = new List(); + for (var _j = 0; _j < this.StatChangeIdLength; ++_j) {_o.StatChangeId.Add(TableEncryptionService.Convert(this.StatChangeId(_j), key));} + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.RecommendLevel = TableEncryptionService.Convert(this.RecommendLevel, key); + _o.RewardGroupId = TableEncryptionService.Convert(this.RewardGroupId, key); + _o.BattleReadyTimelinePath = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePathLength; ++_j) {_o.BattleReadyTimelinePath.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePath(_j), key));} + _o.BattleReadyTimelinePhaseStart = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseStartLength; ++_j) {_o.BattleReadyTimelinePhaseStart.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseStart(_j), key));} + _o.BattleReadyTimelinePhaseEnd = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseEndLength; ++_j) {_o.BattleReadyTimelinePhaseEnd.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseEnd(_j), key));} + _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); + _o.ShowSkillCard = TableEncryptionService.Convert(this.ShowSkillCard, key); + } + public static Offset Pack(FlatBufferBuilder builder, MultiFloorRaidStageExcelT _o) { + if (_o == null) return default(Offset); + var _BossGroupId = _o.BossGroupId == null ? default(StringOffset) : builder.CreateString(_o.BossGroupId); + var _FloorListImgPath = _o.FloorListImgPath == null ? default(StringOffset) : builder.CreateString(_o.FloorListImgPath); + var _FloorImgPath = _o.FloorImgPath == null ? default(StringOffset) : builder.CreateString(_o.FloorImgPath); + var _BossCharacterId = default(VectorOffset); + if (_o.BossCharacterId != null) { + var __BossCharacterId = _o.BossCharacterId.ToArray(); + _BossCharacterId = CreateBossCharacterIdVector(builder, __BossCharacterId); + } + var _StatChangeId = default(VectorOffset); + if (_o.StatChangeId != null) { + var __StatChangeId = _o.StatChangeId.ToArray(); + _StatChangeId = CreateStatChangeIdVector(builder, __StatChangeId); + } + var _BattleReadyTimelinePath = default(VectorOffset); + if (_o.BattleReadyTimelinePath != null) { + var __BattleReadyTimelinePath = new StringOffset[_o.BattleReadyTimelinePath.Count]; + for (var _j = 0; _j < __BattleReadyTimelinePath.Length; ++_j) { __BattleReadyTimelinePath[_j] = builder.CreateString(_o.BattleReadyTimelinePath[_j]); } + _BattleReadyTimelinePath = CreateBattleReadyTimelinePathVector(builder, __BattleReadyTimelinePath); + } + var _BattleReadyTimelinePhaseStart = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseStart != null) { + var __BattleReadyTimelinePhaseStart = _o.BattleReadyTimelinePhaseStart.ToArray(); + _BattleReadyTimelinePhaseStart = CreateBattleReadyTimelinePhaseStartVector(builder, __BattleReadyTimelinePhaseStart); + } + var _BattleReadyTimelinePhaseEnd = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseEnd != null) { + var __BattleReadyTimelinePhaseEnd = _o.BattleReadyTimelinePhaseEnd.ToArray(); + _BattleReadyTimelinePhaseEnd = CreateBattleReadyTimelinePhaseEndVector(builder, __BattleReadyTimelinePhaseEnd); + } + var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); + return CreateMultiFloorRaidStageExcel( + builder, + _o.Id, + _o.EchelonExtensionType, + _BossGroupId, + _o.AssistSlot, + _o.StageOpenCondition, + _o.FloorListSection, + _o.FloorListSectionOpenCondition, + _o.FloorListSectionLabel, + _o.Difficulty, + _o.UseBossIndex, + _o.UseBossAIPhaseSync, + _FloorListImgPath, + _FloorImgPath, + _o.RaidCharacterId, + _BossCharacterId, + _StatChangeId, + _o.BattleDuration, + _o.GroundId, + _o.RecommendLevel, + _o.RewardGroupId, + _BattleReadyTimelinePath, + _BattleReadyTimelinePhaseStart, + _BattleReadyTimelinePhaseEnd, + _VictoryTimelinePath, + _o.ShowSkillCard); + } +} + +public class MultiFloorRaidStageExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + public string BossGroupId { get; set; } + public int AssistSlot { get; set; } + public long StageOpenCondition { get; set; } + public bool FloorListSection { get; set; } + public long FloorListSectionOpenCondition { get; set; } + public uint FloorListSectionLabel { get; set; } + public int Difficulty { get; set; } + public bool UseBossIndex { get; set; } + public bool UseBossAIPhaseSync { get; set; } + public string FloorListImgPath { get; set; } + public string FloorImgPath { get; set; } + public long RaidCharacterId { get; set; } + public List BossCharacterId { get; set; } + public List StatChangeId { get; set; } + public long BattleDuration { get; set; } + public long GroundId { get; set; } + public long RecommendLevel { get; set; } + public long RewardGroupId { get; set; } + public List BattleReadyTimelinePath { get; set; } + public List BattleReadyTimelinePhaseStart { get; set; } + public List BattleReadyTimelinePhaseEnd { get; set; } + public string VictoryTimelinePath { get; set; } + public bool ShowSkillCard { get; set; } + + public MultiFloorRaidStageExcelT() { + this.Id = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + this.BossGroupId = null; + this.AssistSlot = 0; + this.StageOpenCondition = 0; + this.FloorListSection = false; + this.FloorListSectionOpenCondition = 0; + this.FloorListSectionLabel = 0; + this.Difficulty = 0; + this.UseBossIndex = false; + this.UseBossAIPhaseSync = false; + this.FloorListImgPath = null; + this.FloorImgPath = null; + this.RaidCharacterId = 0; + this.BossCharacterId = null; + this.StatChangeId = null; + this.BattleDuration = 0; + this.GroundId = 0; + this.RecommendLevel = 0; + this.RewardGroupId = 0; + this.BattleReadyTimelinePath = null; + this.BattleReadyTimelinePhaseStart = null; + this.BattleReadyTimelinePhaseEnd = null; + this.VictoryTimelinePath = null; + this.ShowSkillCard = false; + } } diff --git a/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs index 913f760..6d26d9f 100644 --- a/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs +++ b/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct MultiFloorRaidStatChangeExcel : IFlatbufferObject @@ -98,6 +99,70 @@ public struct MultiFloorRaidStatChangeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public MultiFloorRaidStatChangeExcelT UnPack() { + var _o = new MultiFloorRaidStatChangeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(MultiFloorRaidStatChangeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("MultiFloorRaidStatChange"); + _o.StatChangeId = TableEncryptionService.Convert(this.StatChangeId, key); + _o.StatType_ = new List(); + for (var _j = 0; _j < this.StatType_Length; ++_j) {_o.StatType_.Add(TableEncryptionService.Convert(this.StatType_(_j), key));} + _o.StatAdd = new List(); + for (var _j = 0; _j < this.StatAddLength; ++_j) {_o.StatAdd.Add(TableEncryptionService.Convert(this.StatAdd(_j), key));} + _o.StatMultiply = new List(); + for (var _j = 0; _j < this.StatMultiplyLength; ++_j) {_o.StatMultiply.Add(TableEncryptionService.Convert(this.StatMultiply(_j), key));} + _o.ApplyCharacterId = new List(); + for (var _j = 0; _j < this.ApplyCharacterIdLength; ++_j) {_o.ApplyCharacterId.Add(TableEncryptionService.Convert(this.ApplyCharacterId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, MultiFloorRaidStatChangeExcelT _o) { + if (_o == null) return default(Offset); + var _StatType_ = default(VectorOffset); + if (_o.StatType_ != null) { + var __StatType_ = _o.StatType_.ToArray(); + _StatType_ = CreateStatType_Vector(builder, __StatType_); + } + var _StatAdd = default(VectorOffset); + if (_o.StatAdd != null) { + var __StatAdd = _o.StatAdd.ToArray(); + _StatAdd = CreateStatAddVector(builder, __StatAdd); + } + var _StatMultiply = default(VectorOffset); + if (_o.StatMultiply != null) { + var __StatMultiply = _o.StatMultiply.ToArray(); + _StatMultiply = CreateStatMultiplyVector(builder, __StatMultiply); + } + var _ApplyCharacterId = default(VectorOffset); + if (_o.ApplyCharacterId != null) { + var __ApplyCharacterId = _o.ApplyCharacterId.ToArray(); + _ApplyCharacterId = CreateApplyCharacterIdVector(builder, __ApplyCharacterId); + } + return CreateMultiFloorRaidStatChangeExcel( + builder, + _o.StatChangeId, + _StatType_, + _StatAdd, + _StatMultiply, + _ApplyCharacterId); + } +} + +public class MultiFloorRaidStatChangeExcelT +{ + public long StatChangeId { get; set; } + public List StatType_ { get; set; } + public List StatAdd { get; set; } + public List StatMultiply { get; set; } + public List ApplyCharacterId { get; set; } + + public MultiFloorRaidStatChangeExcelT() { + this.StatChangeId = 0; + this.StatType_ = null; + this.StatAdd = null; + this.StatMultiply = null; + this.ApplyCharacterId = null; + } } diff --git a/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs b/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs index 99c5d2f..879aaa2 100644 --- a/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs +++ b/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct NormalSkillTemplateExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct NormalSkillTemplateExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public NormalSkillTemplateExcelT UnPack() { + var _o = new NormalSkillTemplateExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(NormalSkillTemplateExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("NormalSkillTemplate"); + _o.Index = TableEncryptionService.Convert(this.Index, key); + _o.FirstCoolTime = TableEncryptionService.Convert(this.FirstCoolTime, key); + _o.CoolTime = TableEncryptionService.Convert(this.CoolTime, key); + _o.MultiAni = TableEncryptionService.Convert(this.MultiAni, key); + } + public static Offset Pack(FlatBufferBuilder builder, NormalSkillTemplateExcelT _o) { + if (_o == null) return default(Offset); + return CreateNormalSkillTemplateExcel( + builder, + _o.Index, + _o.FirstCoolTime, + _o.CoolTime, + _o.MultiAni); + } +} + +public class NormalSkillTemplateExcelT +{ + public long Index { get; set; } + public float FirstCoolTime { get; set; } + public float CoolTime { get; set; } + public bool MultiAni { get; set; } + + public NormalSkillTemplateExcelT() { + this.Index = 0; + this.FirstCoolTime = 0.0f; + this.CoolTime = 0.0f; + this.MultiAni = false; + } } diff --git a/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs b/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs index 8a0836e..f335fcc 100644 --- a/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs +++ b/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct NormalSkillTemplateExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct NormalSkillTemplateExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public NormalSkillTemplateExcelTableT UnPack() { + var _o = new NormalSkillTemplateExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(NormalSkillTemplateExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("NormalSkillTemplateExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, NormalSkillTemplateExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.NormalSkillTemplateExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateNormalSkillTemplateExcelTable( + builder, + _DataList); + } +} + +public class NormalSkillTemplateExcelTableT +{ + public List DataList { get; set; } + + public NormalSkillTemplateExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ObstacleExcel.cs b/SCHALE.Common/FlatData/ObstacleExcel.cs index 76fa6df..36853c8 100644 --- a/SCHALE.Common/FlatData/ObstacleExcel.cs +++ b/SCHALE.Common/FlatData/ObstacleExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleExcel : IFlatbufferObject @@ -172,6 +173,127 @@ public struct ObstacleExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleExcelT UnPack() { + var _o = new ObstacleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Obstacle"); + _o.Index = TableEncryptionService.Convert(this.Index, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.JumpAble = TableEncryptionService.Convert(this.JumpAble, key); + _o.SubOffset = new List(); + for (var _j = 0; _j < this.SubOffsetLength; ++_j) {_o.SubOffset.Add(TableEncryptionService.Convert(this.SubOffset(_j), key));} + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Z = TableEncryptionService.Convert(this.Z, key); + _o.Hp = TableEncryptionService.Convert(this.Hp, key); + _o.MaxHp = TableEncryptionService.Convert(this.MaxHp, key); + _o.BlockRate = TableEncryptionService.Convert(this.BlockRate, key); + _o.EvasionRate = TableEncryptionService.Convert(this.EvasionRate, key); + _o.DestroyType = TableEncryptionService.Convert(this.DestroyType, key); + _o.Point1Offeset = new List(); + for (var _j = 0; _j < this.Point1OffesetLength; ++_j) {_o.Point1Offeset.Add(TableEncryptionService.Convert(this.Point1Offeset(_j), key));} + _o.EnemyPoint1Osset = new List(); + for (var _j = 0; _j < this.EnemyPoint1OssetLength; ++_j) {_o.EnemyPoint1Osset.Add(TableEncryptionService.Convert(this.EnemyPoint1Osset(_j), key));} + _o.Point2Offeset = new List(); + for (var _j = 0; _j < this.Point2OffesetLength; ++_j) {_o.Point2Offeset.Add(TableEncryptionService.Convert(this.Point2Offeset(_j), key));} + _o.EnemyPoint2Osset = new List(); + for (var _j = 0; _j < this.EnemyPoint2OssetLength; ++_j) {_o.EnemyPoint2Osset.Add(TableEncryptionService.Convert(this.EnemyPoint2Osset(_j), key));} + _o.SubObstacleID = new List(); + for (var _j = 0; _j < this.SubObstacleIDLength; ++_j) {_o.SubObstacleID.Add(TableEncryptionService.Convert(this.SubObstacleID(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleExcelT _o) { + if (_o == null) return default(Offset); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _SubOffset = default(VectorOffset); + if (_o.SubOffset != null) { + var __SubOffset = _o.SubOffset.ToArray(); + _SubOffset = CreateSubOffsetVector(builder, __SubOffset); + } + var _Point1Offeset = default(VectorOffset); + if (_o.Point1Offeset != null) { + var __Point1Offeset = _o.Point1Offeset.ToArray(); + _Point1Offeset = CreatePoint1OffesetVector(builder, __Point1Offeset); + } + var _EnemyPoint1Osset = default(VectorOffset); + if (_o.EnemyPoint1Osset != null) { + var __EnemyPoint1Osset = _o.EnemyPoint1Osset.ToArray(); + _EnemyPoint1Osset = CreateEnemyPoint1OssetVector(builder, __EnemyPoint1Osset); + } + var _Point2Offeset = default(VectorOffset); + if (_o.Point2Offeset != null) { + var __Point2Offeset = _o.Point2Offeset.ToArray(); + _Point2Offeset = CreatePoint2OffesetVector(builder, __Point2Offeset); + } + var _EnemyPoint2Osset = default(VectorOffset); + if (_o.EnemyPoint2Osset != null) { + var __EnemyPoint2Osset = _o.EnemyPoint2Osset.ToArray(); + _EnemyPoint2Osset = CreateEnemyPoint2OssetVector(builder, __EnemyPoint2Osset); + } + var _SubObstacleID = default(VectorOffset); + if (_o.SubObstacleID != null) { + var __SubObstacleID = _o.SubObstacleID.ToArray(); + _SubObstacleID = CreateSubObstacleIDVector(builder, __SubObstacleID); + } + return CreateObstacleExcel( + builder, + _o.Index, + _PrefabName, + _o.JumpAble, + _SubOffset, + _o.X, + _o.Z, + _o.Hp, + _o.MaxHp, + _o.BlockRate, + _o.EvasionRate, + _o.DestroyType, + _Point1Offeset, + _EnemyPoint1Osset, + _Point2Offeset, + _EnemyPoint2Osset, + _SubObstacleID); + } +} + +public class ObstacleExcelT +{ + public long Index { get; set; } + public string PrefabName { get; set; } + public bool JumpAble { get; set; } + public List SubOffset { get; set; } + public float X { get; set; } + public float Z { get; set; } + public long Hp { get; set; } + public long MaxHp { get; set; } + public int BlockRate { get; set; } + public int EvasionRate { get; set; } + public SCHALE.Common.FlatData.ObstacleDestroyType DestroyType { get; set; } + public List Point1Offeset { get; set; } + public List EnemyPoint1Osset { get; set; } + public List Point2Offeset { get; set; } + public List EnemyPoint2Osset { get; set; } + public List SubObstacleID { get; set; } + + public ObstacleExcelT() { + this.Index = 0; + this.PrefabName = null; + this.JumpAble = false; + this.SubOffset = null; + this.X = 0.0f; + this.Z = 0.0f; + this.Hp = 0; + this.MaxHp = 0; + this.BlockRate = 0; + this.EvasionRate = 0; + this.DestroyType = SCHALE.Common.FlatData.ObstacleDestroyType.Remain; + this.Point1Offeset = null; + this.EnemyPoint1Osset = null; + this.Point2Offeset = null; + this.EnemyPoint2Osset = null; + this.SubObstacleID = null; + } } diff --git a/SCHALE.Common/FlatData/ObstacleExcelTable.cs b/SCHALE.Common/FlatData/ObstacleExcelTable.cs index 8f2060d..6bb1738 100644 --- a/SCHALE.Common/FlatData/ObstacleExcelTable.cs +++ b/SCHALE.Common/FlatData/ObstacleExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ObstacleExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleExcelTableT UnPack() { + var _o = new ObstacleExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ObstacleExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ObstacleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateObstacleExcelTable( + builder, + _DataList); + } +} + +public class ObstacleExcelTableT +{ + public List DataList { get; set; } + + public ObstacleExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs index 1dcf462..376e10e 100644 --- a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs +++ b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleFireLineCheckExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct ObstacleFireLineCheckExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleFireLineCheckExcelT UnPack() { + var _o = new ObstacleFireLineCheckExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleFireLineCheckExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ObstacleFireLineCheck"); + _o.MyObstacleFireLineCheck = TableEncryptionService.Convert(this.MyObstacleFireLineCheck, key); + _o.AllyObstacleFireLineCheck = TableEncryptionService.Convert(this.AllyObstacleFireLineCheck, key); + _o.EnemyObstacleFireLineCheck = TableEncryptionService.Convert(this.EnemyObstacleFireLineCheck, key); + _o.EmptyObstacleFireLineCheck = TableEncryptionService.Convert(this.EmptyObstacleFireLineCheck, key); + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleFireLineCheckExcelT _o) { + if (_o == null) return default(Offset); + return CreateObstacleFireLineCheckExcel( + builder, + _o.MyObstacleFireLineCheck, + _o.AllyObstacleFireLineCheck, + _o.EnemyObstacleFireLineCheck, + _o.EmptyObstacleFireLineCheck); + } +} + +public class ObstacleFireLineCheckExcelT +{ + public bool MyObstacleFireLineCheck { get; set; } + public bool AllyObstacleFireLineCheck { get; set; } + public bool EnemyObstacleFireLineCheck { get; set; } + public bool EmptyObstacleFireLineCheck { get; set; } + + public ObstacleFireLineCheckExcelT() { + this.MyObstacleFireLineCheck = false; + this.AllyObstacleFireLineCheck = false; + this.EnemyObstacleFireLineCheck = false; + this.EmptyObstacleFireLineCheck = false; + } } diff --git a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs index 85d3edb..52c9ce4 100644 --- a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs +++ b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleFireLineCheckExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ObstacleFireLineCheckExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleFireLineCheckExcelTableT UnPack() { + var _o = new ObstacleFireLineCheckExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleFireLineCheckExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ObstacleFireLineCheckExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleFireLineCheckExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ObstacleFireLineCheckExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateObstacleFireLineCheckExcelTable( + builder, + _DataList); + } +} + +public class ObstacleFireLineCheckExcelTableT +{ + public List DataList { get; set; } + + public ObstacleFireLineCheckExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ObstacleStatExcel.cs b/SCHALE.Common/FlatData/ObstacleStatExcel.cs index f3d0f32..62278bf 100644 --- a/SCHALE.Common/FlatData/ObstacleStatExcel.cs +++ b/SCHALE.Common/FlatData/ObstacleStatExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleStatExcel : IFlatbufferObject @@ -68,6 +69,59 @@ public struct ObstacleStatExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleStatExcelT UnPack() { + var _o = new ObstacleStatExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleStatExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ObstacleStat"); + _o.StringID = TableEncryptionService.Convert(this.StringID, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.MaxHP1 = TableEncryptionService.Convert(this.MaxHP1, key); + _o.MaxHP100 = TableEncryptionService.Convert(this.MaxHP100, key); + _o.BlockRate = TableEncryptionService.Convert(this.BlockRate, key); + _o.Dodge = TableEncryptionService.Convert(this.Dodge, key); + _o.CanNotStandRange = TableEncryptionService.Convert(this.CanNotStandRange, key); + _o.HighlightFloaterHeight = TableEncryptionService.Convert(this.HighlightFloaterHeight, key); + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleStatExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + return CreateObstacleStatExcel( + builder, + _o.StringID, + _Name, + _o.MaxHP1, + _o.MaxHP100, + _o.BlockRate, + _o.Dodge, + _o.CanNotStandRange, + _o.HighlightFloaterHeight); + } +} + +public class ObstacleStatExcelT +{ + public uint StringID { get; set; } + public string Name { get; set; } + public long MaxHP1 { get; set; } + public long MaxHP100 { get; set; } + public long BlockRate { get; set; } + public long Dodge { get; set; } + public long CanNotStandRange { get; set; } + public float HighlightFloaterHeight { get; set; } + + public ObstacleStatExcelT() { + this.StringID = 0; + this.Name = null; + this.MaxHP1 = 0; + this.MaxHP100 = 0; + this.BlockRate = 0; + this.Dodge = 0; + this.CanNotStandRange = 0; + this.HighlightFloaterHeight = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs b/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs index 4df9158..8b5d619 100644 --- a/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs +++ b/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ObstacleStatExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ObstacleStatExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ObstacleStatExcelTableT UnPack() { + var _o = new ObstacleStatExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ObstacleStatExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ObstacleStatExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ObstacleStatExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ObstacleStatExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateObstacleStatExcelTable( + builder, + _DataList); + } +} + +public class ObstacleStatExcelTableT +{ + public List DataList { get; set; } + + public ObstacleStatExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/OpenConditionContent.cs b/SCHALE.Common/FlatData/OpenConditionContent.cs index fb19a49..494e3bf 100644 --- a/SCHALE.Common/FlatData/OpenConditionContent.cs +++ b/SCHALE.Common/FlatData/OpenConditionContent.cs @@ -61,6 +61,8 @@ public enum OpenConditionContent : int Cafe_2 = 51, Cafe_Invite_2 = 52, MultiFloorRaid = 53, + StrategySkip = 54, + MinigameDreamMaker = 55, }; diff --git a/SCHALE.Common/FlatData/OpenConditionExcel.cs b/SCHALE.Common/FlatData/OpenConditionExcel.cs index f2a057c..bb23215 100644 --- a/SCHALE.Common/FlatData/OpenConditionExcel.cs +++ b/SCHALE.Common/FlatData/OpenConditionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct OpenConditionExcel : IFlatbufferObject @@ -134,6 +135,122 @@ public struct OpenConditionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public OpenConditionExcelT UnPack() { + var _o = new OpenConditionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(OpenConditionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("OpenCondition"); + _o.OpenConditionContentType = TableEncryptionService.Convert(this.OpenConditionContentType, key); + _o.LockUI = new List(); + for (var _j = 0; _j < this.LockUILength; ++_j) {_o.LockUI.Add(TableEncryptionService.Convert(this.LockUI(_j), key));} + _o.ShortcutPopupPriority = TableEncryptionService.Convert(this.ShortcutPopupPriority, key); + _o.ShortcutUIName = new List(); + for (var _j = 0; _j < this.ShortcutUINameLength; ++_j) {_o.ShortcutUIName.Add(TableEncryptionService.Convert(this.ShortcutUIName(_j), key));} + _o.ShortcutParam = TableEncryptionService.Convert(this.ShortcutParam, key); + _o.Scene = TableEncryptionService.Convert(this.Scene, key); + _o.HideWhenLocked = TableEncryptionService.Convert(this.HideWhenLocked, key); + _o.AccountLevel = TableEncryptionService.Convert(this.AccountLevel, key); + _o.ScenarioModeId = TableEncryptionService.Convert(this.ScenarioModeId, key); + _o.CampaignStageId = TableEncryptionService.Convert(this.CampaignStageId, key); + _o.MultipleConditionCheckType = TableEncryptionService.Convert(this.MultipleConditionCheckType, key); + _o.OpenDayOfWeek = TableEncryptionService.Convert(this.OpenDayOfWeek, key); + _o.OpenHour = TableEncryptionService.Convert(this.OpenHour, key); + _o.CloseDayOfWeek = TableEncryptionService.Convert(this.CloseDayOfWeek, key); + _o.CloseHour = TableEncryptionService.Convert(this.CloseHour, key); + _o.OpenedCafeId = TableEncryptionService.Convert(this.OpenedCafeId, key); + _o.CafeIdforCafeRank = TableEncryptionService.Convert(this.CafeIdforCafeRank, key); + _o.CafeRank = TableEncryptionService.Convert(this.CafeRank, key); + _o.ContentsOpenShow = TableEncryptionService.Convert(this.ContentsOpenShow, key); + _o.ContentsOpenShortcutUI = TableEncryptionService.Convert(this.ContentsOpenShortcutUI, key); + } + public static Offset Pack(FlatBufferBuilder builder, OpenConditionExcelT _o) { + if (_o == null) return default(Offset); + var _LockUI = default(VectorOffset); + if (_o.LockUI != null) { + var __LockUI = new StringOffset[_o.LockUI.Count]; + for (var _j = 0; _j < __LockUI.Length; ++_j) { __LockUI[_j] = builder.CreateString(_o.LockUI[_j]); } + _LockUI = CreateLockUIVector(builder, __LockUI); + } + 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 _Scene = _o.Scene == null ? default(StringOffset) : builder.CreateString(_o.Scene); + var _ContentsOpenShortcutUI = _o.ContentsOpenShortcutUI == null ? default(StringOffset) : builder.CreateString(_o.ContentsOpenShortcutUI); + return CreateOpenConditionExcel( + builder, + _o.OpenConditionContentType, + _LockUI, + _o.ShortcutPopupPriority, + _ShortcutUIName, + _o.ShortcutParam, + _Scene, + _o.HideWhenLocked, + _o.AccountLevel, + _o.ScenarioModeId, + _o.CampaignStageId, + _o.MultipleConditionCheckType, + _o.OpenDayOfWeek, + _o.OpenHour, + _o.CloseDayOfWeek, + _o.CloseHour, + _o.OpenedCafeId, + _o.CafeIdforCafeRank, + _o.CafeRank, + _o.ContentsOpenShow, + _ContentsOpenShortcutUI); + } +} + +public class OpenConditionExcelT +{ + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContentType { get; set; } + public List LockUI { get; set; } + public long ShortcutPopupPriority { get; set; } + public List ShortcutUIName { get; set; } + public int ShortcutParam { get; set; } + public string Scene { get; set; } + public bool HideWhenLocked { get; set; } + public long AccountLevel { get; set; } + public long ScenarioModeId { get; set; } + public long CampaignStageId { get; set; } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get; set; } + public SCHALE.Common.FlatData.WeekDay OpenDayOfWeek { get; set; } + public long OpenHour { get; set; } + public SCHALE.Common.FlatData.WeekDay CloseDayOfWeek { get; set; } + public long CloseHour { get; set; } + public long OpenedCafeId { get; set; } + public long CafeIdforCafeRank { get; set; } + public long CafeRank { get; set; } + public bool ContentsOpenShow { get; set; } + public string ContentsOpenShortcutUI { get; set; } + + public OpenConditionExcelT() { + this.OpenConditionContentType = SCHALE.Common.FlatData.OpenConditionContent.Shop; + this.LockUI = null; + this.ShortcutPopupPriority = 0; + this.ShortcutUIName = null; + this.ShortcutParam = 0; + this.Scene = null; + this.HideWhenLocked = false; + this.AccountLevel = 0; + this.ScenarioModeId = 0; + this.CampaignStageId = 0; + this.MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And; + this.OpenDayOfWeek = SCHALE.Common.FlatData.WeekDay.Sunday; + this.OpenHour = 0; + this.CloseDayOfWeek = SCHALE.Common.FlatData.WeekDay.Sunday; + this.CloseHour = 0; + this.OpenedCafeId = 0; + this.CafeIdforCafeRank = 0; + this.CafeRank = 0; + this.ContentsOpenShow = false; + this.ContentsOpenShortcutUI = null; + } } diff --git a/SCHALE.Common/FlatData/OpenConditionExcelTable.cs b/SCHALE.Common/FlatData/OpenConditionExcelTable.cs index 02f5357..62db18e 100644 --- a/SCHALE.Common/FlatData/OpenConditionExcelTable.cs +++ b/SCHALE.Common/FlatData/OpenConditionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct OpenConditionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct OpenConditionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public OpenConditionExcelTableT UnPack() { + var _o = new OpenConditionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(OpenConditionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("OpenConditionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, OpenConditionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.OpenConditionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateOpenConditionExcelTable( + builder, + _DataList); + } +} + +public class OpenConditionExcelTableT +{ + public List DataList { get; set; } + + public OpenConditionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/OperatorExcel.cs b/SCHALE.Common/FlatData/OperatorExcel.cs index 6005ad4..8d954d0 100644 --- a/SCHALE.Common/FlatData/OperatorExcel.cs +++ b/SCHALE.Common/FlatData/OperatorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct OperatorExcel : IFlatbufferObject @@ -108,6 +109,83 @@ public struct OperatorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public OperatorExcelT UnPack() { + var _o = new OperatorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(OperatorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Operator"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.OperatorCondition = TableEncryptionService.Convert(this.OperatorCondition, key); + _o.OutputSequence = TableEncryptionService.Convert(this.OutputSequence, key); + _o.RandomWeight = TableEncryptionService.Convert(this.RandomWeight, key); + _o.OutputDelay = TableEncryptionService.Convert(this.OutputDelay, key); + _o.Duration = TableEncryptionService.Convert(this.Duration, key); + _o.OperatorOutputPriority = TableEncryptionService.Convert(this.OperatorOutputPriority, key); + _o.PortraitPath = TableEncryptionService.Convert(this.PortraitPath, key); + _o.TextLocalizeKey = TableEncryptionService.Convert(this.TextLocalizeKey, key); + _o.VoiceId = new List(); + for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} + _o.OperatorWaitQueue = TableEncryptionService.Convert(this.OperatorWaitQueue, key); + } + public static Offset Pack(FlatBufferBuilder builder, OperatorExcelT _o) { + if (_o == null) return default(Offset); + var _GroupId = _o.GroupId == null ? default(StringOffset) : builder.CreateString(_o.GroupId); + var _PortraitPath = _o.PortraitPath == null ? default(StringOffset) : builder.CreateString(_o.PortraitPath); + var _TextLocalizeKey = _o.TextLocalizeKey == null ? default(StringOffset) : builder.CreateString(_o.TextLocalizeKey); + var _VoiceId = default(VectorOffset); + if (_o.VoiceId != null) { + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); + } + return CreateOperatorExcel( + builder, + _o.UniqueId, + _GroupId, + _o.OperatorCondition, + _o.OutputSequence, + _o.RandomWeight, + _o.OutputDelay, + _o.Duration, + _o.OperatorOutputPriority, + _PortraitPath, + _TextLocalizeKey, + _VoiceId, + _o.OperatorWaitQueue); + } +} + +public class OperatorExcelT +{ + public long UniqueId { get; set; } + public string GroupId { get; set; } + public SCHALE.Common.FlatData.OperatorCondition OperatorCondition { get; set; } + public int OutputSequence { get; set; } + public int RandomWeight { get; set; } + public int OutputDelay { get; set; } + public int Duration { get; set; } + public int OperatorOutputPriority { get; set; } + public string PortraitPath { get; set; } + public string TextLocalizeKey { get; set; } + public List VoiceId { get; set; } + public bool OperatorWaitQueue { get; set; } + + public OperatorExcelT() { + this.UniqueId = 0; + this.GroupId = null; + this.OperatorCondition = SCHALE.Common.FlatData.OperatorCondition.None; + this.OutputSequence = 0; + this.RandomWeight = 0; + this.OutputDelay = 0; + this.Duration = 0; + this.OperatorOutputPriority = 0; + this.PortraitPath = null; + this.TextLocalizeKey = null; + this.VoiceId = null; + this.OperatorWaitQueue = false; + } } diff --git a/SCHALE.Common/FlatData/OperatorExcelTable.cs b/SCHALE.Common/FlatData/OperatorExcelTable.cs deleted file mode 100644 index fe67c9e..0000000 --- a/SCHALE.Common/FlatData/OperatorExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct OperatorExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static OperatorExcelTable GetRootAsOperatorExcelTable(ByteBuffer _bb) { return GetRootAsOperatorExcelTable(_bb, new OperatorExcelTable()); } - public static OperatorExcelTable GetRootAsOperatorExcelTable(ByteBuffer _bb, OperatorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public OperatorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.OperatorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.OperatorExcel?)(new SCHALE.Common.FlatData.OperatorExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateOperatorExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - OperatorExcelTable.AddDataList(builder, DataListOffset); - return OperatorExcelTable.EndOperatorExcelTable(builder); - } - - public static void StartOperatorExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndOperatorExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class OperatorExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.OperatorExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs b/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs index 0932170..c26b2f8 100644 --- a/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs +++ b/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ParcelAutoSynthExcel : IFlatbufferObject @@ -66,6 +67,62 @@ public struct ParcelAutoSynthExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ParcelAutoSynthExcelT UnPack() { + var _o = new ParcelAutoSynthExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ParcelAutoSynthExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ParcelAutoSynth"); + _o.RequireParcelType = TableEncryptionService.Convert(this.RequireParcelType, key); + _o.RequireParcelId = TableEncryptionService.Convert(this.RequireParcelId, key); + _o.RequireParcelAmount = TableEncryptionService.Convert(this.RequireParcelAmount, key); + _o.SynthStartAmount = TableEncryptionService.Convert(this.SynthStartAmount, key); + _o.SynthEndAmount = TableEncryptionService.Convert(this.SynthEndAmount, key); + _o.SynthMaxItem = TableEncryptionService.Convert(this.SynthMaxItem, key); + _o.ResultParcelType = TableEncryptionService.Convert(this.ResultParcelType, key); + _o.ResultParcelId = TableEncryptionService.Convert(this.ResultParcelId, key); + _o.ResultParcelAmount = TableEncryptionService.Convert(this.ResultParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ParcelAutoSynthExcelT _o) { + if (_o == null) return default(Offset); + return CreateParcelAutoSynthExcel( + builder, + _o.RequireParcelType, + _o.RequireParcelId, + _o.RequireParcelAmount, + _o.SynthStartAmount, + _o.SynthEndAmount, + _o.SynthMaxItem, + _o.ResultParcelType, + _o.ResultParcelId, + _o.ResultParcelAmount); + } +} + +public class ParcelAutoSynthExcelT +{ + public SCHALE.Common.FlatData.ParcelType RequireParcelType { get; set; } + public long RequireParcelId { get; set; } + public long RequireParcelAmount { get; set; } + public long SynthStartAmount { get; set; } + public long SynthEndAmount { get; set; } + public bool SynthMaxItem { get; set; } + public SCHALE.Common.FlatData.ParcelType ResultParcelType { get; set; } + public long ResultParcelId { get; set; } + public long ResultParcelAmount { get; set; } + + public ParcelAutoSynthExcelT() { + this.RequireParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RequireParcelId = 0; + this.RequireParcelAmount = 0; + this.SynthStartAmount = 0; + this.SynthEndAmount = 0; + this.SynthMaxItem = false; + this.ResultParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ResultParcelId = 0; + this.ResultParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs b/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs index 401a249..87faff5 100644 --- a/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs +++ b/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ParcelAutoSynthExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ParcelAutoSynthExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ParcelAutoSynthExcelTableT UnPack() { + var _o = new ParcelAutoSynthExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ParcelAutoSynthExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ParcelAutoSynthExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ParcelAutoSynthExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ParcelAutoSynthExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateParcelAutoSynthExcelTable( + builder, + _DataList); + } +} + +public class ParcelAutoSynthExcelTableT +{ + public List DataList { get; set; } + + public ParcelAutoSynthExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ParcelChangeReason.cs b/SCHALE.Common/FlatData/ParcelChangeReason.cs index d395667..bfd157d 100644 --- a/SCHALE.Common/FlatData/ParcelChangeReason.cs +++ b/SCHALE.Common/FlatData/ParcelChangeReason.cs @@ -180,6 +180,9 @@ public enum ParcelChangeReason : int Character_PotentialGrowth = 170, MultiFloorRaid_EndBattle = 171, MultiFloorRaid_Reward = 172, + MiniGame_DreamSchedule = 173, + MiniGame_DreamDailyClosing = 174, + MiniGame_DreamEnding = 175, }; diff --git a/SCHALE.Common/FlatData/PersonalityExcel.cs b/SCHALE.Common/FlatData/PersonalityExcel.cs index a491a19..17d8854 100644 --- a/SCHALE.Common/FlatData/PersonalityExcel.cs +++ b/SCHALE.Common/FlatData/PersonalityExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PersonalityExcel : IFlatbufferObject @@ -44,6 +45,35 @@ public struct PersonalityExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PersonalityExcelT UnPack() { + var _o = new PersonalityExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PersonalityExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Personality"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + } + public static Offset Pack(FlatBufferBuilder builder, PersonalityExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + return CreatePersonalityExcel( + builder, + _o.Id, + _Name); + } +} + +public class PersonalityExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + + public PersonalityExcelT() { + this.Id = 0; + this.Name = null; + } } diff --git a/SCHALE.Common/FlatData/PersonalityExcelTable.cs b/SCHALE.Common/FlatData/PersonalityExcelTable.cs index e23851f..f3f7ec3 100644 --- a/SCHALE.Common/FlatData/PersonalityExcelTable.cs +++ b/SCHALE.Common/FlatData/PersonalityExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PersonalityExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PersonalityExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PersonalityExcelTableT UnPack() { + var _o = new PersonalityExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PersonalityExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("PersonalityExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PersonalityExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.PersonalityExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreatePersonalityExcelTable( + builder, + _DataList); + } +} + +public class PersonalityExcelTableT +{ + public List DataList { get; set; } + + public PersonalityExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs index 836cac8..3ff9ff3 100644 --- a/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs +++ b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PickupDuplicateBonusExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct PickupDuplicateBonusExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PickupDuplicateBonusExcelT UnPack() { + var _o = new PickupDuplicateBonusExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PickupDuplicateBonusExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("PickupDuplicateBonus"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ShopCategoryType = TableEncryptionService.Convert(this.ShopCategoryType, key); + _o.ShopId = TableEncryptionService.Convert(this.ShopId, key); + _o.PickupCharacterId = TableEncryptionService.Convert(this.PickupCharacterId, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, PickupDuplicateBonusExcelT _o) { + if (_o == null) return default(Offset); + return CreatePickupDuplicateBonusExcel( + builder, + _o.Id, + _o.ShopCategoryType, + _o.ShopId, + _o.PickupCharacterId, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount); + } +} + +public class PickupDuplicateBonusExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType ShopCategoryType { get; set; } + public long ShopId { get; set; } + public long PickupCharacterId { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + + public PickupDuplicateBonusExcelT() { + this.Id = 0; + this.ShopCategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.ShopId = 0; + this.PickupCharacterId = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs b/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs index a772b85..2dc9baa 100644 --- a/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs +++ b/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PickupDuplicateBonusExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PickupDuplicateBonusExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PickupDuplicateBonusExcelTableT UnPack() { + var _o = new PickupDuplicateBonusExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PickupDuplicateBonusExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("PickupDuplicateBonusExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PickupDuplicateBonusExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.PickupDuplicateBonusExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreatePickupDuplicateBonusExcelTable( + builder, + _DataList); + } +} + +public class PickupDuplicateBonusExcelTableT +{ + public List DataList { get; set; } + + public PickupDuplicateBonusExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/Position.cs b/SCHALE.Common/FlatData/Position.cs index 170c830..2a715cb 100644 --- a/SCHALE.Common/FlatData/Position.cs +++ b/SCHALE.Common/FlatData/Position.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct Position : IFlatbufferObject @@ -38,6 +39,34 @@ public struct Position : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PositionT UnPack() { + var _o = new PositionT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PositionT _o) { + byte[] key = { 0 }; + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Z = TableEncryptionService.Convert(this.Z, key); + } + public static Offset Pack(FlatBufferBuilder builder, PositionT _o) { + if (_o == null) return default(Offset); + return CreatePosition( + builder, + _o.X, + _o.Z); + } +} + +public class PositionT +{ + public float X { get; set; } + public float Z { get; set; } + + public PositionT() { + this.X = 0.0f; + this.Z = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs index 5ae74b8..4154a50 100644 --- a/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs +++ b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetCharacterGroupExcel : IFlatbufferObject @@ -52,11 +53,11 @@ public struct PresetCharacterGroupExcel : IFlatbufferObject public bool EquipCharacterGear { get { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipCharacterGearTier { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipCharacterGearLevel { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StatType PotentialType01 { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } public int PotentialLevel01 { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StatType PotentialType02 { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } public int PotentialLevel02 { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StatType PotentialType03 { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } public int PotentialLevel03 { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreatePresetCharacterGroupExcel(FlatBufferBuilder builder, @@ -87,11 +88,11 @@ public struct PresetCharacterGroupExcel : IFlatbufferObject bool EquipCharacterGear = false, int EquipCharacterGearTier = 0, int EquipCharacterGearLevel = 0, - SCHALE.Common.FlatData.StatType PotentialType01 = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, int PotentialLevel01 = 0, - SCHALE.Common.FlatData.StatType PotentialType02 = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, int PotentialLevel02 = 0, - SCHALE.Common.FlatData.StatType PotentialType03 = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, int PotentialLevel03 = 0) { builder.StartTable(33); PresetCharacterGroupExcel.AddPresetCharacterGroupId(builder, PresetCharacterGroupId); @@ -158,16 +159,169 @@ public struct PresetCharacterGroupExcel : IFlatbufferObject public static void AddEquipCharacterGear(FlatBufferBuilder builder, bool equipCharacterGear) { builder.AddBool(24, equipCharacterGear, false); } public static void AddEquipCharacterGearTier(FlatBufferBuilder builder, int equipCharacterGearTier) { builder.AddInt(25, equipCharacterGearTier, 0); } public static void AddEquipCharacterGearLevel(FlatBufferBuilder builder, int equipCharacterGearLevel) { builder.AddInt(26, equipCharacterGearLevel, 0); } - public static void AddPotentialType01(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType01) { builder.AddInt(27, (int)potentialType01, 0); } + public static void AddPotentialType01(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType potentialType01) { builder.AddInt(27, (int)potentialType01, 0); } public static void AddPotentialLevel01(FlatBufferBuilder builder, int potentialLevel01) { builder.AddInt(28, potentialLevel01, 0); } - public static void AddPotentialType02(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType02) { builder.AddInt(29, (int)potentialType02, 0); } + public static void AddPotentialType02(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType potentialType02) { builder.AddInt(29, (int)potentialType02, 0); } public static void AddPotentialLevel02(FlatBufferBuilder builder, int potentialLevel02) { builder.AddInt(30, potentialLevel02, 0); } - public static void AddPotentialType03(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType potentialType03) { builder.AddInt(31, (int)potentialType03, 0); } + public static void AddPotentialType03(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType potentialType03) { builder.AddInt(31, (int)potentialType03, 0); } public static void AddPotentialLevel03(FlatBufferBuilder builder, int potentialLevel03) { builder.AddInt(32, potentialLevel03, 0); } public static Offset EndPresetCharacterGroupExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public PresetCharacterGroupExcelT UnPack() { + var _o = new PresetCharacterGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetCharacterGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetCharacterGroup"); + _o.PresetCharacterGroupId = TableEncryptionService.Convert(this.PresetCharacterGroupId, key); + _o.GetPresetType = TableEncryptionService.Convert(this.GetPresetType, key); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.Exp = TableEncryptionService.Convert(this.Exp, key); + _o.FavorExp = TableEncryptionService.Convert(this.FavorExp, key); + _o.FavorRank = TableEncryptionService.Convert(this.FavorRank, key); + _o.StarGrade = TableEncryptionService.Convert(this.StarGrade, key); + _o.ExSkillLevel = TableEncryptionService.Convert(this.ExSkillLevel, key); + _o.PassiveSkillLevel = TableEncryptionService.Convert(this.PassiveSkillLevel, key); + _o.ExtraPassiveSkillLevel = TableEncryptionService.Convert(this.ExtraPassiveSkillLevel, key); + _o.CommonSkillLevel = TableEncryptionService.Convert(this.CommonSkillLevel, key); + _o.LeaderSkillLevel = TableEncryptionService.Convert(this.LeaderSkillLevel, key); + _o.EquipSlot01 = TableEncryptionService.Convert(this.EquipSlot01, key); + _o.EquipSlotTier01 = TableEncryptionService.Convert(this.EquipSlotTier01, key); + _o.EquipSlotLevel01 = TableEncryptionService.Convert(this.EquipSlotLevel01, key); + _o.EquipSlot02 = TableEncryptionService.Convert(this.EquipSlot02, key); + _o.EquipSlotTier02 = TableEncryptionService.Convert(this.EquipSlotTier02, key); + _o.EquipSlotLevel02 = TableEncryptionService.Convert(this.EquipSlotLevel02, key); + _o.EquipSlot03 = TableEncryptionService.Convert(this.EquipSlot03, key); + _o.EquipSlotTier03 = TableEncryptionService.Convert(this.EquipSlotTier03, key); + _o.EquipSlotLevel03 = TableEncryptionService.Convert(this.EquipSlotLevel03, key); + _o.EquipCharacterWeapon = TableEncryptionService.Convert(this.EquipCharacterWeapon, key); + _o.EquipCharacterWeaponTier = TableEncryptionService.Convert(this.EquipCharacterWeaponTier, key); + _o.EquipCharacterWeaponLevel = TableEncryptionService.Convert(this.EquipCharacterWeaponLevel, key); + _o.EquipCharacterGear = TableEncryptionService.Convert(this.EquipCharacterGear, key); + _o.EquipCharacterGearTier = TableEncryptionService.Convert(this.EquipCharacterGearTier, key); + _o.EquipCharacterGearLevel = TableEncryptionService.Convert(this.EquipCharacterGearLevel, key); + _o.PotentialType01 = TableEncryptionService.Convert(this.PotentialType01, key); + _o.PotentialLevel01 = TableEncryptionService.Convert(this.PotentialLevel01, key); + _o.PotentialType02 = TableEncryptionService.Convert(this.PotentialType02, key); + _o.PotentialLevel02 = TableEncryptionService.Convert(this.PotentialLevel02, key); + _o.PotentialType03 = TableEncryptionService.Convert(this.PotentialType03, key); + _o.PotentialLevel03 = TableEncryptionService.Convert(this.PotentialLevel03, key); + } + public static Offset Pack(FlatBufferBuilder builder, PresetCharacterGroupExcelT _o) { + if (_o == null) return default(Offset); + var _GetPresetType = _o.GetPresetType == null ? default(StringOffset) : builder.CreateString(_o.GetPresetType); + return CreatePresetCharacterGroupExcel( + builder, + _o.PresetCharacterGroupId, + _GetPresetType, + _o.Level, + _o.Exp, + _o.FavorExp, + _o.FavorRank, + _o.StarGrade, + _o.ExSkillLevel, + _o.PassiveSkillLevel, + _o.ExtraPassiveSkillLevel, + _o.CommonSkillLevel, + _o.LeaderSkillLevel, + _o.EquipSlot01, + _o.EquipSlotTier01, + _o.EquipSlotLevel01, + _o.EquipSlot02, + _o.EquipSlotTier02, + _o.EquipSlotLevel02, + _o.EquipSlot03, + _o.EquipSlotTier03, + _o.EquipSlotLevel03, + _o.EquipCharacterWeapon, + _o.EquipCharacterWeaponTier, + _o.EquipCharacterWeaponLevel, + _o.EquipCharacterGear, + _o.EquipCharacterGearTier, + _o.EquipCharacterGearLevel, + _o.PotentialType01, + _o.PotentialLevel01, + _o.PotentialType02, + _o.PotentialLevel02, + _o.PotentialType03, + _o.PotentialLevel03); + } +} + +public class PresetCharacterGroupExcelT +{ + public long PresetCharacterGroupId { get; set; } + public string GetPresetType { get; set; } + public int Level { get; set; } + public int Exp { get; set; } + public int FavorExp { get; set; } + public int FavorRank { get; set; } + public int StarGrade { get; set; } + public int ExSkillLevel { get; set; } + public int PassiveSkillLevel { get; set; } + public int ExtraPassiveSkillLevel { get; set; } + public int CommonSkillLevel { get; set; } + public int LeaderSkillLevel { get; set; } + public bool EquipSlot01 { get; set; } + public int EquipSlotTier01 { get; set; } + public int EquipSlotLevel01 { get; set; } + public bool EquipSlot02 { get; set; } + public int EquipSlotTier02 { get; set; } + public int EquipSlotLevel02 { get; set; } + public bool EquipSlot03 { get; set; } + public int EquipSlotTier03 { get; set; } + public int EquipSlotLevel03 { get; set; } + public bool EquipCharacterWeapon { get; set; } + public int EquipCharacterWeaponTier { get; set; } + public int EquipCharacterWeaponLevel { get; set; } + public bool EquipCharacterGear { get; set; } + public int EquipCharacterGearTier { get; set; } + public int EquipCharacterGearLevel { get; set; } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 { get; set; } + public int PotentialLevel01 { get; set; } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 { get; set; } + public int PotentialLevel02 { get; set; } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 { get; set; } + public int PotentialLevel03 { get; set; } + + public PresetCharacterGroupExcelT() { + this.PresetCharacterGroupId = 0; + this.GetPresetType = null; + this.Level = 0; + this.Exp = 0; + this.FavorExp = 0; + this.FavorRank = 0; + this.StarGrade = 0; + this.ExSkillLevel = 0; + this.PassiveSkillLevel = 0; + this.ExtraPassiveSkillLevel = 0; + this.CommonSkillLevel = 0; + this.LeaderSkillLevel = 0; + this.EquipSlot01 = false; + this.EquipSlotTier01 = 0; + this.EquipSlotLevel01 = 0; + this.EquipSlot02 = false; + this.EquipSlotTier02 = 0; + this.EquipSlotLevel02 = 0; + this.EquipSlot03 = false; + this.EquipSlotTier03 = 0; + this.EquipSlotLevel03 = 0; + this.EquipCharacterWeapon = false; + this.EquipCharacterWeaponTier = 0; + this.EquipCharacterWeaponLevel = 0; + this.EquipCharacterGear = false; + this.EquipCharacterGearTier = 0; + this.EquipCharacterGearLevel = 0; + this.PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialLevel01 = 0; + this.PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialLevel02 = 0; + this.PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialLevel03 = 0; + } } @@ -203,11 +357,11 @@ static public class PresetCharacterGroupExcelVerify && verifier.VerifyField(tablePos, 52 /*EquipCharacterGear*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 54 /*EquipCharacterGearTier*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 56 /*EquipCharacterGearLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 58 /*PotentialType01*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*PotentialType01*/, 4 /*SCHALE.Common.FlatData.PotentialStatBonusRateType*/, 4, false) && verifier.VerifyField(tablePos, 60 /*PotentialLevel01*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 62 /*PotentialType02*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*PotentialType02*/, 4 /*SCHALE.Common.FlatData.PotentialStatBonusRateType*/, 4, false) && verifier.VerifyField(tablePos, 64 /*PotentialLevel02*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 66 /*PotentialType03*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) + && verifier.VerifyField(tablePos, 66 /*PotentialType03*/, 4 /*SCHALE.Common.FlatData.PotentialStatBonusRateType*/, 4, false) && verifier.VerifyField(tablePos, 68 /*PotentialLevel03*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs b/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs index 93bb635..6096dfa 100644 --- a/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetCharacterGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PresetCharacterGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PresetCharacterGroupExcelTableT UnPack() { + var _o = new PresetCharacterGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetCharacterGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetCharacterGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PresetCharacterGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.PresetCharacterGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreatePresetCharacterGroupExcelTable( + builder, + _DataList); + } +} + +public class PresetCharacterGroupExcelTableT +{ + public List DataList { get; set; } + + public PresetCharacterGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs index 6dfb997..bda438c 100644 --- a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs +++ b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetCharacterGroupSettingExcel : IFlatbufferObject @@ -48,6 +49,45 @@ public struct PresetCharacterGroupSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PresetCharacterGroupSettingExcelT UnPack() { + var _o = new PresetCharacterGroupSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetCharacterGroupSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetCharacterGroupSetting"); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.ArenaSimulatorFixed = TableEncryptionService.Convert(this.ArenaSimulatorFixed, key); + _o.PresetType = new List(); + for (var _j = 0; _j < this.PresetTypeLength; ++_j) {_o.PresetType.Add(TableEncryptionService.Convert(this.PresetType(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, PresetCharacterGroupSettingExcelT _o) { + if (_o == null) return default(Offset); + var _PresetType = default(VectorOffset); + if (_o.PresetType != null) { + var __PresetType = new StringOffset[_o.PresetType.Count]; + for (var _j = 0; _j < __PresetType.Length; ++_j) { __PresetType[_j] = builder.CreateString(_o.PresetType[_j]); } + _PresetType = CreatePresetTypeVector(builder, __PresetType); + } + return CreatePresetCharacterGroupSettingExcel( + builder, + _o.CharacterId, + _o.ArenaSimulatorFixed, + _PresetType); + } +} + +public class PresetCharacterGroupSettingExcelT +{ + public long CharacterId { get; set; } + public bool ArenaSimulatorFixed { get; set; } + public List PresetType { get; set; } + + public PresetCharacterGroupSettingExcelT() { + this.CharacterId = 0; + this.ArenaSimulatorFixed = false; + this.PresetType = null; + } } diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs index 4b8c3ad..ab58264 100644 --- a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetCharacterGroupSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PresetCharacterGroupSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PresetCharacterGroupSettingExcelTableT UnPack() { + var _o = new PresetCharacterGroupSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetCharacterGroupSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetCharacterGroupSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PresetCharacterGroupSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.PresetCharacterGroupSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreatePresetCharacterGroupSettingExcelTable( + builder, + _DataList); + } +} + +public class PresetCharacterGroupSettingExcelTableT +{ + public List DataList { get; set; } + + public PresetCharacterGroupSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/PresetParcelsExcel.cs b/SCHALE.Common/FlatData/PresetParcelsExcel.cs index e57ec39..c74b1c4 100644 --- a/SCHALE.Common/FlatData/PresetParcelsExcel.cs +++ b/SCHALE.Common/FlatData/PresetParcelsExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetParcelsExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct PresetParcelsExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PresetParcelsExcelT UnPack() { + var _o = new PresetParcelsExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetParcelsExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetParcels"); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key); + _o.PresetGroupId = TableEncryptionService.Convert(this.PresetGroupId, key); + _o.ParcelAmount = TableEncryptionService.Convert(this.ParcelAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, PresetParcelsExcelT _o) { + if (_o == null) return default(Offset); + return CreatePresetParcelsExcel( + builder, + _o.ParcelType, + _o.ParcelId, + _o.PresetGroupId, + _o.ParcelAmount); + } +} + +public class PresetParcelsExcelT +{ + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelId { get; set; } + public long PresetGroupId { get; set; } + public long ParcelAmount { get; set; } + + public PresetParcelsExcelT() { + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelId = 0; + this.PresetGroupId = 0; + this.ParcelAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs b/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs index 1c31941..fb96760 100644 --- a/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs +++ b/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PresetParcelsExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PresetParcelsExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PresetParcelsExcelTableT UnPack() { + var _o = new PresetParcelsExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PresetParcelsExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("PresetParcelsExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PresetParcelsExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.PresetParcelsExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreatePresetParcelsExcelTable( + builder, + _DataList); + } +} + +public class PresetParcelsExcelTableT +{ + public List DataList { get; set; } + + public PresetParcelsExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ProductExcel.cs b/SCHALE.Common/FlatData/ProductExcel.cs index 2cc0803..6427366 100644 --- a/SCHALE.Common/FlatData/ProductExcel.cs +++ b/SCHALE.Common/FlatData/ProductExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProductExcel : IFlatbufferObject @@ -118,6 +119,86 @@ public struct ProductExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProductExcelT UnPack() { + var _o = new ProductExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProductExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Product"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProductId = TableEncryptionService.Convert(this.ProductId, key); + _o.StoreType = TableEncryptionService.Convert(this.StoreType, key); + _o.Price = TableEncryptionService.Convert(this.Price, key); + _o.PriceReference = TableEncryptionService.Convert(this.PriceReference, key); + _o.PurchasePeriodType = TableEncryptionService.Convert(this.PurchasePeriodType, key); + _o.PurchasePeriodLimit = TableEncryptionService.Convert(this.PurchasePeriodLimit, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ParcelAmount = new List(); + for (var _j = 0; _j < this.ParcelAmountLength; ++_j) {_o.ParcelAmount.Add(TableEncryptionService.Convert(this.ParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ProductExcelT _o) { + if (_o == null) return default(Offset); + var _ProductId = _o.ProductId == null ? default(StringOffset) : builder.CreateString(_o.ProductId); + var _PriceReference = _o.PriceReference == null ? default(StringOffset) : builder.CreateString(_o.PriceReference); + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ParcelAmount = default(VectorOffset); + if (_o.ParcelAmount != null) { + var __ParcelAmount = _o.ParcelAmount.ToArray(); + _ParcelAmount = CreateParcelAmountVector(builder, __ParcelAmount); + } + return CreateProductExcel( + builder, + _o.Id, + _ProductId, + _o.StoreType, + _o.Price, + _PriceReference, + _o.PurchasePeriodType, + _o.PurchasePeriodLimit, + _ParcelType_, + _ParcelId, + _ParcelAmount); + } +} + +public class ProductExcelT +{ + public long Id { get; set; } + public string ProductId { get; set; } + public SCHALE.Common.FlatData.StoreType StoreType { get; set; } + public long Price { get; set; } + public string PriceReference { get; set; } + public SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType { get; set; } + public long PurchasePeriodLimit { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ParcelAmount { get; set; } + + public ProductExcelT() { + this.Id = 0; + this.ProductId = null; + this.StoreType = SCHALE.Common.FlatData.StoreType.None; + this.Price = 0; + this.PriceReference = null; + this.PurchasePeriodType = SCHALE.Common.FlatData.PurchasePeriodType.None; + this.PurchasePeriodLimit = 0; + this.ParcelType_ = null; + this.ParcelId = null; + this.ParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/ProductExcelTable.cs b/SCHALE.Common/FlatData/ProductExcelTable.cs index 3d28864..4808d16 100644 --- a/SCHALE.Common/FlatData/ProductExcelTable.cs +++ b/SCHALE.Common/FlatData/ProductExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProductExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ProductExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProductExcelTableT UnPack() { + var _o = new ProductExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProductExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ProductExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ProductExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ProductExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateProductExcelTable( + builder, + _DataList); + } +} + +public class ProductExcelTableT +{ + public List DataList { get; set; } + + public ProductExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ProductMonthlyExcel.cs b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs index 5a63f35..2aa7bca 100644 --- a/SCHALE.Common/FlatData/ProductMonthlyExcel.cs +++ b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProductMonthlyExcel : IFlatbufferObject @@ -170,6 +171,120 @@ public struct ProductMonthlyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProductMonthlyExcelT UnPack() { + var _o = new ProductMonthlyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProductMonthlyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ProductMonthly"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ProductId = TableEncryptionService.Convert(this.ProductId, key); + _o.StoreType = TableEncryptionService.Convert(this.StoreType, key); + _o.Price = TableEncryptionService.Convert(this.Price, key); + _o.PriceReference = TableEncryptionService.Convert(this.PriceReference, key); + _o.ProductTagType = TableEncryptionService.Convert(this.ProductTagType, key); + _o.MonthlyDays = TableEncryptionService.Convert(this.MonthlyDays, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ParcelAmount = new List(); + for (var _j = 0; _j < this.ParcelAmountLength; ++_j) {_o.ParcelAmount.Add(TableEncryptionService.Convert(this.ParcelAmount(_j), key));} + _o.EnterCostReduceGroupId = TableEncryptionService.Convert(this.EnterCostReduceGroupId, key); + _o.DailyParcelType = new List(); + for (var _j = 0; _j < this.DailyParcelTypeLength; ++_j) {_o.DailyParcelType.Add(TableEncryptionService.Convert(this.DailyParcelType(_j), key));} + _o.DailyParcelId = new List(); + for (var _j = 0; _j < this.DailyParcelIdLength; ++_j) {_o.DailyParcelId.Add(TableEncryptionService.Convert(this.DailyParcelId(_j), key));} + _o.DailyParcelAmount = new List(); + for (var _j = 0; _j < this.DailyParcelAmountLength; ++_j) {_o.DailyParcelAmount.Add(TableEncryptionService.Convert(this.DailyParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ProductMonthlyExcelT _o) { + if (_o == null) return default(Offset); + var _ProductId = _o.ProductId == null ? default(StringOffset) : builder.CreateString(_o.ProductId); + var _PriceReference = _o.PriceReference == null ? default(StringOffset) : builder.CreateString(_o.PriceReference); + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ParcelAmount = default(VectorOffset); + if (_o.ParcelAmount != null) { + var __ParcelAmount = _o.ParcelAmount.ToArray(); + _ParcelAmount = CreateParcelAmountVector(builder, __ParcelAmount); + } + var _DailyParcelType = default(VectorOffset); + if (_o.DailyParcelType != null) { + var __DailyParcelType = _o.DailyParcelType.ToArray(); + _DailyParcelType = CreateDailyParcelTypeVector(builder, __DailyParcelType); + } + var _DailyParcelId = default(VectorOffset); + if (_o.DailyParcelId != null) { + var __DailyParcelId = _o.DailyParcelId.ToArray(); + _DailyParcelId = CreateDailyParcelIdVector(builder, __DailyParcelId); + } + var _DailyParcelAmount = default(VectorOffset); + if (_o.DailyParcelAmount != null) { + var __DailyParcelAmount = _o.DailyParcelAmount.ToArray(); + _DailyParcelAmount = CreateDailyParcelAmountVector(builder, __DailyParcelAmount); + } + return CreateProductMonthlyExcel( + builder, + _o.Id, + _ProductId, + _o.StoreType, + _o.Price, + _PriceReference, + _o.ProductTagType, + _o.MonthlyDays, + _ParcelType_, + _ParcelId, + _ParcelAmount, + _o.EnterCostReduceGroupId, + _DailyParcelType, + _DailyParcelId, + _DailyParcelAmount); + } +} + +public class ProductMonthlyExcelT +{ + public long Id { get; set; } + public string ProductId { get; set; } + public SCHALE.Common.FlatData.StoreType StoreType { get; set; } + public long Price { get; set; } + public string PriceReference { get; set; } + public SCHALE.Common.FlatData.ProductTagType ProductTagType { get; set; } + public long MonthlyDays { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ParcelAmount { get; set; } + public long EnterCostReduceGroupId { get; set; } + public List DailyParcelType { get; set; } + public List DailyParcelId { get; set; } + public List DailyParcelAmount { get; set; } + + public ProductMonthlyExcelT() { + this.Id = 0; + this.ProductId = null; + this.StoreType = SCHALE.Common.FlatData.StoreType.None; + this.Price = 0; + this.PriceReference = null; + this.ProductTagType = SCHALE.Common.FlatData.ProductTagType.Monthly; + this.MonthlyDays = 0; + this.ParcelType_ = null; + this.ParcelId = null; + this.ParcelAmount = null; + this.EnterCostReduceGroupId = 0; + this.DailyParcelType = null; + this.DailyParcelId = null; + this.DailyParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs b/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs index 23f7cab..daf6ec1 100644 --- a/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs +++ b/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProductMonthlyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ProductMonthlyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProductMonthlyExcelTableT UnPack() { + var _o = new ProductMonthlyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProductMonthlyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ProductMonthlyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ProductMonthlyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ProductMonthlyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateProductMonthlyExcelTable( + builder, + _DataList); + } +} + +public class ProductMonthlyExcelTableT +{ + public List DataList { get; set; } + + public ProductMonthlyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/PropMotion.cs b/SCHALE.Common/FlatData/PropMotion.cs index 0c1e87d..4766084 100644 --- a/SCHALE.Common/FlatData/PropMotion.cs +++ b/SCHALE.Common/FlatData/PropMotion.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PropMotion : IFlatbufferObject @@ -60,6 +61,53 @@ public struct PropMotion : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PropMotionT UnPack() { + var _o = new PropMotionT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PropMotionT _o) { + byte[] key = { 0 }; + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Positions = new List(); + for (var _j = 0; _j < this.PositionsLength; ++_j) {_o.Positions.Add(this.Positions(_j).HasValue ? this.Positions(_j).Value.UnPack() : null);} + _o.Rotations = new List(); + for (var _j = 0; _j < this.RotationsLength; ++_j) {_o.Rotations.Add(this.Rotations(_j).HasValue ? this.Rotations(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PropMotionT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _Positions = default(VectorOffset); + if (_o.Positions != null) { + var __Positions = new Offset[_o.Positions.Count]; + for (var _j = 0; _j < __Positions.Length; ++_j) { __Positions[_j] = SCHALE.Common.FlatData.PropVector3.Pack(builder, _o.Positions[_j]); } + _Positions = CreatePositionsVector(builder, __Positions); + } + var _Rotations = default(VectorOffset); + if (_o.Rotations != null) { + var __Rotations = new Offset[_o.Rotations.Count]; + for (var _j = 0; _j < __Rotations.Length; ++_j) { __Rotations[_j] = SCHALE.Common.FlatData.PropVector3.Pack(builder, _o.Rotations[_j]); } + _Rotations = CreateRotationsVector(builder, __Rotations); + } + return CreatePropMotion( + builder, + _Name, + _Positions, + _Rotations); + } +} + +public class PropMotionT +{ + public string Name { get; set; } + public List Positions { get; set; } + public List Rotations { get; set; } + + public PropMotionT() { + this.Name = null; + this.Positions = null; + this.Rotations = null; + } } diff --git a/SCHALE.Common/FlatData/PropRootMotionFlat.cs b/SCHALE.Common/FlatData/PropRootMotionFlat.cs index 57565df..7fe1972 100644 --- a/SCHALE.Common/FlatData/PropRootMotionFlat.cs +++ b/SCHALE.Common/FlatData/PropRootMotionFlat.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PropRootMotionFlat : IFlatbufferObject @@ -40,6 +41,37 @@ public struct PropRootMotionFlat : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PropRootMotionFlatT UnPack() { + var _o = new PropRootMotionFlatT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PropRootMotionFlatT _o) { + byte[] key = { 0 }; + _o.RootMotions = new List(); + for (var _j = 0; _j < this.RootMotionsLength; ++_j) {_o.RootMotions.Add(this.RootMotions(_j).HasValue ? this.RootMotions(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, PropRootMotionFlatT _o) { + if (_o == null) return default(Offset); + var _RootMotions = default(VectorOffset); + if (_o.RootMotions != null) { + var __RootMotions = new Offset[_o.RootMotions.Count]; + for (var _j = 0; _j < __RootMotions.Length; ++_j) { __RootMotions[_j] = SCHALE.Common.FlatData.PropMotion.Pack(builder, _o.RootMotions[_j]); } + _RootMotions = CreateRootMotionsVector(builder, __RootMotions); + } + return CreatePropRootMotionFlat( + builder, + _RootMotions); + } +} + +public class PropRootMotionFlatT +{ + public List RootMotions { get; set; } + + public PropRootMotionFlatT() { + this.RootMotions = null; + } } diff --git a/SCHALE.Common/FlatData/PropVector3.cs b/SCHALE.Common/FlatData/PropVector3.cs index f99afe5..6c23fcb 100644 --- a/SCHALE.Common/FlatData/PropVector3.cs +++ b/SCHALE.Common/FlatData/PropVector3.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct PropVector3 : IFlatbufferObject @@ -42,6 +43,38 @@ public struct PropVector3 : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public PropVector3T UnPack() { + var _o = new PropVector3T(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(PropVector3T _o) { + byte[] key = { 0 }; + _o.X = TableEncryptionService.Convert(this.X, key); + _o.Y = TableEncryptionService.Convert(this.Y, key); + _o.Z = TableEncryptionService.Convert(this.Z, key); + } + public static Offset Pack(FlatBufferBuilder builder, PropVector3T _o) { + if (_o == null) return default(Offset); + return CreatePropVector3( + builder, + _o.X, + _o.Y, + _o.Z); + } +} + +public class PropVector3T +{ + public float X { get; set; } + public float Y { get; set; } + public float Z { get; set; } + + public PropVector3T() { + this.X = 0.0f; + this.Y = 0.0f; + this.Z = 0.0f; + } } diff --git a/SCHALE.Common/FlatData/ProtocolSettingExcel.cs b/SCHALE.Common/FlatData/ProtocolSettingExcel.cs index fce3a13..99c89bd 100644 --- a/SCHALE.Common/FlatData/ProtocolSettingExcel.cs +++ b/SCHALE.Common/FlatData/ProtocolSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProtocolSettingExcel : IFlatbufferObject @@ -56,6 +57,47 @@ public struct ProtocolSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProtocolSettingExcelT UnPack() { + var _o = new ProtocolSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProtocolSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ProtocolSetting"); + _o.Protocol = TableEncryptionService.Convert(this.Protocol, key); + _o.OpenConditionContent = TableEncryptionService.Convert(this.OpenConditionContent, key); + _o.Currency = TableEncryptionService.Convert(this.Currency, key); + _o.Inventory = TableEncryptionService.Convert(this.Inventory, key); + _o.Mail = TableEncryptionService.Convert(this.Mail, key); + } + public static Offset Pack(FlatBufferBuilder builder, ProtocolSettingExcelT _o) { + if (_o == null) return default(Offset); + var _Protocol = _o.Protocol == null ? default(StringOffset) : builder.CreateString(_o.Protocol); + return CreateProtocolSettingExcel( + builder, + _Protocol, + _o.OpenConditionContent, + _o.Currency, + _o.Inventory, + _o.Mail); + } +} + +public class ProtocolSettingExcelT +{ + public string Protocol { get; set; } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent { get; set; } + public bool Currency { get; set; } + public bool Inventory { get; set; } + public bool Mail { get; set; } + + public ProtocolSettingExcelT() { + this.Protocol = null; + this.OpenConditionContent = SCHALE.Common.FlatData.OpenConditionContent.Shop; + this.Currency = false; + this.Inventory = false; + this.Mail = false; + } } diff --git a/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs b/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs index 977ce1d..bca48c3 100644 --- a/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ProtocolSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ProtocolSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ProtocolSettingExcelTableT UnPack() { + var _o = new ProtocolSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ProtocolSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ProtocolSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ProtocolSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ProtocolSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateProtocolSettingExcelTable( + builder, + _DataList); + } +} + +public class ProtocolSettingExcelTableT +{ + public List DataList { get; set; } + + public ProtocolSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs b/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs index d4c560e..978c61d 100644 --- a/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs +++ b/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidRankingRewardExcel : IFlatbufferObject @@ -116,6 +117,95 @@ public struct RaidRankingRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidRankingRewardExcelT UnPack() { + var _o = new RaidRankingRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidRankingRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidRankingReward"); + _o.RankingRewardGroupId = TableEncryptionService.Convert(this.RankingRewardGroupId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RankStart = TableEncryptionService.Convert(this.RankStart, key); + _o.RankEnd = TableEncryptionService.Convert(this.RankEnd, key); + _o.PercentRankStart = TableEncryptionService.Convert(this.PercentRankStart, key); + _o.PercentRankEnd = TableEncryptionService.Convert(this.PercentRankEnd, key); + _o.Tier = TableEncryptionService.Convert(this.Tier, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueIdLength; ++_j) {_o.RewardParcelUniqueId.Add(TableEncryptionService.Convert(this.RewardParcelUniqueId(_j), key));} + _o.RewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.RewardParcelUniqueNameLength; ++_j) {_o.RewardParcelUniqueName.Add(TableEncryptionService.Convert(this.RewardParcelUniqueName(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RaidRankingRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelUniqueId = default(VectorOffset); + if (_o.RewardParcelUniqueId != null) { + var __RewardParcelUniqueId = _o.RewardParcelUniqueId.ToArray(); + _RewardParcelUniqueId = CreateRewardParcelUniqueIdVector(builder, __RewardParcelUniqueId); + } + var _RewardParcelUniqueName = default(VectorOffset); + if (_o.RewardParcelUniqueName != null) { + var __RewardParcelUniqueName = new StringOffset[_o.RewardParcelUniqueName.Count]; + for (var _j = 0; _j < __RewardParcelUniqueName.Length; ++_j) { __RewardParcelUniqueName[_j] = builder.CreateString(_o.RewardParcelUniqueName[_j]); } + _RewardParcelUniqueName = CreateRewardParcelUniqueNameVector(builder, __RewardParcelUniqueName); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + return CreateRaidRankingRewardExcel( + builder, + _o.RankingRewardGroupId, + _o.Id, + _o.RankStart, + _o.RankEnd, + _o.PercentRankStart, + _o.PercentRankEnd, + _o.Tier, + _RewardParcelType, + _RewardParcelUniqueId, + _RewardParcelUniqueName, + _RewardParcelAmount); + } +} + +public class RaidRankingRewardExcelT +{ + public long RankingRewardGroupId { get; set; } + public long Id { get; set; } + public long RankStart { get; set; } + public long RankEnd { get; set; } + public long PercentRankStart { get; set; } + public long PercentRankEnd { get; set; } + public int Tier { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelUniqueId { get; set; } + public List RewardParcelUniqueName { get; set; } + public List RewardParcelAmount { get; set; } + + public RaidRankingRewardExcelT() { + this.RankingRewardGroupId = 0; + this.Id = 0; + this.RankStart = 0; + this.RankEnd = 0; + this.PercentRankStart = 0; + this.PercentRankEnd = 0; + this.Tier = 0; + this.RewardParcelType = null; + this.RewardParcelUniqueId = null; + this.RewardParcelUniqueName = null; + this.RewardParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs index fa7c7d7..dba6b52 100644 --- a/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidRankingRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RaidRankingRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidRankingRewardExcelTableT UnPack() { + var _o = new RaidRankingRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidRankingRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidRankingRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RaidRankingRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RaidRankingRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRaidRankingRewardExcelTable( + builder, + _DataList); + } +} + +public class RaidRankingRewardExcelTableT +{ + public List DataList { get; set; } + + public RaidRankingRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs index 1103a9c..c0aab26 100644 --- a/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs +++ b/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidSeasonManageExcel : IFlatbufferObject @@ -118,6 +119,88 @@ public struct RaidSeasonManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidSeasonManageExcelT UnPack() { + var _o = new RaidSeasonManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidSeasonManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidSeasonManage"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.SeasonDisplay = TableEncryptionService.Convert(this.SeasonDisplay, key); + _o.SeasonStartData = TableEncryptionService.Convert(this.SeasonStartData, key); + _o.SeasonEndData = TableEncryptionService.Convert(this.SeasonEndData, key); + _o.SettlementEndDate = TableEncryptionService.Convert(this.SettlementEndDate, key); + _o.OpenRaidBossGroup = new List(); + for (var _j = 0; _j < this.OpenRaidBossGroupLength; ++_j) {_o.OpenRaidBossGroup.Add(TableEncryptionService.Convert(this.OpenRaidBossGroup(_j), key));} + _o.RankingRewardGroupId = TableEncryptionService.Convert(this.RankingRewardGroupId, key); + _o.MaxSeasonRewardGauage = TableEncryptionService.Convert(this.MaxSeasonRewardGauage, key); + _o.StackedSeasonRewardGauge = new List(); + for (var _j = 0; _j < this.StackedSeasonRewardGaugeLength; ++_j) {_o.StackedSeasonRewardGauge.Add(TableEncryptionService.Convert(this.StackedSeasonRewardGauge(_j), key));} + _o.SeasonRewardId = new List(); + for (var _j = 0; _j < this.SeasonRewardIdLength; ++_j) {_o.SeasonRewardId.Add(TableEncryptionService.Convert(this.SeasonRewardId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RaidSeasonManageExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonStartData = _o.SeasonStartData == null ? default(StringOffset) : builder.CreateString(_o.SeasonStartData); + var _SeasonEndData = _o.SeasonEndData == null ? default(StringOffset) : builder.CreateString(_o.SeasonEndData); + var _SettlementEndDate = _o.SettlementEndDate == null ? default(StringOffset) : builder.CreateString(_o.SettlementEndDate); + var _OpenRaidBossGroup = default(VectorOffset); + if (_o.OpenRaidBossGroup != null) { + var __OpenRaidBossGroup = new StringOffset[_o.OpenRaidBossGroup.Count]; + for (var _j = 0; _j < __OpenRaidBossGroup.Length; ++_j) { __OpenRaidBossGroup[_j] = builder.CreateString(_o.OpenRaidBossGroup[_j]); } + _OpenRaidBossGroup = CreateOpenRaidBossGroupVector(builder, __OpenRaidBossGroup); + } + var _StackedSeasonRewardGauge = default(VectorOffset); + if (_o.StackedSeasonRewardGauge != null) { + var __StackedSeasonRewardGauge = _o.StackedSeasonRewardGauge.ToArray(); + _StackedSeasonRewardGauge = CreateStackedSeasonRewardGaugeVector(builder, __StackedSeasonRewardGauge); + } + var _SeasonRewardId = default(VectorOffset); + if (_o.SeasonRewardId != null) { + var __SeasonRewardId = _o.SeasonRewardId.ToArray(); + _SeasonRewardId = CreateSeasonRewardIdVector(builder, __SeasonRewardId); + } + return CreateRaidSeasonManageExcel( + builder, + _o.SeasonId, + _o.SeasonDisplay, + _SeasonStartData, + _SeasonEndData, + _SettlementEndDate, + _OpenRaidBossGroup, + _o.RankingRewardGroupId, + _o.MaxSeasonRewardGauage, + _StackedSeasonRewardGauge, + _SeasonRewardId); + } +} + +public class RaidSeasonManageExcelT +{ + public long SeasonId { get; set; } + public long SeasonDisplay { get; set; } + public string SeasonStartData { get; set; } + public string SeasonEndData { get; set; } + public string SettlementEndDate { get; set; } + public List OpenRaidBossGroup { get; set; } + public long RankingRewardGroupId { get; set; } + public int MaxSeasonRewardGauage { get; set; } + public List StackedSeasonRewardGauge { get; set; } + public List SeasonRewardId { get; set; } + + public RaidSeasonManageExcelT() { + this.SeasonId = 0; + this.SeasonDisplay = 0; + this.SeasonStartData = null; + this.SeasonEndData = null; + this.SettlementEndDate = null; + this.OpenRaidBossGroup = null; + this.RankingRewardGroupId = 0; + this.MaxSeasonRewardGauage = 0; + this.StackedSeasonRewardGauge = null; + this.SeasonRewardId = null; + } } diff --git a/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs index cdd327e..2fb59a6 100644 --- a/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs +++ b/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidSeasonManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RaidSeasonManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidSeasonManageExcelTableT UnPack() { + var _o = new RaidSeasonManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidSeasonManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidSeasonManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RaidSeasonManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RaidSeasonManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRaidSeasonManageExcelTable( + builder, + _DataList); + } +} + +public class RaidSeasonManageExcelTableT +{ + public List DataList { get; set; } + + public RaidSeasonManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RaidStageExcel.cs b/SCHALE.Common/FlatData/RaidStageExcel.cs index 8b5b9c7..6946e9c 100644 --- a/SCHALE.Common/FlatData/RaidStageExcel.cs +++ b/SCHALE.Common/FlatData/RaidStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageExcel : IFlatbufferObject @@ -254,6 +255,198 @@ public struct RaidStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageExcelT UnPack() { + var _o = new RaidStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.UseBossIndex = TableEncryptionService.Convert(this.UseBossIndex, key); + _o.UseBossAIPhaseSync = TableEncryptionService.Convert(this.UseBossAIPhaseSync, key); + _o.RaidBossGroup = TableEncryptionService.Convert(this.RaidBossGroup, key); + _o.PortraitPath = TableEncryptionService.Convert(this.PortraitPath, key); + _o.BGPath = TableEncryptionService.Convert(this.BGPath, key); + _o.RaidCharacterId = TableEncryptionService.Convert(this.RaidCharacterId, key); + _o.BossCharacterId = new List(); + for (var _j = 0; _j < this.BossCharacterIdLength; ++_j) {_o.BossCharacterId.Add(TableEncryptionService.Convert(this.BossCharacterId(_j), key));} + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.DifficultyOpenCondition = TableEncryptionService.Convert(this.DifficultyOpenCondition, key); + _o.MaxPlayerCount = TableEncryptionService.Convert(this.MaxPlayerCount, key); + _o.RaidRoomLifeTime = TableEncryptionService.Convert(this.RaidRoomLifeTime, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.GroundDevName = TableEncryptionService.Convert(this.GroundDevName, key); + _o.EnterTimeLine = TableEncryptionService.Convert(this.EnterTimeLine, key); + _o.TacticEnvironment = TableEncryptionService.Convert(this.TacticEnvironment, key); + _o.DefaultClearScore = TableEncryptionService.Convert(this.DefaultClearScore, key); + _o.MaximumScore = TableEncryptionService.Convert(this.MaximumScore, key); + _o.PerSecondMinusScore = TableEncryptionService.Convert(this.PerSecondMinusScore, key); + _o.HPPercentScore = TableEncryptionService.Convert(this.HPPercentScore, key); + _o.MinimumAcquisitionScore = TableEncryptionService.Convert(this.MinimumAcquisitionScore, key); + _o.MaximumAcquisitionScore = TableEncryptionService.Convert(this.MaximumAcquisitionScore, key); + _o.RaidRewardGroupId = TableEncryptionService.Convert(this.RaidRewardGroupId, key); + _o.BattleReadyTimelinePath = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePathLength; ++_j) {_o.BattleReadyTimelinePath.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePath(_j), key));} + _o.BattleReadyTimelinePhaseStart = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseStartLength; ++_j) {_o.BattleReadyTimelinePhaseStart.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseStart(_j), key));} + _o.BattleReadyTimelinePhaseEnd = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseEndLength; ++_j) {_o.BattleReadyTimelinePhaseEnd.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseEnd(_j), key));} + _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); + _o.PhaseChangeTimelinePath = TableEncryptionService.Convert(this.PhaseChangeTimelinePath, key); + _o.TimeLinePhase = TableEncryptionService.Convert(this.TimeLinePhase, key); + _o.EnterScenarioKey = TableEncryptionService.Convert(this.EnterScenarioKey, key); + _o.ClearScenarioKey = TableEncryptionService.Convert(this.ClearScenarioKey, key); + _o.ShowSkillCard = TableEncryptionService.Convert(this.ShowSkillCard, key); + _o.BossBGInfoKey = TableEncryptionService.Convert(this.BossBGInfoKey, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageExcelT _o) { + if (_o == null) return default(Offset); + var _RaidBossGroup = _o.RaidBossGroup == null ? default(StringOffset) : builder.CreateString(_o.RaidBossGroup); + var _PortraitPath = _o.PortraitPath == null ? default(StringOffset) : builder.CreateString(_o.PortraitPath); + var _BGPath = _o.BGPath == null ? default(StringOffset) : builder.CreateString(_o.BGPath); + var _BossCharacterId = default(VectorOffset); + if (_o.BossCharacterId != null) { + var __BossCharacterId = _o.BossCharacterId.ToArray(); + _BossCharacterId = CreateBossCharacterIdVector(builder, __BossCharacterId); + } + var _GroundDevName = _o.GroundDevName == null ? default(StringOffset) : builder.CreateString(_o.GroundDevName); + var _EnterTimeLine = _o.EnterTimeLine == null ? default(StringOffset) : builder.CreateString(_o.EnterTimeLine); + var _BattleReadyTimelinePath = default(VectorOffset); + if (_o.BattleReadyTimelinePath != null) { + var __BattleReadyTimelinePath = new StringOffset[_o.BattleReadyTimelinePath.Count]; + for (var _j = 0; _j < __BattleReadyTimelinePath.Length; ++_j) { __BattleReadyTimelinePath[_j] = builder.CreateString(_o.BattleReadyTimelinePath[_j]); } + _BattleReadyTimelinePath = CreateBattleReadyTimelinePathVector(builder, __BattleReadyTimelinePath); + } + var _BattleReadyTimelinePhaseStart = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseStart != null) { + var __BattleReadyTimelinePhaseStart = _o.BattleReadyTimelinePhaseStart.ToArray(); + _BattleReadyTimelinePhaseStart = CreateBattleReadyTimelinePhaseStartVector(builder, __BattleReadyTimelinePhaseStart); + } + var _BattleReadyTimelinePhaseEnd = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseEnd != null) { + var __BattleReadyTimelinePhaseEnd = _o.BattleReadyTimelinePhaseEnd.ToArray(); + _BattleReadyTimelinePhaseEnd = CreateBattleReadyTimelinePhaseEndVector(builder, __BattleReadyTimelinePhaseEnd); + } + var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); + var _PhaseChangeTimelinePath = _o.PhaseChangeTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.PhaseChangeTimelinePath); + return CreateRaidStageExcel( + builder, + _o.Id, + _o.UseBossIndex, + _o.UseBossAIPhaseSync, + _RaidBossGroup, + _PortraitPath, + _BGPath, + _o.RaidCharacterId, + _BossCharacterId, + _o.Difficulty, + _o.DifficultyOpenCondition, + _o.MaxPlayerCount, + _o.RaidRoomLifeTime, + _o.BattleDuration, + _o.GroundId, + _GroundDevName, + _EnterTimeLine, + _o.TacticEnvironment, + _o.DefaultClearScore, + _o.MaximumScore, + _o.PerSecondMinusScore, + _o.HPPercentScore, + _o.MinimumAcquisitionScore, + _o.MaximumAcquisitionScore, + _o.RaidRewardGroupId, + _BattleReadyTimelinePath, + _BattleReadyTimelinePhaseStart, + _BattleReadyTimelinePhaseEnd, + _VictoryTimelinePath, + _PhaseChangeTimelinePath, + _o.TimeLinePhase, + _o.EnterScenarioKey, + _o.ClearScenarioKey, + _o.ShowSkillCard, + _o.BossBGInfoKey, + _o.EchelonExtensionType); + } +} + +public class RaidStageExcelT +{ + public long Id { get; set; } + public bool UseBossIndex { get; set; } + public bool UseBossAIPhaseSync { get; set; } + public string RaidBossGroup { get; set; } + public string PortraitPath { get; set; } + public string BGPath { get; set; } + public long RaidCharacterId { get; set; } + public List BossCharacterId { get; set; } + public SCHALE.Common.FlatData.Difficulty Difficulty { get; set; } + public bool DifficultyOpenCondition { get; set; } + public long MaxPlayerCount { get; set; } + public int RaidRoomLifeTime { get; set; } + public long BattleDuration { get; set; } + public long GroundId { get; set; } + public string GroundDevName { get; set; } + public string EnterTimeLine { get; set; } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment { get; set; } + public long DefaultClearScore { get; set; } + public long MaximumScore { get; set; } + public long PerSecondMinusScore { get; set; } + public long HPPercentScore { get; set; } + public long MinimumAcquisitionScore { get; set; } + public long MaximumAcquisitionScore { get; set; } + public long RaidRewardGroupId { get; set; } + public List BattleReadyTimelinePath { get; set; } + public List BattleReadyTimelinePhaseStart { get; set; } + public List BattleReadyTimelinePhaseEnd { get; set; } + public string VictoryTimelinePath { get; set; } + public string PhaseChangeTimelinePath { get; set; } + public long TimeLinePhase { get; set; } + public uint EnterScenarioKey { get; set; } + public uint ClearScenarioKey { get; set; } + public bool ShowSkillCard { get; set; } + public uint BossBGInfoKey { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public RaidStageExcelT() { + this.Id = 0; + this.UseBossIndex = false; + this.UseBossAIPhaseSync = false; + this.RaidBossGroup = null; + this.PortraitPath = null; + this.BGPath = null; + this.RaidCharacterId = 0; + this.BossCharacterId = null; + this.Difficulty = SCHALE.Common.FlatData.Difficulty.Normal; + this.DifficultyOpenCondition = false; + this.MaxPlayerCount = 0; + this.RaidRoomLifeTime = 0; + this.BattleDuration = 0; + this.GroundId = 0; + this.GroundDevName = null; + this.EnterTimeLine = null; + this.TacticEnvironment = SCHALE.Common.FlatData.TacticEnvironment.None; + this.DefaultClearScore = 0; + this.MaximumScore = 0; + this.PerSecondMinusScore = 0; + this.HPPercentScore = 0; + this.MinimumAcquisitionScore = 0; + this.MaximumAcquisitionScore = 0; + this.RaidRewardGroupId = 0; + this.BattleReadyTimelinePath = null; + this.BattleReadyTimelinePhaseStart = null; + this.BattleReadyTimelinePhaseEnd = null; + this.VictoryTimelinePath = null; + this.PhaseChangeTimelinePath = null; + this.TimeLinePhase = 0; + this.EnterScenarioKey = 0; + this.ClearScenarioKey = 0; + this.ShowSkillCard = false; + this.BossBGInfoKey = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/RaidStageExcelTable.cs b/SCHALE.Common/FlatData/RaidStageExcelTable.cs index 7bd9c80..f048a17 100644 --- a/SCHALE.Common/FlatData/RaidStageExcelTable.cs +++ b/SCHALE.Common/FlatData/RaidStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RaidStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageExcelTableT UnPack() { + var _o = new RaidStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RaidStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRaidStageExcelTable( + builder, + _DataList); + } +} + +public class RaidStageExcelTableT +{ + public List DataList { get; set; } + + public RaidStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RaidStageRewardExcel.cs b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs index 59fb043..9dc9b32 100644 --- a/SCHALE.Common/FlatData/RaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageRewardExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct RaidStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageRewardExcelT UnPack() { + var _o = new RaidStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.IsClearStageRewardHideInfo = TableEncryptionService.Convert(this.IsClearStageRewardHideInfo, key); + _o.ClearStageRewardProb = TableEncryptionService.Convert(this.ClearStageRewardProb, key); + _o.ClearStageRewardParcelType = TableEncryptionService.Convert(this.ClearStageRewardParcelType, key); + _o.ClearStageRewardParcelUniqueID = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueID, key); + _o.ClearStageRewardParcelUniqueName = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueName, key); + _o.ClearStageRewardAmount = TableEncryptionService.Convert(this.ClearStageRewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageRewardExcelT _o) { + if (_o == null) return default(Offset); + var _ClearStageRewardParcelUniqueName = _o.ClearStageRewardParcelUniqueName == null ? default(StringOffset) : builder.CreateString(_o.ClearStageRewardParcelUniqueName); + return CreateRaidStageRewardExcel( + builder, + _o.GroupId, + _o.IsClearStageRewardHideInfo, + _o.ClearStageRewardProb, + _o.ClearStageRewardParcelType, + _o.ClearStageRewardParcelUniqueID, + _ClearStageRewardParcelUniqueName, + _o.ClearStageRewardAmount); + } +} + +public class RaidStageRewardExcelT +{ + public long GroupId { get; set; } + public bool IsClearStageRewardHideInfo { get; set; } + public long ClearStageRewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get; set; } + public long ClearStageRewardParcelUniqueID { get; set; } + public string ClearStageRewardParcelUniqueName { get; set; } + public long ClearStageRewardAmount { get; set; } + + public RaidStageRewardExcelT() { + this.GroupId = 0; + this.IsClearStageRewardHideInfo = false; + this.ClearStageRewardProb = 0; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelUniqueID = 0; + this.ClearStageRewardParcelUniqueName = null; + this.ClearStageRewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs index f7f4afc..45599ab 100644 --- a/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RaidStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageRewardExcelTableT UnPack() { + var _o = new RaidStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RaidStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRaidStageRewardExcelTable( + builder, + _DataList); + } +} + +public class RaidStageRewardExcelTableT +{ + public List DataList { get; set; } + + public RaidStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs index 5259138..027593a 100644 --- a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs +++ b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageSeasonRewardExcel : IFlatbufferObject @@ -92,6 +93,71 @@ public struct RaidStageSeasonRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageSeasonRewardExcelT UnPack() { + var _o = new RaidStageSeasonRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageSeasonRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStageSeasonReward"); + _o.SeasonRewardId = TableEncryptionService.Convert(this.SeasonRewardId, key); + _o.SeasonRewardParcelType = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelTypeLength; ++_j) {_o.SeasonRewardParcelType.Add(TableEncryptionService.Convert(this.SeasonRewardParcelType(_j), key));} + _o.SeasonRewardParcelUniqueId = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelUniqueIdLength; ++_j) {_o.SeasonRewardParcelUniqueId.Add(TableEncryptionService.Convert(this.SeasonRewardParcelUniqueId(_j), key));} + _o.SeasonRewardParcelUniqueName = new List(); + for (var _j = 0; _j < this.SeasonRewardParcelUniqueNameLength; ++_j) {_o.SeasonRewardParcelUniqueName.Add(TableEncryptionService.Convert(this.SeasonRewardParcelUniqueName(_j), key));} + _o.SeasonRewardAmount = new List(); + for (var _j = 0; _j < this.SeasonRewardAmountLength; ++_j) {_o.SeasonRewardAmount.Add(TableEncryptionService.Convert(this.SeasonRewardAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageSeasonRewardExcelT _o) { + if (_o == null) return default(Offset); + var _SeasonRewardParcelType = default(VectorOffset); + if (_o.SeasonRewardParcelType != null) { + var __SeasonRewardParcelType = _o.SeasonRewardParcelType.ToArray(); + _SeasonRewardParcelType = CreateSeasonRewardParcelTypeVector(builder, __SeasonRewardParcelType); + } + var _SeasonRewardParcelUniqueId = default(VectorOffset); + if (_o.SeasonRewardParcelUniqueId != null) { + var __SeasonRewardParcelUniqueId = _o.SeasonRewardParcelUniqueId.ToArray(); + _SeasonRewardParcelUniqueId = CreateSeasonRewardParcelUniqueIdVector(builder, __SeasonRewardParcelUniqueId); + } + var _SeasonRewardParcelUniqueName = default(VectorOffset); + if (_o.SeasonRewardParcelUniqueName != null) { + var __SeasonRewardParcelUniqueName = new StringOffset[_o.SeasonRewardParcelUniqueName.Count]; + for (var _j = 0; _j < __SeasonRewardParcelUniqueName.Length; ++_j) { __SeasonRewardParcelUniqueName[_j] = builder.CreateString(_o.SeasonRewardParcelUniqueName[_j]); } + _SeasonRewardParcelUniqueName = CreateSeasonRewardParcelUniqueNameVector(builder, __SeasonRewardParcelUniqueName); + } + var _SeasonRewardAmount = default(VectorOffset); + if (_o.SeasonRewardAmount != null) { + var __SeasonRewardAmount = _o.SeasonRewardAmount.ToArray(); + _SeasonRewardAmount = CreateSeasonRewardAmountVector(builder, __SeasonRewardAmount); + } + return CreateRaidStageSeasonRewardExcel( + builder, + _o.SeasonRewardId, + _SeasonRewardParcelType, + _SeasonRewardParcelUniqueId, + _SeasonRewardParcelUniqueName, + _SeasonRewardAmount); + } +} + +public class RaidStageSeasonRewardExcelT +{ + public long SeasonRewardId { get; set; } + public List SeasonRewardParcelType { get; set; } + public List SeasonRewardParcelUniqueId { get; set; } + public List SeasonRewardParcelUniqueName { get; set; } + public List SeasonRewardAmount { get; set; } + + public RaidStageSeasonRewardExcelT() { + this.SeasonRewardId = 0; + this.SeasonRewardParcelType = null; + this.SeasonRewardParcelUniqueId = null; + this.SeasonRewardParcelUniqueName = null; + this.SeasonRewardAmount = null; + } } diff --git a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs index dbbe25c..a618bcb 100644 --- a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RaidStageSeasonRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RaidStageSeasonRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RaidStageSeasonRewardExcelTableT UnPack() { + var _o = new RaidStageSeasonRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RaidStageSeasonRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RaidStageSeasonRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RaidStageSeasonRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RaidStageSeasonRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRaidStageSeasonRewardExcelTable( + builder, + _DataList); + } +} + +public class RaidStageSeasonRewardExcelTableT +{ + public List DataList { get; set; } + + public RaidStageSeasonRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeCraftExcel.cs b/SCHALE.Common/FlatData/RecipeCraftExcel.cs index 6060a12..f137960 100644 --- a/SCHALE.Common/FlatData/RecipeCraftExcel.cs +++ b/SCHALE.Common/FlatData/RecipeCraftExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeCraftExcel : IFlatbufferObject @@ -136,6 +137,99 @@ public struct RecipeCraftExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeCraftExcelT UnPack() { + var _o = new RecipeCraftExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeCraftExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeCraft"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.RecipeType = TableEncryptionService.Convert(this.RecipeType, key); + _o.RecipeIngredientId = TableEncryptionService.Convert(this.RecipeIngredientId, key); + _o.RecipeIngredientDevName = TableEncryptionService.Convert(this.RecipeIngredientDevName, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ParcelDevName = new List(); + for (var _j = 0; _j < this.ParcelDevNameLength; ++_j) {_o.ParcelDevName.Add(TableEncryptionService.Convert(this.ParcelDevName(_j), key));} + _o.ResultAmountMin = new List(); + for (var _j = 0; _j < this.ResultAmountMinLength; ++_j) {_o.ResultAmountMin.Add(TableEncryptionService.Convert(this.ResultAmountMin(_j), key));} + _o.ResultAmountMax = new List(); + for (var _j = 0; _j < this.ResultAmountMaxLength; ++_j) {_o.ResultAmountMax.Add(TableEncryptionService.Convert(this.ResultAmountMax(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeCraftExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _RecipeIngredientDevName = _o.RecipeIngredientDevName == null ? default(StringOffset) : builder.CreateString(_o.RecipeIngredientDevName); + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ParcelDevName = default(VectorOffset); + if (_o.ParcelDevName != null) { + var __ParcelDevName = new StringOffset[_o.ParcelDevName.Count]; + for (var _j = 0; _j < __ParcelDevName.Length; ++_j) { __ParcelDevName[_j] = builder.CreateString(_o.ParcelDevName[_j]); } + _ParcelDevName = CreateParcelDevNameVector(builder, __ParcelDevName); + } + var _ResultAmountMin = default(VectorOffset); + if (_o.ResultAmountMin != null) { + var __ResultAmountMin = _o.ResultAmountMin.ToArray(); + _ResultAmountMin = CreateResultAmountMinVector(builder, __ResultAmountMin); + } + var _ResultAmountMax = default(VectorOffset); + if (_o.ResultAmountMax != null) { + var __ResultAmountMax = _o.ResultAmountMax.ToArray(); + _ResultAmountMax = CreateResultAmountMaxVector(builder, __ResultAmountMax); + } + return CreateRecipeCraftExcel( + builder, + _o.Id, + _DevName, + _o.RecipeType, + _o.RecipeIngredientId, + _RecipeIngredientDevName, + _ParcelType_, + _ParcelId, + _ParcelDevName, + _ResultAmountMin, + _ResultAmountMax); + } +} + +public class RecipeCraftExcelT +{ + public long Id { get; set; } + public string DevName { get; set; } + public SCHALE.Common.FlatData.RecipeType RecipeType { get; set; } + public long RecipeIngredientId { get; set; } + public string RecipeIngredientDevName { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ParcelDevName { get; set; } + public List ResultAmountMin { get; set; } + public List ResultAmountMax { get; set; } + + public RecipeCraftExcelT() { + this.Id = 0; + this.DevName = null; + this.RecipeType = SCHALE.Common.FlatData.RecipeType.None; + this.RecipeIngredientId = 0; + this.RecipeIngredientDevName = null; + this.ParcelType_ = null; + this.ParcelId = null; + this.ParcelDevName = null; + this.ResultAmountMin = null; + this.ResultAmountMax = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs b/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs index a043deb..608d8a6 100644 --- a/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs +++ b/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeCraftExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RecipeCraftExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeCraftExcelTableT UnPack() { + var _o = new RecipeCraftExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeCraftExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeCraftExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeCraftExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RecipeCraftExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRecipeCraftExcelTable( + builder, + _DataList); + } +} + +public class RecipeCraftExcelTableT +{ + public List DataList { get; set; } + + public RecipeCraftExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeExcel.cs b/SCHALE.Common/FlatData/RecipeExcel.cs index f352f10..6c52299 100644 --- a/SCHALE.Common/FlatData/RecipeExcel.cs +++ b/SCHALE.Common/FlatData/RecipeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeExcel : IFlatbufferObject @@ -110,6 +111,82 @@ public struct RecipeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeExcelT UnPack() { + var _o = new RecipeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Recipe"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RecipeType = TableEncryptionService.Convert(this.RecipeType, key); + _o.RecipeIngredientId = TableEncryptionService.Convert(this.RecipeIngredientId, key); + _o.RecipeSelectionGroupId = TableEncryptionService.Convert(this.RecipeSelectionGroupId, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ResultAmountMin = new List(); + for (var _j = 0; _j < this.ResultAmountMinLength; ++_j) {_o.ResultAmountMin.Add(TableEncryptionService.Convert(this.ResultAmountMin(_j), key));} + _o.ResultAmountMax = new List(); + for (var _j = 0; _j < this.ResultAmountMaxLength; ++_j) {_o.ResultAmountMax.Add(TableEncryptionService.Convert(this.ResultAmountMax(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeExcelT _o) { + if (_o == null) return default(Offset); + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ResultAmountMin = default(VectorOffset); + if (_o.ResultAmountMin != null) { + var __ResultAmountMin = _o.ResultAmountMin.ToArray(); + _ResultAmountMin = CreateResultAmountMinVector(builder, __ResultAmountMin); + } + var _ResultAmountMax = default(VectorOffset); + if (_o.ResultAmountMax != null) { + var __ResultAmountMax = _o.ResultAmountMax.ToArray(); + _ResultAmountMax = CreateResultAmountMaxVector(builder, __ResultAmountMax); + } + return CreateRecipeExcel( + builder, + _o.Id, + _o.RecipeType, + _o.RecipeIngredientId, + _o.RecipeSelectionGroupId, + _ParcelType_, + _ParcelId, + _ResultAmountMin, + _ResultAmountMax); + } +} + +public class RecipeExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.RecipeType RecipeType { get; set; } + public long RecipeIngredientId { get; set; } + public long RecipeSelectionGroupId { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ResultAmountMin { get; set; } + public List ResultAmountMax { get; set; } + + public RecipeExcelT() { + this.Id = 0; + this.RecipeType = SCHALE.Common.FlatData.RecipeType.None; + this.RecipeIngredientId = 0; + this.RecipeSelectionGroupId = 0; + this.ParcelType_ = null; + this.ParcelId = null; + this.ResultAmountMin = null; + this.ResultAmountMax = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeExcelTable.cs b/SCHALE.Common/FlatData/RecipeExcelTable.cs index f8ebda7..936a307 100644 --- a/SCHALE.Common/FlatData/RecipeExcelTable.cs +++ b/SCHALE.Common/FlatData/RecipeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RecipeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeExcelTableT UnPack() { + var _o = new RecipeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RecipeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRecipeExcelTable( + builder, + _DataList); + } +} + +public class RecipeExcelTableT +{ + public List DataList { get; set; } + + public RecipeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeIngredientExcel.cs b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs index af4c1e1..8d02d30 100644 --- a/SCHALE.Common/FlatData/RecipeIngredientExcel.cs +++ b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeIngredientExcel : IFlatbufferObject @@ -138,6 +139,98 @@ public struct RecipeIngredientExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeIngredientExcelT UnPack() { + var _o = new RecipeIngredientExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeIngredientExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeIngredient"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RecipeType = TableEncryptionService.Convert(this.RecipeType, key); + _o.CostParcelType = new List(); + for (var _j = 0; _j < this.CostParcelTypeLength; ++_j) {_o.CostParcelType.Add(TableEncryptionService.Convert(this.CostParcelType(_j), key));} + _o.CostId = new List(); + for (var _j = 0; _j < this.CostIdLength; ++_j) {_o.CostId.Add(TableEncryptionService.Convert(this.CostId(_j), key));} + _o.CostAmount = new List(); + for (var _j = 0; _j < this.CostAmountLength; ++_j) {_o.CostAmount.Add(TableEncryptionService.Convert(this.CostAmount(_j), key));} + _o.IngredientParcelType = new List(); + for (var _j = 0; _j < this.IngredientParcelTypeLength; ++_j) {_o.IngredientParcelType.Add(TableEncryptionService.Convert(this.IngredientParcelType(_j), key));} + _o.IngredientId = new List(); + for (var _j = 0; _j < this.IngredientIdLength; ++_j) {_o.IngredientId.Add(TableEncryptionService.Convert(this.IngredientId(_j), key));} + _o.IngredientAmount = new List(); + for (var _j = 0; _j < this.IngredientAmountLength; ++_j) {_o.IngredientAmount.Add(TableEncryptionService.Convert(this.IngredientAmount(_j), key));} + _o.CostTimeInSecond = TableEncryptionService.Convert(this.CostTimeInSecond, key); + } + public static Offset Pack(FlatBufferBuilder builder, RecipeIngredientExcelT _o) { + if (_o == null) return default(Offset); + var _CostParcelType = default(VectorOffset); + if (_o.CostParcelType != null) { + var __CostParcelType = _o.CostParcelType.ToArray(); + _CostParcelType = CreateCostParcelTypeVector(builder, __CostParcelType); + } + var _CostId = default(VectorOffset); + if (_o.CostId != null) { + var __CostId = _o.CostId.ToArray(); + _CostId = CreateCostIdVector(builder, __CostId); + } + var _CostAmount = default(VectorOffset); + if (_o.CostAmount != null) { + var __CostAmount = _o.CostAmount.ToArray(); + _CostAmount = CreateCostAmountVector(builder, __CostAmount); + } + var _IngredientParcelType = default(VectorOffset); + if (_o.IngredientParcelType != null) { + var __IngredientParcelType = _o.IngredientParcelType.ToArray(); + _IngredientParcelType = CreateIngredientParcelTypeVector(builder, __IngredientParcelType); + } + var _IngredientId = default(VectorOffset); + if (_o.IngredientId != null) { + var __IngredientId = _o.IngredientId.ToArray(); + _IngredientId = CreateIngredientIdVector(builder, __IngredientId); + } + var _IngredientAmount = default(VectorOffset); + if (_o.IngredientAmount != null) { + var __IngredientAmount = _o.IngredientAmount.ToArray(); + _IngredientAmount = CreateIngredientAmountVector(builder, __IngredientAmount); + } + return CreateRecipeIngredientExcel( + builder, + _o.Id, + _o.RecipeType, + _CostParcelType, + _CostId, + _CostAmount, + _IngredientParcelType, + _IngredientId, + _IngredientAmount, + _o.CostTimeInSecond); + } +} + +public class RecipeIngredientExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.RecipeType RecipeType { get; set; } + public List CostParcelType { get; set; } + public List CostId { get; set; } + public List CostAmount { get; set; } + public List IngredientParcelType { get; set; } + public List IngredientId { get; set; } + public List IngredientAmount { get; set; } + public long CostTimeInSecond { get; set; } + + public RecipeIngredientExcelT() { + this.Id = 0; + this.RecipeType = SCHALE.Common.FlatData.RecipeType.None; + this.CostParcelType = null; + this.CostId = null; + this.CostAmount = null; + this.IngredientParcelType = null; + this.IngredientId = null; + this.IngredientAmount = null; + this.CostTimeInSecond = 0; + } } diff --git a/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs b/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs index 639e670..8103e4f 100644 --- a/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs +++ b/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeIngredientExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RecipeIngredientExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeIngredientExcelTableT UnPack() { + var _o = new RecipeIngredientExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeIngredientExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeIngredientExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeIngredientExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RecipeIngredientExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRecipeIngredientExcelTable( + builder, + _DataList); + } +} + +public class RecipeIngredientExcelTableT +{ + public List DataList { get; set; } + + public RecipeIngredientExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs index f14c212..d0235fa 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeSelectionAutoUseExcel : IFlatbufferObject @@ -58,6 +59,48 @@ public struct RecipeSelectionAutoUseExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeSelectionAutoUseExcelT UnPack() { + var _o = new RecipeSelectionAutoUseExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeSelectionAutoUseExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeSelectionAutoUse"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.TargetItemId = TableEncryptionService.Convert(this.TargetItemId, key); + _o.Priority = new List(); + for (var _j = 0; _j < this.PriorityLength; ++_j) {_o.Priority.Add(TableEncryptionService.Convert(this.Priority(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeSelectionAutoUseExcelT _o) { + if (_o == null) return default(Offset); + var _Priority = default(VectorOffset); + if (_o.Priority != null) { + var __Priority = _o.Priority.ToArray(); + _Priority = CreatePriorityVector(builder, __Priority); + } + return CreateRecipeSelectionAutoUseExcel( + builder, + _o.Id, + _o.ParcelType, + _o.TargetItemId, + _Priority); + } +} + +public class RecipeSelectionAutoUseExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long TargetItemId { get; set; } + public List Priority { get; set; } + + public RecipeSelectionAutoUseExcelT() { + this.Id = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.TargetItemId = 0; + this.Priority = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs index 9f5bec0..cd0d067 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeSelectionAutoUseExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RecipeSelectionAutoUseExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeSelectionAutoUseExcelTableT UnPack() { + var _o = new RecipeSelectionAutoUseExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeSelectionAutoUseExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeSelectionAutoUseExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeSelectionAutoUseExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RecipeSelectionAutoUseExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRecipeSelectionAutoUseExcelTable( + builder, + _DataList); + } +} + +public class RecipeSelectionAutoUseExcelTableT +{ + public List DataList { get; set; } + + public RecipeSelectionAutoUseExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs index 6b8aa0f..7742857 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeSelectionGroupExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct RecipeSelectionGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeSelectionGroupExcelT UnPack() { + var _o = new RecipeSelectionGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeSelectionGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeSelectionGroup"); + _o.RecipeSelectionGroupId = TableEncryptionService.Convert(this.RecipeSelectionGroupId, key); + _o.RecipeSelectionGroupComponentId = TableEncryptionService.Convert(this.RecipeSelectionGroupComponentId, key); + _o.ParcelType = TableEncryptionService.Convert(this.ParcelType, key); + _o.ParcelId = TableEncryptionService.Convert(this.ParcelId, key); + _o.ResultAmountMin = TableEncryptionService.Convert(this.ResultAmountMin, key); + _o.ResultAmountMax = TableEncryptionService.Convert(this.ResultAmountMax, key); + } + public static Offset Pack(FlatBufferBuilder builder, RecipeSelectionGroupExcelT _o) { + if (_o == null) return default(Offset); + return CreateRecipeSelectionGroupExcel( + builder, + _o.RecipeSelectionGroupId, + _o.RecipeSelectionGroupComponentId, + _o.ParcelType, + _o.ParcelId, + _o.ResultAmountMin, + _o.ResultAmountMax); + } +} + +public class RecipeSelectionGroupExcelT +{ + public long RecipeSelectionGroupId { get; set; } + public long RecipeSelectionGroupComponentId { get; set; } + public SCHALE.Common.FlatData.ParcelType ParcelType { get; set; } + public long ParcelId { get; set; } + public long ResultAmountMin { get; set; } + public long ResultAmountMax { get; set; } + + public RecipeSelectionGroupExcelT() { + this.RecipeSelectionGroupId = 0; + this.RecipeSelectionGroupComponentId = 0; + this.ParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelId = 0; + this.ResultAmountMin = 0; + this.ResultAmountMax = 0; + } } diff --git a/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs b/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs index 3a0b61b..f133190 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RecipeSelectionGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct RecipeSelectionGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RecipeSelectionGroupExcelTableT UnPack() { + var _o = new RecipeSelectionGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RecipeSelectionGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("RecipeSelectionGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, RecipeSelectionGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.RecipeSelectionGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateRecipeSelectionGroupExcelTable( + builder, + _DataList); + } +} + +public class RecipeSelectionGroupExcelTableT +{ + public List DataList { get; set; } + + public RecipeSelectionGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/RootMotionFlat.cs b/SCHALE.Common/FlatData/RootMotionFlat.cs index 85a62f4..0fff00d 100644 --- a/SCHALE.Common/FlatData/RootMotionFlat.cs +++ b/SCHALE.Common/FlatData/RootMotionFlat.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct RootMotionFlat : IFlatbufferObject @@ -58,6 +59,58 @@ public struct RootMotionFlat : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public RootMotionFlatT UnPack() { + var _o = new RootMotionFlatT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(RootMotionFlatT _o) { + byte[] key = { 0 }; + _o.Forms = new List(); + for (var _j = 0; _j < this.FormsLength; ++_j) {_o.Forms.Add(this.Forms(_j).HasValue ? this.Forms(_j).Value.UnPack() : null);} + _o.ExSkills = new List(); + for (var _j = 0; _j < this.ExSkillsLength; ++_j) {_o.ExSkills.Add(this.ExSkills(_j).HasValue ? this.ExSkills(_j).Value.UnPack() : null);} + _o.MoveLeft = this.MoveLeft.HasValue ? this.MoveLeft.Value.UnPack() : null; + _o.MoveRight = this.MoveRight.HasValue ? this.MoveRight.Value.UnPack() : null; + } + public static Offset Pack(FlatBufferBuilder builder, RootMotionFlatT _o) { + if (_o == null) return default(Offset); + var _Forms = default(VectorOffset); + if (_o.Forms != null) { + var __Forms = new Offset[_o.Forms.Count]; + for (var _j = 0; _j < __Forms.Length; ++_j) { __Forms[_j] = SCHALE.Common.FlatData.Form.Pack(builder, _o.Forms[_j]); } + _Forms = CreateFormsVector(builder, __Forms); + } + var _ExSkills = default(VectorOffset); + if (_o.ExSkills != null) { + var __ExSkills = new Offset[_o.ExSkills.Count]; + for (var _j = 0; _j < __ExSkills.Length; ++_j) { __ExSkills[_j] = SCHALE.Common.FlatData.Motion.Pack(builder, _o.ExSkills[_j]); } + _ExSkills = CreateExSkillsVector(builder, __ExSkills); + } + var _MoveLeft = _o.MoveLeft == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.MoveLeft); + var _MoveRight = _o.MoveRight == null ? default(Offset) : SCHALE.Common.FlatData.Motion.Pack(builder, _o.MoveRight); + return CreateRootMotionFlat( + builder, + _Forms, + _ExSkills, + _MoveLeft, + _MoveRight); + } +} + +public class RootMotionFlatT +{ + public List Forms { get; set; } + public List ExSkills { get; set; } + public SCHALE.Common.FlatData.MotionT MoveLeft { get; set; } + public SCHALE.Common.FlatData.MotionT MoveRight { get; set; } + + public RootMotionFlatT() { + this.Forms = null; + this.ExSkills = null; + this.MoveLeft = null; + this.MoveRight = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs index d2b1a88..be0a4eb 100644 --- a/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioBGEffectExcel : IFlatbufferObject @@ -60,6 +61,51 @@ public struct ScenarioBGEffectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioBGEffectExcelT UnPack() { + var _o = new ScenarioBGEffectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioBGEffectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioBGEffect"); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Effect = TableEncryptionService.Convert(this.Effect, key); + _o.Scroll = TableEncryptionService.Convert(this.Scroll, key); + _o.ScrollTime = TableEncryptionService.Convert(this.ScrollTime, key); + _o.ScrollFrom = TableEncryptionService.Convert(this.ScrollFrom, key); + _o.ScrollTo = TableEncryptionService.Convert(this.ScrollTo, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioBGEffectExcelT _o) { + if (_o == null) return default(Offset); + var _Effect = _o.Effect == null ? default(StringOffset) : builder.CreateString(_o.Effect); + return CreateScenarioBGEffectExcel( + builder, + _o.Name, + _Effect, + _o.Scroll, + _o.ScrollTime, + _o.ScrollFrom, + _o.ScrollTo); + } +} + +public class ScenarioBGEffectExcelT +{ + public uint Name { get; set; } + public string Effect { get; set; } + public SCHALE.Common.FlatData.ScenarioBGScroll Scroll { get; set; } + public long ScrollTime { get; set; } + public long ScrollFrom { get; set; } + public long ScrollTo { get; set; } + + public ScenarioBGEffectExcelT() { + this.Name = 0; + this.Effect = null; + this.Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None; + this.ScrollTime = 0; + this.ScrollFrom = 0; + this.ScrollTo = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs index f97cecd..c0d8c85 100644 --- a/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioBGNameExcel : IFlatbufferObject @@ -84,6 +85,65 @@ public struct ScenarioBGNameExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioBGNameExcelT UnPack() { + var _o = new ScenarioBGNameExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioBGNameExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioBGName"); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.BGFileName = TableEncryptionService.Convert(this.BGFileName, key); + _o.BGType = TableEncryptionService.Convert(this.BGType, key); + _o.AnimationRoot = TableEncryptionService.Convert(this.AnimationRoot, key); + _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); + _o.SpineScale = TableEncryptionService.Convert(this.SpineScale, key); + _o.SpineLocalPosX = TableEncryptionService.Convert(this.SpineLocalPosX, key); + _o.SpineLocalPosY = TableEncryptionService.Convert(this.SpineLocalPosY, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioBGNameExcelT _o) { + if (_o == null) return default(Offset); + var _BGFileName = _o.BGFileName == null ? default(StringOffset) : builder.CreateString(_o.BGFileName); + var _AnimationRoot = _o.AnimationRoot == null ? default(StringOffset) : builder.CreateString(_o.AnimationRoot); + var _AnimationName = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName); + return CreateScenarioBGNameExcel( + builder, + _o.Name, + _o.ProductionStep, + _BGFileName, + _o.BGType, + _AnimationRoot, + _AnimationName, + _o.SpineScale, + _o.SpineLocalPosX, + _o.SpineLocalPosY); + } +} + +public class ScenarioBGNameExcelT +{ + public uint Name { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public string BGFileName { get; set; } + public SCHALE.Common.FlatData.ScenarioBGType BGType { get; set; } + public string AnimationRoot { get; set; } + public string AnimationName { get; set; } + public float SpineScale { get; set; } + public int SpineLocalPosX { get; set; } + public int SpineLocalPosY { get; set; } + + public ScenarioBGNameExcelT() { + this.Name = 0; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.BGFileName = null; + this.BGType = SCHALE.Common.FlatData.ScenarioBGType.None; + this.AnimationRoot = null; + this.AnimationName = null; + this.SpineScale = 0.0f; + this.SpineLocalPosX = 0; + this.SpineLocalPosY = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs index f5f419e..377338a 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioCharacterEmotionExcel : IFlatbufferObject @@ -44,6 +45,35 @@ public struct ScenarioCharacterEmotionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioCharacterEmotionExcelT UnPack() { + var _o = new ScenarioCharacterEmotionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioCharacterEmotionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioCharacterEmotion"); + _o.EmoticonName = TableEncryptionService.Convert(this.EmoticonName, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioCharacterEmotionExcelT _o) { + if (_o == null) return default(Offset); + var _EmoticonName = _o.EmoticonName == null ? default(StringOffset) : builder.CreateString(_o.EmoticonName); + return CreateScenarioCharacterEmotionExcel( + builder, + _EmoticonName, + _o.Name); + } +} + +public class ScenarioCharacterEmotionExcelT +{ + public string EmoticonName { get; set; } + public uint Name { get; set; } + + public ScenarioCharacterEmotionExcelT() { + this.EmoticonName = null; + this.Name = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs index 0c9f042..2fdd8aa 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioCharacterNameExcel : IFlatbufferObject @@ -102,6 +103,68 @@ public struct ScenarioCharacterNameExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioCharacterNameExcelT UnPack() { + var _o = new ScenarioCharacterNameExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioCharacterNameExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioCharacterName"); + _o.CharacterName = TableEncryptionService.Convert(this.CharacterName, key); + _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); + _o.NameKR = TableEncryptionService.Convert(this.NameKR, key); + _o.NicknameKR = TableEncryptionService.Convert(this.NicknameKR, key); + _o.NameJP = TableEncryptionService.Convert(this.NameJP, key); + _o.NicknameJP = TableEncryptionService.Convert(this.NicknameJP, key); + _o.Shape = TableEncryptionService.Convert(this.Shape, key); + _o.SpinePrefabName = TableEncryptionService.Convert(this.SpinePrefabName, key); + _o.SmallPortrait = TableEncryptionService.Convert(this.SmallPortrait, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioCharacterNameExcelT _o) { + if (_o == null) return default(Offset); + var _NameKR = _o.NameKR == null ? default(StringOffset) : builder.CreateString(_o.NameKR); + var _NicknameKR = _o.NicknameKR == null ? default(StringOffset) : builder.CreateString(_o.NicknameKR); + var _NameJP = _o.NameJP == null ? default(StringOffset) : builder.CreateString(_o.NameJP); + var _NicknameJP = _o.NicknameJP == null ? default(StringOffset) : builder.CreateString(_o.NicknameJP); + var _SpinePrefabName = _o.SpinePrefabName == null ? default(StringOffset) : builder.CreateString(_o.SpinePrefabName); + var _SmallPortrait = _o.SmallPortrait == null ? default(StringOffset) : builder.CreateString(_o.SmallPortrait); + return CreateScenarioCharacterNameExcel( + builder, + _o.CharacterName, + _o.ProductionStep, + _NameKR, + _NicknameKR, + _NameJP, + _NicknameJP, + _o.Shape, + _SpinePrefabName, + _SmallPortrait); + } +} + +public class ScenarioCharacterNameExcelT +{ + public uint CharacterName { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } + public string NameKR { get; set; } + public string NicknameKR { get; set; } + public string NameJP { get; set; } + public string NicknameJP { get; set; } + public SCHALE.Common.FlatData.ScenarioCharacterShapes Shape { get; set; } + public string SpinePrefabName { get; set; } + public string SmallPortrait { get; set; } + + public ScenarioCharacterNameExcelT() { + this.CharacterName = 0; + this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.NameKR = null; + this.NicknameKR = null; + this.NameJP = null; + this.NicknameJP = null; + this.Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None; + this.SpinePrefabName = null; + this.SmallPortrait = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs index b64a252..13f83bb 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioCharacterSituationSetExcel : IFlatbufferObject @@ -82,6 +83,58 @@ public struct ScenarioCharacterSituationSetExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioCharacterSituationSetExcelT UnPack() { + var _o = new ScenarioCharacterSituationSetExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioCharacterSituationSetExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioCharacterSituationSet"); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Face = TableEncryptionService.Convert(this.Face, key); + _o.Behavior = TableEncryptionService.Convert(this.Behavior, key); + _o.Action = TableEncryptionService.Convert(this.Action, key); + _o.Shape = TableEncryptionService.Convert(this.Shape, key); + _o.Effect = TableEncryptionService.Convert(this.Effect, key); + _o.Emotion = TableEncryptionService.Convert(this.Emotion, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioCharacterSituationSetExcelT _o) { + if (_o == null) return default(Offset); + var _Face = _o.Face == null ? default(StringOffset) : builder.CreateString(_o.Face); + var _Behavior = _o.Behavior == null ? default(StringOffset) : builder.CreateString(_o.Behavior); + var _Action = _o.Action == null ? default(StringOffset) : builder.CreateString(_o.Action); + var _Shape = _o.Shape == null ? default(StringOffset) : builder.CreateString(_o.Shape); + return CreateScenarioCharacterSituationSetExcel( + builder, + _o.Name, + _Face, + _Behavior, + _Action, + _Shape, + _o.Effect, + _o.Emotion); + } +} + +public class ScenarioCharacterSituationSetExcelT +{ + public uint Name { get; set; } + public string Face { get; set; } + public string Behavior { get; set; } + public string Action { get; set; } + public string Shape { get; set; } + public uint Effect { get; set; } + public uint Emotion { get; set; } + + public ScenarioCharacterSituationSetExcelT() { + this.Name = 0; + this.Face = null; + this.Behavior = null; + this.Action = null; + this.Shape = null; + this.Effect = 0; + this.Emotion = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioEffectExcel.cs b/SCHALE.Common/FlatData/ScenarioEffectExcel.cs index 65a2dec..7a049f9 100644 --- a/SCHALE.Common/FlatData/ScenarioEffectExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioEffectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioEffectExcel : IFlatbufferObject @@ -44,6 +45,35 @@ public struct ScenarioEffectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioEffectExcelT UnPack() { + var _o = new ScenarioEffectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioEffectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioEffect"); + _o.EffectName = TableEncryptionService.Convert(this.EffectName, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioEffectExcelT _o) { + if (_o == null) return default(Offset); + var _EffectName = _o.EffectName == null ? default(StringOffset) : builder.CreateString(_o.EffectName); + return CreateScenarioEffectExcel( + builder, + _EffectName, + _o.Name); + } +} + +public class ScenarioEffectExcelT +{ + public string EffectName { get; set; } + public uint Name { get; set; } + + public ScenarioEffectExcelT() { + this.EffectName = null; + this.Name = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioExcel.cs b/SCHALE.Common/FlatData/ScenarioExcel.cs index 9fdb341..0f1ffea 100644 --- a/SCHALE.Common/FlatData/ScenarioExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioExcel : IFlatbufferObject @@ -90,6 +91,74 @@ public struct ScenarioExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioExcelT UnPack() { + var _o = new ScenarioExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Scenario"); + _o.None = new List(); + for (var _j = 0; _j < this.NoneLength; ++_j) {_o.None.Add(TableEncryptionService.Convert(this.None(_j), key));} + _o.Idle = new List(); + for (var _j = 0; _j < this.IdleLength; ++_j) {_o.Idle.Add(TableEncryptionService.Convert(this.Idle(_j), key));} + _o.Cafe = TableEncryptionService.Convert(this.Cafe, key); + _o.Talk = TableEncryptionService.Convert(this.Talk, key); + _o.Open = TableEncryptionService.Convert(this.Open, key); + _o.EnterConver = TableEncryptionService.Convert(this.EnterConver, key); + _o.Center = TableEncryptionService.Convert(this.Center, key); + _o.Instant = TableEncryptionService.Convert(this.Instant, key); + _o.Prologue = TableEncryptionService.Convert(this.Prologue, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioExcelT _o) { + if (_o == null) return default(Offset); + var _None = default(VectorOffset); + if (_o.None != null) { + var __None = _o.None.ToArray(); + _None = CreateNoneVector(builder, __None); + } + var _Idle = default(VectorOffset); + if (_o.Idle != null) { + var __Idle = _o.Idle.ToArray(); + _Idle = CreateIdleVector(builder, __Idle); + } + return CreateScenarioExcel( + builder, + _None, + _Idle, + _o.Cafe, + _o.Talk, + _o.Open, + _o.EnterConver, + _o.Center, + _o.Instant, + _o.Prologue); + } +} + +public class ScenarioExcelT +{ + public List None { get; set; } + public List Idle { get; set; } + public SCHALE.Common.FlatData.DialogCategory Cafe { get; set; } + public SCHALE.Common.FlatData.DialogType Talk { get; set; } + public SCHALE.Common.FlatData.StoryCondition Open { get; set; } + public SCHALE.Common.FlatData.EmojiEvent EnterConver { get; set; } + public SCHALE.Common.FlatData.ScenarioZoomAnchors Center { get; set; } + public SCHALE.Common.FlatData.ScenarioZoomType Instant { get; set; } + public SCHALE.Common.FlatData.ScenarioContentType Prologue { get; set; } + + public ScenarioExcelT() { + this.None = null; + this.Idle = null; + this.Cafe = SCHALE.Common.FlatData.DialogCategory.Cafe; + this.Talk = SCHALE.Common.FlatData.DialogType.Talk; + this.Open = SCHALE.Common.FlatData.StoryCondition.Open; + this.EnterConver = SCHALE.Common.FlatData.EmojiEvent.EnterConver; + this.Center = SCHALE.Common.FlatData.ScenarioZoomAnchors.Center; + this.Instant = SCHALE.Common.FlatData.ScenarioZoomType.Instant; + this.Prologue = SCHALE.Common.FlatData.ScenarioContentType.Prologue; + } } diff --git a/SCHALE.Common/FlatData/ScenarioExcelTable.cs b/SCHALE.Common/FlatData/ScenarioExcelTable.cs index 4d6c26e..5a444c9 100644 --- a/SCHALE.Common/FlatData/ScenarioExcelTable.cs +++ b/SCHALE.Common/FlatData/ScenarioExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ScenarioExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioExcelTableT UnPack() { + var _o = new ScenarioExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateScenarioExcelTable( + builder, + _DataList); + } +} + +public class ScenarioExcelTableT +{ + public List DataList { get; set; } + + public ScenarioExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioModeExcel.cs b/SCHALE.Common/FlatData/ScenarioModeExcel.cs index 6383776..ce8ac8b 100644 --- a/SCHALE.Common/FlatData/ScenarioModeExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioModeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioModeExcel : IFlatbufferObject @@ -226,6 +227,194 @@ public struct ScenarioModeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioModeExcelT UnPack() { + var _o = new ScenarioModeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioModeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioMode"); + _o.ModeId = TableEncryptionService.Convert(this.ModeId, key); + _o.ModeType = TableEncryptionService.Convert(this.ModeType, key); + _o.SubType = TableEncryptionService.Convert(this.SubType, key); + _o.VolumeId = TableEncryptionService.Convert(this.VolumeId, key); + _o.ChapterId = TableEncryptionService.Convert(this.ChapterId, key); + _o.EpisodeId = TableEncryptionService.Convert(this.EpisodeId, key); + _o.Hide = TableEncryptionService.Convert(this.Hide, key); + _o.Open = TableEncryptionService.Convert(this.Open, key); + _o.IsContinue = TableEncryptionService.Convert(this.IsContinue, key); + _o.EpisodeContinueModeId = TableEncryptionService.Convert(this.EpisodeContinueModeId, key); + _o.FrontScenarioGroupId = new List(); + for (var _j = 0; _j < this.FrontScenarioGroupIdLength; ++_j) {_o.FrontScenarioGroupId.Add(TableEncryptionService.Convert(this.FrontScenarioGroupId(_j), key));} + _o.StrategyId = TableEncryptionService.Convert(this.StrategyId, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.IsDefeatBattle = TableEncryptionService.Convert(this.IsDefeatBattle, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.BackScenarioGroupId = new List(); + for (var _j = 0; _j < this.BackScenarioGroupIdLength; ++_j) {_o.BackScenarioGroupId.Add(TableEncryptionService.Convert(this.BackScenarioGroupId(_j), key));} + _o.ClearedModeId = new List(); + for (var _j = 0; _j < this.ClearedModeIdLength; ++_j) {_o.ClearedModeId.Add(TableEncryptionService.Convert(this.ClearedModeId(_j), key));} + _o.ScenarioModeRewardId = TableEncryptionService.Convert(this.ScenarioModeRewardId, key); + _o.IsScenarioSpecialReward = TableEncryptionService.Convert(this.IsScenarioSpecialReward, key); + _o.AccountLevelLimit = TableEncryptionService.Convert(this.AccountLevelLimit, key); + _o.ClearedStageId = TableEncryptionService.Convert(this.ClearedStageId, key); + _o.NeedClub = TableEncryptionService.Convert(this.NeedClub, key); + _o.NeedClubStudentCount = TableEncryptionService.Convert(this.NeedClubStudentCount, key); + _o.NeedTSS = TableEncryptionService.Convert(this.NeedTSS, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EventContentType = TableEncryptionService.Convert(this.EventContentType, key); + _o.EventContentCondition = TableEncryptionService.Convert(this.EventContentCondition, key); + _o.EventContentConditionGroup = TableEncryptionService.Convert(this.EventContentConditionGroup, key); + _o.MapDifficulty = TableEncryptionService.Convert(this.MapDifficulty, key); + _o.StepIndex = TableEncryptionService.Convert(this.StepIndex, key); + _o.RecommendLevel = TableEncryptionService.Convert(this.RecommendLevel, key); + _o.EventIconParcelPath = TableEncryptionService.Convert(this.EventIconParcelPath, key); + _o.Lof = TableEncryptionService.Convert(this.Lof, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.CompleteReportEventName = TableEncryptionService.Convert(this.CompleteReportEventName, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioModeExcelT _o) { + if (_o == null) return default(Offset); + var _FrontScenarioGroupId = default(VectorOffset); + if (_o.FrontScenarioGroupId != null) { + var __FrontScenarioGroupId = _o.FrontScenarioGroupId.ToArray(); + _FrontScenarioGroupId = CreateFrontScenarioGroupIdVector(builder, __FrontScenarioGroupId); + } + var _BackScenarioGroupId = default(VectorOffset); + if (_o.BackScenarioGroupId != null) { + var __BackScenarioGroupId = _o.BackScenarioGroupId.ToArray(); + _BackScenarioGroupId = CreateBackScenarioGroupIdVector(builder, __BackScenarioGroupId); + } + var _ClearedModeId = default(VectorOffset); + if (_o.ClearedModeId != null) { + var __ClearedModeId = _o.ClearedModeId.ToArray(); + _ClearedModeId = CreateClearedModeIdVector(builder, __ClearedModeId); + } + var _EventIconParcelPath = _o.EventIconParcelPath == null ? default(StringOffset) : builder.CreateString(_o.EventIconParcelPath); + var _CompleteReportEventName = _o.CompleteReportEventName == null ? default(StringOffset) : builder.CreateString(_o.CompleteReportEventName); + return CreateScenarioModeExcel( + builder, + _o.ModeId, + _o.ModeType, + _o.SubType, + _o.VolumeId, + _o.ChapterId, + _o.EpisodeId, + _o.Hide, + _o.Open, + _o.IsContinue, + _o.EpisodeContinueModeId, + _FrontScenarioGroupId, + _o.StrategyId, + _o.GroundId, + _o.IsDefeatBattle, + _o.BattleDuration, + _BackScenarioGroupId, + _ClearedModeId, + _o.ScenarioModeRewardId, + _o.IsScenarioSpecialReward, + _o.AccountLevelLimit, + _o.ClearedStageId, + _o.NeedClub, + _o.NeedClubStudentCount, + _o.NeedTSS, + _o.EventContentId, + _o.EventContentType, + _o.EventContentCondition, + _o.EventContentConditionGroup, + _o.MapDifficulty, + _o.StepIndex, + _o.RecommendLevel, + _EventIconParcelPath, + _o.Lof, + _o.StageTopography, + _o.FixedEchelonId, + _CompleteReportEventName, + _o.EchelonExtensionType); + } +} + +public class ScenarioModeExcelT +{ + public long ModeId { get; set; } + public SCHALE.Common.FlatData.ScenarioModeTypes ModeType { get; set; } + public SCHALE.Common.FlatData.ScenarioModeSubTypes SubType { get; set; } + public long VolumeId { get; set; } + public long ChapterId { get; set; } + public long EpisodeId { get; set; } + public bool Hide { get; set; } + public bool Open { get; set; } + public bool IsContinue { get; set; } + public long EpisodeContinueModeId { get; set; } + public List FrontScenarioGroupId { get; set; } + public long StrategyId { get; set; } + public long GroundId { get; set; } + public bool IsDefeatBattle { get; set; } + public long BattleDuration { get; set; } + public List BackScenarioGroupId { get; set; } + public List ClearedModeId { get; set; } + public long ScenarioModeRewardId { get; set; } + public bool IsScenarioSpecialReward { get; set; } + public long AccountLevelLimit { get; set; } + public long ClearedStageId { get; set; } + public SCHALE.Common.FlatData.Club NeedClub { get; set; } + public int NeedClubStudentCount { get; set; } + public long NeedTSS { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.EventContentType EventContentType { get; set; } + public long EventContentCondition { get; set; } + public long EventContentConditionGroup { get; set; } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get; set; } + public int StepIndex { get; set; } + public int RecommendLevel { get; set; } + public string EventIconParcelPath { get; set; } + public bool Lof { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public long FixedEchelonId { get; set; } + public string CompleteReportEventName { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public ScenarioModeExcelT() { + this.ModeId = 0; + this.ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None; + this.SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None; + this.VolumeId = 0; + this.ChapterId = 0; + this.EpisodeId = 0; + this.Hide = false; + this.Open = false; + this.IsContinue = false; + this.EpisodeContinueModeId = 0; + this.FrontScenarioGroupId = null; + this.StrategyId = 0; + this.GroundId = 0; + this.IsDefeatBattle = false; + this.BattleDuration = 0; + this.BackScenarioGroupId = null; + this.ClearedModeId = null; + this.ScenarioModeRewardId = 0; + this.IsScenarioSpecialReward = false; + this.AccountLevelLimit = 0; + this.ClearedStageId = 0; + this.NeedClub = SCHALE.Common.FlatData.Club.None; + this.NeedClubStudentCount = 0; + this.NeedTSS = 0; + this.EventContentId = 0; + this.EventContentType = SCHALE.Common.FlatData.EventContentType.Stage; + this.EventContentCondition = 0; + this.EventContentConditionGroup = 0; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.StepIndex = 0; + this.RecommendLevel = 0; + this.EventIconParcelPath = null; + this.Lof = false; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.FixedEchelonId = 0; + this.CompleteReportEventName = null; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs b/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs index 8de3078..9bf1cdf 100644 --- a/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs +++ b/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioModeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ScenarioModeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioModeExcelTableT UnPack() { + var _o = new ScenarioModeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioModeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioModeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioModeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioModeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateScenarioModeExcelTable( + builder, + _DataList); + } +} + +public class ScenarioModeExcelTableT +{ + public List DataList { get; set; } + + public ScenarioModeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs index a15b882..56410b1 100644 --- a/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioModeRewardExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct ScenarioModeRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioModeRewardExcelT UnPack() { + var _o = new ScenarioModeRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioModeRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioModeReward"); + _o.ScenarioModeRewardId = TableEncryptionService.Convert(this.ScenarioModeRewardId, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardProb = TableEncryptionService.Convert(this.RewardProb, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioModeRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateScenarioModeRewardExcel( + builder, + _o.ScenarioModeRewardId, + _o.RewardTag, + _o.RewardProb, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount, + _o.IsDisplayed); + } +} + +public class ScenarioModeRewardExcelT +{ + public long ScenarioModeRewardId { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public int RewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public int RewardParcelAmount { get; set; } + public bool IsDisplayed { get; set; } + + public ScenarioModeRewardExcelT() { + this.ScenarioModeRewardId = 0; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardProb = 0; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs b/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs index a83c229..1a79b40 100644 --- a/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioModeRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ScenarioModeRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioModeRewardExcelTableT UnPack() { + var _o = new ScenarioModeRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioModeRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioModeRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioModeRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioModeRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateScenarioModeRewardExcelTable( + builder, + _DataList); + } +} + +public class ScenarioModeRewardExcelTableT +{ + public List DataList { get; set; } + + public ScenarioModeRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioReplayExcel.cs b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs index ebab40a..8bdd7d0 100644 --- a/SCHALE.Common/FlatData/ScenarioReplayExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioReplayExcel : IFlatbufferObject @@ -90,6 +91,74 @@ public struct ScenarioReplayExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioReplayExcelT UnPack() { + var _o = new ScenarioReplayExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioReplayExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioReplay"); + _o.ModeId = TableEncryptionService.Convert(this.ModeId, key); + _o.VolumeId = TableEncryptionService.Convert(this.VolumeId, key); + _o.ReplayType = TableEncryptionService.Convert(this.ReplayType, key); + _o.ChapterId = TableEncryptionService.Convert(this.ChapterId, key); + _o.EpisodeId = TableEncryptionService.Convert(this.EpisodeId, key); + _o.FrontScenarioGroupId = new List(); + for (var _j = 0; _j < this.FrontScenarioGroupIdLength; ++_j) {_o.FrontScenarioGroupId.Add(TableEncryptionService.Convert(this.FrontScenarioGroupId(_j), key));} + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.BackScenarioGroupId = new List(); + for (var _j = 0; _j < this.BackScenarioGroupIdLength; ++_j) {_o.BackScenarioGroupId.Add(TableEncryptionService.Convert(this.BackScenarioGroupId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioReplayExcelT _o) { + if (_o == null) return default(Offset); + var _FrontScenarioGroupId = default(VectorOffset); + if (_o.FrontScenarioGroupId != null) { + var __FrontScenarioGroupId = _o.FrontScenarioGroupId.ToArray(); + _FrontScenarioGroupId = CreateFrontScenarioGroupIdVector(builder, __FrontScenarioGroupId); + } + var _BackScenarioGroupId = default(VectorOffset); + if (_o.BackScenarioGroupId != null) { + var __BackScenarioGroupId = _o.BackScenarioGroupId.ToArray(); + _BackScenarioGroupId = CreateBackScenarioGroupIdVector(builder, __BackScenarioGroupId); + } + return CreateScenarioReplayExcel( + builder, + _o.ModeId, + _o.VolumeId, + _o.ReplayType, + _o.ChapterId, + _o.EpisodeId, + _FrontScenarioGroupId, + _o.GroundId, + _o.BattleDuration, + _BackScenarioGroupId); + } +} + +public class ScenarioReplayExcelT +{ + public long ModeId { get; set; } + public long VolumeId { get; set; } + public SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType { get; set; } + public long ChapterId { get; set; } + public long EpisodeId { get; set; } + public List FrontScenarioGroupId { get; set; } + public long GroundId { get; set; } + public long BattleDuration { get; set; } + public List BackScenarioGroupId { get; set; } + + public ScenarioReplayExcelT() { + this.ModeId = 0; + this.VolumeId = 0; + this.ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None; + this.ChapterId = 0; + this.EpisodeId = 0; + this.FrontScenarioGroupId = null; + this.GroundId = 0; + this.BattleDuration = 0; + this.BackScenarioGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs b/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs index 174507b..be55db2 100644 --- a/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs +++ b/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioReplayExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ScenarioReplayExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioReplayExcelTableT UnPack() { + var _o = new ScenarioReplayExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioReplayExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioReplayExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioReplayExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioReplayExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateScenarioReplayExcelTable( + builder, + _DataList); + } +} + +public class ScenarioReplayExcelTableT +{ + public List DataList { get; set; } + + public ScenarioReplayExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs b/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs index 31bb571..c6ef92e 100644 --- a/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioResourceInfoExcel : IFlatbufferObject @@ -94,6 +95,70 @@ public struct ScenarioResourceInfoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioResourceInfoExcelT UnPack() { + var _o = new ScenarioResourceInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioResourceInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioResourceInfo"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ScenarioModeId = TableEncryptionService.Convert(this.ScenarioModeId, key); + _o.VideoId = TableEncryptionService.Convert(this.VideoId, key); + _o.BgmId = TableEncryptionService.Convert(this.BgmId, key); + _o.AudioName = TableEncryptionService.Convert(this.AudioName, key); + _o.SpinePath = TableEncryptionService.Convert(this.SpinePath, key); + _o.Ratio = TableEncryptionService.Convert(this.Ratio, key); + _o.LobbyAniPath = TableEncryptionService.Convert(this.LobbyAniPath, key); + _o.MovieCGPath = TableEncryptionService.Convert(this.MovieCGPath, key); + _o.LocalizeId = TableEncryptionService.Convert(this.LocalizeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioResourceInfoExcelT _o) { + if (_o == null) return default(Offset); + var _AudioName = _o.AudioName == null ? default(StringOffset) : builder.CreateString(_o.AudioName); + var _SpinePath = _o.SpinePath == null ? default(StringOffset) : builder.CreateString(_o.SpinePath); + var _LobbyAniPath = _o.LobbyAniPath == null ? default(StringOffset) : builder.CreateString(_o.LobbyAniPath); + var _MovieCGPath = _o.MovieCGPath == null ? default(StringOffset) : builder.CreateString(_o.MovieCGPath); + return CreateScenarioResourceInfoExcel( + builder, + _o.Id, + _o.ScenarioModeId, + _o.VideoId, + _o.BgmId, + _AudioName, + _SpinePath, + _o.Ratio, + _LobbyAniPath, + _MovieCGPath, + _o.LocalizeId); + } +} + +public class ScenarioResourceInfoExcelT +{ + public long Id { get; set; } + public long ScenarioModeId { get; set; } + public long VideoId { get; set; } + public long BgmId { get; set; } + public string AudioName { get; set; } + public string SpinePath { get; set; } + public int Ratio { get; set; } + public string LobbyAniPath { get; set; } + public string MovieCGPath { get; set; } + public uint LocalizeId { get; set; } + + public ScenarioResourceInfoExcelT() { + this.Id = 0; + this.ScenarioModeId = 0; + this.VideoId = 0; + this.BgmId = 0; + this.AudioName = null; + this.SpinePath = null; + this.Ratio = 0; + this.LobbyAniPath = null; + this.MovieCGPath = null; + this.LocalizeId = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioScriptExcel.cs b/SCHALE.Common/FlatData/ScenarioScriptExcel.cs index d2536ca..dba2dc8 100644 --- a/SCHALE.Common/FlatData/ScenarioScriptExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioScriptExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioScriptExcel : IFlatbufferObject @@ -98,6 +99,74 @@ public struct ScenarioScriptExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioScriptExcelT UnPack() { + var _o = new ScenarioScriptExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioScriptExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioScript"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.SelectionGroup = TableEncryptionService.Convert(this.SelectionGroup, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.Sound = TableEncryptionService.Convert(this.Sound, key); + _o.Transition = TableEncryptionService.Convert(this.Transition, key); + _o.BGName = TableEncryptionService.Convert(this.BGName, key); + _o.BGEffect = TableEncryptionService.Convert(this.BGEffect, key); + _o.PopupFileName = TableEncryptionService.Convert(this.PopupFileName, key); + _o.ScriptKr = TableEncryptionService.Convert(this.ScriptKr, key); + _o.TextJp = TableEncryptionService.Convert(this.TextJp, key); + _o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioScriptExcelT _o) { + if (_o == null) return default(Offset); + var _Sound = _o.Sound == null ? default(StringOffset) : builder.CreateString(_o.Sound); + var _PopupFileName = _o.PopupFileName == null ? default(StringOffset) : builder.CreateString(_o.PopupFileName); + var _ScriptKr = _o.ScriptKr == null ? default(StringOffset) : builder.CreateString(_o.ScriptKr); + var _TextJp = _o.TextJp == null ? default(StringOffset) : builder.CreateString(_o.TextJp); + return CreateScenarioScriptExcel( + builder, + _o.GroupId, + _o.SelectionGroup, + _o.BGMId, + _Sound, + _o.Transition, + _o.BGName, + _o.BGEffect, + _PopupFileName, + _ScriptKr, + _TextJp, + _o.VoiceId); + } +} + +public class ScenarioScriptExcelT +{ + public long GroupId { get; set; } + public long SelectionGroup { get; set; } + public long BGMId { get; set; } + public string Sound { get; set; } + public uint Transition { get; set; } + public uint BGName { get; set; } + public uint BGEffect { get; set; } + public string PopupFileName { get; set; } + public string ScriptKr { get; set; } + public string TextJp { get; set; } + public uint VoiceId { get; set; } + + public ScenarioScriptExcelT() { + this.GroupId = 0; + this.SelectionGroup = 0; + this.BGMId = 0; + this.Sound = null; + this.Transition = 0; + this.BGName = 0; + this.BGEffect = 0; + this.PopupFileName = null; + this.ScriptKr = null; + this.TextJp = null; + this.VoiceId = 0; + } } diff --git a/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs b/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs index 063a0b7..18ef756 100644 --- a/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs +++ b/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioScriptField1Excel : IFlatbufferObject @@ -104,6 +105,75 @@ public struct ScenarioScriptField1Excel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioScriptField1ExcelT UnPack() { + var _o = new ScenarioScriptField1ExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioScriptField1ExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioScriptField1"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.SelectionGroup = TableEncryptionService.Convert(this.SelectionGroup, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.Sound = TableEncryptionService.Convert(this.Sound, key); + _o.Transition = TableEncryptionService.Convert(this.Transition, key); + _o.BGName = TableEncryptionService.Convert(this.BGName, key); + _o.BGEffect = TableEncryptionService.Convert(this.BGEffect, key); + _o.PopupFileName = TableEncryptionService.Convert(this.PopupFileName, key); + _o.ScriptKr = TableEncryptionService.Convert(this.ScriptKr, key); + _o.TextJp = TableEncryptionService.Convert(this.TextJp, key); + _o.VoiceJp = TableEncryptionService.Convert(this.VoiceJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioScriptField1ExcelT _o) { + if (_o == null) return default(Offset); + var _Sound = _o.Sound == null ? default(StringOffset) : builder.CreateString(_o.Sound); + var _PopupFileName = _o.PopupFileName == null ? default(StringOffset) : builder.CreateString(_o.PopupFileName); + var _ScriptKr = _o.ScriptKr == null ? default(StringOffset) : builder.CreateString(_o.ScriptKr); + var _TextJp = _o.TextJp == null ? default(StringOffset) : builder.CreateString(_o.TextJp); + var _VoiceJp = _o.VoiceJp == null ? default(StringOffset) : builder.CreateString(_o.VoiceJp); + return CreateScenarioScriptField1Excel( + builder, + _o.GroupId, + _o.SelectionGroup, + _o.BGMId, + _Sound, + _o.Transition, + _o.BGName, + _o.BGEffect, + _PopupFileName, + _ScriptKr, + _TextJp, + _VoiceJp); + } +} + +public class ScenarioScriptField1ExcelT +{ + public long GroupId { get; set; } + public long SelectionGroup { get; set; } + public long BGMId { get; set; } + public string Sound { get; set; } + public uint Transition { get; set; } + public uint BGName { get; set; } + public uint BGEffect { get; set; } + public string PopupFileName { get; set; } + public string ScriptKr { get; set; } + public string TextJp { get; set; } + public string VoiceJp { get; set; } + + public ScenarioScriptField1ExcelT() { + this.GroupId = 0; + this.SelectionGroup = 0; + this.BGMId = 0; + this.Sound = null; + this.Transition = 0; + this.BGName = 0; + this.BGEffect = 0; + this.PopupFileName = null; + this.ScriptKr = null; + this.TextJp = null; + this.VoiceJp = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs b/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs index 971b68b..4468d4a 100644 --- a/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs +++ b/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioScriptField1ExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ScenarioScriptField1ExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioScriptField1ExcelTableT UnPack() { + var _o = new ScenarioScriptField1ExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioScriptField1ExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioScriptField1Excel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioScriptField1ExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioScriptField1Excel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateScenarioScriptField1ExcelTable( + builder, + _DataList); + } +} + +public class ScenarioScriptField1ExcelTableT +{ + public List DataList { get; set; } + + public ScenarioScriptField1ExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs b/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs index 5ea0cdc..b89d0fc 100644 --- a/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ScenarioTransitionExcel : IFlatbufferObject @@ -82,6 +83,58 @@ public struct ScenarioTransitionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ScenarioTransitionExcelT UnPack() { + var _o = new ScenarioTransitionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ScenarioTransitionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ScenarioTransition"); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.TransitionOut = TableEncryptionService.Convert(this.TransitionOut, key); + _o.TransitionOutDuration = TableEncryptionService.Convert(this.TransitionOutDuration, key); + _o.TransitionOutResource = TableEncryptionService.Convert(this.TransitionOutResource, key); + _o.TransitionIn = TableEncryptionService.Convert(this.TransitionIn, key); + _o.TransitionInDuration = TableEncryptionService.Convert(this.TransitionInDuration, key); + _o.TransitionInResource = TableEncryptionService.Convert(this.TransitionInResource, key); + } + public static Offset Pack(FlatBufferBuilder builder, ScenarioTransitionExcelT _o) { + if (_o == null) return default(Offset); + var _TransitionOut = _o.TransitionOut == null ? default(StringOffset) : builder.CreateString(_o.TransitionOut); + var _TransitionOutResource = _o.TransitionOutResource == null ? default(StringOffset) : builder.CreateString(_o.TransitionOutResource); + var _TransitionIn = _o.TransitionIn == null ? default(StringOffset) : builder.CreateString(_o.TransitionIn); + var _TransitionInResource = _o.TransitionInResource == null ? default(StringOffset) : builder.CreateString(_o.TransitionInResource); + return CreateScenarioTransitionExcel( + builder, + _o.Name, + _TransitionOut, + _o.TransitionOutDuration, + _TransitionOutResource, + _TransitionIn, + _o.TransitionInDuration, + _TransitionInResource); + } +} + +public class ScenarioTransitionExcelT +{ + public uint Name { get; set; } + public string TransitionOut { get; set; } + public long TransitionOutDuration { get; set; } + public string TransitionOutResource { get; set; } + public string TransitionIn { get; set; } + public long TransitionInDuration { get; set; } + public string TransitionInResource { get; set; } + + public ScenarioTransitionExcelT() { + this.Name = 0; + this.TransitionOut = null; + this.TransitionOutDuration = 0; + this.TransitionOutResource = null; + this.TransitionIn = null; + this.TransitionInDuration = 0; + this.TransitionInResource = null; + } } diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs index 45b44dd..38498ca 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SchoolDungeonRewardExcel : IFlatbufferObject @@ -62,6 +63,58 @@ public struct SchoolDungeonRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SchoolDungeonRewardExcelT UnPack() { + var _o = new SchoolDungeonRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SchoolDungeonRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SchoolDungeonReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.DungeonType = TableEncryptionService.Convert(this.DungeonType, key); + _o.RewardTag = TableEncryptionService.Convert(this.RewardTag, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + _o.RewardParcelProbability = TableEncryptionService.Convert(this.RewardParcelProbability, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + } + public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonRewardExcelT _o) { + if (_o == null) return default(Offset); + return CreateSchoolDungeonRewardExcel( + builder, + _o.GroupId, + _o.DungeonType, + _o.RewardTag, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount, + _o.RewardParcelProbability, + _o.IsDisplayed); + } +} + +public class SchoolDungeonRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.SchoolDungeonType DungeonType { get; set; } + public SCHALE.Common.FlatData.RewardTag RewardTag { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + public long RewardParcelProbability { get; set; } + public bool IsDisplayed { get; set; } + + public SchoolDungeonRewardExcelT() { + this.GroupId = 0; + this.DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; + this.RewardTag = SCHALE.Common.FlatData.RewardTag.Default; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + this.RewardParcelProbability = 0; + this.IsDisplayed = false; + } } diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs index 3cc30f4..036342e 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SchoolDungeonRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct SchoolDungeonRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SchoolDungeonRewardExcelTableT UnPack() { + var _o = new SchoolDungeonRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SchoolDungeonRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("SchoolDungeonRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SchoolDungeonRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateSchoolDungeonRewardExcelTable( + builder, + _DataList); + } +} + +public class SchoolDungeonRewardExcelTableT +{ + public List DataList { get; set; } + + public SchoolDungeonRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs b/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs index cbd75a3..132c4a1 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SchoolDungeonStageExcel : IFlatbufferObject @@ -170,6 +171,130 @@ public struct SchoolDungeonStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SchoolDungeonStageExcelT UnPack() { + var _o = new SchoolDungeonStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SchoolDungeonStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SchoolDungeonStage"); + _o.StageId = TableEncryptionService.Convert(this.StageId, key); + _o.DungeonType = TableEncryptionService.Convert(this.DungeonType, key); + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); + _o.StageEnterCostType = new List(); + for (var _j = 0; _j < this.StageEnterCostTypeLength; ++_j) {_o.StageEnterCostType.Add(TableEncryptionService.Convert(this.StageEnterCostType(_j), key));} + _o.StageEnterCostId = new List(); + for (var _j = 0; _j < this.StageEnterCostIdLength; ++_j) {_o.StageEnterCostId.Add(TableEncryptionService.Convert(this.StageEnterCostId(_j), key));} + _o.StageEnterCostAmount = new List(); + for (var _j = 0; _j < this.StageEnterCostAmountLength; ++_j) {_o.StageEnterCostAmount.Add(TableEncryptionService.Convert(this.StageEnterCostAmount(_j), key));} + _o.StageEnterCostMinimumAmount = new List(); + for (var _j = 0; _j < this.StageEnterCostMinimumAmountLength; ++_j) {_o.StageEnterCostMinimumAmount.Add(TableEncryptionService.Convert(this.StageEnterCostMinimumAmount(_j), key));} + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.StarGoal = new List(); + for (var _j = 0; _j < this.StarGoalLength; ++_j) {_o.StarGoal.Add(TableEncryptionService.Convert(this.StarGoal(_j), key));} + _o.StarGoalAmount = new List(); + for (var _j = 0; _j < this.StarGoalAmountLength; ++_j) {_o.StarGoalAmount.Add(TableEncryptionService.Convert(this.StarGoalAmount(_j), key));} + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.StageRewardId = TableEncryptionService.Convert(this.StageRewardId, key); + _o.PlayTimeLimitInSeconds = TableEncryptionService.Convert(this.PlayTimeLimitInSeconds, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonStageExcelT _o) { + if (_o == null) return default(Offset); + var _StageEnterCostType = default(VectorOffset); + if (_o.StageEnterCostType != null) { + var __StageEnterCostType = _o.StageEnterCostType.ToArray(); + _StageEnterCostType = CreateStageEnterCostTypeVector(builder, __StageEnterCostType); + } + var _StageEnterCostId = default(VectorOffset); + if (_o.StageEnterCostId != null) { + var __StageEnterCostId = _o.StageEnterCostId.ToArray(); + _StageEnterCostId = CreateStageEnterCostIdVector(builder, __StageEnterCostId); + } + var _StageEnterCostAmount = default(VectorOffset); + if (_o.StageEnterCostAmount != null) { + var __StageEnterCostAmount = _o.StageEnterCostAmount.ToArray(); + _StageEnterCostAmount = CreateStageEnterCostAmountVector(builder, __StageEnterCostAmount); + } + var _StageEnterCostMinimumAmount = default(VectorOffset); + if (_o.StageEnterCostMinimumAmount != null) { + var __StageEnterCostMinimumAmount = _o.StageEnterCostMinimumAmount.ToArray(); + _StageEnterCostMinimumAmount = CreateStageEnterCostMinimumAmountVector(builder, __StageEnterCostMinimumAmount); + } + var _StarGoal = default(VectorOffset); + if (_o.StarGoal != null) { + var __StarGoal = _o.StarGoal.ToArray(); + _StarGoal = CreateStarGoalVector(builder, __StarGoal); + } + var _StarGoalAmount = default(VectorOffset); + if (_o.StarGoalAmount != null) { + var __StarGoalAmount = _o.StarGoalAmount.ToArray(); + _StarGoalAmount = CreateStarGoalAmountVector(builder, __StarGoalAmount); + } + return CreateSchoolDungeonStageExcel( + builder, + _o.StageId, + _o.DungeonType, + _o.Difficulty, + _o.BattleDuration, + _o.PrevStageId, + _StageEnterCostType, + _StageEnterCostId, + _StageEnterCostAmount, + _StageEnterCostMinimumAmount, + _o.GroundId, + _StarGoal, + _StarGoalAmount, + _o.StageTopography, + _o.RecommandLevel, + _o.StageRewardId, + _o.PlayTimeLimitInSeconds, + _o.EchelonExtensionType); + } +} + +public class SchoolDungeonStageExcelT +{ + public long StageId { get; set; } + public SCHALE.Common.FlatData.SchoolDungeonType DungeonType { get; set; } + public int Difficulty { get; set; } + public long BattleDuration { get; set; } + public long PrevStageId { get; set; } + public List StageEnterCostType { get; set; } + public List StageEnterCostId { get; set; } + public List StageEnterCostAmount { get; set; } + public List StageEnterCostMinimumAmount { get; set; } + public int GroundId { get; set; } + public List StarGoal { get; set; } + public List StarGoalAmount { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public long RecommandLevel { get; set; } + public long StageRewardId { get; set; } + public long PlayTimeLimitInSeconds { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public SchoolDungeonStageExcelT() { + this.StageId = 0; + this.DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; + this.Difficulty = 0; + this.BattleDuration = 0; + this.PrevStageId = 0; + this.StageEnterCostType = null; + this.StageEnterCostId = null; + this.StageEnterCostAmount = null; + this.StageEnterCostMinimumAmount = null; + this.GroundId = 0; + this.StarGoal = null; + this.StarGoalAmount = null; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.StageRewardId = 0; + this.PlayTimeLimitInSeconds = 0; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs index 4c54465..a36666f 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SchoolDungeonStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct SchoolDungeonStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SchoolDungeonStageExcelTableT UnPack() { + var _o = new SchoolDungeonStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SchoolDungeonStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("SchoolDungeonStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SchoolDungeonStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateSchoolDungeonStageExcelTable( + builder, + _DataList); + } +} + +public class SchoolDungeonStageExcelTableT +{ + public List DataList { get; set; } + + public SchoolDungeonStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ServiceActionExcel.cs b/SCHALE.Common/FlatData/ServiceActionExcel.cs index 6965ebf..d6a4735 100644 --- a/SCHALE.Common/FlatData/ServiceActionExcel.cs +++ b/SCHALE.Common/FlatData/ServiceActionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ServiceActionExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct ServiceActionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ServiceActionExcelT UnPack() { + var _o = new ServiceActionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ServiceActionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ServiceAction"); + _o.ServiceActionType = TableEncryptionService.Convert(this.ServiceActionType, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ServiceActionExcelT _o) { + if (_o == null) return default(Offset); + return CreateServiceActionExcel( + builder, + _o.ServiceActionType, + _o.IsLegacy, + _o.GoodsId); + } +} + +public class ServiceActionExcelT +{ + public SCHALE.Common.FlatData.ServiceActionType ServiceActionType { get; set; } + public bool IsLegacy { get; set; } + public long GoodsId { get; set; } + + public ServiceActionExcelT() { + this.ServiceActionType = SCHALE.Common.FlatData.ServiceActionType.ClanCreate; + this.IsLegacy = false; + this.GoodsId = 0; + } } diff --git a/SCHALE.Common/FlatData/ServiceActionExcelTable.cs b/SCHALE.Common/FlatData/ServiceActionExcelTable.cs index 3279813..0450bdd 100644 --- a/SCHALE.Common/FlatData/ServiceActionExcelTable.cs +++ b/SCHALE.Common/FlatData/ServiceActionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ServiceActionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ServiceActionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ServiceActionExcelTableT UnPack() { + var _o = new ServiceActionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ServiceActionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ServiceActionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ServiceActionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ServiceActionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateServiceActionExcelTable( + builder, + _DataList); + } +} + +public class ServiceActionExcelTableT +{ + public List DataList { get; set; } + + public ServiceActionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs index 4b8783f..7961239 100644 --- a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs +++ b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShiftingCraftRecipeExcel : IFlatbufferObject @@ -86,6 +87,76 @@ public struct ShiftingCraftRecipeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShiftingCraftRecipeExcelT UnPack() { + var _o = new ShiftingCraftRecipeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShiftingCraftRecipeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShiftingCraftRecipe"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.NotificationId = TableEncryptionService.Convert(this.NotificationId, key); + _o.ResultParcel = TableEncryptionService.Convert(this.ResultParcel, key); + _o.ResultId = TableEncryptionService.Convert(this.ResultId, key); + _o.ResultAmount = TableEncryptionService.Convert(this.ResultAmount, key); + _o.RequireItemId = TableEncryptionService.Convert(this.RequireItemId, key); + _o.RequireItemAmount = TableEncryptionService.Convert(this.RequireItemAmount, key); + _o.RequireGold = TableEncryptionService.Convert(this.RequireGold, key); + _o.IngredientTag = new List(); + for (var _j = 0; _j < this.IngredientTagLength; ++_j) {_o.IngredientTag.Add(TableEncryptionService.Convert(this.IngredientTag(_j), key));} + _o.IngredientExp = TableEncryptionService.Convert(this.IngredientExp, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShiftingCraftRecipeExcelT _o) { + if (_o == null) return default(Offset); + var _IngredientTag = default(VectorOffset); + if (_o.IngredientTag != null) { + var __IngredientTag = _o.IngredientTag.ToArray(); + _IngredientTag = CreateIngredientTagVector(builder, __IngredientTag); + } + return CreateShiftingCraftRecipeExcel( + builder, + _o.Id, + _o.DisplayOrder, + _o.NotificationId, + _o.ResultParcel, + _o.ResultId, + _o.ResultAmount, + _o.RequireItemId, + _o.RequireItemAmount, + _o.RequireGold, + _IngredientTag, + _o.IngredientExp); + } +} + +public class ShiftingCraftRecipeExcelT +{ + public long Id { get; set; } + public long DisplayOrder { get; set; } + public int NotificationId { get; set; } + public SCHALE.Common.FlatData.ParcelType ResultParcel { get; set; } + public long ResultId { get; set; } + public long ResultAmount { get; set; } + public long RequireItemId { get; set; } + public long RequireItemAmount { get; set; } + public long RequireGold { get; set; } + public List IngredientTag { get; set; } + public long IngredientExp { get; set; } + + public ShiftingCraftRecipeExcelT() { + this.Id = 0; + this.DisplayOrder = 0; + this.NotificationId = 0; + this.ResultParcel = SCHALE.Common.FlatData.ParcelType.None; + this.ResultId = 0; + this.ResultAmount = 0; + this.RequireItemId = 0; + this.RequireItemAmount = 0; + this.RequireGold = 0; + this.IngredientTag = null; + this.IngredientExp = 0; + } } diff --git a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs index 06b15f9..21e3555 100644 --- a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs +++ b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShiftingCraftRecipeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShiftingCraftRecipeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShiftingCraftRecipeExcelTableT UnPack() { + var _o = new ShiftingCraftRecipeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShiftingCraftRecipeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShiftingCraftRecipeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShiftingCraftRecipeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShiftingCraftRecipeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShiftingCraftRecipeExcelTable( + builder, + _DataList); + } +} + +public class ShiftingCraftRecipeExcelTableT +{ + public List DataList { get; set; } + + public ShiftingCraftRecipeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopCashExcel.cs b/SCHALE.Common/FlatData/ShopCashExcel.cs index 1c06771..56f75cd 100644 --- a/SCHALE.Common/FlatData/ShopCashExcel.cs +++ b/SCHALE.Common/FlatData/ShopCashExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopCashExcel : IFlatbufferObject @@ -122,6 +123,98 @@ public struct ShopCashExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopCashExcelT UnPack() { + var _o = new ShopCashExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopCashExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopCash"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CashProductId = TableEncryptionService.Convert(this.CashProductId, key); + _o.PackageType = TableEncryptionService.Convert(this.PackageType, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.RenewalDisplayOrder = TableEncryptionService.Convert(this.RenewalDisplayOrder, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key); + _o.SalePeriodFrom = TableEncryptionService.Convert(this.SalePeriodFrom, key); + _o.SalePeriodTo = TableEncryptionService.Convert(this.SalePeriodTo, key); + _o.PeriodTag = TableEncryptionService.Convert(this.PeriodTag, key); + _o.AccountLevelLimit = TableEncryptionService.Convert(this.AccountLevelLimit, key); + _o.AccountLevelHide = TableEncryptionService.Convert(this.AccountLevelHide, key); + _o.ClearMissionLimit = TableEncryptionService.Convert(this.ClearMissionLimit, key); + _o.ClearMissionHide = TableEncryptionService.Convert(this.ClearMissionHide, key); + _o.PurchaseReportEventName = TableEncryptionService.Convert(this.PurchaseReportEventName, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopCashExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _SalePeriodFrom = _o.SalePeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodFrom); + var _SalePeriodTo = _o.SalePeriodTo == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodTo); + var _PurchaseReportEventName = _o.PurchaseReportEventName == null ? default(StringOffset) : builder.CreateString(_o.PurchaseReportEventName); + return CreateShopCashExcel( + builder, + _o.Id, + _o.CashProductId, + _o.PackageType, + _o.LocalizeEtcId, + _IconPath, + _o.DisplayOrder, + _o.RenewalDisplayOrder, + _o.CategoryType, + _o.DisplayTag, + _SalePeriodFrom, + _SalePeriodTo, + _o.PeriodTag, + _o.AccountLevelLimit, + _o.AccountLevelHide, + _o.ClearMissionLimit, + _o.ClearMissionHide, + _PurchaseReportEventName); + } +} + +public class ShopCashExcelT +{ + public long Id { get; set; } + public long CashProductId { get; set; } + public SCHALE.Common.FlatData.PurchaseSourceType PackageType { get; set; } + public uint LocalizeEtcId { get; set; } + public string IconPath { get; set; } + public long DisplayOrder { get; set; } + public long RenewalDisplayOrder { get; set; } + public SCHALE.Common.FlatData.ProductCategory CategoryType { get; set; } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get; set; } + public string SalePeriodFrom { get; set; } + public string SalePeriodTo { get; set; } + public bool PeriodTag { get; set; } + public long AccountLevelLimit { get; set; } + public bool AccountLevelHide { get; set; } + public long ClearMissionLimit { get; set; } + public bool ClearMissionHide { get; set; } + public string PurchaseReportEventName { get; set; } + + public ShopCashExcelT() { + this.Id = 0; + this.CashProductId = 0; + this.PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None; + this.LocalizeEtcId = 0; + this.IconPath = null; + this.DisplayOrder = 0; + this.RenewalDisplayOrder = 0; + this.CategoryType = SCHALE.Common.FlatData.ProductCategory.None; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + this.SalePeriodFrom = null; + this.SalePeriodTo = null; + this.PeriodTag = false; + this.AccountLevelLimit = 0; + this.AccountLevelHide = false; + this.ClearMissionLimit = 0; + this.ClearMissionHide = false; + this.PurchaseReportEventName = null; + } } diff --git a/SCHALE.Common/FlatData/ShopCashExcelTable.cs b/SCHALE.Common/FlatData/ShopCashExcelTable.cs index e01d358..7e2e2de 100644 --- a/SCHALE.Common/FlatData/ShopCashExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopCashExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopCashExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopCashExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopCashExcelTableT UnPack() { + var _o = new ShopCashExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopCashExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopCashExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopCashExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopCashExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopCashExcelTable( + builder, + _DataList); + } +} + +public class ShopCashExcelTableT +{ + public List DataList { get; set; } + + public ShopCashExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs index bdbfa04..df3b135 100644 --- a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs +++ b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopCashScenarioResourceInfoExcel : IFlatbufferObject @@ -48,6 +49,39 @@ public struct ShopCashScenarioResourceInfoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopCashScenarioResourceInfoExcelT UnPack() { + var _o = new ShopCashScenarioResourceInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopCashScenarioResourceInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopCashScenarioResourceInfo"); + _o.ScenarioResrouceInfoId = TableEncryptionService.Convert(this.ScenarioResrouceInfoId, key); + _o.ShopCashId = TableEncryptionService.Convert(this.ShopCashId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopCashScenarioResourceInfoExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateShopCashScenarioResourceInfoExcel( + builder, + _o.ScenarioResrouceInfoId, + _o.ShopCashId, + _IconPath); + } +} + +public class ShopCashScenarioResourceInfoExcelT +{ + public long ScenarioResrouceInfoId { get; set; } + public long ShopCashId { get; set; } + public string IconPath { get; set; } + + public ShopCashScenarioResourceInfoExcelT() { + this.ScenarioResrouceInfoId = 0; + this.ShopCashId = 0; + this.IconPath = null; + } } diff --git a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs index 8cda873..d1b3e1a 100644 --- a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopCashScenarioResourceInfoExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopCashScenarioResourceInfoExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopCashScenarioResourceInfoExcelTableT UnPack() { + var _o = new ShopCashScenarioResourceInfoExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopCashScenarioResourceInfoExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopCashScenarioResourceInfoExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopCashScenarioResourceInfoExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopCashScenarioResourceInfoExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopCashScenarioResourceInfoExcelTable( + builder, + _DataList); + } +} + +public class ShopCashScenarioResourceInfoExcelTableT +{ + public List DataList { get; set; } + + public ShopCashScenarioResourceInfoExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopExcel.cs b/SCHALE.Common/FlatData/ShopExcel.cs index c0b7d18..b99abc7 100644 --- a/SCHALE.Common/FlatData/ShopExcel.cs +++ b/SCHALE.Common/FlatData/ShopExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopExcel : IFlatbufferObject @@ -120,6 +121,95 @@ public struct ShopExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopExcelT UnPack() { + var _o = new ShopExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Shop"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.GoodsId = new List(); + for (var _j = 0; _j < this.GoodsIdLength; ++_j) {_o.GoodsId.Add(TableEncryptionService.Convert(this.GoodsId(_j), key));} + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.SalePeriodFrom = TableEncryptionService.Convert(this.SalePeriodFrom, key); + _o.SalePeriodTo = TableEncryptionService.Convert(this.SalePeriodTo, key); + _o.PurchaseCooltimeMin = TableEncryptionService.Convert(this.PurchaseCooltimeMin, key); + _o.PurchaseCountLimit = TableEncryptionService.Convert(this.PurchaseCountLimit, key); + _o.PurchaseCountResetType = TableEncryptionService.Convert(this.PurchaseCountResetType, key); + _o.BuyReportEventName = TableEncryptionService.Convert(this.BuyReportEventName, key); + _o.RestrictBuyWhenInventoryFull = TableEncryptionService.Convert(this.RestrictBuyWhenInventoryFull, key); + _o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key); + _o.ShopUpdateGroupId = TableEncryptionService.Convert(this.ShopUpdateGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopExcelT _o) { + if (_o == null) return default(Offset); + var _GoodsId = default(VectorOffset); + if (_o.GoodsId != null) { + var __GoodsId = _o.GoodsId.ToArray(); + _GoodsId = CreateGoodsIdVector(builder, __GoodsId); + } + var _SalePeriodFrom = _o.SalePeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodFrom); + var _SalePeriodTo = _o.SalePeriodTo == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodTo); + var _BuyReportEventName = _o.BuyReportEventName == null ? default(StringOffset) : builder.CreateString(_o.BuyReportEventName); + return CreateShopExcel( + builder, + _o.Id, + _o.LocalizeEtcId, + _o.CategoryType, + _o.IsLegacy, + _GoodsId, + _o.DisplayOrder, + _SalePeriodFrom, + _SalePeriodTo, + _o.PurchaseCooltimeMin, + _o.PurchaseCountLimit, + _o.PurchaseCountResetType, + _BuyReportEventName, + _o.RestrictBuyWhenInventoryFull, + _o.DisplayTag, + _o.ShopUpdateGroupId); + } +} + +public class ShopExcelT +{ + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public bool IsLegacy { get; set; } + public List GoodsId { get; set; } + public long DisplayOrder { get; set; } + public string SalePeriodFrom { get; set; } + public string SalePeriodTo { get; set; } + public long PurchaseCooltimeMin { get; set; } + public long PurchaseCountLimit { get; set; } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get; set; } + public string BuyReportEventName { get; set; } + public bool RestrictBuyWhenInventoryFull { get; set; } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get; set; } + public int ShopUpdateGroupId { get; set; } + + public ShopExcelT() { + this.Id = 0; + this.LocalizeEtcId = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.IsLegacy = false; + this.GoodsId = null; + this.DisplayOrder = 0; + this.SalePeriodFrom = null; + this.SalePeriodTo = null; + this.PurchaseCooltimeMin = 0; + this.PurchaseCountLimit = 0; + this.PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.BuyReportEventName = null; + this.RestrictBuyWhenInventoryFull = false; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + this.ShopUpdateGroupId = 0; + } } diff --git a/SCHALE.Common/FlatData/ShopExcelTable.cs b/SCHALE.Common/FlatData/ShopExcelTable.cs index a640f55..c602d49 100644 --- a/SCHALE.Common/FlatData/ShopExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopExcelTableT UnPack() { + var _o = new ShopExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopExcelTable( + builder, + _DataList); + } +} + +public class ShopExcelTableT +{ + public List DataList { get; set; } + + public ShopExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs index d7317c6..6274853 100644 --- a/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs +++ b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFilterClassifiedExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct ShopFilterClassifiedExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFilterClassifiedExcelT UnPack() { + var _o = new ShopFilterClassifiedExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFilterClassifiedExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFilterClassified"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.ConsumeParcelType = TableEncryptionService.Convert(this.ConsumeParcelType, key); + _o.ConsumeParcelId = TableEncryptionService.Convert(this.ConsumeParcelId, key); + _o.ShopFilterType = TableEncryptionService.Convert(this.ShopFilterType, key); + _o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopFilterClassifiedExcelT _o) { + if (_o == null) return default(Offset); + return CreateShopFilterClassifiedExcel( + builder, + _o.Id, + _o.CategoryType, + _o.ConsumeParcelType, + _o.ConsumeParcelId, + _o.ShopFilterType, + _o.GoodsId); + } +} + +public class ShopFilterClassifiedExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public SCHALE.Common.FlatData.ParcelType ConsumeParcelType { get; set; } + public long ConsumeParcelId { get; set; } + public SCHALE.Common.FlatData.ShopFilterType ShopFilterType { get; set; } + public long GoodsId { get; set; } + + public ShopFilterClassifiedExcelT() { + this.Id = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ConsumeParcelId = 0; + this.ShopFilterType = SCHALE.Common.FlatData.ShopFilterType.GachaTicket; + this.GoodsId = 0; + } } diff --git a/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs b/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs index 84f0ecc..f1c6abb 100644 --- a/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFilterClassifiedExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopFilterClassifiedExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFilterClassifiedExcelTableT UnPack() { + var _o = new ShopFilterClassifiedExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFilterClassifiedExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFilterClassifiedExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopFilterClassifiedExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopFilterClassifiedExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopFilterClassifiedExcelTable( + builder, + _DataList); + } +} + +public class ShopFilterClassifiedExcelTableT +{ + public List DataList { get; set; } + + public ShopFilterClassifiedExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopFilterType.cs b/SCHALE.Common/FlatData/ShopFilterType.cs index d8d6dd7..3fb5c08 100644 --- a/SCHALE.Common/FlatData/ShopFilterType.cs +++ b/SCHALE.Common/FlatData/ShopFilterType.cs @@ -43,6 +43,7 @@ public enum ShopFilterType : int ShopFilterDUMMY_6 = 33, ShopFilterDUMMY_7 = 34, ETC = 35, + Bundle = 36, }; diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs index 5ff31ac..7ac49aa 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFreeRecruitExcel : IFlatbufferObject @@ -84,6 +85,59 @@ public struct ShopFreeRecruitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFreeRecruitExcelT UnPack() { + var _o = new ShopFreeRecruitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFreeRecruitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFreeRecruit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.FreeRecruitPeriodFrom = TableEncryptionService.Convert(this.FreeRecruitPeriodFrom, key); + _o.FreeRecruitPeriodTo = TableEncryptionService.Convert(this.FreeRecruitPeriodTo, key); + _o.FreeRecruitType = TableEncryptionService.Convert(this.FreeRecruitType, key); + _o.FreeRecruitDecorationImagePath = TableEncryptionService.Convert(this.FreeRecruitDecorationImagePath, key); + _o.ShopRecruitId = new List(); + for (var _j = 0; _j < this.ShopRecruitIdLength; ++_j) {_o.ShopRecruitId.Add(TableEncryptionService.Convert(this.ShopRecruitId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ShopFreeRecruitExcelT _o) { + if (_o == null) return default(Offset); + var _FreeRecruitPeriodFrom = _o.FreeRecruitPeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.FreeRecruitPeriodFrom); + var _FreeRecruitPeriodTo = _o.FreeRecruitPeriodTo == null ? default(StringOffset) : builder.CreateString(_o.FreeRecruitPeriodTo); + var _FreeRecruitDecorationImagePath = _o.FreeRecruitDecorationImagePath == null ? default(StringOffset) : builder.CreateString(_o.FreeRecruitDecorationImagePath); + var _ShopRecruitId = default(VectorOffset); + if (_o.ShopRecruitId != null) { + var __ShopRecruitId = _o.ShopRecruitId.ToArray(); + _ShopRecruitId = CreateShopRecruitIdVector(builder, __ShopRecruitId); + } + return CreateShopFreeRecruitExcel( + builder, + _o.Id, + _FreeRecruitPeriodFrom, + _FreeRecruitPeriodTo, + _o.FreeRecruitType, + _FreeRecruitDecorationImagePath, + _ShopRecruitId); + } +} + +public class ShopFreeRecruitExcelT +{ + public long Id { get; set; } + public string FreeRecruitPeriodFrom { get; set; } + public string FreeRecruitPeriodTo { get; set; } + public SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType { get; set; } + public string FreeRecruitDecorationImagePath { get; set; } + public List ShopRecruitId { get; set; } + + public ShopFreeRecruitExcelT() { + this.Id = 0; + this.FreeRecruitPeriodFrom = null; + this.FreeRecruitPeriodTo = null; + this.FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None; + this.FreeRecruitDecorationImagePath = null; + this.ShopRecruitId = null; + } } diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs b/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs index e3f38d0..d638545 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFreeRecruitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopFreeRecruitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFreeRecruitExcelTableT UnPack() { + var _o = new ShopFreeRecruitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFreeRecruitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFreeRecruitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopFreeRecruitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopFreeRecruitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopFreeRecruitExcelTable( + builder, + _DataList); + } +} + +public class ShopFreeRecruitExcelTableT +{ + public List DataList { get; set; } + + public ShopFreeRecruitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs index 012c355..7e773de 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFreeRecruitPeriodExcel : IFlatbufferObject @@ -52,6 +53,43 @@ public struct ShopFreeRecruitPeriodExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFreeRecruitPeriodExcelT UnPack() { + var _o = new ShopFreeRecruitPeriodExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFreeRecruitPeriodExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFreeRecruitPeriod"); + _o.ShopFreeRecruitId = TableEncryptionService.Convert(this.ShopFreeRecruitId, key); + _o.ShopFreeRecruitIntervalId = TableEncryptionService.Convert(this.ShopFreeRecruitIntervalId, key); + _o.IntervalDate = TableEncryptionService.Convert(this.IntervalDate, key); + _o.FreeRecruitCount = TableEncryptionService.Convert(this.FreeRecruitCount, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopFreeRecruitPeriodExcelT _o) { + if (_o == null) return default(Offset); + var _IntervalDate = _o.IntervalDate == null ? default(StringOffset) : builder.CreateString(_o.IntervalDate); + return CreateShopFreeRecruitPeriodExcel( + builder, + _o.ShopFreeRecruitId, + _o.ShopFreeRecruitIntervalId, + _IntervalDate, + _o.FreeRecruitCount); + } +} + +public class ShopFreeRecruitPeriodExcelT +{ + public long ShopFreeRecruitId { get; set; } + public long ShopFreeRecruitIntervalId { get; set; } + public string IntervalDate { get; set; } + public int FreeRecruitCount { get; set; } + + public ShopFreeRecruitPeriodExcelT() { + this.ShopFreeRecruitId = 0; + this.ShopFreeRecruitIntervalId = 0; + this.IntervalDate = null; + this.FreeRecruitCount = 0; + } } diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs index 184433b..26b71ac 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopFreeRecruitPeriodExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopFreeRecruitPeriodExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopFreeRecruitPeriodExcelTableT UnPack() { + var _o = new ShopFreeRecruitPeriodExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopFreeRecruitPeriodExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopFreeRecruitPeriodExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopFreeRecruitPeriodExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopFreeRecruitPeriodExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopFreeRecruitPeriodExcelTable( + builder, + _DataList); + } +} + +public class ShopFreeRecruitPeriodExcelTableT +{ + public List DataList { get; set; } + + public ShopFreeRecruitPeriodExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopInfoExcel.cs b/SCHALE.Common/FlatData/ShopInfoExcel.cs index 8f89885..296c051 100644 --- a/SCHALE.Common/FlatData/ShopInfoExcel.cs +++ b/SCHALE.Common/FlatData/ShopInfoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopInfoExcel : IFlatbufferObject @@ -196,6 +197,159 @@ public struct ShopInfoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopInfoExcelT UnPack() { + var _o = new ShopInfoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopInfoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopInfo"); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.IsRefresh = TableEncryptionService.Convert(this.IsRefresh, key); + _o.IsSoldOutDimmed = TableEncryptionService.Convert(this.IsSoldOutDimmed, key); + _o.CostParcelType = new List(); + for (var _j = 0; _j < this.CostParcelTypeLength; ++_j) {_o.CostParcelType.Add(TableEncryptionService.Convert(this.CostParcelType(_j), key));} + _o.CostParcelId = new List(); + for (var _j = 0; _j < this.CostParcelIdLength; ++_j) {_o.CostParcelId.Add(TableEncryptionService.Convert(this.CostParcelId(_j), key));} + _o.AutoRefreshCoolTime = TableEncryptionService.Convert(this.AutoRefreshCoolTime, key); + _o.RefreshAbleCount = TableEncryptionService.Convert(this.RefreshAbleCount, key); + _o.GoodsId = new List(); + for (var _j = 0; _j < this.GoodsIdLength; ++_j) {_o.GoodsId.Add(TableEncryptionService.Convert(this.GoodsId(_j), key));} + _o.OpenPeriodFrom = TableEncryptionService.Convert(this.OpenPeriodFrom, key); + _o.OpenPeriodTo = TableEncryptionService.Convert(this.OpenPeriodTo, key); + _o.ShopProductUpdateTime = TableEncryptionService.Convert(this.ShopProductUpdateTime, key); + _o.DisplayParcelType = TableEncryptionService.Convert(this.DisplayParcelType, key); + _o.DisplayParcelId = TableEncryptionService.Convert(this.DisplayParcelId, key); + _o.IsShopVisible = TableEncryptionService.Convert(this.IsShopVisible, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.ShopUpdateDate = TableEncryptionService.Convert(this.ShopUpdateDate, key); + _o.ShopUpdateGroupId1 = TableEncryptionService.Convert(this.ShopUpdateGroupId1, key); + _o.ShopUpdateGroupId2 = TableEncryptionService.Convert(this.ShopUpdateGroupId2, key); + _o.ShopUpdateGroupId3 = TableEncryptionService.Convert(this.ShopUpdateGroupId3, key); + _o.ShopUpdateGroupId4 = TableEncryptionService.Convert(this.ShopUpdateGroupId4, key); + _o.ShopUpdateGroupId5 = TableEncryptionService.Convert(this.ShopUpdateGroupId5, key); + _o.ShopUpdateGroupId6 = TableEncryptionService.Convert(this.ShopUpdateGroupId6, key); + _o.ShopUpdateGroupId7 = TableEncryptionService.Convert(this.ShopUpdateGroupId7, key); + _o.ShopUpdateGroupId8 = TableEncryptionService.Convert(this.ShopUpdateGroupId8, key); + _o.ShopUpdateGroupId9 = TableEncryptionService.Convert(this.ShopUpdateGroupId9, key); + _o.ShopUpdateGroupId10 = TableEncryptionService.Convert(this.ShopUpdateGroupId10, key); + _o.ShopUpdateGroupId11 = TableEncryptionService.Convert(this.ShopUpdateGroupId11, key); + _o.ShopUpdateGroupId12 = TableEncryptionService.Convert(this.ShopUpdateGroupId12, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopInfoExcelT _o) { + if (_o == null) return default(Offset); + var _CostParcelType = default(VectorOffset); + if (_o.CostParcelType != null) { + var __CostParcelType = _o.CostParcelType.ToArray(); + _CostParcelType = CreateCostParcelTypeVector(builder, __CostParcelType); + } + var _CostParcelId = default(VectorOffset); + if (_o.CostParcelId != null) { + var __CostParcelId = _o.CostParcelId.ToArray(); + _CostParcelId = CreateCostParcelIdVector(builder, __CostParcelId); + } + var _GoodsId = default(VectorOffset); + if (_o.GoodsId != null) { + var __GoodsId = _o.GoodsId.ToArray(); + _GoodsId = CreateGoodsIdVector(builder, __GoodsId); + } + var _OpenPeriodFrom = _o.OpenPeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.OpenPeriodFrom); + var _OpenPeriodTo = _o.OpenPeriodTo == null ? default(StringOffset) : builder.CreateString(_o.OpenPeriodTo); + var _ShopProductUpdateTime = _o.ShopProductUpdateTime == null ? default(StringOffset) : builder.CreateString(_o.ShopProductUpdateTime); + return CreateShopInfoExcel( + builder, + _o.CategoryType, + _o.IsRefresh, + _o.IsSoldOutDimmed, + _CostParcelType, + _CostParcelId, + _o.AutoRefreshCoolTime, + _o.RefreshAbleCount, + _GoodsId, + _OpenPeriodFrom, + _OpenPeriodTo, + _ShopProductUpdateTime, + _o.DisplayParcelType, + _o.DisplayParcelId, + _o.IsShopVisible, + _o.DisplayOrder, + _o.ShopUpdateDate, + _o.ShopUpdateGroupId1, + _o.ShopUpdateGroupId2, + _o.ShopUpdateGroupId3, + _o.ShopUpdateGroupId4, + _o.ShopUpdateGroupId5, + _o.ShopUpdateGroupId6, + _o.ShopUpdateGroupId7, + _o.ShopUpdateGroupId8, + _o.ShopUpdateGroupId9, + _o.ShopUpdateGroupId10, + _o.ShopUpdateGroupId11, + _o.ShopUpdateGroupId12); + } +} + +public class ShopInfoExcelT +{ + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public bool IsRefresh { get; set; } + public bool IsSoldOutDimmed { get; set; } + public List CostParcelType { get; set; } + public List CostParcelId { get; set; } + public long AutoRefreshCoolTime { get; set; } + public long RefreshAbleCount { get; set; } + public List GoodsId { get; set; } + public string OpenPeriodFrom { get; set; } + public string OpenPeriodTo { get; set; } + public string ShopProductUpdateTime { get; set; } + public SCHALE.Common.FlatData.ParcelType DisplayParcelType { get; set; } + public long DisplayParcelId { get; set; } + public bool IsShopVisible { get; set; } + public int DisplayOrder { get; set; } + public int ShopUpdateDate { get; set; } + public int ShopUpdateGroupId1 { get; set; } + public int ShopUpdateGroupId2 { get; set; } + public int ShopUpdateGroupId3 { get; set; } + public int ShopUpdateGroupId4 { get; set; } + public int ShopUpdateGroupId5 { get; set; } + public int ShopUpdateGroupId6 { get; set; } + public int ShopUpdateGroupId7 { get; set; } + public int ShopUpdateGroupId8 { get; set; } + public int ShopUpdateGroupId9 { get; set; } + public int ShopUpdateGroupId10 { get; set; } + public int ShopUpdateGroupId11 { get; set; } + public int ShopUpdateGroupId12 { get; set; } + + public ShopInfoExcelT() { + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.IsRefresh = false; + this.IsSoldOutDimmed = false; + this.CostParcelType = null; + this.CostParcelId = null; + this.AutoRefreshCoolTime = 0; + this.RefreshAbleCount = 0; + this.GoodsId = null; + this.OpenPeriodFrom = null; + this.OpenPeriodTo = null; + this.ShopProductUpdateTime = null; + this.DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DisplayParcelId = 0; + this.IsShopVisible = false; + this.DisplayOrder = 0; + this.ShopUpdateDate = 0; + this.ShopUpdateGroupId1 = 0; + this.ShopUpdateGroupId2 = 0; + this.ShopUpdateGroupId3 = 0; + this.ShopUpdateGroupId4 = 0; + this.ShopUpdateGroupId5 = 0; + this.ShopUpdateGroupId6 = 0; + this.ShopUpdateGroupId7 = 0; + this.ShopUpdateGroupId8 = 0; + this.ShopUpdateGroupId9 = 0; + this.ShopUpdateGroupId10 = 0; + this.ShopUpdateGroupId11 = 0; + this.ShopUpdateGroupId12 = 0; + } } diff --git a/SCHALE.Common/FlatData/ShopInfoExcelTable.cs b/SCHALE.Common/FlatData/ShopInfoExcelTable.cs index 7a5b863..98143f2 100644 --- a/SCHALE.Common/FlatData/ShopInfoExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopInfoExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopInfoExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopInfoExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopInfoExcelTableT UnPack() { + var _o = new ShopInfoExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopInfoExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopInfoExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopInfoExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopInfoExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopInfoExcelTable( + builder, + _DataList); + } +} + +public class ShopInfoExcelTableT +{ + public List DataList { get; set; } + + public ShopInfoExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopRecruitExcel.cs b/SCHALE.Common/FlatData/ShopRecruitExcel.cs index 3cc44d8..5e60e39 100644 --- a/SCHALE.Common/FlatData/ShopRecruitExcel.cs +++ b/SCHALE.Common/FlatData/ShopRecruitExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopRecruitExcel : IFlatbufferObject @@ -174,6 +175,138 @@ public struct ShopRecruitExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopRecruitExcelT UnPack() { + var _o = new ShopRecruitExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopRecruitExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopRecruit"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.OneGachaGoodsId = TableEncryptionService.Convert(this.OneGachaGoodsId, key); + _o.TenGachaGoodsId = TableEncryptionService.Convert(this.TenGachaGoodsId, key); + _o.GoodsDevName = TableEncryptionService.Convert(this.GoodsDevName, key); + _o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.GachaBannerPath = TableEncryptionService.Convert(this.GachaBannerPath, key); + _o.VideoId = new List(); + for (var _j = 0; _j < this.VideoIdLength; ++_j) {_o.VideoId.Add(TableEncryptionService.Convert(this.VideoId(_j), key));} + _o.LinkedRobbyBannerId = TableEncryptionService.Convert(this.LinkedRobbyBannerId, key); + _o.InfoCharacterId = new List(); + for (var _j = 0; _j < this.InfoCharacterIdLength; ++_j) {_o.InfoCharacterId.Add(TableEncryptionService.Convert(this.InfoCharacterId(_j), key));} + _o.SalePeriodFrom = TableEncryptionService.Convert(this.SalePeriodFrom, key); + _o.SalePeriodTo = TableEncryptionService.Convert(this.SalePeriodTo, key); + _o.RecruitCoinId = TableEncryptionService.Convert(this.RecruitCoinId, key); + _o.RecruitSellectionShopId = TableEncryptionService.Convert(this.RecruitSellectionShopId, key); + _o.PurchaseCooltimeMin = TableEncryptionService.Convert(this.PurchaseCooltimeMin, key); + _o.PurchaseCountLimit = TableEncryptionService.Convert(this.PurchaseCountLimit, key); + _o.PurchaseCountResetType = TableEncryptionService.Convert(this.PurchaseCountResetType, key); + _o.IsNewbie = TableEncryptionService.Convert(this.IsNewbie, key); + _o.IsSelectRecruit = TableEncryptionService.Convert(this.IsSelectRecruit, key); + _o.DirectPayInvisibleTokenId = TableEncryptionService.Convert(this.DirectPayInvisibleTokenId, key); + _o.DirectPayAndroidShopCashId = TableEncryptionService.Convert(this.DirectPayAndroidShopCashId, key); + _o.DirectPayAppleShopCashId = TableEncryptionService.Convert(this.DirectPayAppleShopCashId, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopRecruitExcelT _o) { + if (_o == null) return default(Offset); + var _GoodsDevName = _o.GoodsDevName == null ? default(StringOffset) : builder.CreateString(_o.GoodsDevName); + var _GachaBannerPath = _o.GachaBannerPath == null ? default(StringOffset) : builder.CreateString(_o.GachaBannerPath); + var _VideoId = default(VectorOffset); + if (_o.VideoId != null) { + var __VideoId = _o.VideoId.ToArray(); + _VideoId = CreateVideoIdVector(builder, __VideoId); + } + var _InfoCharacterId = default(VectorOffset); + if (_o.InfoCharacterId != null) { + var __InfoCharacterId = _o.InfoCharacterId.ToArray(); + _InfoCharacterId = CreateInfoCharacterIdVector(builder, __InfoCharacterId); + } + var _SalePeriodFrom = _o.SalePeriodFrom == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodFrom); + var _SalePeriodTo = _o.SalePeriodTo == null ? default(StringOffset) : builder.CreateString(_o.SalePeriodTo); + return CreateShopRecruitExcel( + builder, + _o.Id, + _o.CategoryType, + _o.IsLegacy, + _o.OneGachaGoodsId, + _o.TenGachaGoodsId, + _GoodsDevName, + _o.DisplayTag, + _o.DisplayOrder, + _GachaBannerPath, + _VideoId, + _o.LinkedRobbyBannerId, + _InfoCharacterId, + _SalePeriodFrom, + _SalePeriodTo, + _o.RecruitCoinId, + _o.RecruitSellectionShopId, + _o.PurchaseCooltimeMin, + _o.PurchaseCountLimit, + _o.PurchaseCountResetType, + _o.IsNewbie, + _o.IsSelectRecruit, + _o.DirectPayInvisibleTokenId, + _o.DirectPayAndroidShopCashId, + _o.DirectPayAppleShopCashId); + } +} + +public class ShopRecruitExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public bool IsLegacy { get; set; } + public long OneGachaGoodsId { get; set; } + public long TenGachaGoodsId { get; set; } + public string GoodsDevName { get; set; } + public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get; set; } + public long DisplayOrder { get; set; } + public string GachaBannerPath { get; set; } + public List VideoId { get; set; } + public long LinkedRobbyBannerId { get; set; } + public List InfoCharacterId { get; set; } + public string SalePeriodFrom { get; set; } + public string SalePeriodTo { get; set; } + public long RecruitCoinId { get; set; } + public long RecruitSellectionShopId { get; set; } + public long PurchaseCooltimeMin { get; set; } + public long PurchaseCountLimit { get; set; } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get; set; } + public bool IsNewbie { get; set; } + public bool IsSelectRecruit { get; set; } + public long DirectPayInvisibleTokenId { get; set; } + public long DirectPayAndroidShopCashId { get; set; } + public long DirectPayAppleShopCashId { get; set; } + + public ShopRecruitExcelT() { + this.Id = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.IsLegacy = false; + this.OneGachaGoodsId = 0; + this.TenGachaGoodsId = 0; + this.GoodsDevName = null; + this.DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None; + this.DisplayOrder = 0; + this.GachaBannerPath = null; + this.VideoId = null; + this.LinkedRobbyBannerId = 0; + this.InfoCharacterId = null; + this.SalePeriodFrom = null; + this.SalePeriodTo = null; + this.RecruitCoinId = 0; + this.RecruitSellectionShopId = 0; + this.PurchaseCooltimeMin = 0; + this.PurchaseCountLimit = 0; + this.PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.IsNewbie = false; + this.IsSelectRecruit = false; + this.DirectPayInvisibleTokenId = 0; + this.DirectPayAndroidShopCashId = 0; + this.DirectPayAppleShopCashId = 0; + } } diff --git a/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs b/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs index 7d056bc..9a7df9f 100644 --- a/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopRecruitExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopRecruitExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopRecruitExcelTableT UnPack() { + var _o = new ShopRecruitExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopRecruitExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopRecruitExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopRecruitExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopRecruitExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopRecruitExcelTable( + builder, + _DataList); + } +} + +public class ShopRecruitExcelTableT +{ + public List DataList { get; set; } + + public ShopRecruitExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShopRefreshExcel.cs b/SCHALE.Common/FlatData/ShopRefreshExcel.cs index 01d51e5..abdfd2e 100644 --- a/SCHALE.Common/FlatData/ShopRefreshExcel.cs +++ b/SCHALE.Common/FlatData/ShopRefreshExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopRefreshExcel : IFlatbufferObject @@ -23,31 +24,33 @@ public struct ShopRefreshExcel : IFlatbufferObject public uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public bool IsLegacy { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long GoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long DisplayOrder { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } - public int RefreshGroup { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int Prob { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public string BuyReportEventName { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public int GoodsType { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long DisplayOrder { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public int RefreshGroup { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Prob { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string BuyReportEventName { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(20, 1); } + public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(22, 1); } #else - public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(20); } + public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(22); } #endif - public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(20); } - public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(22); } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } public static Offset CreateShopRefreshExcel(FlatBufferBuilder builder, long Id = 0, uint LocalizeEtcId = 0, bool IsLegacy = false, long GoodsId = 0, + int GoodsType = 0, long DisplayOrder = 0, SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, int RefreshGroup = 0, int Prob = 0, StringOffset BuyReportEventNameOffset = default(StringOffset), SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None) { - builder.StartTable(10); + builder.StartTable(11); ShopRefreshExcel.AddDisplayOrder(builder, DisplayOrder); ShopRefreshExcel.AddGoodsId(builder, GoodsId); ShopRefreshExcel.AddId(builder, Id); @@ -56,26 +59,93 @@ public struct ShopRefreshExcel : IFlatbufferObject ShopRefreshExcel.AddProb(builder, Prob); ShopRefreshExcel.AddRefreshGroup(builder, RefreshGroup); ShopRefreshExcel.AddCategoryType(builder, CategoryType); + ShopRefreshExcel.AddGoodsType(builder, GoodsType); ShopRefreshExcel.AddLocalizeEtcId(builder, LocalizeEtcId); ShopRefreshExcel.AddIsLegacy(builder, IsLegacy); return ShopRefreshExcel.EndShopRefreshExcel(builder); } - public static void StartShopRefreshExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void StartShopRefreshExcel(FlatBufferBuilder builder) { builder.StartTable(11); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(1, localizeEtcId, 0); } public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(2, isLegacy, false); } public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(3, goodsId, 0); } - public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(4, displayOrder, 0); } - public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(5, (int)categoryType, 0); } - public static void AddRefreshGroup(FlatBufferBuilder builder, int refreshGroup) { builder.AddInt(6, refreshGroup, 0); } - public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(7, prob, 0); } - public static void AddBuyReportEventName(FlatBufferBuilder builder, StringOffset buyReportEventNameOffset) { builder.AddOffset(8, buyReportEventNameOffset.Value, 0); } - public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(9, (int)displayTag, 0); } + public static void AddGoodsType(FlatBufferBuilder builder, int goodsType) { builder.AddInt(4, goodsType, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(5, displayOrder, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(6, (int)categoryType, 0); } + public static void AddRefreshGroup(FlatBufferBuilder builder, int refreshGroup) { builder.AddInt(7, refreshGroup, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(8, prob, 0); } + public static void AddBuyReportEventName(FlatBufferBuilder builder, StringOffset buyReportEventNameOffset) { builder.AddOffset(9, buyReportEventNameOffset.Value, 0); } + public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(10, (int)displayTag, 0); } public static Offset EndShopRefreshExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); } + public ShopRefreshExcelT UnPack() { + var _o = new ShopRefreshExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopRefreshExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopRefresh"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.IsLegacy = TableEncryptionService.Convert(this.IsLegacy, key); + _o.GoodsId = TableEncryptionService.Convert(this.GoodsId, key); + _o.GoodsType = TableEncryptionService.Convert(this.GoodsType, key); + _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); + _o.CategoryType = TableEncryptionService.Convert(this.CategoryType, key); + _o.RefreshGroup = TableEncryptionService.Convert(this.RefreshGroup, key); + _o.Prob = TableEncryptionService.Convert(this.Prob, key); + _o.BuyReportEventName = TableEncryptionService.Convert(this.BuyReportEventName, key); + _o.DisplayTag = TableEncryptionService.Convert(this.DisplayTag, key); + } + public static Offset Pack(FlatBufferBuilder builder, ShopRefreshExcelT _o) { + if (_o == null) return default(Offset); + var _BuyReportEventName = _o.BuyReportEventName == null ? default(StringOffset) : builder.CreateString(_o.BuyReportEventName); + return CreateShopRefreshExcel( + builder, + _o.Id, + _o.LocalizeEtcId, + _o.IsLegacy, + _o.GoodsId, + _o.GoodsType, + _o.DisplayOrder, + _o.CategoryType, + _o.RefreshGroup, + _o.Prob, + _BuyReportEventName, + _o.DisplayTag); + } +} + +public class ShopRefreshExcelT +{ + public long Id { get; set; } + public uint LocalizeEtcId { get; set; } + public bool IsLegacy { get; set; } + public long GoodsId { get; set; } + public int GoodsType { get; set; } + public long DisplayOrder { get; set; } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get; set; } + public int RefreshGroup { get; set; } + public int Prob { get; set; } + public string BuyReportEventName { get; set; } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get; set; } + + public ShopRefreshExcelT() { + this.Id = 0; + this.LocalizeEtcId = 0; + this.IsLegacy = false; + this.GoodsId = 0; + this.GoodsType = 0; + this.DisplayOrder = 0; + this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; + this.RefreshGroup = 0; + this.Prob = 0; + this.BuyReportEventName = null; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + } } @@ -88,12 +158,13 @@ static public class ShopRefreshExcelVerify && verifier.VerifyField(tablePos, 6 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) && verifier.VerifyField(tablePos, 8 /*IsLegacy*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 10 /*GoodsId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 12 /*DisplayOrder*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 14 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) - && verifier.VerifyField(tablePos, 16 /*RefreshGroup*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 18 /*Prob*/, 4 /*int*/, 4, false) - && verifier.VerifyString(tablePos, 20 /*BuyReportEventName*/, false) - && verifier.VerifyField(tablePos, 22 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*GoodsType*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*RefreshGroup*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 22 /*BuyReportEventName*/, false) + && verifier.VerifyField(tablePos, 24 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs b/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs index 10d64cc..c90ebcd 100644 --- a/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs +++ b/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShopRefreshExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct ShopRefreshExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShopRefreshExcelTableT UnPack() { + var _o = new ShopRefreshExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShopRefreshExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("ShopRefreshExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, ShopRefreshExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ShopRefreshExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateShopRefreshExcelTable( + builder, + _DataList); + } +} + +public class ShopRefreshExcelTableT +{ + public List DataList { get; set; } + + public ShopRefreshExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ShortcutTypeExcel.cs b/SCHALE.Common/FlatData/ShortcutTypeExcel.cs index 9d2b1ea..5d65357 100644 --- a/SCHALE.Common/FlatData/ShortcutTypeExcel.cs +++ b/SCHALE.Common/FlatData/ShortcutTypeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ShortcutTypeExcel : IFlatbufferObject @@ -54,6 +55,44 @@ public struct ShortcutTypeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ShortcutTypeExcelT UnPack() { + var _o = new ShortcutTypeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ShortcutTypeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("ShortcutType"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.IsAscending = TableEncryptionService.Convert(this.IsAscending, key); + _o.ContentType = new List(); + for (var _j = 0; _j < this.ContentTypeLength; ++_j) {_o.ContentType.Add(TableEncryptionService.Convert(this.ContentType(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, ShortcutTypeExcelT _o) { + if (_o == null) return default(Offset); + var _ContentType = default(VectorOffset); + if (_o.ContentType != null) { + var __ContentType = _o.ContentType.ToArray(); + _ContentType = CreateContentTypeVector(builder, __ContentType); + } + return CreateShortcutTypeExcel( + builder, + _o.Id, + _o.IsAscending, + _ContentType); + } +} + +public class ShortcutTypeExcelT +{ + public long Id { get; set; } + public bool IsAscending { get; set; } + public List ContentType { get; set; } + + public ShortcutTypeExcelT() { + this.Id = 0; + this.IsAscending = false; + this.ContentType = null; + } } diff --git a/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs b/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs deleted file mode 100644 index 2b83b8c..0000000 --- a/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct ShortcutTypeExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ShortcutTypeExcelTable GetRootAsShortcutTypeExcelTable(ByteBuffer _bb) { return GetRootAsShortcutTypeExcelTable(_bb, new ShortcutTypeExcelTable()); } - public static ShortcutTypeExcelTable GetRootAsShortcutTypeExcelTable(ByteBuffer _bb, ShortcutTypeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ShortcutTypeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ShortcutTypeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShortcutTypeExcel?)(new SCHALE.Common.FlatData.ShortcutTypeExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateShortcutTypeExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ShortcutTypeExcelTable.AddDataList(builder, DataListOffset); - return ShortcutTypeExcelTable.EndShortcutTypeExcelTable(builder); - } - - public static void StartShortcutTypeExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndShortcutTypeExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class ShortcutTypeExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShortcutTypeExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs b/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs index ea2ad3f..53bdbb6 100644 --- a/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs +++ b/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SkillAdditionalTooltipExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct SkillAdditionalTooltipExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SkillAdditionalTooltipExcelT UnPack() { + var _o = new SkillAdditionalTooltipExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SkillAdditionalTooltipExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SkillAdditionalTooltip"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.AdditionalSkillGroupId = TableEncryptionService.Convert(this.AdditionalSkillGroupId, key); + _o.ShowSkillSlot = TableEncryptionService.Convert(this.ShowSkillSlot, key); + } + public static Offset Pack(FlatBufferBuilder builder, SkillAdditionalTooltipExcelT _o) { + if (_o == null) return default(Offset); + var _AdditionalSkillGroupId = _o.AdditionalSkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.AdditionalSkillGroupId); + var _ShowSkillSlot = _o.ShowSkillSlot == null ? default(StringOffset) : builder.CreateString(_o.ShowSkillSlot); + return CreateSkillAdditionalTooltipExcel( + builder, + _o.GroupId, + _AdditionalSkillGroupId, + _ShowSkillSlot); + } +} + +public class SkillAdditionalTooltipExcelT +{ + public long GroupId { get; set; } + public string AdditionalSkillGroupId { get; set; } + public string ShowSkillSlot { get; set; } + + public SkillAdditionalTooltipExcelT() { + this.GroupId = 0; + this.AdditionalSkillGroupId = null; + this.ShowSkillSlot = null; + } } diff --git a/SCHALE.Common/FlatData/SkillExcel.cs b/SCHALE.Common/FlatData/SkillExcel.cs index f650b5b..0a0218c 100644 --- a/SCHALE.Common/FlatData/SkillExcel.cs +++ b/SCHALE.Common/FlatData/SkillExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SkillExcel : IFlatbufferObject @@ -182,6 +183,148 @@ public struct SkillExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SkillExcelT UnPack() { + var _o = new SkillExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SkillExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Skill"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LocalizeSkillId = TableEncryptionService.Convert(this.LocalizeSkillId, key); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.SkillDataKey = TableEncryptionService.Convert(this.SkillDataKey, key); + _o.VisualDataKey = TableEncryptionService.Convert(this.VisualDataKey, key); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.SkillCost = TableEncryptionService.Convert(this.SkillCost, key); + _o.ExtraSkillCost = TableEncryptionService.Convert(this.ExtraSkillCost, key); + _o.EnemySkillCost = TableEncryptionService.Convert(this.EnemySkillCost, key); + _o.ExtraEnemySkillCost = TableEncryptionService.Convert(this.ExtraEnemySkillCost, key); + _o.NPCSkillCost = TableEncryptionService.Convert(this.NPCSkillCost, key); + _o.ExtraNPCSkillCost = TableEncryptionService.Convert(this.ExtraNPCSkillCost, key); + _o.BulletType = TableEncryptionService.Convert(this.BulletType, key); + _o.StartCoolTime = TableEncryptionService.Convert(this.StartCoolTime, key); + _o.CoolTime = TableEncryptionService.Convert(this.CoolTime, key); + _o.EnemyStartCoolTime = TableEncryptionService.Convert(this.EnemyStartCoolTime, key); + _o.EnemyCoolTime = TableEncryptionService.Convert(this.EnemyCoolTime, key); + _o.NPCStartCoolTime = TableEncryptionService.Convert(this.NPCStartCoolTime, key); + _o.NPCCoolTime = TableEncryptionService.Convert(this.NPCCoolTime, key); + _o.UseAtg = TableEncryptionService.Convert(this.UseAtg, key); + _o.RequireCharacterLevel = TableEncryptionService.Convert(this.RequireCharacterLevel, key); + _o.RequireLevelUpMaterial = TableEncryptionService.Convert(this.RequireLevelUpMaterial, key); + _o.IconName = TableEncryptionService.Convert(this.IconName, key); + _o.IsShowInfo = TableEncryptionService.Convert(this.IsShowInfo, key); + _o.IsShowSpeechbubble = TableEncryptionService.Convert(this.IsShowSpeechbubble, key); + _o.PublicSpeechDuration = TableEncryptionService.Convert(this.PublicSpeechDuration, key); + _o.AdditionalToolTipId = TableEncryptionService.Convert(this.AdditionalToolTipId, key); + _o.TextureSkillCardForFormConversion = TableEncryptionService.Convert(this.TextureSkillCardForFormConversion, key); + _o.SkillCardLabelPath = TableEncryptionService.Convert(this.SkillCardLabelPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, SkillExcelT _o) { + if (_o == null) return default(Offset); + var _GroupId = _o.GroupId == null ? default(StringOffset) : builder.CreateString(_o.GroupId); + var _SkillDataKey = _o.SkillDataKey == null ? default(StringOffset) : builder.CreateString(_o.SkillDataKey); + var _VisualDataKey = _o.VisualDataKey == null ? default(StringOffset) : builder.CreateString(_o.VisualDataKey); + var _IconName = _o.IconName == null ? default(StringOffset) : builder.CreateString(_o.IconName); + var _TextureSkillCardForFormConversion = _o.TextureSkillCardForFormConversion == null ? default(StringOffset) : builder.CreateString(_o.TextureSkillCardForFormConversion); + var _SkillCardLabelPath = _o.SkillCardLabelPath == null ? default(StringOffset) : builder.CreateString(_o.SkillCardLabelPath); + return CreateSkillExcel( + builder, + _o.Id, + _o.LocalizeSkillId, + _GroupId, + _SkillDataKey, + _VisualDataKey, + _o.Level, + _o.SkillCost, + _o.ExtraSkillCost, + _o.EnemySkillCost, + _o.ExtraEnemySkillCost, + _o.NPCSkillCost, + _o.ExtraNPCSkillCost, + _o.BulletType, + _o.StartCoolTime, + _o.CoolTime, + _o.EnemyStartCoolTime, + _o.EnemyCoolTime, + _o.NPCStartCoolTime, + _o.NPCCoolTime, + _o.UseAtg, + _o.RequireCharacterLevel, + _o.RequireLevelUpMaterial, + _IconName, + _o.IsShowInfo, + _o.IsShowSpeechbubble, + _o.PublicSpeechDuration, + _o.AdditionalToolTipId, + _TextureSkillCardForFormConversion, + _SkillCardLabelPath); + } +} + +public class SkillExcelT +{ + public long Id { get; set; } + public uint LocalizeSkillId { get; set; } + public string GroupId { get; set; } + public string SkillDataKey { get; set; } + public string VisualDataKey { get; set; } + public int Level { get; set; } + public int SkillCost { get; set; } + public int ExtraSkillCost { get; set; } + public int EnemySkillCost { get; set; } + public int ExtraEnemySkillCost { get; set; } + public int NPCSkillCost { get; set; } + public int ExtraNPCSkillCost { get; set; } + public SCHALE.Common.FlatData.BulletType BulletType { get; set; } + public int StartCoolTime { get; set; } + public int CoolTime { get; set; } + public int EnemyStartCoolTime { get; set; } + public int EnemyCoolTime { get; set; } + public int NPCStartCoolTime { get; set; } + public int NPCCoolTime { get; set; } + public int UseAtg { get; set; } + public int RequireCharacterLevel { get; set; } + public long RequireLevelUpMaterial { get; set; } + public string IconName { get; set; } + public bool IsShowInfo { get; set; } + public bool IsShowSpeechbubble { get; set; } + public int PublicSpeechDuration { get; set; } + public long AdditionalToolTipId { get; set; } + public string TextureSkillCardForFormConversion { get; set; } + public string SkillCardLabelPath { get; set; } + + public SkillExcelT() { + this.Id = 0; + this.LocalizeSkillId = 0; + this.GroupId = null; + this.SkillDataKey = null; + this.VisualDataKey = null; + this.Level = 0; + this.SkillCost = 0; + this.ExtraSkillCost = 0; + this.EnemySkillCost = 0; + this.ExtraEnemySkillCost = 0; + this.NPCSkillCost = 0; + this.ExtraNPCSkillCost = 0; + this.BulletType = SCHALE.Common.FlatData.BulletType.Normal; + this.StartCoolTime = 0; + this.CoolTime = 0; + this.EnemyStartCoolTime = 0; + this.EnemyCoolTime = 0; + this.NPCStartCoolTime = 0; + this.NPCCoolTime = 0; + this.UseAtg = 0; + this.RequireCharacterLevel = 0; + this.RequireLevelUpMaterial = 0; + this.IconName = null; + this.IsShowInfo = false; + this.IsShowSpeechbubble = false; + this.PublicSpeechDuration = 0; + this.AdditionalToolTipId = 0; + this.TextureSkillCardForFormConversion = null; + this.SkillCardLabelPath = null; + } } diff --git a/SCHALE.Common/FlatData/SkillExcelTable.cs b/SCHALE.Common/FlatData/SkillExcelTable.cs index e525099..bdd2a52 100644 --- a/SCHALE.Common/FlatData/SkillExcelTable.cs +++ b/SCHALE.Common/FlatData/SkillExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SkillExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct SkillExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SkillExcelTableT UnPack() { + var _o = new SkillExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SkillExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("SkillExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, SkillExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SkillExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateSkillExcelTable( + builder, + _DataList); + } +} + +public class SkillExcelTableT +{ + public List DataList { get; set; } + + public SkillExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/SoundUIExcel.cs b/SCHALE.Common/FlatData/SoundUIExcel.cs index 940a97d..cbc1ba5 100644 --- a/SCHALE.Common/FlatData/SoundUIExcel.cs +++ b/SCHALE.Common/FlatData/SoundUIExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SoundUIExcel : IFlatbufferObject @@ -54,6 +55,40 @@ public struct SoundUIExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SoundUIExcelT UnPack() { + var _o = new SoundUIExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SoundUIExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SoundUI"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.SoundUniqueId = TableEncryptionService.Convert(this.SoundUniqueId, key); + _o.Path = TableEncryptionService.Convert(this.Path, key); + } + public static Offset Pack(FlatBufferBuilder builder, SoundUIExcelT _o) { + if (_o == null) return default(Offset); + var _SoundUniqueId = _o.SoundUniqueId == null ? default(StringOffset) : builder.CreateString(_o.SoundUniqueId); + var _Path = _o.Path == null ? default(StringOffset) : builder.CreateString(_o.Path); + return CreateSoundUIExcel( + builder, + _o.ID, + _SoundUniqueId, + _Path); + } +} + +public class SoundUIExcelT +{ + public long ID { get; set; } + public string SoundUniqueId { get; set; } + public string Path { get; set; } + + public SoundUIExcelT() { + this.ID = 0; + this.SoundUniqueId = null; + this.Path = null; + } } diff --git a/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs b/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs index d52944d..7b8153c 100644 --- a/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs +++ b/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SpecialLobbyIllustExcel : IFlatbufferObject @@ -78,6 +79,54 @@ public struct SpecialLobbyIllustExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SpecialLobbyIllustExcelT UnPack() { + var _o = new SpecialLobbyIllustExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SpecialLobbyIllustExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SpecialLobbyIllust"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.CharacterCostumeUniqueId = TableEncryptionService.Convert(this.CharacterCostumeUniqueId, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.SlotTextureName = TableEncryptionService.Convert(this.SlotTextureName, key); + _o.RewardTextureName = TableEncryptionService.Convert(this.RewardTextureName, key); + } + public static Offset Pack(FlatBufferBuilder builder, SpecialLobbyIllustExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _SlotTextureName = _o.SlotTextureName == null ? default(StringOffset) : builder.CreateString(_o.SlotTextureName); + var _RewardTextureName = _o.RewardTextureName == null ? default(StringOffset) : builder.CreateString(_o.RewardTextureName); + return CreateSpecialLobbyIllustExcel( + builder, + _o.UniqueId, + _DevName, + _o.CharacterCostumeUniqueId, + _PrefabName, + _SlotTextureName, + _RewardTextureName); + } +} + +public class SpecialLobbyIllustExcelT +{ + public long UniqueId { get; set; } + public string DevName { get; set; } + public long CharacterCostumeUniqueId { get; set; } + public string PrefabName { get; set; } + public string SlotTextureName { get; set; } + public string RewardTextureName { get; set; } + + public SpecialLobbyIllustExcelT() { + this.UniqueId = 0; + this.DevName = null; + this.CharacterCostumeUniqueId = 0; + this.PrefabName = null; + this.SlotTextureName = null; + this.RewardTextureName = null; + } } diff --git a/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs b/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs index 5742bb0..981195b 100644 --- a/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs +++ b/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SpecialLobbyIllustExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct SpecialLobbyIllustExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SpecialLobbyIllustExcelTableT UnPack() { + var _o = new SpecialLobbyIllustExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SpecialLobbyIllustExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("SpecialLobbyIllustExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, SpecialLobbyIllustExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SpecialLobbyIllustExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateSpecialLobbyIllustExcelTable( + builder, + _DataList); + } +} + +public class SpecialLobbyIllustExcelTableT +{ + public List DataList { get; set; } + + public SpecialLobbyIllustExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/SpineLipsyncExcel.cs b/SCHALE.Common/FlatData/SpineLipsyncExcel.cs index ed991ad..38202a1 100644 --- a/SCHALE.Common/FlatData/SpineLipsyncExcel.cs +++ b/SCHALE.Common/FlatData/SpineLipsyncExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SpineLipsyncExcel : IFlatbufferObject @@ -44,6 +45,35 @@ public struct SpineLipsyncExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SpineLipsyncExcelT UnPack() { + var _o = new SpineLipsyncExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SpineLipsyncExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SpineLipsync"); + _o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key); + _o.AnimJson = TableEncryptionService.Convert(this.AnimJson, key); + } + public static Offset Pack(FlatBufferBuilder builder, SpineLipsyncExcelT _o) { + if (_o == null) return default(Offset); + var _AnimJson = _o.AnimJson == null ? default(StringOffset) : builder.CreateString(_o.AnimJson); + return CreateSpineLipsyncExcel( + builder, + _o.VoiceId, + _AnimJson); + } +} + +public class SpineLipsyncExcelT +{ + public uint VoiceId { get; set; } + public string AnimJson { get; set; } + + public SpineLipsyncExcelT() { + this.VoiceId = 0; + this.AnimJson = null; + } } diff --git a/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs b/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs deleted file mode 100644 index 410b8e4..0000000 --- a/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct SpineLipsyncExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static SpineLipsyncExcelTable GetRootAsSpineLipsyncExcelTable(ByteBuffer _bb) { return GetRootAsSpineLipsyncExcelTable(_bb, new SpineLipsyncExcelTable()); } - public static SpineLipsyncExcelTable GetRootAsSpineLipsyncExcelTable(ByteBuffer _bb, SpineLipsyncExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public SpineLipsyncExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.SpineLipsyncExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SpineLipsyncExcel?)(new SCHALE.Common.FlatData.SpineLipsyncExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateSpineLipsyncExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - SpineLipsyncExcelTable.AddDataList(builder, DataListOffset); - return SpineLipsyncExcelTable.EndSpineLipsyncExcelTable(builder); - } - - public static void StartSpineLipsyncExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndSpineLipsyncExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class SpineLipsyncExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SpineLipsyncExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs b/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs index 5514b30..95573f1 100644 --- a/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs +++ b/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StageFileRefreshSettingExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct StageFileRefreshSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StageFileRefreshSettingExcelT UnPack() { + var _o = new StageFileRefreshSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StageFileRefreshSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StageFileRefreshSetting"); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.ForceSave = TableEncryptionService.Convert(this.ForceSave, key); + } + public static Offset Pack(FlatBufferBuilder builder, StageFileRefreshSettingExcelT _o) { + if (_o == null) return default(Offset); + return CreateStageFileRefreshSettingExcel( + builder, + _o.GroundId, + _o.ForceSave); + } +} + +public class StageFileRefreshSettingExcelT +{ + public long GroundId { get; set; } + public bool ForceSave { get; set; } + + public StageFileRefreshSettingExcelT() { + this.GroundId = 0; + this.ForceSave = false; + } } diff --git a/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs b/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs index f5fc287..fc1ebd0 100644 --- a/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs +++ b/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StatLevelInterpolationExcel : IFlatbufferObject @@ -50,6 +51,40 @@ public struct StatLevelInterpolationExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StatLevelInterpolationExcelT UnPack() { + var _o = new StatLevelInterpolationExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StatLevelInterpolationExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StatLevelInterpolation"); + _o.Level = TableEncryptionService.Convert(this.Level, key); + _o.StatTypeIndex = new List(); + for (var _j = 0; _j < this.StatTypeIndexLength; ++_j) {_o.StatTypeIndex.Add(TableEncryptionService.Convert(this.StatTypeIndex(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, StatLevelInterpolationExcelT _o) { + if (_o == null) return default(Offset); + var _StatTypeIndex = default(VectorOffset); + if (_o.StatTypeIndex != null) { + var __StatTypeIndex = _o.StatTypeIndex.ToArray(); + _StatTypeIndex = CreateStatTypeIndexVector(builder, __StatTypeIndex); + } + return CreateStatLevelInterpolationExcel( + builder, + _o.Level, + _StatTypeIndex); + } +} + +public class StatLevelInterpolationExcelT +{ + public long Level { get; set; } + public List StatTypeIndex { get; set; } + + public StatLevelInterpolationExcelT() { + this.Level = 0; + this.StatTypeIndex = null; + } } diff --git a/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs b/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs index a6d8c7d..788cf1c 100644 --- a/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs +++ b/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StatLevelInterpolationExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StatLevelInterpolationExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StatLevelInterpolationExcelTableT UnPack() { + var _o = new StatLevelInterpolationExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StatLevelInterpolationExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StatLevelInterpolationExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StatLevelInterpolationExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StatLevelInterpolationExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStatLevelInterpolationExcelTable( + builder, + _DataList); + } +} + +public class StatLevelInterpolationExcelTableT +{ + public List DataList { get; set; } + + public StatLevelInterpolationExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/StickerGroupExcel.cs b/SCHALE.Common/FlatData/StickerGroupExcel.cs index 62812d6..0537a5d 100644 --- a/SCHALE.Common/FlatData/StickerGroupExcel.cs +++ b/SCHALE.Common/FlatData/StickerGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StickerGroupExcel : IFlatbufferObject @@ -98,6 +99,74 @@ public struct StickerGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StickerGroupExcelT UnPack() { + var _o = new StickerGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StickerGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StickerGroup"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Layout = TableEncryptionService.Convert(this.Layout, key); + _o.UniqueLayoutPath = TableEncryptionService.Convert(this.UniqueLayoutPath, key); + _o.StickerGroupIconpath = TableEncryptionService.Convert(this.StickerGroupIconpath, key); + _o.PageCompleteSlot = TableEncryptionService.Convert(this.PageCompleteSlot, key); + _o.PageCompleteRewardParcelType = TableEncryptionService.Convert(this.PageCompleteRewardParcelType, key); + _o.PageCompleteRewardParcelId = TableEncryptionService.Convert(this.PageCompleteRewardParcelId, key); + _o.PageCompleteRewardAmount = TableEncryptionService.Convert(this.PageCompleteRewardAmount, key); + _o.LocalizeTitle = TableEncryptionService.Convert(this.LocalizeTitle, key); + _o.LocalizeDescription = TableEncryptionService.Convert(this.LocalizeDescription, key); + _o.StickerGroupCoverpath = TableEncryptionService.Convert(this.StickerGroupCoverpath, key); + } + public static Offset Pack(FlatBufferBuilder builder, StickerGroupExcelT _o) { + if (_o == null) return default(Offset); + var _Layout = _o.Layout == null ? default(StringOffset) : builder.CreateString(_o.Layout); + var _UniqueLayoutPath = _o.UniqueLayoutPath == null ? default(StringOffset) : builder.CreateString(_o.UniqueLayoutPath); + var _StickerGroupIconpath = _o.StickerGroupIconpath == null ? default(StringOffset) : builder.CreateString(_o.StickerGroupIconpath); + var _StickerGroupCoverpath = _o.StickerGroupCoverpath == null ? default(StringOffset) : builder.CreateString(_o.StickerGroupCoverpath); + return CreateStickerGroupExcel( + builder, + _o.Id, + _Layout, + _UniqueLayoutPath, + _StickerGroupIconpath, + _o.PageCompleteSlot, + _o.PageCompleteRewardParcelType, + _o.PageCompleteRewardParcelId, + _o.PageCompleteRewardAmount, + _o.LocalizeTitle, + _o.LocalizeDescription, + _StickerGroupCoverpath); + } +} + +public class StickerGroupExcelT +{ + public long Id { get; set; } + public string Layout { get; set; } + public string UniqueLayoutPath { get; set; } + public string StickerGroupIconpath { get; set; } + public long PageCompleteSlot { get; set; } + public SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType { get; set; } + public long PageCompleteRewardParcelId { get; set; } + public int PageCompleteRewardAmount { get; set; } + public uint LocalizeTitle { get; set; } + public uint LocalizeDescription { get; set; } + public string StickerGroupCoverpath { get; set; } + + public StickerGroupExcelT() { + this.Id = 0; + this.Layout = null; + this.UniqueLayoutPath = null; + this.StickerGroupIconpath = null; + this.PageCompleteSlot = 0; + this.PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.PageCompleteRewardParcelId = 0; + this.PageCompleteRewardAmount = 0; + this.LocalizeTitle = 0; + this.LocalizeDescription = 0; + this.StickerGroupCoverpath = null; + } } diff --git a/SCHALE.Common/FlatData/StickerGroupExcelTable.cs b/SCHALE.Common/FlatData/StickerGroupExcelTable.cs index 7e75e20..c7137b7 100644 --- a/SCHALE.Common/FlatData/StickerGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/StickerGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StickerGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StickerGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StickerGroupExcelTableT UnPack() { + var _o = new StickerGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StickerGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StickerGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StickerGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StickerGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStickerGroupExcelTable( + builder, + _DataList); + } +} + +public class StickerGroupExcelTableT +{ + public List DataList { get; set; } + + public StickerGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/StickerPageContentExcel.cs b/SCHALE.Common/FlatData/StickerPageContentExcel.cs index 0331dd1..d869732 100644 --- a/SCHALE.Common/FlatData/StickerPageContentExcel.cs +++ b/SCHALE.Common/FlatData/StickerPageContentExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StickerPageContentExcel : IFlatbufferObject @@ -128,6 +129,97 @@ public struct StickerPageContentExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StickerPageContentExcelT UnPack() { + var _o = new StickerPageContentExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StickerPageContentExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StickerPageContent"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StickerGroupId = TableEncryptionService.Convert(this.StickerGroupId, key); + _o.StickerPageId = TableEncryptionService.Convert(this.StickerPageId, key); + _o.StickerSlot = TableEncryptionService.Convert(this.StickerSlot, key); + _o.StickerGetConditionType = TableEncryptionService.Convert(this.StickerGetConditionType, key); + _o.StickerCheckPassType = TableEncryptionService.Convert(this.StickerCheckPassType, key); + _o.GetStickerConditionType = TableEncryptionService.Convert(this.GetStickerConditionType, key); + _o.StickerGetConditionCount = TableEncryptionService.Convert(this.StickerGetConditionCount, key); + _o.StickerGetConditionParameter = new List(); + for (var _j = 0; _j < this.StickerGetConditionParameterLength; ++_j) {_o.StickerGetConditionParameter.Add(TableEncryptionService.Convert(this.StickerGetConditionParameter(_j), key));} + _o.StickerGetConditionParameterTag = new List(); + for (var _j = 0; _j < this.StickerGetConditionParameterTagLength; ++_j) {_o.StickerGetConditionParameterTag.Add(TableEncryptionService.Convert(this.StickerGetConditionParameterTag(_j), key));} + _o.PackedStickerIconLocalizeEtcId = TableEncryptionService.Convert(this.PackedStickerIconLocalizeEtcId, key); + _o.PackedStickerIconPath = TableEncryptionService.Convert(this.PackedStickerIconPath, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.StickerDetailPath = TableEncryptionService.Convert(this.StickerDetailPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, StickerPageContentExcelT _o) { + if (_o == null) return default(Offset); + var _StickerGetConditionParameter = default(VectorOffset); + if (_o.StickerGetConditionParameter != null) { + var __StickerGetConditionParameter = _o.StickerGetConditionParameter.ToArray(); + _StickerGetConditionParameter = CreateStickerGetConditionParameterVector(builder, __StickerGetConditionParameter); + } + var _StickerGetConditionParameterTag = default(VectorOffset); + if (_o.StickerGetConditionParameterTag != null) { + var __StickerGetConditionParameterTag = _o.StickerGetConditionParameterTag.ToArray(); + _StickerGetConditionParameterTag = CreateStickerGetConditionParameterTagVector(builder, __StickerGetConditionParameterTag); + } + var _PackedStickerIconPath = _o.PackedStickerIconPath == null ? default(StringOffset) : builder.CreateString(_o.PackedStickerIconPath); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + var _StickerDetailPath = _o.StickerDetailPath == null ? default(StringOffset) : builder.CreateString(_o.StickerDetailPath); + return CreateStickerPageContentExcel( + builder, + _o.Id, + _o.StickerGroupId, + _o.StickerPageId, + _o.StickerSlot, + _o.StickerGetConditionType, + _o.StickerCheckPassType, + _o.GetStickerConditionType, + _o.StickerGetConditionCount, + _StickerGetConditionParameter, + _StickerGetConditionParameterTag, + _o.PackedStickerIconLocalizeEtcId, + _PackedStickerIconPath, + _IconPath, + _StickerDetailPath); + } +} + +public class StickerPageContentExcelT +{ + public long Id { get; set; } + public long StickerGroupId { get; set; } + public long StickerPageId { get; set; } + public long StickerSlot { get; set; } + public SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType { get; set; } + public SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType { get; set; } + public SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType { get; set; } + public long StickerGetConditionCount { get; set; } + public List StickerGetConditionParameter { get; set; } + public List StickerGetConditionParameterTag { get; set; } + public uint PackedStickerIconLocalizeEtcId { get; set; } + public string PackedStickerIconPath { get; set; } + public string IconPath { get; set; } + public string StickerDetailPath { get; set; } + + public StickerPageContentExcelT() { + this.Id = 0; + this.StickerGroupId = 0; + this.StickerPageId = 0; + this.StickerSlot = 0; + this.StickerGetConditionType = SCHALE.Common.FlatData.StickerGetConditionType.None; + this.StickerCheckPassType = SCHALE.Common.FlatData.StickerCheckPassType.None; + this.GetStickerConditionType = SCHALE.Common.FlatData.GetStickerConditionType.None; + this.StickerGetConditionCount = 0; + this.StickerGetConditionParameter = null; + this.StickerGetConditionParameterTag = null; + this.PackedStickerIconLocalizeEtcId = 0; + this.PackedStickerIconPath = null; + this.IconPath = null; + this.StickerDetailPath = null; + } } diff --git a/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs b/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs index 16fef98..e55e9e1 100644 --- a/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs +++ b/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StickerPageContentExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StickerPageContentExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StickerPageContentExcelTableT UnPack() { + var _o = new StickerPageContentExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StickerPageContentExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StickerPageContentExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StickerPageContentExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StickerPageContentExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStickerPageContentExcelTable( + builder, + _DataList); + } +} + +public class StickerPageContentExcelTableT +{ + public List DataList { get; set; } + + public StickerPageContentExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/StoryStrategyExcel.cs b/SCHALE.Common/FlatData/StoryStrategyExcel.cs index b3e2064..cfff36d 100644 --- a/SCHALE.Common/FlatData/StoryStrategyExcel.cs +++ b/SCHALE.Common/FlatData/StoryStrategyExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StoryStrategyExcel : IFlatbufferObject @@ -116,6 +117,87 @@ public struct StoryStrategyExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StoryStrategyExcelT UnPack() { + var _o = new StoryStrategyExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StoryStrategyExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StoryStrategy"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Name = TableEncryptionService.Convert(this.Name, key); + _o.Localize = TableEncryptionService.Convert(this.Localize, key); + _o.StageEnterEchelonCount = TableEncryptionService.Convert(this.StageEnterEchelonCount, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.WhiteListId = TableEncryptionService.Convert(this.WhiteListId, key); + _o.StrategyMap = TableEncryptionService.Convert(this.StrategyMap, key); + _o.StrategyMapBG = TableEncryptionService.Convert(this.StrategyMapBG, key); + _o.MaxTurn = TableEncryptionService.Convert(this.MaxTurn, key); + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.StrategyEnvironment = TableEncryptionService.Convert(this.StrategyEnvironment, key); + _o.ContentType = TableEncryptionService.Convert(this.ContentType, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.FirstClearReportEventName = TableEncryptionService.Convert(this.FirstClearReportEventName, key); + } + public static Offset Pack(FlatBufferBuilder builder, StoryStrategyExcelT _o) { + if (_o == null) return default(Offset); + var _Name = _o.Name == null ? default(StringOffset) : builder.CreateString(_o.Name); + var _Localize = _o.Localize == null ? default(StringOffset) : builder.CreateString(_o.Localize); + var _StrategyMap = _o.StrategyMap == null ? default(StringOffset) : builder.CreateString(_o.StrategyMap); + var _StrategyMapBG = _o.StrategyMapBG == null ? default(StringOffset) : builder.CreateString(_o.StrategyMapBG); + var _FirstClearReportEventName = _o.FirstClearReportEventName == null ? default(StringOffset) : builder.CreateString(_o.FirstClearReportEventName); + return CreateStoryStrategyExcel( + builder, + _o.Id, + _Name, + _Localize, + _o.StageEnterEchelonCount, + _o.BattleDuration, + _o.WhiteListId, + _StrategyMap, + _StrategyMapBG, + _o.MaxTurn, + _o.StageTopography, + _o.StrategyEnvironment, + _o.ContentType, + _o.BGMId, + _FirstClearReportEventName); + } +} + +public class StoryStrategyExcelT +{ + public long Id { get; set; } + public string Name { get; set; } + public string Localize { get; set; } + public int StageEnterEchelonCount { get; set; } + public long BattleDuration { get; set; } + public long WhiteListId { get; set; } + public string StrategyMap { get; set; } + public string StrategyMapBG { get; set; } + public int MaxTurn { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get; set; } + public SCHALE.Common.FlatData.ContentType ContentType { get; set; } + public long BGMId { get; set; } + public string FirstClearReportEventName { get; set; } + + public StoryStrategyExcelT() { + this.Id = 0; + this.Name = null; + this.Localize = null; + this.StageEnterEchelonCount = 0; + this.BattleDuration = 0; + this.WhiteListId = 0; + this.StrategyMap = null; + this.StrategyMapBG = null; + this.MaxTurn = 0; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.ContentType = SCHALE.Common.FlatData.ContentType.None; + this.BGMId = 0; + this.FirstClearReportEventName = null; + } } diff --git a/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs b/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs index 2cbdce6..06ceec9 100644 --- a/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs +++ b/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StoryStrategyExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StoryStrategyExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StoryStrategyExcelTableT UnPack() { + var _o = new StoryStrategyExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StoryStrategyExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StoryStrategyExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StoryStrategyExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StoryStrategyExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStoryStrategyExcelTable( + builder, + _DataList); + } +} + +public class StoryStrategyExcelTableT +{ + public List DataList { get; set; } + + public StoryStrategyExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs index a1527a8..ca6fcf8 100644 --- a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs +++ b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StrategyObjectBuffDefineExcel : IFlatbufferObject @@ -62,6 +63,48 @@ public struct StrategyObjectBuffDefineExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StrategyObjectBuffDefineExcelT UnPack() { + var _o = new StrategyObjectBuffDefineExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StrategyObjectBuffDefineExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StrategyObjectBuffDefine"); + _o.StrategyObjectBuffID = TableEncryptionService.Convert(this.StrategyObjectBuffID, key); + _o.StrategyObjectTurn = TableEncryptionService.Convert(this.StrategyObjectTurn, key); + _o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, StrategyObjectBuffDefineExcelT _o) { + if (_o == null) return default(Offset); + var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateStrategyObjectBuffDefineExcel( + builder, + _o.StrategyObjectBuffID, + _o.StrategyObjectTurn, + _SkillGroupId, + _o.LocalizeCodeId, + _IconPath); + } +} + +public class StrategyObjectBuffDefineExcelT +{ + public long StrategyObjectBuffID { get; set; } + public int StrategyObjectTurn { get; set; } + public string SkillGroupId { get; set; } + public uint LocalizeCodeId { get; set; } + public string IconPath { get; set; } + + public StrategyObjectBuffDefineExcelT() { + this.StrategyObjectBuffID = 0; + this.StrategyObjectTurn = 0; + this.SkillGroupId = null; + this.LocalizeCodeId = 0; + this.IconPath = null; + } } diff --git a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs index ee34771..76d237b 100644 --- a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs +++ b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StrategyObjectBuffDefineExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StrategyObjectBuffDefineExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StrategyObjectBuffDefineExcelTableT UnPack() { + var _o = new StrategyObjectBuffDefineExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StrategyObjectBuffDefineExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StrategyObjectBuffDefineExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StrategyObjectBuffDefineExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStrategyObjectBuffDefineExcelTable( + builder, + _DataList); + } +} + +public class StrategyObjectBuffDefineExcelTableT +{ + public List DataList { get; set; } + + public StrategyObjectBuffDefineExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/StringTestExcel.cs b/SCHALE.Common/FlatData/StringTestExcel.cs index 4f3759f..ec2ff09 100644 --- a/SCHALE.Common/FlatData/StringTestExcel.cs +++ b/SCHALE.Common/FlatData/StringTestExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StringTestExcel : IFlatbufferObject @@ -60,6 +61,47 @@ public struct StringTestExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StringTestExcelT UnPack() { + var _o = new StringTestExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StringTestExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("StringTest"); + _o.String = new List(); + for (var _j = 0; _j < this.StringLength; ++_j) {_o.String.Add(TableEncryptionService.Convert(this.String(_j), key));} + _o.Sentence1 = TableEncryptionService.Convert(this.Sentence1, key); + _o.Script = TableEncryptionService.Convert(this.Script, key); + } + public static Offset Pack(FlatBufferBuilder builder, StringTestExcelT _o) { + if (_o == null) return default(Offset); + var _String = default(VectorOffset); + if (_o.String != null) { + var __String = new StringOffset[_o.String.Count]; + for (var _j = 0; _j < __String.Length; ++_j) { __String[_j] = builder.CreateString(_o.String[_j]); } + _String = CreateStringVector(builder, __String); + } + var _Sentence1 = _o.Sentence1 == null ? default(StringOffset) : builder.CreateString(_o.Sentence1); + var _Script = _o.Script == null ? default(StringOffset) : builder.CreateString(_o.Script); + return CreateStringTestExcel( + builder, + _String, + _Sentence1, + _Script); + } +} + +public class StringTestExcelT +{ + public List String { get; set; } + public string Sentence1 { get; set; } + public string Script { get; set; } + + public StringTestExcelT() { + this.String = null; + this.Sentence1 = null; + this.Script = null; + } } diff --git a/SCHALE.Common/FlatData/StringTestExcelTable.cs b/SCHALE.Common/FlatData/StringTestExcelTable.cs index 77d9795..5b396a7 100644 --- a/SCHALE.Common/FlatData/StringTestExcelTable.cs +++ b/SCHALE.Common/FlatData/StringTestExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct StringTestExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct StringTestExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public StringTestExcelTableT UnPack() { + var _o = new StringTestExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(StringTestExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("StringTestExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, StringTestExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StringTestExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateStringTestExcelTable( + builder, + _DataList); + } +} + +public class StringTestExcelTableT +{ + public List DataList { get; set; } + + public StringTestExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/SystemMailExcel.cs b/SCHALE.Common/FlatData/SystemMailExcel.cs index e8df2d8..4dda60a 100644 --- a/SCHALE.Common/FlatData/SystemMailExcel.cs +++ b/SCHALE.Common/FlatData/SystemMailExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SystemMailExcel : IFlatbufferObject @@ -58,6 +59,44 @@ public struct SystemMailExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SystemMailExcelT UnPack() { + var _o = new SystemMailExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SystemMailExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("SystemMail"); + _o.MailType = TableEncryptionService.Convert(this.MailType, key); + _o.ExpiredDay = TableEncryptionService.Convert(this.ExpiredDay, key); + _o.Sender = TableEncryptionService.Convert(this.Sender, key); + _o.Comment = TableEncryptionService.Convert(this.Comment, key); + } + public static Offset Pack(FlatBufferBuilder builder, SystemMailExcelT _o) { + if (_o == null) return default(Offset); + var _Sender = _o.Sender == null ? default(StringOffset) : builder.CreateString(_o.Sender); + var _Comment = _o.Comment == null ? default(StringOffset) : builder.CreateString(_o.Comment); + return CreateSystemMailExcel( + builder, + _o.MailType, + _o.ExpiredDay, + _Sender, + _Comment); + } +} + +public class SystemMailExcelT +{ + public SCHALE.Common.FlatData.MailType MailType { get; set; } + public long ExpiredDay { get; set; } + public string Sender { get; set; } + public string Comment { get; set; } + + public SystemMailExcelT() { + this.MailType = SCHALE.Common.FlatData.MailType.System; + this.ExpiredDay = 0; + this.Sender = null; + this.Comment = null; + } } diff --git a/SCHALE.Common/FlatData/SystemMailExcelTable.cs b/SCHALE.Common/FlatData/SystemMailExcelTable.cs index ff6029c..716fd52 100644 --- a/SCHALE.Common/FlatData/SystemMailExcelTable.cs +++ b/SCHALE.Common/FlatData/SystemMailExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct SystemMailExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct SystemMailExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public SystemMailExcelTableT UnPack() { + var _o = new SystemMailExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(SystemMailExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("SystemMailExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, SystemMailExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SystemMailExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateSystemMailExcelTable( + builder, + _DataList); + } +} + +public class SystemMailExcelTableT +{ + public List DataList { get; set; } + + public SystemMailExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs index 9a109c0..10116f8 100644 --- a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs +++ b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticArenaSimulatorSettingExcel : IFlatbufferObject @@ -90,6 +91,86 @@ public struct TacticArenaSimulatorSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticArenaSimulatorSettingExcelT UnPack() { + var _o = new TacticArenaSimulatorSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticArenaSimulatorSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticArenaSimulatorSetting"); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.Repeat = TableEncryptionService.Convert(this.Repeat, key); + _o.AttackerFrom = TableEncryptionService.Convert(this.AttackerFrom, key); + _o.AttackerUserArenaGroup = TableEncryptionService.Convert(this.AttackerUserArenaGroup, key); + _o.AttackerUserArenaRank = TableEncryptionService.Convert(this.AttackerUserArenaRank, key); + _o.AttackerPresetGroupId = TableEncryptionService.Convert(this.AttackerPresetGroupId, key); + _o.AttackerStrikerNum = TableEncryptionService.Convert(this.AttackerStrikerNum, key); + _o.AttackerSpecialNum = TableEncryptionService.Convert(this.AttackerSpecialNum, key); + _o.DefenderFrom = TableEncryptionService.Convert(this.DefenderFrom, key); + _o.DefenderUserArenaGroup = TableEncryptionService.Convert(this.DefenderUserArenaGroup, key); + _o.DefenderUserArenaRank = TableEncryptionService.Convert(this.DefenderUserArenaRank, key); + _o.DefenderPresetGroupId = TableEncryptionService.Convert(this.DefenderPresetGroupId, key); + _o.DefenderStrikerNum = TableEncryptionService.Convert(this.DefenderStrikerNum, key); + _o.DefenderSpecialNum = TableEncryptionService.Convert(this.DefenderSpecialNum, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticArenaSimulatorSettingExcelT _o) { + if (_o == null) return default(Offset); + return CreateTacticArenaSimulatorSettingExcel( + builder, + _o.Order, + _o.Repeat, + _o.AttackerFrom, + _o.AttackerUserArenaGroup, + _o.AttackerUserArenaRank, + _o.AttackerPresetGroupId, + _o.AttackerStrikerNum, + _o.AttackerSpecialNum, + _o.DefenderFrom, + _o.DefenderUserArenaGroup, + _o.DefenderUserArenaRank, + _o.DefenderPresetGroupId, + _o.DefenderStrikerNum, + _o.DefenderSpecialNum, + _o.GroundId); + } +} + +public class TacticArenaSimulatorSettingExcelT +{ + public long Order { get; set; } + public long Repeat { get; set; } + public SCHALE.Common.FlatData.ArenaSimulatorServer AttackerFrom { get; set; } + public long AttackerUserArenaGroup { get; set; } + public long AttackerUserArenaRank { get; set; } + public long AttackerPresetGroupId { get; set; } + public long AttackerStrikerNum { get; set; } + public long AttackerSpecialNum { get; set; } + public SCHALE.Common.FlatData.ArenaSimulatorServer DefenderFrom { get; set; } + public long DefenderUserArenaGroup { get; set; } + public long DefenderUserArenaRank { get; set; } + public long DefenderPresetGroupId { get; set; } + public long DefenderStrikerNum { get; set; } + public long DefenderSpecialNum { get; set; } + public long GroundId { get; set; } + + public TacticArenaSimulatorSettingExcelT() { + this.Order = 0; + this.Repeat = 0; + this.AttackerFrom = SCHALE.Common.FlatData.ArenaSimulatorServer.Preset; + this.AttackerUserArenaGroup = 0; + this.AttackerUserArenaRank = 0; + this.AttackerPresetGroupId = 0; + this.AttackerStrikerNum = 0; + this.AttackerSpecialNum = 0; + this.DefenderFrom = SCHALE.Common.FlatData.ArenaSimulatorServer.Preset; + this.DefenderUserArenaGroup = 0; + this.DefenderUserArenaRank = 0; + this.DefenderPresetGroupId = 0; + this.DefenderStrikerNum = 0; + this.DefenderSpecialNum = 0; + this.GroundId = 0; + } } diff --git a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs index ae668b6..2d80ec8 100644 --- a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticArenaSimulatorSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticArenaSimulatorSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticArenaSimulatorSettingExcelTableT UnPack() { + var _o = new TacticArenaSimulatorSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticArenaSimulatorSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticArenaSimulatorSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticArenaSimulatorSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticArenaSimulatorSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticArenaSimulatorSettingExcelTable( + builder, + _DataList); + } +} + +public class TacticArenaSimulatorSettingExcelTableT +{ + public List DataList { get; set; } + + public TacticArenaSimulatorSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs index 2365a8a..ed947e8 100644 --- a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs +++ b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticDamageSimulatorSettingExcel : IFlatbufferObject @@ -102,6 +103,92 @@ public struct TacticDamageSimulatorSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticDamageSimulatorSettingExcelT UnPack() { + var _o = new TacticDamageSimulatorSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticDamageSimulatorSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticDamageSimulatorSetting"); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.Repeat = TableEncryptionService.Convert(this.Repeat, key); + _o.TestPreset = TableEncryptionService.Convert(this.TestPreset, key); + _o.TestBattleTime = TableEncryptionService.Convert(this.TestBattleTime, key); + _o.StrikerSquard = TableEncryptionService.Convert(this.StrikerSquard, key); + _o.SpecialSquard = TableEncryptionService.Convert(this.SpecialSquard, key); + _o.ReplaceCharacterCostRegen = TableEncryptionService.Convert(this.ReplaceCharacterCostRegen, key); + _o.ReplaceCostRegenValue = TableEncryptionService.Convert(this.ReplaceCostRegenValue, key); + _o.UseAutoSkill = TableEncryptionService.Convert(this.UseAutoSkill, key); + _o.OverrideStreetAdaptation = TableEncryptionService.Convert(this.OverrideStreetAdaptation, key); + _o.OverrideOutdoorAdaptation = TableEncryptionService.Convert(this.OverrideOutdoorAdaptation, key); + _o.OverrideIndoorAdaptation = TableEncryptionService.Convert(this.OverrideIndoorAdaptation, key); + _o.ApplyOverrideAdaptation = TableEncryptionService.Convert(this.ApplyOverrideAdaptation, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.FixedCharacter = new List(); + for (var _j = 0; _j < this.FixedCharacterLength; ++_j) {_o.FixedCharacter.Add(TableEncryptionService.Convert(this.FixedCharacter(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TacticDamageSimulatorSettingExcelT _o) { + if (_o == null) return default(Offset); + var _FixedCharacter = default(VectorOffset); + if (_o.FixedCharacter != null) { + var __FixedCharacter = _o.FixedCharacter.ToArray(); + _FixedCharacter = CreateFixedCharacterVector(builder, __FixedCharacter); + } + return CreateTacticDamageSimulatorSettingExcel( + builder, + _o.Order, + _o.Repeat, + _o.TestPreset, + _o.TestBattleTime, + _o.StrikerSquard, + _o.SpecialSquard, + _o.ReplaceCharacterCostRegen, + _o.ReplaceCostRegenValue, + _o.UseAutoSkill, + _o.OverrideStreetAdaptation, + _o.OverrideOutdoorAdaptation, + _o.OverrideIndoorAdaptation, + _o.ApplyOverrideAdaptation, + _o.GroundId, + _FixedCharacter); + } +} + +public class TacticDamageSimulatorSettingExcelT +{ + public int Order { get; set; } + public int Repeat { get; set; } + public long TestPreset { get; set; } + public long TestBattleTime { get; set; } + public long StrikerSquard { get; set; } + public long SpecialSquard { get; set; } + public bool ReplaceCharacterCostRegen { get; set; } + public int ReplaceCostRegenValue { get; set; } + public bool UseAutoSkill { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideStreetAdaptation { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideOutdoorAdaptation { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideIndoorAdaptation { get; set; } + public bool ApplyOverrideAdaptation { get; set; } + public long GroundId { get; set; } + public List FixedCharacter { get; set; } + + public TacticDamageSimulatorSettingExcelT() { + this.Order = 0; + this.Repeat = 0; + this.TestPreset = 0; + this.TestBattleTime = 0; + this.StrikerSquard = 0; + this.SpecialSquard = 0; + this.ReplaceCharacterCostRegen = false; + this.ReplaceCostRegenValue = 0; + this.UseAutoSkill = false; + this.OverrideStreetAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.OverrideOutdoorAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.OverrideIndoorAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.ApplyOverrideAdaptation = false; + this.GroundId = 0; + this.FixedCharacter = null; + } } diff --git a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs index 9117b97..9112932 100644 --- a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticDamageSimulatorSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticDamageSimulatorSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticDamageSimulatorSettingExcelTableT UnPack() { + var _o = new TacticDamageSimulatorSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticDamageSimulatorSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticDamageSimulatorSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticDamageSimulatorSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticDamageSimulatorSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticDamageSimulatorSettingExcelTable( + builder, + _DataList); + } +} + +public class TacticDamageSimulatorSettingExcelTableT +{ + public List DataList { get; set; } + + public TacticDamageSimulatorSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs index 34b5963..19f5fc2 100644 --- a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs +++ b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticEntityEffectFilterExcel : IFlatbufferObject @@ -48,6 +49,39 @@ public struct TacticEntityEffectFilterExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticEntityEffectFilterExcelT UnPack() { + var _o = new TacticEntityEffectFilterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticEntityEffectFilterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticEntityEffectFilter"); + _o.TargetEffectName = TableEncryptionService.Convert(this.TargetEffectName, key); + _o.ShowEffectToVehicle = TableEncryptionService.Convert(this.ShowEffectToVehicle, key); + _o.ShowEffectToBoss = TableEncryptionService.Convert(this.ShowEffectToBoss, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticEntityEffectFilterExcelT _o) { + if (_o == null) return default(Offset); + var _TargetEffectName = _o.TargetEffectName == null ? default(StringOffset) : builder.CreateString(_o.TargetEffectName); + return CreateTacticEntityEffectFilterExcel( + builder, + _TargetEffectName, + _o.ShowEffectToVehicle, + _o.ShowEffectToBoss); + } +} + +public class TacticEntityEffectFilterExcelT +{ + public string TargetEffectName { get; set; } + public bool ShowEffectToVehicle { get; set; } + public bool ShowEffectToBoss { get; set; } + + public TacticEntityEffectFilterExcelT() { + this.TargetEffectName = null; + this.ShowEffectToVehicle = false; + this.ShowEffectToBoss = false; + } } diff --git a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs index ed7b4b2..f85da9a 100644 --- a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticEntityEffectFilterExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticEntityEffectFilterExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticEntityEffectFilterExcelTableT UnPack() { + var _o = new TacticEntityEffectFilterExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticEntityEffectFilterExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticEntityEffectFilterExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticEntityEffectFilterExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticEntityEffectFilterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticEntityEffectFilterExcelTable( + builder, + _DataList); + } +} + +public class TacticEntityEffectFilterExcelTableT +{ + public List DataList { get; set; } + + public TacticEntityEffectFilterExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs index d3e132e..ef3b469 100644 --- a/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs +++ b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticSimulatorSettingExcel : IFlatbufferObject @@ -46,6 +47,42 @@ public struct TacticSimulatorSettingExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticSimulatorSettingExcelT UnPack() { + var _o = new TacticSimulatorSettingExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticSimulatorSettingExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticSimulatorSetting"); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.GetExp = TableEncryptionService.Convert(this.GetExp, key); + _o.GetStarGrade = TableEncryptionService.Convert(this.GetStarGrade, key); + _o.Equipment = TableEncryptionService.Convert(this.Equipment, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticSimulatorSettingExcelT _o) { + if (_o == null) return default(Offset); + return CreateTacticSimulatorSettingExcel( + builder, + _o.GroundId, + _o.GetExp, + _o.GetStarGrade, + _o.Equipment); + } +} + +public class TacticSimulatorSettingExcelT +{ + public long GroundId { get; set; } + public long GetExp { get; set; } + public long GetStarGrade { get; set; } + public long Equipment { get; set; } + + public TacticSimulatorSettingExcelT() { + this.GroundId = 0; + this.GetExp = 0; + this.GetStarGrade = 0; + this.Equipment = 0; + } } diff --git a/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs index c74db44..c116bf9 100644 --- a/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticSimulatorSettingExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticSimulatorSettingExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticSimulatorSettingExcelTableT UnPack() { + var _o = new TacticSimulatorSettingExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticSimulatorSettingExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticSimulatorSettingExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticSimulatorSettingExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticSimulatorSettingExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticSimulatorSettingExcelTable( + builder, + _DataList); + } +} + +public class TacticSimulatorSettingExcelTableT +{ + public List DataList { get; set; } + + public TacticSimulatorSettingExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticSkipExcel.cs b/SCHALE.Common/FlatData/TacticSkipExcel.cs index 20ec0ef..02189d9 100644 --- a/SCHALE.Common/FlatData/TacticSkipExcel.cs +++ b/SCHALE.Common/FlatData/TacticSkipExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticSkipExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct TacticSkipExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticSkipExcelT UnPack() { + var _o = new TacticSkipExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticSkipExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticSkip"); + _o.LevelDiff = TableEncryptionService.Convert(this.LevelDiff, key); + _o.HPResult = TableEncryptionService.Convert(this.HPResult, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticSkipExcelT _o) { + if (_o == null) return default(Offset); + return CreateTacticSkipExcel( + builder, + _o.LevelDiff, + _o.HPResult); + } +} + +public class TacticSkipExcelT +{ + public int LevelDiff { get; set; } + public long HPResult { get; set; } + + public TacticSkipExcelT() { + this.LevelDiff = 0; + this.HPResult = 0; + } } diff --git a/SCHALE.Common/FlatData/TacticSkipExcelTable.cs b/SCHALE.Common/FlatData/TacticSkipExcelTable.cs index 1c59335..980a1fc 100644 --- a/SCHALE.Common/FlatData/TacticSkipExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticSkipExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticSkipExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticSkipExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticSkipExcelTableT UnPack() { + var _o = new TacticSkipExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticSkipExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticSkipExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticSkipExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticSkipExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticSkipExcelTable( + builder, + _DataList); + } +} + +public class TacticSkipExcelTableT +{ + public List DataList { get; set; } + + public TacticSkipExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs index 89c0f02..aeb0053 100644 --- a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs +++ b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticTimeAttackSimulatorConfigExcel : IFlatbufferObject @@ -54,6 +55,50 @@ public struct TacticTimeAttackSimulatorConfigExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticTimeAttackSimulatorConfigExcelT UnPack() { + var _o = new TacticTimeAttackSimulatorConfigExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticTimeAttackSimulatorConfigExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticTimeAttackSimulatorConfig"); + _o.Order = TableEncryptionService.Convert(this.Order, key); + _o.Repeat = TableEncryptionService.Convert(this.Repeat, key); + _o.PresetGroupId = TableEncryptionService.Convert(this.PresetGroupId, key); + _o.AttackStrikerNum = TableEncryptionService.Convert(this.AttackStrikerNum, key); + _o.AttackSpecialNum = TableEncryptionService.Convert(this.AttackSpecialNum, key); + _o.GeasId = TableEncryptionService.Convert(this.GeasId, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticTimeAttackSimulatorConfigExcelT _o) { + if (_o == null) return default(Offset); + return CreateTacticTimeAttackSimulatorConfigExcel( + builder, + _o.Order, + _o.Repeat, + _o.PresetGroupId, + _o.AttackStrikerNum, + _o.AttackSpecialNum, + _o.GeasId); + } +} + +public class TacticTimeAttackSimulatorConfigExcelT +{ + public long Order { get; set; } + public long Repeat { get; set; } + public long PresetGroupId { get; set; } + public long AttackStrikerNum { get; set; } + public long AttackSpecialNum { get; set; } + public long GeasId { get; set; } + + public TacticTimeAttackSimulatorConfigExcelT() { + this.Order = 0; + this.Repeat = 0; + this.PresetGroupId = 0; + this.AttackStrikerNum = 0; + this.AttackSpecialNum = 0; + this.GeasId = 0; + } } diff --git a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs index 1567cf0..b93b57c 100644 --- a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticTimeAttackSimulatorConfigExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticTimeAttackSimulatorConfigExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticTimeAttackSimulatorConfigExcelTableT UnPack() { + var _o = new TacticTimeAttackSimulatorConfigExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticTimeAttackSimulatorConfigExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticTimeAttackSimulatorConfigExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticTimeAttackSimulatorConfigExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticTimeAttackSimulatorConfigExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticTimeAttackSimulatorConfigExcelTable( + builder, + _DataList); + } +} + +public class TacticTimeAttackSimulatorConfigExcelTableT +{ + public List DataList { get; set; } + + public TacticTimeAttackSimulatorConfigExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs b/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs index 075c35c..743a30d 100644 --- a/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs +++ b/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticalSupportSystemExcel : IFlatbufferObject @@ -180,6 +181,141 @@ public struct TacticalSupportSystemExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticalSupportSystemExcelT UnPack() { + var _o = new TacticalSupportSystemExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticalSupportSystemExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticalSupportSystem"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.SummonedTime = TableEncryptionService.Convert(this.SummonedTime, key); + _o.DefaultPersonalityId = TableEncryptionService.Convert(this.DefaultPersonalityId, key); + _o.CanTargeting = TableEncryptionService.Convert(this.CanTargeting, key); + _o.CanCover = TableEncryptionService.Convert(this.CanCover, key); + _o.ObstacleUniqueName = TableEncryptionService.Convert(this.ObstacleUniqueName, key); + _o.ObstacleCoverRange = TableEncryptionService.Convert(this.ObstacleCoverRange, key); + _o.SummonSkilllGroupId = TableEncryptionService.Convert(this.SummonSkilllGroupId, key); + _o.CrashObstacleOBBWidth = TableEncryptionService.Convert(this.CrashObstacleOBBWidth, key); + _o.CrashObstacleOBBHeight = TableEncryptionService.Convert(this.CrashObstacleOBBHeight, key); + _o.IsTSSBlockedNodeCheck = TableEncryptionService.Convert(this.IsTSSBlockedNodeCheck, key); + _o.NumberOfUses = TableEncryptionService.Convert(this.NumberOfUses, key); + _o.InventoryOffsetX = TableEncryptionService.Convert(this.InventoryOffsetX, key); + _o.InventoryOffsetY = TableEncryptionService.Convert(this.InventoryOffsetY, key); + _o.InventoryOffsetZ = TableEncryptionService.Convert(this.InventoryOffsetZ, key); + _o.InteractionChar = TableEncryptionService.Convert(this.InteractionChar, key); + _o.CharacterInteractionStartDelay = TableEncryptionService.Convert(this.CharacterInteractionStartDelay, key); + _o.GetOnStartEffectPath = TableEncryptionService.Convert(this.GetOnStartEffectPath, key); + _o.GetOnEndEffectPath = TableEncryptionService.Convert(this.GetOnEndEffectPath, key); + _o.SummonerCharacterId = TableEncryptionService.Convert(this.SummonerCharacterId, key); + _o.InteractionFrame = TableEncryptionService.Convert(this.InteractionFrame, key); + _o.TSAInteractionAddDuration = TableEncryptionService.Convert(this.TSAInteractionAddDuration, key); + _o.InteractionStudentExSkillGroupId = TableEncryptionService.Convert(this.InteractionStudentExSkillGroupId, key); + _o.InteractionSkillCardTexture = TableEncryptionService.Convert(this.InteractionSkillCardTexture, key); + _o.InteractionSkillSpine = TableEncryptionService.Convert(this.InteractionSkillSpine, key); + _o.RetreatFrame = TableEncryptionService.Convert(this.RetreatFrame, key); + _o.DestroyFrame = TableEncryptionService.Convert(this.DestroyFrame, key); + } + public static Offset Pack(FlatBufferBuilder builder, TacticalSupportSystemExcelT _o) { + if (_o == null) return default(Offset); + var _ObstacleUniqueName = _o.ObstacleUniqueName == null ? default(StringOffset) : builder.CreateString(_o.ObstacleUniqueName); + var _SummonSkilllGroupId = _o.SummonSkilllGroupId == null ? default(StringOffset) : builder.CreateString(_o.SummonSkilllGroupId); + var _GetOnStartEffectPath = _o.GetOnStartEffectPath == null ? default(StringOffset) : builder.CreateString(_o.GetOnStartEffectPath); + var _GetOnEndEffectPath = _o.GetOnEndEffectPath == null ? default(StringOffset) : builder.CreateString(_o.GetOnEndEffectPath); + var _InteractionStudentExSkillGroupId = _o.InteractionStudentExSkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.InteractionStudentExSkillGroupId); + var _InteractionSkillCardTexture = _o.InteractionSkillCardTexture == null ? default(StringOffset) : builder.CreateString(_o.InteractionSkillCardTexture); + var _InteractionSkillSpine = _o.InteractionSkillSpine == null ? default(StringOffset) : builder.CreateString(_o.InteractionSkillSpine); + return CreateTacticalSupportSystemExcel( + builder, + _o.Id, + _o.SummonedTime, + _o.DefaultPersonalityId, + _o.CanTargeting, + _o.CanCover, + _ObstacleUniqueName, + _o.ObstacleCoverRange, + _SummonSkilllGroupId, + _o.CrashObstacleOBBWidth, + _o.CrashObstacleOBBHeight, + _o.IsTSSBlockedNodeCheck, + _o.NumberOfUses, + _o.InventoryOffsetX, + _o.InventoryOffsetY, + _o.InventoryOffsetZ, + _o.InteractionChar, + _o.CharacterInteractionStartDelay, + _GetOnStartEffectPath, + _GetOnEndEffectPath, + _o.SummonerCharacterId, + _o.InteractionFrame, + _o.TSAInteractionAddDuration, + _InteractionStudentExSkillGroupId, + _InteractionSkillCardTexture, + _InteractionSkillSpine, + _o.RetreatFrame, + _o.DestroyFrame); + } +} + +public class TacticalSupportSystemExcelT +{ + public long Id { get; set; } + public long SummonedTime { get; set; } + public long DefaultPersonalityId { get; set; } + public bool CanTargeting { get; set; } + public bool CanCover { get; set; } + public string ObstacleUniqueName { get; set; } + public long ObstacleCoverRange { get; set; } + public string SummonSkilllGroupId { get; set; } + public long CrashObstacleOBBWidth { get; set; } + public long CrashObstacleOBBHeight { get; set; } + public bool IsTSSBlockedNodeCheck { get; set; } + public int NumberOfUses { get; set; } + public float InventoryOffsetX { get; set; } + public float InventoryOffsetY { get; set; } + public float InventoryOffsetZ { get; set; } + public long InteractionChar { get; set; } + public long CharacterInteractionStartDelay { get; set; } + public string GetOnStartEffectPath { get; set; } + public string GetOnEndEffectPath { get; set; } + public long SummonerCharacterId { get; set; } + public int InteractionFrame { get; set; } + public long TSAInteractionAddDuration { get; set; } + public string InteractionStudentExSkillGroupId { get; set; } + public string InteractionSkillCardTexture { get; set; } + public string InteractionSkillSpine { get; set; } + public int RetreatFrame { get; set; } + public int DestroyFrame { get; set; } + + public TacticalSupportSystemExcelT() { + this.Id = 0; + this.SummonedTime = 0; + this.DefaultPersonalityId = 0; + this.CanTargeting = false; + this.CanCover = false; + this.ObstacleUniqueName = null; + this.ObstacleCoverRange = 0; + this.SummonSkilllGroupId = null; + this.CrashObstacleOBBWidth = 0; + this.CrashObstacleOBBHeight = 0; + this.IsTSSBlockedNodeCheck = false; + this.NumberOfUses = 0; + this.InventoryOffsetX = 0.0f; + this.InventoryOffsetY = 0.0f; + this.InventoryOffsetZ = 0.0f; + this.InteractionChar = 0; + this.CharacterInteractionStartDelay = 0; + this.GetOnStartEffectPath = null; + this.GetOnEndEffectPath = null; + this.SummonerCharacterId = 0; + this.InteractionFrame = 0; + this.TSAInteractionAddDuration = 0; + this.InteractionStudentExSkillGroupId = null; + this.InteractionSkillCardTexture = null; + this.InteractionSkillSpine = null; + this.RetreatFrame = 0; + this.DestroyFrame = 0; + } } diff --git a/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs b/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs index 470b4cc..aa6ee50 100644 --- a/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs +++ b/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TacticalSupportSystemExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TacticalSupportSystemExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TacticalSupportSystemExcelTableT UnPack() { + var _o = new TacticalSupportSystemExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TacticalSupportSystemExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TacticalSupportSystemExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TacticalSupportSystemExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TacticalSupportSystemExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTacticalSupportSystemExcelTable( + builder, + _DataList); + } +} + +public class TacticalSupportSystemExcelTableT +{ + public List DataList { get; set; } + + public TacticalSupportSystemExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TagSettingExcel.cs b/SCHALE.Common/FlatData/TagSettingExcel.cs deleted file mode 100644 index 7ef30a6..0000000 --- a/SCHALE.Common/FlatData/TagSettingExcel.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct TagSettingExcel : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static TagSettingExcel GetRootAsTagSettingExcel(ByteBuffer _bb) { return GetRootAsTagSettingExcel(_bb, new TagSettingExcel()); } - public static TagSettingExcel GetRootAsTagSettingExcel(ByteBuffer _bb, TagSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public TagSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.Tag Id { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Tag.A; } } - public bool IsOpen { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - - public static Offset CreateTagSettingExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.Tag Id = SCHALE.Common.FlatData.Tag.A, - bool IsOpen = false, - uint LocalizeEtcId = 0) { - builder.StartTable(3); - TagSettingExcel.AddLocalizeEtcId(builder, LocalizeEtcId); - TagSettingExcel.AddId(builder, Id); - TagSettingExcel.AddIsOpen(builder, IsOpen); - return TagSettingExcel.EndTagSettingExcel(builder); - } - - public static void StartTagSettingExcel(FlatBufferBuilder builder) { builder.StartTable(3); } - public static void AddId(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag id) { builder.AddInt(0, (int)id, 0); } - public static void AddIsOpen(FlatBufferBuilder builder, bool isOpen) { builder.AddBool(1, isOpen, false); } - public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } - public static Offset EndTagSettingExcel(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class TagSettingExcelVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*SCHALE.Common.FlatData.Tag*/, 4, false) - && verifier.VerifyField(tablePos, 6 /*IsOpen*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/TagSettingExcelTable.cs b/SCHALE.Common/FlatData/TagSettingExcelTable.cs deleted file mode 100644 index 8e989cb..0000000 --- a/SCHALE.Common/FlatData/TagSettingExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct TagSettingExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static TagSettingExcelTable GetRootAsTagSettingExcelTable(ByteBuffer _bb) { return GetRootAsTagSettingExcelTable(_bb, new TagSettingExcelTable()); } - public static TagSettingExcelTable GetRootAsTagSettingExcelTable(ByteBuffer _bb, TagSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public TagSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.TagSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TagSettingExcel?)(new SCHALE.Common.FlatData.TagSettingExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateTagSettingExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - TagSettingExcelTable.AddDataList(builder, DataListOffset); - return TagSettingExcelTable.EndTagSettingExcelTable(builder); - } - - public static void StartTagSettingExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndTagSettingExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class TagSettingExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TagSettingExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs index dfc042e..614ae3e 100644 --- a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs +++ b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TerrainAdaptationFactorExcel : IFlatbufferObject @@ -58,6 +59,54 @@ public struct TerrainAdaptationFactorExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TerrainAdaptationFactorExcelT UnPack() { + var _o = new TerrainAdaptationFactorExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TerrainAdaptationFactorExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TerrainAdaptationFactor"); + _o.TerrainAdaptation = TableEncryptionService.Convert(this.TerrainAdaptation, key); + _o.TerrainAdaptationStat = TableEncryptionService.Convert(this.TerrainAdaptationStat, key); + _o.ShotFactor = TableEncryptionService.Convert(this.ShotFactor, key); + _o.BlockFactor = TableEncryptionService.Convert(this.BlockFactor, key); + _o.AccuracyFactor = TableEncryptionService.Convert(this.AccuracyFactor, key); + _o.DodgeFactor = TableEncryptionService.Convert(this.DodgeFactor, key); + _o.AttackPowerFactor = TableEncryptionService.Convert(this.AttackPowerFactor, key); + } + public static Offset Pack(FlatBufferBuilder builder, TerrainAdaptationFactorExcelT _o) { + if (_o == null) return default(Offset); + return CreateTerrainAdaptationFactorExcel( + builder, + _o.TerrainAdaptation, + _o.TerrainAdaptationStat, + _o.ShotFactor, + _o.BlockFactor, + _o.AccuracyFactor, + _o.DodgeFactor, + _o.AttackPowerFactor); + } +} + +public class TerrainAdaptationFactorExcelT +{ + public SCHALE.Common.FlatData.StageTopography TerrainAdaptation { get; set; } + public SCHALE.Common.FlatData.TerrainAdaptationStat TerrainAdaptationStat { get; set; } + public long ShotFactor { get; set; } + public long BlockFactor { get; set; } + public long AccuracyFactor { get; set; } + public long DodgeFactor { get; set; } + public long AttackPowerFactor { get; set; } + + public TerrainAdaptationFactorExcelT() { + this.TerrainAdaptation = SCHALE.Common.FlatData.StageTopography.Street; + this.TerrainAdaptationStat = SCHALE.Common.FlatData.TerrainAdaptationStat.D; + this.ShotFactor = 0; + this.BlockFactor = 0; + this.AccuracyFactor = 0; + this.DodgeFactor = 0; + this.AttackPowerFactor = 0; + } } diff --git a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs index 43a48b1..9e944a1 100644 --- a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs +++ b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TerrainAdaptationFactorExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TerrainAdaptationFactorExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TerrainAdaptationFactorExcelTableT UnPack() { + var _o = new TerrainAdaptationFactorExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TerrainAdaptationFactorExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TerrainAdaptationFactorExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TerrainAdaptationFactorExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TerrainAdaptationFactorExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTerrainAdaptationFactorExcelTable( + builder, + _DataList); + } +} + +public class TerrainAdaptationFactorExcelTableT +{ + public List DataList { get; set; } + + public TerrainAdaptationFactorExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs index 4eead9d..9a3b212 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonExcel : IFlatbufferObject @@ -56,6 +57,47 @@ public struct TimeAttackDungeonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonExcelT UnPack() { + var _o = new TimeAttackDungeonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeon"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TimeAttackDungeonType = TableEncryptionService.Convert(this.TimeAttackDungeonType, key); + _o.LocalizeEtcKey = TableEncryptionService.Convert(this.LocalizeEtcKey, key); + _o.IconPath = TableEncryptionService.Convert(this.IconPath, key); + _o.InformationGroupID = TableEncryptionService.Convert(this.InformationGroupID, key); + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonExcelT _o) { + if (_o == null) return default(Offset); + var _IconPath = _o.IconPath == null ? default(StringOffset) : builder.CreateString(_o.IconPath); + return CreateTimeAttackDungeonExcel( + builder, + _o.Id, + _o.TimeAttackDungeonType, + _o.LocalizeEtcKey, + _IconPath, + _o.InformationGroupID); + } +} + +public class TimeAttackDungeonExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType { get; set; } + public uint LocalizeEtcKey { get; set; } + public string IconPath { get; set; } + public long InformationGroupID { get; set; } + + public TimeAttackDungeonExcelT() { + this.Id = 0; + this.TimeAttackDungeonType = SCHALE.Common.FlatData.TimeAttackDungeonType.None; + this.LocalizeEtcKey = 0; + this.IconPath = null; + this.InformationGroupID = 0; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs index 140311f..6062f83 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TimeAttackDungeonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonExcelTableT UnPack() { + var _o = new TimeAttackDungeonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TimeAttackDungeonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTimeAttackDungeonExcelTable( + builder, + _DataList); + } +} + +public class TimeAttackDungeonExcelTableT +{ + public List DataList { get; set; } + + public TimeAttackDungeonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs index af42113..6bac3fe 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonGeasExcel : IFlatbufferObject @@ -148,6 +149,129 @@ public struct TimeAttackDungeonGeasExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonGeasExcelT UnPack() { + var _o = new TimeAttackDungeonGeasExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonGeasExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonGeas"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.TimeAttackDungeonType = TableEncryptionService.Convert(this.TimeAttackDungeonType, key); + _o.LocalizeEtcKey = TableEncryptionService.Convert(this.LocalizeEtcKey, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.ClearDefaultPoint = TableEncryptionService.Convert(this.ClearDefaultPoint, key); + _o.ClearTimeWeightPoint = TableEncryptionService.Convert(this.ClearTimeWeightPoint, key); + _o.TimeWeightConst = TableEncryptionService.Convert(this.TimeWeightConst, key); + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.AllyPassiveSkillId = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillIdLength; ++_j) {_o.AllyPassiveSkillId.Add(TableEncryptionService.Convert(this.AllyPassiveSkillId(_j), key));} + _o.AllyPassiveSkillLevel = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillLevelLength; ++_j) {_o.AllyPassiveSkillLevel.Add(TableEncryptionService.Convert(this.AllyPassiveSkillLevel(_j), key));} + _o.EnemyPassiveSkillId = new List(); + for (var _j = 0; _j < this.EnemyPassiveSkillIdLength; ++_j) {_o.EnemyPassiveSkillId.Add(TableEncryptionService.Convert(this.EnemyPassiveSkillId(_j), key));} + _o.EnemyPassiveSkillLevel = new List(); + for (var _j = 0; _j < this.EnemyPassiveSkillLevelLength; ++_j) {_o.EnemyPassiveSkillLevel.Add(TableEncryptionService.Convert(this.EnemyPassiveSkillLevel(_j), key));} + _o.GeasIconPath = new List(); + for (var _j = 0; _j < this.GeasIconPathLength; ++_j) {_o.GeasIconPath.Add(TableEncryptionService.Convert(this.GeasIconPath(_j), key));} + _o.GeasLocalizeEtcKey = new List(); + for (var _j = 0; _j < this.GeasLocalizeEtcKeyLength; ++_j) {_o.GeasLocalizeEtcKey.Add(TableEncryptionService.Convert(this.GeasLocalizeEtcKey(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonGeasExcelT _o) { + if (_o == null) return default(Offset); + var _AllyPassiveSkillId = default(VectorOffset); + if (_o.AllyPassiveSkillId != null) { + var __AllyPassiveSkillId = new StringOffset[_o.AllyPassiveSkillId.Count]; + for (var _j = 0; _j < __AllyPassiveSkillId.Length; ++_j) { __AllyPassiveSkillId[_j] = builder.CreateString(_o.AllyPassiveSkillId[_j]); } + _AllyPassiveSkillId = CreateAllyPassiveSkillIdVector(builder, __AllyPassiveSkillId); + } + var _AllyPassiveSkillLevel = default(VectorOffset); + if (_o.AllyPassiveSkillLevel != null) { + var __AllyPassiveSkillLevel = _o.AllyPassiveSkillLevel.ToArray(); + _AllyPassiveSkillLevel = CreateAllyPassiveSkillLevelVector(builder, __AllyPassiveSkillLevel); + } + var _EnemyPassiveSkillId = default(VectorOffset); + if (_o.EnemyPassiveSkillId != null) { + var __EnemyPassiveSkillId = new StringOffset[_o.EnemyPassiveSkillId.Count]; + for (var _j = 0; _j < __EnemyPassiveSkillId.Length; ++_j) { __EnemyPassiveSkillId[_j] = builder.CreateString(_o.EnemyPassiveSkillId[_j]); } + _EnemyPassiveSkillId = CreateEnemyPassiveSkillIdVector(builder, __EnemyPassiveSkillId); + } + var _EnemyPassiveSkillLevel = default(VectorOffset); + if (_o.EnemyPassiveSkillLevel != null) { + var __EnemyPassiveSkillLevel = _o.EnemyPassiveSkillLevel.ToArray(); + _EnemyPassiveSkillLevel = CreateEnemyPassiveSkillLevelVector(builder, __EnemyPassiveSkillLevel); + } + var _GeasIconPath = default(VectorOffset); + if (_o.GeasIconPath != null) { + var __GeasIconPath = new StringOffset[_o.GeasIconPath.Count]; + for (var _j = 0; _j < __GeasIconPath.Length; ++_j) { __GeasIconPath[_j] = builder.CreateString(_o.GeasIconPath[_j]); } + _GeasIconPath = CreateGeasIconPathVector(builder, __GeasIconPath); + } + var _GeasLocalizeEtcKey = default(VectorOffset); + if (_o.GeasLocalizeEtcKey != null) { + var __GeasLocalizeEtcKey = _o.GeasLocalizeEtcKey.ToArray(); + _GeasLocalizeEtcKey = CreateGeasLocalizeEtcKeyVector(builder, __GeasLocalizeEtcKey); + } + return CreateTimeAttackDungeonGeasExcel( + builder, + _o.Id, + _o.TimeAttackDungeonType, + _o.LocalizeEtcKey, + _o.BattleDuration, + _o.ClearDefaultPoint, + _o.ClearTimeWeightPoint, + _o.TimeWeightConst, + _o.Difficulty, + _o.RecommandLevel, + _o.GroundId, + _AllyPassiveSkillId, + _AllyPassiveSkillLevel, + _EnemyPassiveSkillId, + _EnemyPassiveSkillLevel, + _GeasIconPath, + _GeasLocalizeEtcKey); + } +} + +public class TimeAttackDungeonGeasExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType { get; set; } + public uint LocalizeEtcKey { get; set; } + public long BattleDuration { get; set; } + public long ClearDefaultPoint { get; set; } + public long ClearTimeWeightPoint { get; set; } + public long TimeWeightConst { get; set; } + public int Difficulty { get; set; } + public int RecommandLevel { get; set; } + public long GroundId { get; set; } + public List AllyPassiveSkillId { get; set; } + public List AllyPassiveSkillLevel { get; set; } + public List EnemyPassiveSkillId { get; set; } + public List EnemyPassiveSkillLevel { get; set; } + public List GeasIconPath { get; set; } + public List GeasLocalizeEtcKey { get; set; } + + public TimeAttackDungeonGeasExcelT() { + this.Id = 0; + this.TimeAttackDungeonType = SCHALE.Common.FlatData.TimeAttackDungeonType.None; + this.LocalizeEtcKey = 0; + this.BattleDuration = 0; + this.ClearDefaultPoint = 0; + this.ClearTimeWeightPoint = 0; + this.TimeWeightConst = 0; + this.Difficulty = 0; + this.RecommandLevel = 0; + this.GroundId = 0; + this.AllyPassiveSkillId = null; + this.AllyPassiveSkillLevel = null; + this.EnemyPassiveSkillId = null; + this.EnemyPassiveSkillLevel = null; + this.GeasIconPath = null; + this.GeasLocalizeEtcKey = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs index 576adc1..d7b7227 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonGeasExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TimeAttackDungeonGeasExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonGeasExcelTableT UnPack() { + var _o = new TimeAttackDungeonGeasExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonGeasExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonGeasExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonGeasExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TimeAttackDungeonGeasExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTimeAttackDungeonGeasExcelTable( + builder, + _DataList); + } +} + +public class TimeAttackDungeonGeasExcelTableT +{ + public List DataList { get; set; } + + public TimeAttackDungeonGeasExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs index 3d7ee94..d0f041d 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonRewardExcel : IFlatbufferObject @@ -134,6 +135,94 @@ public struct TimeAttackDungeonRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonRewardExcelT UnPack() { + var _o = new TimeAttackDungeonRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonReward"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.RewardMaxPoint = TableEncryptionService.Convert(this.RewardMaxPoint, key); + _o.RewardType = new List(); + for (var _j = 0; _j < this.RewardTypeLength; ++_j) {_o.RewardType.Add(TableEncryptionService.Convert(this.RewardType(_j), key));} + _o.RewardMinPoint = new List(); + for (var _j = 0; _j < this.RewardMinPointLength; ++_j) {_o.RewardMinPoint.Add(TableEncryptionService.Convert(this.RewardMinPoint(_j), key));} + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelDefaultAmount = new List(); + for (var _j = 0; _j < this.RewardParcelDefaultAmountLength; ++_j) {_o.RewardParcelDefaultAmount.Add(TableEncryptionService.Convert(this.RewardParcelDefaultAmount(_j), key));} + _o.RewardParcelMaxAmount = new List(); + for (var _j = 0; _j < this.RewardParcelMaxAmountLength; ++_j) {_o.RewardParcelMaxAmount.Add(TableEncryptionService.Convert(this.RewardParcelMaxAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonRewardExcelT _o) { + if (_o == null) return default(Offset); + var _RewardType = default(VectorOffset); + if (_o.RewardType != null) { + var __RewardType = _o.RewardType.ToArray(); + _RewardType = CreateRewardTypeVector(builder, __RewardType); + } + var _RewardMinPoint = default(VectorOffset); + if (_o.RewardMinPoint != null) { + var __RewardMinPoint = _o.RewardMinPoint.ToArray(); + _RewardMinPoint = CreateRewardMinPointVector(builder, __RewardMinPoint); + } + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelDefaultAmount = default(VectorOffset); + if (_o.RewardParcelDefaultAmount != null) { + var __RewardParcelDefaultAmount = _o.RewardParcelDefaultAmount.ToArray(); + _RewardParcelDefaultAmount = CreateRewardParcelDefaultAmountVector(builder, __RewardParcelDefaultAmount); + } + var _RewardParcelMaxAmount = default(VectorOffset); + if (_o.RewardParcelMaxAmount != null) { + var __RewardParcelMaxAmount = _o.RewardParcelMaxAmount.ToArray(); + _RewardParcelMaxAmount = CreateRewardParcelMaxAmountVector(builder, __RewardParcelMaxAmount); + } + return CreateTimeAttackDungeonRewardExcel( + builder, + _o.Id, + _o.RewardMaxPoint, + _RewardType, + _RewardMinPoint, + _RewardParcelType, + _RewardParcelId, + _RewardParcelDefaultAmount, + _RewardParcelMaxAmount); + } +} + +public class TimeAttackDungeonRewardExcelT +{ + public long Id { get; set; } + public long RewardMaxPoint { get; set; } + public List RewardType { get; set; } + public List RewardMinPoint { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelDefaultAmount { get; set; } + public List RewardParcelMaxAmount { get; set; } + + public TimeAttackDungeonRewardExcelT() { + this.Id = 0; + this.RewardMaxPoint = 0; + this.RewardType = null; + this.RewardMinPoint = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelDefaultAmount = null; + this.RewardParcelMaxAmount = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs index 10c4e29..1f58992 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TimeAttackDungeonRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonRewardExcelTableT UnPack() { + var _o = new TimeAttackDungeonRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TimeAttackDungeonRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTimeAttackDungeonRewardExcelTable( + builder, + _DataList); + } +} + +public class TimeAttackDungeonRewardExcelTableT +{ + public List DataList { get; set; } + + public TimeAttackDungeonRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs index 20614d5..0eb6b03 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonSeasonManageExcel : IFlatbufferObject @@ -86,6 +87,66 @@ public struct TimeAttackDungeonSeasonManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonSeasonManageExcelT UnPack() { + var _o = new TimeAttackDungeonSeasonManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonSeasonManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonSeasonManage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); + _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); + _o.UISlot = TableEncryptionService.Convert(this.UISlot, key); + _o.DungeonId = TableEncryptionService.Convert(this.DungeonId, key); + _o.DifficultyGeas = new List(); + for (var _j = 0; _j < this.DifficultyGeasLength; ++_j) {_o.DifficultyGeas.Add(TableEncryptionService.Convert(this.DifficultyGeas(_j), key));} + _o.TimeAttackDungeonRewardId = TableEncryptionService.Convert(this.TimeAttackDungeonRewardId, key); + _o.RoomLifeTimeInSeconds = TableEncryptionService.Convert(this.RoomLifeTimeInSeconds, key); + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonSeasonManageExcelT _o) { + if (_o == null) return default(Offset); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _DifficultyGeas = default(VectorOffset); + if (_o.DifficultyGeas != null) { + var __DifficultyGeas = _o.DifficultyGeas.ToArray(); + _DifficultyGeas = CreateDifficultyGeasVector(builder, __DifficultyGeas); + } + return CreateTimeAttackDungeonSeasonManageExcel( + builder, + _o.Id, + _StartDate, + _EndDate, + _o.UISlot, + _o.DungeonId, + _DifficultyGeas, + _o.TimeAttackDungeonRewardId, + _o.RoomLifeTimeInSeconds); + } +} + +public class TimeAttackDungeonSeasonManageExcelT +{ + public long Id { get; set; } + public string StartDate { get; set; } + public string EndDate { get; set; } + public long UISlot { get; set; } + public long DungeonId { get; set; } + public List DifficultyGeas { get; set; } + public long TimeAttackDungeonRewardId { get; set; } + public long RoomLifeTimeInSeconds { get; set; } + + public TimeAttackDungeonSeasonManageExcelT() { + this.Id = 0; + this.StartDate = null; + this.EndDate = null; + this.UISlot = 0; + this.DungeonId = 0; + this.DifficultyGeas = null; + this.TimeAttackDungeonRewardId = 0; + this.RoomLifeTimeInSeconds = 0; + } } diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs index 9caa0e6..fe780a1 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TimeAttackDungeonSeasonManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TimeAttackDungeonSeasonManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TimeAttackDungeonSeasonManageExcelTableT UnPack() { + var _o = new TimeAttackDungeonSeasonManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TimeAttackDungeonSeasonManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TimeAttackDungeonSeasonManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TimeAttackDungeonSeasonManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TimeAttackDungeonSeasonManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTimeAttackDungeonSeasonManageExcelTable( + builder, + _DataList); + } +} + +public class TimeAttackDungeonSeasonManageExcelTableT +{ + public List DataList { get; set; } + + public TimeAttackDungeonSeasonManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/ToastExcel.cs b/SCHALE.Common/FlatData/ToastExcel.cs index dbccff5..dc340cc 100644 --- a/SCHALE.Common/FlatData/ToastExcel.cs +++ b/SCHALE.Common/FlatData/ToastExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct ToastExcel : IFlatbufferObject @@ -50,6 +51,46 @@ public struct ToastExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public ToastExcelT UnPack() { + var _o = new ToastExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(ToastExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Toast"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.ToastType = TableEncryptionService.Convert(this.ToastType, key); + _o.MissionId = TableEncryptionService.Convert(this.MissionId, key); + _o.TextId = TableEncryptionService.Convert(this.TextId, key); + _o.LifeTime = TableEncryptionService.Convert(this.LifeTime, key); + } + public static Offset Pack(FlatBufferBuilder builder, ToastExcelT _o) { + if (_o == null) return default(Offset); + return CreateToastExcel( + builder, + _o.Id, + _o.ToastType, + _o.MissionId, + _o.TextId, + _o.LifeTime); + } +} + +public class ToastExcelT +{ + public uint Id { get; set; } + public SCHALE.Common.FlatData.ToastType ToastType { get; set; } + public uint MissionId { get; set; } + public uint TextId { get; set; } + public long LifeTime { get; set; } + + public ToastExcelT() { + this.Id = 0; + this.ToastType = SCHALE.Common.FlatData.ToastType.None; + this.MissionId = 0; + this.TextId = 0; + this.LifeTime = 0; + } } diff --git a/SCHALE.Common/FlatData/ToastExcelTable.cs b/SCHALE.Common/FlatData/ToastExcelTable.cs deleted file mode 100644 index ca3e4bb..0000000 --- a/SCHALE.Common/FlatData/ToastExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct ToastExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ToastExcelTable GetRootAsToastExcelTable(ByteBuffer _bb) { return GetRootAsToastExcelTable(_bb, new ToastExcelTable()); } - public static ToastExcelTable GetRootAsToastExcelTable(ByteBuffer _bb, ToastExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ToastExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ToastExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ToastExcel?)(new SCHALE.Common.FlatData.ToastExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateToastExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ToastExcelTable.AddDataList(builder, DataListOffset); - return ToastExcelTable.EndToastExcelTable(builder); - } - - public static void StartToastExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndToastExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class ToastExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ToastExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs b/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs index 3c8b04f..a23cd59 100644 --- a/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs +++ b/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TranscendenceRecipeExcel : IFlatbufferObject @@ -100,6 +101,73 @@ public struct TranscendenceRecipeExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TranscendenceRecipeExcelT UnPack() { + var _o = new TranscendenceRecipeExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TranscendenceRecipeExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TranscendenceRecipe"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.CostCurrencyType = TableEncryptionService.Convert(this.CostCurrencyType, key); + _o.CostCurrencyAmount = TableEncryptionService.Convert(this.CostCurrencyAmount, key); + _o.ParcelType_ = new List(); + for (var _j = 0; _j < this.ParcelType_Length; ++_j) {_o.ParcelType_.Add(TableEncryptionService.Convert(this.ParcelType_(_j), key));} + _o.ParcelId = new List(); + for (var _j = 0; _j < this.ParcelIdLength; ++_j) {_o.ParcelId.Add(TableEncryptionService.Convert(this.ParcelId(_j), key));} + _o.ParcelAmount = new List(); + for (var _j = 0; _j < this.ParcelAmountLength; ++_j) {_o.ParcelAmount.Add(TableEncryptionService.Convert(this.ParcelAmount(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TranscendenceRecipeExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _ParcelType_ = default(VectorOffset); + if (_o.ParcelType_ != null) { + var __ParcelType_ = _o.ParcelType_.ToArray(); + _ParcelType_ = CreateParcelType_Vector(builder, __ParcelType_); + } + var _ParcelId = default(VectorOffset); + if (_o.ParcelId != null) { + var __ParcelId = _o.ParcelId.ToArray(); + _ParcelId = CreateParcelIdVector(builder, __ParcelId); + } + var _ParcelAmount = default(VectorOffset); + if (_o.ParcelAmount != null) { + var __ParcelAmount = _o.ParcelAmount.ToArray(); + _ParcelAmount = CreateParcelAmountVector(builder, __ParcelAmount); + } + return CreateTranscendenceRecipeExcel( + builder, + _o.Id, + _DevName, + _o.CostCurrencyType, + _o.CostCurrencyAmount, + _ParcelType_, + _ParcelId, + _ParcelAmount); + } +} + +public class TranscendenceRecipeExcelT +{ + public long Id { get; set; } + public string DevName { get; set; } + public SCHALE.Common.FlatData.CurrencyTypes CostCurrencyType { get; set; } + public long CostCurrencyAmount { get; set; } + public List ParcelType_ { get; set; } + public List ParcelId { get; set; } + public List ParcelAmount { get; set; } + + public TranscendenceRecipeExcelT() { + this.Id = 0; + this.DevName = null; + this.CostCurrencyType = SCHALE.Common.FlatData.CurrencyTypes.Invalid; + this.CostCurrencyAmount = 0; + this.ParcelType_ = null; + this.ParcelId = null; + this.ParcelAmount = null; + } } diff --git a/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs b/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs index f50e8ce..07e1ea4 100644 --- a/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs +++ b/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TranscendenceRecipeExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TranscendenceRecipeExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TranscendenceRecipeExcelTableT UnPack() { + var _o = new TranscendenceRecipeExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TranscendenceRecipeExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TranscendenceRecipeExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TranscendenceRecipeExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TranscendenceRecipeExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTranscendenceRecipeExcelTable( + builder, + _DataList); + } +} + +public class TranscendenceRecipeExcelTableT +{ + public List DataList { get; set; } + + public TranscendenceRecipeExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TrophyCollectionExcel.cs b/SCHALE.Common/FlatData/TrophyCollectionExcel.cs index 61e77a7..ed4d210 100644 --- a/SCHALE.Common/FlatData/TrophyCollectionExcel.cs +++ b/SCHALE.Common/FlatData/TrophyCollectionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TrophyCollectionExcel : IFlatbufferObject @@ -54,6 +55,44 @@ public struct TrophyCollectionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TrophyCollectionExcelT UnPack() { + var _o = new TrophyCollectionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TrophyCollectionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TrophyCollection"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.LocalizeCodeId = TableEncryptionService.Convert(this.LocalizeCodeId, key); + _o.FurnitureId = new List(); + for (var _j = 0; _j < this.FurnitureIdLength; ++_j) {_o.FurnitureId.Add(TableEncryptionService.Convert(this.FurnitureId(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TrophyCollectionExcelT _o) { + if (_o == null) return default(Offset); + var _FurnitureId = default(VectorOffset); + if (_o.FurnitureId != null) { + var __FurnitureId = _o.FurnitureId.ToArray(); + _FurnitureId = CreateFurnitureIdVector(builder, __FurnitureId); + } + return CreateTrophyCollectionExcel( + builder, + _o.GroupId, + _o.LocalizeCodeId, + _FurnitureId); + } +} + +public class TrophyCollectionExcelT +{ + public long GroupId { get; set; } + public uint LocalizeCodeId { get; set; } + public List FurnitureId { get; set; } + + public TrophyCollectionExcelT() { + this.GroupId = 0; + this.LocalizeCodeId = 0; + this.FurnitureId = null; + } } diff --git a/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs b/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs index 6f15438..c6c54ed 100644 --- a/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs +++ b/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TrophyCollectionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct TrophyCollectionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TrophyCollectionExcelTableT UnPack() { + var _o = new TrophyCollectionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TrophyCollectionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("TrophyCollectionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, TrophyCollectionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.TrophyCollectionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateTrophyCollectionExcelTable( + builder, + _DataList); + } +} + +public class TrophyCollectionExcelTableT +{ + public List DataList { get; set; } + + public TrophyCollectionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs b/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs index 9c0faf5..35cd038 100644 --- a/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs +++ b/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TutorialCharacterDialogExcel : IFlatbufferObject @@ -68,6 +69,49 @@ public struct TutorialCharacterDialogExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TutorialCharacterDialogExcelT UnPack() { + var _o = new TutorialCharacterDialogExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TutorialCharacterDialogExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TutorialCharacterDialog"); + _o.TalkId = TableEncryptionService.Convert(this.TalkId, key); + _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); + _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); + _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); + _o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key); + } + public static Offset Pack(FlatBufferBuilder builder, TutorialCharacterDialogExcelT _o) { + if (_o == null) return default(Offset); + 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); + return CreateTutorialCharacterDialogExcel( + builder, + _o.TalkId, + _AnimationName, + _LocalizeKR, + _LocalizeJP, + _o.VoiceId); + } +} + +public class TutorialCharacterDialogExcelT +{ + public long TalkId { get; set; } + public string AnimationName { get; set; } + public string LocalizeKR { get; set; } + public string LocalizeJP { get; set; } + public uint VoiceId { get; set; } + + public TutorialCharacterDialogExcelT() { + this.TalkId = 0; + this.AnimationName = null; + this.LocalizeKR = null; + this.LocalizeJP = null; + this.VoiceId = 0; + } } diff --git a/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs b/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs deleted file mode 100644 index 181d86a..0000000 --- a/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct TutorialCharacterDialogExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static TutorialCharacterDialogExcelTable GetRootAsTutorialCharacterDialogExcelTable(ByteBuffer _bb) { return GetRootAsTutorialCharacterDialogExcelTable(_bb, new TutorialCharacterDialogExcelTable()); } - public static TutorialCharacterDialogExcelTable GetRootAsTutorialCharacterDialogExcelTable(ByteBuffer _bb, TutorialCharacterDialogExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public TutorialCharacterDialogExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.TutorialCharacterDialogExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TutorialCharacterDialogExcel?)(new SCHALE.Common.FlatData.TutorialCharacterDialogExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateTutorialCharacterDialogExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - TutorialCharacterDialogExcelTable.AddDataList(builder, DataListOffset); - return TutorialCharacterDialogExcelTable.EndTutorialCharacterDialogExcelTable(builder); - } - - public static void StartTutorialCharacterDialogExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndTutorialCharacterDialogExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class TutorialCharacterDialogExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TutorialCharacterDialogExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/TutorialExcel.cs b/SCHALE.Common/FlatData/TutorialExcel.cs index 8817b50..db948d6 100644 --- a/SCHALE.Common/FlatData/TutorialExcel.cs +++ b/SCHALE.Common/FlatData/TutorialExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TutorialExcel : IFlatbufferObject @@ -76,6 +77,69 @@ public struct TutorialExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TutorialExcelT UnPack() { + var _o = new TutorialExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TutorialExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Tutorial"); + _o.ID = TableEncryptionService.Convert(this.ID, key); + _o.CompletionReportEventName = TableEncryptionService.Convert(this.CompletionReportEventName, key); + _o.CompulsoryTutorial = TableEncryptionService.Convert(this.CompulsoryTutorial, key); + _o.DescriptionTutorial = TableEncryptionService.Convert(this.DescriptionTutorial, key); + _o.TutorialStageId = TableEncryptionService.Convert(this.TutorialStageId, key); + _o.UIName = new List(); + for (var _j = 0; _j < this.UINameLength; ++_j) {_o.UIName.Add(TableEncryptionService.Convert(this.UIName(_j), key));} + _o.TutorialParentName = new List(); + for (var _j = 0; _j < this.TutorialParentNameLength; ++_j) {_o.TutorialParentName.Add(TableEncryptionService.Convert(this.TutorialParentName(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, TutorialExcelT _o) { + if (_o == null) return default(Offset); + var _CompletionReportEventName = _o.CompletionReportEventName == null ? default(StringOffset) : builder.CreateString(_o.CompletionReportEventName); + var _UIName = default(VectorOffset); + if (_o.UIName != null) { + var __UIName = new StringOffset[_o.UIName.Count]; + for (var _j = 0; _j < __UIName.Length; ++_j) { __UIName[_j] = builder.CreateString(_o.UIName[_j]); } + _UIName = CreateUINameVector(builder, __UIName); + } + var _TutorialParentName = default(VectorOffset); + if (_o.TutorialParentName != null) { + var __TutorialParentName = new StringOffset[_o.TutorialParentName.Count]; + for (var _j = 0; _j < __TutorialParentName.Length; ++_j) { __TutorialParentName[_j] = builder.CreateString(_o.TutorialParentName[_j]); } + _TutorialParentName = CreateTutorialParentNameVector(builder, __TutorialParentName); + } + return CreateTutorialExcel( + builder, + _o.ID, + _CompletionReportEventName, + _o.CompulsoryTutorial, + _o.DescriptionTutorial, + _o.TutorialStageId, + _UIName, + _TutorialParentName); + } +} + +public class TutorialExcelT +{ + public long ID { get; set; } + public string CompletionReportEventName { get; set; } + public bool CompulsoryTutorial { get; set; } + public bool DescriptionTutorial { get; set; } + public long TutorialStageId { get; set; } + public List UIName { get; set; } + public List TutorialParentName { get; set; } + + public TutorialExcelT() { + this.ID = 0; + this.CompletionReportEventName = null; + this.CompulsoryTutorial = false; + this.DescriptionTutorial = false; + this.TutorialStageId = 0; + this.UIName = null; + this.TutorialParentName = null; + } } diff --git a/SCHALE.Common/FlatData/TutorialExcelTable.cs b/SCHALE.Common/FlatData/TutorialExcelTable.cs deleted file mode 100644 index c9f25b8..0000000 --- a/SCHALE.Common/FlatData/TutorialExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct TutorialExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static TutorialExcelTable GetRootAsTutorialExcelTable(ByteBuffer _bb) { return GetRootAsTutorialExcelTable(_bb, new TutorialExcelTable()); } - public static TutorialExcelTable GetRootAsTutorialExcelTable(ByteBuffer _bb, TutorialExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public TutorialExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.TutorialExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TutorialExcel?)(new SCHALE.Common.FlatData.TutorialExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateTutorialExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - TutorialExcelTable.AddDataList(builder, DataListOffset); - return TutorialExcelTable.EndTutorialExcelTable(builder); - } - - public static void StartTutorialExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndTutorialExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class TutorialExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TutorialExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs index 3cdc9b5..c2e88ee 100644 --- a/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs +++ b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct TutorialFailureImageExcel : IFlatbufferObject @@ -68,6 +69,49 @@ public struct TutorialFailureImageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public TutorialFailureImageExcelT UnPack() { + var _o = new TutorialFailureImageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(TutorialFailureImageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("TutorialFailureImage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Contents = TableEncryptionService.Convert(this.Contents, key); + _o.Type = TableEncryptionService.Convert(this.Type, key); + _o.ImagePathKr = TableEncryptionService.Convert(this.ImagePathKr, key); + _o.ImagePathJp = TableEncryptionService.Convert(this.ImagePathJp, key); + } + public static Offset Pack(FlatBufferBuilder builder, TutorialFailureImageExcelT _o) { + if (_o == null) return default(Offset); + var _Type = _o.Type == null ? default(StringOffset) : builder.CreateString(_o.Type); + var _ImagePathKr = _o.ImagePathKr == null ? default(StringOffset) : builder.CreateString(_o.ImagePathKr); + var _ImagePathJp = _o.ImagePathJp == null ? default(StringOffset) : builder.CreateString(_o.ImagePathJp); + return CreateTutorialFailureImageExcel( + builder, + _o.Id, + _o.Contents, + _Type, + _ImagePathKr, + _ImagePathJp); + } +} + +public class TutorialFailureImageExcelT +{ + public long Id { get; set; } + public SCHALE.Common.FlatData.TutorialFailureContentType Contents { get; set; } + public string Type { get; set; } + public string ImagePathKr { get; set; } + public string ImagePathJp { get; set; } + + public TutorialFailureImageExcelT() { + this.Id = 0; + this.Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None; + this.Type = null; + this.ImagePathKr = null; + this.ImagePathJp = null; + } } diff --git a/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs b/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs deleted file mode 100644 index 5bc576a..0000000 --- a/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::Google.FlatBuffers; - -public struct TutorialFailureImageExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static TutorialFailureImageExcelTable GetRootAsTutorialFailureImageExcelTable(ByteBuffer _bb) { return GetRootAsTutorialFailureImageExcelTable(_bb, new TutorialFailureImageExcelTable()); } - public static TutorialFailureImageExcelTable GetRootAsTutorialFailureImageExcelTable(ByteBuffer _bb, TutorialFailureImageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public TutorialFailureImageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.TutorialFailureImageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TutorialFailureImageExcel?)(new SCHALE.Common.FlatData.TutorialFailureImageExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateTutorialFailureImageExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - TutorialFailureImageExcelTable.AddDataList(builder, DataListOffset); - return TutorialFailureImageExcelTable.EndTutorialFailureImageExcelTable(builder); - } - - public static void StartTutorialFailureImageExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] 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 CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndTutorialFailureImageExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } -} - - -static public class TutorialFailureImageExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TutorialFailureImageExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/VideoExcel.cs b/SCHALE.Common/FlatData/VideoExcel.cs index b7a0be8..acf40ff 100644 --- a/SCHALE.Common/FlatData/VideoExcel.cs +++ b/SCHALE.Common/FlatData/VideoExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VideoExcel : IFlatbufferObject @@ -86,6 +87,72 @@ public struct VideoExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VideoExcelT UnPack() { + var _o = new VideoExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VideoExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Video"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Nation_ = new List(); + for (var _j = 0; _j < this.Nation_Length; ++_j) {_o.Nation_.Add(TableEncryptionService.Convert(this.Nation_(_j), key));} + _o.VideoPath = new List(); + for (var _j = 0; _j < this.VideoPathLength; ++_j) {_o.VideoPath.Add(TableEncryptionService.Convert(this.VideoPath(_j), key));} + _o.SoundPath = new List(); + for (var _j = 0; _j < this.SoundPathLength; ++_j) {_o.SoundPath.Add(TableEncryptionService.Convert(this.SoundPath(_j), key));} + _o.SoundVolume = new List(); + for (var _j = 0; _j < this.SoundVolumeLength; ++_j) {_o.SoundVolume.Add(TableEncryptionService.Convert(this.SoundVolume(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, VideoExcelT _o) { + if (_o == null) return default(Offset); + var _Nation_ = default(VectorOffset); + if (_o.Nation_ != null) { + var __Nation_ = _o.Nation_.ToArray(); + _Nation_ = CreateNation_Vector(builder, __Nation_); + } + var _VideoPath = default(VectorOffset); + if (_o.VideoPath != null) { + var __VideoPath = new StringOffset[_o.VideoPath.Count]; + for (var _j = 0; _j < __VideoPath.Length; ++_j) { __VideoPath[_j] = builder.CreateString(_o.VideoPath[_j]); } + _VideoPath = CreateVideoPathVector(builder, __VideoPath); + } + var _SoundPath = default(VectorOffset); + if (_o.SoundPath != null) { + var __SoundPath = new StringOffset[_o.SoundPath.Count]; + for (var _j = 0; _j < __SoundPath.Length; ++_j) { __SoundPath[_j] = builder.CreateString(_o.SoundPath[_j]); } + _SoundPath = CreateSoundPathVector(builder, __SoundPath); + } + var _SoundVolume = default(VectorOffset); + if (_o.SoundVolume != null) { + var __SoundVolume = _o.SoundVolume.ToArray(); + _SoundVolume = CreateSoundVolumeVector(builder, __SoundVolume); + } + return CreateVideoExcel( + builder, + _o.Id, + _Nation_, + _VideoPath, + _SoundPath, + _SoundVolume); + } +} + +public class VideoExcelT +{ + public long Id { get; set; } + public List Nation_ { get; set; } + public List VideoPath { get; set; } + public List SoundPath { get; set; } + public List SoundVolume { get; set; } + + public VideoExcelT() { + this.Id = 0; + this.Nation_ = null; + this.VideoPath = null; + this.SoundPath = null; + this.SoundVolume = null; + } } diff --git a/SCHALE.Common/FlatData/VoiceCommonExcel.cs b/SCHALE.Common/FlatData/VoiceCommonExcel.cs index e9d72b5..8410434 100644 --- a/SCHALE.Common/FlatData/VoiceCommonExcel.cs +++ b/SCHALE.Common/FlatData/VoiceCommonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VoiceCommonExcel : IFlatbufferObject @@ -54,6 +55,44 @@ public struct VoiceCommonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VoiceCommonExcelT UnPack() { + var _o = new VoiceCommonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VoiceCommonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("VoiceCommon"); + _o.VoiceEvent = TableEncryptionService.Convert(this.VoiceEvent, key); + _o.Rate = TableEncryptionService.Convert(this.Rate, key); + _o.VoiceHash = new List(); + for (var _j = 0; _j < this.VoiceHashLength; ++_j) {_o.VoiceHash.Add(TableEncryptionService.Convert(this.VoiceHash(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, VoiceCommonExcelT _o) { + if (_o == null) return default(Offset); + var _VoiceHash = default(VectorOffset); + if (_o.VoiceHash != null) { + var __VoiceHash = _o.VoiceHash.ToArray(); + _VoiceHash = CreateVoiceHashVector(builder, __VoiceHash); + } + return CreateVoiceCommonExcel( + builder, + _o.VoiceEvent, + _o.Rate, + _VoiceHash); + } +} + +public class VoiceCommonExcelT +{ + public SCHALE.Common.FlatData.VoiceEvent VoiceEvent { get; set; } + public long Rate { get; set; } + public List VoiceHash { get; set; } + + public VoiceCommonExcelT() { + this.VoiceEvent = SCHALE.Common.FlatData.VoiceEvent.OnTSA; + this.Rate = 0; + this.VoiceHash = null; + } } diff --git a/SCHALE.Common/FlatData/VoiceExcel.cs b/SCHALE.Common/FlatData/VoiceExcel.cs index 4891b7b..1868640 100644 --- a/SCHALE.Common/FlatData/VoiceExcel.cs +++ b/SCHALE.Common/FlatData/VoiceExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VoiceExcel : IFlatbufferObject @@ -80,6 +81,65 @@ public struct VoiceExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VoiceExcelT UnPack() { + var _o = new VoiceExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VoiceExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Voice"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Nation_ = new List(); + for (var _j = 0; _j < this.Nation_Length; ++_j) {_o.Nation_.Add(TableEncryptionService.Convert(this.Nation_(_j), key));} + _o.Path = new List(); + for (var _j = 0; _j < this.PathLength; ++_j) {_o.Path.Add(TableEncryptionService.Convert(this.Path(_j), key));} + _o.Volume = new List(); + for (var _j = 0; _j < this.VolumeLength; ++_j) {_o.Volume.Add(TableEncryptionService.Convert(this.Volume(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, VoiceExcelT _o) { + if (_o == null) return default(Offset); + var _Nation_ = default(VectorOffset); + if (_o.Nation_ != null) { + var __Nation_ = _o.Nation_.ToArray(); + _Nation_ = CreateNation_Vector(builder, __Nation_); + } + var _Path = default(VectorOffset); + if (_o.Path != null) { + var __Path = new StringOffset[_o.Path.Count]; + for (var _j = 0; _j < __Path.Length; ++_j) { __Path[_j] = builder.CreateString(_o.Path[_j]); } + _Path = CreatePathVector(builder, __Path); + } + var _Volume = default(VectorOffset); + if (_o.Volume != null) { + var __Volume = _o.Volume.ToArray(); + _Volume = CreateVolumeVector(builder, __Volume); + } + return CreateVoiceExcel( + builder, + _o.UniqueId, + _o.Id, + _Nation_, + _Path, + _Volume); + } +} + +public class VoiceExcelT +{ + public long UniqueId { get; set; } + public uint Id { get; set; } + public List Nation_ { get; set; } + public List Path { get; set; } + public List Volume { get; set; } + + public VoiceExcelT() { + this.UniqueId = 0; + this.Id = 0; + this.Nation_ = null; + this.Path = null; + this.Volume = null; + } } diff --git a/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs b/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs index 7ac502e..98518cf 100644 --- a/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs +++ b/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VoiceLogicEffectExcel : IFlatbufferObject @@ -62,6 +63,52 @@ public struct VoiceLogicEffectExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VoiceLogicEffectExcelT UnPack() { + var _o = new VoiceLogicEffectExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VoiceLogicEffectExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("VoiceLogicEffect"); + _o.LogicEffectNameHash = TableEncryptionService.Convert(this.LogicEffectNameHash, key); + _o.Self = TableEncryptionService.Convert(this.Self, key); + _o.Priority = TableEncryptionService.Convert(this.Priority, key); + _o.VoiceHash = new List(); + for (var _j = 0; _j < this.VoiceHashLength; ++_j) {_o.VoiceHash.Add(TableEncryptionService.Convert(this.VoiceHash(_j), key));} + _o.VoiceId = TableEncryptionService.Convert(this.VoiceId, key); + } + public static Offset Pack(FlatBufferBuilder builder, VoiceLogicEffectExcelT _o) { + if (_o == null) return default(Offset); + var _VoiceHash = default(VectorOffset); + if (_o.VoiceHash != null) { + var __VoiceHash = _o.VoiceHash.ToArray(); + _VoiceHash = CreateVoiceHashVector(builder, __VoiceHash); + } + return CreateVoiceLogicEffectExcel( + builder, + _o.LogicEffectNameHash, + _o.Self, + _o.Priority, + _VoiceHash, + _o.VoiceId); + } +} + +public class VoiceLogicEffectExcelT +{ + public uint LogicEffectNameHash { get; set; } + public bool Self { get; set; } + public int Priority { get; set; } + public List VoiceHash { get; set; } + public uint VoiceId { get; set; } + + public VoiceLogicEffectExcelT() { + this.LogicEffectNameHash = 0; + this.Self = false; + this.Priority = 0; + this.VoiceHash = null; + this.VoiceId = 0; + } } diff --git a/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs b/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs index 1314744..a8df31d 100644 --- a/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs +++ b/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VoiceRoomExceptionExcel : IFlatbufferObject @@ -42,6 +43,38 @@ public struct VoiceRoomExceptionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VoiceRoomExceptionExcelT UnPack() { + var _o = new VoiceRoomExceptionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VoiceRoomExceptionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("VoiceRoomException"); + _o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key); + _o.LinkedCharacterVoicePrintType = TableEncryptionService.Convert(this.LinkedCharacterVoicePrintType, key); + _o.LinkedCostumeUniqueId = TableEncryptionService.Convert(this.LinkedCostumeUniqueId, key); + } + public static Offset Pack(FlatBufferBuilder builder, VoiceRoomExceptionExcelT _o) { + if (_o == null) return default(Offset); + return CreateVoiceRoomExceptionExcel( + builder, + _o.CostumeUniqueId, + _o.LinkedCharacterVoicePrintType, + _o.LinkedCostumeUniqueId); + } +} + +public class VoiceRoomExceptionExcelT +{ + public long CostumeUniqueId { get; set; } + public SCHALE.Common.FlatData.CVPrintType LinkedCharacterVoicePrintType { get; set; } + public long LinkedCostumeUniqueId { get; set; } + + public VoiceRoomExceptionExcelT() { + this.CostumeUniqueId = 0; + this.LinkedCharacterVoicePrintType = SCHALE.Common.FlatData.CVPrintType.CharacterOverwrite; + this.LinkedCostumeUniqueId = 0; + } } diff --git a/SCHALE.Common/FlatData/VoiceSpineExcel.cs b/SCHALE.Common/FlatData/VoiceSpineExcel.cs index 0a2e83f..44d38e7 100644 --- a/SCHALE.Common/FlatData/VoiceSpineExcel.cs +++ b/SCHALE.Common/FlatData/VoiceSpineExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct VoiceSpineExcel : IFlatbufferObject @@ -80,6 +81,65 @@ public struct VoiceSpineExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public VoiceSpineExcelT UnPack() { + var _o = new VoiceSpineExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(VoiceSpineExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("VoiceSpine"); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.Nation_ = new List(); + for (var _j = 0; _j < this.Nation_Length; ++_j) {_o.Nation_.Add(TableEncryptionService.Convert(this.Nation_(_j), key));} + _o.Path = new List(); + for (var _j = 0; _j < this.PathLength; ++_j) {_o.Path.Add(TableEncryptionService.Convert(this.Path(_j), key));} + _o.SoundVolume = new List(); + for (var _j = 0; _j < this.SoundVolumeLength; ++_j) {_o.SoundVolume.Add(TableEncryptionService.Convert(this.SoundVolume(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, VoiceSpineExcelT _o) { + if (_o == null) return default(Offset); + var _Nation_ = default(VectorOffset); + if (_o.Nation_ != null) { + var __Nation_ = _o.Nation_.ToArray(); + _Nation_ = CreateNation_Vector(builder, __Nation_); + } + var _Path = default(VectorOffset); + if (_o.Path != null) { + var __Path = new StringOffset[_o.Path.Count]; + for (var _j = 0; _j < __Path.Length; ++_j) { __Path[_j] = builder.CreateString(_o.Path[_j]); } + _Path = CreatePathVector(builder, __Path); + } + var _SoundVolume = default(VectorOffset); + if (_o.SoundVolume != null) { + var __SoundVolume = _o.SoundVolume.ToArray(); + _SoundVolume = CreateSoundVolumeVector(builder, __SoundVolume); + } + return CreateVoiceSpineExcel( + builder, + _o.UniqueId, + _o.Id, + _Nation_, + _Path, + _SoundVolume); + } +} + +public class VoiceSpineExcelT +{ + public long UniqueId { get; set; } + public uint Id { get; set; } + public List Nation_ { get; set; } + public List Path { get; set; } + public List SoundVolume { get; set; } + + public VoiceSpineExcelT() { + this.UniqueId = 0; + this.Id = 0; + this.Nation_ = null; + this.Path = null; + this.SoundVolume = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonExcel.cs b/SCHALE.Common/FlatData/WeekDungeonExcel.cs index d354a01..9199900 100644 --- a/SCHALE.Common/FlatData/WeekDungeonExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonExcel : IFlatbufferObject @@ -178,6 +179,138 @@ public struct WeekDungeonExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonExcelT UnPack() { + var _o = new WeekDungeonExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeon"); + _o.StageId = TableEncryptionService.Convert(this.StageId, key); + _o.WeekDungeonType = TableEncryptionService.Convert(this.WeekDungeonType, key); + _o.Difficulty = TableEncryptionService.Convert(this.Difficulty, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.PrevStageId = TableEncryptionService.Convert(this.PrevStageId, key); + _o.StageEnterCostType = new List(); + for (var _j = 0; _j < this.StageEnterCostTypeLength; ++_j) {_o.StageEnterCostType.Add(TableEncryptionService.Convert(this.StageEnterCostType(_j), key));} + _o.StageEnterCostId = new List(); + for (var _j = 0; _j < this.StageEnterCostIdLength; ++_j) {_o.StageEnterCostId.Add(TableEncryptionService.Convert(this.StageEnterCostId(_j), key));} + _o.StageEnterCostAmount = new List(); + for (var _j = 0; _j < this.StageEnterCostAmountLength; ++_j) {_o.StageEnterCostAmount.Add(TableEncryptionService.Convert(this.StageEnterCostAmount(_j), key));} + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.StarGoal = new List(); + for (var _j = 0; _j < this.StarGoalLength; ++_j) {_o.StarGoal.Add(TableEncryptionService.Convert(this.StarGoal(_j), key));} + _o.StarGoalAmount = new List(); + for (var _j = 0; _j < this.StarGoalAmountLength; ++_j) {_o.StarGoalAmount.Add(TableEncryptionService.Convert(this.StarGoalAmount(_j), key));} + _o.StageTopography = TableEncryptionService.Convert(this.StageTopography, key); + _o.RecommandLevel = TableEncryptionService.Convert(this.RecommandLevel, key); + _o.StageRewardId = TableEncryptionService.Convert(this.StageRewardId, key); + _o.PlayTimeLimitInSeconds = TableEncryptionService.Convert(this.PlayTimeLimitInSeconds, key); + _o.BattleRewardExp = TableEncryptionService.Convert(this.BattleRewardExp, key); + _o.BattleRewardPlayerExp = TableEncryptionService.Convert(this.BattleRewardPlayerExp, key); + _o.GroupBuffID = new List(); + for (var _j = 0; _j < this.GroupBuffIDLength; ++_j) {_o.GroupBuffID.Add(TableEncryptionService.Convert(this.GroupBuffID(_j), key));} + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonExcelT _o) { + if (_o == null) return default(Offset); + var _StageEnterCostType = default(VectorOffset); + if (_o.StageEnterCostType != null) { + var __StageEnterCostType = _o.StageEnterCostType.ToArray(); + _StageEnterCostType = CreateStageEnterCostTypeVector(builder, __StageEnterCostType); + } + var _StageEnterCostId = default(VectorOffset); + if (_o.StageEnterCostId != null) { + var __StageEnterCostId = _o.StageEnterCostId.ToArray(); + _StageEnterCostId = CreateStageEnterCostIdVector(builder, __StageEnterCostId); + } + var _StageEnterCostAmount = default(VectorOffset); + if (_o.StageEnterCostAmount != null) { + var __StageEnterCostAmount = _o.StageEnterCostAmount.ToArray(); + _StageEnterCostAmount = CreateStageEnterCostAmountVector(builder, __StageEnterCostAmount); + } + var _StarGoal = default(VectorOffset); + if (_o.StarGoal != null) { + var __StarGoal = _o.StarGoal.ToArray(); + _StarGoal = CreateStarGoalVector(builder, __StarGoal); + } + var _StarGoalAmount = default(VectorOffset); + if (_o.StarGoalAmount != null) { + var __StarGoalAmount = _o.StarGoalAmount.ToArray(); + _StarGoalAmount = CreateStarGoalAmountVector(builder, __StarGoalAmount); + } + var _GroupBuffID = default(VectorOffset); + if (_o.GroupBuffID != null) { + var __GroupBuffID = _o.GroupBuffID.ToArray(); + _GroupBuffID = CreateGroupBuffIDVector(builder, __GroupBuffID); + } + return CreateWeekDungeonExcel( + builder, + _o.StageId, + _o.WeekDungeonType, + _o.Difficulty, + _o.BattleDuration, + _o.PrevStageId, + _StageEnterCostType, + _StageEnterCostId, + _StageEnterCostAmount, + _o.GroundId, + _StarGoal, + _StarGoalAmount, + _o.StageTopography, + _o.RecommandLevel, + _o.StageRewardId, + _o.PlayTimeLimitInSeconds, + _o.BattleRewardExp, + _o.BattleRewardPlayerExp, + _GroupBuffID, + _o.EchelonExtensionType); + } +} + +public class WeekDungeonExcelT +{ + public long StageId { get; set; } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get; set; } + public int Difficulty { get; set; } + public long BattleDuration { get; set; } + public long PrevStageId { get; set; } + public List StageEnterCostType { get; set; } + public List StageEnterCostId { get; set; } + public List StageEnterCostAmount { get; set; } + public int GroundId { get; set; } + public List StarGoal { get; set; } + public List StarGoalAmount { get; set; } + public SCHALE.Common.FlatData.StageTopography StageTopography { get; set; } + public long RecommandLevel { get; set; } + public long StageRewardId { get; set; } + public long PlayTimeLimitInSeconds { get; set; } + public long BattleRewardExp { get; set; } + public long BattleRewardPlayerExp { get; set; } + public List GroupBuffID { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public WeekDungeonExcelT() { + this.StageId = 0; + this.WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None; + this.Difficulty = 0; + this.BattleDuration = 0; + this.PrevStageId = 0; + this.StageEnterCostType = null; + this.StageEnterCostId = null; + this.StageEnterCostAmount = null; + this.GroundId = 0; + this.StarGoal = null; + this.StarGoalAmount = null; + this.StageTopography = SCHALE.Common.FlatData.StageTopography.Street; + this.RecommandLevel = 0; + this.StageRewardId = 0; + this.PlayTimeLimitInSeconds = 0; + this.BattleRewardExp = 0; + this.BattleRewardPlayerExp = 0; + this.GroupBuffID = null; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs index 9cc4679..daac9d4 100644 --- a/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs +++ b/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WeekDungeonExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonExcelTableT UnPack() { + var _o = new WeekDungeonExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WeekDungeonExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWeekDungeonExcelTable( + builder, + _DataList); + } +} + +public class WeekDungeonExcelTableT +{ + public List DataList { get; set; } + + public WeekDungeonExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs index c06a755..52f599c 100644 --- a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonFindGiftRewardExcel : IFlatbufferObject @@ -118,6 +119,86 @@ public struct WeekDungeonFindGiftRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonFindGiftRewardExcelT UnPack() { + var _o = new WeekDungeonFindGiftRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonFindGiftRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonFindGiftReward"); + _o.StageRewardId = TableEncryptionService.Convert(this.StageRewardId, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.RewardParcelType = new List(); + for (var _j = 0; _j < this.RewardParcelTypeLength; ++_j) {_o.RewardParcelType.Add(TableEncryptionService.Convert(this.RewardParcelType(_j), key));} + _o.RewardParcelId = new List(); + for (var _j = 0; _j < this.RewardParcelIdLength; ++_j) {_o.RewardParcelId.Add(TableEncryptionService.Convert(this.RewardParcelId(_j), key));} + _o.RewardParcelAmount = new List(); + for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} + _o.RewardParcelProbability = new List(); + for (var _j = 0; _j < this.RewardParcelProbabilityLength; ++_j) {_o.RewardParcelProbability.Add(TableEncryptionService.Convert(this.RewardParcelProbability(_j), key));} + _o.DropItemModelPrefabPath = new List(); + for (var _j = 0; _j < this.DropItemModelPrefabPathLength; ++_j) {_o.DropItemModelPrefabPath.Add(TableEncryptionService.Convert(this.DropItemModelPrefabPath(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonFindGiftRewardExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _RewardParcelType = default(VectorOffset); + if (_o.RewardParcelType != null) { + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); + } + var _RewardParcelId = default(VectorOffset); + if (_o.RewardParcelId != null) { + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); + } + var _RewardParcelAmount = default(VectorOffset); + if (_o.RewardParcelAmount != null) { + var __RewardParcelAmount = _o.RewardParcelAmount.ToArray(); + _RewardParcelAmount = CreateRewardParcelAmountVector(builder, __RewardParcelAmount); + } + var _RewardParcelProbability = default(VectorOffset); + if (_o.RewardParcelProbability != null) { + var __RewardParcelProbability = _o.RewardParcelProbability.ToArray(); + _RewardParcelProbability = CreateRewardParcelProbabilityVector(builder, __RewardParcelProbability); + } + var _DropItemModelPrefabPath = default(VectorOffset); + if (_o.DropItemModelPrefabPath != null) { + var __DropItemModelPrefabPath = new StringOffset[_o.DropItemModelPrefabPath.Count]; + for (var _j = 0; _j < __DropItemModelPrefabPath.Length; ++_j) { __DropItemModelPrefabPath[_j] = builder.CreateString(_o.DropItemModelPrefabPath[_j]); } + _DropItemModelPrefabPath = CreateDropItemModelPrefabPathVector(builder, __DropItemModelPrefabPath); + } + return CreateWeekDungeonFindGiftRewardExcel( + builder, + _o.StageRewardId, + _DevName, + _RewardParcelType, + _RewardParcelId, + _RewardParcelAmount, + _RewardParcelProbability, + _DropItemModelPrefabPath); + } +} + +public class WeekDungeonFindGiftRewardExcelT +{ + public long StageRewardId { get; set; } + public string DevName { get; set; } + public List RewardParcelType { get; set; } + public List RewardParcelId { get; set; } + public List RewardParcelAmount { get; set; } + public List RewardParcelProbability { get; set; } + public List DropItemModelPrefabPath { get; set; } + + public WeekDungeonFindGiftRewardExcelT() { + this.StageRewardId = 0; + this.DevName = null; + this.RewardParcelType = null; + this.RewardParcelId = null; + this.RewardParcelAmount = null; + this.RewardParcelProbability = null; + this.DropItemModelPrefabPath = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs index 3bc93e0..cc47a1a 100644 --- a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonFindGiftRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WeekDungeonFindGiftRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonFindGiftRewardExcelTableT UnPack() { + var _o = new WeekDungeonFindGiftRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonFindGiftRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonFindGiftRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonFindGiftRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WeekDungeonFindGiftRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWeekDungeonFindGiftRewardExcelTable( + builder, + _DataList); + } +} + +public class WeekDungeonFindGiftRewardExcelTableT +{ + public List DataList { get; set; } + + public WeekDungeonFindGiftRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs index cd837e0..22b5642 100644 --- a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonGroupBuffExcel : IFlatbufferObject @@ -56,6 +57,47 @@ public struct WeekDungeonGroupBuffExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonGroupBuffExcelT UnPack() { + var _o = new WeekDungeonGroupBuffExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonGroupBuffExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonGroupBuff"); + _o.WeekDungeonBuffId = TableEncryptionService.Convert(this.WeekDungeonBuffId, key); + _o.School = TableEncryptionService.Convert(this.School, key); + _o.RecommandLocalizeEtcId = TableEncryptionService.Convert(this.RecommandLocalizeEtcId, key); + _o.FormationLocalizeEtcId = TableEncryptionService.Convert(this.FormationLocalizeEtcId, key); + _o.SkillGroupId = TableEncryptionService.Convert(this.SkillGroupId, key); + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonGroupBuffExcelT _o) { + if (_o == null) return default(Offset); + var _SkillGroupId = _o.SkillGroupId == null ? default(StringOffset) : builder.CreateString(_o.SkillGroupId); + return CreateWeekDungeonGroupBuffExcel( + builder, + _o.WeekDungeonBuffId, + _o.School, + _o.RecommandLocalizeEtcId, + _o.FormationLocalizeEtcId, + _SkillGroupId); + } +} + +public class WeekDungeonGroupBuffExcelT +{ + public long WeekDungeonBuffId { get; set; } + public SCHALE.Common.FlatData.School School { get; set; } + public uint RecommandLocalizeEtcId { get; set; } + public uint FormationLocalizeEtcId { get; set; } + public string SkillGroupId { get; set; } + + public WeekDungeonGroupBuffExcelT() { + this.WeekDungeonBuffId = 0; + this.School = SCHALE.Common.FlatData.School.None; + this.RecommandLocalizeEtcId = 0; + this.FormationLocalizeEtcId = 0; + this.SkillGroupId = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs index c53fa88..018df55 100644 --- a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs +++ b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonGroupBuffExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WeekDungeonGroupBuffExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonGroupBuffExcelTableT UnPack() { + var _o = new WeekDungeonGroupBuffExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonGroupBuffExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonGroupBuffExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonGroupBuffExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WeekDungeonGroupBuffExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWeekDungeonGroupBuffExcelTable( + builder, + _DataList); + } +} + +public class WeekDungeonGroupBuffExcelTableT +{ + public List DataList { get; set; } + + public WeekDungeonGroupBuffExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs index 648c110..0e23141 100644 --- a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonOpenScheduleExcel : IFlatbufferObject @@ -50,6 +51,40 @@ public struct WeekDungeonOpenScheduleExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonOpenScheduleExcelT UnPack() { + var _o = new WeekDungeonOpenScheduleExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonOpenScheduleExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonOpenSchedule"); + _o.WeekDay = TableEncryptionService.Convert(this.WeekDay, key); + _o.Open = new List(); + for (var _j = 0; _j < this.OpenLength; ++_j) {_o.Open.Add(TableEncryptionService.Convert(this.Open(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonOpenScheduleExcelT _o) { + if (_o == null) return default(Offset); + var _Open = default(VectorOffset); + if (_o.Open != null) { + var __Open = _o.Open.ToArray(); + _Open = CreateOpenVector(builder, __Open); + } + return CreateWeekDungeonOpenScheduleExcel( + builder, + _o.WeekDay, + _Open); + } +} + +public class WeekDungeonOpenScheduleExcelT +{ + public SCHALE.Common.FlatData.WeekDay WeekDay { get; set; } + public List Open { get; set; } + + public WeekDungeonOpenScheduleExcelT() { + this.WeekDay = SCHALE.Common.FlatData.WeekDay.Sunday; + this.Open = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs index d43a7a6..a09d29d 100644 --- a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs +++ b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonOpenScheduleExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WeekDungeonOpenScheduleExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonOpenScheduleExcelTableT UnPack() { + var _o = new WeekDungeonOpenScheduleExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonOpenScheduleExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonOpenScheduleExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonOpenScheduleExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WeekDungeonOpenScheduleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWeekDungeonOpenScheduleExcelTable( + builder, + _DataList); + } +} + +public class WeekDungeonOpenScheduleExcelTableT +{ + public List DataList { get; set; } + + public WeekDungeonOpenScheduleExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs index 8b6fb53..f0da8ef 100644 --- a/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonRewardExcel : IFlatbufferObject @@ -68,6 +69,59 @@ public struct WeekDungeonRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonRewardExcelT UnPack() { + var _o = new WeekDungeonRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.DungeonType = TableEncryptionService.Convert(this.DungeonType, key); + _o.RewardParcelType = TableEncryptionService.Convert(this.RewardParcelType, key); + _o.RewardParcelId = TableEncryptionService.Convert(this.RewardParcelId, key); + _o.RewardParcelAmount = TableEncryptionService.Convert(this.RewardParcelAmount, key); + _o.RewardParcelProbability = TableEncryptionService.Convert(this.RewardParcelProbability, key); + _o.IsDisplayed = TableEncryptionService.Convert(this.IsDisplayed, key); + _o.DropItemModelPrefabPath = TableEncryptionService.Convert(this.DropItemModelPrefabPath, key); + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonRewardExcelT _o) { + if (_o == null) return default(Offset); + var _DropItemModelPrefabPath = _o.DropItemModelPrefabPath == null ? default(StringOffset) : builder.CreateString(_o.DropItemModelPrefabPath); + return CreateWeekDungeonRewardExcel( + builder, + _o.GroupId, + _o.DungeonType, + _o.RewardParcelType, + _o.RewardParcelId, + _o.RewardParcelAmount, + _o.RewardParcelProbability, + _o.IsDisplayed, + _DropItemModelPrefabPath); + } +} + +public class WeekDungeonRewardExcelT +{ + public long GroupId { get; set; } + public SCHALE.Common.FlatData.WeekDungeonType DungeonType { get; set; } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get; set; } + public long RewardParcelId { get; set; } + public long RewardParcelAmount { get; set; } + public long RewardParcelProbability { get; set; } + public bool IsDisplayed { get; set; } + public string DropItemModelPrefabPath { get; set; } + + public WeekDungeonRewardExcelT() { + this.GroupId = 0; + this.DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelId = 0; + this.RewardParcelAmount = 0; + this.RewardParcelProbability = 0; + this.IsDisplayed = false; + this.DropItemModelPrefabPath = null; + } } diff --git a/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs index 20b29bc..d3ada9d 100644 --- a/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WeekDungeonRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WeekDungeonRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WeekDungeonRewardExcelTableT UnPack() { + var _o = new WeekDungeonRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WeekDungeonRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WeekDungeonRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WeekDungeonRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WeekDungeonRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWeekDungeonRewardExcelTable( + builder, + _DataList); + } +} + +public class WeekDungeonRewardExcelTableT +{ + public List DataList { get; set; } + + public WeekDungeonRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs b/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs index 9b838e6..fe77de0 100644 --- a/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidBossGroupExcel : IFlatbufferObject @@ -168,6 +169,113 @@ public struct WorldRaidBossGroupExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidBossGroupExcelT UnPack() { + var _o = new WorldRaidBossGroupExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidBossGroupExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidBossGroup"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.WorldRaidBossGroupId = TableEncryptionService.Convert(this.WorldRaidBossGroupId, key); + _o.WorldBossName = TableEncryptionService.Convert(this.WorldBossName, key); + _o.WorldBossPopupPortrait = TableEncryptionService.Convert(this.WorldBossPopupPortrait, key); + _o.WorldBossPopupBG = TableEncryptionService.Convert(this.WorldBossPopupBG, key); + _o.WorldBossParcelPortrait = TableEncryptionService.Convert(this.WorldBossParcelPortrait, key); + _o.WorldBossListParcel = TableEncryptionService.Convert(this.WorldBossListParcel, key); + _o.WorldBossHP = TableEncryptionService.Convert(this.WorldBossHP, key); + _o.UIHideBeforeSpawn = TableEncryptionService.Convert(this.UIHideBeforeSpawn, key); + _o.HideAnotherBossKilled = TableEncryptionService.Convert(this.HideAnotherBossKilled, key); + _o.WorldBossClearRewardGroupId = TableEncryptionService.Convert(this.WorldBossClearRewardGroupId, key); + _o.AnotherBossKilled = new List(); + for (var _j = 0; _j < this.AnotherBossKilledLength; ++_j) {_o.AnotherBossKilled.Add(TableEncryptionService.Convert(this.AnotherBossKilled(_j), key));} + _o.EchelonConstraintGroupId = TableEncryptionService.Convert(this.EchelonConstraintGroupId, key); + _o.ExclusiveOperatorBossSpawn = TableEncryptionService.Convert(this.ExclusiveOperatorBossSpawn, key); + _o.ExclusiveOperatorBossKill = TableEncryptionService.Convert(this.ExclusiveOperatorBossKill, key); + _o.ExclusiveOperatorScenarioBattle = TableEncryptionService.Convert(this.ExclusiveOperatorScenarioBattle, key); + _o.ExclusiveOperatorBossDamaged = TableEncryptionService.Convert(this.ExclusiveOperatorBossDamaged, key); + _o.BossGroupOpenCondition = TableEncryptionService.Convert(this.BossGroupOpenCondition, key); + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidBossGroupExcelT _o) { + if (_o == null) return default(Offset); + var _WorldBossName = _o.WorldBossName == null ? default(StringOffset) : builder.CreateString(_o.WorldBossName); + var _WorldBossPopupPortrait = _o.WorldBossPopupPortrait == null ? default(StringOffset) : builder.CreateString(_o.WorldBossPopupPortrait); + var _WorldBossPopupBG = _o.WorldBossPopupBG == null ? default(StringOffset) : builder.CreateString(_o.WorldBossPopupBG); + var _WorldBossParcelPortrait = _o.WorldBossParcelPortrait == null ? default(StringOffset) : builder.CreateString(_o.WorldBossParcelPortrait); + var _WorldBossListParcel = _o.WorldBossListParcel == null ? default(StringOffset) : builder.CreateString(_o.WorldBossListParcel); + var _AnotherBossKilled = default(VectorOffset); + if (_o.AnotherBossKilled != null) { + var __AnotherBossKilled = _o.AnotherBossKilled.ToArray(); + _AnotherBossKilled = CreateAnotherBossKilledVector(builder, __AnotherBossKilled); + } + var _ExclusiveOperatorBossSpawn = _o.ExclusiveOperatorBossSpawn == null ? default(StringOffset) : builder.CreateString(_o.ExclusiveOperatorBossSpawn); + var _ExclusiveOperatorBossKill = _o.ExclusiveOperatorBossKill == null ? default(StringOffset) : builder.CreateString(_o.ExclusiveOperatorBossKill); + var _ExclusiveOperatorScenarioBattle = _o.ExclusiveOperatorScenarioBattle == null ? default(StringOffset) : builder.CreateString(_o.ExclusiveOperatorScenarioBattle); + var _ExclusiveOperatorBossDamaged = _o.ExclusiveOperatorBossDamaged == null ? default(StringOffset) : builder.CreateString(_o.ExclusiveOperatorBossDamaged); + return CreateWorldRaidBossGroupExcel( + builder, + _o.Id, + _o.WorldRaidBossGroupId, + _WorldBossName, + _WorldBossPopupPortrait, + _WorldBossPopupBG, + _WorldBossParcelPortrait, + _WorldBossListParcel, + _o.WorldBossHP, + _o.UIHideBeforeSpawn, + _o.HideAnotherBossKilled, + _o.WorldBossClearRewardGroupId, + _AnotherBossKilled, + _o.EchelonConstraintGroupId, + _ExclusiveOperatorBossSpawn, + _ExclusiveOperatorBossKill, + _ExclusiveOperatorScenarioBattle, + _ExclusiveOperatorBossDamaged, + _o.BossGroupOpenCondition); + } +} + +public class WorldRaidBossGroupExcelT +{ + public long Id { get; set; } + public long WorldRaidBossGroupId { get; set; } + public string WorldBossName { get; set; } + public string WorldBossPopupPortrait { get; set; } + public string WorldBossPopupBG { get; set; } + public string WorldBossParcelPortrait { get; set; } + public string WorldBossListParcel { get; set; } + public long WorldBossHP { get; set; } + public bool UIHideBeforeSpawn { get; set; } + public bool HideAnotherBossKilled { get; set; } + public long WorldBossClearRewardGroupId { get; set; } + public List AnotherBossKilled { get; set; } + public long EchelonConstraintGroupId { get; set; } + public string ExclusiveOperatorBossSpawn { get; set; } + public string ExclusiveOperatorBossKill { get; set; } + public string ExclusiveOperatorScenarioBattle { get; set; } + public string ExclusiveOperatorBossDamaged { get; set; } + public long BossGroupOpenCondition { get; set; } + + public WorldRaidBossGroupExcelT() { + this.Id = 0; + this.WorldRaidBossGroupId = 0; + this.WorldBossName = null; + this.WorldBossPopupPortrait = null; + this.WorldBossPopupBG = null; + this.WorldBossParcelPortrait = null; + this.WorldBossListParcel = null; + this.WorldBossHP = 0; + this.UIHideBeforeSpawn = false; + this.HideAnotherBossKilled = false; + this.WorldBossClearRewardGroupId = 0; + this.AnotherBossKilled = null; + this.EchelonConstraintGroupId = 0; + this.ExclusiveOperatorBossSpawn = null; + this.ExclusiveOperatorBossKill = null; + this.ExclusiveOperatorScenarioBattle = null; + this.ExclusiveOperatorBossDamaged = null; + this.BossGroupOpenCondition = 0; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs index b9e64fc..5e905ae 100644 --- a/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidBossGroupExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidBossGroupExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidBossGroupExcelTableT UnPack() { + var _o = new WorldRaidBossGroupExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidBossGroupExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidBossGroupExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidBossGroupExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidBossGroupExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidBossGroupExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidBossGroupExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidBossGroupExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs b/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs index 8e84294..add9a5c 100644 --- a/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidConditionExcel : IFlatbufferObject @@ -114,6 +115,88 @@ public struct WorldRaidConditionExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidConditionExcelT UnPack() { + var _o = new WorldRaidConditionExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidConditionExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidCondition"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.LockUI = new List(); + for (var _j = 0; _j < this.LockUILength; ++_j) {_o.LockUI.Add(TableEncryptionService.Convert(this.LockUI(_j), key));} + _o.HideWhenLocked = TableEncryptionService.Convert(this.HideWhenLocked, key); + _o.AccountLevel = TableEncryptionService.Convert(this.AccountLevel, key); + _o.ScenarioModeId = new List(); + for (var _j = 0; _j < this.ScenarioModeIdLength; ++_j) {_o.ScenarioModeId.Add(TableEncryptionService.Convert(this.ScenarioModeId(_j), key));} + _o.CampaignStageID = new List(); + for (var _j = 0; _j < this.CampaignStageIDLength; ++_j) {_o.CampaignStageID.Add(TableEncryptionService.Convert(this.CampaignStageID(_j), key));} + _o.MultipleConditionCheckType = TableEncryptionService.Convert(this.MultipleConditionCheckType, key); + _o.AfterWhenDate = TableEncryptionService.Convert(this.AfterWhenDate, key); + _o.WorldRaidBossKill = new List(); + for (var _j = 0; _j < this.WorldRaidBossKillLength; ++_j) {_o.WorldRaidBossKill.Add(TableEncryptionService.Convert(this.WorldRaidBossKill(_j), key));} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidConditionExcelT _o) { + if (_o == null) return default(Offset); + var _LockUI = default(VectorOffset); + if (_o.LockUI != null) { + var __LockUI = new StringOffset[_o.LockUI.Count]; + for (var _j = 0; _j < __LockUI.Length; ++_j) { __LockUI[_j] = builder.CreateString(_o.LockUI[_j]); } + _LockUI = CreateLockUIVector(builder, __LockUI); + } + var _ScenarioModeId = default(VectorOffset); + if (_o.ScenarioModeId != null) { + var __ScenarioModeId = _o.ScenarioModeId.ToArray(); + _ScenarioModeId = CreateScenarioModeIdVector(builder, __ScenarioModeId); + } + var _CampaignStageID = default(VectorOffset); + if (_o.CampaignStageID != null) { + var __CampaignStageID = _o.CampaignStageID.ToArray(); + _CampaignStageID = CreateCampaignStageIDVector(builder, __CampaignStageID); + } + var _AfterWhenDate = _o.AfterWhenDate == null ? default(StringOffset) : builder.CreateString(_o.AfterWhenDate); + var _WorldRaidBossKill = default(VectorOffset); + if (_o.WorldRaidBossKill != null) { + var __WorldRaidBossKill = _o.WorldRaidBossKill.ToArray(); + _WorldRaidBossKill = CreateWorldRaidBossKillVector(builder, __WorldRaidBossKill); + } + return CreateWorldRaidConditionExcel( + builder, + _o.Id, + _LockUI, + _o.HideWhenLocked, + _o.AccountLevel, + _ScenarioModeId, + _CampaignStageID, + _o.MultipleConditionCheckType, + _AfterWhenDate, + _WorldRaidBossKill); + } +} + +public class WorldRaidConditionExcelT +{ + public long Id { get; set; } + public List LockUI { get; set; } + public bool HideWhenLocked { get; set; } + public long AccountLevel { get; set; } + public List ScenarioModeId { get; set; } + public List CampaignStageID { get; set; } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get; set; } + public string AfterWhenDate { get; set; } + public List WorldRaidBossKill { get; set; } + + public WorldRaidConditionExcelT() { + this.Id = 0; + this.LockUI = null; + this.HideWhenLocked = false; + this.AccountLevel = 0; + this.ScenarioModeId = null; + this.CampaignStageID = null; + this.MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And; + this.AfterWhenDate = null; + this.WorldRaidBossKill = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs index 6536947..4a61bb4 100644 --- a/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidConditionExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidConditionExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidConditionExcelTableT UnPack() { + var _o = new WorldRaidConditionExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidConditionExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidConditionExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidConditionExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidConditionExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidConditionExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidConditionExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidConditionExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs index 5c24409..bdfe104 100644 --- a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidFavorBuffExcel : IFlatbufferObject @@ -38,6 +39,34 @@ public struct WorldRaidFavorBuffExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidFavorBuffExcelT UnPack() { + var _o = new WorldRaidFavorBuffExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidFavorBuffExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidFavorBuff"); + _o.WorldRaidFavorRank = TableEncryptionService.Convert(this.WorldRaidFavorRank, key); + _o.WorldRaidFavorRankBonus = TableEncryptionService.Convert(this.WorldRaidFavorRankBonus, key); + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidFavorBuffExcelT _o) { + if (_o == null) return default(Offset); + return CreateWorldRaidFavorBuffExcel( + builder, + _o.WorldRaidFavorRank, + _o.WorldRaidFavorRankBonus); + } +} + +public class WorldRaidFavorBuffExcelT +{ + public long WorldRaidFavorRank { get; set; } + public long WorldRaidFavorRankBonus { get; set; } + + public WorldRaidFavorBuffExcelT() { + this.WorldRaidFavorRank = 0; + this.WorldRaidFavorRankBonus = 0; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs index e19a41d..a2cdb34 100644 --- a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidFavorBuffExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidFavorBuffExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidFavorBuffExcelTableT UnPack() { + var _o = new WorldRaidFavorBuffExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidFavorBuffExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidFavorBuffExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidFavorBuffExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidFavorBuffExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidFavorBuffExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidFavorBuffExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidFavorBuffExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs index 76170af..3c50cd2 100644 --- a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidSeasonManageExcel : IFlatbufferObject @@ -196,6 +197,151 @@ public struct WorldRaidSeasonManageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidSeasonManageExcelT UnPack() { + var _o = new WorldRaidSeasonManageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidSeasonManageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidSeasonManage"); + _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.EventContentId = TableEncryptionService.Convert(this.EventContentId, key); + _o.EnterTicket = TableEncryptionService.Convert(this.EnterTicket, key); + _o.WorldRaidLobbyScene = TableEncryptionService.Convert(this.WorldRaidLobbyScene, key); + _o.WorldRaidLobbyBanner = TableEncryptionService.Convert(this.WorldRaidLobbyBanner, key); + _o.WorldRaidLobbyBG = TableEncryptionService.Convert(this.WorldRaidLobbyBG, key); + _o.WorldRaidLobbyBannerShow = TableEncryptionService.Convert(this.WorldRaidLobbyBannerShow, key); + _o.SeasonOpenCondition = TableEncryptionService.Convert(this.SeasonOpenCondition, key); + _o.WorldRaidLobbyEnterScenario = TableEncryptionService.Convert(this.WorldRaidLobbyEnterScenario, key); + _o.CanPlayNotSeasonTime = TableEncryptionService.Convert(this.CanPlayNotSeasonTime, key); + _o.WorldRaidUniqueThemeLobbyUI = TableEncryptionService.Convert(this.WorldRaidUniqueThemeLobbyUI, key); + _o.WorldRaidUniqueThemeName = TableEncryptionService.Convert(this.WorldRaidUniqueThemeName, key); + _o.CanWorldRaidGemEnter = TableEncryptionService.Convert(this.CanWorldRaidGemEnter, key); + _o.HideWorldRaidTicketUI = TableEncryptionService.Convert(this.HideWorldRaidTicketUI, key); + _o.UseWorldRaidCommonToast = TableEncryptionService.Convert(this.UseWorldRaidCommonToast, key); + _o.OpenRaidBossGroupId = new List(); + for (var _j = 0; _j < this.OpenRaidBossGroupIdLength; ++_j) {_o.OpenRaidBossGroupId.Add(TableEncryptionService.Convert(this.OpenRaidBossGroupId(_j), key));} + _o.BossSpawnTime = new List(); + for (var _j = 0; _j < this.BossSpawnTimeLength; ++_j) {_o.BossSpawnTime.Add(TableEncryptionService.Convert(this.BossSpawnTime(_j), key));} + _o.EliminateTime = new List(); + for (var _j = 0; _j < this.EliminateTimeLength; ++_j) {_o.EliminateTime.Add(TableEncryptionService.Convert(this.EliminateTime(_j), key));} + _o.ScenarioOutputConditionId = new List(); + for (var _j = 0; _j < this.ScenarioOutputConditionIdLength; ++_j) {_o.ScenarioOutputConditionId.Add(TableEncryptionService.Convert(this.ScenarioOutputConditionId(_j), key));} + _o.ConditionScenarioGroupid = new List(); + for (var _j = 0; _j < this.ConditionScenarioGroupidLength; ++_j) {_o.ConditionScenarioGroupid.Add(TableEncryptionService.Convert(this.ConditionScenarioGroupid(_j), key));} + _o.WorldRaidMapEnterOperator = TableEncryptionService.Convert(this.WorldRaidMapEnterOperator, key); + _o.UseFavorRankBuff = TableEncryptionService.Convert(this.UseFavorRankBuff, key); + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidSeasonManageExcelT _o) { + if (_o == null) return default(Offset); + var _WorldRaidLobbyScene = _o.WorldRaidLobbyScene == null ? default(StringOffset) : builder.CreateString(_o.WorldRaidLobbyScene); + var _WorldRaidLobbyBanner = _o.WorldRaidLobbyBanner == null ? default(StringOffset) : builder.CreateString(_o.WorldRaidLobbyBanner); + var _WorldRaidLobbyBG = _o.WorldRaidLobbyBG == null ? default(StringOffset) : builder.CreateString(_o.WorldRaidLobbyBG); + var _WorldRaidUniqueThemeName = _o.WorldRaidUniqueThemeName == null ? default(StringOffset) : builder.CreateString(_o.WorldRaidUniqueThemeName); + var _OpenRaidBossGroupId = default(VectorOffset); + if (_o.OpenRaidBossGroupId != null) { + var __OpenRaidBossGroupId = _o.OpenRaidBossGroupId.ToArray(); + _OpenRaidBossGroupId = CreateOpenRaidBossGroupIdVector(builder, __OpenRaidBossGroupId); + } + var _BossSpawnTime = default(VectorOffset); + if (_o.BossSpawnTime != null) { + var __BossSpawnTime = new StringOffset[_o.BossSpawnTime.Count]; + for (var _j = 0; _j < __BossSpawnTime.Length; ++_j) { __BossSpawnTime[_j] = builder.CreateString(_o.BossSpawnTime[_j]); } + _BossSpawnTime = CreateBossSpawnTimeVector(builder, __BossSpawnTime); + } + var _EliminateTime = default(VectorOffset); + if (_o.EliminateTime != null) { + var __EliminateTime = new StringOffset[_o.EliminateTime.Count]; + for (var _j = 0; _j < __EliminateTime.Length; ++_j) { __EliminateTime[_j] = builder.CreateString(_o.EliminateTime[_j]); } + _EliminateTime = CreateEliminateTimeVector(builder, __EliminateTime); + } + var _ScenarioOutputConditionId = default(VectorOffset); + if (_o.ScenarioOutputConditionId != null) { + var __ScenarioOutputConditionId = _o.ScenarioOutputConditionId.ToArray(); + _ScenarioOutputConditionId = CreateScenarioOutputConditionIdVector(builder, __ScenarioOutputConditionId); + } + var _ConditionScenarioGroupid = default(VectorOffset); + if (_o.ConditionScenarioGroupid != null) { + var __ConditionScenarioGroupid = _o.ConditionScenarioGroupid.ToArray(); + _ConditionScenarioGroupid = CreateConditionScenarioGroupidVector(builder, __ConditionScenarioGroupid); + } + var _WorldRaidMapEnterOperator = _o.WorldRaidMapEnterOperator == null ? default(StringOffset) : builder.CreateString(_o.WorldRaidMapEnterOperator); + return CreateWorldRaidSeasonManageExcel( + builder, + _o.SeasonId, + _o.EventContentId, + _o.EnterTicket, + _WorldRaidLobbyScene, + _WorldRaidLobbyBanner, + _WorldRaidLobbyBG, + _o.WorldRaidLobbyBannerShow, + _o.SeasonOpenCondition, + _o.WorldRaidLobbyEnterScenario, + _o.CanPlayNotSeasonTime, + _o.WorldRaidUniqueThemeLobbyUI, + _WorldRaidUniqueThemeName, + _o.CanWorldRaidGemEnter, + _o.HideWorldRaidTicketUI, + _o.UseWorldRaidCommonToast, + _OpenRaidBossGroupId, + _BossSpawnTime, + _EliminateTime, + _ScenarioOutputConditionId, + _ConditionScenarioGroupid, + _WorldRaidMapEnterOperator, + _o.UseFavorRankBuff); + } +} + +public class WorldRaidSeasonManageExcelT +{ + public long SeasonId { get; set; } + public long EventContentId { get; set; } + public SCHALE.Common.FlatData.CurrencyTypes EnterTicket { get; set; } + public string WorldRaidLobbyScene { get; set; } + public string WorldRaidLobbyBanner { get; set; } + public string WorldRaidLobbyBG { get; set; } + public bool WorldRaidLobbyBannerShow { get; set; } + public long SeasonOpenCondition { get; set; } + public long WorldRaidLobbyEnterScenario { get; set; } + public bool CanPlayNotSeasonTime { get; set; } + public bool WorldRaidUniqueThemeLobbyUI { get; set; } + public string WorldRaidUniqueThemeName { get; set; } + public bool CanWorldRaidGemEnter { get; set; } + public bool HideWorldRaidTicketUI { get; set; } + public bool UseWorldRaidCommonToast { get; set; } + public List OpenRaidBossGroupId { get; set; } + public List BossSpawnTime { get; set; } + public List EliminateTime { get; set; } + public List ScenarioOutputConditionId { get; set; } + public List ConditionScenarioGroupid { get; set; } + public string WorldRaidMapEnterOperator { get; set; } + public bool UseFavorRankBuff { get; set; } + + public WorldRaidSeasonManageExcelT() { + this.SeasonId = 0; + this.EventContentId = 0; + this.EnterTicket = SCHALE.Common.FlatData.CurrencyTypes.Invalid; + this.WorldRaidLobbyScene = null; + this.WorldRaidLobbyBanner = null; + this.WorldRaidLobbyBG = null; + this.WorldRaidLobbyBannerShow = false; + this.SeasonOpenCondition = 0; + this.WorldRaidLobbyEnterScenario = 0; + this.CanPlayNotSeasonTime = false; + this.WorldRaidUniqueThemeLobbyUI = false; + this.WorldRaidUniqueThemeName = null; + this.CanWorldRaidGemEnter = false; + this.HideWorldRaidTicketUI = false; + this.UseWorldRaidCommonToast = false; + this.OpenRaidBossGroupId = null; + this.BossSpawnTime = null; + this.EliminateTime = null; + this.ScenarioOutputConditionId = null; + this.ConditionScenarioGroupid = null; + this.WorldRaidMapEnterOperator = null; + this.UseFavorRankBuff = false; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs index dd140c2..ffc9edd 100644 --- a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidSeasonManageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidSeasonManageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidSeasonManageExcelTableT UnPack() { + var _o = new WorldRaidSeasonManageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidSeasonManageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidSeasonManageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidSeasonManageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidSeasonManageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidSeasonManageExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidSeasonManageExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidSeasonManageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidStageExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs index 35e76e2..49bcbe9 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidStageExcel : IFlatbufferObject @@ -254,6 +255,208 @@ public struct WorldRaidStageExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidStageExcelT UnPack() { + var _o = new WorldRaidStageExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidStageExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidStage"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.UseBossIndex = TableEncryptionService.Convert(this.UseBossIndex, key); + _o.UseBossAIPhaseSync = TableEncryptionService.Convert(this.UseBossAIPhaseSync, key); + _o.WorldRaidBossGroupId = TableEncryptionService.Convert(this.WorldRaidBossGroupId, key); + _o.PortraitPath = TableEncryptionService.Convert(this.PortraitPath, key); + _o.BGPath = TableEncryptionService.Convert(this.BGPath, key); + _o.RaidCharacterId = TableEncryptionService.Convert(this.RaidCharacterId, key); + _o.BossCharacterId = new List(); + for (var _j = 0; _j < this.BossCharacterIdLength; ++_j) {_o.BossCharacterId.Add(TableEncryptionService.Convert(this.BossCharacterId(_j), key));} + _o.AssistCharacterLimitCount = TableEncryptionService.Convert(this.AssistCharacterLimitCount, key); + _o.WorldRaidDifficulty = TableEncryptionService.Convert(this.WorldRaidDifficulty, key); + _o.DifficultyOpenCondition = TableEncryptionService.Convert(this.DifficultyOpenCondition, key); + _o.RaidEnterAmount = TableEncryptionService.Convert(this.RaidEnterAmount, key); + _o.ReEnterAmount = TableEncryptionService.Convert(this.ReEnterAmount, key); + _o.BattleDuration = TableEncryptionService.Convert(this.BattleDuration, key); + _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); + _o.RaidBattleEndRewardGroupId = TableEncryptionService.Convert(this.RaidBattleEndRewardGroupId, key); + _o.RaidRewardGroupId = TableEncryptionService.Convert(this.RaidRewardGroupId, key); + _o.BattleReadyTimelinePath = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePathLength; ++_j) {_o.BattleReadyTimelinePath.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePath(_j), key));} + _o.BattleReadyTimelinePhaseStart = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseStartLength; ++_j) {_o.BattleReadyTimelinePhaseStart.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseStart(_j), key));} + _o.BattleReadyTimelinePhaseEnd = new List(); + for (var _j = 0; _j < this.BattleReadyTimelinePhaseEndLength; ++_j) {_o.BattleReadyTimelinePhaseEnd.Add(TableEncryptionService.Convert(this.BattleReadyTimelinePhaseEnd(_j), key));} + _o.VictoryTimelinePath = TableEncryptionService.Convert(this.VictoryTimelinePath, key); + _o.PhaseChangeTimelinePath = TableEncryptionService.Convert(this.PhaseChangeTimelinePath, key); + _o.TimeLinePhase = TableEncryptionService.Convert(this.TimeLinePhase, key); + _o.EnterScenarioKey = TableEncryptionService.Convert(this.EnterScenarioKey, key); + _o.ClearScenarioKey = TableEncryptionService.Convert(this.ClearScenarioKey, key); + _o.UseFixedEchelon = TableEncryptionService.Convert(this.UseFixedEchelon, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); + _o.IsRaidScenarioBattle = TableEncryptionService.Convert(this.IsRaidScenarioBattle, key); + _o.ShowSkillCard = TableEncryptionService.Convert(this.ShowSkillCard, key); + _o.BossBGInfoKey = TableEncryptionService.Convert(this.BossBGInfoKey, key); + _o.DamageToWorldBoss = TableEncryptionService.Convert(this.DamageToWorldBoss, key); + _o.AllyPassiveSkill = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillLength; ++_j) {_o.AllyPassiveSkill.Add(TableEncryptionService.Convert(this.AllyPassiveSkill(_j), key));} + _o.AllyPassiveSkillLevel = new List(); + for (var _j = 0; _j < this.AllyPassiveSkillLevelLength; ++_j) {_o.AllyPassiveSkillLevel.Add(TableEncryptionService.Convert(this.AllyPassiveSkillLevel(_j), key));} + _o.SaveCurrentLocalBossHP = TableEncryptionService.Convert(this.SaveCurrentLocalBossHP, key); + _o.EchelonExtensionType = TableEncryptionService.Convert(this.EchelonExtensionType, key); + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidStageExcelT _o) { + if (_o == null) return default(Offset); + var _PortraitPath = _o.PortraitPath == null ? default(StringOffset) : builder.CreateString(_o.PortraitPath); + var _BGPath = _o.BGPath == null ? default(StringOffset) : builder.CreateString(_o.BGPath); + var _BossCharacterId = default(VectorOffset); + if (_o.BossCharacterId != null) { + var __BossCharacterId = _o.BossCharacterId.ToArray(); + _BossCharacterId = CreateBossCharacterIdVector(builder, __BossCharacterId); + } + var _BattleReadyTimelinePath = default(VectorOffset); + if (_o.BattleReadyTimelinePath != null) { + var __BattleReadyTimelinePath = new StringOffset[_o.BattleReadyTimelinePath.Count]; + for (var _j = 0; _j < __BattleReadyTimelinePath.Length; ++_j) { __BattleReadyTimelinePath[_j] = builder.CreateString(_o.BattleReadyTimelinePath[_j]); } + _BattleReadyTimelinePath = CreateBattleReadyTimelinePathVector(builder, __BattleReadyTimelinePath); + } + var _BattleReadyTimelinePhaseStart = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseStart != null) { + var __BattleReadyTimelinePhaseStart = _o.BattleReadyTimelinePhaseStart.ToArray(); + _BattleReadyTimelinePhaseStart = CreateBattleReadyTimelinePhaseStartVector(builder, __BattleReadyTimelinePhaseStart); + } + var _BattleReadyTimelinePhaseEnd = default(VectorOffset); + if (_o.BattleReadyTimelinePhaseEnd != null) { + var __BattleReadyTimelinePhaseEnd = _o.BattleReadyTimelinePhaseEnd.ToArray(); + _BattleReadyTimelinePhaseEnd = CreateBattleReadyTimelinePhaseEndVector(builder, __BattleReadyTimelinePhaseEnd); + } + var _VictoryTimelinePath = _o.VictoryTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.VictoryTimelinePath); + var _PhaseChangeTimelinePath = _o.PhaseChangeTimelinePath == null ? default(StringOffset) : builder.CreateString(_o.PhaseChangeTimelinePath); + var _AllyPassiveSkill = default(VectorOffset); + if (_o.AllyPassiveSkill != null) { + var __AllyPassiveSkill = new StringOffset[_o.AllyPassiveSkill.Count]; + for (var _j = 0; _j < __AllyPassiveSkill.Length; ++_j) { __AllyPassiveSkill[_j] = builder.CreateString(_o.AllyPassiveSkill[_j]); } + _AllyPassiveSkill = CreateAllyPassiveSkillVector(builder, __AllyPassiveSkill); + } + var _AllyPassiveSkillLevel = default(VectorOffset); + if (_o.AllyPassiveSkillLevel != null) { + var __AllyPassiveSkillLevel = _o.AllyPassiveSkillLevel.ToArray(); + _AllyPassiveSkillLevel = CreateAllyPassiveSkillLevelVector(builder, __AllyPassiveSkillLevel); + } + return CreateWorldRaidStageExcel( + builder, + _o.Id, + _o.UseBossIndex, + _o.UseBossAIPhaseSync, + _o.WorldRaidBossGroupId, + _PortraitPath, + _BGPath, + _o.RaidCharacterId, + _BossCharacterId, + _o.AssistCharacterLimitCount, + _o.WorldRaidDifficulty, + _o.DifficultyOpenCondition, + _o.RaidEnterAmount, + _o.ReEnterAmount, + _o.BattleDuration, + _o.GroundId, + _o.RaidBattleEndRewardGroupId, + _o.RaidRewardGroupId, + _BattleReadyTimelinePath, + _BattleReadyTimelinePhaseStart, + _BattleReadyTimelinePhaseEnd, + _VictoryTimelinePath, + _PhaseChangeTimelinePath, + _o.TimeLinePhase, + _o.EnterScenarioKey, + _o.ClearScenarioKey, + _o.UseFixedEchelon, + _o.FixedEchelonId, + _o.IsRaidScenarioBattle, + _o.ShowSkillCard, + _o.BossBGInfoKey, + _o.DamageToWorldBoss, + _AllyPassiveSkill, + _AllyPassiveSkillLevel, + _o.SaveCurrentLocalBossHP, + _o.EchelonExtensionType); + } +} + +public class WorldRaidStageExcelT +{ + public long Id { get; set; } + public bool UseBossIndex { get; set; } + public bool UseBossAIPhaseSync { get; set; } + public long WorldRaidBossGroupId { get; set; } + public string PortraitPath { get; set; } + public string BGPath { get; set; } + public long RaidCharacterId { get; set; } + public List BossCharacterId { get; set; } + public long AssistCharacterLimitCount { get; set; } + public SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty { get; set; } + public bool DifficultyOpenCondition { get; set; } + public long RaidEnterAmount { get; set; } + public long ReEnterAmount { get; set; } + public long BattleDuration { get; set; } + public long GroundId { get; set; } + public long RaidBattleEndRewardGroupId { get; set; } + public long RaidRewardGroupId { get; set; } + public List BattleReadyTimelinePath { get; set; } + public List BattleReadyTimelinePhaseStart { get; set; } + public List BattleReadyTimelinePhaseEnd { get; set; } + public string VictoryTimelinePath { get; set; } + public string PhaseChangeTimelinePath { get; set; } + public long TimeLinePhase { get; set; } + public long EnterScenarioKey { get; set; } + public long ClearScenarioKey { get; set; } + public bool UseFixedEchelon { get; set; } + public long FixedEchelonId { get; set; } + public bool IsRaidScenarioBattle { get; set; } + public bool ShowSkillCard { get; set; } + public uint BossBGInfoKey { get; set; } + public long DamageToWorldBoss { get; set; } + public List AllyPassiveSkill { get; set; } + public List AllyPassiveSkillLevel { get; set; } + public bool SaveCurrentLocalBossHP { get; set; } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get; set; } + + public WorldRaidStageExcelT() { + this.Id = 0; + this.UseBossIndex = false; + this.UseBossAIPhaseSync = false; + this.WorldRaidBossGroupId = 0; + this.PortraitPath = null; + this.BGPath = null; + this.RaidCharacterId = 0; + this.BossCharacterId = null; + this.AssistCharacterLimitCount = 0; + this.WorldRaidDifficulty = SCHALE.Common.FlatData.WorldRaidDifficulty.None; + this.DifficultyOpenCondition = false; + this.RaidEnterAmount = 0; + this.ReEnterAmount = 0; + this.BattleDuration = 0; + this.GroundId = 0; + this.RaidBattleEndRewardGroupId = 0; + this.RaidRewardGroupId = 0; + this.BattleReadyTimelinePath = null; + this.BattleReadyTimelinePhaseStart = null; + this.BattleReadyTimelinePhaseEnd = null; + this.VictoryTimelinePath = null; + this.PhaseChangeTimelinePath = null; + this.TimeLinePhase = 0; + this.EnterScenarioKey = 0; + this.ClearScenarioKey = 0; + this.UseFixedEchelon = false; + this.FixedEchelonId = 0; + this.IsRaidScenarioBattle = false; + this.ShowSkillCard = false; + this.BossBGInfoKey = 0; + this.DamageToWorldBoss = 0; + this.AllyPassiveSkill = null; + this.AllyPassiveSkillLevel = null; + this.SaveCurrentLocalBossHP = false; + this.EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs index 6a56e67..9ae2ea1 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidStageExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidStageExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidStageExcelTableT UnPack() { + var _o = new WorldRaidStageExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidStageExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidStageExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidStageExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidStageExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidStageExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidStageExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidStageExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs index 864df24..f2820f1 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidStageRewardExcel : IFlatbufferObject @@ -64,6 +65,55 @@ public struct WorldRaidStageRewardExcel : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidStageRewardExcelT UnPack() { + var _o = new WorldRaidStageRewardExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidStageRewardExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidStageReward"); + _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); + _o.IsClearStageRewardHideInfo = TableEncryptionService.Convert(this.IsClearStageRewardHideInfo, key); + _o.ClearStageRewardProb = TableEncryptionService.Convert(this.ClearStageRewardProb, key); + _o.ClearStageRewardParcelType = TableEncryptionService.Convert(this.ClearStageRewardParcelType, key); + _o.ClearStageRewardParcelUniqueID = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueID, key); + _o.ClearStageRewardParcelUniqueName = TableEncryptionService.Convert(this.ClearStageRewardParcelUniqueName, key); + _o.ClearStageRewardAmount = TableEncryptionService.Convert(this.ClearStageRewardAmount, key); + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidStageRewardExcelT _o) { + if (_o == null) return default(Offset); + var _ClearStageRewardParcelUniqueName = _o.ClearStageRewardParcelUniqueName == null ? default(StringOffset) : builder.CreateString(_o.ClearStageRewardParcelUniqueName); + return CreateWorldRaidStageRewardExcel( + builder, + _o.GroupId, + _o.IsClearStageRewardHideInfo, + _o.ClearStageRewardProb, + _o.ClearStageRewardParcelType, + _o.ClearStageRewardParcelUniqueID, + _ClearStageRewardParcelUniqueName, + _o.ClearStageRewardAmount); + } +} + +public class WorldRaidStageRewardExcelT +{ + public long GroupId { get; set; } + public bool IsClearStageRewardHideInfo { get; set; } + public long ClearStageRewardProb { get; set; } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get; set; } + public long ClearStageRewardParcelUniqueID { get; set; } + public string ClearStageRewardParcelUniqueName { get; set; } + public long ClearStageRewardAmount { get; set; } + + public WorldRaidStageRewardExcelT() { + this.GroupId = 0; + this.IsClearStageRewardHideInfo = false; + this.ClearStageRewardProb = 0; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelUniqueID = 0; + this.ClearStageRewardParcelUniqueName = null; + this.ClearStageRewardAmount = 0; + } } diff --git a/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs index f3db138..f5a7d40 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs @@ -7,6 +7,7 @@ namespace SCHALE.Common.FlatData using global::System; using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct WorldRaidStageRewardExcelTable : IFlatbufferObject @@ -40,6 +41,37 @@ public struct WorldRaidStageRewardExcelTable : IFlatbufferObject int o = builder.EndTable(); return new Offset(o); } + public WorldRaidStageRewardExcelTableT UnPack() { + var _o = new WorldRaidStageRewardExcelTableT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(WorldRaidStageRewardExcelTableT _o) { + byte[] key = TableEncryptionService.CreateKey("WorldRaidStageRewardExcel"); + _o.DataList = new List(); + for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} + } + public static Offset Pack(FlatBufferBuilder builder, WorldRaidStageRewardExcelTableT _o) { + if (_o == null) return default(Offset); + var _DataList = default(VectorOffset); + if (_o.DataList != null) { + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidStageRewardExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); + } + return CreateWorldRaidStageRewardExcelTable( + builder, + _DataList); + } +} + +public class WorldRaidStageRewardExcelTableT +{ + public List DataList { get; set; } + + public WorldRaidStageRewardExcelTableT() { + this.DataList = null; + } } diff --git a/SCHALE.Common/SCHALE.Common.csproj b/SCHALE.Common/SCHALE.Common.csproj index 68dc9d7..b441db4 100644 --- a/SCHALE.Common/SCHALE.Common.csproj +++ b/SCHALE.Common/SCHALE.Common.csproj @@ -9,7 +9,6 @@ - diff --git a/SCHALE.GameServer/Controllers/Api/GatewayController.cs b/SCHALE.GameServer/Controllers/Api/GatewayController.cs index b78d879..5b8ba0f 100644 --- a/SCHALE.GameServer/Controllers/Api/GatewayController.cs +++ b/SCHALE.GameServer/Controllers/Api/GatewayController.cs @@ -14,6 +14,11 @@ namespace SCHALE.GameServer.Controllers.Api [Route("/api/[controller]")] public class GatewayController : ControllerBase { + static JsonSerializerOptions jsonOptions = new() // ignore null or fields not set, if this breaks anything, remove it, idk if it does but it makes the pcap logs look more readable + { + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault, + }; + IProtocolHandlerFactory protocolHandlerFactory; ILogger logger; @@ -84,24 +89,45 @@ namespace SCHALE.GameServer.Controllers.Api return Results.Json(new { - packet = JsonSerializer.Serialize(rsp, new JsonSerializerOptions() // ignore null or fields not set, if this breaks anything, remove it, idk if it does but it makes the pcap logs look more readable - { - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault, - }), - + packet = JsonSerializer.Serialize(rsp, jsonOptions), protocol = ((BasePacket)rsp).Protocol.ToString() }); protocolErrorRet: return Results.Json(new { - packet = JsonSerializer.Serialize(new ErrorPacket() { Reason = "Protocol not implemented (Server Error)", ErrorCode = WebAPIErrorCode.InternalServerError }), + packet = JsonSerializer.Serialize(new ErrorPacket() { Reason = "Protocol not implemented (Server Error)", ErrorCode = WebAPIErrorCode.InternalServerError }, jsonOptions), protocol = Protocol.Error.ToString() }); - } catch (Exception) + } + catch (WebAPIException ex) { - throw; + return Results.Json(new + { + packet = JsonSerializer.Serialize(new ErrorPacket() { Reason = string.IsNullOrEmpty(ex.Message) ? ex.ErrorCode.ToString() : ex.Message, ErrorCode = ex.ErrorCode }, jsonOptions), + protocol = Protocol.Error.ToString() + }); } } } + + public class WebAPIException : Exception + { + public WebAPIErrorCode ErrorCode { get; } + + public WebAPIException() + { + ErrorCode = WebAPIErrorCode.InternalServerError; + } + + public WebAPIException(WebAPIErrorCode errorCode) + { + ErrorCode = errorCode; + } + + public WebAPIException(WebAPIErrorCode errorCode, string message) : base(message) + { + ErrorCode = errorCode; + } + } } diff --git a/SCHALE.GameServer/Services/SessionKeyService.cs b/SCHALE.GameServer/Services/SessionKeyService.cs index be26b36..f17b468 100644 --- a/SCHALE.GameServer/Services/SessionKeyService.cs +++ b/SCHALE.GameServer/Services/SessionKeyService.cs @@ -1,5 +1,6 @@ using SCHALE.Common.Database; using SCHALE.Common.NetworkProtocol; +using SCHALE.GameServer.Controllers.Api; namespace SCHALE.GameServer.Services { @@ -26,7 +27,7 @@ namespace SCHALE.GameServer.Services return account; } - throw new InvalidSessionKeyException(); + throw new WebAPIException(WebAPIErrorCode.SessionNotFound, "Failed to get AccountDB from session"); } public SessionKey? Create(long publisherAccountId) @@ -65,11 +66,4 @@ namespace SCHALE.GameServer.Services public SessionKey? Create(long publisherAccountId); public AccountDB GetAccount(SessionKey sessionKey); } - - public class InvalidSessionKeyException : Exception - { - public InvalidSessionKeyException() : base() { } - public InvalidSessionKeyException(string message) : base(message) { } - public InvalidSessionKeyException(string message, Exception innerException) : base(message, innerException) { } - } }