diff --git a/SCHALE.Common/Crypto/TableEncryptionService.cs b/SCHALE.Common/Crypto/TableEncryptionService.cs new file mode 100644 index 0000000..dacbc39 --- /dev/null +++ b/SCHALE.Common/Crypto/TableEncryptionService.cs @@ -0,0 +1,39 @@ +using MersenneTwister; +using SCHALE.Common.Crypto.XXHash; +using System.Buffers.Binary; +using System.Text; + +namespace SCHALE.Common.Crypto +{ + public static class TableEncryptionService + { + /// + /// Used for decrypting .bytes flatbuffers bin. Doesn't work yet + /// + /// + /// + public static void XOR(string name, byte[] bytes) + { + 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); + + int i = 0; + int j = 0; + while (i < bytes.Length) + { + if (j == 4) + { + key = key = GC.AllocateUninitializedArray(sizeof(int)); + BinaryPrimitives.WriteInt32LittleEndian(key, mt.Next() + 1); + j = 0; + } + + bytes[i++] ^= key[j++]; + } + } + } +} diff --git a/SCHALE.Common/Crypto/TableService.cs b/SCHALE.Common/Crypto/TableService.cs new file mode 100644 index 0000000..7d60a9a --- /dev/null +++ b/SCHALE.Common/Crypto/TableService.cs @@ -0,0 +1,35 @@ +using MersenneTwister; +using SCHALE.Common.Crypto.XXHash; +using System.Text; + +namespace SCHALE.Common.Crypto +{ + public static class TableService + { + /// + /// General password gen by file name, encode to base64 for zips password + /// + /// + /// + /// + public static byte[] CreatePassword(string key, int length = 20) + { + byte[] password = GC.AllocateUninitializedArray((int)Math.Round((decimal)(length / 4 * 3))); + + using var xxhash = XXHash32.Create(); + xxhash.ComputeHash(Encoding.UTF8.GetBytes(key)); + + var mt = MTRandom.Create((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)); + i += 4; + } + + return password; + } + } +} diff --git a/SCHALE.Common/Crypto/XOR.cs b/SCHALE.Common/Crypto/XOR.cs index f5e3d73..df3cc52 100644 --- a/SCHALE.Common/Crypto/XOR.cs +++ b/SCHALE.Common/Crypto/XOR.cs @@ -2,11 +2,12 @@ { public static class XOR { - public static void Crypt(byte[] bytes, byte key, uint offset = 0) + public static void Crypt(byte[] bytes, byte[] key, uint offset = 0) { while (offset < bytes.Length) { - bytes[offset++] ^= key; + bytes[offset] ^= key[offset % key.Length]; + offset++; } } } diff --git a/SCHALE.Common/Crypto/XXHash.cs b/SCHALE.Common/Crypto/XXHash.cs new file mode 100644 index 0000000..5577394 --- /dev/null +++ b/SCHALE.Common/Crypto/XXHash.cs @@ -0,0 +1,590 @@ +/*MIT License + +Copyright (c) 2018 differentrain + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. */ + +/* + * The minimum requirements for YYProject.XXHash are .NET Framework 3.5, and C# 7.0 , + * it means that these code also apply to .NET Core 1.0 or later, Mono 4.6 or later and so on. + * If necessary, you can also rewrite these library to .NET Framework 2.0 with just a little work. + * Since all code (XXHash32 and XXHash64) are inside these file independently, + * I don't recommend using compiled library in your project. + * Instead, you can just copy the useful parts to your code, this is the benefit of MIT License. P:) + * + * If you are using .NET4.5 (or higher) or sibling frameworks, you can add conditional compilation + * symbol "HIGHER_VERSIONS" to optimize static-short-methods. + */ + +#define HIGHER_VERSIONS + +using System.Security.Cryptography; +#if HIGHER_VERSIONS +using System.Runtime.CompilerServices; +#endif + + +namespace SCHALE.Common.Crypto.XXHash +{ + //see details: https://github.com/Cyan4973/xxHash/blob/dev/doc/xxhash_spec.md + + /// + /// Represents the class which provides a implementation of the xxHash32 algorithm. + /// + /// + public sealed class XXHash32 : HashAlgorithm + { + private const uint PRIME32_1 = 2654435761U; + private const uint PRIME32_2 = 2246822519U; + private const uint PRIME32_3 = 3266489917U; + private const uint PRIME32_4 = 668265263U; + private const uint PRIME32_5 = 374761393U; + + private static readonly Func FuncGetLittleEndianUInt32; + private static readonly Func FuncGetFinalHashUInt32; + + private uint _Seed32; + + private uint _ACC32_1; + private uint _ACC32_2; + private uint _ACC32_3; + private uint _ACC32_4; + + private uint _Hash32; + + + private int _RemainingLength; + private long _TotalLength = 0; + private int _CurrentIndex; + private byte[] _CurrentArray; + + static XXHash32() + { + if (BitConverter.IsLittleEndian) + { + + FuncGetLittleEndianUInt32 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return *(uint*)(array + i); + } + } + }); + FuncGetFinalHashUInt32 = new Func(i => (i & 0x000000FFU) << 24 | (i & 0x0000FF00U) << 8 | (i & 0x00FF0000U) >> 8 | (i & 0xFF000000U) >> 24); + } + else + { + FuncGetLittleEndianUInt32 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return (uint)(array[i++] | (array[i++] << 8) | (array[i++] << 16) | (array[i] << 24)); + } + } + }); + FuncGetFinalHashUInt32 = new Func(i => i); + } + } + + /// + /// Creates an instance of class by default seed(0). + /// + /// + public new static XXHash32 Create() => new XXHash32(); + + /// + /// Creates an instance of the specified implementation of XXHash32 algorithm. + /// This method always throws . + /// + /// The hash algorithm implementation to use. + /// This method always throws . + /// This method is not be supported. + public new static XXHash32 Create(string algName) => throw new NotSupportedException("This method is not be supported."); + + /// + /// Initializes a new instance of the class by default seed(0). + /// + public XXHash32() => Initialize(0); + + /// + /// Initializes a new instance of the class, and sets the to the specified value. + /// + /// Represent the seed to be used for xxHash32 computing. + public XXHash32(uint seed) => Initialize(seed); + + /// + /// Gets the value of the computed hash code. + /// + /// Hash computation has not yet completed. + public uint HashUInt32 => State == 0 ? _Hash32 : throw new InvalidOperationException("Hash computation has not yet completed."); + + /// + /// Gets or sets the value of seed used by xxHash32 algorithm. + /// + /// Hash computation has not yet completed. + public uint Seed + { + get => _Seed32; + set + { + + if (value != _Seed32) + { + if (State != 0) throw new InvalidOperationException("Hash computation has not yet completed."); + _Seed32 = value; + Initialize(); + } + } + } + + + /// + /// Initializes this instance for new hash computing. + /// + public override void Initialize() + { + _ACC32_1 = _Seed32 + PRIME32_1 + PRIME32_2; + _ACC32_2 = _Seed32 + PRIME32_2; + _ACC32_3 = _Seed32 + 0; + _ACC32_4 = _Seed32 - PRIME32_1; + } + + + + /// + /// Routes data written to the object into the hash algorithm for computing the hash. + /// + /// The input to compute the hash code for. + /// The offset into the byte array from which to begin using data. + /// The number of bytes in the byte array to use as data. + protected override void HashCore(byte[] array, int ibStart, int cbSize) + { + if (State != 1) State = 1; + var size = cbSize - ibStart; + _RemainingLength = size & 15; + if (cbSize >= 16) + { + var limit = size - _RemainingLength; + do + { + _ACC32_1 = Round32(_ACC32_1, FuncGetLittleEndianUInt32(array, ibStart)); + ibStart += 4; + _ACC32_2 = Round32(_ACC32_2, FuncGetLittleEndianUInt32(array, ibStart)); + ibStart += 4; + _ACC32_3 = Round32(_ACC32_3, FuncGetLittleEndianUInt32(array, ibStart)); + ibStart += 4; + _ACC32_4 = Round32(_ACC32_4, FuncGetLittleEndianUInt32(array, ibStart)); + ibStart += 4; + } while (ibStart < limit); + } + _TotalLength += cbSize; + + if (_RemainingLength != 0) + { + _CurrentArray = array; + _CurrentIndex = ibStart; + } + } + + /// + /// Finalizes the hash computation after the last data is processed by the cryptographic stream object. + /// + /// The computed hash code. + protected override byte[] HashFinal() + { + if (_TotalLength >= 16) + { +#if HIGHER_VERSIONS + _Hash32 = RotateLeft32_1(_ACC32_1) + RotateLeft32_7(_ACC32_2) + RotateLeft32_12(_ACC32_3) + RotateLeft32_18(_ACC32_4); +#else + _Hash32 = RotateLeft32(_ACC32_1, 1) + RotateLeft32(_ACC32_2, 7) + RotateLeft32(_ACC32_3, 12) + RotateLeft32(_ACC32_4, 18); +#endif + } + else + { + _Hash32 = _Seed32 + PRIME32_5; + } + + _Hash32 += (uint)_TotalLength; + + while (_RemainingLength >= 4) + { +#if HIGHER_VERSIONS + _Hash32 = RotateLeft32_17(_Hash32 + FuncGetLittleEndianUInt32(_CurrentArray, _CurrentIndex) * PRIME32_3) * PRIME32_4; +#else + _Hash32 = RotateLeft32(_Hash32 + FuncGetLittleEndianUInt32(_CurrentArray, _CurrentIndex) * PRIME32_3, 17) * PRIME32_4; +#endif + _CurrentIndex += 4; + _RemainingLength -= 4; + } + unsafe + { + fixed (byte* arrayPtr = _CurrentArray) + { + while (_RemainingLength-- >= 1) + { +#if HIGHER_VERSIONS + _Hash32 = RotateLeft32_11(_Hash32 + arrayPtr[_CurrentIndex++] * PRIME32_5) * PRIME32_1; +#else + _Hash32 = RotateLeft32(_Hash32 + arrayPtr[_CurrentIndex++] * PRIME32_5, 11) * PRIME32_1; +#endif + } + } + } + _Hash32 = (_Hash32 ^ (_Hash32 >> 15)) * PRIME32_2; + _Hash32 = (_Hash32 ^ (_Hash32 >> 13)) * PRIME32_3; + _Hash32 ^= _Hash32 >> 16; + + _TotalLength = State = 0; + + return BitConverter.GetBytes(FuncGetFinalHashUInt32(_Hash32)); + } + +#if HIGHER_VERSIONS + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint Round32(uint input, uint value) => RotateLeft32_13(input + (value * PRIME32_2)) * PRIME32_1; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_1(uint value) => (value << 1) | (value >> 31); //_ACC32_1 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_7(uint value) => (value << 7) | (value >> 25); //_ACC32_2 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_11(uint value) => (value << 11) | (value >> 21); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_12(uint value) => (value << 12) | (value >> 20);// _ACC32_3 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_13(uint value) => (value << 13) | (value >> 19); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_17(uint value) => (value << 17) | (value >> 15); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static uint RotateLeft32_18(uint value) => (value << 18) | (value >> 14); //_ACC32_4 +#else + private static uint Round32(uint input, uint value) => RotateLeft32(input + (value * PRIME32_2), 13) * PRIME32_1; + + private static uint RotateLeft32(uint value, int count) => (value << count) | (value >> (32 - count)); +#endif + private void Initialize(uint seed) + { + HashSizeValue = 32; + _Seed32 = seed; + Initialize(); + } + + } + + /// + /// Represents the class which provides a implementation of the xxHash64 algorithm. + /// + /// + public sealed class XXHash64 : HashAlgorithm + { + private const ulong PRIME64_1 = 11400714785074694791UL; + private const ulong PRIME64_2 = 14029467366897019727UL; + private const ulong PRIME64_3 = 1609587929392839161UL; + private const ulong PRIME64_4 = 9650029242287828579UL; + private const ulong PRIME64_5 = 2870177450012600261UL; + + private static readonly Func FuncGetLittleEndianUInt32; + private static readonly Func FuncGetLittleEndianUInt64; + private static readonly Func FuncGetFinalHashUInt64; + + private ulong _Seed64; + + private ulong _ACC64_1; + private ulong _ACC64_2; + private ulong _ACC64_3; + private ulong _ACC64_4; + private ulong _Hash64; + + private int _RemainingLength; + private long _TotalLength; + private int _CurrentIndex; + private byte[] _CurrentArray; + + + + static XXHash64() + { + if (BitConverter.IsLittleEndian) + { + FuncGetLittleEndianUInt32 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return *(uint*)(array + i); + } + } + }); + FuncGetLittleEndianUInt64 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return *(ulong*)(array + i); + } + } + }); + FuncGetFinalHashUInt64 = new Func(i => (i & 0x00000000000000FFUL) << 56 | (i & 0x000000000000FF00UL) << 40 | (i & 0x0000000000FF0000UL) << 24 | (i & 0x00000000FF000000UL) << 8 | (i & 0x000000FF00000000UL) >> 8 | (i & 0x0000FF0000000000UL) >> 24 | (i & 0x00FF000000000000UL) >> 40 | (i & 0xFF00000000000000UL) >> 56); + } + else + { + FuncGetLittleEndianUInt32 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return (uint)(array[i++] | (array[i++] << 8) | (array[i++] << 16) | (array[i] << 24)); + } + } + }); + FuncGetLittleEndianUInt64 = new Func((x, i) => + { + unsafe + { + fixed (byte* array = x) + { + return array[i++] | ((ulong)array[i++] << 8) | ((ulong)array[i++] << 16) | ((ulong)array[i++] << 24) | ((ulong)array[i++] << 32) | ((ulong)array[i++] << 40) | ((ulong)array[i++] << 48) | ((ulong)array[i] << 56); + } + } + }); + FuncGetFinalHashUInt64 = new Func(i => i); + } + } + + /// + /// Creates an instance of class by default seed(0). + /// + /// + public new static XXHash64 Create() => new XXHash64(); + + /// + /// Creates an instance of the specified implementation of XXHash64 algorithm. + /// This method always throws . + /// + /// The hash algorithm implementation to use. + /// This method always throws . + /// This method is not be supported. + public new static XXHash64 Create(string algName) => throw new NotSupportedException("This method is not be supported."); + + /// + /// Initializes a new instance of the class by default seed(0). + /// + public XXHash64() => Initialize(0); + + + /// + /// Initializes a new instance of the class, and sets the to the specified value. + /// + /// Represent the seed to be used for xxHash64 computing. + public XXHash64(uint seed) => Initialize(seed); + + + /// + /// Gets the value of the computed hash code. + /// + /// Computation has not yet completed. + public ulong HashUInt64 => State == 0 ? _Hash64 : throw new InvalidOperationException("Computation has not yet completed."); + + /// + /// Gets or sets the value of seed used by xxHash64 algorithm. + /// + /// Computation has not yet completed. + public ulong Seed + { + get => _Seed64; + set + { + if (value != _Seed64) + { + if (State != 0) throw new InvalidOperationException("Computation has not yet completed."); + _Seed64 = value; + Initialize(); + } + } + } + + + /// + /// Initializes this instance for new hash computing. + /// + public override void Initialize() + { + _ACC64_1 = _Seed64 + PRIME64_1 + PRIME64_2; + _ACC64_2 = _Seed64 + PRIME64_2; + _ACC64_3 = _Seed64 + 0; + _ACC64_4 = _Seed64 - PRIME64_1; + } + + /// + /// Routes data written to the object into the hash algorithm for computing the hash. + /// + /// The input to compute the hash code for. + /// The offset into the byte array from which to begin using data. + /// The number of bytes in the byte array to use as data. + protected override void HashCore(byte[] array, int ibStart, int cbSize) + { + if (State != 1) State = 1; + var size = cbSize - ibStart; + _RemainingLength = size & 31; + if (cbSize >= 32) + { + var limit = size - _RemainingLength; + do + { + _ACC64_1 = Round64(_ACC64_1, FuncGetLittleEndianUInt64(array, ibStart)); + ibStart += 8; + _ACC64_2 = Round64(_ACC64_2, FuncGetLittleEndianUInt64(array, ibStart)); + ibStart += 8; + _ACC64_3 = Round64(_ACC64_3, FuncGetLittleEndianUInt64(array, ibStart)); + ibStart += 8; + _ACC64_4 = Round64(_ACC64_4, FuncGetLittleEndianUInt64(array, ibStart)); + ibStart += 8; + } while (ibStart < limit); + } + _TotalLength += cbSize; + if (_RemainingLength != 0) + { + _CurrentArray = array; + _CurrentIndex = ibStart; + } + } + + /// + /// Finalizes the hash computation after the last data is processed by the cryptographic stream object. + /// + /// The computed hash code. + protected override byte[] HashFinal() + { + if (_TotalLength >= 32) + { +#if HIGHER_VERSIONS + _Hash64 = RotateLeft64_1(_ACC64_1) + RotateLeft64_7(_ACC64_2) + RotateLeft64_12(_ACC64_3) + RotateLeft64_18(_ACC64_4); +#else + + _Hash64 = RotateLeft64(_ACC64_1, 1) + RotateLeft64(_ACC64_2, 7) + RotateLeft64(_ACC64_3, 12) + RotateLeft64(_ACC64_4, 18); +#endif + _Hash64 = MergeRound64(_Hash64, _ACC64_1); + _Hash64 = MergeRound64(_Hash64, _ACC64_2); + _Hash64 = MergeRound64(_Hash64, _ACC64_3); + _Hash64 = MergeRound64(_Hash64, _ACC64_4); + } + else + { + _Hash64 = _Seed64 + PRIME64_5; + } + + _Hash64 += (ulong)_TotalLength; + + while (_RemainingLength >= 8) + { +#if HIGHER_VERSIONS + _Hash64 = RotateLeft64_27(_Hash64 ^ Round64(0, FuncGetLittleEndianUInt64(_CurrentArray, _CurrentIndex))) * PRIME64_1 + PRIME64_4; +#else + _Hash64 = RotateLeft64(_Hash64 ^ Round64(0, FuncGetLittleEndianUInt64(_CurrentArray, _CurrentIndex)), 27) * PRIME64_1 + PRIME64_4; +#endif + _CurrentIndex += 8; + _RemainingLength -= 8; + } + + while (_RemainingLength >= 4) + { +#if HIGHER_VERSIONS + _Hash64 = RotateLeft64_23(_Hash64 ^ (FuncGetLittleEndianUInt32(_CurrentArray, _CurrentIndex) * PRIME64_1)) * PRIME64_2 + PRIME64_3; +#else + _Hash64 = RotateLeft64(_Hash64 ^ (FuncGetLittleEndianUInt32(_CurrentArray, _CurrentIndex) * PRIME64_1), 23) * PRIME64_2 + PRIME64_3; +#endif + _CurrentIndex += 4; + _RemainingLength -= 4; + } + + unsafe + { + fixed (byte* arrayPtr = _CurrentArray) + { + while (_RemainingLength-- >= 1) + { +#if HIGHER_VERSIONS + _Hash64 = RotateLeft64_11(_Hash64 ^ (arrayPtr[_CurrentIndex++] * PRIME64_5)) * PRIME64_1; +#else + _Hash64 = RotateLeft64(_Hash64 ^ (arrayPtr[_CurrentIndex++] * PRIME64_5), 11) * PRIME64_1; +#endif + } + } + } + + _Hash64 = (_Hash64 ^ (_Hash64 >> 33)) * PRIME64_2; + _Hash64 = (_Hash64 ^ (_Hash64 >> 29)) * PRIME64_3; + _Hash64 ^= _Hash64 >> 32; + + _TotalLength = State = 0; + return BitConverter.GetBytes(FuncGetFinalHashUInt64(_Hash64)); + } + +#if HIGHER_VERSIONS + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong MergeRound64(ulong input, ulong value) => (input ^ Round64(0, value)) * PRIME64_1 + PRIME64_4; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong Round64(ulong input, ulong value) => RotateLeft64_31(input + (value * PRIME64_2)) * PRIME64_1; + + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_1(ulong value) => (value << 1) | (value >> 63); // _ACC64_1 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_7(ulong value) => (value << 7) | (value >> 57); // _ACC64_2 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_11(ulong value) => (value << 11) | (value >> 53); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_12(ulong value) => (value << 12) | (value >> 52);// _ACC64_3 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_18(ulong value) => (value << 18) | (value >> 46); // _ACC64_4 + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_23(ulong value) => (value << 23) | (value >> 41); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_27(ulong value) => (value << 27) | (value >> 37); + [MethodImpl(MethodImplOptions.AggressiveInlining)] + private static ulong RotateLeft64_31(ulong value) => (value << 31) | (value >> 33); +#else + private static ulong MergeRound64(ulong input, ulong value) => (input ^ Round64(0, value)) * PRIME64_1 + PRIME64_4; + + private static ulong Round64(ulong input, ulong value) => RotateLeft64(input + (value * PRIME64_2), 31) * PRIME64_1; + + private static ulong RotateLeft64(ulong value, int count) => (value << count) | (value >> (64 - count)); +#endif + + + private void Initialize(ulong seed) + { + HashSizeValue = 64; + _Seed64 = seed; + Initialize(); + } + + + } + +} \ No newline at end of file diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs new file mode 100644 index 0000000..477567e --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs @@ -0,0 +1,147 @@ +// +// 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 AcademyFavorScheduleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyFavorScheduleExcel GetRootAsAcademyFavorScheduleExcel(ByteBuffer _bb) { return GetRootAsAcademyFavorScheduleExcel(_bb, new AcademyFavorScheduleExcel()); } + public static AcademyFavorScheduleExcel GetRootAsAcademyFavorScheduleExcel(ByteBuffer _bb, AcademyFavorScheduleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyFavorScheduleExcel __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 CharacterId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScheduleGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OrderInGroup { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Location { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocationBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetLocationBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetLocationArray() { return __p.__vector_as_array(12); } + public uint LocalizeScenarioId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long FavorRank { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SecretStoneAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioSriptGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(22); 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(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(22); 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(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(24); } + public long RewardAmount(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(26); } + + public static Offset CreateAcademyFavorScheduleExcel(FlatBufferBuilder builder, + long Id = 0, + long CharacterId = 0, + long ScheduleGroupId = 0, + long OrderInGroup = 0, + StringOffset LocationOffset = default(StringOffset), + uint LocalizeScenarioId = 0, + long FavorRank = 0, + long SecretStoneAmount = 0, + long ScenarioSriptGroupId = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(12); + AcademyFavorScheduleExcel.AddScenarioSriptGroupId(builder, ScenarioSriptGroupId); + AcademyFavorScheduleExcel.AddSecretStoneAmount(builder, SecretStoneAmount); + AcademyFavorScheduleExcel.AddFavorRank(builder, FavorRank); + AcademyFavorScheduleExcel.AddOrderInGroup(builder, OrderInGroup); + AcademyFavorScheduleExcel.AddScheduleGroupId(builder, ScheduleGroupId); + AcademyFavorScheduleExcel.AddCharacterId(builder, CharacterId); + AcademyFavorScheduleExcel.AddId(builder, Id); + AcademyFavorScheduleExcel.AddRewardAmount(builder, RewardAmountOffset); + AcademyFavorScheduleExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + AcademyFavorScheduleExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + AcademyFavorScheduleExcel.AddLocalizeScenarioId(builder, LocalizeScenarioId); + AcademyFavorScheduleExcel.AddLocation(builder, LocationOffset); + return AcademyFavorScheduleExcel.EndAcademyFavorScheduleExcel(builder); + } + + public static void StartAcademyFavorScheduleExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(1, characterId, 0); } + public static void AddScheduleGroupId(FlatBufferBuilder builder, long scheduleGroupId) { builder.AddLong(2, scheduleGroupId, 0); } + public static void AddOrderInGroup(FlatBufferBuilder builder, long orderInGroup) { builder.AddLong(3, orderInGroup, 0); } + public static void AddLocation(FlatBufferBuilder builder, StringOffset locationOffset) { builder.AddOffset(4, locationOffset.Value, 0); } + public static void AddLocalizeScenarioId(FlatBufferBuilder builder, uint localizeScenarioId) { builder.AddUint(5, localizeScenarioId, 0); } + public static void AddFavorRank(FlatBufferBuilder builder, long favorRank) { builder.AddLong(6, favorRank, 0); } + public static void AddSecretStoneAmount(FlatBufferBuilder builder, long secretStoneAmount) { builder.AddLong(7, secretStoneAmount, 0); } + public static void AddScenarioSriptGroupId(FlatBufferBuilder builder, long scenarioSriptGroupId) { builder.AddLong(8, scenarioSriptGroupId, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(9, 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(10, 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 AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(11, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndAcademyFavorScheduleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyFavorScheduleExcelVerify +{ + 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 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ScheduleGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*OrderInGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*Location*/, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeScenarioId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*FavorRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*SecretStoneAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ScenarioSriptGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs new file mode 100644 index 0000000..83fbe51 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyFavorScheduleExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyFavorScheduleExcelTable GetRootAsAcademyFavorScheduleExcelTable(ByteBuffer _bb) { return GetRootAsAcademyFavorScheduleExcelTable(_bb, new AcademyFavorScheduleExcelTable()); } + public static AcademyFavorScheduleExcelTable GetRootAsAcademyFavorScheduleExcelTable(ByteBuffer _bb, AcademyFavorScheduleExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyFavorScheduleExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyFavorScheduleExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyFavorScheduleExcel?)(new SCHALE.Common.FlatData.AcademyFavorScheduleExcel()).__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 CreateAcademyFavorScheduleExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyFavorScheduleExcelTable.AddDataList(builder, DataListOffset); + return AcademyFavorScheduleExcelTable.EndAcademyFavorScheduleExcelTable(builder); + } + + public static void StartAcademyFavorScheduleExcelTable(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 EndAcademyFavorScheduleExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyFavorScheduleExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyFavorScheduleExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyLocationExcel.cs b/SCHALE.Common/FlatData/AcademyLocationExcel.cs new file mode 100644 index 0000000..5757bb4 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyLocationExcel.cs @@ -0,0 +1,126 @@ +// +// 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 AcademyLocationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyLocationExcel GetRootAsAcademyLocationExcel(ByteBuffer _bb) { return GetRootAsAcademyLocationExcel(_bb, new AcademyLocationExcel()); } + public static AcademyLocationExcel GetRootAsAcademyLocationExcel(ByteBuffer _bb, AcademyLocationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyLocationExcel __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 uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string PrefabPath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPrefabPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPrefabPathArray() { return __p.__vector_as_array(8); } + public string IconImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetIconImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetIconImagePathArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.School OpenCondition(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.School)0; } + public int OpenConditionLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetOpenConditionBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetOpenConditionBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.School[] GetOpenConditionArray() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.School[] a = new SCHALE.Common.FlatData.School[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.School)__p.bb.GetInt(p + i * 4); } return a; } + public long OpenConditionCount(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int OpenConditionCountLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetOpenConditionCountBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetOpenConditionCountBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetOpenConditionCountArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { 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 RewardParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenTeacherRank { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateAcademyLocationExcel(FlatBufferBuilder builder, + long Id = 0, + uint LocalizeEtcId = 0, + StringOffset PrefabPathOffset = default(StringOffset), + StringOffset IconImagePathOffset = default(StringOffset), + VectorOffset OpenConditionOffset = default(VectorOffset), + VectorOffset OpenConditionCountOffset = default(VectorOffset), + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long OpenTeacherRank = 0) { + builder.StartTable(9); + AcademyLocationExcel.AddOpenTeacherRank(builder, OpenTeacherRank); + AcademyLocationExcel.AddRewardParcelId(builder, RewardParcelId); + AcademyLocationExcel.AddId(builder, Id); + AcademyLocationExcel.AddRewardParcelType(builder, RewardParcelType); + AcademyLocationExcel.AddOpenConditionCount(builder, OpenConditionCountOffset); + AcademyLocationExcel.AddOpenCondition(builder, OpenConditionOffset); + AcademyLocationExcel.AddIconImagePath(builder, IconImagePathOffset); + AcademyLocationExcel.AddPrefabPath(builder, PrefabPathOffset); + AcademyLocationExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return AcademyLocationExcel.EndAcademyLocationExcel(builder); + } + + public static void StartAcademyLocationExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + 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 AddPrefabPath(FlatBufferBuilder builder, StringOffset prefabPathOffset) { builder.AddOffset(2, prefabPathOffset.Value, 0); } + public static void AddIconImagePath(FlatBufferBuilder builder, StringOffset iconImagePathOffset) { builder.AddOffset(3, iconImagePathOffset.Value, 0); } + public static void AddOpenCondition(FlatBufferBuilder builder, VectorOffset openConditionOffset) { builder.AddOffset(4, openConditionOffset.Value, 0); } + public static VectorOffset CreateOpenConditionVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] 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 CreateOpenConditionVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenConditionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenConditionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOpenConditionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddOpenConditionCount(FlatBufferBuilder builder, VectorOffset openConditionCountOffset) { builder.AddOffset(5, openConditionCountOffset.Value, 0); } + public static VectorOffset CreateOpenConditionCountVector(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 CreateOpenConditionCountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenConditionCountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenConditionCountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOpenConditionCountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(6, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(7, rewardParcelId, 0); } + public static void AddOpenTeacherRank(FlatBufferBuilder builder, long openTeacherRank) { builder.AddLong(8, openTeacherRank, 0); } + public static Offset EndAcademyLocationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyLocationExcelVerify +{ + 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 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*PrefabPath*/, false) + && verifier.VerifyString(tablePos, 10 /*IconImagePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*OpenCondition*/, 4 /*SCHALE.Common.FlatData.School*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*OpenConditionCount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*OpenTeacherRank*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs b/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs new file mode 100644 index 0000000..776616a --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyLocationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyLocationExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyLocationExcelTable GetRootAsAcademyLocationExcelTable(ByteBuffer _bb) { return GetRootAsAcademyLocationExcelTable(_bb, new AcademyLocationExcelTable()); } + public static AcademyLocationExcelTable GetRootAsAcademyLocationExcelTable(ByteBuffer _bb, AcademyLocationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyLocationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyLocationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyLocationExcel?)(new SCHALE.Common.FlatData.AcademyLocationExcel()).__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 CreateAcademyLocationExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyLocationExcelTable.AddDataList(builder, DataListOffset); + return AcademyLocationExcelTable.EndAcademyLocationExcelTable(builder); + } + + public static void StartAcademyLocationExcelTable(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 EndAcademyLocationExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyLocationExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyLocationExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs b/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs new file mode 100644 index 0000000..efa1937 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyLocationRankExcel.cs @@ -0,0 +1,60 @@ +// +// 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 AcademyLocationRankExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyLocationRankExcel GetRootAsAcademyLocationRankExcel(ByteBuffer _bb) { return GetRootAsAcademyLocationRankExcel(_bb, new AcademyLocationRankExcel()); } + public static AcademyLocationRankExcel GetRootAsAcademyLocationRankExcel(ByteBuffer _bb, AcademyLocationRankExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyLocationRankExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Rank { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankExp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TotalExp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateAcademyLocationRankExcel(FlatBufferBuilder builder, + long Rank = 0, + long RankExp = 0, + long TotalExp = 0) { + builder.StartTable(3); + AcademyLocationRankExcel.AddTotalExp(builder, TotalExp); + AcademyLocationRankExcel.AddRankExp(builder, RankExp); + AcademyLocationRankExcel.AddRank(builder, Rank); + return AcademyLocationRankExcel.EndAcademyLocationRankExcel(builder); + } + + public static void StartAcademyLocationRankExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddRank(FlatBufferBuilder builder, long rank) { builder.AddLong(0, rank, 0); } + public static void AddRankExp(FlatBufferBuilder builder, long rankExp) { builder.AddLong(1, rankExp, 0); } + public static void AddTotalExp(FlatBufferBuilder builder, long totalExp) { builder.AddLong(2, totalExp, 0); } + public static Offset EndAcademyLocationRankExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyLocationRankExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Rank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RankExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*TotalExp*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs b/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs new file mode 100644 index 0000000..59f1f97 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyLocationRankExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyLocationRankExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyLocationRankExcelTable GetRootAsAcademyLocationRankExcelTable(ByteBuffer _bb) { return GetRootAsAcademyLocationRankExcelTable(_bb, new AcademyLocationRankExcelTable()); } + public static AcademyLocationRankExcelTable GetRootAsAcademyLocationRankExcelTable(ByteBuffer _bb, AcademyLocationRankExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyLocationRankExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyLocationRankExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyLocationRankExcel?)(new SCHALE.Common.FlatData.AcademyLocationRankExcel()).__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 CreateAcademyLocationRankExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyLocationRankExcelTable.AddDataList(builder, DataListOffset); + return AcademyLocationRankExcelTable.EndAcademyLocationRankExcelTable(builder); + } + + public static void StartAcademyLocationRankExcelTable(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 EndAcademyLocationRankExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyLocationRankExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyLocationRankExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessageConditions.cs b/SCHALE.Common/FlatData/AcademyMessageConditions.cs new file mode 100644 index 0000000..2da20bc --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessageConditions.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AcademyMessageConditions : int +{ + None = 0, + FavorRankUp = 1, + AcademySchedule = 2, + Answer = 3, + Feedback = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/AcademyMessageTypes.cs b/SCHALE.Common/FlatData/AcademyMessageTypes.cs new file mode 100644 index 0000000..df511c9 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessageTypes.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AcademyMessageTypes : int +{ + None = 0, + Text = 1, + Image = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs new file mode 100644 index 0000000..fed1f18 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs @@ -0,0 +1,133 @@ +// +// 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 AcademyMessanger1Excel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger1Excel GetRootAsAcademyMessanger1Excel(ByteBuffer _bb) { return GetRootAsAcademyMessanger1Excel(_bb, new AcademyMessanger1Excel()); } + public static AcademyMessanger1Excel GetRootAsAcademyMessanger1Excel(ByteBuffer _bb, AcademyMessanger1Excel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger1Excel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(26); } + public string MessageKR { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageKRBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetMessageKRBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetMessageKRArray() { return __p.__vector_as_array(28); } + public string MessageJP { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageJPBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetMessageJPBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetMessageJPArray() { return __p.__vector_as_array(30); } + + public static Offset CreateAcademyMessanger1Excel(FlatBufferBuilder builder, + long MessageGroupId = 0, + long Id = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + long ConditionValue = 0, + long PreConditionGroupId = 0, + long PreConditionFavorScheduleId = 0, + long FavorScheduleId = 0, + long NextGroupId = 0, + long FeedbackTimeMillisec = 0, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + StringOffset ImagePathOffset = default(StringOffset), + StringOffset MessageKROffset = default(StringOffset), + StringOffset MessageJPOffset = default(StringOffset)) { + builder.StartTable(14); + AcademyMessanger1Excel.AddFeedbackTimeMillisec(builder, FeedbackTimeMillisec); + AcademyMessanger1Excel.AddNextGroupId(builder, NextGroupId); + AcademyMessanger1Excel.AddFavorScheduleId(builder, FavorScheduleId); + AcademyMessanger1Excel.AddPreConditionFavorScheduleId(builder, PreConditionFavorScheduleId); + AcademyMessanger1Excel.AddPreConditionGroupId(builder, PreConditionGroupId); + AcademyMessanger1Excel.AddConditionValue(builder, ConditionValue); + AcademyMessanger1Excel.AddCharacterId(builder, CharacterId); + AcademyMessanger1Excel.AddId(builder, Id); + AcademyMessanger1Excel.AddMessageGroupId(builder, MessageGroupId); + AcademyMessanger1Excel.AddMessageJP(builder, MessageJPOffset); + AcademyMessanger1Excel.AddMessageKR(builder, MessageKROffset); + AcademyMessanger1Excel.AddImagePath(builder, ImagePathOffset); + AcademyMessanger1Excel.AddMessageType(builder, MessageType); + AcademyMessanger1Excel.AddMessageCondition(builder, MessageCondition); + return AcademyMessanger1Excel.EndAcademyMessanger1Excel(builder); + } + + public static void StartAcademyMessanger1Excel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddMessageGroupId(FlatBufferBuilder builder, long messageGroupId) { builder.AddLong(0, messageGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(2, characterId, 0); } + public static void AddMessageCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageConditions messageCondition) { builder.AddInt(3, (int)messageCondition, 0); } + public static void AddConditionValue(FlatBufferBuilder builder, long conditionValue) { builder.AddLong(4, conditionValue, 0); } + public static void AddPreConditionGroupId(FlatBufferBuilder builder, long preConditionGroupId) { builder.AddLong(5, preConditionGroupId, 0); } + public static void AddPreConditionFavorScheduleId(FlatBufferBuilder builder, long preConditionFavorScheduleId) { builder.AddLong(6, preConditionFavorScheduleId, 0); } + public static void AddFavorScheduleId(FlatBufferBuilder builder, long favorScheduleId) { builder.AddLong(7, favorScheduleId, 0); } + public static void AddNextGroupId(FlatBufferBuilder builder, long nextGroupId) { builder.AddLong(8, nextGroupId, 0); } + public static void AddFeedbackTimeMillisec(FlatBufferBuilder builder, long feedbackTimeMillisec) { builder.AddLong(9, feedbackTimeMillisec, 0); } + public static void AddMessageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageTypes messageType) { builder.AddInt(10, (int)messageType, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(11, imagePathOffset.Value, 0); } + public static void AddMessageKR(FlatBufferBuilder builder, StringOffset messageKROffset) { builder.AddOffset(12, messageKROffset.Value, 0); } + public static void AddMessageJP(FlatBufferBuilder builder, StringOffset messageJPOffset) { builder.AddOffset(13, messageJPOffset.Value, 0); } + public static Offset EndAcademyMessanger1Excel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger1ExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MessageGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*MessageCondition*/, 4 /*SCHALE.Common.FlatData.AcademyMessageConditions*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConditionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PreConditionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*PreConditionFavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*NextGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*FeedbackTimeMillisec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*MessageType*/, 4 /*SCHALE.Common.FlatData.AcademyMessageTypes*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ImagePath*/, false) + && verifier.VerifyString(tablePos, 28 /*MessageKR*/, false) + && verifier.VerifyString(tablePos, 30 /*MessageJP*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs new file mode 100644 index 0000000..2bef73f --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger1ExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyMessanger1ExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger1ExcelTable GetRootAsAcademyMessanger1ExcelTable(ByteBuffer _bb) { return GetRootAsAcademyMessanger1ExcelTable(_bb, new AcademyMessanger1ExcelTable()); } + public static AcademyMessanger1ExcelTable GetRootAsAcademyMessanger1ExcelTable(ByteBuffer _bb, AcademyMessanger1ExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger1ExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyMessanger1Excel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessanger1Excel?)(new SCHALE.Common.FlatData.AcademyMessanger1Excel()).__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 CreateAcademyMessanger1ExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyMessanger1ExcelTable.AddDataList(builder, DataListOffset); + return AcademyMessanger1ExcelTable.EndAcademyMessanger1ExcelTable(builder); + } + + public static void StartAcademyMessanger1ExcelTable(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 EndAcademyMessanger1ExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger1ExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyMessanger1ExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs new file mode 100644 index 0000000..7d2ff22 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs @@ -0,0 +1,133 @@ +// +// 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 AcademyMessanger2Excel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger2Excel GetRootAsAcademyMessanger2Excel(ByteBuffer _bb) { return GetRootAsAcademyMessanger2Excel(_bb, new AcademyMessanger2Excel()); } + public static AcademyMessanger2Excel GetRootAsAcademyMessanger2Excel(ByteBuffer _bb, AcademyMessanger2Excel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger2Excel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(26); } + public string MessageKR { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageKRBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetMessageKRBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetMessageKRArray() { return __p.__vector_as_array(28); } + public string MessageJP { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageJPBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetMessageJPBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetMessageJPArray() { return __p.__vector_as_array(30); } + + public static Offset CreateAcademyMessanger2Excel(FlatBufferBuilder builder, + long MessageGroupId = 0, + long Id = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + long ConditionValue = 0, + long PreConditionGroupId = 0, + long PreConditionFavorScheduleId = 0, + long FavorScheduleId = 0, + long NextGroupId = 0, + long FeedbackTimeMillisec = 0, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + StringOffset ImagePathOffset = default(StringOffset), + StringOffset MessageKROffset = default(StringOffset), + StringOffset MessageJPOffset = default(StringOffset)) { + builder.StartTable(14); + AcademyMessanger2Excel.AddFeedbackTimeMillisec(builder, FeedbackTimeMillisec); + AcademyMessanger2Excel.AddNextGroupId(builder, NextGroupId); + AcademyMessanger2Excel.AddFavorScheduleId(builder, FavorScheduleId); + AcademyMessanger2Excel.AddPreConditionFavorScheduleId(builder, PreConditionFavorScheduleId); + AcademyMessanger2Excel.AddPreConditionGroupId(builder, PreConditionGroupId); + AcademyMessanger2Excel.AddConditionValue(builder, ConditionValue); + AcademyMessanger2Excel.AddCharacterId(builder, CharacterId); + AcademyMessanger2Excel.AddId(builder, Id); + AcademyMessanger2Excel.AddMessageGroupId(builder, MessageGroupId); + AcademyMessanger2Excel.AddMessageJP(builder, MessageJPOffset); + AcademyMessanger2Excel.AddMessageKR(builder, MessageKROffset); + AcademyMessanger2Excel.AddImagePath(builder, ImagePathOffset); + AcademyMessanger2Excel.AddMessageType(builder, MessageType); + AcademyMessanger2Excel.AddMessageCondition(builder, MessageCondition); + return AcademyMessanger2Excel.EndAcademyMessanger2Excel(builder); + } + + public static void StartAcademyMessanger2Excel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddMessageGroupId(FlatBufferBuilder builder, long messageGroupId) { builder.AddLong(0, messageGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(2, characterId, 0); } + public static void AddMessageCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageConditions messageCondition) { builder.AddInt(3, (int)messageCondition, 0); } + public static void AddConditionValue(FlatBufferBuilder builder, long conditionValue) { builder.AddLong(4, conditionValue, 0); } + public static void AddPreConditionGroupId(FlatBufferBuilder builder, long preConditionGroupId) { builder.AddLong(5, preConditionGroupId, 0); } + public static void AddPreConditionFavorScheduleId(FlatBufferBuilder builder, long preConditionFavorScheduleId) { builder.AddLong(6, preConditionFavorScheduleId, 0); } + public static void AddFavorScheduleId(FlatBufferBuilder builder, long favorScheduleId) { builder.AddLong(7, favorScheduleId, 0); } + public static void AddNextGroupId(FlatBufferBuilder builder, long nextGroupId) { builder.AddLong(8, nextGroupId, 0); } + public static void AddFeedbackTimeMillisec(FlatBufferBuilder builder, long feedbackTimeMillisec) { builder.AddLong(9, feedbackTimeMillisec, 0); } + public static void AddMessageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageTypes messageType) { builder.AddInt(10, (int)messageType, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(11, imagePathOffset.Value, 0); } + public static void AddMessageKR(FlatBufferBuilder builder, StringOffset messageKROffset) { builder.AddOffset(12, messageKROffset.Value, 0); } + public static void AddMessageJP(FlatBufferBuilder builder, StringOffset messageJPOffset) { builder.AddOffset(13, messageJPOffset.Value, 0); } + public static Offset EndAcademyMessanger2Excel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger2ExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MessageGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*MessageCondition*/, 4 /*SCHALE.Common.FlatData.AcademyMessageConditions*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConditionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PreConditionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*PreConditionFavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*NextGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*FeedbackTimeMillisec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*MessageType*/, 4 /*SCHALE.Common.FlatData.AcademyMessageTypes*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ImagePath*/, false) + && verifier.VerifyString(tablePos, 28 /*MessageKR*/, false) + && verifier.VerifyString(tablePos, 30 /*MessageJP*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs new file mode 100644 index 0000000..5b36f82 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger2ExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyMessanger2ExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger2ExcelTable GetRootAsAcademyMessanger2ExcelTable(ByteBuffer _bb) { return GetRootAsAcademyMessanger2ExcelTable(_bb, new AcademyMessanger2ExcelTable()); } + public static AcademyMessanger2ExcelTable GetRootAsAcademyMessanger2ExcelTable(ByteBuffer _bb, AcademyMessanger2ExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger2ExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyMessanger2Excel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessanger2Excel?)(new SCHALE.Common.FlatData.AcademyMessanger2Excel()).__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 CreateAcademyMessanger2ExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyMessanger2ExcelTable.AddDataList(builder, DataListOffset); + return AcademyMessanger2ExcelTable.EndAcademyMessanger2ExcelTable(builder); + } + + public static void StartAcademyMessanger2ExcelTable(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 EndAcademyMessanger2ExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger2ExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyMessanger2ExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs new file mode 100644 index 0000000..dec3693 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs @@ -0,0 +1,133 @@ +// +// 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 AcademyMessanger3Excel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger3Excel GetRootAsAcademyMessanger3Excel(ByteBuffer _bb) { return GetRootAsAcademyMessanger3Excel(_bb, new AcademyMessanger3Excel()); } + public static AcademyMessanger3Excel GetRootAsAcademyMessanger3Excel(ByteBuffer _bb, AcademyMessanger3Excel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger3Excel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(26); } + public string MessageKR { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageKRBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetMessageKRBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetMessageKRArray() { return __p.__vector_as_array(28); } + public string MessageJP { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageJPBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetMessageJPBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetMessageJPArray() { return __p.__vector_as_array(30); } + + public static Offset CreateAcademyMessanger3Excel(FlatBufferBuilder builder, + long MessageGroupId = 0, + long Id = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + long ConditionValue = 0, + long PreConditionGroupId = 0, + long PreConditionFavorScheduleId = 0, + long FavorScheduleId = 0, + long NextGroupId = 0, + long FeedbackTimeMillisec = 0, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + StringOffset ImagePathOffset = default(StringOffset), + StringOffset MessageKROffset = default(StringOffset), + StringOffset MessageJPOffset = default(StringOffset)) { + builder.StartTable(14); + AcademyMessanger3Excel.AddFeedbackTimeMillisec(builder, FeedbackTimeMillisec); + AcademyMessanger3Excel.AddNextGroupId(builder, NextGroupId); + AcademyMessanger3Excel.AddFavorScheduleId(builder, FavorScheduleId); + AcademyMessanger3Excel.AddPreConditionFavorScheduleId(builder, PreConditionFavorScheduleId); + AcademyMessanger3Excel.AddPreConditionGroupId(builder, PreConditionGroupId); + AcademyMessanger3Excel.AddConditionValue(builder, ConditionValue); + AcademyMessanger3Excel.AddCharacterId(builder, CharacterId); + AcademyMessanger3Excel.AddId(builder, Id); + AcademyMessanger3Excel.AddMessageGroupId(builder, MessageGroupId); + AcademyMessanger3Excel.AddMessageJP(builder, MessageJPOffset); + AcademyMessanger3Excel.AddMessageKR(builder, MessageKROffset); + AcademyMessanger3Excel.AddImagePath(builder, ImagePathOffset); + AcademyMessanger3Excel.AddMessageType(builder, MessageType); + AcademyMessanger3Excel.AddMessageCondition(builder, MessageCondition); + return AcademyMessanger3Excel.EndAcademyMessanger3Excel(builder); + } + + public static void StartAcademyMessanger3Excel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddMessageGroupId(FlatBufferBuilder builder, long messageGroupId) { builder.AddLong(0, messageGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(2, characterId, 0); } + public static void AddMessageCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageConditions messageCondition) { builder.AddInt(3, (int)messageCondition, 0); } + public static void AddConditionValue(FlatBufferBuilder builder, long conditionValue) { builder.AddLong(4, conditionValue, 0); } + public static void AddPreConditionGroupId(FlatBufferBuilder builder, long preConditionGroupId) { builder.AddLong(5, preConditionGroupId, 0); } + public static void AddPreConditionFavorScheduleId(FlatBufferBuilder builder, long preConditionFavorScheduleId) { builder.AddLong(6, preConditionFavorScheduleId, 0); } + public static void AddFavorScheduleId(FlatBufferBuilder builder, long favorScheduleId) { builder.AddLong(7, favorScheduleId, 0); } + public static void AddNextGroupId(FlatBufferBuilder builder, long nextGroupId) { builder.AddLong(8, nextGroupId, 0); } + public static void AddFeedbackTimeMillisec(FlatBufferBuilder builder, long feedbackTimeMillisec) { builder.AddLong(9, feedbackTimeMillisec, 0); } + public static void AddMessageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageTypes messageType) { builder.AddInt(10, (int)messageType, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(11, imagePathOffset.Value, 0); } + public static void AddMessageKR(FlatBufferBuilder builder, StringOffset messageKROffset) { builder.AddOffset(12, messageKROffset.Value, 0); } + public static void AddMessageJP(FlatBufferBuilder builder, StringOffset messageJPOffset) { builder.AddOffset(13, messageJPOffset.Value, 0); } + public static Offset EndAcademyMessanger3Excel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger3ExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MessageGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*MessageCondition*/, 4 /*SCHALE.Common.FlatData.AcademyMessageConditions*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConditionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PreConditionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*PreConditionFavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*NextGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*FeedbackTimeMillisec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*MessageType*/, 4 /*SCHALE.Common.FlatData.AcademyMessageTypes*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ImagePath*/, false) + && verifier.VerifyString(tablePos, 28 /*MessageKR*/, false) + && verifier.VerifyString(tablePos, 30 /*MessageJP*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs new file mode 100644 index 0000000..9f24123 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessanger3ExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyMessanger3ExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessanger3ExcelTable GetRootAsAcademyMessanger3ExcelTable(ByteBuffer _bb) { return GetRootAsAcademyMessanger3ExcelTable(_bb, new AcademyMessanger3ExcelTable()); } + public static AcademyMessanger3ExcelTable GetRootAsAcademyMessanger3ExcelTable(ByteBuffer _bb, AcademyMessanger3ExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessanger3ExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyMessanger3Excel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessanger3Excel?)(new SCHALE.Common.FlatData.AcademyMessanger3Excel()).__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 CreateAcademyMessanger3ExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyMessanger3ExcelTable.AddDataList(builder, DataListOffset); + return AcademyMessanger3ExcelTable.EndAcademyMessanger3ExcelTable(builder); + } + + public static void StartAcademyMessanger3ExcelTable(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 EndAcademyMessanger3ExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessanger3ExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyMessanger3ExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessangerExcel.cs b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs new file mode 100644 index 0000000..af7156a --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs @@ -0,0 +1,133 @@ +// +// 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 AcademyMessangerExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessangerExcel GetRootAsAcademyMessangerExcel(ByteBuffer _bb) { return GetRootAsAcademyMessangerExcel(_bb, new AcademyMessangerExcel()); } + public static AcademyMessangerExcel GetRootAsAcademyMessangerExcel(ByteBuffer _bb, AcademyMessangerExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessangerExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(26); } + public string MessageKR { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageKRBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetMessageKRBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetMessageKRArray() { return __p.__vector_as_array(28); } + public string MessageJP { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMessageJPBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetMessageJPBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetMessageJPArray() { return __p.__vector_as_array(30); } + + public static Offset CreateAcademyMessangerExcel(FlatBufferBuilder builder, + long MessageGroupId = 0, + long Id = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + long ConditionValue = 0, + long PreConditionGroupId = 0, + long PreConditionFavorScheduleId = 0, + long FavorScheduleId = 0, + long NextGroupId = 0, + long FeedbackTimeMillisec = 0, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + StringOffset ImagePathOffset = default(StringOffset), + StringOffset MessageKROffset = default(StringOffset), + StringOffset MessageJPOffset = default(StringOffset)) { + builder.StartTable(14); + AcademyMessangerExcel.AddFeedbackTimeMillisec(builder, FeedbackTimeMillisec); + AcademyMessangerExcel.AddNextGroupId(builder, NextGroupId); + AcademyMessangerExcel.AddFavorScheduleId(builder, FavorScheduleId); + AcademyMessangerExcel.AddPreConditionFavorScheduleId(builder, PreConditionFavorScheduleId); + AcademyMessangerExcel.AddPreConditionGroupId(builder, PreConditionGroupId); + AcademyMessangerExcel.AddConditionValue(builder, ConditionValue); + AcademyMessangerExcel.AddCharacterId(builder, CharacterId); + AcademyMessangerExcel.AddId(builder, Id); + AcademyMessangerExcel.AddMessageGroupId(builder, MessageGroupId); + AcademyMessangerExcel.AddMessageJP(builder, MessageJPOffset); + AcademyMessangerExcel.AddMessageKR(builder, MessageKROffset); + AcademyMessangerExcel.AddImagePath(builder, ImagePathOffset); + AcademyMessangerExcel.AddMessageType(builder, MessageType); + AcademyMessangerExcel.AddMessageCondition(builder, MessageCondition); + return AcademyMessangerExcel.EndAcademyMessangerExcel(builder); + } + + public static void StartAcademyMessangerExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddMessageGroupId(FlatBufferBuilder builder, long messageGroupId) { builder.AddLong(0, messageGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(2, characterId, 0); } + public static void AddMessageCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageConditions messageCondition) { builder.AddInt(3, (int)messageCondition, 0); } + public static void AddConditionValue(FlatBufferBuilder builder, long conditionValue) { builder.AddLong(4, conditionValue, 0); } + public static void AddPreConditionGroupId(FlatBufferBuilder builder, long preConditionGroupId) { builder.AddLong(5, preConditionGroupId, 0); } + public static void AddPreConditionFavorScheduleId(FlatBufferBuilder builder, long preConditionFavorScheduleId) { builder.AddLong(6, preConditionFavorScheduleId, 0); } + public static void AddFavorScheduleId(FlatBufferBuilder builder, long favorScheduleId) { builder.AddLong(7, favorScheduleId, 0); } + public static void AddNextGroupId(FlatBufferBuilder builder, long nextGroupId) { builder.AddLong(8, nextGroupId, 0); } + public static void AddFeedbackTimeMillisec(FlatBufferBuilder builder, long feedbackTimeMillisec) { builder.AddLong(9, feedbackTimeMillisec, 0); } + public static void AddMessageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AcademyMessageTypes messageType) { builder.AddInt(10, (int)messageType, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(11, imagePathOffset.Value, 0); } + public static void AddMessageKR(FlatBufferBuilder builder, StringOffset messageKROffset) { builder.AddOffset(12, messageKROffset.Value, 0); } + public static void AddMessageJP(FlatBufferBuilder builder, StringOffset messageJPOffset) { builder.AddOffset(13, messageJPOffset.Value, 0); } + public static Offset EndAcademyMessangerExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessangerExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MessageGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*MessageCondition*/, 4 /*SCHALE.Common.FlatData.AcademyMessageConditions*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConditionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PreConditionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*PreConditionFavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FavorScheduleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*NextGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*FeedbackTimeMillisec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*MessageType*/, 4 /*SCHALE.Common.FlatData.AcademyMessageTypes*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ImagePath*/, false) + && verifier.VerifyString(tablePos, 28 /*MessageKR*/, false) + && verifier.VerifyString(tablePos, 30 /*MessageJP*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs b/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs new file mode 100644 index 0000000..f100c28 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyMessangerExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyMessangerExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyMessangerExcelTable GetRootAsAcademyMessangerExcelTable(ByteBuffer _bb) { return GetRootAsAcademyMessangerExcelTable(_bb, new AcademyMessangerExcelTable()); } + public static AcademyMessangerExcelTable GetRootAsAcademyMessangerExcelTable(ByteBuffer _bb, AcademyMessangerExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyMessangerExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyMessangerExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessangerExcel?)(new SCHALE.Common.FlatData.AcademyMessangerExcel()).__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 CreateAcademyMessangerExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyMessangerExcelTable.AddDataList(builder, DataListOffset); + return AcademyMessangerExcelTable.EndAcademyMessangerExcelTable(builder); + } + + public static void StartAcademyMessangerExcelTable(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 EndAcademyMessangerExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyMessangerExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyMessangerExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyRewardExcel.cs b/SCHALE.Common/FlatData/AcademyRewardExcel.cs new file mode 100644 index 0000000..22dd0c1 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyRewardExcel.cs @@ -0,0 +1,253 @@ +// +// 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 AcademyRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyRewardExcel GetRootAsAcademyRewardExcel(ByteBuffer _bb) { return GetRootAsAcademyRewardExcel(_bb, new AcademyRewardExcel()); } + public static AcademyRewardExcel GetRootAsAcademyRewardExcel(ByteBuffer _bb, AcademyRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Location { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocationBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetLocationBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetLocationArray() { return __p.__vector_as_array(4); } + public long ScheduleGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OrderInGroup { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ProgressTexture { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProgressTextureBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetProgressTextureBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetProgressTextureArray() { return __p.__vector_as_array(12); } + public uint LocalizeEtcId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long LocationRank { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorExp { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SecretStoneAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SecretStoneProb { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtraFavorExp { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtraFavorExpProb { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ExtraRewardParcelType(int j) { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ExtraRewardParcelTypeLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardParcelTypeBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetExtraRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetExtraRewardParcelTypeArray() { int o = __p.__offset(28); 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 ExtraRewardParcelId(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardParcelIdLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardParcelIdBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetExtraRewardParcelIdBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetExtraRewardParcelIdArray() { return __p.__vector_as_array(30); } + public long ExtraRewardAmount(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardAmountLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardAmountBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetExtraRewardAmountBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetExtraRewardAmountArray() { return __p.__vector_as_array(32); } + public long ExtraRewardProb(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardProbLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardProbBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetExtraRewardProbBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetExtraRewardProbArray() { return __p.__vector_as_array(34); } + public bool IsExtraRewardDisplayed(int j) { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int IsExtraRewardDisplayedLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public bool[] GetIsExtraRewardDisplayedArray() { return __p.__vector_as_array(36); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(38); 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(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(38); 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(40); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(40, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(40); } + public long RewardAmount(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(42, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(42); } + + public static Offset CreateAcademyRewardExcel(FlatBufferBuilder builder, + StringOffset LocationOffset = default(StringOffset), + long ScheduleGroupId = 0, + long OrderInGroup = 0, + long Id = 0, + StringOffset ProgressTextureOffset = default(StringOffset), + uint LocalizeEtcId = 0, + long LocationRank = 0, + long FavorExp = 0, + long SecretStoneAmount = 0, + long SecretStoneProb = 0, + long ExtraFavorExp = 0, + long ExtraFavorExpProb = 0, + VectorOffset ExtraRewardParcelTypeOffset = default(VectorOffset), + VectorOffset ExtraRewardParcelIdOffset = default(VectorOffset), + VectorOffset ExtraRewardAmountOffset = default(VectorOffset), + VectorOffset ExtraRewardProbOffset = default(VectorOffset), + VectorOffset IsExtraRewardDisplayedOffset = default(VectorOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(20); + AcademyRewardExcel.AddExtraFavorExpProb(builder, ExtraFavorExpProb); + AcademyRewardExcel.AddExtraFavorExp(builder, ExtraFavorExp); + AcademyRewardExcel.AddSecretStoneProb(builder, SecretStoneProb); + AcademyRewardExcel.AddSecretStoneAmount(builder, SecretStoneAmount); + AcademyRewardExcel.AddFavorExp(builder, FavorExp); + AcademyRewardExcel.AddLocationRank(builder, LocationRank); + AcademyRewardExcel.AddId(builder, Id); + AcademyRewardExcel.AddOrderInGroup(builder, OrderInGroup); + AcademyRewardExcel.AddScheduleGroupId(builder, ScheduleGroupId); + AcademyRewardExcel.AddRewardAmount(builder, RewardAmountOffset); + AcademyRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + AcademyRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + AcademyRewardExcel.AddIsExtraRewardDisplayed(builder, IsExtraRewardDisplayedOffset); + AcademyRewardExcel.AddExtraRewardProb(builder, ExtraRewardProbOffset); + AcademyRewardExcel.AddExtraRewardAmount(builder, ExtraRewardAmountOffset); + AcademyRewardExcel.AddExtraRewardParcelId(builder, ExtraRewardParcelIdOffset); + AcademyRewardExcel.AddExtraRewardParcelType(builder, ExtraRewardParcelTypeOffset); + AcademyRewardExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + AcademyRewardExcel.AddProgressTexture(builder, ProgressTextureOffset); + AcademyRewardExcel.AddLocation(builder, LocationOffset); + return AcademyRewardExcel.EndAcademyRewardExcel(builder); + } + + public static void StartAcademyRewardExcel(FlatBufferBuilder builder) { builder.StartTable(20); } + public static void AddLocation(FlatBufferBuilder builder, StringOffset locationOffset) { builder.AddOffset(0, locationOffset.Value, 0); } + public static void AddScheduleGroupId(FlatBufferBuilder builder, long scheduleGroupId) { builder.AddLong(1, scheduleGroupId, 0); } + public static void AddOrderInGroup(FlatBufferBuilder builder, long orderInGroup) { builder.AddLong(2, orderInGroup, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(3, id, 0); } + public static void AddProgressTexture(FlatBufferBuilder builder, StringOffset progressTextureOffset) { builder.AddOffset(4, progressTextureOffset.Value, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(5, localizeEtcId, 0); } + public static void AddLocationRank(FlatBufferBuilder builder, long locationRank) { builder.AddLong(6, locationRank, 0); } + public static void AddFavorExp(FlatBufferBuilder builder, long favorExp) { builder.AddLong(7, favorExp, 0); } + public static void AddSecretStoneAmount(FlatBufferBuilder builder, long secretStoneAmount) { builder.AddLong(8, secretStoneAmount, 0); } + public static void AddSecretStoneProb(FlatBufferBuilder builder, long secretStoneProb) { builder.AddLong(9, secretStoneProb, 0); } + public static void AddExtraFavorExp(FlatBufferBuilder builder, long extraFavorExp) { builder.AddLong(10, extraFavorExp, 0); } + public static void AddExtraFavorExpProb(FlatBufferBuilder builder, long extraFavorExpProb) { builder.AddLong(11, extraFavorExpProb, 0); } + public static void AddExtraRewardParcelType(FlatBufferBuilder builder, VectorOffset extraRewardParcelTypeOffset) { builder.AddOffset(12, extraRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateExtraRewardParcelTypeVector(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 CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExtraRewardParcelId(FlatBufferBuilder builder, VectorOffset extraRewardParcelIdOffset) { builder.AddOffset(13, extraRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateExtraRewardParcelIdVector(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 CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExtraRewardAmount(FlatBufferBuilder builder, VectorOffset extraRewardAmountOffset) { builder.AddOffset(14, extraRewardAmountOffset.Value, 0); } + public static VectorOffset CreateExtraRewardAmountVector(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 CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExtraRewardProb(FlatBufferBuilder builder, VectorOffset extraRewardProbOffset) { builder.AddOffset(15, extraRewardProbOffset.Value, 0); } + public static VectorOffset CreateExtraRewardProbVector(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 CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIsExtraRewardDisplayed(FlatBufferBuilder builder, VectorOffset isExtraRewardDisplayedOffset) { builder.AddOffset(16, isExtraRewardDisplayedOffset.Value, 0); } + public static VectorOffset CreateIsExtraRewardDisplayedVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIsExtraRewardDisplayedVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(17, 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(18, 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 AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(19, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndAcademyRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Location*/, false) + && verifier.VerifyField(tablePos, 6 /*ScheduleGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*OrderInGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*ProgressTexture*/, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*LocationRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FavorExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*SecretStoneAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*SecretStoneProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*ExtraFavorExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ExtraFavorExpProb*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*ExtraRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*ExtraRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*ExtraRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*ExtraRewardProb*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*IsExtraRewardDisplayed*/, 1 /*bool*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs b/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs new file mode 100644 index 0000000..955a72b --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyRewardExcelTable GetRootAsAcademyRewardExcelTable(ByteBuffer _bb) { return GetRootAsAcademyRewardExcelTable(_bb, new AcademyRewardExcelTable()); } + public static AcademyRewardExcelTable GetRootAsAcademyRewardExcelTable(ByteBuffer _bb, AcademyRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyRewardExcel?)(new SCHALE.Common.FlatData.AcademyRewardExcel()).__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 CreateAcademyRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyRewardExcelTable.AddDataList(builder, DataListOffset); + return AcademyRewardExcelTable.EndAcademyRewardExcelTable(builder); + } + + public static void StartAcademyRewardExcelTable(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 EndAcademyRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyTicketExcel.cs b/SCHALE.Common/FlatData/AcademyTicketExcel.cs new file mode 100644 index 0000000..e87a89f --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyTicketExcel.cs @@ -0,0 +1,55 @@ +// +// 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 AcademyTicketExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyTicketExcel GetRootAsAcademyTicketExcel(ByteBuffer _bb) { return GetRootAsAcademyTicketExcel(_bb, new AcademyTicketExcel()); } + public static AcademyTicketExcel GetRootAsAcademyTicketExcel(ByteBuffer _bb, AcademyTicketExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyTicketExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long LocationRankSum { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScheduleTicktetMax { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateAcademyTicketExcel(FlatBufferBuilder builder, + long LocationRankSum = 0, + long ScheduleTicktetMax = 0) { + builder.StartTable(2); + AcademyTicketExcel.AddScheduleTicktetMax(builder, ScheduleTicktetMax); + AcademyTicketExcel.AddLocationRankSum(builder, LocationRankSum); + return AcademyTicketExcel.EndAcademyTicketExcel(builder); + } + + public static void StartAcademyTicketExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddLocationRankSum(FlatBufferBuilder builder, long locationRankSum) { builder.AddLong(0, locationRankSum, 0); } + public static void AddScheduleTicktetMax(FlatBufferBuilder builder, long scheduleTicktetMax) { builder.AddLong(1, scheduleTicktetMax, 0); } + public static Offset EndAcademyTicketExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyTicketExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*LocationRankSum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ScheduleTicktetMax*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs b/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs new file mode 100644 index 0000000..f574413 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyTicketExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyTicketExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyTicketExcelTable GetRootAsAcademyTicketExcelTable(ByteBuffer _bb) { return GetRootAsAcademyTicketExcelTable(_bb, new AcademyTicketExcelTable()); } + public static AcademyTicketExcelTable GetRootAsAcademyTicketExcelTable(ByteBuffer _bb, AcademyTicketExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyTicketExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyTicketExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyTicketExcel?)(new SCHALE.Common.FlatData.AcademyTicketExcel()).__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 CreateAcademyTicketExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyTicketExcelTable.AddDataList(builder, DataListOffset); + return AcademyTicketExcelTable.EndAcademyTicketExcelTable(builder); + } + + public static void StartAcademyTicketExcelTable(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 EndAcademyTicketExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyTicketExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyTicketExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyZoneExcel.cs b/SCHALE.Common/FlatData/AcademyZoneExcel.cs new file mode 100644 index 0000000..5fd0951 --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyZoneExcel.cs @@ -0,0 +1,104 @@ +// +// 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 AcademyZoneExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyZoneExcel GetRootAsAcademyZoneExcel(ByteBuffer _bb) { return GetRootAsAcademyZoneExcel(_bb, new AcademyZoneExcel()); } + public static AcademyZoneExcel GetRootAsAcademyZoneExcel(ByteBuffer _bb, AcademyZoneExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyZoneExcel __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 LocationId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LocationRankForUnlock { 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 long StudentVisitProb(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StudentVisitProbLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStudentVisitProbBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetStudentVisitProbBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetStudentVisitProbArray() { return __p.__vector_as_array(12); } + public long RewardGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(16); 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 static Offset CreateAcademyZoneExcel(FlatBufferBuilder builder, + long Id = 0, + long LocationId = 0, + long LocationRankForUnlock = 0, + uint LocalizeEtcId = 0, + VectorOffset StudentVisitProbOffset = default(VectorOffset), + long RewardGroupId = 0, + VectorOffset TagsOffset = default(VectorOffset)) { + builder.StartTable(7); + AcademyZoneExcel.AddRewardGroupId(builder, RewardGroupId); + AcademyZoneExcel.AddLocationRankForUnlock(builder, LocationRankForUnlock); + AcademyZoneExcel.AddLocationId(builder, LocationId); + AcademyZoneExcel.AddId(builder, Id); + AcademyZoneExcel.AddTags(builder, TagsOffset); + AcademyZoneExcel.AddStudentVisitProb(builder, StudentVisitProbOffset); + AcademyZoneExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return AcademyZoneExcel.EndAcademyZoneExcel(builder); + } + + public static void StartAcademyZoneExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocationId(FlatBufferBuilder builder, long locationId) { builder.AddLong(1, locationId, 0); } + public static void AddLocationRankForUnlock(FlatBufferBuilder builder, long locationRankForUnlock) { builder.AddLong(2, locationRankForUnlock, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(3, localizeEtcId, 0); } + public static void AddStudentVisitProb(FlatBufferBuilder builder, VectorOffset studentVisitProbOffset) { builder.AddOffset(4, studentVisitProbOffset.Value, 0); } + public static VectorOffset CreateStudentVisitProbVector(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 CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStudentVisitProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardGroupId(FlatBufferBuilder builder, long rewardGroupId) { builder.AddLong(5, rewardGroupId, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(6, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAcademyZoneExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyZoneExcelVerify +{ + 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 /*LocationId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocationRankForUnlock*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*StudentVisitProb*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*RewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs b/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs new file mode 100644 index 0000000..4f18bea --- /dev/null +++ b/SCHALE.Common/FlatData/AcademyZoneExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AcademyZoneExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AcademyZoneExcelTable GetRootAsAcademyZoneExcelTable(ByteBuffer _bb) { return GetRootAsAcademyZoneExcelTable(_bb, new AcademyZoneExcelTable()); } + public static AcademyZoneExcelTable GetRootAsAcademyZoneExcelTable(ByteBuffer _bb, AcademyZoneExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AcademyZoneExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AcademyZoneExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AcademyZoneExcel?)(new SCHALE.Common.FlatData.AcademyZoneExcel()).__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 CreateAcademyZoneExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AcademyZoneExcelTable.AddDataList(builder, DataListOffset); + return AcademyZoneExcelTable.EndAcademyZoneExcelTable(builder); + } + + public static void StartAcademyZoneExcelTable(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 EndAcademyZoneExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AcademyZoneExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AcademyZoneExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AccountAchievementType.cs b/SCHALE.Common/FlatData/AccountAchievementType.cs new file mode 100644 index 0000000..2514f2f --- /dev/null +++ b/SCHALE.Common/FlatData/AccountAchievementType.cs @@ -0,0 +1,39 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AccountAchievementType : int +{ + TotalLoginCount = 0, + TotalGetClearStarCount = 1, + TotalCharacterLevelUpCount = 2, + TotalCharacterSkillLevelUpCount = 3, + TotalClearCampaignStageCount = 4, + TotalClearChaserDungeonCount = 5, + TotalClearFindGiftAndBloodDungeonCount = 6, + TotalEquipmentLevelUpCount = 7, + TotalEquipmentTierUpCount = 8, + MaxComfortPoint = 9, + TotalGetGold = 10, + TotalUseGold = 11, + TotalJoinArenaCount = 12, + TotalJoinRaidCount = 13, + TotalClearSchoolDungeonCount = 14, + TotalGetWeaponCount = 15, + TotalWeaponLevelUpCount = 16, + TotalWeaponTranscendenceCount = 17, + KillEnemyWithDecagrammatonSPOTagCount = 18, + EventPoint = 19, + ConquestCalculateReward = 20, + TotalJoinEliminateRaidCount = 21, + Cafe2MaxComfortPoint = 22, + TotalRaidTicketUseCount = 23, + TotalEliminateTicketUseCount = 24, + TotalCharacterPotentialUpCount = 25, +}; + + +} diff --git a/SCHALE.Common/FlatData/AccountLevelExcel.cs b/SCHALE.Common/FlatData/AccountLevelExcel.cs new file mode 100644 index 0000000..614f583 --- /dev/null +++ b/SCHALE.Common/FlatData/AccountLevelExcel.cs @@ -0,0 +1,70 @@ +// +// 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 AccountLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AccountLevelExcel GetRootAsAccountLevelExcel(ByteBuffer _bb) { return GetRootAsAccountLevelExcel(_bb, new AccountLevelExcel()); } + public static AccountLevelExcel GetRootAsAccountLevelExcel(ByteBuffer _bb, AccountLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AccountLevelExcel __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 Level { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Exp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long APAutoChargeMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool NeedReportEvent { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateAccountLevelExcel(FlatBufferBuilder builder, + long Id = 0, + long Level = 0, + long Exp = 0, + long APAutoChargeMax = 0, + bool NeedReportEvent = false) { + builder.StartTable(5); + AccountLevelExcel.AddAPAutoChargeMax(builder, APAutoChargeMax); + AccountLevelExcel.AddExp(builder, Exp); + AccountLevelExcel.AddLevel(builder, Level); + AccountLevelExcel.AddId(builder, Id); + AccountLevelExcel.AddNeedReportEvent(builder, NeedReportEvent); + return AccountLevelExcel.EndAccountLevelExcel(builder); + } + + public static void StartAccountLevelExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLevel(FlatBufferBuilder builder, long level) { builder.AddLong(1, level, 0); } + public static void AddExp(FlatBufferBuilder builder, long exp) { builder.AddLong(2, exp, 0); } + public static void AddAPAutoChargeMax(FlatBufferBuilder builder, long aPAutoChargeMax) { builder.AddLong(3, aPAutoChargeMax, 0); } + public static void AddNeedReportEvent(FlatBufferBuilder builder, bool needReportEvent) { builder.AddBool(4, needReportEvent, false); } + public static Offset EndAccountLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AccountLevelExcelVerify +{ + 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 /*Level*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Exp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*APAutoChargeMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*NeedReportEvent*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AccountLevelExcelTable.cs b/SCHALE.Common/FlatData/AccountLevelExcelTable.cs new file mode 100644 index 0000000..ab17f24 --- /dev/null +++ b/SCHALE.Common/FlatData/AccountLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AccountLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AccountLevelExcelTable GetRootAsAccountLevelExcelTable(ByteBuffer _bb) { return GetRootAsAccountLevelExcelTable(_bb, new AccountLevelExcelTable()); } + public static AccountLevelExcelTable GetRootAsAccountLevelExcelTable(ByteBuffer _bb, AccountLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AccountLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AccountLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AccountLevelExcel?)(new SCHALE.Common.FlatData.AccountLevelExcel()).__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 CreateAccountLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AccountLevelExcelTable.AddDataList(builder, DataListOffset); + return AccountLevelExcelTable.EndAccountLevelExcelTable(builder); + } + + public static void StartAccountLevelExcelTable(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 EndAccountLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AccountLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AccountLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AccountState.cs b/SCHALE.Common/FlatData/AccountState.cs new file mode 100644 index 0000000..32d1914 --- /dev/null +++ b/SCHALE.Common/FlatData/AccountState.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AccountState : int +{ + WaitingSignIn = 0, + Normal = 1, + Dormant = 2, + Comeback = 3, + Newbie = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ActionType.cs b/SCHALE.Common/FlatData/ActionType.cs new file mode 100644 index 0000000..26af16c --- /dev/null +++ b/SCHALE.Common/FlatData/ActionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ActionType : int +{ + Crush = 0, + Courage = 1, + Tactic = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/AimIKType.cs b/SCHALE.Common/FlatData/AimIKType.cs new file mode 100644 index 0000000..db0009d --- /dev/null +++ b/SCHALE.Common/FlatData/AimIKType.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AimIKType : int +{ + None = 0, + OneHandRight = 1, + OneHandLeft = 2, + TwoHandRight = 3, + TwoHandLeft = 4, + Tripod = 5, + Dual = 6, + Max = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/AniEventData.cs b/SCHALE.Common/FlatData/AniEventData.cs new file mode 100644 index 0000000..787d204 --- /dev/null +++ b/SCHALE.Common/FlatData/AniEventData.cs @@ -0,0 +1,82 @@ +// +// 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 AniEventData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AniEventData GetRootAsAniEventData(ByteBuffer _bb) { return GetRootAsAniEventData(_bb, new AniEventData()); } + public static AniEventData GetRootAsAniEventData(ByteBuffer _bb, AniEventData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AniEventData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Name { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(4); } + public float Time { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int IntParam { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float FloatParam { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string StringParam { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStringParamBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStringParamBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStringParamArray() { return __p.__vector_as_array(12); } + + public static Offset CreateAniEventData(FlatBufferBuilder builder, + StringOffset NameOffset = default(StringOffset), + float Time = 0.0f, + int IntParam = 0, + float FloatParam = 0.0f, + StringOffset StringParamOffset = default(StringOffset)) { + builder.StartTable(5); + AniEventData.AddStringParam(builder, StringParamOffset); + AniEventData.AddFloatParam(builder, FloatParam); + AniEventData.AddIntParam(builder, IntParam); + AniEventData.AddTime(builder, Time); + AniEventData.AddName(builder, NameOffset); + return AniEventData.EndAniEventData(builder); + } + + public static void StartAniEventData(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(0, nameOffset.Value, 0); } + public static void AddTime(FlatBufferBuilder builder, float time) { builder.AddFloat(1, time, 0.0f); } + public static void AddIntParam(FlatBufferBuilder builder, int intParam) { builder.AddInt(2, intParam, 0); } + public static void AddFloatParam(FlatBufferBuilder builder, float floatParam) { builder.AddFloat(3, floatParam, 0.0f); } + public static void AddStringParam(FlatBufferBuilder builder, StringOffset stringParamOffset) { builder.AddOffset(4, stringParamOffset.Value, 0); } + public static Offset EndAniEventData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AniEventDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Name*/, false) + && verifier.VerifyField(tablePos, 6 /*Time*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*IntParam*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*FloatParam*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*StringParam*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AniStateData.cs b/SCHALE.Common/FlatData/AniStateData.cs new file mode 100644 index 0000000..eb2b8d8 --- /dev/null +++ b/SCHALE.Common/FlatData/AniStateData.cs @@ -0,0 +1,147 @@ +// +// 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 AniStateData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AniStateData GetRootAsAniStateData(ByteBuffer _bb) { return GetRootAsAniStateData(_bb, new AniStateData()); } + public static AniStateData GetRootAsAniStateData(ByteBuffer _bb, AniStateData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AniStateData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string StateName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStateNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetStateNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetStateNameArray() { return __p.__vector_as_array(4); } + public string StatePrefix { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStatePrefixBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetStatePrefixBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetStatePrefixArray() { return __p.__vector_as_array(6); } + public string StateNameWithPrefix { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStateNameWithPrefixBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetStateNameWithPrefixBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetStateNameWithPrefixArray() { return __p.__vector_as_array(8); } + public string Tag { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTagBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetTagBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetTagArray() { return __p.__vector_as_array(10); } + public string SpeedParameterName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpeedParameterNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSpeedParameterNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSpeedParameterNameArray() { return __p.__vector_as_array(12); } + public float SpeedParamter { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float StateSpeed { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string ClipName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetClipNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetClipNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetClipNameArray() { return __p.__vector_as_array(18); } + public float Length { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float FrameRate { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool IsLooping { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.AniEventData? Events(int j) { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.AniEventData?)(new SCHALE.Common.FlatData.AniEventData()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int EventsLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAniStateData(FlatBufferBuilder builder, + StringOffset StateNameOffset = default(StringOffset), + StringOffset StatePrefixOffset = default(StringOffset), + StringOffset StateNameWithPrefixOffset = default(StringOffset), + StringOffset TagOffset = default(StringOffset), + StringOffset SpeedParameterNameOffset = default(StringOffset), + float SpeedParamter = 0.0f, + float StateSpeed = 0.0f, + StringOffset ClipNameOffset = default(StringOffset), + float Length = 0.0f, + float FrameRate = 0.0f, + bool IsLooping = false, + VectorOffset EventsOffset = default(VectorOffset)) { + builder.StartTable(12); + AniStateData.AddEvents(builder, EventsOffset); + AniStateData.AddFrameRate(builder, FrameRate); + AniStateData.AddLength(builder, Length); + AniStateData.AddClipName(builder, ClipNameOffset); + AniStateData.AddStateSpeed(builder, StateSpeed); + AniStateData.AddSpeedParamter(builder, SpeedParamter); + AniStateData.AddSpeedParameterName(builder, SpeedParameterNameOffset); + AniStateData.AddTag(builder, TagOffset); + AniStateData.AddStateNameWithPrefix(builder, StateNameWithPrefixOffset); + AniStateData.AddStatePrefix(builder, StatePrefixOffset); + AniStateData.AddStateName(builder, StateNameOffset); + AniStateData.AddIsLooping(builder, IsLooping); + return AniStateData.EndAniStateData(builder); + } + + public static void StartAniStateData(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddStateName(FlatBufferBuilder builder, StringOffset stateNameOffset) { builder.AddOffset(0, stateNameOffset.Value, 0); } + public static void AddStatePrefix(FlatBufferBuilder builder, StringOffset statePrefixOffset) { builder.AddOffset(1, statePrefixOffset.Value, 0); } + public static void AddStateNameWithPrefix(FlatBufferBuilder builder, StringOffset stateNameWithPrefixOffset) { builder.AddOffset(2, stateNameWithPrefixOffset.Value, 0); } + public static void AddTag(FlatBufferBuilder builder, StringOffset tagOffset) { builder.AddOffset(3, tagOffset.Value, 0); } + public static void AddSpeedParameterName(FlatBufferBuilder builder, StringOffset speedParameterNameOffset) { builder.AddOffset(4, speedParameterNameOffset.Value, 0); } + public static void AddSpeedParamter(FlatBufferBuilder builder, float speedParamter) { builder.AddFloat(5, speedParamter, 0.0f); } + public static void AddStateSpeed(FlatBufferBuilder builder, float stateSpeed) { builder.AddFloat(6, stateSpeed, 0.0f); } + public static void AddClipName(FlatBufferBuilder builder, StringOffset clipNameOffset) { builder.AddOffset(7, clipNameOffset.Value, 0); } + public static void AddLength(FlatBufferBuilder builder, float length) { builder.AddFloat(8, length, 0.0f); } + public static void AddFrameRate(FlatBufferBuilder builder, float frameRate) { builder.AddFloat(9, frameRate, 0.0f); } + public static void AddIsLooping(FlatBufferBuilder builder, bool isLooping) { builder.AddBool(10, isLooping, false); } + public static void AddEvents(FlatBufferBuilder builder, VectorOffset eventsOffset) { builder.AddOffset(11, eventsOffset.Value, 0); } + public static VectorOffset CreateEventsVector(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 CreateEventsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEventsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEventsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEventsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAniStateData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AniStateDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*StateName*/, false) + && verifier.VerifyString(tablePos, 6 /*StatePrefix*/, false) + && verifier.VerifyString(tablePos, 8 /*StateNameWithPrefix*/, false) + && verifier.VerifyString(tablePos, 10 /*Tag*/, false) + && verifier.VerifyString(tablePos, 12 /*SpeedParameterName*/, false) + && verifier.VerifyField(tablePos, 14 /*SpeedParamter*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StateSpeed*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*ClipName*/, false) + && verifier.VerifyField(tablePos, 20 /*Length*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*FrameRate*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*IsLooping*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfTables(tablePos, 26 /*Events*/, SCHALE.Common.FlatData.AniEventDataVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AnimationBlendTable.cs b/SCHALE.Common/FlatData/AnimationBlendTable.cs new file mode 100644 index 0000000..29ebb18 --- /dev/null +++ b/SCHALE.Common/FlatData/AnimationBlendTable.cs @@ -0,0 +1,56 @@ +// +// 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 AnimationBlendTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AnimationBlendTable GetRootAsAnimationBlendTable(ByteBuffer _bb) { return GetRootAsAnimationBlendTable(_bb, new AnimationBlendTable()); } + public static AnimationBlendTable GetRootAsAnimationBlendTable(ByteBuffer _bb, AnimationBlendTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AnimationBlendTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BlendData? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BlendData?)(new SCHALE.Common.FlatData.BlendData()).__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 CreateAnimationBlendTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AnimationBlendTable.AddDataList(builder, DataListOffset); + return AnimationBlendTable.EndAnimationBlendTable(builder); + } + + public static void StartAnimationBlendTable(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 EndAnimationBlendTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AnimationBlendTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BlendDataVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AnimatorData.cs b/SCHALE.Common/FlatData/AnimatorData.cs new file mode 100644 index 0000000..ecb96e6 --- /dev/null +++ b/SCHALE.Common/FlatData/AnimatorData.cs @@ -0,0 +1,78 @@ +// +// 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 AnimatorData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AnimatorData GetRootAsAnimatorData(ByteBuffer _bb) { return GetRootAsAnimatorData(_bb, new AnimatorData()); } + public static AnimatorData GetRootAsAnimatorData(ByteBuffer _bb, AnimatorData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AnimatorData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string DefaultStateName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDefaultStateNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetDefaultStateNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetDefaultStateNameArray() { return __p.__vector_as_array(4); } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.AniStateData? DataList(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.AniStateData?)(new SCHALE.Common.FlatData.AniStateData()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int DataListLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateAnimatorData(FlatBufferBuilder builder, + StringOffset DefaultStateNameOffset = default(StringOffset), + StringOffset NameOffset = default(StringOffset), + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(3); + AnimatorData.AddDataList(builder, DataListOffset); + AnimatorData.AddName(builder, NameOffset); + AnimatorData.AddDefaultStateName(builder, DefaultStateNameOffset); + return AnimatorData.EndAnimatorData(builder); + } + + public static void StartAnimatorData(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddDefaultStateName(FlatBufferBuilder builder, StringOffset defaultStateNameOffset) { builder.AddOffset(0, defaultStateNameOffset.Value, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(2, 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 EndAnimatorData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AnimatorDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*DefaultStateName*/, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyVectorOfTables(tablePos, 8 /*DataList*/, SCHALE.Common.FlatData.AniStateDataVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AnimatorDataTable.cs b/SCHALE.Common/FlatData/AnimatorDataTable.cs new file mode 100644 index 0000000..93fed7f --- /dev/null +++ b/SCHALE.Common/FlatData/AnimatorDataTable.cs @@ -0,0 +1,56 @@ +// +// 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 AnimatorDataTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AnimatorDataTable GetRootAsAnimatorDataTable(ByteBuffer _bb) { return GetRootAsAnimatorDataTable(_bb, new AnimatorDataTable()); } + public static AnimatorDataTable GetRootAsAnimatorDataTable(ByteBuffer _bb, AnimatorDataTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AnimatorDataTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AnimatorData? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AnimatorData?)(new SCHALE.Common.FlatData.AnimatorData()).__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 CreateAnimatorDataTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AnimatorDataTable.AddDataList(builder, DataListOffset); + return AnimatorDataTable.EndAnimatorDataTable(builder); + } + + public static void StartAnimatorDataTable(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 EndAnimatorDataTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AnimatorDataTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AnimatorDataVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/Anniversary.cs b/SCHALE.Common/FlatData/Anniversary.cs new file mode 100644 index 0000000..4a51663 --- /dev/null +++ b/SCHALE.Common/FlatData/Anniversary.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Anniversary : int +{ + None = 0, + UserBDay = 1, + StudentBDay = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs b/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs new file mode 100644 index 0000000..861476b --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaLevelSectionExcel.cs @@ -0,0 +1,65 @@ +// +// 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 ArenaLevelSectionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaLevelSectionExcel GetRootAsArenaLevelSectionExcel(ByteBuffer _bb) { return GetRootAsArenaLevelSectionExcel(_bb, new ArenaLevelSectionExcel()); } + public static ArenaLevelSectionExcel GetRootAsArenaLevelSectionExcel(ByteBuffer _bb, ArenaLevelSectionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaLevelSectionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ArenaSeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StartLevel { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LastLevel { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UserCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateArenaLevelSectionExcel(FlatBufferBuilder builder, + long ArenaSeasonId = 0, + long StartLevel = 0, + long LastLevel = 0, + long UserCount = 0) { + builder.StartTable(4); + ArenaLevelSectionExcel.AddUserCount(builder, UserCount); + ArenaLevelSectionExcel.AddLastLevel(builder, LastLevel); + ArenaLevelSectionExcel.AddStartLevel(builder, StartLevel); + ArenaLevelSectionExcel.AddArenaSeasonId(builder, ArenaSeasonId); + return ArenaLevelSectionExcel.EndArenaLevelSectionExcel(builder); + } + + public static void StartArenaLevelSectionExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddArenaSeasonId(FlatBufferBuilder builder, long arenaSeasonId) { builder.AddLong(0, arenaSeasonId, 0); } + public static void AddStartLevel(FlatBufferBuilder builder, long startLevel) { builder.AddLong(1, startLevel, 0); } + public static void AddLastLevel(FlatBufferBuilder builder, long lastLevel) { builder.AddLong(2, lastLevel, 0); } + public static void AddUserCount(FlatBufferBuilder builder, long userCount) { builder.AddLong(3, userCount, 0); } + public static Offset EndArenaLevelSectionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaLevelSectionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ArenaSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*StartLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LastLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*UserCount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs b/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs new file mode 100644 index 0000000..0811b13 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaLevelSectionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaLevelSectionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaLevelSectionExcelTable GetRootAsArenaLevelSectionExcelTable(ByteBuffer _bb) { return GetRootAsArenaLevelSectionExcelTable(_bb, new ArenaLevelSectionExcelTable()); } + public static ArenaLevelSectionExcelTable GetRootAsArenaLevelSectionExcelTable(ByteBuffer _bb, ArenaLevelSectionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaLevelSectionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaLevelSectionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaLevelSectionExcel?)(new SCHALE.Common.FlatData.ArenaLevelSectionExcel()).__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 CreateArenaLevelSectionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaLevelSectionExcelTable.AddDataList(builder, DataListOffset); + return ArenaLevelSectionExcelTable.EndArenaLevelSectionExcelTable(builder); + } + + public static void StartArenaLevelSectionExcelTable(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 EndArenaLevelSectionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaLevelSectionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaLevelSectionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaMapExcel.cs b/SCHALE.Common/FlatData/ArenaMapExcel.cs new file mode 100644 index 0000000..891d8c2 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaMapExcel.cs @@ -0,0 +1,108 @@ +// +// 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 ArenaMapExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaMapExcel GetRootAsArenaMapExcel(ByteBuffer _bb) { return GetRootAsArenaMapExcel(_bb, new ArenaMapExcel()); } + public static ArenaMapExcel GetRootAsArenaMapExcel(ByteBuffer _bb, ArenaMapExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaMapExcel __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 TerrainType { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TerrainTypeLocalizeKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTerrainTypeLocalizeKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetTerrainTypeLocalizeKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetTerrainTypeLocalizeKeyArray() { return __p.__vector_as_array(8); } + public string ImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(10); } + public long GroundGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GroundGroupNameLocalizeKey { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroundGroupNameLocalizeKeyBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGroundGroupNameLocalizeKeyBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGroundGroupNameLocalizeKeyArray() { return __p.__vector_as_array(14); } + public long StartRank { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EndRank { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateArenaMapExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long TerrainType = 0, + StringOffset TerrainTypeLocalizeKeyOffset = default(StringOffset), + StringOffset ImagePathOffset = default(StringOffset), + long GroundGroupId = 0, + StringOffset GroundGroupNameLocalizeKeyOffset = default(StringOffset), + long StartRank = 0, + long EndRank = 0, + long GroundId = 0) { + builder.StartTable(9); + ArenaMapExcel.AddGroundId(builder, GroundId); + ArenaMapExcel.AddEndRank(builder, EndRank); + ArenaMapExcel.AddStartRank(builder, StartRank); + ArenaMapExcel.AddGroundGroupId(builder, GroundGroupId); + ArenaMapExcel.AddTerrainType(builder, TerrainType); + ArenaMapExcel.AddUniqueId(builder, UniqueId); + ArenaMapExcel.AddGroundGroupNameLocalizeKey(builder, GroundGroupNameLocalizeKeyOffset); + ArenaMapExcel.AddImagePath(builder, ImagePathOffset); + ArenaMapExcel.AddTerrainTypeLocalizeKey(builder, TerrainTypeLocalizeKeyOffset); + return ArenaMapExcel.EndArenaMapExcel(builder); + } + + public static void StartArenaMapExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddTerrainType(FlatBufferBuilder builder, long terrainType) { builder.AddLong(1, terrainType, 0); } + public static void AddTerrainTypeLocalizeKey(FlatBufferBuilder builder, StringOffset terrainTypeLocalizeKeyOffset) { builder.AddOffset(2, terrainTypeLocalizeKeyOffset.Value, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(3, imagePathOffset.Value, 0); } + public static void AddGroundGroupId(FlatBufferBuilder builder, long groundGroupId) { builder.AddLong(4, groundGroupId, 0); } + public static void AddGroundGroupNameLocalizeKey(FlatBufferBuilder builder, StringOffset groundGroupNameLocalizeKeyOffset) { builder.AddOffset(5, groundGroupNameLocalizeKeyOffset.Value, 0); } + public static void AddStartRank(FlatBufferBuilder builder, long startRank) { builder.AddLong(6, startRank, 0); } + public static void AddEndRank(FlatBufferBuilder builder, long endRank) { builder.AddLong(7, endRank, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(8, groundId, 0); } + public static Offset EndArenaMapExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaMapExcelVerify +{ + 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 /*TerrainType*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*TerrainTypeLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 10 /*ImagePath*/, false) + && verifier.VerifyField(tablePos, 12 /*GroundGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*GroundGroupNameLocalizeKey*/, false) + && verifier.VerifyField(tablePos, 16 /*StartRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*EndRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaMapExcelTable.cs b/SCHALE.Common/FlatData/ArenaMapExcelTable.cs new file mode 100644 index 0000000..6a56eb3 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaMapExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaMapExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaMapExcelTable GetRootAsArenaMapExcelTable(ByteBuffer _bb) { return GetRootAsArenaMapExcelTable(_bb, new ArenaMapExcelTable()); } + public static ArenaMapExcelTable GetRootAsArenaMapExcelTable(ByteBuffer _bb, ArenaMapExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaMapExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaMapExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaMapExcel?)(new SCHALE.Common.FlatData.ArenaMapExcel()).__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 CreateArenaMapExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaMapExcelTable.AddDataList(builder, DataListOffset); + return ArenaMapExcelTable.EndArenaMapExcelTable(builder); + } + + public static void StartArenaMapExcelTable(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 EndArenaMapExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaMapExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaMapExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaNPCExcel.cs b/SCHALE.Common/FlatData/ArenaNPCExcel.cs new file mode 100644 index 0000000..5ab0e19 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaNPCExcel.cs @@ -0,0 +1,148 @@ +// +// 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 ArenaNPCExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaNPCExcel GetRootAsArenaNPCExcel(ByteBuffer _bb) { return GetRootAsArenaNPCExcel(_bb, new ArenaNPCExcel()); } + public static ArenaNPCExcel GetRootAsArenaNPCExcel(ByteBuffer _bb, ArenaNPCExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaNPCExcel __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 Rank { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCAccountLevel { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCLevel { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCLevelDeviation { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCStarGrade { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool UseTSS { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.Rarity ExceptionCharacterRarities(int j) { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Rarity)0; } + public int ExceptionCharacterRaritiesLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExceptionCharacterRaritiesBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetExceptionCharacterRaritiesBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.Rarity[] GetExceptionCharacterRaritiesArray() { int o = __p.__offset(18); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Rarity[] a = new SCHALE.Common.FlatData.Rarity[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(p + i * 4); } return a; } + public long ExceptionMainCharacterIds(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExceptionMainCharacterIdsLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExceptionMainCharacterIdsBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetExceptionMainCharacterIdsBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetExceptionMainCharacterIdsArray() { return __p.__vector_as_array(20); } + public long ExceptionSupportCharacterIds(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExceptionSupportCharacterIdsLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExceptionSupportCharacterIdsBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetExceptionSupportCharacterIdsBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetExceptionSupportCharacterIdsArray() { return __p.__vector_as_array(22); } + public long ExceptionTSSIds(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExceptionTSSIdsLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExceptionTSSIdsBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetExceptionTSSIdsBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetExceptionTSSIdsArray() { return __p.__vector_as_array(24); } + + public static Offset CreateArenaNPCExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long Rank = 0, + long NPCAccountLevel = 0, + long NPCLevel = 0, + long NPCLevelDeviation = 0, + long NPCStarGrade = 0, + bool UseTSS = false, + VectorOffset ExceptionCharacterRaritiesOffset = default(VectorOffset), + VectorOffset ExceptionMainCharacterIdsOffset = default(VectorOffset), + VectorOffset ExceptionSupportCharacterIdsOffset = default(VectorOffset), + VectorOffset ExceptionTSSIdsOffset = default(VectorOffset)) { + builder.StartTable(11); + ArenaNPCExcel.AddNPCStarGrade(builder, NPCStarGrade); + ArenaNPCExcel.AddNPCLevelDeviation(builder, NPCLevelDeviation); + ArenaNPCExcel.AddNPCLevel(builder, NPCLevel); + ArenaNPCExcel.AddNPCAccountLevel(builder, NPCAccountLevel); + ArenaNPCExcel.AddRank(builder, Rank); + ArenaNPCExcel.AddUniqueId(builder, UniqueId); + ArenaNPCExcel.AddExceptionTSSIds(builder, ExceptionTSSIdsOffset); + ArenaNPCExcel.AddExceptionSupportCharacterIds(builder, ExceptionSupportCharacterIdsOffset); + ArenaNPCExcel.AddExceptionMainCharacterIds(builder, ExceptionMainCharacterIdsOffset); + ArenaNPCExcel.AddExceptionCharacterRarities(builder, ExceptionCharacterRaritiesOffset); + ArenaNPCExcel.AddUseTSS(builder, UseTSS); + return ArenaNPCExcel.EndArenaNPCExcel(builder); + } + + public static void StartArenaNPCExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddRank(FlatBufferBuilder builder, long rank) { builder.AddLong(1, rank, 0); } + public static void AddNPCAccountLevel(FlatBufferBuilder builder, long nPCAccountLevel) { builder.AddLong(2, nPCAccountLevel, 0); } + public static void AddNPCLevel(FlatBufferBuilder builder, long nPCLevel) { builder.AddLong(3, nPCLevel, 0); } + public static void AddNPCLevelDeviation(FlatBufferBuilder builder, long nPCLevelDeviation) { builder.AddLong(4, nPCLevelDeviation, 0); } + public static void AddNPCStarGrade(FlatBufferBuilder builder, long nPCStarGrade) { builder.AddLong(5, nPCStarGrade, 0); } + public static void AddUseTSS(FlatBufferBuilder builder, bool useTSS) { builder.AddBool(6, useTSS, false); } + public static void AddExceptionCharacterRarities(FlatBufferBuilder builder, VectorOffset exceptionCharacterRaritiesOffset) { builder.AddOffset(7, exceptionCharacterRaritiesOffset.Value, 0); } + public static VectorOffset CreateExceptionCharacterRaritiesVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity[] 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 CreateExceptionCharacterRaritiesVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionCharacterRaritiesVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionCharacterRaritiesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExceptionCharacterRaritiesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExceptionMainCharacterIds(FlatBufferBuilder builder, VectorOffset exceptionMainCharacterIdsOffset) { builder.AddOffset(8, exceptionMainCharacterIdsOffset.Value, 0); } + public static VectorOffset CreateExceptionMainCharacterIdsVector(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 CreateExceptionMainCharacterIdsVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionMainCharacterIdsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionMainCharacterIdsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExceptionMainCharacterIdsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExceptionSupportCharacterIds(FlatBufferBuilder builder, VectorOffset exceptionSupportCharacterIdsOffset) { builder.AddOffset(9, exceptionSupportCharacterIdsOffset.Value, 0); } + public static VectorOffset CreateExceptionSupportCharacterIdsVector(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 CreateExceptionSupportCharacterIdsVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionSupportCharacterIdsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionSupportCharacterIdsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExceptionSupportCharacterIdsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExceptionTSSIds(FlatBufferBuilder builder, VectorOffset exceptionTSSIdsOffset) { builder.AddOffset(10, exceptionTSSIdsOffset.Value, 0); } + public static VectorOffset CreateExceptionTSSIdsVector(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 CreateExceptionTSSIdsVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionTSSIdsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExceptionTSSIdsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExceptionTSSIdsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndArenaNPCExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaNPCExcelVerify +{ + 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 /*Rank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*NPCAccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*NPCLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*NPCLevelDeviation*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*NPCStarGrade*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*UseTSS*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ExceptionCharacterRarities*/, 4 /*SCHALE.Common.FlatData.Rarity*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ExceptionMainCharacterIds*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*ExceptionSupportCharacterIds*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*ExceptionTSSIds*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs b/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs new file mode 100644 index 0000000..8e83a53 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaNPCExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaNPCExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaNPCExcelTable GetRootAsArenaNPCExcelTable(ByteBuffer _bb) { return GetRootAsArenaNPCExcelTable(_bb, new ArenaNPCExcelTable()); } + public static ArenaNPCExcelTable GetRootAsArenaNPCExcelTable(ByteBuffer _bb, ArenaNPCExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaNPCExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaNPCExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaNPCExcel?)(new SCHALE.Common.FlatData.ArenaNPCExcel()).__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 CreateArenaNPCExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaNPCExcelTable.AddDataList(builder, DataListOffset); + return ArenaNPCExcelTable.EndArenaNPCExcelTable(builder); + } + + public static void StartArenaNPCExcelTable(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 EndArenaNPCExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaNPCExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaNPCExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaRewardExcel.cs b/SCHALE.Common/FlatData/ArenaRewardExcel.cs new file mode 100644 index 0000000..acc6867 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaRewardExcel.cs @@ -0,0 +1,138 @@ +// +// 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 ArenaRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaRewardExcel GetRootAsArenaRewardExcel(ByteBuffer _bb) { return GetRootAsArenaRewardExcel(_bb, new ArenaRewardExcel()); } + public static ArenaRewardExcel GetRootAsArenaRewardExcel(ByteBuffer _bb, ArenaRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaRewardExcel __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 SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ArenaRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArenaRewardType.None; } } + public long RankStart { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankEnd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RankIconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRankIconPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetRankIconPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetRankIconPathArray() { return __p.__vector_as_array(12); } + 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 RewardParcelUniqueId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelUniqueIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelUniqueIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardParcelUniqueIdArray() { return __p.__vector_as_array(16); } + public string RewardParcelUniqueName(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int RewardParcelUniqueNameLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public long RewardParcelAmount(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(20); } + + public static Offset CreateArenaRewardExcel(FlatBufferBuilder builder, + long UniqueId = 0, + SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType = SCHALE.Common.FlatData.ArenaRewardType.None, + long RankStart = 0, + long RankEnd = 0, + StringOffset RankIconPathOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(9); + ArenaRewardExcel.AddRankEnd(builder, RankEnd); + ArenaRewardExcel.AddRankStart(builder, RankStart); + ArenaRewardExcel.AddUniqueId(builder, UniqueId); + ArenaRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + ArenaRewardExcel.AddRewardParcelUniqueName(builder, RewardParcelUniqueNameOffset); + ArenaRewardExcel.AddRewardParcelUniqueId(builder, RewardParcelUniqueIdOffset); + ArenaRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + ArenaRewardExcel.AddRankIconPath(builder, RankIconPathOffset); + ArenaRewardExcel.AddArenaRewardType(builder, ArenaRewardType); + return ArenaRewardExcel.EndArenaRewardExcel(builder); + } + + public static void StartArenaRewardExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddArenaRewardType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArenaRewardType arenaRewardType) { builder.AddInt(1, (int)arenaRewardType, 0); } + public static void AddRankStart(FlatBufferBuilder builder, long rankStart) { builder.AddLong(2, rankStart, 0); } + public static void AddRankEnd(FlatBufferBuilder builder, long rankEnd) { builder.AddLong(3, rankEnd, 0); } + public static void AddRankIconPath(FlatBufferBuilder builder, StringOffset rankIconPathOffset) { builder.AddOffset(4, rankIconPathOffset.Value, 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 AddRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueIdOffset) { builder.AddOffset(6, rewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueIdVector(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 CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueNameOffset) { builder.AddOffset(7, rewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, VectorOffset rewardParcelAmountOffset) { builder.AddOffset(8, 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 EndArenaRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaRewardExcelVerify +{ + 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 /*ArenaRewardType*/, 4 /*SCHALE.Common.FlatData.ArenaRewardType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*RankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*RankIconPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*RewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs b/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs new file mode 100644 index 0000000..e20ebae --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaRewardExcelTable GetRootAsArenaRewardExcelTable(ByteBuffer _bb) { return GetRootAsArenaRewardExcelTable(_bb, new ArenaRewardExcelTable()); } + public static ArenaRewardExcelTable GetRootAsArenaRewardExcelTable(ByteBuffer _bb, ArenaRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaRewardExcel?)(new SCHALE.Common.FlatData.ArenaRewardExcel()).__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 CreateArenaRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaRewardExcelTable.AddDataList(builder, DataListOffset); + return ArenaRewardExcelTable.EndArenaRewardExcelTable(builder); + } + + public static void StartArenaRewardExcelTable(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 EndArenaRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaRewardType.cs b/SCHALE.Common/FlatData/ArenaRewardType.cs new file mode 100644 index 0000000..c1cef4d --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaRewardType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ArenaRewardType : int +{ + None = 0, + Time = 1, + Daily = 2, + SeasonRecord = 3, + OverallRecord = 4, + SeasonClose = 5, + AttackVictory = 6, + DefenseVictory = 7, + RankIcon = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs new file mode 100644 index 0000000..cd0ac8c --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcel.cs @@ -0,0 +1,122 @@ +// +// 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 ArenaSeasonCloseRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaSeasonCloseRewardExcel GetRootAsArenaSeasonCloseRewardExcel(ByteBuffer _bb) { return GetRootAsArenaSeasonCloseRewardExcel(_bb, new ArenaSeasonCloseRewardExcel()); } + public static ArenaSeasonCloseRewardExcel GetRootAsArenaSeasonCloseRewardExcel(ByteBuffer _bb, ArenaSeasonCloseRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaSeasonCloseRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankStart { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankEnd { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(10); 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(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(10); 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 RewardParcelUniqueId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelUniqueIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelUniqueIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardParcelUniqueIdArray() { return __p.__vector_as_array(12); } + public string RewardParcelUniqueName(int j) { int o = __p.__offset(14); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int RewardParcelUniqueNameLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public long RewardParcelAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(16); } + + public static Offset CreateArenaSeasonCloseRewardExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long RankStart = 0, + long RankEnd = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(7); + ArenaSeasonCloseRewardExcel.AddRankEnd(builder, RankEnd); + ArenaSeasonCloseRewardExcel.AddRankStart(builder, RankStart); + ArenaSeasonCloseRewardExcel.AddSeasonId(builder, SeasonId); + ArenaSeasonCloseRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + ArenaSeasonCloseRewardExcel.AddRewardParcelUniqueName(builder, RewardParcelUniqueNameOffset); + ArenaSeasonCloseRewardExcel.AddRewardParcelUniqueId(builder, RewardParcelUniqueIdOffset); + ArenaSeasonCloseRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + return ArenaSeasonCloseRewardExcel.EndArenaSeasonCloseRewardExcel(builder); + } + + public static void StartArenaSeasonCloseRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddRankStart(FlatBufferBuilder builder, long rankStart) { builder.AddLong(1, rankStart, 0); } + public static void AddRankEnd(FlatBufferBuilder builder, long rankEnd) { builder.AddLong(2, rankEnd, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(3, 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 AddRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueIdOffset) { builder.AddOffset(4, rewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueIdVector(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 CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueNameOffset) { builder.AddOffset(5, rewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, VectorOffset rewardParcelAmountOffset) { builder.AddOffset(6, 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 EndArenaSeasonCloseRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaSeasonCloseRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 14 /*RewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs new file mode 100644 index 0000000..96f9096 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaSeasonCloseRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaSeasonCloseRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaSeasonCloseRewardExcelTable GetRootAsArenaSeasonCloseRewardExcelTable(ByteBuffer _bb) { return GetRootAsArenaSeasonCloseRewardExcelTable(_bb, new ArenaSeasonCloseRewardExcelTable()); } + public static ArenaSeasonCloseRewardExcelTable GetRootAsArenaSeasonCloseRewardExcelTable(ByteBuffer _bb, ArenaSeasonCloseRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaSeasonCloseRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaSeasonCloseRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaSeasonCloseRewardExcel?)(new SCHALE.Common.FlatData.ArenaSeasonCloseRewardExcel()).__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 CreateArenaSeasonCloseRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaSeasonCloseRewardExcelTable.AddDataList(builder, DataListOffset); + return ArenaSeasonCloseRewardExcelTable.EndArenaSeasonCloseRewardExcelTable(builder); + } + + public static void StartArenaSeasonCloseRewardExcelTable(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 EndArenaSeasonCloseRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaSeasonCloseRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaSeasonCloseRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaSeasonExcel.cs b/SCHALE.Common/FlatData/ArenaSeasonExcel.cs new file mode 100644 index 0000000..3b012c2 --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaSeasonExcel.cs @@ -0,0 +1,82 @@ +// +// 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 ArenaSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaSeasonExcel GetRootAsArenaSeasonExcel(ByteBuffer _bb) { return GetRootAsArenaSeasonExcel(_bb, new ArenaSeasonExcel()); } + public static ArenaSeasonExcel GetRootAsArenaSeasonExcel(ByteBuffer _bb, ArenaSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaSeasonExcel __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 string SeasonStartDate { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonStartDateBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSeasonStartDateBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSeasonStartDateArray() { return __p.__vector_as_array(6); } + public string SeasonEndDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonEndDateBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSeasonEndDateBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSeasonEndDateArray() { return __p.__vector_as_array(8); } + public long SeasonGroupLimit { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrevSeasonId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateArenaSeasonExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset SeasonStartDateOffset = default(StringOffset), + StringOffset SeasonEndDateOffset = default(StringOffset), + long SeasonGroupLimit = 0, + long PrevSeasonId = 0) { + builder.StartTable(5); + ArenaSeasonExcel.AddPrevSeasonId(builder, PrevSeasonId); + ArenaSeasonExcel.AddSeasonGroupLimit(builder, SeasonGroupLimit); + ArenaSeasonExcel.AddUniqueId(builder, UniqueId); + ArenaSeasonExcel.AddSeasonEndDate(builder, SeasonEndDateOffset); + ArenaSeasonExcel.AddSeasonStartDate(builder, SeasonStartDateOffset); + return ArenaSeasonExcel.EndArenaSeasonExcel(builder); + } + + public static void StartArenaSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddSeasonStartDate(FlatBufferBuilder builder, StringOffset seasonStartDateOffset) { builder.AddOffset(1, seasonStartDateOffset.Value, 0); } + public static void AddSeasonEndDate(FlatBufferBuilder builder, StringOffset seasonEndDateOffset) { builder.AddOffset(2, seasonEndDateOffset.Value, 0); } + public static void AddSeasonGroupLimit(FlatBufferBuilder builder, long seasonGroupLimit) { builder.AddLong(3, seasonGroupLimit, 0); } + public static void AddPrevSeasonId(FlatBufferBuilder builder, long prevSeasonId) { builder.AddLong(4, prevSeasonId, 0); } + public static Offset EndArenaSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaSeasonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*SeasonStartDate*/, false) + && verifier.VerifyString(tablePos, 8 /*SeasonEndDate*/, false) + && verifier.VerifyField(tablePos, 10 /*SeasonGroupLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*PrevSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs b/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs new file mode 100644 index 0000000..0a8554b --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ArenaSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ArenaSeasonExcelTable GetRootAsArenaSeasonExcelTable(ByteBuffer _bb) { return GetRootAsArenaSeasonExcelTable(_bb, new ArenaSeasonExcelTable()); } + public static ArenaSeasonExcelTable GetRootAsArenaSeasonExcelTable(ByteBuffer _bb, ArenaSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ArenaSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ArenaSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ArenaSeasonExcel?)(new SCHALE.Common.FlatData.ArenaSeasonExcel()).__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 CreateArenaSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ArenaSeasonExcelTable.AddDataList(builder, DataListOffset); + return ArenaSeasonExcelTable.EndArenaSeasonExcelTable(builder); + } + + public static void StartArenaSeasonExcelTable(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 EndArenaSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ArenaSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ArenaSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ArenaSimulatorServer.cs b/SCHALE.Common/FlatData/ArenaSimulatorServer.cs new file mode 100644 index 0000000..ea2153d --- /dev/null +++ b/SCHALE.Common/FlatData/ArenaSimulatorServer.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ArenaSimulatorServer : int +{ + Preset = 0, + Live = 1, + Dev = 2, + QA = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ArmorType.cs b/SCHALE.Common/FlatData/ArmorType.cs new file mode 100644 index 0000000..e06a94e --- /dev/null +++ b/SCHALE.Common/FlatData/ArmorType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ArmorType : int +{ + LightArmor = 0, + HeavyArmor = 1, + Unarmed = 2, + Structure = 3, + Normal = 4, + ElasticArmor = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/AttackType.cs b/SCHALE.Common/FlatData/AttackType.cs new file mode 100644 index 0000000..f30e2dd --- /dev/null +++ b/SCHALE.Common/FlatData/AttackType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AttackType : int +{ + Single = 0, + Splash = 1, + Through = 2, + Heal = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/AttendanceCountRule.cs b/SCHALE.Common/FlatData/AttendanceCountRule.cs new file mode 100644 index 0000000..0ac90b8 --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceCountRule.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AttendanceCountRule : int +{ + Accumulation = 0, + Date = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/AttendanceExcel.cs b/SCHALE.Common/FlatData/AttendanceExcel.cs new file mode 100644 index 0000000..b97b47b --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceExcel.cs @@ -0,0 +1,188 @@ +// +// 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 AttendanceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AttendanceExcel GetRootAsAttendanceExcel(ByteBuffer _bb) { return GetRootAsAttendanceExcel(_bb, new AttendanceExcel()); } + public static AttendanceExcel GetRootAsAttendanceExcel(ByteBuffer _bb, AttendanceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AttendanceExcel __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 SCHALE.Common.FlatData.AttendanceType Type { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.AttendanceType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AttendanceType.Basic; } } + public string CountdownPrefab { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCountdownPrefabBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetCountdownPrefabBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetCountdownPrefabArray() { return __p.__vector_as_array(8); } + public long DisplayOrder { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } + public long AccountLevelLimit { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Title { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetTitleBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetTitleArray() { return __p.__vector_as_array(16); } + public string InfomationLocalizeCode { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInfomationLocalizeCodeBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetInfomationLocalizeCodeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetInfomationLocalizeCodeArray() { return __p.__vector_as_array(18); } + public SCHALE.Common.FlatData.AttendanceCountRule CountRule { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.AttendanceCountRule)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AttendanceCountRule.Accumulation; } } + public SCHALE.Common.FlatData.AttendanceResetType CountReset { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.AttendanceResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AttendanceResetType.User; } } + public long BookSize { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StartDate { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(26); } + public string StartableEndDate { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartableEndDateBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetStartableEndDateBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetStartableEndDateArray() { return __p.__vector_as_array(28); } + public string EndDate { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(30); } + public long ExpiryDate { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MailType MailType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MailType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MailType.System; } } + public SCHALE.Common.FlatData.DialogCategory DialogCategory { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } + public string TitleImagePath { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleImagePathBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetTitleImagePathBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetTitleImagePathArray() { return __p.__vector_as_array(38); } + public string DecorationImagePath { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDecorationImagePathBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetDecorationImagePathBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetDecorationImagePathArray() { return __p.__vector_as_array(40); } + + public static Offset CreateAttendanceExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.AttendanceType Type = SCHALE.Common.FlatData.AttendanceType.Basic, + StringOffset CountdownPrefabOffset = default(StringOffset), + long DisplayOrder = 0, + SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, + long AccountLevelLimit = 0, + StringOffset TitleOffset = default(StringOffset), + StringOffset InfomationLocalizeCodeOffset = default(StringOffset), + SCHALE.Common.FlatData.AttendanceCountRule CountRule = SCHALE.Common.FlatData.AttendanceCountRule.Accumulation, + SCHALE.Common.FlatData.AttendanceResetType CountReset = SCHALE.Common.FlatData.AttendanceResetType.User, + long BookSize = 0, + StringOffset StartDateOffset = default(StringOffset), + StringOffset StartableEndDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long ExpiryDate = 0, + SCHALE.Common.FlatData.MailType MailType = SCHALE.Common.FlatData.MailType.System, + SCHALE.Common.FlatData.DialogCategory DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe, + StringOffset TitleImagePathOffset = default(StringOffset), + StringOffset DecorationImagePathOffset = default(StringOffset)) { + builder.StartTable(19); + AttendanceExcel.AddExpiryDate(builder, ExpiryDate); + AttendanceExcel.AddBookSize(builder, BookSize); + AttendanceExcel.AddAccountLevelLimit(builder, AccountLevelLimit); + AttendanceExcel.AddDisplayOrder(builder, DisplayOrder); + AttendanceExcel.AddId(builder, Id); + AttendanceExcel.AddDecorationImagePath(builder, DecorationImagePathOffset); + AttendanceExcel.AddTitleImagePath(builder, TitleImagePathOffset); + AttendanceExcel.AddDialogCategory(builder, DialogCategory); + AttendanceExcel.AddMailType(builder, MailType); + AttendanceExcel.AddEndDate(builder, EndDateOffset); + AttendanceExcel.AddStartableEndDate(builder, StartableEndDateOffset); + AttendanceExcel.AddStartDate(builder, StartDateOffset); + AttendanceExcel.AddCountReset(builder, CountReset); + AttendanceExcel.AddCountRule(builder, CountRule); + AttendanceExcel.AddInfomationLocalizeCode(builder, InfomationLocalizeCodeOffset); + AttendanceExcel.AddTitle(builder, TitleOffset); + AttendanceExcel.AddAccountType(builder, AccountType); + AttendanceExcel.AddCountdownPrefab(builder, CountdownPrefabOffset); + AttendanceExcel.AddType(builder, Type); + return AttendanceExcel.EndAttendanceExcel(builder); + } + + public static void StartAttendanceExcel(FlatBufferBuilder builder) { builder.StartTable(19); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AttendanceType type) { builder.AddInt(1, (int)type, 0); } + public static void AddCountdownPrefab(FlatBufferBuilder builder, StringOffset countdownPrefabOffset) { builder.AddOffset(2, countdownPrefabOffset.Value, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(3, displayOrder, 0); } + public static void AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(4, (int)accountType, 0); } + public static void AddAccountLevelLimit(FlatBufferBuilder builder, long accountLevelLimit) { builder.AddLong(5, accountLevelLimit, 0); } + public static void AddTitle(FlatBufferBuilder builder, StringOffset titleOffset) { builder.AddOffset(6, titleOffset.Value, 0); } + public static void AddInfomationLocalizeCode(FlatBufferBuilder builder, StringOffset infomationLocalizeCodeOffset) { builder.AddOffset(7, infomationLocalizeCodeOffset.Value, 0); } + public static void AddCountRule(FlatBufferBuilder builder, SCHALE.Common.FlatData.AttendanceCountRule countRule) { builder.AddInt(8, (int)countRule, 0); } + public static void AddCountReset(FlatBufferBuilder builder, SCHALE.Common.FlatData.AttendanceResetType countReset) { builder.AddInt(9, (int)countReset, 0); } + public static void AddBookSize(FlatBufferBuilder builder, long bookSize) { builder.AddLong(10, bookSize, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(11, startDateOffset.Value, 0); } + public static void AddStartableEndDate(FlatBufferBuilder builder, StringOffset startableEndDateOffset) { builder.AddOffset(12, startableEndDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(13, endDateOffset.Value, 0); } + public static void AddExpiryDate(FlatBufferBuilder builder, long expiryDate) { builder.AddLong(14, expiryDate, 0); } + public static void AddMailType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MailType mailType) { builder.AddInt(15, (int)mailType, 0); } + public static void AddDialogCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory) { builder.AddInt(16, (int)dialogCategory, 0); } + public static void AddTitleImagePath(FlatBufferBuilder builder, StringOffset titleImagePathOffset) { builder.AddOffset(17, titleImagePathOffset.Value, 0); } + public static void AddDecorationImagePath(FlatBufferBuilder builder, StringOffset decorationImagePathOffset) { builder.AddOffset(18, decorationImagePathOffset.Value, 0); } + public static Offset EndAttendanceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AttendanceExcelVerify +{ + 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 /*Type*/, 4 /*SCHALE.Common.FlatData.AttendanceType*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*CountdownPrefab*/, false) + && verifier.VerifyField(tablePos, 10 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*AccountLevelLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 16 /*Title*/, false) + && verifier.VerifyString(tablePos, 18 /*InfomationLocalizeCode*/, false) + && verifier.VerifyField(tablePos, 20 /*CountRule*/, 4 /*SCHALE.Common.FlatData.AttendanceCountRule*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*CountReset*/, 4 /*SCHALE.Common.FlatData.AttendanceResetType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*BookSize*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 26 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 28 /*StartableEndDate*/, false) + && verifier.VerifyString(tablePos, 30 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 32 /*ExpiryDate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*MailType*/, 4 /*SCHALE.Common.FlatData.MailType*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*DialogCategory*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) + && verifier.VerifyString(tablePos, 38 /*TitleImagePath*/, false) + && verifier.VerifyString(tablePos, 40 /*DecorationImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AttendanceExcelTable.cs b/SCHALE.Common/FlatData/AttendanceExcelTable.cs new file mode 100644 index 0000000..2bbfcd0 --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AttendanceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AttendanceExcelTable GetRootAsAttendanceExcelTable(ByteBuffer _bb) { return GetRootAsAttendanceExcelTable(_bb, new AttendanceExcelTable()); } + public static AttendanceExcelTable GetRootAsAttendanceExcelTable(ByteBuffer _bb, AttendanceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AttendanceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AttendanceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AttendanceExcel?)(new SCHALE.Common.FlatData.AttendanceExcel()).__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 CreateAttendanceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AttendanceExcelTable.AddDataList(builder, DataListOffset); + return AttendanceExcelTable.EndAttendanceExcelTable(builder); + } + + public static void StartAttendanceExcelTable(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 EndAttendanceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AttendanceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AttendanceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AttendanceResetType.cs b/SCHALE.Common/FlatData/AttendanceResetType.cs new file mode 100644 index 0000000..d6087e7 --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceResetType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AttendanceResetType : int +{ + User = 0, + Server = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/AttendanceRewardExcel.cs b/SCHALE.Common/FlatData/AttendanceRewardExcel.cs new file mode 100644 index 0000000..4b4596e --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceRewardExcel.cs @@ -0,0 +1,117 @@ +// +// 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 AttendanceRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AttendanceRewardExcel GetRootAsAttendanceRewardExcel(ByteBuffer _bb) { return GetRootAsAttendanceRewardExcel(_bb, new AttendanceRewardExcel()); } + public static AttendanceRewardExcel GetRootAsAttendanceRewardExcel(ByteBuffer _bb, AttendanceRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AttendanceRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long AttendanceId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Day { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RewardIcon { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardIconBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetRewardIconBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetRewardIconArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(10); 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(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(10); 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 RewardId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardIdArray() { return __p.__vector_as_array(12); } + public long RewardAmount(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(14); } + + public static Offset CreateAttendanceRewardExcel(FlatBufferBuilder builder, + long AttendanceId = 0, + long Day = 0, + StringOffset RewardIconOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(6); + AttendanceRewardExcel.AddDay(builder, Day); + AttendanceRewardExcel.AddAttendanceId(builder, AttendanceId); + AttendanceRewardExcel.AddRewardAmount(builder, RewardAmountOffset); + AttendanceRewardExcel.AddRewardId(builder, RewardIdOffset); + AttendanceRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + AttendanceRewardExcel.AddRewardIcon(builder, RewardIconOffset); + return AttendanceRewardExcel.EndAttendanceRewardExcel(builder); + } + + public static void StartAttendanceRewardExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddAttendanceId(FlatBufferBuilder builder, long attendanceId) { builder.AddLong(0, attendanceId, 0); } + public static void AddDay(FlatBufferBuilder builder, long day) { builder.AddLong(1, day, 0); } + public static void AddRewardIcon(FlatBufferBuilder builder, StringOffset rewardIconOffset) { builder.AddOffset(2, rewardIconOffset.Value, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(3, 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 AddRewardId(FlatBufferBuilder builder, VectorOffset rewardIdOffset) { builder.AddOffset(4, rewardIdOffset.Value, 0); } + public static VectorOffset CreateRewardIdVector(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 CreateRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(5, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndAttendanceRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AttendanceRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*AttendanceId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Day*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*RewardIcon*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs b/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs new file mode 100644 index 0000000..3a5a2aa --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 AttendanceRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AttendanceRewardExcelTable GetRootAsAttendanceRewardExcelTable(ByteBuffer _bb) { return GetRootAsAttendanceRewardExcelTable(_bb, new AttendanceRewardExcelTable()); } + public static AttendanceRewardExcelTable GetRootAsAttendanceRewardExcelTable(ByteBuffer _bb, AttendanceRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AttendanceRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.AttendanceRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AttendanceRewardExcel?)(new SCHALE.Common.FlatData.AttendanceRewardExcel()).__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 CreateAttendanceRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + AttendanceRewardExcelTable.AddDataList(builder, DataListOffset); + return AttendanceRewardExcelTable.EndAttendanceRewardExcelTable(builder); + } + + public static void StartAttendanceRewardExcelTable(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 EndAttendanceRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AttendanceRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AttendanceRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/AttendanceType.cs b/SCHALE.Common/FlatData/AttendanceType.cs new file mode 100644 index 0000000..0f4f5cb --- /dev/null +++ b/SCHALE.Common/FlatData/AttendanceType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum AttendanceType : int +{ + Basic = 0, + Event = 1, + Newbie = 2, + EventCountDown = 3, + Event20Days = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/AudioAnimatorExcel.cs b/SCHALE.Common/FlatData/AudioAnimatorExcel.cs new file mode 100644 index 0000000..d8a5251 --- /dev/null +++ b/SCHALE.Common/FlatData/AudioAnimatorExcel.cs @@ -0,0 +1,140 @@ +// +// 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 AudioAnimatorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static AudioAnimatorExcel GetRootAsAudioAnimatorExcel(ByteBuffer _bb) { return GetRootAsAudioAnimatorExcel(_bb, new AudioAnimatorExcel()); } + public static AudioAnimatorExcel GetRootAsAudioAnimatorExcel(ByteBuffer _bb, AudioAnimatorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public AudioAnimatorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint ControllerNameHash { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string VoiceNamePrefix { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVoiceNamePrefixBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetVoiceNamePrefixBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetVoiceNamePrefixArray() { return __p.__vector_as_array(6); } + public uint StateNameHash { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string StateName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStateNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetStateNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetStateNameArray() { return __p.__vector_as_array(10); } + public bool IgnoreInterruptDelay { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IgnoreInterruptPlay { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float Volume { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Delay { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int RandomPitchMin { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RandomPitchMax { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AudioPriority { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string AudioClipPath(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int AudioClipPathLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } + public uint VoiceHash(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceHashLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceHashBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetVoiceHashBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public uint[] GetVoiceHashArray() { return __p.__vector_as_array(28); } + + public static Offset CreateAudioAnimatorExcel(FlatBufferBuilder builder, + uint ControllerNameHash = 0, + StringOffset VoiceNamePrefixOffset = default(StringOffset), + uint StateNameHash = 0, + StringOffset StateNameOffset = default(StringOffset), + bool IgnoreInterruptDelay = false, + bool IgnoreInterruptPlay = false, + float Volume = 0.0f, + float Delay = 0.0f, + int RandomPitchMin = 0, + int RandomPitchMax = 0, + int AudioPriority = 0, + VectorOffset AudioClipPathOffset = default(VectorOffset), + VectorOffset VoiceHashOffset = default(VectorOffset)) { + builder.StartTable(13); + AudioAnimatorExcel.AddVoiceHash(builder, VoiceHashOffset); + AudioAnimatorExcel.AddAudioClipPath(builder, AudioClipPathOffset); + AudioAnimatorExcel.AddAudioPriority(builder, AudioPriority); + AudioAnimatorExcel.AddRandomPitchMax(builder, RandomPitchMax); + AudioAnimatorExcel.AddRandomPitchMin(builder, RandomPitchMin); + AudioAnimatorExcel.AddDelay(builder, Delay); + AudioAnimatorExcel.AddVolume(builder, Volume); + AudioAnimatorExcel.AddStateName(builder, StateNameOffset); + AudioAnimatorExcel.AddStateNameHash(builder, StateNameHash); + AudioAnimatorExcel.AddVoiceNamePrefix(builder, VoiceNamePrefixOffset); + AudioAnimatorExcel.AddControllerNameHash(builder, ControllerNameHash); + AudioAnimatorExcel.AddIgnoreInterruptPlay(builder, IgnoreInterruptPlay); + AudioAnimatorExcel.AddIgnoreInterruptDelay(builder, IgnoreInterruptDelay); + return AudioAnimatorExcel.EndAudioAnimatorExcel(builder); + } + + public static void StartAudioAnimatorExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddControllerNameHash(FlatBufferBuilder builder, uint controllerNameHash) { builder.AddUint(0, controllerNameHash, 0); } + public static void AddVoiceNamePrefix(FlatBufferBuilder builder, StringOffset voiceNamePrefixOffset) { builder.AddOffset(1, voiceNamePrefixOffset.Value, 0); } + public static void AddStateNameHash(FlatBufferBuilder builder, uint stateNameHash) { builder.AddUint(2, stateNameHash, 0); } + public static void AddStateName(FlatBufferBuilder builder, StringOffset stateNameOffset) { builder.AddOffset(3, stateNameOffset.Value, 0); } + public static void AddIgnoreInterruptDelay(FlatBufferBuilder builder, bool ignoreInterruptDelay) { builder.AddBool(4, ignoreInterruptDelay, false); } + public static void AddIgnoreInterruptPlay(FlatBufferBuilder builder, bool ignoreInterruptPlay) { builder.AddBool(5, ignoreInterruptPlay, false); } + public static void AddVolume(FlatBufferBuilder builder, float volume) { builder.AddFloat(6, volume, 0.0f); } + public static void AddDelay(FlatBufferBuilder builder, float delay) { builder.AddFloat(7, delay, 0.0f); } + public static void AddRandomPitchMin(FlatBufferBuilder builder, int randomPitchMin) { builder.AddInt(8, randomPitchMin, 0); } + public static void AddRandomPitchMax(FlatBufferBuilder builder, int randomPitchMax) { builder.AddInt(9, randomPitchMax, 0); } + public static void AddAudioPriority(FlatBufferBuilder builder, int audioPriority) { builder.AddInt(10, audioPriority, 0); } + public static void AddAudioClipPath(FlatBufferBuilder builder, VectorOffset audioClipPathOffset) { builder.AddOffset(11, audioClipPathOffset.Value, 0); } + public static VectorOffset CreateAudioClipPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAudioClipPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVoiceHash(FlatBufferBuilder builder, VectorOffset voiceHashOffset) { builder.AddOffset(12, voiceHashOffset.Value, 0); } + public static VectorOffset CreateVoiceHashVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceHashVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndAudioAnimatorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class AudioAnimatorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ControllerNameHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*VoiceNamePrefix*/, false) + && verifier.VerifyField(tablePos, 8 /*StateNameHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*StateName*/, false) + && verifier.VerifyField(tablePos, 12 /*IgnoreInterruptDelay*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*IgnoreInterruptPlay*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*Volume*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Delay*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*RandomPitchMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*RandomPitchMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*AudioPriority*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 26 /*AudioClipPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*VoiceHash*/, 4 /*uint*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BGMExcel.cs b/SCHALE.Common/FlatData/BGMExcel.cs new file mode 100644 index 0000000..b0fd30c --- /dev/null +++ b/SCHALE.Common/FlatData/BGMExcel.cs @@ -0,0 +1,163 @@ +// +// 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 BGMExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BGMExcel GetRootAsBGMExcel(ByteBuffer _bb) { return GetRootAsBGMExcel(_bb, new BGMExcel()); } + public static BGMExcel GetRootAsBGMExcel(ByteBuffer _bb, BGMExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BGMExcel __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 SCHALE.Common.FlatData.Nation Nation_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Nation)0; } + public int Nation_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNation_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetNation_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.Nation[] GetNation_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Nation[] a = new SCHALE.Common.FlatData.Nation[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(p + i * 4); } return a; } + public string Path(int j) { int o = __p.__offset(8); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PathLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + public float Volume(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int VolumeLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVolumeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetVolumeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public float[] GetVolumeArray() { return __p.__vector_as_array(10); } + public float LoopStartTime(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int LoopStartTimeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLoopStartTimeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetLoopStartTimeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public float[] GetLoopStartTimeArray() { return __p.__vector_as_array(12); } + public float LoopEndTime(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int LoopEndTimeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLoopEndTimeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetLoopEndTimeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public float[] GetLoopEndTimeArray() { return __p.__vector_as_array(14); } + public float LoopTranstionTime(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int LoopTranstionTimeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLoopTranstionTimeBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetLoopTranstionTimeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public float[] GetLoopTranstionTimeArray() { return __p.__vector_as_array(16); } + public float LoopOffsetTime(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int LoopOffsetTimeLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLoopOffsetTimeBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetLoopOffsetTimeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public float[] GetLoopOffsetTimeArray() { return __p.__vector_as_array(18); } + + public static Offset CreateBGMExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset Nation_Offset = default(VectorOffset), + VectorOffset PathOffset = default(VectorOffset), + VectorOffset VolumeOffset = default(VectorOffset), + VectorOffset LoopStartTimeOffset = default(VectorOffset), + VectorOffset LoopEndTimeOffset = default(VectorOffset), + VectorOffset LoopTranstionTimeOffset = default(VectorOffset), + VectorOffset LoopOffsetTimeOffset = default(VectorOffset)) { + builder.StartTable(8); + BGMExcel.AddId(builder, Id); + BGMExcel.AddLoopOffsetTime(builder, LoopOffsetTimeOffset); + BGMExcel.AddLoopTranstionTime(builder, LoopTranstionTimeOffset); + BGMExcel.AddLoopEndTime(builder, LoopEndTimeOffset); + BGMExcel.AddLoopStartTime(builder, LoopStartTimeOffset); + BGMExcel.AddVolume(builder, VolumeOffset); + BGMExcel.AddPath(builder, PathOffset); + BGMExcel.AddNation_(builder, Nation_Offset); + return BGMExcel.EndBGMExcel(builder); + } + + public static void StartBGMExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddNation_(FlatBufferBuilder builder, VectorOffset nation_Offset) { builder.AddOffset(1, nation_Offset.Value, 0); } + public static VectorOffset CreateNation_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] 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 CreateNation_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNation_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPath(FlatBufferBuilder builder, VectorOffset pathOffset) { builder.AddOffset(2, pathOffset.Value, 0); } + public static VectorOffset CreatePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVolume(FlatBufferBuilder builder, VectorOffset volumeOffset) { builder.AddOffset(3, volumeOffset.Value, 0); } + public static VectorOffset CreateVolumeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVolumeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLoopStartTime(FlatBufferBuilder builder, VectorOffset loopStartTimeOffset) { builder.AddOffset(4, loopStartTimeOffset.Value, 0); } + public static VectorOffset CreateLoopStartTimeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateLoopStartTimeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopStartTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopStartTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLoopStartTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLoopEndTime(FlatBufferBuilder builder, VectorOffset loopEndTimeOffset) { builder.AddOffset(5, loopEndTimeOffset.Value, 0); } + public static VectorOffset CreateLoopEndTimeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateLoopEndTimeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopEndTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopEndTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLoopEndTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLoopTranstionTime(FlatBufferBuilder builder, VectorOffset loopTranstionTimeOffset) { builder.AddOffset(6, loopTranstionTimeOffset.Value, 0); } + public static VectorOffset CreateLoopTranstionTimeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateLoopTranstionTimeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopTranstionTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopTranstionTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLoopTranstionTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLoopOffsetTime(FlatBufferBuilder builder, VectorOffset loopOffsetTimeOffset) { builder.AddOffset(7, loopOffsetTimeOffset.Value, 0); } + public static VectorOffset CreateLoopOffsetTimeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateLoopOffsetTimeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopOffsetTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLoopOffsetTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLoopOffsetTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndBGMExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BGMExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Nation_*/, 4 /*SCHALE.Common.FlatData.Nation*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 8 /*Path*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*Volume*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*LoopStartTime*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*LoopEndTime*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*LoopTranstionTime*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*LoopOffsetTime*/, 4 /*float*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BGMRaidExcel.cs b/SCHALE.Common/FlatData/BGMRaidExcel.cs new file mode 100644 index 0000000..1e5f46d --- /dev/null +++ b/SCHALE.Common/FlatData/BGMRaidExcel.cs @@ -0,0 +1,60 @@ +// +// 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 BGMRaidExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BGMRaidExcel GetRootAsBGMRaidExcel(ByteBuffer _bb) { return GetRootAsBGMRaidExcel(_bb, new BGMRaidExcel()); } + public static BGMRaidExcel GetRootAsBGMRaidExcel(ByteBuffer _bb, BGMRaidExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BGMRaidExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StageId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PhaseIndex { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateBGMRaidExcel(FlatBufferBuilder builder, + long StageId = 0, + long PhaseIndex = 0, + long BGMId = 0) { + builder.StartTable(3); + BGMRaidExcel.AddBGMId(builder, BGMId); + BGMRaidExcel.AddPhaseIndex(builder, PhaseIndex); + BGMRaidExcel.AddStageId(builder, StageId); + return BGMRaidExcel.EndBGMRaidExcel(builder); + } + + public static void StartBGMRaidExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(0, stageId, 0); } + public static void AddPhaseIndex(FlatBufferBuilder builder, long phaseIndex) { builder.AddLong(1, phaseIndex, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(2, bGMId, 0); } + public static Offset EndBGMRaidExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BGMRaidExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*PhaseIndex*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BGMUIExcel.cs b/SCHALE.Common/FlatData/BGMUIExcel.cs new file mode 100644 index 0000000..55be72f --- /dev/null +++ b/SCHALE.Common/FlatData/BGMUIExcel.cs @@ -0,0 +1,70 @@ +// +// 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 BGMUIExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BGMUIExcel GetRootAsBGMUIExcel(ByteBuffer _bb) { return GetRootAsBGMUIExcel(_bb, new BGMUIExcel()); } + public static BGMUIExcel GetRootAsBGMUIExcel(ByteBuffer _bb, BGMUIExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BGMUIExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint UIPrefab { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long BGMId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId2nd { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId3rd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventContentId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateBGMUIExcel(FlatBufferBuilder builder, + uint UIPrefab = 0, + long BGMId = 0, + long BGMId2nd = 0, + long BGMId3rd = 0, + long EventContentId = 0) { + builder.StartTable(5); + BGMUIExcel.AddEventContentId(builder, EventContentId); + BGMUIExcel.AddBGMId3rd(builder, BGMId3rd); + BGMUIExcel.AddBGMId2nd(builder, BGMId2nd); + BGMUIExcel.AddBGMId(builder, BGMId); + BGMUIExcel.AddUIPrefab(builder, UIPrefab); + return BGMUIExcel.EndBGMUIExcel(builder); + } + + public static void StartBGMUIExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUIPrefab(FlatBufferBuilder builder, uint uIPrefab) { builder.AddUint(0, uIPrefab, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(1, bGMId, 0); } + public static void AddBGMId2nd(FlatBufferBuilder builder, long bGMId2nd) { builder.AddLong(2, bGMId2nd, 0); } + public static void AddBGMId3rd(FlatBufferBuilder builder, long bGMId3rd) { builder.AddLong(3, bGMId3rd, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(4, eventContentId, 0); } + public static Offset EndBGMUIExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BGMUIExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UIPrefab*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*BGMId2nd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*BGMId3rd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BattleCalculationStat.cs b/SCHALE.Common/FlatData/BattleCalculationStat.cs new file mode 100644 index 0000000..4984d4f --- /dev/null +++ b/SCHALE.Common/FlatData/BattleCalculationStat.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BattleCalculationStat : int +{ + FinalDamage = 0, + FinalHeal = 1, + FinalDamageRatio = 2, + FinalDamageRatio2 = 3, + FinalCriticalRate = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs b/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs new file mode 100644 index 0000000..d862ff9 --- /dev/null +++ b/SCHALE.Common/FlatData/BattleLevelFactorExcel.cs @@ -0,0 +1,55 @@ +// +// 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 BattleLevelFactorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BattleLevelFactorExcel GetRootAsBattleLevelFactorExcel(ByteBuffer _bb) { return GetRootAsBattleLevelFactorExcel(_bb, new BattleLevelFactorExcel()); } + public static BattleLevelFactorExcel GetRootAsBattleLevelFactorExcel(ByteBuffer _bb, BattleLevelFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BattleLevelFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int LevelDiff { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long DamageRate { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateBattleLevelFactorExcel(FlatBufferBuilder builder, + int LevelDiff = 0, + long DamageRate = 0) { + builder.StartTable(2); + BattleLevelFactorExcel.AddDamageRate(builder, DamageRate); + BattleLevelFactorExcel.AddLevelDiff(builder, LevelDiff); + return BattleLevelFactorExcel.EndBattleLevelFactorExcel(builder); + } + + public static void StartBattleLevelFactorExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddLevelDiff(FlatBufferBuilder builder, int levelDiff) { builder.AddInt(0, levelDiff, 0); } + public static void AddDamageRate(FlatBufferBuilder builder, long damageRate) { builder.AddLong(1, damageRate, 0); } + public static Offset EndBattleLevelFactorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BattleLevelFactorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*LevelDiff*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*DamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs b/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs new file mode 100644 index 0000000..0129d6f --- /dev/null +++ b/SCHALE.Common/FlatData/BattleLevelFactorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 BattleLevelFactorExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BattleLevelFactorExcelTable GetRootAsBattleLevelFactorExcelTable(ByteBuffer _bb) { return GetRootAsBattleLevelFactorExcelTable(_bb, new BattleLevelFactorExcelTable()); } + public static BattleLevelFactorExcelTable GetRootAsBattleLevelFactorExcelTable(ByteBuffer _bb, BattleLevelFactorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BattleLevelFactorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BattleLevelFactorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BattleLevelFactorExcel?)(new SCHALE.Common.FlatData.BattleLevelFactorExcel()).__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 CreateBattleLevelFactorExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + BattleLevelFactorExcelTable.AddDataList(builder, DataListOffset); + return BattleLevelFactorExcelTable.EndBattleLevelFactorExcelTable(builder); + } + + public static void StartBattleLevelFactorExcelTable(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 EndBattleLevelFactorExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BattleLevelFactorExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BattleLevelFactorExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BillingTransactionEndType.cs b/SCHALE.Common/FlatData/BillingTransactionEndType.cs new file mode 100644 index 0000000..0ff8eaf --- /dev/null +++ b/SCHALE.Common/FlatData/BillingTransactionEndType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BillingTransactionEndType : int +{ + None = 0, + Success = 1, + Cancel = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/BlendData.cs b/SCHALE.Common/FlatData/BlendData.cs new file mode 100644 index 0000000..2482a7e --- /dev/null +++ b/SCHALE.Common/FlatData/BlendData.cs @@ -0,0 +1,61 @@ +// +// 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 BlendData : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BlendData GetRootAsBlendData(ByteBuffer _bb) { return GetRootAsBlendData(_bb, new BlendData()); } + public static BlendData GetRootAsBlendData(ByteBuffer _bb, BlendData obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BlendData __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Type { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.BlendInfo? InfoList(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.BlendInfo?)(new SCHALE.Common.FlatData.BlendInfo()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int InfoListLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateBlendData(FlatBufferBuilder builder, + int Type = 0, + VectorOffset InfoListOffset = default(VectorOffset)) { + builder.StartTable(2); + BlendData.AddInfoList(builder, InfoListOffset); + BlendData.AddType(builder, Type); + return BlendData.EndBlendData(builder); + } + + public static void StartBlendData(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddType(FlatBufferBuilder builder, int type) { builder.AddInt(0, type, 0); } + public static void AddInfoList(FlatBufferBuilder builder, VectorOffset infoListOffset) { builder.AddOffset(1, infoListOffset.Value, 0); } + public static VectorOffset CreateInfoListVector(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 CreateInfoListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInfoListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInfoListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartInfoListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndBlendData(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BlendDataVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Type*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*InfoList*/, SCHALE.Common.FlatData.BlendInfoVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BlendInfo.cs b/SCHALE.Common/FlatData/BlendInfo.cs new file mode 100644 index 0000000..6f20ad6 --- /dev/null +++ b/SCHALE.Common/FlatData/BlendInfo.cs @@ -0,0 +1,60 @@ +// +// 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 BlendInfo : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BlendInfo GetRootAsBlendInfo(ByteBuffer _bb) { return GetRootAsBlendInfo(_bb, new BlendInfo()); } + public static BlendInfo GetRootAsBlendInfo(ByteBuffer _bb, BlendInfo obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BlendInfo __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int From { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int To { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float Blend { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateBlendInfo(FlatBufferBuilder builder, + int From = 0, + int To = 0, + float Blend = 0.0f) { + builder.StartTable(3); + BlendInfo.AddBlend(builder, Blend); + BlendInfo.AddTo(builder, To); + BlendInfo.AddFrom(builder, From); + return BlendInfo.EndBlendInfo(builder); + } + + public static void StartBlendInfo(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddFrom(FlatBufferBuilder builder, int from) { builder.AddInt(0, from, 0); } + public static void AddTo(FlatBufferBuilder builder, int to) { builder.AddInt(1, to, 0); } + public static void AddBlend(FlatBufferBuilder builder, float blend) { builder.AddFloat(2, blend, 0.0f); } + public static Offset EndBlendInfo(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BlendInfoVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*From*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*To*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Blend*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BossExternalBTExcel.cs b/SCHALE.Common/FlatData/BossExternalBTExcel.cs new file mode 100644 index 0000000..1fa78c1 --- /dev/null +++ b/SCHALE.Common/FlatData/BossExternalBTExcel.cs @@ -0,0 +1,97 @@ +// +// 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 BossExternalBTExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BossExternalBTExcel GetRootAsBossExternalBTExcel(ByteBuffer _bb) { return GetRootAsBossExternalBTExcel(_bb, new BossExternalBTExcel()); } + public static BossExternalBTExcel GetRootAsBossExternalBTExcel(ByteBuffer _bb, BossExternalBTExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BossExternalBTExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ExternalBTId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AIPhase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ExternalBTNodeType ExternalBTNodeType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ExternalBTNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBTNodeType.Sequence; } } + public SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ExternalBTTrigger)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBTTrigger.None; } } + public string TriggerArgument { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTriggerArgumentBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetTriggerArgumentBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetTriggerArgumentArray() { return __p.__vector_as_array(12); } + public long BehaviorRate { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ExternalBehavior ExternalBehavior { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ExternalBehavior)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBehavior.UseNextExSkill; } } + public string BehaviorArgument { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBehaviorArgumentBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetBehaviorArgumentBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetBehaviorArgumentArray() { return __p.__vector_as_array(18); } + + public static Offset CreateBossExternalBTExcel(FlatBufferBuilder builder, + long ExternalBTId = 0, + long AIPhase = 0, + SCHALE.Common.FlatData.ExternalBTNodeType ExternalBTNodeType = SCHALE.Common.FlatData.ExternalBTNodeType.Sequence, + SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger = SCHALE.Common.FlatData.ExternalBTTrigger.None, + StringOffset TriggerArgumentOffset = default(StringOffset), + long BehaviorRate = 0, + SCHALE.Common.FlatData.ExternalBehavior ExternalBehavior = SCHALE.Common.FlatData.ExternalBehavior.UseNextExSkill, + StringOffset BehaviorArgumentOffset = default(StringOffset)) { + builder.StartTable(8); + BossExternalBTExcel.AddBehaviorRate(builder, BehaviorRate); + BossExternalBTExcel.AddAIPhase(builder, AIPhase); + BossExternalBTExcel.AddExternalBTId(builder, ExternalBTId); + BossExternalBTExcel.AddBehaviorArgument(builder, BehaviorArgumentOffset); + BossExternalBTExcel.AddExternalBehavior(builder, ExternalBehavior); + BossExternalBTExcel.AddTriggerArgument(builder, TriggerArgumentOffset); + BossExternalBTExcel.AddExternalBTTrigger(builder, ExternalBTTrigger); + BossExternalBTExcel.AddExternalBTNodeType(builder, ExternalBTNodeType); + return BossExternalBTExcel.EndBossExternalBTExcel(builder); + } + + public static void StartBossExternalBTExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddExternalBTId(FlatBufferBuilder builder, long externalBTId) { builder.AddLong(0, externalBTId, 0); } + public static void AddAIPhase(FlatBufferBuilder builder, long aIPhase) { builder.AddLong(1, aIPhase, 0); } + public static void AddExternalBTNodeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ExternalBTNodeType externalBTNodeType) { builder.AddInt(2, (int)externalBTNodeType, 0); } + public static void AddExternalBTTrigger(FlatBufferBuilder builder, SCHALE.Common.FlatData.ExternalBTTrigger externalBTTrigger) { builder.AddInt(3, (int)externalBTTrigger, 0); } + public static void AddTriggerArgument(FlatBufferBuilder builder, StringOffset triggerArgumentOffset) { builder.AddOffset(4, triggerArgumentOffset.Value, 0); } + public static void AddBehaviorRate(FlatBufferBuilder builder, long behaviorRate) { builder.AddLong(5, behaviorRate, 0); } + public static void AddExternalBehavior(FlatBufferBuilder builder, SCHALE.Common.FlatData.ExternalBehavior externalBehavior) { builder.AddInt(6, (int)externalBehavior, 0); } + public static void AddBehaviorArgument(FlatBufferBuilder builder, StringOffset behaviorArgumentOffset) { builder.AddOffset(7, behaviorArgumentOffset.Value, 0); } + public static Offset EndBossExternalBTExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BossExternalBTExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ExternalBTId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*AIPhase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ExternalBTNodeType*/, 4 /*SCHALE.Common.FlatData.ExternalBTNodeType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ExternalBTTrigger*/, 4 /*SCHALE.Common.FlatData.ExternalBTTrigger*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*TriggerArgument*/, false) + && verifier.VerifyField(tablePos, 14 /*BehaviorRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*ExternalBehavior*/, 4 /*SCHALE.Common.FlatData.ExternalBehavior*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*BehaviorArgument*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs b/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs new file mode 100644 index 0000000..353503b --- /dev/null +++ b/SCHALE.Common/FlatData/BossExternalBTExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 BossExternalBTExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BossExternalBTExcelTable GetRootAsBossExternalBTExcelTable(ByteBuffer _bb) { return GetRootAsBossExternalBTExcelTable(_bb, new BossExternalBTExcelTable()); } + public static BossExternalBTExcelTable GetRootAsBossExternalBTExcelTable(ByteBuffer _bb, BossExternalBTExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BossExternalBTExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BossExternalBTExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BossExternalBTExcel?)(new SCHALE.Common.FlatData.BossExternalBTExcel()).__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 CreateBossExternalBTExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + BossExternalBTExcelTable.AddDataList(builder, DataListOffset); + return BossExternalBTExcelTable.EndBossExternalBTExcelTable(builder); + } + + public static void StartBossExternalBTExcelTable(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 EndBossExternalBTExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BossExternalBTExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BossExternalBTExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BossPhaseExcel.cs b/SCHALE.Common/FlatData/BossPhaseExcel.cs new file mode 100644 index 0000000..c1606e6 --- /dev/null +++ b/SCHALE.Common/FlatData/BossPhaseExcel.cs @@ -0,0 +1,83 @@ +// +// 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 BossPhaseExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BossPhaseExcel GetRootAsBossPhaseExcel(ByteBuffer _bb) { return GetRootAsBossPhaseExcel(_bb, new BossPhaseExcel()); } + public static BossPhaseExcel GetRootAsBossPhaseExcel(ByteBuffer _bb, BossPhaseExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BossPhaseExcel __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 AIPhase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string NormalAttackSkillUniqueName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNormalAttackSkillUniqueNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNormalAttackSkillUniqueNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNormalAttackSkillUniqueNameArray() { return __p.__vector_as_array(8); } + public bool UseExSkill(int j) { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int UseExSkillLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetUseExSkillBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetUseExSkillBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public bool[] GetUseExSkillArray() { return __p.__vector_as_array(10); } + + public static Offset CreateBossPhaseExcel(FlatBufferBuilder builder, + long Id = 0, + long AIPhase = 0, + StringOffset NormalAttackSkillUniqueNameOffset = default(StringOffset), + VectorOffset UseExSkillOffset = default(VectorOffset)) { + builder.StartTable(4); + BossPhaseExcel.AddAIPhase(builder, AIPhase); + BossPhaseExcel.AddId(builder, Id); + BossPhaseExcel.AddUseExSkill(builder, UseExSkillOffset); + BossPhaseExcel.AddNormalAttackSkillUniqueName(builder, NormalAttackSkillUniqueNameOffset); + return BossPhaseExcel.EndBossPhaseExcel(builder); + } + + public static void StartBossPhaseExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddAIPhase(FlatBufferBuilder builder, long aIPhase) { builder.AddLong(1, aIPhase, 0); } + public static void AddNormalAttackSkillUniqueName(FlatBufferBuilder builder, StringOffset normalAttackSkillUniqueNameOffset) { builder.AddOffset(2, normalAttackSkillUniqueNameOffset.Value, 0); } + public static void AddUseExSkill(FlatBufferBuilder builder, VectorOffset useExSkillOffset) { builder.AddOffset(3, useExSkillOffset.Value, 0); } + public static VectorOffset CreateUseExSkillVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateUseExSkillVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUseExSkillVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUseExSkillVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUseExSkillVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static Offset EndBossPhaseExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BossPhaseExcelVerify +{ + 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 /*AIPhase*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*NormalAttackSkillUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*UseExSkill*/, 1 /*bool*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BossPhaseExcelTable.cs b/SCHALE.Common/FlatData/BossPhaseExcelTable.cs new file mode 100644 index 0000000..b9bb1f7 --- /dev/null +++ b/SCHALE.Common/FlatData/BossPhaseExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 BossPhaseExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BossPhaseExcelTable GetRootAsBossPhaseExcelTable(ByteBuffer _bb) { return GetRootAsBossPhaseExcelTable(_bb, new BossPhaseExcelTable()); } + public static BossPhaseExcelTable GetRootAsBossPhaseExcelTable(ByteBuffer _bb, BossPhaseExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BossPhaseExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BossPhaseExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BossPhaseExcel?)(new SCHALE.Common.FlatData.BossPhaseExcel()).__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 CreateBossPhaseExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + BossPhaseExcelTable.AddDataList(builder, DataListOffset); + return BossPhaseExcelTable.EndBossPhaseExcelTable(builder); + } + + public static void StartBossPhaseExcelTable(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 EndBossPhaseExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BossPhaseExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BossPhaseExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BubbleType.cs b/SCHALE.Common/FlatData/BubbleType.cs new file mode 100644 index 0000000..dbb7aea --- /dev/null +++ b/SCHALE.Common/FlatData/BubbleType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BubbleType : int +{ + Idle = 0, + Monologue = 1, + EmoticonNormal = 2, + EmoticonFavorite = 3, + EmoticonReward = 4, + EmoticonGiveGift = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/BuffConditionType.cs b/SCHALE.Common/FlatData/BuffConditionType.cs new file mode 100644 index 0000000..afc2329 --- /dev/null +++ b/SCHALE.Common/FlatData/BuffConditionType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BuffConditionType : int +{ + All = 0, + Character = 1, + School = 2, + Weapon = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/BuffIconType.cs b/SCHALE.Common/FlatData/BuffIconType.cs new file mode 100644 index 0000000..23e6d42 --- /dev/null +++ b/SCHALE.Common/FlatData/BuffIconType.cs @@ -0,0 +1,60 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BuffIconType : int +{ + None = 0, + Debuff_DyingPenalty = 1, + CC_MindControl = 2, + CC_Inoperative = 3, + CC_Confusion = 4, + CC_Provoke = 5, + CC_Silence = 6, + CC_Blind = 7, + Dot_Damage = 8, + Dot_Heal = 9, + Buff_AttackPower = 10, + Buff_CriticalChance = 11, + Buff_CriticalDamage = 12, + Buff_DefensePower = 13, + Buff_Dodge = 14, + Buff_Hit = 15, + Buff_WeaponRange = 16, + Buff_SightRange = 17, + Buff_MoveSpeed = 18, + Buff_Mind = 19, + Debuf_AttackPower = 20, + Debuff_CriticalChance = 21, + Debuff_CriticalDamage = 22, + Debuff_DefensePower = 23, + Debuff_Dodge = 24, + Debuff_Hit = 25, + Debuff_WeaponRange = 26, + Debuff_SightRange = 27, + Debuff_MoveSpeed = 28, + Debuff_Mind = 29, + Buff_AttackTime = 30, + Debuff_AttackTime = 31, + Buff_MaxHp = 32, + Debuff_MaxHp = 33, + Buff_MaxBulletCount = 34, + Debuff_MaxBulletCount = 35, + Debuff_SuppliesCondition = 36, + Buff_HealEffectivenessRate = 37, + Debuff_HealEffectivenessRate = 38, + Buff_HealPower = 39, + Debuff_HealPower = 40, + Buff_CriticalChanceResistPoint = 41, + Debuff_CriticalChanceResistPoint = 42, + CC_Stunned = 43, + Debuff_ConcentratedTarget = 44, + Buff_Immortal = 45, + Max = 46, +}; + + +} diff --git a/SCHALE.Common/FlatData/BuffOverlap.cs b/SCHALE.Common/FlatData/BuffOverlap.cs new file mode 100644 index 0000000..27383ee --- /dev/null +++ b/SCHALE.Common/FlatData/BuffOverlap.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BuffOverlap : int +{ + Able = 0, + Unable = 1, + Change = 2, + Additive = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/BuffParticleExcel.cs b/SCHALE.Common/FlatData/BuffParticleExcel.cs new file mode 100644 index 0000000..a75514e --- /dev/null +++ b/SCHALE.Common/FlatData/BuffParticleExcel.cs @@ -0,0 +1,94 @@ +// +// 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 BuffParticleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BuffParticleExcel GetRootAsBuffParticleExcel(ByteBuffer _bb) { return GetRootAsBuffParticleExcel(_bb, new BuffParticleExcel()); } + public static BuffParticleExcel GetRootAsBuffParticleExcel(ByteBuffer _bb, BuffParticleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BuffParticleExcel __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 string UniqueName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUniqueNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetUniqueNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetUniqueNameArray() { return __p.__vector_as_array(6); } + public string BuffType { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetBuffTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetBuffTypeArray() { return __p.__vector_as_array(8); } + public string BuffName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetBuffNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetBuffNameArray() { return __p.__vector_as_array(10); } + public string ResourcePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetResourcePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetResourcePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetResourcePathArray() { return __p.__vector_as_array(12); } + + public static Offset CreateBuffParticleExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset UniqueNameOffset = default(StringOffset), + StringOffset BuffTypeOffset = default(StringOffset), + StringOffset BuffNameOffset = default(StringOffset), + StringOffset ResourcePathOffset = default(StringOffset)) { + builder.StartTable(5); + BuffParticleExcel.AddUniqueId(builder, UniqueId); + BuffParticleExcel.AddResourcePath(builder, ResourcePathOffset); + BuffParticleExcel.AddBuffName(builder, BuffNameOffset); + BuffParticleExcel.AddBuffType(builder, BuffTypeOffset); + BuffParticleExcel.AddUniqueName(builder, UniqueNameOffset); + return BuffParticleExcel.EndBuffParticleExcel(builder); + } + + public static void StartBuffParticleExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddUniqueName(FlatBufferBuilder builder, StringOffset uniqueNameOffset) { builder.AddOffset(1, uniqueNameOffset.Value, 0); } + public static void AddBuffType(FlatBufferBuilder builder, StringOffset buffTypeOffset) { builder.AddOffset(2, buffTypeOffset.Value, 0); } + public static void AddBuffName(FlatBufferBuilder builder, StringOffset buffNameOffset) { builder.AddOffset(3, buffNameOffset.Value, 0); } + public static void AddResourcePath(FlatBufferBuilder builder, StringOffset resourcePathOffset) { builder.AddOffset(4, resourcePathOffset.Value, 0); } + public static Offset EndBuffParticleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BuffParticleExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*UniqueName*/, false) + && verifier.VerifyString(tablePos, 8 /*BuffType*/, false) + && verifier.VerifyString(tablePos, 10 /*BuffName*/, false) + && verifier.VerifyString(tablePos, 12 /*ResourcePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BuffParticleExcelTable.cs b/SCHALE.Common/FlatData/BuffParticleExcelTable.cs new file mode 100644 index 0000000..0861bb7 --- /dev/null +++ b/SCHALE.Common/FlatData/BuffParticleExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 BuffParticleExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BuffParticleExcelTable GetRootAsBuffParticleExcelTable(ByteBuffer _bb) { return GetRootAsBuffParticleExcelTable(_bb, new BuffParticleExcelTable()); } + public static BuffParticleExcelTable GetRootAsBuffParticleExcelTable(ByteBuffer _bb, BuffParticleExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BuffParticleExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BuffParticleExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BuffParticleExcel?)(new SCHALE.Common.FlatData.BuffParticleExcel()).__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 CreateBuffParticleExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + BuffParticleExcelTable.AddDataList(builder, DataListOffset); + return BuffParticleExcelTable.EndBuffParticleExcelTable(builder); + } + + public static void StartBuffParticleExcelTable(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 EndBuffParticleExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BuffParticleExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BuffParticleExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BuffType.cs b/SCHALE.Common/FlatData/BuffType.cs new file mode 100644 index 0000000..28eabd1 --- /dev/null +++ b/SCHALE.Common/FlatData/BuffType.cs @@ -0,0 +1,38 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BuffType : int +{ + None = 0, + Buff_AttackPower = 1, + Buff_CriticalChance = 2, + Buff_CriticalDamage = 3, + Buff_DefensePower = 4, + Buff_Dodge = 5, + Buff_Hit = 6, + Buff_WeaponRange = 7, + Buff_SightRange = 8, + Buff_MoveSpeed = 9, + Buff_AttackTime = 10, + Buff_MaxHp = 11, + Buff_MaxBulletCount = 12, + DeBuff_AttackPower = 13, + DeBuff_CriticalChance = 14, + DeBuff_CriticalDamage = 15, + DeBuff_DefensePower = 16, + DeBuff_Dodge = 17, + DeBuff_Hit = 18, + DeBuff_WeaponRange = 19, + DeBuff_SightRange = 20, + DeBuff_MoveSpeed = 21, + DeBuff_AttackTime = 22, + DeBuff_MaxHp = 23, + DeBuff_MaxBulletCount = 24, +}; + + +} diff --git a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs new file mode 100644 index 0000000..e3f9d2d --- /dev/null +++ b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcel.cs @@ -0,0 +1,91 @@ +// +// 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 BulletArmorDamageFactorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BulletArmorDamageFactorExcel GetRootAsBulletArmorDamageFactorExcel(ByteBuffer _bb) { return GetRootAsBulletArmorDamageFactorExcel(_bb, new BulletArmorDamageFactorExcel()); } + public static BulletArmorDamageFactorExcel GetRootAsBulletArmorDamageFactorExcel(ByteBuffer _bb, BulletArmorDamageFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BulletArmorDamageFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string DamageFactorGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDamageFactorGroupIdBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetDamageFactorGroupIdBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetDamageFactorGroupIdArray() { return __p.__vector_as_array(4); } + public SCHALE.Common.FlatData.BulletType BulletType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } + public SCHALE.Common.FlatData.ArmorType ArmorType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ArmorType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArmorType.LightArmor; } } + public long DamageRate { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DamageAttribute DamageAttribute { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DamageAttribute)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DamageAttribute.Resist; } } + public long MinDamageRate { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxDamageRate { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ShowHighlightFloater { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateBulletArmorDamageFactorExcel(FlatBufferBuilder builder, + StringOffset DamageFactorGroupIdOffset = default(StringOffset), + SCHALE.Common.FlatData.BulletType BulletType = SCHALE.Common.FlatData.BulletType.Normal, + SCHALE.Common.FlatData.ArmorType ArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor, + long DamageRate = 0, + SCHALE.Common.FlatData.DamageAttribute DamageAttribute = SCHALE.Common.FlatData.DamageAttribute.Resist, + long MinDamageRate = 0, + long MaxDamageRate = 0, + bool ShowHighlightFloater = false) { + builder.StartTable(8); + BulletArmorDamageFactorExcel.AddMaxDamageRate(builder, MaxDamageRate); + BulletArmorDamageFactorExcel.AddMinDamageRate(builder, MinDamageRate); + BulletArmorDamageFactorExcel.AddDamageRate(builder, DamageRate); + BulletArmorDamageFactorExcel.AddDamageAttribute(builder, DamageAttribute); + BulletArmorDamageFactorExcel.AddArmorType(builder, ArmorType); + BulletArmorDamageFactorExcel.AddBulletType(builder, BulletType); + BulletArmorDamageFactorExcel.AddDamageFactorGroupId(builder, DamageFactorGroupIdOffset); + BulletArmorDamageFactorExcel.AddShowHighlightFloater(builder, ShowHighlightFloater); + return BulletArmorDamageFactorExcel.EndBulletArmorDamageFactorExcel(builder); + } + + public static void StartBulletArmorDamageFactorExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddDamageFactorGroupId(FlatBufferBuilder builder, StringOffset damageFactorGroupIdOffset) { builder.AddOffset(0, damageFactorGroupIdOffset.Value, 0); } + public static void AddBulletType(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType bulletType) { builder.AddInt(1, (int)bulletType, 0); } + public static void AddArmorType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArmorType armorType) { builder.AddInt(2, (int)armorType, 0); } + public static void AddDamageRate(FlatBufferBuilder builder, long damageRate) { builder.AddLong(3, damageRate, 0); } + public static void AddDamageAttribute(FlatBufferBuilder builder, SCHALE.Common.FlatData.DamageAttribute damageAttribute) { builder.AddInt(4, (int)damageAttribute, 0); } + public static void AddMinDamageRate(FlatBufferBuilder builder, long minDamageRate) { builder.AddLong(5, minDamageRate, 0); } + public static void AddMaxDamageRate(FlatBufferBuilder builder, long maxDamageRate) { builder.AddLong(6, maxDamageRate, 0); } + public static void AddShowHighlightFloater(FlatBufferBuilder builder, bool showHighlightFloater) { builder.AddBool(7, showHighlightFloater, false); } + public static Offset EndBulletArmorDamageFactorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BulletArmorDamageFactorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*DamageFactorGroupId*/, false) + && verifier.VerifyField(tablePos, 6 /*BulletType*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ArmorType*/, 4 /*SCHALE.Common.FlatData.ArmorType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*DamageAttribute*/, 4 /*SCHALE.Common.FlatData.DamageAttribute*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*MinDamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*MaxDamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*ShowHighlightFloater*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs new file mode 100644 index 0000000..639d663 --- /dev/null +++ b/SCHALE.Common/FlatData/BulletArmorDamageFactorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 BulletArmorDamageFactorExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static BulletArmorDamageFactorExcelTable GetRootAsBulletArmorDamageFactorExcelTable(ByteBuffer _bb) { return GetRootAsBulletArmorDamageFactorExcelTable(_bb, new BulletArmorDamageFactorExcelTable()); } + public static BulletArmorDamageFactorExcelTable GetRootAsBulletArmorDamageFactorExcelTable(ByteBuffer _bb, BulletArmorDamageFactorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public BulletArmorDamageFactorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.BulletArmorDamageFactorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.BulletArmorDamageFactorExcel?)(new SCHALE.Common.FlatData.BulletArmorDamageFactorExcel()).__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 CreateBulletArmorDamageFactorExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + BulletArmorDamageFactorExcelTable.AddDataList(builder, DataListOffset); + return BulletArmorDamageFactorExcelTable.EndBulletArmorDamageFactorExcelTable(builder); + } + + public static void StartBulletArmorDamageFactorExcelTable(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 EndBulletArmorDamageFactorExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class BulletArmorDamageFactorExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.BulletArmorDamageFactorExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/BulletType.cs b/SCHALE.Common/FlatData/BulletType.cs new file mode 100644 index 0000000..b2e2a82 --- /dev/null +++ b/SCHALE.Common/FlatData/BulletType.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BulletType : int +{ + Normal = 0, + Pierce = 1, + Explosion = 2, + Siege = 3, + Mystic = 4, + None = 5, + Sonic = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/CVCollectionType.cs b/SCHALE.Common/FlatData/CVCollectionType.cs new file mode 100644 index 0000000..0469663 --- /dev/null +++ b/SCHALE.Common/FlatData/CVCollectionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CVCollectionType : int +{ + CVNormal = 0, + CVEvent = 1, + CVEtc = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/CVExceptionTarget.cs b/SCHALE.Common/FlatData/CVExceptionTarget.cs new file mode 100644 index 0000000..14c5d76 --- /dev/null +++ b/SCHALE.Common/FlatData/CVExceptionTarget.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CVExceptionTarget : int +{ + CharacterId = 0, + SquadType = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/CVPrintType.cs b/SCHALE.Common/FlatData/CVPrintType.cs new file mode 100644 index 0000000..642737e --- /dev/null +++ b/SCHALE.Common/FlatData/CVPrintType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CVPrintType : int +{ + CharacterOverwrite = 0, + PrefabOverwrite = 1, + Add = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/CafeCharacterState.cs b/SCHALE.Common/FlatData/CafeCharacterState.cs new file mode 100644 index 0000000..26cd5de --- /dev/null +++ b/SCHALE.Common/FlatData/CafeCharacterState.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CafeCharacterState : int +{ + None = 0, + Idle = 1, + Walk = 2, + Reaction = 3, + Interaction = 4, + Max = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/CafeInfoExcel.cs b/SCHALE.Common/FlatData/CafeInfoExcel.cs new file mode 100644 index 0000000..aa54501 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeInfoExcel.cs @@ -0,0 +1,65 @@ +// +// 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 CafeInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeInfoExcel GetRootAsCafeInfoExcel(ByteBuffer _bb) { return GetRootAsCafeInfoExcel(_bb, new CafeInfoExcel()); } + public static CafeInfoExcel GetRootAsCafeInfoExcel(ByteBuffer _bb, CafeInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeInfoExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CafeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDefault { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeId { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeInvite { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } + + public static Offset CreateCafeInfoExcel(FlatBufferBuilder builder, + long CafeId = 0, + bool IsDefault = false, + SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeId = SCHALE.Common.FlatData.OpenConditionContent.Shop, + SCHALE.Common.FlatData.OpenConditionContent OpenConditionCafeInvite = SCHALE.Common.FlatData.OpenConditionContent.Shop) { + builder.StartTable(4); + CafeInfoExcel.AddCafeId(builder, CafeId); + CafeInfoExcel.AddOpenConditionCafeInvite(builder, OpenConditionCafeInvite); + CafeInfoExcel.AddOpenConditionCafeId(builder, OpenConditionCafeId); + CafeInfoExcel.AddIsDefault(builder, IsDefault); + return CafeInfoExcel.EndCafeInfoExcel(builder); + } + + public static void StartCafeInfoExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddCafeId(FlatBufferBuilder builder, long cafeId) { builder.AddLong(0, cafeId, 0); } + public static void AddIsDefault(FlatBufferBuilder builder, bool isDefault) { builder.AddBool(1, isDefault, false); } + public static void AddOpenConditionCafeId(FlatBufferBuilder builder, SCHALE.Common.FlatData.OpenConditionContent openConditionCafeId) { builder.AddInt(2, (int)openConditionCafeId, 0); } + public static void AddOpenConditionCafeInvite(FlatBufferBuilder builder, SCHALE.Common.FlatData.OpenConditionContent openConditionCafeInvite) { builder.AddInt(3, (int)openConditionCafeInvite, 0); } + public static Offset EndCafeInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeInfoExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CafeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsDefault*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*OpenConditionCafeId*/, 4 /*SCHALE.Common.FlatData.OpenConditionContent*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*OpenConditionCafeInvite*/, 4 /*SCHALE.Common.FlatData.OpenConditionContent*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeInfoExcelTable.cs b/SCHALE.Common/FlatData/CafeInfoExcelTable.cs new file mode 100644 index 0000000..aca380e --- /dev/null +++ b/SCHALE.Common/FlatData/CafeInfoExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CafeInfoExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeInfoExcelTable GetRootAsCafeInfoExcelTable(ByteBuffer _bb) { return GetRootAsCafeInfoExcelTable(_bb, new CafeInfoExcelTable()); } + public static CafeInfoExcelTable GetRootAsCafeInfoExcelTable(ByteBuffer _bb, CafeInfoExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeInfoExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CafeInfoExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CafeInfoExcel?)(new SCHALE.Common.FlatData.CafeInfoExcel()).__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 CreateCafeInfoExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CafeInfoExcelTable.AddDataList(builder, DataListOffset); + return CafeInfoExcelTable.EndCafeInfoExcelTable(builder); + } + + public static void StartCafeInfoExcelTable(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 EndCafeInfoExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeInfoExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CafeInfoExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeInteractionExcel.cs b/SCHALE.Common/FlatData/CafeInteractionExcel.cs new file mode 100644 index 0000000..fefba56 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeInteractionExcel.cs @@ -0,0 +1,137 @@ +// +// 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 CafeInteractionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeInteractionExcel GetRootAsCafeInteractionExcel(ByteBuffer _bb) { return GetRootAsCafeInteractionExcel(_bb, new CafeInteractionExcel()); } + public static CafeInteractionExcel GetRootAsCafeInteractionExcel(ByteBuffer _bb, CafeInteractionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeInteractionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IgnoreIfUnobtained { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string IgnoreIfUnobtainedStartDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIgnoreIfUnobtainedStartDateBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIgnoreIfUnobtainedStartDateBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIgnoreIfUnobtainedStartDateArray() { return __p.__vector_as_array(8); } + public string IgnoreIfUnobtainedEndDate { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIgnoreIfUnobtainedEndDateBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetIgnoreIfUnobtainedEndDateBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetIgnoreIfUnobtainedEndDateArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.BubbleType BubbleType_(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.BubbleType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.BubbleType)0; } + public int BubbleType_Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBubbleType_Bytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetBubbleType_Bytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.BubbleType[] GetBubbleType_Array() { int o = __p.__offset(12); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.BubbleType[] a = new SCHALE.Common.FlatData.BubbleType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.BubbleType)__p.bb.GetInt(p + i * 4); } return a; } + public long BubbleDuration(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BubbleDurationLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBubbleDurationBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetBubbleDurationBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetBubbleDurationArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { 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 FavorEmoticonRewardId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorEmoticonRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string CafeCharacterState(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int CafeCharacterStateLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateCafeInteractionExcel(FlatBufferBuilder builder, + long CharacterId = 0, + bool IgnoreIfUnobtained = false, + StringOffset IgnoreIfUnobtainedStartDateOffset = default(StringOffset), + StringOffset IgnoreIfUnobtainedEndDateOffset = default(StringOffset), + VectorOffset BubbleType_Offset = default(VectorOffset), + VectorOffset BubbleDurationOffset = default(VectorOffset), + SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long FavorEmoticonRewardId = 0, + long FavorEmoticonRewardAmount = 0, + VectorOffset CafeCharacterStateOffset = default(VectorOffset)) { + builder.StartTable(10); + CafeInteractionExcel.AddFavorEmoticonRewardAmount(builder, FavorEmoticonRewardAmount); + CafeInteractionExcel.AddFavorEmoticonRewardId(builder, FavorEmoticonRewardId); + CafeInteractionExcel.AddCharacterId(builder, CharacterId); + CafeInteractionExcel.AddCafeCharacterState(builder, CafeCharacterStateOffset); + CafeInteractionExcel.AddFavorEmoticonRewardParcelType(builder, FavorEmoticonRewardParcelType); + CafeInteractionExcel.AddBubbleDuration(builder, BubbleDurationOffset); + CafeInteractionExcel.AddBubbleType_(builder, BubbleType_Offset); + CafeInteractionExcel.AddIgnoreIfUnobtainedEndDate(builder, IgnoreIfUnobtainedEndDateOffset); + CafeInteractionExcel.AddIgnoreIfUnobtainedStartDate(builder, IgnoreIfUnobtainedStartDateOffset); + CafeInteractionExcel.AddIgnoreIfUnobtained(builder, IgnoreIfUnobtained); + return CafeInteractionExcel.EndCafeInteractionExcel(builder); + } + + public static void StartCafeInteractionExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddIgnoreIfUnobtained(FlatBufferBuilder builder, bool ignoreIfUnobtained) { builder.AddBool(1, ignoreIfUnobtained, false); } + public static void AddIgnoreIfUnobtainedStartDate(FlatBufferBuilder builder, StringOffset ignoreIfUnobtainedStartDateOffset) { builder.AddOffset(2, ignoreIfUnobtainedStartDateOffset.Value, 0); } + public static void AddIgnoreIfUnobtainedEndDate(FlatBufferBuilder builder, StringOffset ignoreIfUnobtainedEndDateOffset) { builder.AddOffset(3, ignoreIfUnobtainedEndDateOffset.Value, 0); } + public static void AddBubbleType_(FlatBufferBuilder builder, VectorOffset bubbleType_Offset) { builder.AddOffset(4, bubbleType_Offset.Value, 0); } + public static VectorOffset CreateBubbleType_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.BubbleType[] 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 CreateBubbleType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.BubbleType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBubbleType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBubbleType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBubbleType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBubbleDuration(FlatBufferBuilder builder, VectorOffset bubbleDurationOffset) { builder.AddOffset(5, bubbleDurationOffset.Value, 0); } + public static VectorOffset CreateBubbleDurationVector(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 CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBubbleDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBubbleDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddFavorEmoticonRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType favorEmoticonRewardParcelType) { builder.AddInt(6, (int)favorEmoticonRewardParcelType, 0); } + public static void AddFavorEmoticonRewardId(FlatBufferBuilder builder, long favorEmoticonRewardId) { builder.AddLong(7, favorEmoticonRewardId, 0); } + public static void AddFavorEmoticonRewardAmount(FlatBufferBuilder builder, long favorEmoticonRewardAmount) { builder.AddLong(8, favorEmoticonRewardAmount, 0); } + public static void AddCafeCharacterState(FlatBufferBuilder builder, VectorOffset cafeCharacterStateOffset) { builder.AddOffset(9, cafeCharacterStateOffset.Value, 0); } + public static VectorOffset CreateCafeCharacterStateVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeCharacterStateVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCafeInteractionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeInteractionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IgnoreIfUnobtained*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 8 /*IgnoreIfUnobtainedStartDate*/, false) + && verifier.VerifyString(tablePos, 10 /*IgnoreIfUnobtainedEndDate*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*BubbleType_*/, 4 /*SCHALE.Common.FlatData.BubbleType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*BubbleDuration*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*FavorEmoticonRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*FavorEmoticonRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*FavorEmoticonRewardAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*CafeCharacterState*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs b/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs new file mode 100644 index 0000000..cf86403 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeInteractionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CafeInteractionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeInteractionExcelTable GetRootAsCafeInteractionExcelTable(ByteBuffer _bb) { return GetRootAsCafeInteractionExcelTable(_bb, new CafeInteractionExcelTable()); } + public static CafeInteractionExcelTable GetRootAsCafeInteractionExcelTable(ByteBuffer _bb, CafeInteractionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeInteractionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CafeInteractionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CafeInteractionExcel?)(new SCHALE.Common.FlatData.CafeInteractionExcel()).__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 CreateCafeInteractionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CafeInteractionExcelTable.AddDataList(builder, DataListOffset); + return CafeInteractionExcelTable.EndCafeInteractionExcelTable(builder); + } + + public static void StartCafeInteractionExcelTable(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 EndCafeInteractionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeInteractionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CafeInteractionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeProductionExcel.cs b/SCHALE.Common/FlatData/CafeProductionExcel.cs new file mode 100644 index 0000000..52dd5a5 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeProductionExcel.cs @@ -0,0 +1,80 @@ +// +// 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 CafeProductionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeProductionExcel GetRootAsCafeProductionExcel(ByteBuffer _bb) { return GetRootAsCafeProductionExcel(_bb, new CafeProductionExcel()); } + public static CafeProductionExcel GetRootAsCafeProductionExcel(ByteBuffer _bb, CafeProductionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeProductionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CafeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Rank { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType CafeProductionParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long CafeProductionParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParcelProductionCoefficient { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParcelProductionCorrectionValue { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParcelStorageMax { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCafeProductionExcel(FlatBufferBuilder builder, + long CafeId = 0, + long Rank = 0, + SCHALE.Common.FlatData.ParcelType CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None, + long CafeProductionParcelId = 0, + long ParcelProductionCoefficient = 0, + long ParcelProductionCorrectionValue = 0, + long ParcelStorageMax = 0) { + builder.StartTable(7); + CafeProductionExcel.AddParcelStorageMax(builder, ParcelStorageMax); + CafeProductionExcel.AddParcelProductionCorrectionValue(builder, ParcelProductionCorrectionValue); + CafeProductionExcel.AddParcelProductionCoefficient(builder, ParcelProductionCoefficient); + CafeProductionExcel.AddCafeProductionParcelId(builder, CafeProductionParcelId); + CafeProductionExcel.AddRank(builder, Rank); + CafeProductionExcel.AddCafeId(builder, CafeId); + CafeProductionExcel.AddCafeProductionParcelType(builder, CafeProductionParcelType); + return CafeProductionExcel.EndCafeProductionExcel(builder); + } + + public static void StartCafeProductionExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddCafeId(FlatBufferBuilder builder, long cafeId) { builder.AddLong(0, cafeId, 0); } + public static void AddRank(FlatBufferBuilder builder, long rank) { builder.AddLong(1, rank, 0); } + public static void AddCafeProductionParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType cafeProductionParcelType) { builder.AddInt(2, (int)cafeProductionParcelType, 0); } + public static void AddCafeProductionParcelId(FlatBufferBuilder builder, long cafeProductionParcelId) { builder.AddLong(3, cafeProductionParcelId, 0); } + public static void AddParcelProductionCoefficient(FlatBufferBuilder builder, long parcelProductionCoefficient) { builder.AddLong(4, parcelProductionCoefficient, 0); } + public static void AddParcelProductionCorrectionValue(FlatBufferBuilder builder, long parcelProductionCorrectionValue) { builder.AddLong(5, parcelProductionCorrectionValue, 0); } + public static void AddParcelStorageMax(FlatBufferBuilder builder, long parcelStorageMax) { builder.AddLong(6, parcelStorageMax, 0); } + public static Offset EndCafeProductionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeProductionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CafeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Rank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CafeProductionParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CafeProductionParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ParcelProductionCoefficient*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ParcelProductionCorrectionValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*ParcelStorageMax*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeProductionExcelTable.cs b/SCHALE.Common/FlatData/CafeProductionExcelTable.cs new file mode 100644 index 0000000..ef51002 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeProductionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CafeProductionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeProductionExcelTable GetRootAsCafeProductionExcelTable(ByteBuffer _bb) { return GetRootAsCafeProductionExcelTable(_bb, new CafeProductionExcelTable()); } + public static CafeProductionExcelTable GetRootAsCafeProductionExcelTable(ByteBuffer _bb, CafeProductionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeProductionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CafeProductionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CafeProductionExcel?)(new SCHALE.Common.FlatData.CafeProductionExcel()).__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 CreateCafeProductionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CafeProductionExcelTable.AddDataList(builder, DataListOffset); + return CafeProductionExcelTable.EndCafeProductionExcelTable(builder); + } + + public static void StartCafeProductionExcelTable(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 EndCafeProductionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeProductionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CafeProductionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeRankExcel.cs b/SCHALE.Common/FlatData/CafeRankExcel.cs new file mode 100644 index 0000000..9e087c5 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeRankExcel.cs @@ -0,0 +1,119 @@ +// +// 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 CafeRankExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeRankExcel GetRootAsCafeRankExcel(ByteBuffer _bb) { return GetRootAsCafeRankExcel(_bb, new CafeRankExcel()); } + public static CafeRankExcel GetRootAsCafeRankExcel(ByteBuffer _bb, CafeRankExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeRankExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CafeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Rank { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecipeId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ComfortMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TagCountMax { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CharacterVisitMin { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharacterVisitMax { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeVisitWeightBase { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeVisitWeightTagBonusStep(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int CafeVisitWeightTagBonusStepLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCafeVisitWeightTagBonusStepBytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetCafeVisitWeightTagBonusStepBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public int[] GetCafeVisitWeightTagBonusStepArray() { return __p.__vector_as_array(20); } + public int CafeVisitWeightTagBonus(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int CafeVisitWeightTagBonusLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCafeVisitWeightTagBonusBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetCafeVisitWeightTagBonusBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public int[] GetCafeVisitWeightTagBonusArray() { return __p.__vector_as_array(22); } + + public static Offset CreateCafeRankExcel(FlatBufferBuilder builder, + long CafeId = 0, + long Rank = 0, + long RecipeId = 0, + long ComfortMax = 0, + long TagCountMax = 0, + int CharacterVisitMin = 0, + int CharacterVisitMax = 0, + int CafeVisitWeightBase = 0, + VectorOffset CafeVisitWeightTagBonusStepOffset = default(VectorOffset), + VectorOffset CafeVisitWeightTagBonusOffset = default(VectorOffset)) { + builder.StartTable(10); + CafeRankExcel.AddTagCountMax(builder, TagCountMax); + CafeRankExcel.AddComfortMax(builder, ComfortMax); + CafeRankExcel.AddRecipeId(builder, RecipeId); + CafeRankExcel.AddRank(builder, Rank); + CafeRankExcel.AddCafeId(builder, CafeId); + CafeRankExcel.AddCafeVisitWeightTagBonus(builder, CafeVisitWeightTagBonusOffset); + CafeRankExcel.AddCafeVisitWeightTagBonusStep(builder, CafeVisitWeightTagBonusStepOffset); + CafeRankExcel.AddCafeVisitWeightBase(builder, CafeVisitWeightBase); + CafeRankExcel.AddCharacterVisitMax(builder, CharacterVisitMax); + CafeRankExcel.AddCharacterVisitMin(builder, CharacterVisitMin); + return CafeRankExcel.EndCafeRankExcel(builder); + } + + public static void StartCafeRankExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddCafeId(FlatBufferBuilder builder, long cafeId) { builder.AddLong(0, cafeId, 0); } + public static void AddRank(FlatBufferBuilder builder, long rank) { builder.AddLong(1, rank, 0); } + public static void AddRecipeId(FlatBufferBuilder builder, long recipeId) { builder.AddLong(2, recipeId, 0); } + public static void AddComfortMax(FlatBufferBuilder builder, long comfortMax) { builder.AddLong(3, comfortMax, 0); } + public static void AddTagCountMax(FlatBufferBuilder builder, long tagCountMax) { builder.AddLong(4, tagCountMax, 0); } + public static void AddCharacterVisitMin(FlatBufferBuilder builder, int characterVisitMin) { builder.AddInt(5, characterVisitMin, 0); } + public static void AddCharacterVisitMax(FlatBufferBuilder builder, int characterVisitMax) { builder.AddInt(6, characterVisitMax, 0); } + public static void AddCafeVisitWeightBase(FlatBufferBuilder builder, int cafeVisitWeightBase) { builder.AddInt(7, cafeVisitWeightBase, 0); } + public static void AddCafeVisitWeightTagBonusStep(FlatBufferBuilder builder, VectorOffset cafeVisitWeightTagBonusStepOffset) { builder.AddOffset(8, cafeVisitWeightTagBonusStepOffset.Value, 0); } + public static VectorOffset CreateCafeVisitWeightTagBonusStepVector(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 CreateCafeVisitWeightTagBonusStepVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeVisitWeightTagBonusStepVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeVisitWeightTagBonusStepVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeVisitWeightTagBonusStepVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCafeVisitWeightTagBonus(FlatBufferBuilder builder, VectorOffset cafeVisitWeightTagBonusOffset) { builder.AddOffset(9, cafeVisitWeightTagBonusOffset.Value, 0); } + public static VectorOffset CreateCafeVisitWeightTagBonusVector(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 CreateCafeVisitWeightTagBonusVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeVisitWeightTagBonusVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeVisitWeightTagBonusVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeVisitWeightTagBonusVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCafeRankExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeRankExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CafeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Rank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RecipeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ComfortMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*TagCountMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*CharacterVisitMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*CharacterVisitMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*CafeVisitWeightBase*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*CafeVisitWeightTagBonusStep*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*CafeVisitWeightTagBonus*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CafeRankExcelTable.cs b/SCHALE.Common/FlatData/CafeRankExcelTable.cs new file mode 100644 index 0000000..5071153 --- /dev/null +++ b/SCHALE.Common/FlatData/CafeRankExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CafeRankExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CafeRankExcelTable GetRootAsCafeRankExcelTable(ByteBuffer _bb) { return GetRootAsCafeRankExcelTable(_bb, new CafeRankExcelTable()); } + public static CafeRankExcelTable GetRootAsCafeRankExcelTable(ByteBuffer _bb, CafeRankExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CafeRankExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CafeRankExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CafeRankExcel?)(new SCHALE.Common.FlatData.CafeRankExcel()).__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 CreateCafeRankExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CafeRankExcelTable.AddDataList(builder, DataListOffset); + return CafeRankExcelTable.EndCafeRankExcelTable(builder); + } + + public static void StartCafeRankExcelTable(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 EndCafeRankExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CafeRankExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CafeRankExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CameraExcel.cs b/SCHALE.Common/FlatData/CameraExcel.cs new file mode 100644 index 0000000..7ac9e07 --- /dev/null +++ b/SCHALE.Common/FlatData/CameraExcel.cs @@ -0,0 +1,100 @@ +// +// 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 CameraExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CameraExcel GetRootAsCameraExcel(ByteBuffer _bb) { return GetRootAsCameraExcel(_bb, new CameraExcel()); } + public static CameraExcel GetRootAsCameraExcel(ByteBuffer _bb, CameraExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CameraExcel __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 float MinDistance { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float MaxDistance { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float RotationX { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float RotationY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool MoveInstantly { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool MoveInstantlyRotationSave { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float LeftMargin { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float BottomMargin { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool IgnoreEnemies { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseRailPointCompensation { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCameraExcel(FlatBufferBuilder builder, + long UniqueId = 0, + float MinDistance = 0.0f, + float MaxDistance = 0.0f, + float RotationX = 0.0f, + float RotationY = 0.0f, + bool MoveInstantly = false, + bool MoveInstantlyRotationSave = false, + float LeftMargin = 0.0f, + float BottomMargin = 0.0f, + bool IgnoreEnemies = false, + bool UseRailPointCompensation = false) { + builder.StartTable(11); + CameraExcel.AddUniqueId(builder, UniqueId); + CameraExcel.AddBottomMargin(builder, BottomMargin); + CameraExcel.AddLeftMargin(builder, LeftMargin); + CameraExcel.AddRotationY(builder, RotationY); + CameraExcel.AddRotationX(builder, RotationX); + CameraExcel.AddMaxDistance(builder, MaxDistance); + CameraExcel.AddMinDistance(builder, MinDistance); + CameraExcel.AddUseRailPointCompensation(builder, UseRailPointCompensation); + CameraExcel.AddIgnoreEnemies(builder, IgnoreEnemies); + CameraExcel.AddMoveInstantlyRotationSave(builder, MoveInstantlyRotationSave); + CameraExcel.AddMoveInstantly(builder, MoveInstantly); + return CameraExcel.EndCameraExcel(builder); + } + + public static void StartCameraExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddMinDistance(FlatBufferBuilder builder, float minDistance) { builder.AddFloat(1, minDistance, 0.0f); } + public static void AddMaxDistance(FlatBufferBuilder builder, float maxDistance) { builder.AddFloat(2, maxDistance, 0.0f); } + public static void AddRotationX(FlatBufferBuilder builder, float rotationX) { builder.AddFloat(3, rotationX, 0.0f); } + public static void AddRotationY(FlatBufferBuilder builder, float rotationY) { builder.AddFloat(4, rotationY, 0.0f); } + public static void AddMoveInstantly(FlatBufferBuilder builder, bool moveInstantly) { builder.AddBool(5, moveInstantly, false); } + public static void AddMoveInstantlyRotationSave(FlatBufferBuilder builder, bool moveInstantlyRotationSave) { builder.AddBool(6, moveInstantlyRotationSave, false); } + public static void AddLeftMargin(FlatBufferBuilder builder, float leftMargin) { builder.AddFloat(7, leftMargin, 0.0f); } + public static void AddBottomMargin(FlatBufferBuilder builder, float bottomMargin) { builder.AddFloat(8, bottomMargin, 0.0f); } + public static void AddIgnoreEnemies(FlatBufferBuilder builder, bool ignoreEnemies) { builder.AddBool(9, ignoreEnemies, false); } + public static void AddUseRailPointCompensation(FlatBufferBuilder builder, bool useRailPointCompensation) { builder.AddBool(10, useRailPointCompensation, false); } + public static Offset EndCameraExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CameraExcelVerify +{ + 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 /*MinDistance*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*MaxDistance*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RotationX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RotationY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*MoveInstantly*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*MoveInstantlyRotationSave*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*LeftMargin*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*BottomMargin*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*IgnoreEnemies*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*UseRailPointCompensation*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CameraExcelTable.cs b/SCHALE.Common/FlatData/CameraExcelTable.cs new file mode 100644 index 0000000..51c6924 --- /dev/null +++ b/SCHALE.Common/FlatData/CameraExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..e09f6a5 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignChapterExcel.cs @@ -0,0 +1,193 @@ +// +// 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 CampaignChapterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignChapterExcel GetRootAsCampaignChapterExcel(ByteBuffer _bb) { return GetRootAsCampaignChapterExcel(_bb, new CampaignChapterExcel()); } + public static CampaignChapterExcel GetRootAsCampaignChapterExcel(ByteBuffer _bb, CampaignChapterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignChapterExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string NormalImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNormalImagePathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNormalImagePathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNormalImagePathArray() { return __p.__vector_as_array(8); } + public string HardImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetHardImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetHardImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetHardImagePathArray() { return __p.__vector_as_array(10); } + public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreChapterId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PreChapterIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPreChapterIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetPreChapterIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetPreChapterIdArray() { return __p.__vector_as_array(14); } + public long ChapterRewardId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ChapterHardRewardId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ChapterVeryHardRewardId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NormalCampaignStageId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int NormalCampaignStageIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNormalCampaignStageIdBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetNormalCampaignStageIdBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetNormalCampaignStageIdArray() { return __p.__vector_as_array(22); } + public long NormalExtraStageId(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int NormalExtraStageIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNormalExtraStageIdBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetNormalExtraStageIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetNormalExtraStageIdArray() { return __p.__vector_as_array(24); } + public long HardCampaignStageId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int HardCampaignStageIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetHardCampaignStageIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetHardCampaignStageIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetHardCampaignStageIdArray() { return __p.__vector_as_array(26); } + public long VeryHardCampaignStageId(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int VeryHardCampaignStageIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVeryHardCampaignStageIdBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetVeryHardCampaignStageIdBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetVeryHardCampaignStageIdArray() { return __p.__vector_as_array(28); } + public bool IsTacticSkip { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCampaignChapterExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset NormalImagePathOffset = default(StringOffset), + StringOffset HardImagePathOffset = default(StringOffset), + long Order = 0, + VectorOffset PreChapterIdOffset = default(VectorOffset), + long ChapterRewardId = 0, + long ChapterHardRewardId = 0, + long ChapterVeryHardRewardId = 0, + VectorOffset NormalCampaignStageIdOffset = default(VectorOffset), + VectorOffset NormalExtraStageIdOffset = default(VectorOffset), + VectorOffset HardCampaignStageIdOffset = default(VectorOffset), + VectorOffset VeryHardCampaignStageIdOffset = default(VectorOffset), + bool IsTacticSkip = false) { + builder.StartTable(14); + CampaignChapterExcel.AddChapterVeryHardRewardId(builder, ChapterVeryHardRewardId); + CampaignChapterExcel.AddChapterHardRewardId(builder, ChapterHardRewardId); + CampaignChapterExcel.AddChapterRewardId(builder, ChapterRewardId); + CampaignChapterExcel.AddOrder(builder, Order); + CampaignChapterExcel.AddId(builder, Id); + CampaignChapterExcel.AddVeryHardCampaignStageId(builder, VeryHardCampaignStageIdOffset); + CampaignChapterExcel.AddHardCampaignStageId(builder, HardCampaignStageIdOffset); + CampaignChapterExcel.AddNormalExtraStageId(builder, NormalExtraStageIdOffset); + CampaignChapterExcel.AddNormalCampaignStageId(builder, NormalCampaignStageIdOffset); + CampaignChapterExcel.AddPreChapterId(builder, PreChapterIdOffset); + CampaignChapterExcel.AddHardImagePath(builder, HardImagePathOffset); + CampaignChapterExcel.AddNormalImagePath(builder, NormalImagePathOffset); + CampaignChapterExcel.AddName(builder, NameOffset); + CampaignChapterExcel.AddIsTacticSkip(builder, IsTacticSkip); + return CampaignChapterExcel.EndCampaignChapterExcel(builder); + } + + public static void StartCampaignChapterExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + 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 AddNormalImagePath(FlatBufferBuilder builder, StringOffset normalImagePathOffset) { builder.AddOffset(2, normalImagePathOffset.Value, 0); } + public static void AddHardImagePath(FlatBufferBuilder builder, StringOffset hardImagePathOffset) { builder.AddOffset(3, hardImagePathOffset.Value, 0); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(4, order, 0); } + public static void AddPreChapterId(FlatBufferBuilder builder, VectorOffset preChapterIdOffset) { builder.AddOffset(5, preChapterIdOffset.Value, 0); } + public static VectorOffset CreatePreChapterIdVector(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 CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePreChapterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPreChapterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddChapterRewardId(FlatBufferBuilder builder, long chapterRewardId) { builder.AddLong(6, chapterRewardId, 0); } + public static void AddChapterHardRewardId(FlatBufferBuilder builder, long chapterHardRewardId) { builder.AddLong(7, chapterHardRewardId, 0); } + public static void AddChapterVeryHardRewardId(FlatBufferBuilder builder, long chapterVeryHardRewardId) { builder.AddLong(8, chapterVeryHardRewardId, 0); } + public static void AddNormalCampaignStageId(FlatBufferBuilder builder, VectorOffset normalCampaignStageIdOffset) { builder.AddOffset(9, normalCampaignStageIdOffset.Value, 0); } + public static VectorOffset CreateNormalCampaignStageIdVector(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 CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNormalCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddNormalExtraStageId(FlatBufferBuilder builder, VectorOffset normalExtraStageIdOffset) { builder.AddOffset(10, normalExtraStageIdOffset.Value, 0); } + public static VectorOffset CreateNormalExtraStageIdVector(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 CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalExtraStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNormalExtraStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddHardCampaignStageId(FlatBufferBuilder builder, VectorOffset hardCampaignStageIdOffset) { builder.AddOffset(11, hardCampaignStageIdOffset.Value, 0); } + public static VectorOffset CreateHardCampaignStageIdVector(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 CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartHardCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddVeryHardCampaignStageId(FlatBufferBuilder builder, VectorOffset veryHardCampaignStageIdOffset) { builder.AddOffset(12, veryHardCampaignStageIdOffset.Value, 0); } + public static VectorOffset CreateVeryHardCampaignStageIdVector(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 CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVeryHardCampaignStageIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVeryHardCampaignStageIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIsTacticSkip(FlatBufferBuilder builder, bool isTacticSkip) { builder.AddBool(13, isTacticSkip, false); } + public static Offset EndCampaignChapterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignChapterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*NormalImagePath*/, false) + && verifier.VerifyString(tablePos, 10 /*HardImagePath*/, false) + && verifier.VerifyField(tablePos, 12 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*PreChapterId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*ChapterRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*ChapterHardRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ChapterVeryHardRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*NormalCampaignStageId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*NormalExtraStageId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*HardCampaignStageId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*VeryHardCampaignStageId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 30 /*IsTacticSkip*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs b/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs new file mode 100644 index 0000000..75f411b --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignChapterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignChapterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignChapterExcelTable GetRootAsCampaignChapterExcelTable(ByteBuffer _bb) { return GetRootAsCampaignChapterExcelTable(_bb, new CampaignChapterExcelTable()); } + public static CampaignChapterExcelTable GetRootAsCampaignChapterExcelTable(ByteBuffer _bb, CampaignChapterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignChapterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignChapterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignChapterExcel?)(new SCHALE.Common.FlatData.CampaignChapterExcel()).__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 CreateCampaignChapterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignChapterExcelTable.AddDataList(builder, DataListOffset); + return CampaignChapterExcelTable.EndCampaignChapterExcelTable(builder); + } + + public static void StartCampaignChapterExcelTable(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 EndCampaignChapterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignChapterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignChapterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs b/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs new file mode 100644 index 0000000..c5279af --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignChapterRewardExcel.cs @@ -0,0 +1,106 @@ +// +// 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 CampaignChapterRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignChapterRewardExcel GetRootAsCampaignChapterRewardExcel(ByteBuffer _bb) { return GetRootAsCampaignChapterRewardExcel(_bb, new CampaignChapterRewardExcel()); } + public static CampaignChapterRewardExcel GetRootAsCampaignChapterRewardExcel(ByteBuffer _bb, CampaignChapterRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignChapterRewardExcel __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 CampaignChapterStar { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ChapterRewardParcelType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ChapterRewardParcelTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetChapterRewardParcelTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetChapterRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetChapterRewardParcelTypeArray() { int o = __p.__offset(8); 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 ChapterRewardId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ChapterRewardIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetChapterRewardIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetChapterRewardIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetChapterRewardIdArray() { return __p.__vector_as_array(10); } + public int ChapterRewardAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ChapterRewardAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetChapterRewardAmountBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetChapterRewardAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public int[] GetChapterRewardAmountArray() { return __p.__vector_as_array(12); } + + public static Offset CreateCampaignChapterRewardExcel(FlatBufferBuilder builder, + long Id = 0, + long CampaignChapterStar = 0, + VectorOffset ChapterRewardParcelTypeOffset = default(VectorOffset), + VectorOffset ChapterRewardIdOffset = default(VectorOffset), + VectorOffset ChapterRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(5); + CampaignChapterRewardExcel.AddCampaignChapterStar(builder, CampaignChapterStar); + CampaignChapterRewardExcel.AddId(builder, Id); + CampaignChapterRewardExcel.AddChapterRewardAmount(builder, ChapterRewardAmountOffset); + CampaignChapterRewardExcel.AddChapterRewardId(builder, ChapterRewardIdOffset); + CampaignChapterRewardExcel.AddChapterRewardParcelType(builder, ChapterRewardParcelTypeOffset); + return CampaignChapterRewardExcel.EndCampaignChapterRewardExcel(builder); + } + + public static void StartCampaignChapterRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCampaignChapterStar(FlatBufferBuilder builder, long campaignChapterStar) { builder.AddLong(1, campaignChapterStar, 0); } + public static void AddChapterRewardParcelType(FlatBufferBuilder builder, VectorOffset chapterRewardParcelTypeOffset) { builder.AddOffset(2, chapterRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateChapterRewardParcelTypeVector(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 CreateChapterRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChapterRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddChapterRewardId(FlatBufferBuilder builder, VectorOffset chapterRewardIdOffset) { builder.AddOffset(3, chapterRewardIdOffset.Value, 0); } + public static VectorOffset CreateChapterRewardIdVector(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 CreateChapterRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChapterRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddChapterRewardAmount(FlatBufferBuilder builder, VectorOffset chapterRewardAmountOffset) { builder.AddOffset(4, chapterRewardAmountOffset.Value, 0); } + public static VectorOffset CreateChapterRewardAmountVector(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 CreateChapterRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateChapterRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartChapterRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCampaignChapterRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignChapterRewardExcelVerify +{ + 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 /*CampaignChapterStar*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*ChapterRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*ChapterRewardId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ChapterRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs b/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs new file mode 100644 index 0000000..f798018 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignChapterRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignChapterRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignChapterRewardExcelTable GetRootAsCampaignChapterRewardExcelTable(ByteBuffer _bb) { return GetRootAsCampaignChapterRewardExcelTable(_bb, new CampaignChapterRewardExcelTable()); } + public static CampaignChapterRewardExcelTable GetRootAsCampaignChapterRewardExcelTable(ByteBuffer _bb, CampaignChapterRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignChapterRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignChapterRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignChapterRewardExcel?)(new SCHALE.Common.FlatData.CampaignChapterRewardExcel()).__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 CreateCampaignChapterRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignChapterRewardExcelTable.AddDataList(builder, DataListOffset); + return CampaignChapterRewardExcelTable.EndCampaignChapterRewardExcelTable(builder); + } + + public static void StartCampaignChapterRewardExcelTable(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 EndCampaignChapterRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignChapterRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignChapterRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStageExcel.cs b/SCHALE.Common/FlatData/CampaignStageExcel.cs new file mode 100644 index 0000000..68da368 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStageExcel.cs @@ -0,0 +1,250 @@ +// +// 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 CampaignStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStageExcel GetRootAsCampaignStageExcel(ByteBuffer _bb) { return GetRootAsCampaignStageExcel(_bb, new CampaignStageExcel()); } + public static CampaignStageExcel GetRootAsCampaignStageExcel(ByteBuffer _bb, CampaignStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStageExcel __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 Deprecated { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string Name { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(8); } + public string StageNumber { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStageNumberBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetStageNumberBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetStageNumberArray() { return __p.__vector_as_array(10); } + public long CleardScenarioId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { 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 StageEnterCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageEnterCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StageEnterEchelonCount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StarConditionTacticRankSCount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StarConditionTurnCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnterScenarioGroupId(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EnterScenarioGroupIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(28); } + public long ClearScenarioGroupId(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ClearScenarioGroupIdLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(30); } + public string StrategyMap { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetStrategyMapArray() { return __p.__vector_as_array(32); } + public string StrategyMapBG { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(34); } + public long CampaignStageRewardId { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxTurn { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(40); 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(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string BgmId { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgmIdBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(44); } +#endif + 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; } } +#if ENABLE_SPAN_T + public Span GetFirstClearReportEventNameBytes() { return __p.__vector_as_span(54, 1); } +#else + public ArraySegment? GetFirstClearReportEventNameBytes() { return __p.__vector_as_arraysegment(54); } +#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 static Offset CreateCampaignStageExcel(FlatBufferBuilder builder, + long Id = 0, + bool Deprecated = false, + StringOffset NameOffset = default(StringOffset), + StringOffset StageNumberOffset = default(StringOffset), + long CleardScenarioId = 0, + long BattleDuration = 0, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long StageEnterCostId = 0, + int StageEnterCostAmount = 0, + int StageEnterEchelonCount = 0, + long StarConditionTacticRankSCount = 0, + long StarConditionTurnCount = 0, + VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), + StringOffset StrategyMapOffset = default(StringOffset), + StringOffset StrategyMapBGOffset = default(StringOffset), + long CampaignStageRewardId = 0, + int MaxTurn = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + StringOffset BgmIdOffset = default(StringOffset), + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, + long GroundId = 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); + CampaignStageExcel.AddFixedEchelonId(builder, FixedEchelonId); + CampaignStageExcel.AddTacticRewardExp(builder, TacticRewardExp); + CampaignStageExcel.AddBGMId(builder, BGMId); + CampaignStageExcel.AddGroundId(builder, GroundId); + CampaignStageExcel.AddCampaignStageRewardId(builder, CampaignStageRewardId); + CampaignStageExcel.AddStarConditionTurnCount(builder, StarConditionTurnCount); + CampaignStageExcel.AddStarConditionTacticRankSCount(builder, StarConditionTacticRankSCount); + CampaignStageExcel.AddStageEnterCostId(builder, StageEnterCostId); + CampaignStageExcel.AddBattleDuration(builder, BattleDuration); + CampaignStageExcel.AddCleardScenarioId(builder, CleardScenarioId); + CampaignStageExcel.AddId(builder, Id); + CampaignStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + CampaignStageExcel.AddFirstClearReportEventName(builder, FirstClearReportEventNameOffset); + CampaignStageExcel.AddContentType(builder, ContentType); + CampaignStageExcel.AddStrategyEnvironment(builder, StrategyEnvironment); + CampaignStageExcel.AddBgmId(builder, BgmIdOffset); + CampaignStageExcel.AddRecommandLevel(builder, RecommandLevel); + CampaignStageExcel.AddStageTopography(builder, StageTopography); + CampaignStageExcel.AddMaxTurn(builder, MaxTurn); + CampaignStageExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); + CampaignStageExcel.AddStrategyMap(builder, StrategyMapOffset); + CampaignStageExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); + CampaignStageExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); + CampaignStageExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); + CampaignStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); + CampaignStageExcel.AddStageEnterCostType(builder, StageEnterCostType); + CampaignStageExcel.AddStageNumber(builder, StageNumberOffset); + CampaignStageExcel.AddName(builder, NameOffset); + CampaignStageExcel.AddDeprecated(builder, Deprecated); + return CampaignStageExcel.EndCampaignStageExcel(builder); + } + + public static void StartCampaignStageExcel(FlatBufferBuilder builder) { builder.StartTable(29); } + 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); } + public static void AddStageNumber(FlatBufferBuilder builder, StringOffset stageNumberOffset) { builder.AddOffset(3, stageNumberOffset.Value, 0); } + public static void AddCleardScenarioId(FlatBufferBuilder builder, long cleardScenarioId) { builder.AddLong(4, cleardScenarioId, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(5, battleDuration, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(6, (int)stageEnterCostType, 0); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(7, stageEnterCostId, 0); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(8, stageEnterCostAmount, 0); } + public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(9, stageEnterEchelonCount, 0); } + public static void AddStarConditionTacticRankSCount(FlatBufferBuilder builder, long starConditionTacticRankSCount) { builder.AddLong(10, starConditionTacticRankSCount, 0); } + public static void AddStarConditionTurnCount(FlatBufferBuilder builder, long starConditionTurnCount) { builder.AddLong(11, starConditionTurnCount, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(12, 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(13, 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(14, strategyMapOffset.Value, 0); } + public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(15, strategyMapBGOffset.Value, 0); } + public static void AddCampaignStageRewardId(FlatBufferBuilder builder, long campaignStageRewardId) { builder.AddLong(16, campaignStageRewardId, 0); } + public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(17, maxTurn, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(18, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(19, recommandLevel, 0); } + 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 Offset EndCampaignStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStageExcelVerify +{ + 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 /*Deprecated*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 8 /*Name*/, false) + && verifier.VerifyString(tablePos, 10 /*StageNumber*/, false) + && verifier.VerifyField(tablePos, 12 /*CleardScenarioId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*StageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*StarConditionTacticRankSCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*StarConditionTurnCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*EnterScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*ClearScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 32 /*StrategyMap*/, false) + && verifier.VerifyString(tablePos, 34 /*StrategyMapBG*/, false) + && verifier.VerifyField(tablePos, 36 /*CampaignStageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*MaxTurn*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*RecommandLevel*/, 4 /*int*/, 4, false) + && 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStageExcelTable.cs b/SCHALE.Common/FlatData/CampaignStageExcelTable.cs new file mode 100644 index 0000000..1466bd9 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStageExcelTable GetRootAsCampaignStageExcelTable(ByteBuffer _bb) { return GetRootAsCampaignStageExcelTable(_bb, new CampaignStageExcelTable()); } + public static CampaignStageExcelTable GetRootAsCampaignStageExcelTable(ByteBuffer _bb, CampaignStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignStageExcel?)(new SCHALE.Common.FlatData.CampaignStageExcel()).__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 CreateCampaignStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignStageExcelTable.AddDataList(builder, DataListOffset); + return CampaignStageExcelTable.EndCampaignStageExcelTable(builder); + } + + public static void StartCampaignStageExcelTable(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 EndCampaignStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs new file mode 100644 index 0000000..2d1dee3 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 CampaignStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStageRewardExcel GetRootAsCampaignStageRewardExcel(ByteBuffer _bb) { return GetRootAsCampaignStageRewardExcel(_bb, new CampaignStageRewardExcel()); } + public static CampaignStageRewardExcel GetRootAsCampaignStageRewardExcel(ByteBuffer _bb, CampaignStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int StageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType StageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long StageRewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageRewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCampaignStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int StageRewardProb = 0, + SCHALE.Common.FlatData.ParcelType StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long StageRewardId = 0, + int StageRewardAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + CampaignStageRewardExcel.AddStageRewardId(builder, StageRewardId); + CampaignStageRewardExcel.AddGroupId(builder, GroupId); + CampaignStageRewardExcel.AddStageRewardAmount(builder, StageRewardAmount); + CampaignStageRewardExcel.AddStageRewardParcelType(builder, StageRewardParcelType); + CampaignStageRewardExcel.AddStageRewardProb(builder, StageRewardProb); + CampaignStageRewardExcel.AddRewardTag(builder, RewardTag); + CampaignStageRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return CampaignStageRewardExcel.EndCampaignStageRewardExcel(builder); + } + + public static void StartCampaignStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddStageRewardProb(FlatBufferBuilder builder, int stageRewardProb) { builder.AddInt(2, stageRewardProb, 0); } + public static void AddStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageRewardParcelType) { builder.AddInt(3, (int)stageRewardParcelType, 0); } + public static void AddStageRewardId(FlatBufferBuilder builder, long stageRewardId) { builder.AddLong(4, stageRewardId, 0); } + public static void AddStageRewardAmount(FlatBufferBuilder builder, int stageRewardAmount) { builder.AddInt(5, stageRewardAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndCampaignStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*StageRewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*StageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*StageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*StageRewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs b/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs new file mode 100644 index 0000000..f102fa9 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStageRewardExcelTable GetRootAsCampaignStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsCampaignStageRewardExcelTable(_bb, new CampaignStageRewardExcelTable()); } + public static CampaignStageRewardExcelTable GetRootAsCampaignStageRewardExcelTable(ByteBuffer _bb, CampaignStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignStageRewardExcel?)(new SCHALE.Common.FlatData.CampaignStageRewardExcel()).__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 CreateCampaignStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignStageRewardExcelTable.AddDataList(builder, DataListOffset); + return CampaignStageRewardExcelTable.EndCampaignStageRewardExcelTable(builder); + } + + public static void StartCampaignStageRewardExcelTable(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 EndCampaignStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs new file mode 100644 index 0000000..60b7ebd --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs @@ -0,0 +1,138 @@ +// +// 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 CampaignStrategyObjectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStrategyObjectExcel GetRootAsCampaignStrategyObjectExcel(ByteBuffer _bb) { return GetRootAsCampaignStrategyObjectExcel(_bb, new CampaignStrategyObjectExcel()); } + public static CampaignStrategyObjectExcel GetRootAsCampaignStrategyObjectExcel(ByteBuffer _bb, CampaignStrategyObjectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStrategyObjectExcel __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 uint Key { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Name { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(8); } + public string PrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StrategyObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyObjectType.None; } } + public SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long StrategyRewardID { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StrategyRewardName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyRewardNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetStrategyRewardNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetStrategyRewardNameArray() { return __p.__vector_as_array(18); } + public int StrategyRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StrategySightRange { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PortalId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int HealValue { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SwithId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BuffId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Disposable { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCampaignStrategyObjectExcel(FlatBufferBuilder builder, + long Id = 0, + uint Key = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset PrefabNameOffset = default(StringOffset), + SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType = SCHALE.Common.FlatData.StrategyObjectType.None, + SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long StrategyRewardID = 0, + StringOffset StrategyRewardNameOffset = default(StringOffset), + int StrategyRewardAmount = 0, + long StrategySightRange = 0, + int PortalId = 0, + int HealValue = 0, + int SwithId = 0, + int BuffId = 0, + bool Disposable = false) { + builder.StartTable(15); + CampaignStrategyObjectExcel.AddStrategySightRange(builder, StrategySightRange); + CampaignStrategyObjectExcel.AddStrategyRewardID(builder, StrategyRewardID); + CampaignStrategyObjectExcel.AddId(builder, Id); + CampaignStrategyObjectExcel.AddBuffId(builder, BuffId); + CampaignStrategyObjectExcel.AddSwithId(builder, SwithId); + CampaignStrategyObjectExcel.AddHealValue(builder, HealValue); + CampaignStrategyObjectExcel.AddPortalId(builder, PortalId); + CampaignStrategyObjectExcel.AddStrategyRewardAmount(builder, StrategyRewardAmount); + CampaignStrategyObjectExcel.AddStrategyRewardName(builder, StrategyRewardNameOffset); + CampaignStrategyObjectExcel.AddStrategyRewardParcelType(builder, StrategyRewardParcelType); + CampaignStrategyObjectExcel.AddStrategyObjectType(builder, StrategyObjectType); + CampaignStrategyObjectExcel.AddPrefabName(builder, PrefabNameOffset); + CampaignStrategyObjectExcel.AddName(builder, NameOffset); + CampaignStrategyObjectExcel.AddKey(builder, Key); + CampaignStrategyObjectExcel.AddDisposable(builder, Disposable); + return CampaignStrategyObjectExcel.EndCampaignStrategyObjectExcel(builder); + } + + public static void StartCampaignStrategyObjectExcel(FlatBufferBuilder builder) { builder.StartTable(15); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(1, key, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(2, nameOffset.Value, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(3, prefabNameOffset.Value, 0); } + public static void AddStrategyObjectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyObjectType strategyObjectType) { builder.AddInt(4, (int)strategyObjectType, 0); } + public static void AddStrategyRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType strategyRewardParcelType) { builder.AddInt(5, (int)strategyRewardParcelType, 0); } + public static void AddStrategyRewardID(FlatBufferBuilder builder, long strategyRewardID) { builder.AddLong(6, strategyRewardID, 0); } + public static void AddStrategyRewardName(FlatBufferBuilder builder, StringOffset strategyRewardNameOffset) { builder.AddOffset(7, strategyRewardNameOffset.Value, 0); } + public static void AddStrategyRewardAmount(FlatBufferBuilder builder, int strategyRewardAmount) { builder.AddInt(8, strategyRewardAmount, 0); } + public static void AddStrategySightRange(FlatBufferBuilder builder, long strategySightRange) { builder.AddLong(9, strategySightRange, 0); } + public static void AddPortalId(FlatBufferBuilder builder, int portalId) { builder.AddInt(10, portalId, 0); } + public static void AddHealValue(FlatBufferBuilder builder, int healValue) { builder.AddInt(11, healValue, 0); } + public static void AddSwithId(FlatBufferBuilder builder, int swithId) { builder.AddInt(12, swithId, 0); } + public static void AddBuffId(FlatBufferBuilder builder, int buffId) { builder.AddInt(13, buffId, 0); } + public static void AddDisposable(FlatBufferBuilder builder, bool disposable) { builder.AddBool(14, disposable, false); } + public static Offset EndCampaignStrategyObjectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStrategyObjectExcelVerify +{ + 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 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Name*/, false) + && verifier.VerifyString(tablePos, 10 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 12 /*StrategyObjectType*/, 4 /*SCHALE.Common.FlatData.StrategyObjectType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*StrategyRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StrategyRewardID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*StrategyRewardName*/, false) + && verifier.VerifyField(tablePos, 20 /*StrategyRewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*StrategySightRange*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*PortalId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*HealValue*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*SwithId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*BuffId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*Disposable*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs b/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs new file mode 100644 index 0000000..e85f4ba --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignStrategyObjectExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignStrategyObjectExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignStrategyObjectExcelTable GetRootAsCampaignStrategyObjectExcelTable(ByteBuffer _bb) { return GetRootAsCampaignStrategyObjectExcelTable(_bb, new CampaignStrategyObjectExcelTable()); } + public static CampaignStrategyObjectExcelTable GetRootAsCampaignStrategyObjectExcelTable(ByteBuffer _bb, CampaignStrategyObjectExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignStrategyObjectExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignStrategyObjectExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignStrategyObjectExcel?)(new SCHALE.Common.FlatData.CampaignStrategyObjectExcel()).__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 CreateCampaignStrategyObjectExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignStrategyObjectExcelTable.AddDataList(builder, DataListOffset); + return CampaignStrategyObjectExcelTable.EndCampaignStrategyObjectExcelTable(builder); + } + + public static void StartCampaignStrategyObjectExcelTable(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 EndCampaignStrategyObjectExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignStrategyObjectExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignStrategyObjectExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignUnitExcel.cs b/SCHALE.Common/FlatData/CampaignUnitExcel.cs new file mode 100644 index 0000000..aacc6ad --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignUnitExcel.cs @@ -0,0 +1,157 @@ +// +// 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 CampaignUnitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignUnitExcel GetRootAsCampaignUnitExcel(ByteBuffer _bb) { return GetRootAsCampaignUnitExcel(_bb, new CampaignUnitExcel()); } + public static CampaignUnitExcel GetRootAsCampaignUnitExcel(ByteBuffer _bb, CampaignUnitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignUnitExcel __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 uint Key { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Name { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(8); } + public string PrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); } + public string StrategyPrefabName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyPrefabNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStrategyPrefabNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStrategyPrefabNameArray() { return __p.__vector_as_array(12); } + public long EnterScenarioGroupId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EnterScenarioGroupIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(14); } + public long ClearScenarioGroupId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ClearScenarioGroupIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(16); } + public long GroundId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MoveRange { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StrategyAIType AIMoveType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StrategyAIType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyAIType.None; } } + public SCHALE.Common.FlatData.HexaUnitGrade Grade { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.HexaUnitGrade)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.HexaUnitGrade.Grade1; } } + public SCHALE.Common.FlatData.TacticEnvironment EnvironmentType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public float Scale { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool IsTacticSkip { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCampaignUnitExcel(FlatBufferBuilder builder, + long Id = 0, + uint Key = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset PrefabNameOffset = default(StringOffset), + StringOffset StrategyPrefabNameOffset = default(StringOffset), + VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), + long GroundId = 0, + int MoveRange = 0, + SCHALE.Common.FlatData.StrategyAIType AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None, + SCHALE.Common.FlatData.HexaUnitGrade Grade = SCHALE.Common.FlatData.HexaUnitGrade.Grade1, + SCHALE.Common.FlatData.TacticEnvironment EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None, + float Scale = 0.0f, + bool IsTacticSkip = false) { + builder.StartTable(14); + CampaignUnitExcel.AddGroundId(builder, GroundId); + CampaignUnitExcel.AddId(builder, Id); + CampaignUnitExcel.AddScale(builder, Scale); + CampaignUnitExcel.AddEnvironmentType(builder, EnvironmentType); + CampaignUnitExcel.AddGrade(builder, Grade); + CampaignUnitExcel.AddAIMoveType(builder, AIMoveType); + CampaignUnitExcel.AddMoveRange(builder, MoveRange); + CampaignUnitExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); + CampaignUnitExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); + CampaignUnitExcel.AddStrategyPrefabName(builder, StrategyPrefabNameOffset); + CampaignUnitExcel.AddPrefabName(builder, PrefabNameOffset); + CampaignUnitExcel.AddName(builder, NameOffset); + CampaignUnitExcel.AddKey(builder, Key); + CampaignUnitExcel.AddIsTacticSkip(builder, IsTacticSkip); + return CampaignUnitExcel.EndCampaignUnitExcel(builder); + } + + public static void StartCampaignUnitExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(1, key, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(2, nameOffset.Value, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(3, prefabNameOffset.Value, 0); } + public static void AddStrategyPrefabName(FlatBufferBuilder builder, StringOffset strategyPrefabNameOffset) { builder.AddOffset(4, strategyPrefabNameOffset.Value, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(5, 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(6, 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 AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(7, groundId, 0); } + public static void AddMoveRange(FlatBufferBuilder builder, int moveRange) { builder.AddInt(8, moveRange, 0); } + public static void AddAIMoveType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyAIType aIMoveType) { builder.AddInt(9, (int)aIMoveType, 0); } + public static void AddGrade(FlatBufferBuilder builder, SCHALE.Common.FlatData.HexaUnitGrade grade) { builder.AddInt(10, (int)grade, 0); } + public static void AddEnvironmentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEnvironment environmentType) { builder.AddInt(11, (int)environmentType, 0); } + public static void AddScale(FlatBufferBuilder builder, float scale) { builder.AddFloat(12, scale, 0.0f); } + public static void AddIsTacticSkip(FlatBufferBuilder builder, bool isTacticSkip) { builder.AddBool(13, isTacticSkip, false); } + public static Offset EndCampaignUnitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignUnitExcelVerify +{ + 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 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Name*/, false) + && verifier.VerifyString(tablePos, 10 /*PrefabName*/, false) + && verifier.VerifyString(tablePos, 12 /*StrategyPrefabName*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*EnterScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ClearScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*MoveRange*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*AIMoveType*/, 4 /*SCHALE.Common.FlatData.StrategyAIType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*Grade*/, 4 /*SCHALE.Common.FlatData.HexaUnitGrade*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*EnvironmentType*/, 4 /*SCHALE.Common.FlatData.TacticEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*Scale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*IsTacticSkip*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs b/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs new file mode 100644 index 0000000..1bdc362 --- /dev/null +++ b/SCHALE.Common/FlatData/CampaignUnitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CampaignUnitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CampaignUnitExcelTable GetRootAsCampaignUnitExcelTable(ByteBuffer _bb) { return GetRootAsCampaignUnitExcelTable(_bb, new CampaignUnitExcelTable()); } + public static CampaignUnitExcelTable GetRootAsCampaignUnitExcelTable(ByteBuffer _bb, CampaignUnitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CampaignUnitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CampaignUnitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CampaignUnitExcel?)(new SCHALE.Common.FlatData.CampaignUnitExcel()).__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 CreateCampaignUnitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CampaignUnitExcelTable.AddDataList(builder, DataListOffset); + return CampaignUnitExcelTable.EndCampaignUnitExcelTable(builder); + } + + public static void StartCampaignUnitExcelTable(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 EndCampaignUnitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CampaignUnitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CampaignUnitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterAIExcel.cs b/SCHALE.Common/FlatData/CharacterAIExcel.cs new file mode 100644 index 0000000..3bc963c --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterAIExcel.cs @@ -0,0 +1,105 @@ +// +// 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 CharacterAIExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterAIExcel GetRootAsCharacterAIExcel(ByteBuffer _bb) { return GetRootAsCharacterAIExcel(_bb, new CharacterAIExcel()); } + public static CharacterAIExcel GetRootAsCharacterAIExcel(ByteBuffer _bb, CharacterAIExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterAIExcel __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 SCHALE.Common.FlatData.EngageType EngageType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EngageType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EngageType.SearchAndMove; } } + public SCHALE.Common.FlatData.PositioningType Positioning { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PositioningType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PositioningType.CloseToObstacle; } } + public bool CheckCanUseAutoSkill { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long DistanceReduceRatioObstaclePath { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DistanceReduceObstaclePath { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DistanceReduceRatioFormationPath { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DistanceReduceFormationPath { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MinimumPositionGap { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool CanUseObstacleOfKneelMotion { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanUseObstacleOfStandMotion { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool HasTargetSwitchingMotion { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCharacterAIExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.EngageType EngageType = SCHALE.Common.FlatData.EngageType.SearchAndMove, + SCHALE.Common.FlatData.PositioningType Positioning = SCHALE.Common.FlatData.PositioningType.CloseToObstacle, + bool CheckCanUseAutoSkill = false, + long DistanceReduceRatioObstaclePath = 0, + long DistanceReduceObstaclePath = 0, + long DistanceReduceRatioFormationPath = 0, + long DistanceReduceFormationPath = 0, + long MinimumPositionGap = 0, + bool CanUseObstacleOfKneelMotion = false, + bool CanUseObstacleOfStandMotion = false, + bool HasTargetSwitchingMotion = false) { + builder.StartTable(12); + CharacterAIExcel.AddMinimumPositionGap(builder, MinimumPositionGap); + CharacterAIExcel.AddDistanceReduceFormationPath(builder, DistanceReduceFormationPath); + CharacterAIExcel.AddDistanceReduceRatioFormationPath(builder, DistanceReduceRatioFormationPath); + CharacterAIExcel.AddDistanceReduceObstaclePath(builder, DistanceReduceObstaclePath); + CharacterAIExcel.AddDistanceReduceRatioObstaclePath(builder, DistanceReduceRatioObstaclePath); + CharacterAIExcel.AddId(builder, Id); + CharacterAIExcel.AddPositioning(builder, Positioning); + CharacterAIExcel.AddEngageType(builder, EngageType); + CharacterAIExcel.AddHasTargetSwitchingMotion(builder, HasTargetSwitchingMotion); + CharacterAIExcel.AddCanUseObstacleOfStandMotion(builder, CanUseObstacleOfStandMotion); + CharacterAIExcel.AddCanUseObstacleOfKneelMotion(builder, CanUseObstacleOfKneelMotion); + CharacterAIExcel.AddCheckCanUseAutoSkill(builder, CheckCanUseAutoSkill); + return CharacterAIExcel.EndCharacterAIExcel(builder); + } + + public static void StartCharacterAIExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEngageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EngageType engageType) { builder.AddInt(1, (int)engageType, 0); } + public static void AddPositioning(FlatBufferBuilder builder, SCHALE.Common.FlatData.PositioningType positioning) { builder.AddInt(2, (int)positioning, 0); } + public static void AddCheckCanUseAutoSkill(FlatBufferBuilder builder, bool checkCanUseAutoSkill) { builder.AddBool(3, checkCanUseAutoSkill, false); } + public static void AddDistanceReduceRatioObstaclePath(FlatBufferBuilder builder, long distanceReduceRatioObstaclePath) { builder.AddLong(4, distanceReduceRatioObstaclePath, 0); } + public static void AddDistanceReduceObstaclePath(FlatBufferBuilder builder, long distanceReduceObstaclePath) { builder.AddLong(5, distanceReduceObstaclePath, 0); } + public static void AddDistanceReduceRatioFormationPath(FlatBufferBuilder builder, long distanceReduceRatioFormationPath) { builder.AddLong(6, distanceReduceRatioFormationPath, 0); } + public static void AddDistanceReduceFormationPath(FlatBufferBuilder builder, long distanceReduceFormationPath) { builder.AddLong(7, distanceReduceFormationPath, 0); } + public static void AddMinimumPositionGap(FlatBufferBuilder builder, long minimumPositionGap) { builder.AddLong(8, minimumPositionGap, 0); } + public static void AddCanUseObstacleOfKneelMotion(FlatBufferBuilder builder, bool canUseObstacleOfKneelMotion) { builder.AddBool(9, canUseObstacleOfKneelMotion, false); } + public static void AddCanUseObstacleOfStandMotion(FlatBufferBuilder builder, bool canUseObstacleOfStandMotion) { builder.AddBool(10, canUseObstacleOfStandMotion, false); } + public static void AddHasTargetSwitchingMotion(FlatBufferBuilder builder, bool hasTargetSwitchingMotion) { builder.AddBool(11, hasTargetSwitchingMotion, false); } + public static Offset EndCharacterAIExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterAIExcelVerify +{ + 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 /*EngageType*/, 4 /*SCHALE.Common.FlatData.EngageType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Positioning*/, 4 /*SCHALE.Common.FlatData.PositioningType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CheckCanUseAutoSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*DistanceReduceRatioObstaclePath*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*DistanceReduceObstaclePath*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*DistanceReduceRatioFormationPath*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*DistanceReduceFormationPath*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*MinimumPositionGap*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*CanUseObstacleOfKneelMotion*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*CanUseObstacleOfStandMotion*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 26 /*HasTargetSwitchingMotion*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterAIExcelTable.cs b/SCHALE.Common/FlatData/CharacterAIExcelTable.cs new file mode 100644 index 0000000..bd2849b --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterAIExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterAIExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterAIExcelTable GetRootAsCharacterAIExcelTable(ByteBuffer _bb) { return GetRootAsCharacterAIExcelTable(_bb, new CharacterAIExcelTable()); } + public static CharacterAIExcelTable GetRootAsCharacterAIExcelTable(ByteBuffer _bb, CharacterAIExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterAIExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterAIExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterAIExcel?)(new SCHALE.Common.FlatData.CharacterAIExcel()).__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 CreateCharacterAIExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterAIExcelTable.AddDataList(builder, DataListOffset); + return CharacterAIExcelTable.EndCharacterAIExcelTable(builder); + } + + public static void StartCharacterAIExcelTable(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 EndCharacterAIExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterAIExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterAIExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs b/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs new file mode 100644 index 0000000..036631f --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterAcademyTagsExcel.cs @@ -0,0 +1,135 @@ +// +// 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 CharacterAcademyTagsExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterAcademyTagsExcel GetRootAsCharacterAcademyTagsExcel(ByteBuffer _bb) { return GetRootAsCharacterAcademyTagsExcel(_bb, new CharacterAcademyTagsExcel()); } + public static CharacterAcademyTagsExcel GetRootAsCharacterAcademyTagsExcel(ByteBuffer _bb, CharacterAcademyTagsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterAcademyTagsExcel __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 SCHALE.Common.FlatData.Tag FavorTags(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int FavorTagsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFavorTagsBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetFavorTagsBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.Tag[] GetFavorTagsArray() { int o = __p.__offset(6); 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 SCHALE.Common.FlatData.Tag FavorItemTags(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int FavorItemTagsLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFavorItemTagsBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetFavorItemTagsBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.Tag[] GetFavorItemTagsArray() { int o = __p.__offset(8); 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 SCHALE.Common.FlatData.Tag FavorItemUniqueTags(int j) { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int FavorItemUniqueTagsLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFavorItemUniqueTagsBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetFavorItemUniqueTagsBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.Tag[] GetFavorItemUniqueTagsArray() { int o = __p.__offset(10); 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 SCHALE.Common.FlatData.Tag ForbiddenTags(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int ForbiddenTagsLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetForbiddenTagsBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetForbiddenTagsBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.Tag[] GetForbiddenTagsArray() { int o = __p.__offset(12); 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 SCHALE.Common.FlatData.Tag ZoneWhiteListTags(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int ZoneWhiteListTagsLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetZoneWhiteListTagsBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetZoneWhiteListTagsBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.Tag[] GetZoneWhiteListTagsArray() { int o = __p.__offset(14); 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 static Offset CreateCharacterAcademyTagsExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset FavorTagsOffset = default(VectorOffset), + VectorOffset FavorItemTagsOffset = default(VectorOffset), + VectorOffset FavorItemUniqueTagsOffset = default(VectorOffset), + VectorOffset ForbiddenTagsOffset = default(VectorOffset), + VectorOffset ZoneWhiteListTagsOffset = default(VectorOffset)) { + builder.StartTable(6); + CharacterAcademyTagsExcel.AddId(builder, Id); + CharacterAcademyTagsExcel.AddZoneWhiteListTags(builder, ZoneWhiteListTagsOffset); + CharacterAcademyTagsExcel.AddForbiddenTags(builder, ForbiddenTagsOffset); + CharacterAcademyTagsExcel.AddFavorItemUniqueTags(builder, FavorItemUniqueTagsOffset); + CharacterAcademyTagsExcel.AddFavorItemTags(builder, FavorItemTagsOffset); + CharacterAcademyTagsExcel.AddFavorTags(builder, FavorTagsOffset); + return CharacterAcademyTagsExcel.EndCharacterAcademyTagsExcel(builder); + } + + public static void StartCharacterAcademyTagsExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddFavorTags(FlatBufferBuilder builder, VectorOffset favorTagsOffset) { builder.AddOffset(1, favorTagsOffset.Value, 0); } + public static VectorOffset CreateFavorTagsVector(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 CreateFavorTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFavorTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddFavorItemTags(FlatBufferBuilder builder, VectorOffset favorItemTagsOffset) { builder.AddOffset(2, favorItemTagsOffset.Value, 0); } + public static VectorOffset CreateFavorItemTagsVector(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 CreateFavorItemTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorItemTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorItemTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFavorItemTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddFavorItemUniqueTags(FlatBufferBuilder builder, VectorOffset favorItemUniqueTagsOffset) { builder.AddOffset(3, favorItemUniqueTagsOffset.Value, 0); } + public static VectorOffset CreateFavorItemUniqueTagsVector(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 CreateFavorItemUniqueTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorItemUniqueTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFavorItemUniqueTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFavorItemUniqueTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddForbiddenTags(FlatBufferBuilder builder, VectorOffset forbiddenTagsOffset) { builder.AddOffset(4, forbiddenTagsOffset.Value, 0); } + public static VectorOffset CreateForbiddenTagsVector(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 CreateForbiddenTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateForbiddenTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateForbiddenTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartForbiddenTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddZoneWhiteListTags(FlatBufferBuilder builder, VectorOffset zoneWhiteListTagsOffset) { builder.AddOffset(5, zoneWhiteListTagsOffset.Value, 0); } + public static VectorOffset CreateZoneWhiteListTagsVector(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 CreateZoneWhiteListTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateZoneWhiteListTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateZoneWhiteListTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartZoneWhiteListTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCharacterAcademyTagsExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterAcademyTagsExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*FavorTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*FavorItemTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*FavorItemUniqueTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ForbiddenTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ZoneWhiteListTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs b/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs new file mode 100644 index 0000000..7c38456 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterAcademyTagsExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterAcademyTagsExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterAcademyTagsExcelTable GetRootAsCharacterAcademyTagsExcelTable(ByteBuffer _bb) { return GetRootAsCharacterAcademyTagsExcelTable(_bb, new CharacterAcademyTagsExcelTable()); } + public static CharacterAcademyTagsExcelTable GetRootAsCharacterAcademyTagsExcelTable(ByteBuffer _bb, CharacterAcademyTagsExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterAcademyTagsExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterAcademyTagsExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterAcademyTagsExcel?)(new SCHALE.Common.FlatData.CharacterAcademyTagsExcel()).__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 CreateCharacterAcademyTagsExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterAcademyTagsExcelTable.AddDataList(builder, DataListOffset); + return CharacterAcademyTagsExcelTable.EndCharacterAcademyTagsExcelTable(builder); + } + + public static void StartCharacterAcademyTagsExcelTable(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 EndCharacterAcademyTagsExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterAcademyTagsExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterAcademyTagsExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs new file mode 100644 index 0000000..e3d4a8f --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs @@ -0,0 +1,70 @@ +// +// 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 CharacterCalculationLimitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterCalculationLimitExcel GetRootAsCharacterCalculationLimitExcel(ByteBuffer _bb) { return GetRootAsCharacterCalculationLimitExcel(_bb, new CharacterCalculationLimitExcel()); } + public static CharacterCalculationLimitExcel GetRootAsCharacterCalculationLimitExcel(ByteBuffer _bb, CharacterCalculationLimitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterCalculationLimitExcel __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 SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public SCHALE.Common.FlatData.BattleCalculationStat CalculationValue { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.BattleCalculationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage; } } + public long MinValue { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterCalculationLimitExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None, + SCHALE.Common.FlatData.BattleCalculationStat CalculationValue = SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage, + long MinValue = 0, + long MaxValue = 0) { + builder.StartTable(5); + CharacterCalculationLimitExcel.AddMaxValue(builder, MaxValue); + CharacterCalculationLimitExcel.AddMinValue(builder, MinValue); + CharacterCalculationLimitExcel.AddId(builder, Id); + CharacterCalculationLimitExcel.AddCalculationValue(builder, CalculationValue); + CharacterCalculationLimitExcel.AddTacticEntityType(builder, TacticEntityType); + return CharacterCalculationLimitExcel.EndCharacterCalculationLimitExcel(builder); + } + + public static void StartCharacterCalculationLimitExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTacticEntityType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType) { builder.AddInt(1, (int)tacticEntityType, 0); } + public static void AddCalculationValue(FlatBufferBuilder builder, SCHALE.Common.FlatData.BattleCalculationStat calculationValue) { builder.AddInt(2, (int)calculationValue, 0); } + public static void AddMinValue(FlatBufferBuilder builder, long minValue) { builder.AddLong(3, minValue, 0); } + public static void AddMaxValue(FlatBufferBuilder builder, long maxValue) { builder.AddLong(4, maxValue, 0); } + public static Offset EndCharacterCalculationLimitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterCalculationLimitExcelVerify +{ + 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 /*TacticEntityType*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CalculationValue*/, 4 /*SCHALE.Common.FlatData.BattleCalculationStat*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*MinValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*MaxValue*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs b/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs new file mode 100644 index 0000000..19be764 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterCalculationLimitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterCalculationLimitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterCalculationLimitExcelTable GetRootAsCharacterCalculationLimitExcelTable(ByteBuffer _bb) { return GetRootAsCharacterCalculationLimitExcelTable(_bb, new CharacterCalculationLimitExcelTable()); } + public static CharacterCalculationLimitExcelTable GetRootAsCharacterCalculationLimitExcelTable(ByteBuffer _bb, CharacterCalculationLimitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterCalculationLimitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterCalculationLimitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterCalculationLimitExcel?)(new SCHALE.Common.FlatData.CharacterCalculationLimitExcel()).__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 CreateCharacterCalculationLimitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterCalculationLimitExcelTable.AddDataList(builder, DataListOffset); + return CharacterCalculationLimitExcelTable.EndCharacterCalculationLimitExcelTable(builder); + } + + public static void StartCharacterCalculationLimitExcelTable(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 EndCharacterCalculationLimitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterCalculationLimitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterCalculationLimitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs b/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs new file mode 100644 index 0000000..ebd67a0 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterCombatSkinExcel.cs @@ -0,0 +1,72 @@ +// +// 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 CharacterCombatSkinExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterCombatSkinExcel GetRootAsCharacterCombatSkinExcel(ByteBuffer _bb) { return GetRootAsCharacterCombatSkinExcel(_bb, new CharacterCombatSkinExcel()); } + public static CharacterCombatSkinExcel GetRootAsCharacterCombatSkinExcel(ByteBuffer _bb, CharacterCombatSkinExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterCombatSkinExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroupIdBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetGroupIdBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetGroupIdArray() { return __p.__vector_as_array(4); } + public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ResourcePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetResourcePathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetResourcePathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetResourcePathArray() { return __p.__vector_as_array(8); } + + public static Offset CreateCharacterCombatSkinExcel(FlatBufferBuilder builder, + StringOffset GroupIdOffset = default(StringOffset), + long UniqueId = 0, + StringOffset ResourcePathOffset = default(StringOffset)) { + builder.StartTable(3); + CharacterCombatSkinExcel.AddUniqueId(builder, UniqueId); + CharacterCombatSkinExcel.AddResourcePath(builder, ResourcePathOffset); + CharacterCombatSkinExcel.AddGroupId(builder, GroupIdOffset); + return CharacterCombatSkinExcel.EndCharacterCombatSkinExcel(builder); + } + + public static void StartCharacterCombatSkinExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddGroupId(FlatBufferBuilder builder, StringOffset groupIdOffset) { builder.AddOffset(0, groupIdOffset.Value, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } + public static void AddResourcePath(FlatBufferBuilder builder, StringOffset resourcePathOffset) { builder.AddOffset(2, resourcePathOffset.Value, 0); } + public static Offset EndCharacterCombatSkinExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterCombatSkinExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*GroupId*/, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*ResourcePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs b/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs new file mode 100644 index 0000000..c573024 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterCombatSkinExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterCombatSkinExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterCombatSkinExcelTable GetRootAsCharacterCombatSkinExcelTable(ByteBuffer _bb) { return GetRootAsCharacterCombatSkinExcelTable(_bb, new CharacterCombatSkinExcelTable()); } + public static CharacterCombatSkinExcelTable GetRootAsCharacterCombatSkinExcelTable(ByteBuffer _bb, CharacterCombatSkinExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterCombatSkinExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterCombatSkinExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterCombatSkinExcel?)(new SCHALE.Common.FlatData.CharacterCombatSkinExcel()).__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 CreateCharacterCombatSkinExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterCombatSkinExcelTable.AddDataList(builder, DataListOffset); + return CharacterCombatSkinExcelTable.EndCharacterCombatSkinExcelTable(builder); + } + + public static void StartCharacterCombatSkinExcelTable(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 EndCharacterCombatSkinExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterCombatSkinExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterCombatSkinExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs new file mode 100644 index 0000000..78d6040 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs @@ -0,0 +1,197 @@ +// +// 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 CharacterDialogEventExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterDialogEventExcel GetRootAsCharacterDialogEventExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogEventExcel(_bb, new CharacterDialogEventExcel()); } + public static CharacterDialogEventExcel GetRootAsCharacterDialogEventExcel(ByteBuffer _bb, CharacterDialogEventExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterDialogEventExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CostumeUniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OriginalCharacterId { 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 long EventID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public SCHALE.Common.FlatData.DialogCategory DialogCategory { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } + public SCHALE.Common.FlatData.DialogCondition DialogCondition { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } } + public SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.DialogConditionDetail)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogConditionDetail.None; } } + public long DialogConditionDetailValue { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DialogType DialogType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } + public string ActionName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetActionNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetActionNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetActionNameArray() { return __p.__vector_as_array(26); } + public long Duration { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AnimationName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationNameBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetAnimationNameArray() { return __p.__vector_as_array(30); } + public string LocalizeKR { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeKRBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(32); } + public string LocalizeJP { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeJPBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(34); } + public uint VoiceId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(36, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(36); } + public bool CollectionVisible { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } } + public long UnlockEventSeason { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioGroupId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string LocalizeCVGroup { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCVGroupBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array(46); } + + public static Offset CreateCharacterDialogEventExcel(FlatBufferBuilder builder, + long CostumeUniqueId = 0, + long OriginalCharacterId = 0, + long DisplayOrder = 0, + long EventID = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + SCHALE.Common.FlatData.DialogCategory DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe, + SCHALE.Common.FlatData.DialogCondition DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle, + SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail = SCHALE.Common.FlatData.DialogConditionDetail.None, + long DialogConditionDetailValue = 0, + long GroupId = 0, + SCHALE.Common.FlatData.DialogType DialogType = SCHALE.Common.FlatData.DialogType.Talk, + StringOffset ActionNameOffset = default(StringOffset), + long Duration = 0, + StringOffset AnimationNameOffset = default(StringOffset), + StringOffset LocalizeKROffset = default(StringOffset), + StringOffset LocalizeJPOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + bool CollectionVisible = false, + SCHALE.Common.FlatData.CVCollectionType CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal, + long UnlockEventSeason = 0, + long ScenarioGroupId = 0, + StringOffset LocalizeCVGroupOffset = default(StringOffset)) { + builder.StartTable(22); + CharacterDialogEventExcel.AddScenarioGroupId(builder, ScenarioGroupId); + CharacterDialogEventExcel.AddUnlockEventSeason(builder, UnlockEventSeason); + CharacterDialogEventExcel.AddDuration(builder, Duration); + CharacterDialogEventExcel.AddGroupId(builder, GroupId); + CharacterDialogEventExcel.AddDialogConditionDetailValue(builder, DialogConditionDetailValue); + CharacterDialogEventExcel.AddEventID(builder, EventID); + CharacterDialogEventExcel.AddDisplayOrder(builder, DisplayOrder); + CharacterDialogEventExcel.AddOriginalCharacterId(builder, OriginalCharacterId); + CharacterDialogEventExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + CharacterDialogEventExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset); + CharacterDialogEventExcel.AddCVCollectionType(builder, CVCollectionType); + CharacterDialogEventExcel.AddVoiceId(builder, VoiceIdOffset); + CharacterDialogEventExcel.AddLocalizeJP(builder, LocalizeJPOffset); + CharacterDialogEventExcel.AddLocalizeKR(builder, LocalizeKROffset); + CharacterDialogEventExcel.AddAnimationName(builder, AnimationNameOffset); + CharacterDialogEventExcel.AddActionName(builder, ActionNameOffset); + CharacterDialogEventExcel.AddDialogType(builder, DialogType); + CharacterDialogEventExcel.AddDialogConditionDetail(builder, DialogConditionDetail); + CharacterDialogEventExcel.AddDialogCondition(builder, DialogCondition); + CharacterDialogEventExcel.AddDialogCategory(builder, DialogCategory); + CharacterDialogEventExcel.AddProductionStep(builder, ProductionStep); + CharacterDialogEventExcel.AddCollectionVisible(builder, CollectionVisible); + return CharacterDialogEventExcel.EndCharacterDialogEventExcel(builder); + } + + public static void StartCharacterDialogEventExcel(FlatBufferBuilder builder) { builder.StartTable(22); } + public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(0, costumeUniqueId, 0); } + public static void AddOriginalCharacterId(FlatBufferBuilder builder, long originalCharacterId) { builder.AddLong(1, originalCharacterId, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); } + public static void AddEventID(FlatBufferBuilder builder, long eventID) { builder.AddLong(3, eventID, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(4, (int)productionStep, 0); } + public static void AddDialogCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory) { builder.AddInt(5, (int)dialogCategory, 0); } + public static void AddDialogCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCondition dialogCondition) { builder.AddInt(6, (int)dialogCondition, 0); } + public static void AddDialogConditionDetail(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogConditionDetail dialogConditionDetail) { builder.AddInt(7, (int)dialogConditionDetail, 0); } + public static void AddDialogConditionDetailValue(FlatBufferBuilder builder, long dialogConditionDetailValue) { builder.AddLong(8, dialogConditionDetailValue, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(9, groupId, 0); } + public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType dialogType) { builder.AddInt(10, (int)dialogType, 0); } + public static void AddActionName(FlatBufferBuilder builder, StringOffset actionNameOffset) { builder.AddOffset(11, actionNameOffset.Value, 0); } + public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(12, duration, 0); } + public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(13, animationNameOffset.Value, 0); } + public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(14, localizeKROffset.Value, 0); } + public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(15, localizeJPOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(16, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(17, collectionVisible, false); } + public static void AddCVCollectionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cVCollectionType) { builder.AddInt(18, (int)cVCollectionType, 0); } + public static void AddUnlockEventSeason(FlatBufferBuilder builder, long unlockEventSeason) { builder.AddLong(19, unlockEventSeason, 0); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, long scenarioGroupId) { builder.AddLong(20, scenarioGroupId, 0); } + public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(21, localizeCVGroupOffset.Value, 0); } + public static Offset EndCharacterDialogEventExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterDialogEventExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*OriginalCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*EventID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DialogCategory*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*DialogCondition*/, 4 /*SCHALE.Common.FlatData.DialogCondition*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*DialogConditionDetail*/, 4 /*SCHALE.Common.FlatData.DialogConditionDetail*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*DialogConditionDetailValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*DialogType*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ActionName*/, false) + && verifier.VerifyField(tablePos, 28 /*Duration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 30 /*AnimationName*/, false) + && verifier.VerifyString(tablePos, 32 /*LocalizeKR*/, false) + && verifier.VerifyString(tablePos, 34 /*LocalizeJP*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 38 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 40 /*CVCollectionType*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*UnlockEventSeason*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*ScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 46 /*LocalizeCVGroup*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterDialogExcel.cs b/SCHALE.Common/FlatData/CharacterDialogExcel.cs new file mode 100644 index 0000000..b2621e7 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterDialogExcel.cs @@ -0,0 +1,224 @@ +// +// 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 CharacterDialogExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterDialogExcel GetRootAsCharacterDialogExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogExcel(_bb, new CharacterDialogExcel()); } + public static CharacterDialogExcel GetRootAsCharacterDialogExcel(ByteBuffer _bb, CharacterDialogExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterDialogExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CostumeUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public SCHALE.Common.FlatData.DialogCategory DialogCategory { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } + public SCHALE.Common.FlatData.DialogCondition DialogCondition { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } } + public SCHALE.Common.FlatData.Anniversary Anniversary { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Anniversary)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Anniversary.None; } } + public string StartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(18); } + public string EndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(20); } + public long GroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.DialogType DialogType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } + public string ActionName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetActionNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetActionNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetActionNameArray() { return __p.__vector_as_array(26); } + public long Duration { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AnimationName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationNameBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetAnimationNameArray() { return __p.__vector_as_array(30); } + public string LocalizeKR { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeKRBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(32); } + public string LocalizeJP { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeJPBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(34); } + public uint VoiceId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(36, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(36); } + public bool ApplyPosition { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float PosX { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float PosY { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool CollectionVisible { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } } + public long UnlockFavorRank { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool UnlockEquipWeapon { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string LocalizeCVGroup { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCVGroupBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array(52); } + + public static Offset CreateCharacterDialogExcel(FlatBufferBuilder builder, + long CharacterId = 0, + long CostumeUniqueId = 0, + long DisplayOrder = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + SCHALE.Common.FlatData.DialogCategory DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe, + SCHALE.Common.FlatData.DialogCondition DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle, + SCHALE.Common.FlatData.Anniversary Anniversary = SCHALE.Common.FlatData.Anniversary.None, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long GroupId = 0, + SCHALE.Common.FlatData.DialogType DialogType = SCHALE.Common.FlatData.DialogType.Talk, + StringOffset ActionNameOffset = default(StringOffset), + long Duration = 0, + StringOffset AnimationNameOffset = default(StringOffset), + StringOffset LocalizeKROffset = default(StringOffset), + StringOffset LocalizeJPOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + bool ApplyPosition = false, + float PosX = 0.0f, + float PosY = 0.0f, + bool CollectionVisible = false, + SCHALE.Common.FlatData.CVCollectionType CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal, + long UnlockFavorRank = 0, + bool UnlockEquipWeapon = false, + StringOffset LocalizeCVGroupOffset = default(StringOffset)) { + builder.StartTable(25); + CharacterDialogExcel.AddUnlockFavorRank(builder, UnlockFavorRank); + CharacterDialogExcel.AddDuration(builder, Duration); + CharacterDialogExcel.AddGroupId(builder, GroupId); + CharacterDialogExcel.AddDisplayOrder(builder, DisplayOrder); + CharacterDialogExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + CharacterDialogExcel.AddCharacterId(builder, CharacterId); + CharacterDialogExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset); + CharacterDialogExcel.AddCVCollectionType(builder, CVCollectionType); + CharacterDialogExcel.AddPosY(builder, PosY); + CharacterDialogExcel.AddPosX(builder, PosX); + CharacterDialogExcel.AddVoiceId(builder, VoiceIdOffset); + CharacterDialogExcel.AddLocalizeJP(builder, LocalizeJPOffset); + CharacterDialogExcel.AddLocalizeKR(builder, LocalizeKROffset); + CharacterDialogExcel.AddAnimationName(builder, AnimationNameOffset); + CharacterDialogExcel.AddActionName(builder, ActionNameOffset); + CharacterDialogExcel.AddDialogType(builder, DialogType); + CharacterDialogExcel.AddEndDate(builder, EndDateOffset); + CharacterDialogExcel.AddStartDate(builder, StartDateOffset); + CharacterDialogExcel.AddAnniversary(builder, Anniversary); + CharacterDialogExcel.AddDialogCondition(builder, DialogCondition); + CharacterDialogExcel.AddDialogCategory(builder, DialogCategory); + CharacterDialogExcel.AddProductionStep(builder, ProductionStep); + CharacterDialogExcel.AddUnlockEquipWeapon(builder, UnlockEquipWeapon); + CharacterDialogExcel.AddCollectionVisible(builder, CollectionVisible); + CharacterDialogExcel.AddApplyPosition(builder, ApplyPosition); + return CharacterDialogExcel.EndCharacterDialogExcel(builder); + } + + public static void StartCharacterDialogExcel(FlatBufferBuilder builder) { builder.StartTable(25); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(1, costumeUniqueId, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); } + public static void AddDialogCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory) { builder.AddInt(4, (int)dialogCategory, 0); } + public static void AddDialogCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCondition dialogCondition) { builder.AddInt(5, (int)dialogCondition, 0); } + public static void AddAnniversary(FlatBufferBuilder builder, SCHALE.Common.FlatData.Anniversary anniversary) { builder.AddInt(6, (int)anniversary, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(7, startDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(8, endDateOffset.Value, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(9, groupId, 0); } + public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType dialogType) { builder.AddInt(10, (int)dialogType, 0); } + public static void AddActionName(FlatBufferBuilder builder, StringOffset actionNameOffset) { builder.AddOffset(11, actionNameOffset.Value, 0); } + public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(12, duration, 0); } + public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(13, animationNameOffset.Value, 0); } + public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(14, localizeKROffset.Value, 0); } + public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(15, localizeJPOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(16, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddApplyPosition(FlatBufferBuilder builder, bool applyPosition) { builder.AddBool(17, applyPosition, false); } + public static void AddPosX(FlatBufferBuilder builder, float posX) { builder.AddFloat(18, posX, 0.0f); } + public static void AddPosY(FlatBufferBuilder builder, float posY) { builder.AddFloat(19, posY, 0.0f); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(20, collectionVisible, false); } + public static void AddCVCollectionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cVCollectionType) { builder.AddInt(21, (int)cVCollectionType, 0); } + public static void AddUnlockFavorRank(FlatBufferBuilder builder, long unlockFavorRank) { builder.AddLong(22, unlockFavorRank, 0); } + public static void AddUnlockEquipWeapon(FlatBufferBuilder builder, bool unlockEquipWeapon) { builder.AddBool(23, unlockEquipWeapon, false); } + public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(24, localizeCVGroupOffset.Value, 0); } + public static Offset EndCharacterDialogExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterDialogExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*CostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*DialogCategory*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DialogCondition*/, 4 /*SCHALE.Common.FlatData.DialogCondition*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Anniversary*/, 4 /*SCHALE.Common.FlatData.Anniversary*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 20 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 22 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*DialogType*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ActionName*/, false) + && verifier.VerifyField(tablePos, 28 /*Duration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 30 /*AnimationName*/, false) + && verifier.VerifyString(tablePos, 32 /*LocalizeKR*/, false) + && verifier.VerifyString(tablePos, 34 /*LocalizeJP*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 38 /*ApplyPosition*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 40 /*PosX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*PosY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 46 /*CVCollectionType*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*UnlockFavorRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*UnlockEquipWeapon*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 52 /*LocalizeCVGroup*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs new file mode 100644 index 0000000..94e017d --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs @@ -0,0 +1,113 @@ +// +// 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 CharacterDialogFieldExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterDialogFieldExcel GetRootAsCharacterDialogFieldExcel(ByteBuffer _bb) { return GetRootAsCharacterDialogFieldExcel(_bb, new CharacterDialogFieldExcel()); } + public static CharacterDialogFieldExcel GetRootAsCharacterDialogFieldExcel(ByteBuffer _bb, CharacterDialogFieldExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterDialogFieldExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Phase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TargetIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.FieldDialogType DialogType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldDialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldDialogType.None; } } + public long Duration { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string MotionName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMotionNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetMotionNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetMotionNameArray() { return __p.__vector_as_array(14); } + public bool IsInteractionDialog { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool HideUI { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string LocalizeKR { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeKRBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(20); } + public string LocalizeJP { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeJPBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(22); } + + public static Offset CreateCharacterDialogFieldExcel(FlatBufferBuilder builder, + long GroupId = 0, + int Phase = 0, + int TargetIndex = 0, + SCHALE.Common.FlatData.FieldDialogType DialogType = SCHALE.Common.FlatData.FieldDialogType.None, + long Duration = 0, + StringOffset MotionNameOffset = default(StringOffset), + bool IsInteractionDialog = false, + bool HideUI = false, + StringOffset LocalizeKROffset = default(StringOffset), + StringOffset LocalizeJPOffset = default(StringOffset)) { + builder.StartTable(10); + CharacterDialogFieldExcel.AddDuration(builder, Duration); + CharacterDialogFieldExcel.AddGroupId(builder, GroupId); + CharacterDialogFieldExcel.AddLocalizeJP(builder, LocalizeJPOffset); + CharacterDialogFieldExcel.AddLocalizeKR(builder, LocalizeKROffset); + CharacterDialogFieldExcel.AddMotionName(builder, MotionNameOffset); + CharacterDialogFieldExcel.AddDialogType(builder, DialogType); + CharacterDialogFieldExcel.AddTargetIndex(builder, TargetIndex); + CharacterDialogFieldExcel.AddPhase(builder, Phase); + CharacterDialogFieldExcel.AddHideUI(builder, HideUI); + CharacterDialogFieldExcel.AddIsInteractionDialog(builder, IsInteractionDialog); + return CharacterDialogFieldExcel.EndCharacterDialogFieldExcel(builder); + } + + public static void StartCharacterDialogFieldExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddPhase(FlatBufferBuilder builder, int phase) { builder.AddInt(1, phase, 0); } + public static void AddTargetIndex(FlatBufferBuilder builder, int targetIndex) { builder.AddInt(2, targetIndex, 0); } + public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldDialogType dialogType) { builder.AddInt(3, (int)dialogType, 0); } + public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(4, duration, 0); } + public static void AddMotionName(FlatBufferBuilder builder, StringOffset motionNameOffset) { builder.AddOffset(5, motionNameOffset.Value, 0); } + public static void AddIsInteractionDialog(FlatBufferBuilder builder, bool isInteractionDialog) { builder.AddBool(6, isInteractionDialog, false); } + public static void AddHideUI(FlatBufferBuilder builder, bool hideUI) { builder.AddBool(7, hideUI, false); } + public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(8, localizeKROffset.Value, 0); } + public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(9, localizeJPOffset.Value, 0); } + public static Offset EndCharacterDialogFieldExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterDialogFieldExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Phase*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*TargetIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DialogType*/, 4 /*SCHALE.Common.FlatData.FieldDialogType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Duration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*MotionName*/, false) + && verifier.VerifyField(tablePos, 16 /*IsInteractionDialog*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*HideUI*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 20 /*LocalizeKR*/, false) + && verifier.VerifyString(tablePos, 22 /*LocalizeJP*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs b/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs new file mode 100644 index 0000000..5a38332 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterDialogFieldExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterDialogFieldExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterDialogFieldExcelTable GetRootAsCharacterDialogFieldExcelTable(ByteBuffer _bb) { return GetRootAsCharacterDialogFieldExcelTable(_bb, new CharacterDialogFieldExcelTable()); } + public static CharacterDialogFieldExcelTable GetRootAsCharacterDialogFieldExcelTable(ByteBuffer _bb, CharacterDialogFieldExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterDialogFieldExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterDialogFieldExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterDialogFieldExcel?)(new SCHALE.Common.FlatData.CharacterDialogFieldExcel()).__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 CreateCharacterDialogFieldExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterDialogFieldExcelTable.AddDataList(builder, DataListOffset); + return CharacterDialogFieldExcelTable.EndCharacterDialogFieldExcelTable(builder); + } + + public static void StartCharacterDialogFieldExcelTable(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 EndCharacterDialogFieldExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterDialogFieldExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterDialogFieldExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterExcel.cs b/SCHALE.Common/FlatData/CharacterExcel.cs new file mode 100644 index 0000000..f367e96 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterExcel.cs @@ -0,0 +1,409 @@ +// +// 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 CharacterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb) { return GetRootAsCharacterExcel(_bb, new CharacterExcel()); } + public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb, CharacterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public long CostumeGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsPlayable { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public bool CollectionVisible { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string ReleaseDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetReleaseDateBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetReleaseDateBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetReleaseDateArray() { return __p.__vector_as_array(16); } + public string CollectionVisibleStartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionVisibleStartDateBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetCollectionVisibleStartDateBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetCollectionVisibleStartDateArray() { return __p.__vector_as_array(18); } + public string CollectionVisibleEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionVisibleEndDateBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetCollectionVisibleEndDateBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetCollectionVisibleEndDateArray() { return __p.__vector_as_array(20); } + public bool IsPlayableCharacter { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint LocalizeEtcId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public bool IsNPC { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public bool CanSurvive { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsDummy { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int SubPartsCount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.TacticRole TacticRole { get { int o = __p.__offset(38); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None; } } + public SCHALE.Common.FlatData.WeaponType WeaponType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } + public SCHALE.Common.FlatData.TacticRange TacticRange { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.TacticRange)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRange.Back; } } + public SCHALE.Common.FlatData.BulletType BulletType { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } + public SCHALE.Common.FlatData.ArmorType ArmorType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ArmorType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArmorType.LightArmor; } } + public SCHALE.Common.FlatData.AimIKType AimIKType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.AimIKType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AimIKType.None; } } + public SCHALE.Common.FlatData.School School { get { int o = __p.__offset(50); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } + public SCHALE.Common.FlatData.Club Club { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } + public int DefaultStarGrade { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxStarGrade { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } + public SCHALE.Common.FlatData.SquadType SquadType { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.SquadType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SquadType.None; } } + public bool Jumpable { get { int o = __p.__offset(62); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long PersonalityId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterAIId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExternalBTId { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ScenarioCharacter { get { int o = __p.__offset(70); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetScenarioCharacterBytes() { return __p.__vector_as_span(70, 1); } +#else + public ArraySegment? GetScenarioCharacterBytes() { return __p.__vector_as_arraysegment(70); } +#endif + public byte[] GetScenarioCharacterArray() { return __p.__vector_as_array(70); } + public uint SpawnTemplateId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int FavorLevelupType { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.EquipmentCategory EquipmentSlot(int j) { int o = __p.__offset(76); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentCategory)0; } + public int EquipmentSlotLength { get { int o = __p.__offset(76); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEquipmentSlotBytes() { return __p.__vector_as_span(76, 4); } +#else + public ArraySegment? GetEquipmentSlotBytes() { return __p.__vector_as_arraysegment(76); } +#endif + public SCHALE.Common.FlatData.EquipmentCategory[] GetEquipmentSlotArray() { int o = __p.__offset(76); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentCategory[] a = new SCHALE.Common.FlatData.EquipmentCategory[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(p + i * 4); } return a; } + public uint WeaponLocalizeId { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool DisplayEnemyInfo { get { int o = __p.__offset(80); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BodyRadius { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RandomEffectRadius { get { int o = __p.__offset(84); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool HPBarHide { get { int o = __p.__offset(86); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float HpBarHeight { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float HighlightFloaterHeight { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float EmojiOffsetX { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float EmojiOffsetY { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int MoveStartFrame { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MoveEndFrame { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int JumpMotionFrame { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AppearFrame { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool CanMove { get { int o = __p.__offset(104); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanFix { get { int o = __p.__offset(106); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanCrowdControl { get { int o = __p.__offset(108); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanBattleItemMove { get { int o = __p.__offset(110); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsAirUnit { get { int o = __p.__offset(112); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AirUnitHeight { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(116); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(116); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(116, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(116); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(116); 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 SecretStoneItemId { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int SecretStoneItemAmount { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CharacterPieceItemId { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CharacterPieceItemAmount { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CombineRecipeId { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset DevNameOffset = default(StringOffset), + long CostumeGroupId = 0, + bool IsPlayable = false, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + bool CollectionVisible = false, + StringOffset ReleaseDateOffset = default(StringOffset), + StringOffset CollectionVisibleStartDateOffset = default(StringOffset), + StringOffset CollectionVisibleEndDateOffset = default(StringOffset), + bool IsPlayableCharacter = false, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + bool IsNPC = false, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None, + bool CanSurvive = false, + bool IsDummy = false, + int SubPartsCount = 0, + SCHALE.Common.FlatData.TacticRole TacticRole = SCHALE.Common.FlatData.TacticRole.None, + SCHALE.Common.FlatData.WeaponType WeaponType = SCHALE.Common.FlatData.WeaponType.None, + SCHALE.Common.FlatData.TacticRange TacticRange = SCHALE.Common.FlatData.TacticRange.Back, + SCHALE.Common.FlatData.BulletType BulletType = SCHALE.Common.FlatData.BulletType.Normal, + SCHALE.Common.FlatData.ArmorType ArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor, + SCHALE.Common.FlatData.AimIKType AimIKType = SCHALE.Common.FlatData.AimIKType.None, + SCHALE.Common.FlatData.School School = SCHALE.Common.FlatData.School.None, + SCHALE.Common.FlatData.Club Club = SCHALE.Common.FlatData.Club.None, + int DefaultStarGrade = 0, + int MaxStarGrade = 0, + SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard, + SCHALE.Common.FlatData.SquadType SquadType = SCHALE.Common.FlatData.SquadType.None, + bool Jumpable = false, + long PersonalityId = 0, + long CharacterAIId = 0, + long ExternalBTId = 0, + StringOffset ScenarioCharacterOffset = default(StringOffset), + uint SpawnTemplateId = 0, + int FavorLevelupType = 0, + VectorOffset EquipmentSlotOffset = default(VectorOffset), + uint WeaponLocalizeId = 0, + bool DisplayEnemyInfo = false, + long BodyRadius = 0, + long RandomEffectRadius = 0, + bool HPBarHide = false, + float HpBarHeight = 0.0f, + float HighlightFloaterHeight = 0.0f, + float EmojiOffsetX = 0.0f, + float EmojiOffsetY = 0.0f, + int MoveStartFrame = 0, + int MoveEndFrame = 0, + int JumpMotionFrame = 0, + int AppearFrame = 0, + bool CanMove = false, + bool CanFix = false, + bool CanCrowdControl = false, + bool CanBattleItemMove = false, + bool IsAirUnit = false, + long AirUnitHeight = 0, + VectorOffset TagsOffset = default(VectorOffset), + long SecretStoneItemId = 0, + int SecretStoneItemAmount = 0, + long CharacterPieceItemId = 0, + int CharacterPieceItemAmount = 0, + long CombineRecipeId = 0) { + builder.StartTable(62); + CharacterExcel.AddCombineRecipeId(builder, CombineRecipeId); + CharacterExcel.AddCharacterPieceItemId(builder, CharacterPieceItemId); + CharacterExcel.AddSecretStoneItemId(builder, SecretStoneItemId); + CharacterExcel.AddAirUnitHeight(builder, AirUnitHeight); + CharacterExcel.AddRandomEffectRadius(builder, RandomEffectRadius); + CharacterExcel.AddBodyRadius(builder, BodyRadius); + CharacterExcel.AddExternalBTId(builder, ExternalBTId); + CharacterExcel.AddCharacterAIId(builder, CharacterAIId); + CharacterExcel.AddPersonalityId(builder, PersonalityId); + CharacterExcel.AddCostumeGroupId(builder, CostumeGroupId); + CharacterExcel.AddId(builder, Id); + CharacterExcel.AddCharacterPieceItemAmount(builder, CharacterPieceItemAmount); + CharacterExcel.AddSecretStoneItemAmount(builder, SecretStoneItemAmount); + CharacterExcel.AddTags(builder, TagsOffset); + CharacterExcel.AddAppearFrame(builder, AppearFrame); + CharacterExcel.AddJumpMotionFrame(builder, JumpMotionFrame); + CharacterExcel.AddMoveEndFrame(builder, MoveEndFrame); + CharacterExcel.AddMoveStartFrame(builder, MoveStartFrame); + CharacterExcel.AddEmojiOffsetY(builder, EmojiOffsetY); + CharacterExcel.AddEmojiOffsetX(builder, EmojiOffsetX); + CharacterExcel.AddHighlightFloaterHeight(builder, HighlightFloaterHeight); + CharacterExcel.AddHpBarHeight(builder, HpBarHeight); + CharacterExcel.AddWeaponLocalizeId(builder, WeaponLocalizeId); + CharacterExcel.AddEquipmentSlot(builder, EquipmentSlotOffset); + CharacterExcel.AddFavorLevelupType(builder, FavorLevelupType); + CharacterExcel.AddSpawnTemplateId(builder, SpawnTemplateId); + CharacterExcel.AddScenarioCharacter(builder, ScenarioCharacterOffset); + CharacterExcel.AddSquadType(builder, SquadType); + CharacterExcel.AddStatLevelUpType(builder, StatLevelUpType); + CharacterExcel.AddMaxStarGrade(builder, MaxStarGrade); + CharacterExcel.AddDefaultStarGrade(builder, DefaultStarGrade); + CharacterExcel.AddClub(builder, Club); + CharacterExcel.AddSchool(builder, School); + CharacterExcel.AddAimIKType(builder, AimIKType); + CharacterExcel.AddArmorType(builder, ArmorType); + CharacterExcel.AddBulletType(builder, BulletType); + CharacterExcel.AddTacticRange(builder, TacticRange); + CharacterExcel.AddWeaponType(builder, WeaponType); + CharacterExcel.AddTacticRole(builder, TacticRole); + CharacterExcel.AddSubPartsCount(builder, SubPartsCount); + CharacterExcel.AddTacticEntityType(builder, TacticEntityType); + CharacterExcel.AddRarity(builder, Rarity); + CharacterExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + CharacterExcel.AddCollectionVisibleEndDate(builder, CollectionVisibleEndDateOffset); + CharacterExcel.AddCollectionVisibleStartDate(builder, CollectionVisibleStartDateOffset); + CharacterExcel.AddReleaseDate(builder, ReleaseDateOffset); + CharacterExcel.AddProductionStep(builder, ProductionStep); + CharacterExcel.AddDevName(builder, DevNameOffset); + CharacterExcel.AddIsAirUnit(builder, IsAirUnit); + CharacterExcel.AddCanBattleItemMove(builder, CanBattleItemMove); + CharacterExcel.AddCanCrowdControl(builder, CanCrowdControl); + CharacterExcel.AddCanFix(builder, CanFix); + CharacterExcel.AddCanMove(builder, CanMove); + CharacterExcel.AddHPBarHide(builder, HPBarHide); + CharacterExcel.AddDisplayEnemyInfo(builder, DisplayEnemyInfo); + CharacterExcel.AddJumpable(builder, Jumpable); + CharacterExcel.AddIsDummy(builder, IsDummy); + CharacterExcel.AddCanSurvive(builder, CanSurvive); + CharacterExcel.AddIsNPC(builder, IsNPC); + CharacterExcel.AddIsPlayableCharacter(builder, IsPlayableCharacter); + CharacterExcel.AddCollectionVisible(builder, CollectionVisible); + CharacterExcel.AddIsPlayable(builder, IsPlayable); + return CharacterExcel.EndCharacterExcel(builder); + } + + public static void StartCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(62); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddCostumeGroupId(FlatBufferBuilder builder, long costumeGroupId) { builder.AddLong(2, costumeGroupId, 0); } + public static void AddIsPlayable(FlatBufferBuilder builder, bool isPlayable) { builder.AddBool(3, isPlayable, false); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(4, (int)productionStep, 0); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(5, collectionVisible, false); } + public static void AddReleaseDate(FlatBufferBuilder builder, StringOffset releaseDateOffset) { builder.AddOffset(6, releaseDateOffset.Value, 0); } + public static void AddCollectionVisibleStartDate(FlatBufferBuilder builder, StringOffset collectionVisibleStartDateOffset) { builder.AddOffset(7, collectionVisibleStartDateOffset.Value, 0); } + public static void AddCollectionVisibleEndDate(FlatBufferBuilder builder, StringOffset collectionVisibleEndDateOffset) { builder.AddOffset(8, collectionVisibleEndDateOffset.Value, 0); } + public static void AddIsPlayableCharacter(FlatBufferBuilder builder, bool isPlayableCharacter) { builder.AddBool(9, isPlayableCharacter, false); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(10, localizeEtcId, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(11, (int)rarity, 0); } + public static void AddIsNPC(FlatBufferBuilder builder, bool isNPC) { builder.AddBool(12, isNPC, false); } + public static void AddTacticEntityType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType) { builder.AddInt(13, (int)tacticEntityType, 0); } + public static void AddCanSurvive(FlatBufferBuilder builder, bool canSurvive) { builder.AddBool(14, canSurvive, false); } + public static void AddIsDummy(FlatBufferBuilder builder, bool isDummy) { builder.AddBool(15, isDummy, false); } + public static void AddSubPartsCount(FlatBufferBuilder builder, int subPartsCount) { builder.AddInt(16, subPartsCount, 0); } + public static void AddTacticRole(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRole tacticRole) { builder.AddInt(17, (int)tacticRole, 0); } + public static void AddWeaponType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeaponType weaponType) { builder.AddInt(18, (int)weaponType, 0); } + public static void AddTacticRange(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRange tacticRange) { builder.AddInt(19, (int)tacticRange, 0); } + public static void AddBulletType(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType bulletType) { builder.AddInt(20, (int)bulletType, 0); } + public static void AddArmorType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArmorType armorType) { builder.AddInt(21, (int)armorType, 0); } + public static void AddAimIKType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AimIKType aimIKType) { builder.AddInt(22, (int)aimIKType, 0); } + public static void AddSchool(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school) { builder.AddInt(23, (int)school, 0); } + public static void AddClub(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club club) { builder.AddInt(24, (int)club, 0); } + public static void AddDefaultStarGrade(FlatBufferBuilder builder, int defaultStarGrade) { builder.AddInt(25, defaultStarGrade, 0); } + public static void AddMaxStarGrade(FlatBufferBuilder builder, int maxStarGrade) { builder.AddInt(26, maxStarGrade, 0); } + public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(27, (int)statLevelUpType, 0); } + public static void AddSquadType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SquadType squadType) { builder.AddInt(28, (int)squadType, 0); } + public static void AddJumpable(FlatBufferBuilder builder, bool jumpable) { builder.AddBool(29, jumpable, false); } + public static void AddPersonalityId(FlatBufferBuilder builder, long personalityId) { builder.AddLong(30, personalityId, 0); } + public static void AddCharacterAIId(FlatBufferBuilder builder, long characterAIId) { builder.AddLong(31, characterAIId, 0); } + public static void AddExternalBTId(FlatBufferBuilder builder, long externalBTId) { builder.AddLong(32, externalBTId, 0); } + public static void AddScenarioCharacter(FlatBufferBuilder builder, StringOffset scenarioCharacterOffset) { builder.AddOffset(33, scenarioCharacterOffset.Value, 0); } + public static void AddSpawnTemplateId(FlatBufferBuilder builder, uint spawnTemplateId) { builder.AddUint(34, spawnTemplateId, 0); } + public static void AddFavorLevelupType(FlatBufferBuilder builder, int favorLevelupType) { builder.AddInt(35, favorLevelupType, 0); } + public static void AddEquipmentSlot(FlatBufferBuilder builder, VectorOffset equipmentSlotOffset) { builder.AddOffset(36, equipmentSlotOffset.Value, 0); } + public static VectorOffset CreateEquipmentSlotVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] 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 CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEquipmentSlotVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddWeaponLocalizeId(FlatBufferBuilder builder, uint weaponLocalizeId) { builder.AddUint(37, weaponLocalizeId, 0); } + public static void AddDisplayEnemyInfo(FlatBufferBuilder builder, bool displayEnemyInfo) { builder.AddBool(38, displayEnemyInfo, false); } + public static void AddBodyRadius(FlatBufferBuilder builder, long bodyRadius) { builder.AddLong(39, bodyRadius, 0); } + public static void AddRandomEffectRadius(FlatBufferBuilder builder, long randomEffectRadius) { builder.AddLong(40, randomEffectRadius, 0); } + public static void AddHPBarHide(FlatBufferBuilder builder, bool hPBarHide) { builder.AddBool(41, hPBarHide, false); } + public static void AddHpBarHeight(FlatBufferBuilder builder, float hpBarHeight) { builder.AddFloat(42, hpBarHeight, 0.0f); } + public static void AddHighlightFloaterHeight(FlatBufferBuilder builder, float highlightFloaterHeight) { builder.AddFloat(43, highlightFloaterHeight, 0.0f); } + public static void AddEmojiOffsetX(FlatBufferBuilder builder, float emojiOffsetX) { builder.AddFloat(44, emojiOffsetX, 0.0f); } + public static void AddEmojiOffsetY(FlatBufferBuilder builder, float emojiOffsetY) { builder.AddFloat(45, emojiOffsetY, 0.0f); } + public static void AddMoveStartFrame(FlatBufferBuilder builder, int moveStartFrame) { builder.AddInt(46, moveStartFrame, 0); } + public static void AddMoveEndFrame(FlatBufferBuilder builder, int moveEndFrame) { builder.AddInt(47, moveEndFrame, 0); } + public static void AddJumpMotionFrame(FlatBufferBuilder builder, int jumpMotionFrame) { builder.AddInt(48, jumpMotionFrame, 0); } + public static void AddAppearFrame(FlatBufferBuilder builder, int appearFrame) { builder.AddInt(49, appearFrame, 0); } + public static void AddCanMove(FlatBufferBuilder builder, bool canMove) { builder.AddBool(50, canMove, false); } + public static void AddCanFix(FlatBufferBuilder builder, bool canFix) { builder.AddBool(51, canFix, false); } + public static void AddCanCrowdControl(FlatBufferBuilder builder, bool canCrowdControl) { builder.AddBool(52, canCrowdControl, false); } + public static void AddCanBattleItemMove(FlatBufferBuilder builder, bool canBattleItemMove) { builder.AddBool(53, canBattleItemMove, false); } + public static void AddIsAirUnit(FlatBufferBuilder builder, bool isAirUnit) { builder.AddBool(54, isAirUnit, false); } + public static void AddAirUnitHeight(FlatBufferBuilder builder, long airUnitHeight) { builder.AddLong(55, airUnitHeight, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(56, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSecretStoneItemId(FlatBufferBuilder builder, long secretStoneItemId) { builder.AddLong(57, secretStoneItemId, 0); } + public static void AddSecretStoneItemAmount(FlatBufferBuilder builder, int secretStoneItemAmount) { builder.AddInt(58, secretStoneItemAmount, 0); } + public static void AddCharacterPieceItemId(FlatBufferBuilder builder, long characterPieceItemId) { builder.AddLong(59, characterPieceItemId, 0); } + public static void AddCharacterPieceItemAmount(FlatBufferBuilder builder, int characterPieceItemAmount) { builder.AddInt(60, characterPieceItemAmount, 0); } + public static void AddCombineRecipeId(FlatBufferBuilder builder, long combineRecipeId) { builder.AddLong(61, combineRecipeId, 0); } + public static Offset EndCharacterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*CostumeGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*IsPlayable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 16 /*ReleaseDate*/, false) + && verifier.VerifyString(tablePos, 18 /*CollectionVisibleStartDate*/, false) + && verifier.VerifyString(tablePos, 20 /*CollectionVisibleEndDate*/, false) + && verifier.VerifyField(tablePos, 22 /*IsPlayableCharacter*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*IsNPC*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*TacticEntityType*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*CanSurvive*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 34 /*IsDummy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 36 /*SubPartsCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*TacticRole*/, 4 /*SCHALE.Common.FlatData.TacticRole*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*WeaponType*/, 4 /*SCHALE.Common.FlatData.WeaponType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*TacticRange*/, 4 /*SCHALE.Common.FlatData.TacticRange*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*BulletType*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*ArmorType*/, 4 /*SCHALE.Common.FlatData.ArmorType*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*AimIKType*/, 4 /*SCHALE.Common.FlatData.AimIKType*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*School*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*Club*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*DefaultStarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*MaxStarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*SquadType*/, 4 /*SCHALE.Common.FlatData.SquadType*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*Jumpable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 64 /*PersonalityId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*CharacterAIId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*ExternalBTId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 70 /*ScenarioCharacter*/, false) + && verifier.VerifyField(tablePos, 72 /*SpawnTemplateId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 74 /*FavorLevelupType*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 76 /*EquipmentSlot*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, false) + && verifier.VerifyField(tablePos, 78 /*WeaponLocalizeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 80 /*DisplayEnemyInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 82 /*BodyRadius*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 84 /*RandomEffectRadius*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 86 /*HPBarHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 88 /*HpBarHeight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 90 /*HighlightFloaterHeight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 92 /*EmojiOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 94 /*EmojiOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 96 /*MoveStartFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 98 /*MoveEndFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 100 /*JumpMotionFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 102 /*AppearFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 104 /*CanMove*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 106 /*CanFix*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 108 /*CanCrowdControl*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 110 /*CanBattleItemMove*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 112 /*IsAirUnit*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 114 /*AirUnitHeight*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 116 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 118 /*SecretStoneItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 120 /*SecretStoneItemAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 122 /*CharacterPieceItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 124 /*CharacterPieceItemAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 126 /*CombineRecipeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterExcelTable.cs b/SCHALE.Common/FlatData/CharacterExcelTable.cs new file mode 100644 index 0000000..4445ded --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterExcelTable GetRootAsCharacterExcelTable(ByteBuffer _bb) { return GetRootAsCharacterExcelTable(_bb, new CharacterExcelTable()); } + public static CharacterExcelTable GetRootAsCharacterExcelTable(ByteBuffer _bb, CharacterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterExcel?)(new SCHALE.Common.FlatData.CharacterExcel()).__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 CreateCharacterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterExcelTable.AddDataList(builder, DataListOffset); + return CharacterExcelTable.EndCharacterExcelTable(builder); + } + + public static void StartCharacterExcelTable(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 EndCharacterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterGearExcel.cs b/SCHALE.Common/FlatData/CharacterGearExcel.cs new file mode 100644 index 0000000..f8fce98 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterGearExcel.cs @@ -0,0 +1,180 @@ +// +// 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 CharacterGearExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterGearExcel GetRootAsCharacterGearExcel(ByteBuffer _bb) { return GetRootAsCharacterGearExcel(_bb, new CharacterGearExcel()); } + public static CharacterGearExcel GetRootAsCharacterGearExcel(ByteBuffer _bb, CharacterGearExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterGearExcel __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 CharacterId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } + public long Tier { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextTierEquipment { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecipeId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenFavorLevel { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxLevel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string LearnSkillSlot { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLearnSkillSlotBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetLearnSkillSlotBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetLearnSkillSlotArray() { return __p.__vector_as_array(20); } + public SCHALE.Common.FlatData.EquipmentOptionType StatType(int j) { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentOptionType)0; } + public int StatTypeLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatTypeBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetStatTypeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.EquipmentOptionType[] GetStatTypeArray() { int o = __p.__offset(22); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentOptionType[] a = new SCHALE.Common.FlatData.EquipmentOptionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(p + i * 4); } return a; } + public long MinStatValue(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MinStatValueLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMinStatValueBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetMinStatValueBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetMinStatValueArray() { return __p.__vector_as_array(24); } + public long MaxStatValue(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MaxStatValueLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMaxStatValueBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetMaxStatValueBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetMaxStatValueArray() { return __p.__vector_as_array(26); } + public string Icon { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(28); } + public uint LocalizeEtcId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(32, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(32); 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 static Offset CreateCharacterGearExcel(FlatBufferBuilder builder, + long Id = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard, + long Tier = 0, + long NextTierEquipment = 0, + long RecipeId = 0, + long OpenFavorLevel = 0, + long MaxLevel = 0, + StringOffset LearnSkillSlotOffset = default(StringOffset), + VectorOffset StatTypeOffset = default(VectorOffset), + VectorOffset MinStatValueOffset = default(VectorOffset), + VectorOffset MaxStatValueOffset = default(VectorOffset), + StringOffset IconOffset = default(StringOffset), + uint LocalizeEtcId = 0, + VectorOffset TagsOffset = default(VectorOffset)) { + builder.StartTable(15); + CharacterGearExcel.AddMaxLevel(builder, MaxLevel); + CharacterGearExcel.AddOpenFavorLevel(builder, OpenFavorLevel); + CharacterGearExcel.AddRecipeId(builder, RecipeId); + CharacterGearExcel.AddNextTierEquipment(builder, NextTierEquipment); + CharacterGearExcel.AddTier(builder, Tier); + CharacterGearExcel.AddCharacterId(builder, CharacterId); + CharacterGearExcel.AddId(builder, Id); + CharacterGearExcel.AddTags(builder, TagsOffset); + CharacterGearExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + CharacterGearExcel.AddIcon(builder, IconOffset); + CharacterGearExcel.AddMaxStatValue(builder, MaxStatValueOffset); + CharacterGearExcel.AddMinStatValue(builder, MinStatValueOffset); + CharacterGearExcel.AddStatType(builder, StatTypeOffset); + CharacterGearExcel.AddLearnSkillSlot(builder, LearnSkillSlotOffset); + CharacterGearExcel.AddStatLevelUpType(builder, StatLevelUpType); + return CharacterGearExcel.EndCharacterGearExcel(builder); + } + + public static void StartCharacterGearExcel(FlatBufferBuilder builder) { builder.StartTable(15); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(1, characterId, 0); } + public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(2, (int)statLevelUpType, 0); } + public static void AddTier(FlatBufferBuilder builder, long tier) { builder.AddLong(3, tier, 0); } + public static void AddNextTierEquipment(FlatBufferBuilder builder, long nextTierEquipment) { builder.AddLong(4, nextTierEquipment, 0); } + public static void AddRecipeId(FlatBufferBuilder builder, long recipeId) { builder.AddLong(5, recipeId, 0); } + public static void AddOpenFavorLevel(FlatBufferBuilder builder, long openFavorLevel) { builder.AddLong(6, openFavorLevel, 0); } + public static void AddMaxLevel(FlatBufferBuilder builder, long maxLevel) { builder.AddLong(7, maxLevel, 0); } + public static void AddLearnSkillSlot(FlatBufferBuilder builder, StringOffset learnSkillSlotOffset) { builder.AddOffset(8, learnSkillSlotOffset.Value, 0); } + public static void AddStatType(FlatBufferBuilder builder, VectorOffset statTypeOffset) { builder.AddOffset(9, statTypeOffset.Value, 0); } + public static VectorOffset CreateStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] 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 CreateStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMinStatValue(FlatBufferBuilder builder, VectorOffset minStatValueOffset) { builder.AddOffset(10, minStatValueOffset.Value, 0); } + public static VectorOffset CreateMinStatValueVector(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 CreateMinStatValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMinStatValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMinStatValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMinStatValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMaxStatValue(FlatBufferBuilder builder, VectorOffset maxStatValueOffset) { builder.AddOffset(11, maxStatValueOffset.Value, 0); } + public static VectorOffset CreateMaxStatValueVector(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 CreateMaxStatValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxStatValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxStatValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMaxStatValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(12, iconOffset.Value, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(13, localizeEtcId, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(14, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCharacterGearExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterGearExcelVerify +{ + 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 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Tier*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*NextTierEquipment*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RecipeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*OpenFavorLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*MaxLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*LearnSkillSlot*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*StatType*/, 4 /*SCHALE.Common.FlatData.EquipmentOptionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*MinStatValue*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*MaxStatValue*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 28 /*Icon*/, false) + && verifier.VerifyField(tablePos, 30 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterGearExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearExcelTable.cs new file mode 100644 index 0000000..5357988 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterGearExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterGearExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterGearExcelTable GetRootAsCharacterGearExcelTable(ByteBuffer _bb) { return GetRootAsCharacterGearExcelTable(_bb, new CharacterGearExcelTable()); } + public static CharacterGearExcelTable GetRootAsCharacterGearExcelTable(ByteBuffer _bb, CharacterGearExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterGearExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterGearExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterGearExcel?)(new SCHALE.Common.FlatData.CharacterGearExcel()).__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 CreateCharacterGearExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterGearExcelTable.AddDataList(builder, DataListOffset); + return CharacterGearExcelTable.EndCharacterGearExcelTable(builder); + } + + public static void StartCharacterGearExcelTable(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 EndCharacterGearExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterGearExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterGearExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs b/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs new file mode 100644 index 0000000..b242ea0 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterGearLevelExcel.cs @@ -0,0 +1,84 @@ +// +// 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 CharacterGearLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterGearLevelExcel GetRootAsCharacterGearLevelExcel(ByteBuffer _bb) { return GetRootAsCharacterGearLevelExcel(_bb, new CharacterGearLevelExcel()); } + public static CharacterGearLevelExcel GetRootAsCharacterGearLevelExcel(ByteBuffer _bb, CharacterGearLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterGearLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TierLevelExp(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int TierLevelExpLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTierLevelExpBytes() { return __p.__vector_as_span(6, 8); } +#else + public ArraySegment? GetTierLevelExpBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public long[] GetTierLevelExpArray() { return __p.__vector_as_array(6); } + public long TotalExp(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int TotalExpLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTotalExpBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetTotalExpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetTotalExpArray() { return __p.__vector_as_array(8); } + + public static Offset CreateCharacterGearLevelExcel(FlatBufferBuilder builder, + int Level = 0, + VectorOffset TierLevelExpOffset = default(VectorOffset), + VectorOffset TotalExpOffset = default(VectorOffset)) { + builder.StartTable(3); + CharacterGearLevelExcel.AddTotalExp(builder, TotalExpOffset); + CharacterGearLevelExcel.AddTierLevelExp(builder, TierLevelExpOffset); + CharacterGearLevelExcel.AddLevel(builder, Level); + return CharacterGearLevelExcel.EndCharacterGearLevelExcel(builder); + } + + public static void StartCharacterGearLevelExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); } + public static void AddTierLevelExp(FlatBufferBuilder builder, VectorOffset tierLevelExpOffset) { builder.AddOffset(1, tierLevelExpOffset.Value, 0); } + public static VectorOffset CreateTierLevelExpVector(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 CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTierLevelExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddTotalExp(FlatBufferBuilder builder, VectorOffset totalExpOffset) { builder.AddOffset(2, totalExpOffset.Value, 0); } + public static VectorOffset CreateTotalExpVector(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 CreateTotalExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTotalExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndCharacterGearLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterGearLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*TierLevelExp*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*TotalExp*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs new file mode 100644 index 0000000..0d28a55 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterGearLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterGearLevelExcelTable GetRootAsCharacterGearLevelExcelTable(ByteBuffer _bb) { return GetRootAsCharacterGearLevelExcelTable(_bb, new CharacterGearLevelExcelTable()); } + public static CharacterGearLevelExcelTable GetRootAsCharacterGearLevelExcelTable(ByteBuffer _bb, CharacterGearLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterGearLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterGearLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterGearLevelExcel?)(new SCHALE.Common.FlatData.CharacterGearLevelExcel()).__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 CreateCharacterGearLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterGearLevelExcelTable.AddDataList(builder, DataListOffset); + return CharacterGearLevelExcelTable.EndCharacterGearLevelExcelTable(builder); + } + + public static void StartCharacterGearLevelExcelTable(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 EndCharacterGearLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterGearLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterGearLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs new file mode 100644 index 0000000..5d872df --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcel.cs @@ -0,0 +1,75 @@ +// +// 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 CharacterIllustCoordinateExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterIllustCoordinateExcel GetRootAsCharacterIllustCoordinateExcel(ByteBuffer _bb) { return GetRootAsCharacterIllustCoordinateExcel(_bb, new CharacterIllustCoordinateExcel()); } + public static CharacterIllustCoordinateExcel GetRootAsCharacterIllustCoordinateExcel(ByteBuffer _bb, CharacterIllustCoordinateExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterIllustCoordinateExcel __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 float CharacterBodyCenterX { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CharacterBodyCenterY { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DefaultScale { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float MinScale { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float MaxScale { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateCharacterIllustCoordinateExcel(FlatBufferBuilder builder, + long Id = 0, + float CharacterBodyCenterX = 0.0f, + float CharacterBodyCenterY = 0.0f, + float DefaultScale = 0.0f, + float MinScale = 0.0f, + float MaxScale = 0.0f) { + builder.StartTable(6); + CharacterIllustCoordinateExcel.AddId(builder, Id); + CharacterIllustCoordinateExcel.AddMaxScale(builder, MaxScale); + CharacterIllustCoordinateExcel.AddMinScale(builder, MinScale); + CharacterIllustCoordinateExcel.AddDefaultScale(builder, DefaultScale); + CharacterIllustCoordinateExcel.AddCharacterBodyCenterY(builder, CharacterBodyCenterY); + CharacterIllustCoordinateExcel.AddCharacterBodyCenterX(builder, CharacterBodyCenterX); + return CharacterIllustCoordinateExcel.EndCharacterIllustCoordinateExcel(builder); + } + + public static void StartCharacterIllustCoordinateExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCharacterBodyCenterX(FlatBufferBuilder builder, float characterBodyCenterX) { builder.AddFloat(1, characterBodyCenterX, 0.0f); } + public static void AddCharacterBodyCenterY(FlatBufferBuilder builder, float characterBodyCenterY) { builder.AddFloat(2, characterBodyCenterY, 0.0f); } + public static void AddDefaultScale(FlatBufferBuilder builder, float defaultScale) { builder.AddFloat(3, defaultScale, 0.0f); } + public static void AddMinScale(FlatBufferBuilder builder, float minScale) { builder.AddFloat(4, minScale, 0.0f); } + public static void AddMaxScale(FlatBufferBuilder builder, float maxScale) { builder.AddFloat(5, maxScale, 0.0f); } + public static Offset EndCharacterIllustCoordinateExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterIllustCoordinateExcelVerify +{ + 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 /*CharacterBodyCenterX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CharacterBodyCenterY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DefaultScale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*MinScale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*MaxScale*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs new file mode 100644 index 0000000..728705d --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterIllustCoordinateExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterIllustCoordinateExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterIllustCoordinateExcelTable GetRootAsCharacterIllustCoordinateExcelTable(ByteBuffer _bb) { return GetRootAsCharacterIllustCoordinateExcelTable(_bb, new CharacterIllustCoordinateExcelTable()); } + public static CharacterIllustCoordinateExcelTable GetRootAsCharacterIllustCoordinateExcelTable(ByteBuffer _bb, CharacterIllustCoordinateExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterIllustCoordinateExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterIllustCoordinateExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterIllustCoordinateExcel?)(new SCHALE.Common.FlatData.CharacterIllustCoordinateExcel()).__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 CreateCharacterIllustCoordinateExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterIllustCoordinateExcelTable.AddDataList(builder, DataListOffset); + return CharacterIllustCoordinateExcelTable.EndCharacterIllustCoordinateExcelTable(builder); + } + + public static void StartCharacterIllustCoordinateExcelTable(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 EndCharacterIllustCoordinateExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterIllustCoordinateExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterIllustCoordinateExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterLevelExcel.cs b/SCHALE.Common/FlatData/CharacterLevelExcel.cs new file mode 100644 index 0000000..8e59e16 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterLevelExcel.cs @@ -0,0 +1,60 @@ +// +// 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 CharacterLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterLevelExcel GetRootAsCharacterLevelExcel(ByteBuffer _bb) { return GetRootAsCharacterLevelExcel(_bb, new CharacterLevelExcel()); } + public static CharacterLevelExcel GetRootAsCharacterLevelExcel(ByteBuffer _bb, CharacterLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Exp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TotalExp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterLevelExcel(FlatBufferBuilder builder, + int Level = 0, + long Exp = 0, + long TotalExp = 0) { + builder.StartTable(3); + CharacterLevelExcel.AddTotalExp(builder, TotalExp); + CharacterLevelExcel.AddExp(builder, Exp); + CharacterLevelExcel.AddLevel(builder, Level); + return CharacterLevelExcel.EndCharacterLevelExcel(builder); + } + + public static void StartCharacterLevelExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); } + public static void AddExp(FlatBufferBuilder builder, long exp) { builder.AddLong(1, exp, 0); } + public static void AddTotalExp(FlatBufferBuilder builder, long totalExp) { builder.AddLong(2, totalExp, 0); } + public static Offset EndCharacterLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Exp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*TotalExp*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs new file mode 100644 index 0000000..143c30a --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterLevelExcelTable GetRootAsCharacterLevelExcelTable(ByteBuffer _bb) { return GetRootAsCharacterLevelExcelTable(_bb, new CharacterLevelExcelTable()); } + public static CharacterLevelExcelTable GetRootAsCharacterLevelExcelTable(ByteBuffer _bb, CharacterLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterLevelExcel?)(new SCHALE.Common.FlatData.CharacterLevelExcel()).__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 CreateCharacterLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterLevelExcelTable.AddDataList(builder, DataListOffset); + return CharacterLevelExcelTable.EndCharacterLevelExcelTable(builder); + } + + public static void StartCharacterLevelExcelTable(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 EndCharacterLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs new file mode 100644 index 0000000..c5c9de4 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcel.cs @@ -0,0 +1,70 @@ +// +// 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 CharacterLevelStatFactorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterLevelStatFactorExcel GetRootAsCharacterLevelStatFactorExcel(ByteBuffer _bb) { return GetRootAsCharacterLevelStatFactorExcel(_bb, new CharacterLevelStatFactorExcel()); } + public static CharacterLevelStatFactorExcel GetRootAsCharacterLevelStatFactorExcel(ByteBuffer _bb, CharacterLevelStatFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterLevelStatFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalFactor { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StabilityFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenceFactor { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyFactor { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterLevelStatFactorExcel(FlatBufferBuilder builder, + long Level = 0, + long CriticalFactor = 0, + long StabilityFactor = 0, + long DefenceFactor = 0, + long AccuracyFactor = 0) { + builder.StartTable(5); + CharacterLevelStatFactorExcel.AddAccuracyFactor(builder, AccuracyFactor); + CharacterLevelStatFactorExcel.AddDefenceFactor(builder, DefenceFactor); + CharacterLevelStatFactorExcel.AddStabilityFactor(builder, StabilityFactor); + CharacterLevelStatFactorExcel.AddCriticalFactor(builder, CriticalFactor); + CharacterLevelStatFactorExcel.AddLevel(builder, Level); + return CharacterLevelStatFactorExcel.EndCharacterLevelStatFactorExcel(builder); + } + + public static void StartCharacterLevelStatFactorExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddLevel(FlatBufferBuilder builder, long level) { builder.AddLong(0, level, 0); } + public static void AddCriticalFactor(FlatBufferBuilder builder, long criticalFactor) { builder.AddLong(1, criticalFactor, 0); } + public static void AddStabilityFactor(FlatBufferBuilder builder, long stabilityFactor) { builder.AddLong(2, stabilityFactor, 0); } + public static void AddDefenceFactor(FlatBufferBuilder builder, long defenceFactor) { builder.AddLong(3, defenceFactor, 0); } + public static void AddAccuracyFactor(FlatBufferBuilder builder, long accuracyFactor) { builder.AddLong(4, accuracyFactor, 0); } + public static Offset EndCharacterLevelStatFactorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterLevelStatFactorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*CriticalFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*StabilityFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*DefenceFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AccuracyFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs new file mode 100644 index 0000000..70c2cfe --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterLevelStatFactorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterLevelStatFactorExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterLevelStatFactorExcelTable GetRootAsCharacterLevelStatFactorExcelTable(ByteBuffer _bb) { return GetRootAsCharacterLevelStatFactorExcelTable(_bb, new CharacterLevelStatFactorExcelTable()); } + public static CharacterLevelStatFactorExcelTable GetRootAsCharacterLevelStatFactorExcelTable(ByteBuffer _bb, CharacterLevelStatFactorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterLevelStatFactorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterLevelStatFactorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterLevelStatFactorExcel?)(new SCHALE.Common.FlatData.CharacterLevelStatFactorExcel()).__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 CreateCharacterLevelStatFactorExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterLevelStatFactorExcelTable.AddDataList(builder, DataListOffset); + return CharacterLevelStatFactorExcelTable.EndCharacterLevelStatFactorExcelTable(builder); + } + + public static void StartCharacterLevelStatFactorExcelTable(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 EndCharacterLevelStatFactorExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterLevelStatFactorExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterLevelStatFactorExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterPotentialExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs new file mode 100644 index 0000000..75fcf33 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs @@ -0,0 +1,65 @@ +// +// 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 CharacterPotentialExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterPotentialExcel GetRootAsCharacterPotentialExcel(ByteBuffer _bb) { return GetRootAsCharacterPotentialExcel(_bb, new CharacterPotentialExcel()); } + public static CharacterPotentialExcel GetRootAsCharacterPotentialExcel(ByteBuffer _bb, CharacterPotentialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterPotentialExcel __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 PotentialStatGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } + public bool IsUnnecessaryStat { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCharacterPotentialExcel(FlatBufferBuilder builder, + long Id = 0, + long PotentialStatGroupId = 0, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, + bool IsUnnecessaryStat = false) { + builder.StartTable(4); + CharacterPotentialExcel.AddPotentialStatGroupId(builder, PotentialStatGroupId); + CharacterPotentialExcel.AddId(builder, Id); + CharacterPotentialExcel.AddPotentialStatBonusRateType(builder, PotentialStatBonusRateType); + CharacterPotentialExcel.AddIsUnnecessaryStat(builder, IsUnnecessaryStat); + return CharacterPotentialExcel.EndCharacterPotentialExcel(builder); + } + + public static void StartCharacterPotentialExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddPotentialStatGroupId(FlatBufferBuilder builder, long potentialStatGroupId) { builder.AddLong(1, potentialStatGroupId, 0); } + public static void AddPotentialStatBonusRateType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType potentialStatBonusRateType) { builder.AddInt(2, (int)potentialStatBonusRateType, 0); } + public static void AddIsUnnecessaryStat(FlatBufferBuilder builder, bool isUnnecessaryStat) { builder.AddBool(3, isUnnecessaryStat, false); } + public static Offset EndCharacterPotentialExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterPotentialExcelVerify +{ + 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 /*PotentialStatGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*PotentialStatBonusRateType*/, 4 /*SCHALE.Common.FlatData.PotentialStatBonusRateType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IsUnnecessaryStat*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs new file mode 100644 index 0000000..f918aa1 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs @@ -0,0 +1,99 @@ +// +// 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 CharacterPotentialRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterPotentialRewardExcel GetRootAsCharacterPotentialRewardExcel(ByteBuffer _bb) { return GetRootAsCharacterPotentialRewardExcel(_bb, new CharacterPotentialRewardExcel()); } + public static CharacterPotentialRewardExcel GetRootAsCharacterPotentialRewardExcel(ByteBuffer _bb, CharacterPotentialRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterPotentialRewardExcel __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 SCHALE.Common.FlatData.PotentialStatBonusRateType RequirePotentialStatType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.PotentialStatBonusRateType)0; } + public int RequirePotentialStatTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRequirePotentialStatTypeBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetRequirePotentialStatTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.PotentialStatBonusRateType[] GetRequirePotentialStatTypeArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.PotentialStatBonusRateType[] a = new SCHALE.Common.FlatData.PotentialStatBonusRateType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(p + i * 4); } return a; } + public long RequirePotentialStatLevel(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RequirePotentialStatLevelLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRequirePotentialStatLevelBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetRequirePotentialStatLevelBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetRequirePotentialStatLevelArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateCharacterPotentialRewardExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset RequirePotentialStatTypeOffset = default(VectorOffset), + VectorOffset RequirePotentialStatLevelOffset = default(VectorOffset), + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0) { + builder.StartTable(6); + CharacterPotentialRewardExcel.AddRewardId(builder, RewardId); + CharacterPotentialRewardExcel.AddId(builder, Id); + CharacterPotentialRewardExcel.AddRewardAmount(builder, RewardAmount); + CharacterPotentialRewardExcel.AddRewardParcelType(builder, RewardParcelType); + CharacterPotentialRewardExcel.AddRequirePotentialStatLevel(builder, RequirePotentialStatLevelOffset); + CharacterPotentialRewardExcel.AddRequirePotentialStatType(builder, RequirePotentialStatTypeOffset); + return CharacterPotentialRewardExcel.EndCharacterPotentialRewardExcel(builder); + } + + public static void StartCharacterPotentialRewardExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddRequirePotentialStatType(FlatBufferBuilder builder, VectorOffset requirePotentialStatTypeOffset) { builder.AddOffset(1, requirePotentialStatTypeOffset.Value, 0); } + public static VectorOffset CreateRequirePotentialStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType[] 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 CreateRequirePotentialStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.PotentialStatBonusRateType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequirePotentialStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequirePotentialStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRequirePotentialStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRequirePotentialStatLevel(FlatBufferBuilder builder, VectorOffset requirePotentialStatLevelOffset) { builder.AddOffset(2, requirePotentialStatLevelOffset.Value, 0); } + public static VectorOffset CreateRequirePotentialStatLevelVector(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 CreateRequirePotentialStatLevelVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequirePotentialStatLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequirePotentialStatLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRequirePotentialStatLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static Offset EndCharacterPotentialRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterPotentialRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*RequirePotentialStatType*/, 4 /*SCHALE.Common.FlatData.PotentialStatBonusRateType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*RequirePotentialStatLevel*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs new file mode 100644 index 0000000..98026dd --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterPotentialStatExcel.cs @@ -0,0 +1,65 @@ +// +// 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 CharacterPotentialStatExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterPotentialStatExcel GetRootAsCharacterPotentialStatExcel(ByteBuffer _bb) { return GetRootAsCharacterPotentialStatExcel(_bb, new CharacterPotentialStatExcel()); } + public static CharacterPotentialStatExcel GetRootAsCharacterPotentialStatExcel(ByteBuffer _bb, CharacterPotentialStatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterPotentialStatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long PotentialStatGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PotentialLevel { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long RecipeId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StatBonusRate { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterPotentialStatExcel(FlatBufferBuilder builder, + long PotentialStatGroupId = 0, + int PotentialLevel = 0, + long RecipeId = 0, + long StatBonusRate = 0) { + builder.StartTable(4); + CharacterPotentialStatExcel.AddStatBonusRate(builder, StatBonusRate); + CharacterPotentialStatExcel.AddRecipeId(builder, RecipeId); + CharacterPotentialStatExcel.AddPotentialStatGroupId(builder, PotentialStatGroupId); + CharacterPotentialStatExcel.AddPotentialLevel(builder, PotentialLevel); + return CharacterPotentialStatExcel.EndCharacterPotentialStatExcel(builder); + } + + public static void StartCharacterPotentialStatExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddPotentialStatGroupId(FlatBufferBuilder builder, long potentialStatGroupId) { builder.AddLong(0, potentialStatGroupId, 0); } + public static void AddPotentialLevel(FlatBufferBuilder builder, int potentialLevel) { builder.AddInt(1, potentialLevel, 0); } + public static void AddRecipeId(FlatBufferBuilder builder, long recipeId) { builder.AddLong(2, recipeId, 0); } + public static void AddStatBonusRate(FlatBufferBuilder builder, long statBonusRate) { builder.AddLong(3, statBonusRate, 0); } + public static Offset EndCharacterPotentialStatExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterPotentialStatExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*PotentialStatGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*PotentialLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RecipeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StatBonusRate*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterSkillListExcel.cs b/SCHALE.Common/FlatData/CharacterSkillListExcel.cs new file mode 100644 index 0000000..4c2c840 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterSkillListExcel.cs @@ -0,0 +1,213 @@ +// +// 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 CharacterSkillListExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterSkillListExcel GetRootAsCharacterSkillListExcel(ByteBuffer _bb) { return GetRootAsCharacterSkillListExcel(_bb, new CharacterSkillListExcel()); } + public static CharacterSkillListExcel GetRootAsCharacterSkillListExcel(ByteBuffer _bb, CharacterSkillListExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterSkillListExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterSkillListGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MinimumGradeCharacterWeapon { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MinimumTierCharacterGear { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsRootMotion { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsMoveLeftRight { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseRandomAnimation { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long TSAInteractionId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string NormalSkillGroupId(int j) { int o = __p.__offset(20); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int NormalSkillGroupIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } + public int NormalSkillTimeLineIndex(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int NormalSkillTimeLineIndexLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNormalSkillTimeLineIndexBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetNormalSkillTimeLineIndexBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public int[] GetNormalSkillTimeLineIndexArray() { return __p.__vector_as_array(22); } + public string ExSkillGroupId(int j) { int o = __p.__offset(24); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ExSkillGroupIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } + public int ExSkillTimeLineIndex(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ExSkillTimeLineIndexLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExSkillTimeLineIndexBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetExSkillTimeLineIndexBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetExSkillTimeLineIndexArray() { return __p.__vector_as_array(26); } + public string PublicSkillGroupId(int j) { int o = __p.__offset(28); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PublicSkillGroupIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } + public int PublicSkillTimeLineIndex(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int PublicSkillTimeLineIndexLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPublicSkillTimeLineIndexBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetPublicSkillTimeLineIndexBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public int[] GetPublicSkillTimeLineIndexArray() { return __p.__vector_as_array(30); } + public string PassiveSkillGroupId(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PassiveSkillGroupIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } + public string LeaderSkillGroupId(int j) { int o = __p.__offset(34); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int LeaderSkillGroupIdLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } + public string ExtraPassiveSkillGroupId(int j) { int o = __p.__offset(36); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ExtraPassiveSkillGroupIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } + public string HiddenPassiveSkillGroupId(int j) { int o = __p.__offset(38); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int HiddenPassiveSkillGroupIdLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateCharacterSkillListExcel(FlatBufferBuilder builder, + long CharacterSkillListGroupId = 0, + int MinimumGradeCharacterWeapon = 0, + int MinimumTierCharacterGear = 0, + int FormIndex = 0, + bool IsRootMotion = false, + bool IsMoveLeftRight = false, + bool UseRandomAnimation = false, + long TSAInteractionId = 0, + VectorOffset NormalSkillGroupIdOffset = default(VectorOffset), + VectorOffset NormalSkillTimeLineIndexOffset = default(VectorOffset), + VectorOffset ExSkillGroupIdOffset = default(VectorOffset), + VectorOffset ExSkillTimeLineIndexOffset = default(VectorOffset), + VectorOffset PublicSkillGroupIdOffset = default(VectorOffset), + VectorOffset PublicSkillTimeLineIndexOffset = default(VectorOffset), + VectorOffset PassiveSkillGroupIdOffset = default(VectorOffset), + VectorOffset LeaderSkillGroupIdOffset = default(VectorOffset), + VectorOffset ExtraPassiveSkillGroupIdOffset = default(VectorOffset), + VectorOffset HiddenPassiveSkillGroupIdOffset = default(VectorOffset)) { + builder.StartTable(18); + CharacterSkillListExcel.AddTSAInteractionId(builder, TSAInteractionId); + CharacterSkillListExcel.AddCharacterSkillListGroupId(builder, CharacterSkillListGroupId); + CharacterSkillListExcel.AddHiddenPassiveSkillGroupId(builder, HiddenPassiveSkillGroupIdOffset); + CharacterSkillListExcel.AddExtraPassiveSkillGroupId(builder, ExtraPassiveSkillGroupIdOffset); + CharacterSkillListExcel.AddLeaderSkillGroupId(builder, LeaderSkillGroupIdOffset); + CharacterSkillListExcel.AddPassiveSkillGroupId(builder, PassiveSkillGroupIdOffset); + CharacterSkillListExcel.AddPublicSkillTimeLineIndex(builder, PublicSkillTimeLineIndexOffset); + CharacterSkillListExcel.AddPublicSkillGroupId(builder, PublicSkillGroupIdOffset); + CharacterSkillListExcel.AddExSkillTimeLineIndex(builder, ExSkillTimeLineIndexOffset); + CharacterSkillListExcel.AddExSkillGroupId(builder, ExSkillGroupIdOffset); + CharacterSkillListExcel.AddNormalSkillTimeLineIndex(builder, NormalSkillTimeLineIndexOffset); + CharacterSkillListExcel.AddNormalSkillGroupId(builder, NormalSkillGroupIdOffset); + CharacterSkillListExcel.AddFormIndex(builder, FormIndex); + CharacterSkillListExcel.AddMinimumTierCharacterGear(builder, MinimumTierCharacterGear); + CharacterSkillListExcel.AddMinimumGradeCharacterWeapon(builder, MinimumGradeCharacterWeapon); + CharacterSkillListExcel.AddUseRandomAnimation(builder, UseRandomAnimation); + CharacterSkillListExcel.AddIsMoveLeftRight(builder, IsMoveLeftRight); + CharacterSkillListExcel.AddIsRootMotion(builder, IsRootMotion); + return CharacterSkillListExcel.EndCharacterSkillListExcel(builder); + } + + public static void StartCharacterSkillListExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + public static void AddCharacterSkillListGroupId(FlatBufferBuilder builder, long characterSkillListGroupId) { builder.AddLong(0, characterSkillListGroupId, 0); } + public static void AddMinimumGradeCharacterWeapon(FlatBufferBuilder builder, int minimumGradeCharacterWeapon) { builder.AddInt(1, minimumGradeCharacterWeapon, 0); } + public static void AddMinimumTierCharacterGear(FlatBufferBuilder builder, int minimumTierCharacterGear) { builder.AddInt(2, minimumTierCharacterGear, 0); } + public static void AddFormIndex(FlatBufferBuilder builder, int formIndex) { builder.AddInt(3, formIndex, 0); } + public static void AddIsRootMotion(FlatBufferBuilder builder, bool isRootMotion) { builder.AddBool(4, isRootMotion, false); } + public static void AddIsMoveLeftRight(FlatBufferBuilder builder, bool isMoveLeftRight) { builder.AddBool(5, isMoveLeftRight, false); } + public static void AddUseRandomAnimation(FlatBufferBuilder builder, bool useRandomAnimation) { builder.AddBool(6, useRandomAnimation, false); } + public static void AddTSAInteractionId(FlatBufferBuilder builder, long tSAInteractionId) { builder.AddLong(7, tSAInteractionId, 0); } + public static void AddNormalSkillGroupId(FlatBufferBuilder builder, VectorOffset normalSkillGroupIdOffset) { builder.AddOffset(8, normalSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreateNormalSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateNormalSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNormalSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddNormalSkillTimeLineIndex(FlatBufferBuilder builder, VectorOffset normalSkillTimeLineIndexOffset) { builder.AddOffset(9, normalSkillTimeLineIndexOffset.Value, 0); } + public static VectorOffset CreateNormalSkillTimeLineIndexVector(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 CreateNormalSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNormalSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNormalSkillTimeLineIndexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExSkillGroupId(FlatBufferBuilder builder, VectorOffset exSkillGroupIdOffset) { builder.AddOffset(10, exSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreateExSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateExSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExSkillTimeLineIndex(FlatBufferBuilder builder, VectorOffset exSkillTimeLineIndexOffset) { builder.AddOffset(11, exSkillTimeLineIndexOffset.Value, 0); } + public static VectorOffset CreateExSkillTimeLineIndexVector(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 CreateExSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExSkillTimeLineIndexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPublicSkillGroupId(FlatBufferBuilder builder, VectorOffset publicSkillGroupIdOffset) { builder.AddOffset(12, publicSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreatePublicSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPublicSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPublicSkillTimeLineIndex(FlatBufferBuilder builder, VectorOffset publicSkillTimeLineIndexOffset) { builder.AddOffset(13, publicSkillTimeLineIndexOffset.Value, 0); } + public static VectorOffset CreatePublicSkillTimeLineIndexVector(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 CreatePublicSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillTimeLineIndexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPublicSkillTimeLineIndexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPassiveSkillGroupId(FlatBufferBuilder builder, VectorOffset passiveSkillGroupIdOffset) { builder.AddOffset(14, passiveSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreatePassiveSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPassiveSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLeaderSkillGroupId(FlatBufferBuilder builder, VectorOffset leaderSkillGroupIdOffset) { builder.AddOffset(15, leaderSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreateLeaderSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateLeaderSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLeaderSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLeaderSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLeaderSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExtraPassiveSkillGroupId(FlatBufferBuilder builder, VectorOffset extraPassiveSkillGroupIdOffset) { builder.AddOffset(16, extraPassiveSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreateExtraPassiveSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateExtraPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraPassiveSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddHiddenPassiveSkillGroupId(FlatBufferBuilder builder, VectorOffset hiddenPassiveSkillGroupIdOffset) { builder.AddOffset(17, hiddenPassiveSkillGroupIdOffset.Value, 0); } + public static VectorOffset CreateHiddenPassiveSkillGroupIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateHiddenPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHiddenPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHiddenPassiveSkillGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartHiddenPassiveSkillGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCharacterSkillListExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterSkillListExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterSkillListGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*MinimumGradeCharacterWeapon*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*MinimumTierCharacterGear*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*FormIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*IsRootMotion*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*IsMoveLeftRight*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*UseRandomAnimation*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*TSAInteractionId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 20 /*NormalSkillGroupId*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*NormalSkillTimeLineIndex*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 24 /*ExSkillGroupId*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*ExSkillTimeLineIndex*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 28 /*PublicSkillGroupId*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*PublicSkillTimeLineIndex*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 32 /*PassiveSkillGroupId*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 34 /*LeaderSkillGroupId*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 36 /*ExtraPassiveSkillGroupId*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 38 /*HiddenPassiveSkillGroupId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs b/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs new file mode 100644 index 0000000..f357747 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterSkillListExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterSkillListExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterSkillListExcelTable GetRootAsCharacterSkillListExcelTable(ByteBuffer _bb) { return GetRootAsCharacterSkillListExcelTable(_bb, new CharacterSkillListExcelTable()); } + public static CharacterSkillListExcelTable GetRootAsCharacterSkillListExcelTable(ByteBuffer _bb, CharacterSkillListExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterSkillListExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterSkillListExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterSkillListExcel?)(new SCHALE.Common.FlatData.CharacterSkillListExcel()).__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 CreateCharacterSkillListExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterSkillListExcelTable.AddDataList(builder, DataListOffset); + return CharacterSkillListExcelTable.EndCharacterSkillListExcelTable(builder); + } + + public static void StartCharacterSkillListExcelTable(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 EndCharacterSkillListExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterSkillListExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterSkillListExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatExcel.cs b/SCHALE.Common/FlatData/CharacterStatExcel.cs new file mode 100644 index 0000000..b219e72 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatExcel.cs @@ -0,0 +1,375 @@ +// +// 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 CharacterStatExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatExcel GetRootAsCharacterStatExcel(ByteBuffer _bb) { return GetRootAsCharacterStatExcel(_bb, new CharacterStatExcel()); } + public static CharacterStatExcel GetRootAsCharacterStatExcel(ByteBuffer _bb, CharacterStatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StabilityRate { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StabilityPoint { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackPower1 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackPower100 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHP1 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHP100 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePower1 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePower100 { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HealPower1 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HealPower100 { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DodgePoint { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyPoint { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalPoint { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalResistPoint { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalDamageRate { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalDamageResistRate { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BlockRate { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HealEffectivenessRate { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OppressionPower { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OppressionResist { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePenetration1 { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePenetration100 { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePenetrationResist1 { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefensePenetrationResist100 { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceExplosionRate { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhancePierceRate { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceMysticRate { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceSonicRate { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceSiegeRate { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceNormalRate { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceLightArmorRate { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceHeavyArmorRate { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceUnarmedRate { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceElasticArmorRate { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceStructureRate { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnhanceNormalArmorRate { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtendBuffDuration { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtendDebuffDuration { get { int o = __p.__offset(80); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtendCrowdControlDuration { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AmmoCount { get { int o = __p.__offset(84); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AmmoCost { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long IgnoreDelayCount { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NormalAttackSpeed { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Range { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long InitialRangeRate { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MoveSpeed { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SightPoint { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ActiveGauge { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int GroggyGauge { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int GroggyTime { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StrategyMobility { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ActionCount { get { int o = __p.__offset(108); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StrategySightRange { get { int o = __p.__offset(110); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamageRatio { get { int o = __p.__offset(112); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamagedRatio { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamageRatio2Increase { get { int o = __p.__offset(116); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamageRatio2Decrease { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamagedRatio2Increase { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DamagedRatio2Decrease { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExDamagedRatioIncrease { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExDamagedRatioDecrease { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat StreetBattleAdaptation { get { int o = __p.__offset(128); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat OutdoorBattleAdaptation { get { int o = __p.__offset(130); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat IndoorBattleAdaptation { get { int o = __p.__offset(132); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public long RegenCost { get { int o = __p.__offset(134); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterStatExcel(FlatBufferBuilder builder, + long CharacterId = 0, + long StabilityRate = 0, + long StabilityPoint = 0, + long AttackPower1 = 0, + long AttackPower100 = 0, + long MaxHP1 = 0, + long MaxHP100 = 0, + long DefensePower1 = 0, + long DefensePower100 = 0, + long HealPower1 = 0, + long HealPower100 = 0, + long DodgePoint = 0, + long AccuracyPoint = 0, + long CriticalPoint = 0, + long CriticalResistPoint = 0, + long CriticalDamageRate = 0, + long CriticalDamageResistRate = 0, + long BlockRate = 0, + long HealEffectivenessRate = 0, + long OppressionPower = 0, + long OppressionResist = 0, + long DefensePenetration1 = 0, + long DefensePenetration100 = 0, + long DefensePenetrationResist1 = 0, + long DefensePenetrationResist100 = 0, + long EnhanceExplosionRate = 0, + long EnhancePierceRate = 0, + long EnhanceMysticRate = 0, + long EnhanceSonicRate = 0, + long EnhanceSiegeRate = 0, + long EnhanceNormalRate = 0, + long EnhanceLightArmorRate = 0, + long EnhanceHeavyArmorRate = 0, + long EnhanceUnarmedRate = 0, + long EnhanceElasticArmorRate = 0, + long EnhanceStructureRate = 0, + long EnhanceNormalArmorRate = 0, + long ExtendBuffDuration = 0, + long ExtendDebuffDuration = 0, + long ExtendCrowdControlDuration = 0, + long AmmoCount = 0, + long AmmoCost = 0, + long IgnoreDelayCount = 0, + long NormalAttackSpeed = 0, + long Range = 0, + long InitialRangeRate = 0, + long MoveSpeed = 0, + long SightPoint = 0, + long ActiveGauge = 0, + int GroggyGauge = 0, + int GroggyTime = 0, + long StrategyMobility = 0, + long ActionCount = 0, + long StrategySightRange = 0, + long DamageRatio = 0, + long DamagedRatio = 0, + long DamageRatio2Increase = 0, + long DamageRatio2Decrease = 0, + long DamagedRatio2Increase = 0, + long DamagedRatio2Decrease = 0, + long ExDamagedRatioIncrease = 0, + long ExDamagedRatioDecrease = 0, + SCHALE.Common.FlatData.TerrainAdaptationStat StreetBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + SCHALE.Common.FlatData.TerrainAdaptationStat OutdoorBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + SCHALE.Common.FlatData.TerrainAdaptationStat IndoorBattleAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + long RegenCost = 0) { + builder.StartTable(66); + CharacterStatExcel.AddRegenCost(builder, RegenCost); + CharacterStatExcel.AddExDamagedRatioDecrease(builder, ExDamagedRatioDecrease); + CharacterStatExcel.AddExDamagedRatioIncrease(builder, ExDamagedRatioIncrease); + CharacterStatExcel.AddDamagedRatio2Decrease(builder, DamagedRatio2Decrease); + CharacterStatExcel.AddDamagedRatio2Increase(builder, DamagedRatio2Increase); + CharacterStatExcel.AddDamageRatio2Decrease(builder, DamageRatio2Decrease); + CharacterStatExcel.AddDamageRatio2Increase(builder, DamageRatio2Increase); + CharacterStatExcel.AddDamagedRatio(builder, DamagedRatio); + CharacterStatExcel.AddDamageRatio(builder, DamageRatio); + CharacterStatExcel.AddStrategySightRange(builder, StrategySightRange); + CharacterStatExcel.AddActionCount(builder, ActionCount); + CharacterStatExcel.AddStrategyMobility(builder, StrategyMobility); + CharacterStatExcel.AddActiveGauge(builder, ActiveGauge); + CharacterStatExcel.AddSightPoint(builder, SightPoint); + CharacterStatExcel.AddMoveSpeed(builder, MoveSpeed); + CharacterStatExcel.AddInitialRangeRate(builder, InitialRangeRate); + CharacterStatExcel.AddRange(builder, Range); + CharacterStatExcel.AddNormalAttackSpeed(builder, NormalAttackSpeed); + CharacterStatExcel.AddIgnoreDelayCount(builder, IgnoreDelayCount); + CharacterStatExcel.AddAmmoCost(builder, AmmoCost); + CharacterStatExcel.AddAmmoCount(builder, AmmoCount); + CharacterStatExcel.AddExtendCrowdControlDuration(builder, ExtendCrowdControlDuration); + CharacterStatExcel.AddExtendDebuffDuration(builder, ExtendDebuffDuration); + CharacterStatExcel.AddExtendBuffDuration(builder, ExtendBuffDuration); + CharacterStatExcel.AddEnhanceNormalArmorRate(builder, EnhanceNormalArmorRate); + CharacterStatExcel.AddEnhanceStructureRate(builder, EnhanceStructureRate); + CharacterStatExcel.AddEnhanceElasticArmorRate(builder, EnhanceElasticArmorRate); + CharacterStatExcel.AddEnhanceUnarmedRate(builder, EnhanceUnarmedRate); + CharacterStatExcel.AddEnhanceHeavyArmorRate(builder, EnhanceHeavyArmorRate); + CharacterStatExcel.AddEnhanceLightArmorRate(builder, EnhanceLightArmorRate); + CharacterStatExcel.AddEnhanceNormalRate(builder, EnhanceNormalRate); + CharacterStatExcel.AddEnhanceSiegeRate(builder, EnhanceSiegeRate); + CharacterStatExcel.AddEnhanceSonicRate(builder, EnhanceSonicRate); + CharacterStatExcel.AddEnhanceMysticRate(builder, EnhanceMysticRate); + CharacterStatExcel.AddEnhancePierceRate(builder, EnhancePierceRate); + CharacterStatExcel.AddEnhanceExplosionRate(builder, EnhanceExplosionRate); + CharacterStatExcel.AddDefensePenetrationResist100(builder, DefensePenetrationResist100); + CharacterStatExcel.AddDefensePenetrationResist1(builder, DefensePenetrationResist1); + CharacterStatExcel.AddDefensePenetration100(builder, DefensePenetration100); + CharacterStatExcel.AddDefensePenetration1(builder, DefensePenetration1); + CharacterStatExcel.AddOppressionResist(builder, OppressionResist); + CharacterStatExcel.AddOppressionPower(builder, OppressionPower); + CharacterStatExcel.AddHealEffectivenessRate(builder, HealEffectivenessRate); + CharacterStatExcel.AddBlockRate(builder, BlockRate); + CharacterStatExcel.AddCriticalDamageResistRate(builder, CriticalDamageResistRate); + CharacterStatExcel.AddCriticalDamageRate(builder, CriticalDamageRate); + CharacterStatExcel.AddCriticalResistPoint(builder, CriticalResistPoint); + CharacterStatExcel.AddCriticalPoint(builder, CriticalPoint); + CharacterStatExcel.AddAccuracyPoint(builder, AccuracyPoint); + CharacterStatExcel.AddDodgePoint(builder, DodgePoint); + CharacterStatExcel.AddHealPower100(builder, HealPower100); + CharacterStatExcel.AddHealPower1(builder, HealPower1); + CharacterStatExcel.AddDefensePower100(builder, DefensePower100); + CharacterStatExcel.AddDefensePower1(builder, DefensePower1); + CharacterStatExcel.AddMaxHP100(builder, MaxHP100); + CharacterStatExcel.AddMaxHP1(builder, MaxHP1); + CharacterStatExcel.AddAttackPower100(builder, AttackPower100); + CharacterStatExcel.AddAttackPower1(builder, AttackPower1); + CharacterStatExcel.AddStabilityPoint(builder, StabilityPoint); + CharacterStatExcel.AddStabilityRate(builder, StabilityRate); + CharacterStatExcel.AddCharacterId(builder, CharacterId); + CharacterStatExcel.AddIndoorBattleAdaptation(builder, IndoorBattleAdaptation); + CharacterStatExcel.AddOutdoorBattleAdaptation(builder, OutdoorBattleAdaptation); + CharacterStatExcel.AddStreetBattleAdaptation(builder, StreetBattleAdaptation); + CharacterStatExcel.AddGroggyTime(builder, GroggyTime); + CharacterStatExcel.AddGroggyGauge(builder, GroggyGauge); + return CharacterStatExcel.EndCharacterStatExcel(builder); + } + + public static void StartCharacterStatExcel(FlatBufferBuilder builder) { builder.StartTable(66); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddStabilityRate(FlatBufferBuilder builder, long stabilityRate) { builder.AddLong(1, stabilityRate, 0); } + public static void AddStabilityPoint(FlatBufferBuilder builder, long stabilityPoint) { builder.AddLong(2, stabilityPoint, 0); } + public static void AddAttackPower1(FlatBufferBuilder builder, long attackPower1) { builder.AddLong(3, attackPower1, 0); } + public static void AddAttackPower100(FlatBufferBuilder builder, long attackPower100) { builder.AddLong(4, attackPower100, 0); } + public static void AddMaxHP1(FlatBufferBuilder builder, long maxHP1) { builder.AddLong(5, maxHP1, 0); } + public static void AddMaxHP100(FlatBufferBuilder builder, long maxHP100) { builder.AddLong(6, maxHP100, 0); } + public static void AddDefensePower1(FlatBufferBuilder builder, long defensePower1) { builder.AddLong(7, defensePower1, 0); } + public static void AddDefensePower100(FlatBufferBuilder builder, long defensePower100) { builder.AddLong(8, defensePower100, 0); } + public static void AddHealPower1(FlatBufferBuilder builder, long healPower1) { builder.AddLong(9, healPower1, 0); } + public static void AddHealPower100(FlatBufferBuilder builder, long healPower100) { builder.AddLong(10, healPower100, 0); } + public static void AddDodgePoint(FlatBufferBuilder builder, long dodgePoint) { builder.AddLong(11, dodgePoint, 0); } + public static void AddAccuracyPoint(FlatBufferBuilder builder, long accuracyPoint) { builder.AddLong(12, accuracyPoint, 0); } + public static void AddCriticalPoint(FlatBufferBuilder builder, long criticalPoint) { builder.AddLong(13, criticalPoint, 0); } + public static void AddCriticalResistPoint(FlatBufferBuilder builder, long criticalResistPoint) { builder.AddLong(14, criticalResistPoint, 0); } + public static void AddCriticalDamageRate(FlatBufferBuilder builder, long criticalDamageRate) { builder.AddLong(15, criticalDamageRate, 0); } + public static void AddCriticalDamageResistRate(FlatBufferBuilder builder, long criticalDamageResistRate) { builder.AddLong(16, criticalDamageResistRate, 0); } + public static void AddBlockRate(FlatBufferBuilder builder, long blockRate) { builder.AddLong(17, blockRate, 0); } + public static void AddHealEffectivenessRate(FlatBufferBuilder builder, long healEffectivenessRate) { builder.AddLong(18, healEffectivenessRate, 0); } + public static void AddOppressionPower(FlatBufferBuilder builder, long oppressionPower) { builder.AddLong(19, oppressionPower, 0); } + public static void AddOppressionResist(FlatBufferBuilder builder, long oppressionResist) { builder.AddLong(20, oppressionResist, 0); } + public static void AddDefensePenetration1(FlatBufferBuilder builder, long defensePenetration1) { builder.AddLong(21, defensePenetration1, 0); } + public static void AddDefensePenetration100(FlatBufferBuilder builder, long defensePenetration100) { builder.AddLong(22, defensePenetration100, 0); } + public static void AddDefensePenetrationResist1(FlatBufferBuilder builder, long defensePenetrationResist1) { builder.AddLong(23, defensePenetrationResist1, 0); } + public static void AddDefensePenetrationResist100(FlatBufferBuilder builder, long defensePenetrationResist100) { builder.AddLong(24, defensePenetrationResist100, 0); } + public static void AddEnhanceExplosionRate(FlatBufferBuilder builder, long enhanceExplosionRate) { builder.AddLong(25, enhanceExplosionRate, 0); } + public static void AddEnhancePierceRate(FlatBufferBuilder builder, long enhancePierceRate) { builder.AddLong(26, enhancePierceRate, 0); } + public static void AddEnhanceMysticRate(FlatBufferBuilder builder, long enhanceMysticRate) { builder.AddLong(27, enhanceMysticRate, 0); } + public static void AddEnhanceSonicRate(FlatBufferBuilder builder, long enhanceSonicRate) { builder.AddLong(28, enhanceSonicRate, 0); } + public static void AddEnhanceSiegeRate(FlatBufferBuilder builder, long enhanceSiegeRate) { builder.AddLong(29, enhanceSiegeRate, 0); } + public static void AddEnhanceNormalRate(FlatBufferBuilder builder, long enhanceNormalRate) { builder.AddLong(30, enhanceNormalRate, 0); } + public static void AddEnhanceLightArmorRate(FlatBufferBuilder builder, long enhanceLightArmorRate) { builder.AddLong(31, enhanceLightArmorRate, 0); } + public static void AddEnhanceHeavyArmorRate(FlatBufferBuilder builder, long enhanceHeavyArmorRate) { builder.AddLong(32, enhanceHeavyArmorRate, 0); } + public static void AddEnhanceUnarmedRate(FlatBufferBuilder builder, long enhanceUnarmedRate) { builder.AddLong(33, enhanceUnarmedRate, 0); } + public static void AddEnhanceElasticArmorRate(FlatBufferBuilder builder, long enhanceElasticArmorRate) { builder.AddLong(34, enhanceElasticArmorRate, 0); } + public static void AddEnhanceStructureRate(FlatBufferBuilder builder, long enhanceStructureRate) { builder.AddLong(35, enhanceStructureRate, 0); } + public static void AddEnhanceNormalArmorRate(FlatBufferBuilder builder, long enhanceNormalArmorRate) { builder.AddLong(36, enhanceNormalArmorRate, 0); } + public static void AddExtendBuffDuration(FlatBufferBuilder builder, long extendBuffDuration) { builder.AddLong(37, extendBuffDuration, 0); } + public static void AddExtendDebuffDuration(FlatBufferBuilder builder, long extendDebuffDuration) { builder.AddLong(38, extendDebuffDuration, 0); } + public static void AddExtendCrowdControlDuration(FlatBufferBuilder builder, long extendCrowdControlDuration) { builder.AddLong(39, extendCrowdControlDuration, 0); } + public static void AddAmmoCount(FlatBufferBuilder builder, long ammoCount) { builder.AddLong(40, ammoCount, 0); } + public static void AddAmmoCost(FlatBufferBuilder builder, long ammoCost) { builder.AddLong(41, ammoCost, 0); } + public static void AddIgnoreDelayCount(FlatBufferBuilder builder, long ignoreDelayCount) { builder.AddLong(42, ignoreDelayCount, 0); } + public static void AddNormalAttackSpeed(FlatBufferBuilder builder, long normalAttackSpeed) { builder.AddLong(43, normalAttackSpeed, 0); } + public static void AddRange(FlatBufferBuilder builder, long range) { builder.AddLong(44, range, 0); } + public static void AddInitialRangeRate(FlatBufferBuilder builder, long initialRangeRate) { builder.AddLong(45, initialRangeRate, 0); } + public static void AddMoveSpeed(FlatBufferBuilder builder, long moveSpeed) { builder.AddLong(46, moveSpeed, 0); } + public static void AddSightPoint(FlatBufferBuilder builder, long sightPoint) { builder.AddLong(47, sightPoint, 0); } + public static void AddActiveGauge(FlatBufferBuilder builder, long activeGauge) { builder.AddLong(48, activeGauge, 0); } + public static void AddGroggyGauge(FlatBufferBuilder builder, int groggyGauge) { builder.AddInt(49, groggyGauge, 0); } + public static void AddGroggyTime(FlatBufferBuilder builder, int groggyTime) { builder.AddInt(50, groggyTime, 0); } + public static void AddStrategyMobility(FlatBufferBuilder builder, long strategyMobility) { builder.AddLong(51, strategyMobility, 0); } + public static void AddActionCount(FlatBufferBuilder builder, long actionCount) { builder.AddLong(52, actionCount, 0); } + public static void AddStrategySightRange(FlatBufferBuilder builder, long strategySightRange) { builder.AddLong(53, strategySightRange, 0); } + public static void AddDamageRatio(FlatBufferBuilder builder, long damageRatio) { builder.AddLong(54, damageRatio, 0); } + public static void AddDamagedRatio(FlatBufferBuilder builder, long damagedRatio) { builder.AddLong(55, damagedRatio, 0); } + public static void AddDamageRatio2Increase(FlatBufferBuilder builder, long damageRatio2Increase) { builder.AddLong(56, damageRatio2Increase, 0); } + public static void AddDamageRatio2Decrease(FlatBufferBuilder builder, long damageRatio2Decrease) { builder.AddLong(57, damageRatio2Decrease, 0); } + public static void AddDamagedRatio2Increase(FlatBufferBuilder builder, long damagedRatio2Increase) { builder.AddLong(58, damagedRatio2Increase, 0); } + public static void AddDamagedRatio2Decrease(FlatBufferBuilder builder, long damagedRatio2Decrease) { builder.AddLong(59, damagedRatio2Decrease, 0); } + public static void AddExDamagedRatioIncrease(FlatBufferBuilder builder, long exDamagedRatioIncrease) { builder.AddLong(60, exDamagedRatioIncrease, 0); } + public static void AddExDamagedRatioDecrease(FlatBufferBuilder builder, long exDamagedRatioDecrease) { builder.AddLong(61, exDamagedRatioDecrease, 0); } + public static void AddStreetBattleAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat streetBattleAdaptation) { builder.AddInt(62, (int)streetBattleAdaptation, 0); } + public static void AddOutdoorBattleAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat outdoorBattleAdaptation) { builder.AddInt(63, (int)outdoorBattleAdaptation, 0); } + public static void AddIndoorBattleAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat indoorBattleAdaptation) { builder.AddInt(64, (int)indoorBattleAdaptation, 0); } + public static void AddRegenCost(FlatBufferBuilder builder, long regenCost) { builder.AddLong(65, regenCost, 0); } + public static Offset EndCharacterStatExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*StabilityRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*StabilityPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*AttackPower1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AttackPower100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*MaxHP1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*MaxHP100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*DefensePower1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*DefensePower100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*HealPower1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*HealPower100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*DodgePoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*AccuracyPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*CriticalPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*CriticalResistPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*CriticalDamageRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*CriticalDamageResistRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*BlockRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*HealEffectivenessRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*OppressionPower*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*OppressionResist*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*DefensePenetration1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*DefensePenetration100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*DefensePenetrationResist1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*DefensePenetrationResist100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*EnhanceExplosionRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*EnhancePierceRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*EnhanceMysticRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*EnhanceSonicRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*EnhanceSiegeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*EnhanceNormalRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*EnhanceLightArmorRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*EnhanceHeavyArmorRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 70 /*EnhanceUnarmedRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*EnhanceElasticArmorRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 74 /*EnhanceStructureRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 76 /*EnhanceNormalArmorRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 78 /*ExtendBuffDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 80 /*ExtendDebuffDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 82 /*ExtendCrowdControlDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 84 /*AmmoCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 86 /*AmmoCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 88 /*IgnoreDelayCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 90 /*NormalAttackSpeed*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 92 /*Range*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 94 /*InitialRangeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 96 /*MoveSpeed*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 98 /*SightPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 100 /*ActiveGauge*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 102 /*GroggyGauge*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 104 /*GroggyTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 106 /*StrategyMobility*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 108 /*ActionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 110 /*StrategySightRange*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 112 /*DamageRatio*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 114 /*DamagedRatio*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 116 /*DamageRatio2Increase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 118 /*DamageRatio2Decrease*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 120 /*DamagedRatio2Increase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 122 /*DamagedRatio2Decrease*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 124 /*ExDamagedRatioIncrease*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 126 /*ExDamagedRatioDecrease*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 128 /*StreetBattleAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 130 /*OutdoorBattleAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 132 /*IndoorBattleAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 134 /*RegenCost*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatExcelTable.cs new file mode 100644 index 0000000..d244500 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterStatExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatExcelTable GetRootAsCharacterStatExcelTable(ByteBuffer _bb) { return GetRootAsCharacterStatExcelTable(_bb, new CharacterStatExcelTable()); } + public static CharacterStatExcelTable GetRootAsCharacterStatExcelTable(ByteBuffer _bb, CharacterStatExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterStatExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterStatExcel?)(new SCHALE.Common.FlatData.CharacterStatExcel()).__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 CreateCharacterStatExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterStatExcelTable.AddDataList(builder, DataListOffset); + return CharacterStatExcelTable.EndCharacterStatExcelTable(builder); + } + + public static void StartCharacterStatExcelTable(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 EndCharacterStatExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterStatExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs new file mode 100644 index 0000000..58fb0e8 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs @@ -0,0 +1,80 @@ +// +// 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 CharacterStatLimitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatLimitExcel GetRootAsCharacterStatLimitExcel(ByteBuffer _bb) { return GetRootAsCharacterStatLimitExcel(_bb, new CharacterStatLimitExcel()); } + public static CharacterStatLimitExcel GetRootAsCharacterStatLimitExcel(ByteBuffer _bb, CharacterStatLimitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatLimitExcel __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 SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public SCHALE.Common.FlatData.StatType StatType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public long StatMinValue { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StatMaxValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StatRatioMinValue { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StatRatioMaxValue { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterStatLimitExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None, + SCHALE.Common.FlatData.StatType StatType = SCHALE.Common.FlatData.StatType.None, + long StatMinValue = 0, + long StatMaxValue = 0, + long StatRatioMinValue = 0, + long StatRatioMaxValue = 0) { + builder.StartTable(7); + CharacterStatLimitExcel.AddStatRatioMaxValue(builder, StatRatioMaxValue); + CharacterStatLimitExcel.AddStatRatioMinValue(builder, StatRatioMinValue); + CharacterStatLimitExcel.AddStatMaxValue(builder, StatMaxValue); + CharacterStatLimitExcel.AddStatMinValue(builder, StatMinValue); + CharacterStatLimitExcel.AddId(builder, Id); + CharacterStatLimitExcel.AddStatType(builder, StatType); + CharacterStatLimitExcel.AddTacticEntityType(builder, TacticEntityType); + return CharacterStatLimitExcel.EndCharacterStatLimitExcel(builder); + } + + public static void StartCharacterStatLimitExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTacticEntityType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType) { builder.AddInt(1, (int)tacticEntityType, 0); } + public static void AddStatType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType statType) { builder.AddInt(2, (int)statType, 0); } + public static void AddStatMinValue(FlatBufferBuilder builder, long statMinValue) { builder.AddLong(3, statMinValue, 0); } + public static void AddStatMaxValue(FlatBufferBuilder builder, long statMaxValue) { builder.AddLong(4, statMaxValue, 0); } + public static void AddStatRatioMinValue(FlatBufferBuilder builder, long statRatioMinValue) { builder.AddLong(5, statRatioMinValue, 0); } + public static void AddStatRatioMaxValue(FlatBufferBuilder builder, long statRatioMaxValue) { builder.AddLong(6, statRatioMaxValue, 0); } + public static Offset EndCharacterStatLimitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatLimitExcelVerify +{ + 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 /*TacticEntityType*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*StatType*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*StatMinValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StatMaxValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*StatRatioMinValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*StatRatioMaxValue*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs new file mode 100644 index 0000000..c1e7fff --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatLimitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterStatLimitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatLimitExcelTable GetRootAsCharacterStatLimitExcelTable(ByteBuffer _bb) { return GetRootAsCharacterStatLimitExcelTable(_bb, new CharacterStatLimitExcelTable()); } + public static CharacterStatLimitExcelTable GetRootAsCharacterStatLimitExcelTable(ByteBuffer _bb, CharacterStatLimitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatLimitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterStatLimitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterStatLimitExcel?)(new SCHALE.Common.FlatData.CharacterStatLimitExcel()).__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 CreateCharacterStatLimitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterStatLimitExcelTable.AddDataList(builder, DataListOffset); + return CharacterStatLimitExcelTable.EndCharacterStatLimitExcelTable(builder); + } + + public static void StartCharacterStatLimitExcelTable(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 EndCharacterStatLimitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatLimitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterStatLimitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs b/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs new file mode 100644 index 0000000..735a230 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatsDetailExcel.cs @@ -0,0 +1,84 @@ +// +// 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 CharacterStatsDetailExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatsDetailExcel GetRootAsCharacterStatsDetailExcel(ByteBuffer _bb) { return GetRootAsCharacterStatsDetailExcel(_bb, new CharacterStatsDetailExcel()); } + public static CharacterStatsDetailExcel GetRootAsCharacterStatsDetailExcel(ByteBuffer _bb, CharacterStatsDetailExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatsDetailExcel __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 SCHALE.Common.FlatData.StatType DetailShowStats(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StatType)0; } + public int DetailShowStatsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDetailShowStatsBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetDetailShowStatsBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.StatType[] GetDetailShowStatsArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StatType[] a = new SCHALE.Common.FlatData.StatType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(p + i * 4); } return a; } + public bool IsStatsPercent(int j) { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int IsStatsPercentLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIsStatsPercentBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIsStatsPercentBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public bool[] GetIsStatsPercentArray() { return __p.__vector_as_array(8); } + + public static Offset CreateCharacterStatsDetailExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset DetailShowStatsOffset = default(VectorOffset), + VectorOffset IsStatsPercentOffset = default(VectorOffset)) { + builder.StartTable(3); + CharacterStatsDetailExcel.AddId(builder, Id); + CharacterStatsDetailExcel.AddIsStatsPercent(builder, IsStatsPercentOffset); + CharacterStatsDetailExcel.AddDetailShowStats(builder, DetailShowStatsOffset); + return CharacterStatsDetailExcel.EndCharacterStatsDetailExcel(builder); + } + + public static void StartCharacterStatsDetailExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDetailShowStats(FlatBufferBuilder builder, VectorOffset detailShowStatsOffset) { builder.AddOffset(1, detailShowStatsOffset.Value, 0); } + public static VectorOffset CreateDetailShowStatsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] 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 CreateDetailShowStatsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDetailShowStatsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDetailShowStatsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDetailShowStatsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIsStatsPercent(FlatBufferBuilder builder, VectorOffset isStatsPercentOffset) { builder.AddOffset(2, isStatsPercentOffset.Value, 0); } + public static VectorOffset CreateIsStatsPercentVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateIsStatsPercentVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsStatsPercentVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsStatsPercentVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIsStatsPercentVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static Offset EndCharacterStatsDetailExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatsDetailExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*DetailShowStats*/, 4 /*SCHALE.Common.FlatData.StatType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*IsStatsPercent*/, 1 /*bool*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs new file mode 100644 index 0000000..8d9fd67 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatsDetailExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterStatsDetailExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatsDetailExcelTable GetRootAsCharacterStatsDetailExcelTable(ByteBuffer _bb) { return GetRootAsCharacterStatsDetailExcelTable(_bb, new CharacterStatsDetailExcelTable()); } + public static CharacterStatsDetailExcelTable GetRootAsCharacterStatsDetailExcelTable(ByteBuffer _bb, CharacterStatsDetailExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatsDetailExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterStatsDetailExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterStatsDetailExcel?)(new SCHALE.Common.FlatData.CharacterStatsDetailExcel()).__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 CreateCharacterStatsDetailExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterStatsDetailExcelTable.AddDataList(builder, DataListOffset); + return CharacterStatsDetailExcelTable.EndCharacterStatsDetailExcelTable(builder); + } + + public static void StartCharacterStatsDetailExcelTable(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 EndCharacterStatsDetailExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatsDetailExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterStatsDetailExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs new file mode 100644 index 0000000..5ba94af --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs @@ -0,0 +1,65 @@ +// +// 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 CharacterStatsTransExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatsTransExcel GetRootAsCharacterStatsTransExcel(ByteBuffer _bb) { return GetRootAsCharacterStatsTransExcel(_bb, new CharacterStatsTransExcel()); } + public static CharacterStatsTransExcel GetRootAsCharacterStatsTransExcel(ByteBuffer _bb, CharacterStatsTransExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatsTransExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StatType TransSupportStats { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + public int TransSupportStatsFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StatTransType StatTransType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StatTransType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatTransType.SpecialTransStat; } } + + public static Offset CreateCharacterStatsTransExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.StatType TransSupportStats = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base, + int TransSupportStatsFactor = 0, + SCHALE.Common.FlatData.StatTransType StatTransType = SCHALE.Common.FlatData.StatTransType.SpecialTransStat) { + builder.StartTable(4); + CharacterStatsTransExcel.AddStatTransType(builder, StatTransType); + CharacterStatsTransExcel.AddTransSupportStatsFactor(builder, TransSupportStatsFactor); + CharacterStatsTransExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + CharacterStatsTransExcel.AddTransSupportStats(builder, TransSupportStats); + return CharacterStatsTransExcel.EndCharacterStatsTransExcel(builder); + } + + public static void StartCharacterStatsTransExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddTransSupportStats(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType transSupportStats) { builder.AddInt(0, (int)transSupportStats, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(1, (int)echelonExtensionType, 0); } + public static void AddTransSupportStatsFactor(FlatBufferBuilder builder, int transSupportStatsFactor) { builder.AddInt(2, transSupportStatsFactor, 0); } + public static void AddStatTransType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatTransType statTransType) { builder.AddInt(3, (int)statTransType, 0); } + public static Offset EndCharacterStatsTransExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatsTransExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*TransSupportStats*/, 4 /*SCHALE.Common.FlatData.StatType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*TransSupportStatsFactor*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*StatTransType*/, 4 /*SCHALE.Common.FlatData.StatTransType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs b/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs new file mode 100644 index 0000000..5d76a82 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterStatsTransExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterStatsTransExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterStatsTransExcelTable GetRootAsCharacterStatsTransExcelTable(ByteBuffer _bb) { return GetRootAsCharacterStatsTransExcelTable(_bb, new CharacterStatsTransExcelTable()); } + public static CharacterStatsTransExcelTable GetRootAsCharacterStatsTransExcelTable(ByteBuffer _bb, CharacterStatsTransExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterStatsTransExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterStatsTransExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterStatsTransExcel?)(new SCHALE.Common.FlatData.CharacterStatsTransExcel()).__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 CreateCharacterStatsTransExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterStatsTransExcelTable.AddDataList(builder, DataListOffset); + return CharacterStatsTransExcelTable.EndCharacterStatsTransExcelTable(builder); + } + + public static void StartCharacterStatsTransExcelTable(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 EndCharacterStatsTransExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterStatsTransExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterStatsTransExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs b/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs new file mode 100644 index 0000000..5fed9b1 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterTranscendenceExcel.cs @@ -0,0 +1,174 @@ +// +// 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 CharacterTranscendenceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterTranscendenceExcel GetRootAsCharacterTranscendenceExcel(ByteBuffer _bb) { return GetRootAsCharacterTranscendenceExcel(_bb, new CharacterTranscendenceExcel()); } + public static CharacterTranscendenceExcel GetRootAsCharacterTranscendenceExcel(ByteBuffer _bb, CharacterTranscendenceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterTranscendenceExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxFavorLevel(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MaxFavorLevelLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMaxFavorLevelBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetMaxFavorLevelBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public int[] GetMaxFavorLevelArray() { return __p.__vector_as_array(6); } + public long StatBonusRateAttack(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatBonusRateAttackLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatBonusRateAttackBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetStatBonusRateAttackBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetStatBonusRateAttackArray() { return __p.__vector_as_array(8); } + public long StatBonusRateHP(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatBonusRateHPLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatBonusRateHPBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetStatBonusRateHPBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetStatBonusRateHPArray() { return __p.__vector_as_array(10); } + public long StatBonusRateHeal(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatBonusRateHealLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatBonusRateHealBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetStatBonusRateHealBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetStatBonusRateHealArray() { return __p.__vector_as_array(12); } + public long RecipeId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RecipeIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRecipeIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRecipeIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRecipeIdArray() { return __p.__vector_as_array(14); } + public string SkillSlotA(int j) { int o = __p.__offset(16); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SkillSlotALength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + public string SkillSlotB(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SkillSlotBLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public int MaxlevelStar(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MaxlevelStarLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMaxlevelStarBytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetMaxlevelStarBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public int[] GetMaxlevelStarArray() { return __p.__vector_as_array(20); } + + public static Offset CreateCharacterTranscendenceExcel(FlatBufferBuilder builder, + long CharacterId = 0, + VectorOffset MaxFavorLevelOffset = default(VectorOffset), + VectorOffset StatBonusRateAttackOffset = default(VectorOffset), + VectorOffset StatBonusRateHPOffset = default(VectorOffset), + VectorOffset StatBonusRateHealOffset = default(VectorOffset), + VectorOffset RecipeIdOffset = default(VectorOffset), + VectorOffset SkillSlotAOffset = default(VectorOffset), + VectorOffset SkillSlotBOffset = default(VectorOffset), + VectorOffset MaxlevelStarOffset = default(VectorOffset)) { + builder.StartTable(9); + CharacterTranscendenceExcel.AddCharacterId(builder, CharacterId); + CharacterTranscendenceExcel.AddMaxlevelStar(builder, MaxlevelStarOffset); + CharacterTranscendenceExcel.AddSkillSlotB(builder, SkillSlotBOffset); + CharacterTranscendenceExcel.AddSkillSlotA(builder, SkillSlotAOffset); + CharacterTranscendenceExcel.AddRecipeId(builder, RecipeIdOffset); + CharacterTranscendenceExcel.AddStatBonusRateHeal(builder, StatBonusRateHealOffset); + CharacterTranscendenceExcel.AddStatBonusRateHP(builder, StatBonusRateHPOffset); + CharacterTranscendenceExcel.AddStatBonusRateAttack(builder, StatBonusRateAttackOffset); + CharacterTranscendenceExcel.AddMaxFavorLevel(builder, MaxFavorLevelOffset); + return CharacterTranscendenceExcel.EndCharacterTranscendenceExcel(builder); + } + + public static void StartCharacterTranscendenceExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddMaxFavorLevel(FlatBufferBuilder builder, VectorOffset maxFavorLevelOffset) { builder.AddOffset(1, maxFavorLevelOffset.Value, 0); } + public static VectorOffset CreateMaxFavorLevelVector(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 CreateMaxFavorLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxFavorLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxFavorLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMaxFavorLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatBonusRateAttack(FlatBufferBuilder builder, VectorOffset statBonusRateAttackOffset) { builder.AddOffset(2, statBonusRateAttackOffset.Value, 0); } + public static VectorOffset CreateStatBonusRateAttackVector(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 CreateStatBonusRateAttackVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateAttackVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateAttackVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatBonusRateAttackVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStatBonusRateHP(FlatBufferBuilder builder, VectorOffset statBonusRateHPOffset) { builder.AddOffset(3, statBonusRateHPOffset.Value, 0); } + public static VectorOffset CreateStatBonusRateHPVector(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 CreateStatBonusRateHPVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateHPVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateHPVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatBonusRateHPVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStatBonusRateHeal(FlatBufferBuilder builder, VectorOffset statBonusRateHealOffset) { builder.AddOffset(4, statBonusRateHealOffset.Value, 0); } + public static VectorOffset CreateStatBonusRateHealVector(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 CreateStatBonusRateHealVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateHealVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatBonusRateHealVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatBonusRateHealVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRecipeId(FlatBufferBuilder builder, VectorOffset recipeIdOffset) { builder.AddOffset(5, recipeIdOffset.Value, 0); } + public static VectorOffset CreateRecipeIdVector(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 CreateRecipeIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRecipeIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRecipeIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRecipeIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSkillSlotA(FlatBufferBuilder builder, VectorOffset skillSlotAOffset) { builder.AddOffset(6, skillSlotAOffset.Value, 0); } + public static VectorOffset CreateSkillSlotAVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotAVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotAVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotAVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSkillSlotAVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSkillSlotB(FlatBufferBuilder builder, VectorOffset skillSlotBOffset) { builder.AddOffset(7, skillSlotBOffset.Value, 0); } + public static VectorOffset CreateSkillSlotBVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotBVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotBVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSkillSlotBVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSkillSlotBVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMaxlevelStar(FlatBufferBuilder builder, VectorOffset maxlevelStarOffset) { builder.AddOffset(8, maxlevelStarOffset.Value, 0); } + public static VectorOffset CreateMaxlevelStarVector(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 CreateMaxlevelStarVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxlevelStarVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxlevelStarVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMaxlevelStarVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCharacterTranscendenceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterTranscendenceExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*MaxFavorLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*StatBonusRateAttack*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*StatBonusRateHP*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*StatBonusRateHeal*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RecipeId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 16 /*SkillSlotA*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*SkillSlotB*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*MaxlevelStar*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs b/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs new file mode 100644 index 0000000..60025c4 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterTranscendenceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterTranscendenceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterTranscendenceExcelTable GetRootAsCharacterTranscendenceExcelTable(ByteBuffer _bb) { return GetRootAsCharacterTranscendenceExcelTable(_bb, new CharacterTranscendenceExcelTable()); } + public static CharacterTranscendenceExcelTable GetRootAsCharacterTranscendenceExcelTable(ByteBuffer _bb, CharacterTranscendenceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterTranscendenceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterTranscendenceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterTranscendenceExcel?)(new SCHALE.Common.FlatData.CharacterTranscendenceExcel()).__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 CreateCharacterTranscendenceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterTranscendenceExcelTable.AddDataList(builder, DataListOffset); + return CharacterTranscendenceExcelTable.EndCharacterTranscendenceExcelTable(builder); + } + + public static void StartCharacterTranscendenceExcelTable(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 EndCharacterTranscendenceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterTranscendenceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterTranscendenceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs new file mode 100644 index 0000000..a3d9395 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcel.cs @@ -0,0 +1,242 @@ +// +// 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 CharacterVictoryInteractionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterVictoryInteractionExcel GetRootAsCharacterVictoryInteractionExcel(ByteBuffer _bb) { return GetRootAsCharacterVictoryInteractionExcel(_bb, new CharacterVictoryInteractionExcel()); } + public static CharacterVictoryInteractionExcel GetRootAsCharacterVictoryInteractionExcel(ByteBuffer _bb, CharacterVictoryInteractionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterVictoryInteractionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long InteractionId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CostumeId01 { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex01 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath01 { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath01Bytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath01Bytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetVictoryStartAnimationPath01Array() { return __p.__vector_as_array(10); } + public string VictoryEndAnimationPath01 { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath01Bytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath01Bytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetVictoryEndAnimationPath01Array() { return __p.__vector_as_array(12); } + public long CostumeId02 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex02 { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath02 { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath02Bytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath02Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetVictoryStartAnimationPath02Array() { return __p.__vector_as_array(18); } + public string VictoryEndAnimationPath02 { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath02Bytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath02Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetVictoryEndAnimationPath02Array() { return __p.__vector_as_array(20); } + public long CostumeId03 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex03 { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath03 { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath03Bytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath03Bytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetVictoryStartAnimationPath03Array() { return __p.__vector_as_array(26); } + public string VictoryEndAnimationPath03 { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath03Bytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath03Bytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetVictoryEndAnimationPath03Array() { return __p.__vector_as_array(28); } + public long CostumeId04 { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex04 { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath04 { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath04Bytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath04Bytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetVictoryStartAnimationPath04Array() { return __p.__vector_as_array(34); } + public string VictoryEndAnimationPath04 { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath04Bytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath04Bytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetVictoryEndAnimationPath04Array() { return __p.__vector_as_array(36); } + public long CostumeId05 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex05 { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath05 { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath05Bytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath05Bytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetVictoryStartAnimationPath05Array() { return __p.__vector_as_array(42); } + public string VictoryEndAnimationPath05 { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath05Bytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath05Bytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetVictoryEndAnimationPath05Array() { return __p.__vector_as_array(44); } + public long CostumeId06 { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PositionIndex06 { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string VictoryStartAnimationPath06 { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryStartAnimationPath06Bytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetVictoryStartAnimationPath06Bytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetVictoryStartAnimationPath06Array() { return __p.__vector_as_array(50); } + public string VictoryEndAnimationPath06 { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryEndAnimationPath06Bytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetVictoryEndAnimationPath06Bytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetVictoryEndAnimationPath06Array() { return __p.__vector_as_array(52); } + + public static Offset CreateCharacterVictoryInteractionExcel(FlatBufferBuilder builder, + long InteractionId = 0, + long CostumeId01 = 0, + int PositionIndex01 = 0, + StringOffset VictoryStartAnimationPath01Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath01Offset = default(StringOffset), + long CostumeId02 = 0, + int PositionIndex02 = 0, + StringOffset VictoryStartAnimationPath02Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath02Offset = default(StringOffset), + long CostumeId03 = 0, + int PositionIndex03 = 0, + StringOffset VictoryStartAnimationPath03Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath03Offset = default(StringOffset), + long CostumeId04 = 0, + int PositionIndex04 = 0, + StringOffset VictoryStartAnimationPath04Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath04Offset = default(StringOffset), + long CostumeId05 = 0, + int PositionIndex05 = 0, + StringOffset VictoryStartAnimationPath05Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath05Offset = default(StringOffset), + long CostumeId06 = 0, + int PositionIndex06 = 0, + StringOffset VictoryStartAnimationPath06Offset = default(StringOffset), + StringOffset VictoryEndAnimationPath06Offset = default(StringOffset)) { + builder.StartTable(25); + CharacterVictoryInteractionExcel.AddCostumeId06(builder, CostumeId06); + CharacterVictoryInteractionExcel.AddCostumeId05(builder, CostumeId05); + CharacterVictoryInteractionExcel.AddCostumeId04(builder, CostumeId04); + CharacterVictoryInteractionExcel.AddCostumeId03(builder, CostumeId03); + CharacterVictoryInteractionExcel.AddCostumeId02(builder, CostumeId02); + CharacterVictoryInteractionExcel.AddCostumeId01(builder, CostumeId01); + CharacterVictoryInteractionExcel.AddInteractionId(builder, InteractionId); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath06(builder, VictoryEndAnimationPath06Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath06(builder, VictoryStartAnimationPath06Offset); + CharacterVictoryInteractionExcel.AddPositionIndex06(builder, PositionIndex06); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath05(builder, VictoryEndAnimationPath05Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath05(builder, VictoryStartAnimationPath05Offset); + CharacterVictoryInteractionExcel.AddPositionIndex05(builder, PositionIndex05); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath04(builder, VictoryEndAnimationPath04Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath04(builder, VictoryStartAnimationPath04Offset); + CharacterVictoryInteractionExcel.AddPositionIndex04(builder, PositionIndex04); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath03(builder, VictoryEndAnimationPath03Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath03(builder, VictoryStartAnimationPath03Offset); + CharacterVictoryInteractionExcel.AddPositionIndex03(builder, PositionIndex03); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath02(builder, VictoryEndAnimationPath02Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath02(builder, VictoryStartAnimationPath02Offset); + CharacterVictoryInteractionExcel.AddPositionIndex02(builder, PositionIndex02); + CharacterVictoryInteractionExcel.AddVictoryEndAnimationPath01(builder, VictoryEndAnimationPath01Offset); + CharacterVictoryInteractionExcel.AddVictoryStartAnimationPath01(builder, VictoryStartAnimationPath01Offset); + CharacterVictoryInteractionExcel.AddPositionIndex01(builder, PositionIndex01); + return CharacterVictoryInteractionExcel.EndCharacterVictoryInteractionExcel(builder); + } + + public static void StartCharacterVictoryInteractionExcel(FlatBufferBuilder builder) { builder.StartTable(25); } + public static void AddInteractionId(FlatBufferBuilder builder, long interactionId) { builder.AddLong(0, interactionId, 0); } + public static void AddCostumeId01(FlatBufferBuilder builder, long costumeId01) { builder.AddLong(1, costumeId01, 0); } + public static void AddPositionIndex01(FlatBufferBuilder builder, int positionIndex01) { builder.AddInt(2, positionIndex01, 0); } + public static void AddVictoryStartAnimationPath01(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath01Offset) { builder.AddOffset(3, victoryStartAnimationPath01Offset.Value, 0); } + public static void AddVictoryEndAnimationPath01(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath01Offset) { builder.AddOffset(4, victoryEndAnimationPath01Offset.Value, 0); } + public static void AddCostumeId02(FlatBufferBuilder builder, long costumeId02) { builder.AddLong(5, costumeId02, 0); } + public static void AddPositionIndex02(FlatBufferBuilder builder, int positionIndex02) { builder.AddInt(6, positionIndex02, 0); } + public static void AddVictoryStartAnimationPath02(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath02Offset) { builder.AddOffset(7, victoryStartAnimationPath02Offset.Value, 0); } + public static void AddVictoryEndAnimationPath02(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath02Offset) { builder.AddOffset(8, victoryEndAnimationPath02Offset.Value, 0); } + public static void AddCostumeId03(FlatBufferBuilder builder, long costumeId03) { builder.AddLong(9, costumeId03, 0); } + public static void AddPositionIndex03(FlatBufferBuilder builder, int positionIndex03) { builder.AddInt(10, positionIndex03, 0); } + public static void AddVictoryStartAnimationPath03(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath03Offset) { builder.AddOffset(11, victoryStartAnimationPath03Offset.Value, 0); } + public static void AddVictoryEndAnimationPath03(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath03Offset) { builder.AddOffset(12, victoryEndAnimationPath03Offset.Value, 0); } + public static void AddCostumeId04(FlatBufferBuilder builder, long costumeId04) { builder.AddLong(13, costumeId04, 0); } + public static void AddPositionIndex04(FlatBufferBuilder builder, int positionIndex04) { builder.AddInt(14, positionIndex04, 0); } + public static void AddVictoryStartAnimationPath04(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath04Offset) { builder.AddOffset(15, victoryStartAnimationPath04Offset.Value, 0); } + public static void AddVictoryEndAnimationPath04(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath04Offset) { builder.AddOffset(16, victoryEndAnimationPath04Offset.Value, 0); } + public static void AddCostumeId05(FlatBufferBuilder builder, long costumeId05) { builder.AddLong(17, costumeId05, 0); } + public static void AddPositionIndex05(FlatBufferBuilder builder, int positionIndex05) { builder.AddInt(18, positionIndex05, 0); } + public static void AddVictoryStartAnimationPath05(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath05Offset) { builder.AddOffset(19, victoryStartAnimationPath05Offset.Value, 0); } + public static void AddVictoryEndAnimationPath05(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath05Offset) { builder.AddOffset(20, victoryEndAnimationPath05Offset.Value, 0); } + public static void AddCostumeId06(FlatBufferBuilder builder, long costumeId06) { builder.AddLong(21, costumeId06, 0); } + public static void AddPositionIndex06(FlatBufferBuilder builder, int positionIndex06) { builder.AddInt(22, positionIndex06, 0); } + public static void AddVictoryStartAnimationPath06(FlatBufferBuilder builder, StringOffset victoryStartAnimationPath06Offset) { builder.AddOffset(23, victoryStartAnimationPath06Offset.Value, 0); } + public static void AddVictoryEndAnimationPath06(FlatBufferBuilder builder, StringOffset victoryEndAnimationPath06Offset) { builder.AddOffset(24, victoryEndAnimationPath06Offset.Value, 0); } + public static Offset EndCharacterVictoryInteractionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterVictoryInteractionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*InteractionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*CostumeId01*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*PositionIndex01*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*VictoryStartAnimationPath01*/, false) + && verifier.VerifyString(tablePos, 12 /*VictoryEndAnimationPath01*/, false) + && verifier.VerifyField(tablePos, 14 /*CostumeId02*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*PositionIndex02*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*VictoryStartAnimationPath02*/, false) + && verifier.VerifyString(tablePos, 20 /*VictoryEndAnimationPath02*/, false) + && verifier.VerifyField(tablePos, 22 /*CostumeId03*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*PositionIndex03*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*VictoryStartAnimationPath03*/, false) + && verifier.VerifyString(tablePos, 28 /*VictoryEndAnimationPath03*/, false) + && verifier.VerifyField(tablePos, 30 /*CostumeId04*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*PositionIndex04*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 34 /*VictoryStartAnimationPath04*/, false) + && verifier.VerifyString(tablePos, 36 /*VictoryEndAnimationPath04*/, false) + && verifier.VerifyField(tablePos, 38 /*CostumeId05*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*PositionIndex05*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 42 /*VictoryStartAnimationPath05*/, false) + && verifier.VerifyString(tablePos, 44 /*VictoryEndAnimationPath05*/, false) + && verifier.VerifyField(tablePos, 46 /*CostumeId06*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*PositionIndex06*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 50 /*VictoryStartAnimationPath06*/, false) + && verifier.VerifyString(tablePos, 52 /*VictoryEndAnimationPath06*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs new file mode 100644 index 0000000..f3d021d --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterVictoryInteractionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterVictoryInteractionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterVictoryInteractionExcelTable GetRootAsCharacterVictoryInteractionExcelTable(ByteBuffer _bb) { return GetRootAsCharacterVictoryInteractionExcelTable(_bb, new CharacterVictoryInteractionExcelTable()); } + public static CharacterVictoryInteractionExcelTable GetRootAsCharacterVictoryInteractionExcelTable(ByteBuffer _bb, CharacterVictoryInteractionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterVictoryInteractionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterVictoryInteractionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterVictoryInteractionExcel?)(new SCHALE.Common.FlatData.CharacterVictoryInteractionExcel()).__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 CreateCharacterVictoryInteractionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterVictoryInteractionExcelTable.AddDataList(builder, DataListOffset); + return CharacterVictoryInteractionExcelTable.EndCharacterVictoryInteractionExcelTable(builder); + } + + public static void StartCharacterVictoryInteractionExcelTable(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 EndCharacterVictoryInteractionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterVictoryInteractionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterVictoryInteractionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterVoiceExcel.cs b/SCHALE.Common/FlatData/CharacterVoiceExcel.cs new file mode 100644 index 0000000..6d7935a --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterVoiceExcel.cs @@ -0,0 +1,163 @@ +// +// 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 CharacterVoiceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterVoiceExcel GetRootAsCharacterVoiceExcel(ByteBuffer _bb) { return GetRootAsCharacterVoiceExcel(_bb, new CharacterVoiceExcel()); } + public static CharacterVoiceExcel GetRootAsCharacterVoiceExcel(ByteBuffer _bb, CharacterVoiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterVoiceExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterVoiceUniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterVoiceGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint VoiceHash { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool OnlyOne { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int Priority { 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 bool CollectionVisible { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } } + public long UnlockFavorRank { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string LocalizeCVGroup { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCVGroupBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array(22); } + public SCHALE.Common.FlatData.Nation Nation_(int j) { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Nation)0; } + public int Nation_Length { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNation_Bytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetNation_Bytes() { return __p.__vector_as_arraysegment(24); } +#endif + public SCHALE.Common.FlatData.Nation[] GetNation_Array() { int o = __p.__offset(24); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Nation[] a = new SCHALE.Common.FlatData.Nation[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(p + i * 4); } return a; } + public float Volume(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int VolumeLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVolumeBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetVolumeBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public float[] GetVolumeArray() { return __p.__vector_as_array(26); } + public float Delay(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int DelayLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDelayBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetDelayBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public float[] GetDelayArray() { return __p.__vector_as_array(28); } + public string Path(int j) { int o = __p.__offset(30); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PathLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateCharacterVoiceExcel(FlatBufferBuilder builder, + long CharacterVoiceUniqueId = 0, + long CharacterVoiceGroupId = 0, + uint VoiceHash = 0, + bool OnlyOne = false, + int Priority = 0, + long DisplayOrder = 0, + bool CollectionVisible = false, + SCHALE.Common.FlatData.CVCollectionType CVCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal, + long UnlockFavorRank = 0, + StringOffset LocalizeCVGroupOffset = default(StringOffset), + VectorOffset Nation_Offset = default(VectorOffset), + VectorOffset VolumeOffset = default(VectorOffset), + VectorOffset DelayOffset = default(VectorOffset), + VectorOffset PathOffset = default(VectorOffset)) { + builder.StartTable(14); + CharacterVoiceExcel.AddUnlockFavorRank(builder, UnlockFavorRank); + CharacterVoiceExcel.AddDisplayOrder(builder, DisplayOrder); + CharacterVoiceExcel.AddCharacterVoiceGroupId(builder, CharacterVoiceGroupId); + CharacterVoiceExcel.AddCharacterVoiceUniqueId(builder, CharacterVoiceUniqueId); + CharacterVoiceExcel.AddPath(builder, PathOffset); + CharacterVoiceExcel.AddDelay(builder, DelayOffset); + CharacterVoiceExcel.AddVolume(builder, VolumeOffset); + CharacterVoiceExcel.AddNation_(builder, Nation_Offset); + CharacterVoiceExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset); + CharacterVoiceExcel.AddCVCollectionType(builder, CVCollectionType); + CharacterVoiceExcel.AddPriority(builder, Priority); + CharacterVoiceExcel.AddVoiceHash(builder, VoiceHash); + CharacterVoiceExcel.AddCollectionVisible(builder, CollectionVisible); + CharacterVoiceExcel.AddOnlyOne(builder, OnlyOne); + return CharacterVoiceExcel.EndCharacterVoiceExcel(builder); + } + + public static void StartCharacterVoiceExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddCharacterVoiceUniqueId(FlatBufferBuilder builder, long characterVoiceUniqueId) { builder.AddLong(0, characterVoiceUniqueId, 0); } + public static void AddCharacterVoiceGroupId(FlatBufferBuilder builder, long characterVoiceGroupId) { builder.AddLong(1, characterVoiceGroupId, 0); } + public static void AddVoiceHash(FlatBufferBuilder builder, uint voiceHash) { builder.AddUint(2, voiceHash, 0); } + public static void AddOnlyOne(FlatBufferBuilder builder, bool onlyOne) { builder.AddBool(3, onlyOne, false); } + public static void AddPriority(FlatBufferBuilder builder, int priority) { builder.AddInt(4, priority, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(5, displayOrder, 0); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(6, collectionVisible, false); } + public static void AddCVCollectionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cVCollectionType) { builder.AddInt(7, (int)cVCollectionType, 0); } + public static void AddUnlockFavorRank(FlatBufferBuilder builder, long unlockFavorRank) { builder.AddLong(8, unlockFavorRank, 0); } + public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(9, localizeCVGroupOffset.Value, 0); } + public static void AddNation_(FlatBufferBuilder builder, VectorOffset nation_Offset) { builder.AddOffset(10, nation_Offset.Value, 0); } + public static VectorOffset CreateNation_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] 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 CreateNation_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNation_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVolume(FlatBufferBuilder builder, VectorOffset volumeOffset) { builder.AddOffset(11, volumeOffset.Value, 0); } + public static VectorOffset CreateVolumeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVolumeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddDelay(FlatBufferBuilder builder, VectorOffset delayOffset) { builder.AddOffset(12, delayOffset.Value, 0); } + public static VectorOffset CreateDelayVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDelayVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDelayVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDelayVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDelayVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPath(FlatBufferBuilder builder, VectorOffset pathOffset) { builder.AddOffset(13, pathOffset.Value, 0); } + public static VectorOffset CreatePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndCharacterVoiceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterVoiceExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterVoiceUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*CharacterVoiceGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*VoiceHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*OnlyOne*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*Priority*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*CVCollectionType*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*UnlockFavorRank*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 22 /*LocalizeCVGroup*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*Nation_*/, 4 /*SCHALE.Common.FlatData.Nation*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*Volume*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*Delay*/, 4 /*float*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 30 /*Path*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponExcel.cs new file mode 100644 index 0000000..078d5dc --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponExcel.cs @@ -0,0 +1,197 @@ +// +// 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 CharacterWeaponExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponExcel GetRootAsCharacterWeaponExcel(ByteBuffer _bb) { return GetRootAsCharacterWeaponExcel(_bb, new CharacterWeaponExcel()); } + public static CharacterWeaponExcel GetRootAsCharacterWeaponExcel(ByteBuffer _bb, CharacterWeaponExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponExcel __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 string ImagePath { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(6); } + public long SetRecipe { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } + public long AttackPower { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackPower100 { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHP { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHP100 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HealPower { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HealPower100 { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool Unlock(int j) { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int UnlockLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetUnlockBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetUnlockBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public bool[] GetUnlockArray() { return __p.__vector_as_array(24); } + public long RecipeId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RecipeIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRecipeIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetRecipeIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetRecipeIdArray() { return __p.__vector_as_array(26); } + public int MaxLevel(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MaxLevelLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMaxLevelBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetMaxLevelBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public int[] GetMaxLevelArray() { return __p.__vector_as_array(28); } + public string LearnSkillSlot(int j) { int o = __p.__offset(30); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int LearnSkillSlotLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.EquipmentOptionType StatType(int j) { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentOptionType)0; } + public int StatTypeLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatTypeBytes() { return __p.__vector_as_span(32, 4); } +#else + public ArraySegment? GetStatTypeBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public SCHALE.Common.FlatData.EquipmentOptionType[] GetStatTypeArray() { int o = __p.__offset(32); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentOptionType[] a = new SCHALE.Common.FlatData.EquipmentOptionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(p + i * 4); } return a; } + public long StatValue(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatValueLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatValueBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetStatValueBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetStatValueArray() { return __p.__vector_as_array(34); } + + public static Offset CreateCharacterWeaponExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset ImagePathOffset = default(StringOffset), + long SetRecipe = 0, + SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard, + long AttackPower = 0, + long AttackPower100 = 0, + long MaxHP = 0, + long MaxHP100 = 0, + long HealPower = 0, + long HealPower100 = 0, + VectorOffset UnlockOffset = default(VectorOffset), + VectorOffset RecipeIdOffset = default(VectorOffset), + VectorOffset MaxLevelOffset = default(VectorOffset), + VectorOffset LearnSkillSlotOffset = default(VectorOffset), + VectorOffset StatTypeOffset = default(VectorOffset), + VectorOffset StatValueOffset = default(VectorOffset)) { + builder.StartTable(16); + CharacterWeaponExcel.AddHealPower100(builder, HealPower100); + CharacterWeaponExcel.AddHealPower(builder, HealPower); + CharacterWeaponExcel.AddMaxHP100(builder, MaxHP100); + CharacterWeaponExcel.AddMaxHP(builder, MaxHP); + CharacterWeaponExcel.AddAttackPower100(builder, AttackPower100); + CharacterWeaponExcel.AddAttackPower(builder, AttackPower); + CharacterWeaponExcel.AddSetRecipe(builder, SetRecipe); + CharacterWeaponExcel.AddId(builder, Id); + CharacterWeaponExcel.AddStatValue(builder, StatValueOffset); + CharacterWeaponExcel.AddStatType(builder, StatTypeOffset); + CharacterWeaponExcel.AddLearnSkillSlot(builder, LearnSkillSlotOffset); + CharacterWeaponExcel.AddMaxLevel(builder, MaxLevelOffset); + CharacterWeaponExcel.AddRecipeId(builder, RecipeIdOffset); + CharacterWeaponExcel.AddUnlock(builder, UnlockOffset); + CharacterWeaponExcel.AddStatLevelUpType(builder, StatLevelUpType); + CharacterWeaponExcel.AddImagePath(builder, ImagePathOffset); + return CharacterWeaponExcel.EndCharacterWeaponExcel(builder); + } + + public static void StartCharacterWeaponExcel(FlatBufferBuilder builder) { builder.StartTable(16); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(1, imagePathOffset.Value, 0); } + public static void AddSetRecipe(FlatBufferBuilder builder, long setRecipe) { builder.AddLong(2, setRecipe, 0); } + public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(3, (int)statLevelUpType, 0); } + public static void AddAttackPower(FlatBufferBuilder builder, long attackPower) { builder.AddLong(4, attackPower, 0); } + public static void AddAttackPower100(FlatBufferBuilder builder, long attackPower100) { builder.AddLong(5, attackPower100, 0); } + public static void AddMaxHP(FlatBufferBuilder builder, long maxHP) { builder.AddLong(6, maxHP, 0); } + public static void AddMaxHP100(FlatBufferBuilder builder, long maxHP100) { builder.AddLong(7, maxHP100, 0); } + public static void AddHealPower(FlatBufferBuilder builder, long healPower) { builder.AddLong(8, healPower, 0); } + public static void AddHealPower100(FlatBufferBuilder builder, long healPower100) { builder.AddLong(9, healPower100, 0); } + public static void AddUnlock(FlatBufferBuilder builder, VectorOffset unlockOffset) { builder.AddOffset(10, unlockOffset.Value, 0); } + public static VectorOffset CreateUnlockVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateUnlockVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnlockVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnlockVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUnlockVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddRecipeId(FlatBufferBuilder builder, VectorOffset recipeIdOffset) { builder.AddOffset(11, recipeIdOffset.Value, 0); } + public static VectorOffset CreateRecipeIdVector(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 CreateRecipeIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRecipeIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRecipeIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRecipeIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMaxLevel(FlatBufferBuilder builder, VectorOffset maxLevelOffset) { builder.AddOffset(12, maxLevelOffset.Value, 0); } + public static VectorOffset CreateMaxLevelVector(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 CreateMaxLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMaxLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLearnSkillSlot(FlatBufferBuilder builder, VectorOffset learnSkillSlotOffset) { builder.AddOffset(13, learnSkillSlotOffset.Value, 0); } + public static VectorOffset CreateLearnSkillSlotVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateLearnSkillSlotVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLearnSkillSlotVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLearnSkillSlotVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLearnSkillSlotVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatType(FlatBufferBuilder builder, VectorOffset statTypeOffset) { builder.AddOffset(14, statTypeOffset.Value, 0); } + public static VectorOffset CreateStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] 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 CreateStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatValue(FlatBufferBuilder builder, VectorOffset statValueOffset) { builder.AddOffset(15, statValueOffset.Value, 0); } + public static VectorOffset CreateStatValueVector(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 CreateStatValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndCharacterWeaponExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*ImagePath*/, false) + && verifier.VerifyField(tablePos, 8 /*SetRecipe*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*AttackPower*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*AttackPower100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*MaxHP*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*MaxHP100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*HealPower*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*HealPower100*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*Unlock*/, 1 /*bool*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*RecipeId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*MaxLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 30 /*LearnSkillSlot*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*StatType*/, 4 /*SCHALE.Common.FlatData.EquipmentOptionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*StatValue*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs new file mode 100644 index 0000000..41db1d7 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterWeaponExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponExcelTable GetRootAsCharacterWeaponExcelTable(ByteBuffer _bb) { return GetRootAsCharacterWeaponExcelTable(_bb, new CharacterWeaponExcelTable()); } + public static CharacterWeaponExcelTable GetRootAsCharacterWeaponExcelTable(ByteBuffer _bb, CharacterWeaponExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterWeaponExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterWeaponExcel?)(new SCHALE.Common.FlatData.CharacterWeaponExcel()).__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 CreateCharacterWeaponExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterWeaponExcelTable.AddDataList(builder, DataListOffset); + return CharacterWeaponExcelTable.EndCharacterWeaponExcelTable(builder); + } + + public static void StartCharacterWeaponExcelTable(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 EndCharacterWeaponExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterWeaponExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs new file mode 100644 index 0000000..de4b7e0 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs @@ -0,0 +1,70 @@ +// +// 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 CharacterWeaponExpBonusExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponExpBonusExcel GetRootAsCharacterWeaponExpBonusExcel(ByteBuffer _bb) { return GetRootAsCharacterWeaponExpBonusExcel(_bb, new CharacterWeaponExpBonusExcel()); } + public static CharacterWeaponExpBonusExcel GetRootAsCharacterWeaponExpBonusExcel(ByteBuffer _bb, CharacterWeaponExpBonusExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponExpBonusExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeaponType WeaponType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } + public int WeaponExpGrowthA { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeaponExpGrowthB { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeaponExpGrowthC { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeaponExpGrowthZ { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateCharacterWeaponExpBonusExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.WeaponType WeaponType = SCHALE.Common.FlatData.WeaponType.None, + int WeaponExpGrowthA = 0, + int WeaponExpGrowthB = 0, + int WeaponExpGrowthC = 0, + int WeaponExpGrowthZ = 0) { + builder.StartTable(5); + CharacterWeaponExpBonusExcel.AddWeaponExpGrowthZ(builder, WeaponExpGrowthZ); + CharacterWeaponExpBonusExcel.AddWeaponExpGrowthC(builder, WeaponExpGrowthC); + CharacterWeaponExpBonusExcel.AddWeaponExpGrowthB(builder, WeaponExpGrowthB); + CharacterWeaponExpBonusExcel.AddWeaponExpGrowthA(builder, WeaponExpGrowthA); + CharacterWeaponExpBonusExcel.AddWeaponType(builder, WeaponType); + return CharacterWeaponExpBonusExcel.EndCharacterWeaponExpBonusExcel(builder); + } + + public static void StartCharacterWeaponExpBonusExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddWeaponType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeaponType weaponType) { builder.AddInt(0, (int)weaponType, 0); } + public static void AddWeaponExpGrowthA(FlatBufferBuilder builder, int weaponExpGrowthA) { builder.AddInt(1, weaponExpGrowthA, 0); } + public static void AddWeaponExpGrowthB(FlatBufferBuilder builder, int weaponExpGrowthB) { builder.AddInt(2, weaponExpGrowthB, 0); } + public static void AddWeaponExpGrowthC(FlatBufferBuilder builder, int weaponExpGrowthC) { builder.AddInt(3, weaponExpGrowthC, 0); } + public static void AddWeaponExpGrowthZ(FlatBufferBuilder builder, int weaponExpGrowthZ) { builder.AddInt(4, weaponExpGrowthZ, 0); } + public static Offset EndCharacterWeaponExpBonusExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponExpBonusExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*WeaponType*/, 4 /*SCHALE.Common.FlatData.WeaponType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*WeaponExpGrowthA*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*WeaponExpGrowthB*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*WeaponExpGrowthC*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*WeaponExpGrowthZ*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs new file mode 100644 index 0000000..b1b1597 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterWeaponExpBonusExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponExpBonusExcelTable GetRootAsCharacterWeaponExpBonusExcelTable(ByteBuffer _bb) { return GetRootAsCharacterWeaponExpBonusExcelTable(_bb, new CharacterWeaponExpBonusExcelTable()); } + public static CharacterWeaponExpBonusExcelTable GetRootAsCharacterWeaponExpBonusExcelTable(ByteBuffer _bb, CharacterWeaponExpBonusExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponExpBonusExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterWeaponExpBonusExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterWeaponExpBonusExcel?)(new SCHALE.Common.FlatData.CharacterWeaponExpBonusExcel()).__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 CreateCharacterWeaponExpBonusExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterWeaponExpBonusExcelTable.AddDataList(builder, DataListOffset); + return CharacterWeaponExpBonusExcelTable.EndCharacterWeaponExpBonusExcelTable(builder); + } + + public static void StartCharacterWeaponExpBonusExcelTable(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 EndCharacterWeaponExpBonusExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponExpBonusExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterWeaponExpBonusExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs new file mode 100644 index 0000000..96b1ff3 --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponLevelExcel.cs @@ -0,0 +1,60 @@ +// +// 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 CharacterWeaponLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponLevelExcel GetRootAsCharacterWeaponLevelExcel(ByteBuffer _bb) { return GetRootAsCharacterWeaponLevelExcel(_bb, new CharacterWeaponLevelExcel()); } + public static CharacterWeaponLevelExcel GetRootAsCharacterWeaponLevelExcel(ByteBuffer _bb, CharacterWeaponLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Exp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TotalExp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCharacterWeaponLevelExcel(FlatBufferBuilder builder, + int Level = 0, + long Exp = 0, + long TotalExp = 0) { + builder.StartTable(3); + CharacterWeaponLevelExcel.AddTotalExp(builder, TotalExp); + CharacterWeaponLevelExcel.AddExp(builder, Exp); + CharacterWeaponLevelExcel.AddLevel(builder, Level); + return CharacterWeaponLevelExcel.EndCharacterWeaponLevelExcel(builder); + } + + public static void StartCharacterWeaponLevelExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); } + public static void AddExp(FlatBufferBuilder builder, long exp) { builder.AddLong(1, exp, 0); } + public static void AddTotalExp(FlatBufferBuilder builder, long totalExp) { builder.AddLong(2, totalExp, 0); } + public static Offset EndCharacterWeaponLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Exp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*TotalExp*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs new file mode 100644 index 0000000..0ee1bfa --- /dev/null +++ b/SCHALE.Common/FlatData/CharacterWeaponLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CharacterWeaponLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterWeaponLevelExcelTable GetRootAsCharacterWeaponLevelExcelTable(ByteBuffer _bb) { return GetRootAsCharacterWeaponLevelExcelTable(_bb, new CharacterWeaponLevelExcelTable()); } + public static CharacterWeaponLevelExcelTable GetRootAsCharacterWeaponLevelExcelTable(ByteBuffer _bb, CharacterWeaponLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterWeaponLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CharacterWeaponLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterWeaponLevelExcel?)(new SCHALE.Common.FlatData.CharacterWeaponLevelExcel()).__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 CreateCharacterWeaponLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CharacterWeaponLevelExcelTable.AddDataList(builder, DataListOffset); + return CharacterWeaponLevelExcelTable.EndCharacterWeaponLevelExcelTable(builder); + } + + public static void StartCharacterWeaponLevelExcelTable(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 EndCharacterWeaponLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CharacterWeaponLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterWeaponLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs new file mode 100644 index 0000000..9ccf8fa --- /dev/null +++ b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs @@ -0,0 +1,80 @@ +// +// 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 ClanAssistSlotExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClanAssistSlotExcel GetRootAsClanAssistSlotExcel(ByteBuffer _bb) { return GetRootAsClanAssistSlotExcel(_bb, new ClanAssistSlotExcel()); } + public static ClanAssistSlotExcel GetRootAsClanAssistSlotExcel(ByteBuffer _bb, ClanAssistSlotExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClanAssistSlotExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SlotId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EchelonType EchelonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } + public long SlotNumber { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AssistTermRewardPeriodFromSec { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AssistRewardLimit { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AssistRentRewardDailyMaxCount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AssistRentalFeeAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateClanAssistSlotExcel(FlatBufferBuilder builder, + long SlotId = 0, + SCHALE.Common.FlatData.EchelonType EchelonType = SCHALE.Common.FlatData.EchelonType.None, + long SlotNumber = 0, + long AssistTermRewardPeriodFromSec = 0, + long AssistRewardLimit = 0, + long AssistRentRewardDailyMaxCount = 0, + long AssistRentalFeeAmount = 0) { + builder.StartTable(7); + ClanAssistSlotExcel.AddAssistRentalFeeAmount(builder, AssistRentalFeeAmount); + ClanAssistSlotExcel.AddAssistRentRewardDailyMaxCount(builder, AssistRentRewardDailyMaxCount); + ClanAssistSlotExcel.AddAssistRewardLimit(builder, AssistRewardLimit); + ClanAssistSlotExcel.AddAssistTermRewardPeriodFromSec(builder, AssistTermRewardPeriodFromSec); + ClanAssistSlotExcel.AddSlotNumber(builder, SlotNumber); + ClanAssistSlotExcel.AddSlotId(builder, SlotId); + ClanAssistSlotExcel.AddEchelonType(builder, EchelonType); + return ClanAssistSlotExcel.EndClanAssistSlotExcel(builder); + } + + public static void StartClanAssistSlotExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddSlotId(FlatBufferBuilder builder, long slotId) { builder.AddLong(0, slotId, 0); } + public static void AddEchelonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonType echelonType) { builder.AddInt(1, (int)echelonType, 0); } + public static void AddSlotNumber(FlatBufferBuilder builder, long slotNumber) { builder.AddLong(2, slotNumber, 0); } + public static void AddAssistTermRewardPeriodFromSec(FlatBufferBuilder builder, long assistTermRewardPeriodFromSec) { builder.AddLong(3, assistTermRewardPeriodFromSec, 0); } + public static void AddAssistRewardLimit(FlatBufferBuilder builder, long assistRewardLimit) { builder.AddLong(4, assistRewardLimit, 0); } + public static void AddAssistRentRewardDailyMaxCount(FlatBufferBuilder builder, long assistRentRewardDailyMaxCount) { builder.AddLong(5, assistRentRewardDailyMaxCount, 0); } + public static void AddAssistRentalFeeAmount(FlatBufferBuilder builder, long assistRentalFeeAmount) { builder.AddLong(6, assistRentalFeeAmount, 0); } + public static Offset EndClanAssistSlotExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClanAssistSlotExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SlotId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EchelonType*/, 4 /*SCHALE.Common.FlatData.EchelonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*SlotNumber*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*AssistTermRewardPeriodFromSec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AssistRewardLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*AssistRentRewardDailyMaxCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*AssistRentalFeeAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs new file mode 100644 index 0000000..19e4fd1 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ClanAssistSlotExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClanAssistSlotExcelTable GetRootAsClanAssistSlotExcelTable(ByteBuffer _bb) { return GetRootAsClanAssistSlotExcelTable(_bb, new ClanAssistSlotExcelTable()); } + public static ClanAssistSlotExcelTable GetRootAsClanAssistSlotExcelTable(ByteBuffer _bb, ClanAssistSlotExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClanAssistSlotExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ClanAssistSlotExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanAssistSlotExcel?)(new SCHALE.Common.FlatData.ClanAssistSlotExcel()).__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 CreateClanAssistSlotExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ClanAssistSlotExcelTable.AddDataList(builder, DataListOffset); + return ClanAssistSlotExcelTable.EndClanAssistSlotExcelTable(builder); + } + + public static void StartClanAssistSlotExcelTable(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 EndClanAssistSlotExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClanAssistSlotExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClanAssistSlotExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs b/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs new file mode 100644 index 0000000..b10f57e --- /dev/null +++ b/SCHALE.Common/FlatData/ClanChattingEmojiExcel.cs @@ -0,0 +1,82 @@ +// +// 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 ClanChattingEmojiExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClanChattingEmojiExcel GetRootAsClanChattingEmojiExcel(ByteBuffer _bb) { return GetRootAsClanChattingEmojiExcel(_bb, new ClanChattingEmojiExcel()); } + public static ClanChattingEmojiExcel GetRootAsClanChattingEmojiExcel(ByteBuffer _bb, ClanChattingEmojiExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClanChattingEmojiExcel __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 int TabGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string ImagePathKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathKrBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImagePathKrBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImagePathKrArray() { return __p.__vector_as_array(10); } + public string ImagePathJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetImagePathJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetImagePathJpArray() { return __p.__vector_as_array(12); } + + public static Offset CreateClanChattingEmojiExcel(FlatBufferBuilder builder, + long Id = 0, + int TabGroupId = 0, + int DisplayOrder = 0, + StringOffset ImagePathKrOffset = default(StringOffset), + StringOffset ImagePathJpOffset = default(StringOffset)) { + builder.StartTable(5); + ClanChattingEmojiExcel.AddId(builder, Id); + ClanChattingEmojiExcel.AddImagePathJp(builder, ImagePathJpOffset); + ClanChattingEmojiExcel.AddImagePathKr(builder, ImagePathKrOffset); + ClanChattingEmojiExcel.AddDisplayOrder(builder, DisplayOrder); + ClanChattingEmojiExcel.AddTabGroupId(builder, TabGroupId); + return ClanChattingEmojiExcel.EndClanChattingEmojiExcel(builder); + } + + public static void StartClanChattingEmojiExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTabGroupId(FlatBufferBuilder builder, int tabGroupId) { builder.AddInt(1, tabGroupId, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(2, displayOrder, 0); } + public static void AddImagePathKr(FlatBufferBuilder builder, StringOffset imagePathKrOffset) { builder.AddOffset(3, imagePathKrOffset.Value, 0); } + public static void AddImagePathJp(FlatBufferBuilder builder, StringOffset imagePathJpOffset) { builder.AddOffset(4, imagePathJpOffset.Value, 0); } + public static Offset EndClanChattingEmojiExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClanChattingEmojiExcelVerify +{ + 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 /*TabGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*ImagePathKr*/, false) + && verifier.VerifyString(tablePos, 12 /*ImagePathJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs b/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs new file mode 100644 index 0000000..625fe40 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanChattingEmojiExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/ClanJoinOption.cs b/SCHALE.Common/FlatData/ClanJoinOption.cs new file mode 100644 index 0000000..16eea80 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanJoinOption.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ClanJoinOption : int +{ + Free = 0, + Permission = 1, + All = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ClanRewardExcel.cs b/SCHALE.Common/FlatData/ClanRewardExcel.cs new file mode 100644 index 0000000..0cff356 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanRewardExcel.cs @@ -0,0 +1,70 @@ +// +// 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 ClanRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClanRewardExcel GetRootAsClanRewardExcel(ByteBuffer _bb) { return GetRootAsClanRewardExcel(_bb, new ClanRewardExcel()); } + public static ClanRewardExcel GetRootAsClanRewardExcel(ByteBuffer _bb, ClanRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClanRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ClanRewardType ClanRewardType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ClanRewardType.None; } } + public SCHALE.Common.FlatData.EchelonType EchelonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); 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(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateClanRewardExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ClanRewardType ClanRewardType = SCHALE.Common.FlatData.ClanRewardType.None, + SCHALE.Common.FlatData.EchelonType EchelonType = SCHALE.Common.FlatData.EchelonType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0) { + builder.StartTable(5); + ClanRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + ClanRewardExcel.AddRewardParcelId(builder, RewardParcelId); + ClanRewardExcel.AddRewardParcelType(builder, RewardParcelType); + ClanRewardExcel.AddEchelonType(builder, EchelonType); + ClanRewardExcel.AddClanRewardType(builder, ClanRewardType); + return ClanRewardExcel.EndClanRewardExcel(builder); + } + + public static void StartClanRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddClanRewardType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ClanRewardType clanRewardType) { builder.AddInt(0, (int)clanRewardType, 0); } + public static void AddEchelonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonType echelonType) { builder.AddInt(1, (int)echelonType, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(2, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(3, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(4, rewardParcelAmount, 0); } + public static Offset EndClanRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClanRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ClanRewardType*/, 4 /*SCHALE.Common.FlatData.ClanRewardType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*EchelonType*/, 4 /*SCHALE.Common.FlatData.EchelonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanRewardExcelTable.cs b/SCHALE.Common/FlatData/ClanRewardExcelTable.cs new file mode 100644 index 0000000..212723a --- /dev/null +++ b/SCHALE.Common/FlatData/ClanRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ClanRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClanRewardExcelTable GetRootAsClanRewardExcelTable(ByteBuffer _bb) { return GetRootAsClanRewardExcelTable(_bb, new ClanRewardExcelTable()); } + public static ClanRewardExcelTable GetRootAsClanRewardExcelTable(ByteBuffer _bb, ClanRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClanRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ClanRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanRewardExcel?)(new SCHALE.Common.FlatData.ClanRewardExcel()).__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 CreateClanRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ClanRewardExcelTable.AddDataList(builder, DataListOffset); + return ClanRewardExcelTable.EndClanRewardExcelTable(builder); + } + + public static void StartClanRewardExcelTable(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 EndClanRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClanRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClanRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClanRewardType.cs b/SCHALE.Common/FlatData/ClanRewardType.cs new file mode 100644 index 0000000..9b2939f --- /dev/null +++ b/SCHALE.Common/FlatData/ClanRewardType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ClanRewardType : int +{ + None = 0, + AssistTerm = 1, + AssistRent = 2, + Attendance = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ClanSearchOption.cs b/SCHALE.Common/FlatData/ClanSearchOption.cs new file mode 100644 index 0000000..ddb8469 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanSearchOption.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ClanSearchOption : int +{ + Name = 0, + Id = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ClanSocialGrade.cs b/SCHALE.Common/FlatData/ClanSocialGrade.cs new file mode 100644 index 0000000..d72c154 --- /dev/null +++ b/SCHALE.Common/FlatData/ClanSocialGrade.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ClanSocialGrade : int +{ + None = 0, + President = 1, + Manager = 2, + Member = 3, + Applicant = 4, + Refused = 5, + Kicked = 6, + Quit = 7, + VicePredisident = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/ClearCheck.cs b/SCHALE.Common/FlatData/ClearCheck.cs new file mode 100644 index 0000000..70cd8a4 --- /dev/null +++ b/SCHALE.Common/FlatData/ClearCheck.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ClearCheck : int +{ + None = 0, + Success_Play = 1, + Success_Sweep = 2, + Fail_Timeout = 3, + Fail_PlayerGiveUp = 4, + Fail_Annihilation = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs new file mode 100644 index 0000000..0527c03 --- /dev/null +++ b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs @@ -0,0 +1,55 @@ +// +// 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 ClearDeckRuleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClearDeckRuleExcel GetRootAsClearDeckRuleExcel(ByteBuffer _bb) { return GetRootAsClearDeckRuleExcel(_bb, new ClearDeckRuleExcel()); } + public static ClearDeckRuleExcel GetRootAsClearDeckRuleExcel(ByteBuffer _bb, ClearDeckRuleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClearDeckRuleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long SizeLimit { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateClearDeckRuleExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long SizeLimit = 0) { + builder.StartTable(2); + ClearDeckRuleExcel.AddSizeLimit(builder, SizeLimit); + ClearDeckRuleExcel.AddContentType(builder, ContentType); + return ClearDeckRuleExcel.EndClearDeckRuleExcel(builder); + } + + public static void StartClearDeckRuleExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(0, (int)contentType, 0); } + public static void AddSizeLimit(FlatBufferBuilder builder, long sizeLimit) { builder.AddLong(1, sizeLimit, 0); } + public static Offset EndClearDeckRuleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClearDeckRuleExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*SizeLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs b/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs new file mode 100644 index 0000000..bbc7462 --- /dev/null +++ b/SCHALE.Common/FlatData/ClearDeckRuleExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ClearDeckRuleExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ClearDeckRuleExcelTable GetRootAsClearDeckRuleExcelTable(ByteBuffer _bb) { return GetRootAsClearDeckRuleExcelTable(_bb, new ClearDeckRuleExcelTable()); } + public static ClearDeckRuleExcelTable GetRootAsClearDeckRuleExcelTable(ByteBuffer _bb, ClearDeckRuleExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ClearDeckRuleExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ClearDeckRuleExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClearDeckRuleExcel?)(new SCHALE.Common.FlatData.ClearDeckRuleExcel()).__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 CreateClearDeckRuleExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ClearDeckRuleExcelTable.AddDataList(builder, DataListOffset); + return ClearDeckRuleExcelTable.EndClearDeckRuleExcelTable(builder); + } + + public static void StartClearDeckRuleExcelTable(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 EndClearDeckRuleExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ClearDeckRuleExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClearDeckRuleExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/Club.cs b/SCHALE.Common/FlatData/Club.cs new file mode 100644 index 0000000..198bf6e --- /dev/null +++ b/SCHALE.Common/FlatData/Club.cs @@ -0,0 +1,61 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Club : int +{ + None = 0, + Engineer = 1, + CleanNClearing = 2, + KnightsHospitaller = 3, + IndeGEHENNA = 4, + IndeMILLENNIUM = 5, + IndeHyakkiyako = 6, + IndeShanhaijing = 7, + IndeTrinity = 8, + FoodService = 9, + Countermeasure = 10, + BookClub = 11, + MatsuriOffice = 12, + GourmetClub = 13, + HoukagoDessert = 14, + RedwinterSecretary = 15, + Schale = 16, + TheSeminar = 17, + AriusSqud = 18, + Justice = 19, + Fuuki = 20, + Kohshinjo68 = 21, + Meihuayuan = 22, + SisterHood = 23, + GameDev = 24, + anzenkyoku = 25, + RemedialClass = 26, + SPTF = 27, + TrinityVigilance = 28, + Veritas = 29, + TrainingClub = 30, + Onmyobu = 31, + Shugyobu = 32, + Endanbou = 33, + NinpoKenkyubu = 34, + Class227 = 35, + EmptyClub = 36, + Emergentology = 37, + RabbitPlatoon = 38, + PandemoniumSociety = 39, + HotSpringsDepartment = 40, + TeaParty = 41, + PublicPeaceBureau = 42, + Genryumon = 43, + BlackTortoisePromenade = 44, + LaborParty = 45, + KnowledgeLiberationFront = 46, + Hyakkayouran = 47, +}; + + +} diff --git a/SCHALE.Common/FlatData/CombatEmojiExcel.cs b/SCHALE.Common/FlatData/CombatEmojiExcel.cs new file mode 100644 index 0000000..b334c1c --- /dev/null +++ b/SCHALE.Common/FlatData/CombatEmojiExcel.cs @@ -0,0 +1,85 @@ +// +// 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 CombatEmojiExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CombatEmojiExcel GetRootAsCombatEmojiExcel(ByteBuffer _bb) { return GetRootAsCombatEmojiExcel(_bb, new CombatEmojiExcel()); } + public static CombatEmojiExcel GetRootAsCombatEmojiExcel(ByteBuffer _bb, CombatEmojiExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CombatEmojiExcel __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 SCHALE.Common.FlatData.EmojiEvent EmojiEvent { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EmojiEvent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmojiEvent.EnterConver; } } + public int OrderOfPriority { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool EmojiDuration { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool EmojiReversal { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool EmojiTurnOn { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int ShowEmojiDelay { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool ShowDefaultBG { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateCombatEmojiExcel(FlatBufferBuilder builder, + long UniqueId = 0, + SCHALE.Common.FlatData.EmojiEvent EmojiEvent = SCHALE.Common.FlatData.EmojiEvent.EnterConver, + int OrderOfPriority = 0, + bool EmojiDuration = false, + bool EmojiReversal = false, + bool EmojiTurnOn = false, + int ShowEmojiDelay = 0, + bool ShowDefaultBG = false) { + builder.StartTable(8); + CombatEmojiExcel.AddUniqueId(builder, UniqueId); + CombatEmojiExcel.AddShowEmojiDelay(builder, ShowEmojiDelay); + CombatEmojiExcel.AddOrderOfPriority(builder, OrderOfPriority); + CombatEmojiExcel.AddEmojiEvent(builder, EmojiEvent); + CombatEmojiExcel.AddShowDefaultBG(builder, ShowDefaultBG); + CombatEmojiExcel.AddEmojiTurnOn(builder, EmojiTurnOn); + CombatEmojiExcel.AddEmojiReversal(builder, EmojiReversal); + CombatEmojiExcel.AddEmojiDuration(builder, EmojiDuration); + return CombatEmojiExcel.EndCombatEmojiExcel(builder); + } + + public static void StartCombatEmojiExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddEmojiEvent(FlatBufferBuilder builder, SCHALE.Common.FlatData.EmojiEvent emojiEvent) { builder.AddInt(1, (int)emojiEvent, 0); } + public static void AddOrderOfPriority(FlatBufferBuilder builder, int orderOfPriority) { builder.AddInt(2, orderOfPriority, 0); } + public static void AddEmojiDuration(FlatBufferBuilder builder, bool emojiDuration) { builder.AddBool(3, emojiDuration, false); } + public static void AddEmojiReversal(FlatBufferBuilder builder, bool emojiReversal) { builder.AddBool(4, emojiReversal, false); } + public static void AddEmojiTurnOn(FlatBufferBuilder builder, bool emojiTurnOn) { builder.AddBool(5, emojiTurnOn, false); } + public static void AddShowEmojiDelay(FlatBufferBuilder builder, int showEmojiDelay) { builder.AddInt(6, showEmojiDelay, 0); } + public static void AddShowDefaultBG(FlatBufferBuilder builder, bool showDefaultBG) { builder.AddBool(7, showDefaultBG, false); } + public static Offset EndCombatEmojiExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CombatEmojiExcelVerify +{ + 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 /*EmojiEvent*/, 4 /*SCHALE.Common.FlatData.EmojiEvent*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*OrderOfPriority*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*EmojiDuration*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*EmojiReversal*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*EmojiTurnOn*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*ShowEmojiDelay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ShowDefaultBG*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs b/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs new file mode 100644 index 0000000..68f130a --- /dev/null +++ b/SCHALE.Common/FlatData/CombatEmojiExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..4502f9f --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestCalculateExcel.cs @@ -0,0 +1,65 @@ +// +// 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 ConquestCalculateExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestCalculateExcel GetRootAsConquestCalculateExcel(ByteBuffer _bb) { return GetRootAsConquestCalculateExcel(_bb, new ConquestCalculateExcel()); } + public static ConquestCalculateExcel GetRootAsConquestCalculateExcel(ByteBuffer _bb, ConquestCalculateExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestCalculateExcel __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.ParcelType CalculateConditionParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long CalculateConditionParcelUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CalculateConditionParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateConquestCalculateExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None, + long CalculateConditionParcelUniqueId = 0, + long CalculateConditionParcelAmount = 0) { + builder.StartTable(4); + ConquestCalculateExcel.AddCalculateConditionParcelAmount(builder, CalculateConditionParcelAmount); + ConquestCalculateExcel.AddCalculateConditionParcelUniqueId(builder, CalculateConditionParcelUniqueId); + ConquestCalculateExcel.AddEventContentId(builder, EventContentId); + ConquestCalculateExcel.AddCalculateConditionParcelType(builder, CalculateConditionParcelType); + return ConquestCalculateExcel.EndConquestCalculateExcel(builder); + } + + public static void StartConquestCalculateExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddCalculateConditionParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType calculateConditionParcelType) { builder.AddInt(1, (int)calculateConditionParcelType, 0); } + public static void AddCalculateConditionParcelUniqueId(FlatBufferBuilder builder, long calculateConditionParcelUniqueId) { builder.AddLong(2, calculateConditionParcelUniqueId, 0); } + public static void AddCalculateConditionParcelAmount(FlatBufferBuilder builder, long calculateConditionParcelAmount) { builder.AddLong(3, calculateConditionParcelAmount, 0); } + public static Offset EndConquestCalculateExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestCalculateExcelVerify +{ + 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 /*CalculateConditionParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CalculateConditionParcelUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*CalculateConditionParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs b/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs new file mode 100644 index 0000000..3212836 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestCalculateExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestCalculateExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestCalculateExcelTable GetRootAsConquestCalculateExcelTable(ByteBuffer _bb) { return GetRootAsConquestCalculateExcelTable(_bb, new ConquestCalculateExcelTable()); } + public static ConquestCalculateExcelTable GetRootAsConquestCalculateExcelTable(ByteBuffer _bb, ConquestCalculateExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestCalculateExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestCalculateExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestCalculateExcel?)(new SCHALE.Common.FlatData.ConquestCalculateExcel()).__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 CreateConquestCalculateExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestCalculateExcelTable.AddDataList(builder, DataListOffset); + return ConquestCalculateExcelTable.EndConquestCalculateExcelTable(builder); + } + + public static void StartConquestCalculateExcelTable(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 EndConquestCalculateExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestCalculateExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestCalculateExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs b/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs new file mode 100644 index 0000000..cd762b6 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestCameraSettingExcel.cs @@ -0,0 +1,100 @@ +// +// 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 ConquestCameraSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestCameraSettingExcel GetRootAsConquestCameraSettingExcel(ByteBuffer _bb) { return GetRootAsConquestCameraSettingExcel(_bb, new ConquestCameraSettingExcel()); } + public static ConquestCameraSettingExcel GetRootAsConquestCameraSettingExcel(ByteBuffer _bb, ConquestCameraSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestCameraSettingExcel __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 float ConquestMapBoundaryOffsetLeft { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetRight { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetTop { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetBottom { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapCenterOffsetX { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapCenterOffsetY { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraAngle { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMax { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMin { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomDefault { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateConquestCameraSettingExcel(FlatBufferBuilder builder, + long Id = 0, + float ConquestMapBoundaryOffsetLeft = 0.0f, + float ConquestMapBoundaryOffsetRight = 0.0f, + float ConquestMapBoundaryOffsetTop = 0.0f, + float ConquestMapBoundaryOffsetBottom = 0.0f, + float ConquestMapCenterOffsetX = 0.0f, + float ConquestMapCenterOffsetY = 0.0f, + float CameraAngle = 0.0f, + float CameraZoomMax = 0.0f, + float CameraZoomMin = 0.0f, + float CameraZoomDefault = 0.0f) { + builder.StartTable(11); + ConquestCameraSettingExcel.AddId(builder, Id); + ConquestCameraSettingExcel.AddCameraZoomDefault(builder, CameraZoomDefault); + ConquestCameraSettingExcel.AddCameraZoomMin(builder, CameraZoomMin); + ConquestCameraSettingExcel.AddCameraZoomMax(builder, CameraZoomMax); + ConquestCameraSettingExcel.AddCameraAngle(builder, CameraAngle); + ConquestCameraSettingExcel.AddConquestMapCenterOffsetY(builder, ConquestMapCenterOffsetY); + ConquestCameraSettingExcel.AddConquestMapCenterOffsetX(builder, ConquestMapCenterOffsetX); + ConquestCameraSettingExcel.AddConquestMapBoundaryOffsetBottom(builder, ConquestMapBoundaryOffsetBottom); + ConquestCameraSettingExcel.AddConquestMapBoundaryOffsetTop(builder, ConquestMapBoundaryOffsetTop); + ConquestCameraSettingExcel.AddConquestMapBoundaryOffsetRight(builder, ConquestMapBoundaryOffsetRight); + ConquestCameraSettingExcel.AddConquestMapBoundaryOffsetLeft(builder, ConquestMapBoundaryOffsetLeft); + return ConquestCameraSettingExcel.EndConquestCameraSettingExcel(builder); + } + + public static void StartConquestCameraSettingExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddConquestMapBoundaryOffsetLeft(FlatBufferBuilder builder, float conquestMapBoundaryOffsetLeft) { builder.AddFloat(1, conquestMapBoundaryOffsetLeft, 0.0f); } + public static void AddConquestMapBoundaryOffsetRight(FlatBufferBuilder builder, float conquestMapBoundaryOffsetRight) { builder.AddFloat(2, conquestMapBoundaryOffsetRight, 0.0f); } + public static void AddConquestMapBoundaryOffsetTop(FlatBufferBuilder builder, float conquestMapBoundaryOffsetTop) { builder.AddFloat(3, conquestMapBoundaryOffsetTop, 0.0f); } + public static void AddConquestMapBoundaryOffsetBottom(FlatBufferBuilder builder, float conquestMapBoundaryOffsetBottom) { builder.AddFloat(4, conquestMapBoundaryOffsetBottom, 0.0f); } + public static void AddConquestMapCenterOffsetX(FlatBufferBuilder builder, float conquestMapCenterOffsetX) { builder.AddFloat(5, conquestMapCenterOffsetX, 0.0f); } + public static void AddConquestMapCenterOffsetY(FlatBufferBuilder builder, float conquestMapCenterOffsetY) { builder.AddFloat(6, conquestMapCenterOffsetY, 0.0f); } + public static void AddCameraAngle(FlatBufferBuilder builder, float cameraAngle) { builder.AddFloat(7, cameraAngle, 0.0f); } + public static void AddCameraZoomMax(FlatBufferBuilder builder, float cameraZoomMax) { builder.AddFloat(8, cameraZoomMax, 0.0f); } + public static void AddCameraZoomMin(FlatBufferBuilder builder, float cameraZoomMin) { builder.AddFloat(9, cameraZoomMin, 0.0f); } + public static void AddCameraZoomDefault(FlatBufferBuilder builder, float cameraZoomDefault) { builder.AddFloat(10, cameraZoomDefault, 0.0f); } + public static Offset EndConquestCameraSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestCameraSettingExcelVerify +{ + 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 /*ConquestMapBoundaryOffsetLeft*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ConquestMapBoundaryOffsetRight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ConquestMapBoundaryOffsetTop*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConquestMapBoundaryOffsetBottom*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ConquestMapCenterOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ConquestMapCenterOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*CameraAngle*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*CameraZoomMax*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*CameraZoomMin*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*CameraZoomDefault*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs b/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs new file mode 100644 index 0000000..f59564c --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestCameraSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestCameraSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestCameraSettingExcelTable GetRootAsConquestCameraSettingExcelTable(ByteBuffer _bb) { return GetRootAsConquestCameraSettingExcelTable(_bb, new ConquestCameraSettingExcelTable()); } + public static ConquestCameraSettingExcelTable GetRootAsConquestCameraSettingExcelTable(ByteBuffer _bb, ConquestCameraSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestCameraSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestCameraSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestCameraSettingExcel?)(new SCHALE.Common.FlatData.ConquestCameraSettingExcel()).__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 CreateConquestCameraSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestCameraSettingExcelTable.AddDataList(builder, DataListOffset); + return ConquestCameraSettingExcelTable.EndConquestCameraSettingExcelTable(builder); + } + + public static void StartConquestCameraSettingExcelTable(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 EndConquestCameraSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestCameraSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestCameraSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestConditionType.cs b/SCHALE.Common/FlatData/ConquestConditionType.cs new file mode 100644 index 0000000..4c21524 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestConditionType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestConditionType : int +{ + None = 0, + OpenDateOffset = 1, + ItemAcquire = 2, + ParcelUse = 3, + KillUnit = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestEnemyType.cs b/SCHALE.Common/FlatData/ConquestEnemyType.cs new file mode 100644 index 0000000..5434a25 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestEnemyType.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestEnemyType : int +{ + None = 0, + Normal = 1, + MiddleBoss = 2, + Boss = 3, + UnexpectedEvent = 4, + Challenge = 5, + IndividualErosion = 6, + MassErosion = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestErosionExcel.cs b/SCHALE.Common/FlatData/ConquestErosionExcel.cs new file mode 100644 index 0000000..ede1658 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestErosionExcel.cs @@ -0,0 +1,151 @@ +// +// 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 ConquestErosionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestErosionExcel GetRootAsConquestErosionExcel(ByteBuffer _bb) { return GetRootAsConquestErosionExcel(_bb, new ConquestErosionExcel()); } + public static ConquestErosionExcel GetRootAsConquestErosionExcel(ByteBuffer _bb, ConquestErosionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestErosionExcel __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 Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ConquestErosionType ErosionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestErosionType.None; } } + public int Phase { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool PhaseAlarm { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int StepIndex { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ConquestConditionType PhaseStartConditionType(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; } + public int PhaseStartConditionTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPhaseStartConditionTypeBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetPhaseStartConditionTypeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public SCHALE.Common.FlatData.ConquestConditionType[] GetPhaseStartConditionTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; } + public string PhaseStartConditionParameter(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PhaseStartConditionParameterLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.ConquestConditionType PhaseBeforeExposeConditionType(int j) { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; } + public int PhaseBeforeExposeConditionTypeLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPhaseBeforeExposeConditionTypeBytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetPhaseBeforeExposeConditionTypeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public SCHALE.Common.FlatData.ConquestConditionType[] GetPhaseBeforeExposeConditionTypeArray() { int o = __p.__offset(20); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; } + public string PhaseBeforeExposeConditionParameter(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PhaseBeforeExposeConditionParameterLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ErosionBattleConditionParcelUniqueId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ErosionBattleConditionParcelAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConquestRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateConquestErosionExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + SCHALE.Common.FlatData.ConquestErosionType ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None, + int Phase = 0, + bool PhaseAlarm = false, + int StepIndex = 0, + VectorOffset PhaseStartConditionTypeOffset = default(VectorOffset), + VectorOffset PhaseStartConditionParameterOffset = default(VectorOffset), + VectorOffset PhaseBeforeExposeConditionTypeOffset = default(VectorOffset), + VectorOffset PhaseBeforeExposeConditionParameterOffset = default(VectorOffset), + SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ErosionBattleConditionParcelUniqueId = 0, + long ErosionBattleConditionParcelAmount = 0, + long ConquestRewardId = 0) { + builder.StartTable(14); + ConquestErosionExcel.AddConquestRewardId(builder, ConquestRewardId); + ConquestErosionExcel.AddErosionBattleConditionParcelAmount(builder, ErosionBattleConditionParcelAmount); + ConquestErosionExcel.AddErosionBattleConditionParcelUniqueId(builder, ErosionBattleConditionParcelUniqueId); + ConquestErosionExcel.AddId(builder, Id); + ConquestErosionExcel.AddEventContentId(builder, EventContentId); + ConquestErosionExcel.AddErosionBattleConditionParcelType(builder, ErosionBattleConditionParcelType); + ConquestErosionExcel.AddPhaseBeforeExposeConditionParameter(builder, PhaseBeforeExposeConditionParameterOffset); + ConquestErosionExcel.AddPhaseBeforeExposeConditionType(builder, PhaseBeforeExposeConditionTypeOffset); + ConquestErosionExcel.AddPhaseStartConditionParameter(builder, PhaseStartConditionParameterOffset); + ConquestErosionExcel.AddPhaseStartConditionType(builder, PhaseStartConditionTypeOffset); + ConquestErosionExcel.AddStepIndex(builder, StepIndex); + ConquestErosionExcel.AddPhase(builder, Phase); + ConquestErosionExcel.AddErosionType(builder, ErosionType); + ConquestErosionExcel.AddPhaseAlarm(builder, PhaseAlarm); + return ConquestErosionExcel.EndConquestErosionExcel(builder); + } + + public static void StartConquestErosionExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddErosionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestErosionType erosionType) { builder.AddInt(2, (int)erosionType, 0); } + public static void AddPhase(FlatBufferBuilder builder, int phase) { builder.AddInt(3, phase, 0); } + public static void AddPhaseAlarm(FlatBufferBuilder builder, bool phaseAlarm) { builder.AddBool(4, phaseAlarm, false); } + public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(5, stepIndex, 0); } + public static void AddPhaseStartConditionType(FlatBufferBuilder builder, VectorOffset phaseStartConditionTypeOffset) { builder.AddOffset(6, phaseStartConditionTypeOffset.Value, 0); } + public static VectorOffset CreatePhaseStartConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] 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 CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseStartConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPhaseStartConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPhaseStartConditionParameter(FlatBufferBuilder builder, VectorOffset phaseStartConditionParameterOffset) { builder.AddOffset(7, phaseStartConditionParameterOffset.Value, 0); } + public static VectorOffset CreatePhaseStartConditionParameterVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseStartConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPhaseStartConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPhaseBeforeExposeConditionType(FlatBufferBuilder builder, VectorOffset phaseBeforeExposeConditionTypeOffset) { builder.AddOffset(8, phaseBeforeExposeConditionTypeOffset.Value, 0); } + public static VectorOffset CreatePhaseBeforeExposeConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] 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 CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseBeforeExposeConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPhaseBeforeExposeConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPhaseBeforeExposeConditionParameter(FlatBufferBuilder builder, VectorOffset phaseBeforeExposeConditionParameterOffset) { builder.AddOffset(9, phaseBeforeExposeConditionParameterOffset.Value, 0); } + public static VectorOffset CreatePhaseBeforeExposeConditionParameterVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePhaseBeforeExposeConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPhaseBeforeExposeConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddErosionBattleConditionParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType erosionBattleConditionParcelType) { builder.AddInt(10, (int)erosionBattleConditionParcelType, 0); } + public static void AddErosionBattleConditionParcelUniqueId(FlatBufferBuilder builder, long erosionBattleConditionParcelUniqueId) { builder.AddLong(11, erosionBattleConditionParcelUniqueId, 0); } + public static void AddErosionBattleConditionParcelAmount(FlatBufferBuilder builder, long erosionBattleConditionParcelAmount) { builder.AddLong(12, erosionBattleConditionParcelAmount, 0); } + public static void AddConquestRewardId(FlatBufferBuilder builder, long conquestRewardId) { builder.AddLong(13, conquestRewardId, 0); } + public static Offset EndConquestErosionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestErosionExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ErosionType*/, 4 /*SCHALE.Common.FlatData.ConquestErosionType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Phase*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*PhaseAlarm*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*StepIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*PhaseStartConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*PhaseStartConditionParameter*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*PhaseBeforeExposeConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*PhaseBeforeExposeConditionParameter*/, false) + && verifier.VerifyField(tablePos, 24 /*ErosionBattleConditionParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*ErosionBattleConditionParcelUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ErosionBattleConditionParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*ConquestRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs b/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs new file mode 100644 index 0000000..cd4453f --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestErosionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestErosionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestErosionExcelTable GetRootAsConquestErosionExcelTable(ByteBuffer _bb) { return GetRootAsConquestErosionExcelTable(_bb, new ConquestErosionExcelTable()); } + public static ConquestErosionExcelTable GetRootAsConquestErosionExcelTable(ByteBuffer _bb, ConquestErosionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestErosionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestErosionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionExcel?)(new SCHALE.Common.FlatData.ConquestErosionExcel()).__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 CreateConquestErosionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestErosionExcelTable.AddDataList(builder, DataListOffset); + return ConquestErosionExcelTable.EndConquestErosionExcelTable(builder); + } + + public static void StartConquestErosionExcelTable(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 EndConquestErosionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestErosionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestErosionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestErosionType.cs b/SCHALE.Common/FlatData/ConquestErosionType.cs new file mode 100644 index 0000000..54c7807 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestErosionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestErosionType : int +{ + None = 0, + IndividualErosion = 1, + MassErosion = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs b/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs new file mode 100644 index 0000000..1f85e8a --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestErosionUnitExcel.cs @@ -0,0 +1,70 @@ +// +// 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 ConquestErosionUnitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestErosionUnitExcel GetRootAsConquestErosionUnitExcel(ByteBuffer _bb) { return GetRootAsConquestErosionUnitExcel(_bb, new ConquestErosionUnitExcel()); } + public static ConquestErosionUnitExcel GetRootAsConquestErosionUnitExcel(ByteBuffer _bb, ConquestErosionUnitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestErosionUnitExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long TilePrefabId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MassErosionUnitId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float MassErosionUnitRotationY { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long IndividualErosionUnitId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float IndividualErosionUnitRotationY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateConquestErosionUnitExcel(FlatBufferBuilder builder, + long TilePrefabId = 0, + long MassErosionUnitId = 0, + float MassErosionUnitRotationY = 0.0f, + long IndividualErosionUnitId = 0, + float IndividualErosionUnitRotationY = 0.0f) { + builder.StartTable(5); + ConquestErosionUnitExcel.AddIndividualErosionUnitId(builder, IndividualErosionUnitId); + ConquestErosionUnitExcel.AddMassErosionUnitId(builder, MassErosionUnitId); + ConquestErosionUnitExcel.AddTilePrefabId(builder, TilePrefabId); + ConquestErosionUnitExcel.AddIndividualErosionUnitRotationY(builder, IndividualErosionUnitRotationY); + ConquestErosionUnitExcel.AddMassErosionUnitRotationY(builder, MassErosionUnitRotationY); + return ConquestErosionUnitExcel.EndConquestErosionUnitExcel(builder); + } + + public static void StartConquestErosionUnitExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddTilePrefabId(FlatBufferBuilder builder, long tilePrefabId) { builder.AddLong(0, tilePrefabId, 0); } + public static void AddMassErosionUnitId(FlatBufferBuilder builder, long massErosionUnitId) { builder.AddLong(1, massErosionUnitId, 0); } + public static void AddMassErosionUnitRotationY(FlatBufferBuilder builder, float massErosionUnitRotationY) { builder.AddFloat(2, massErosionUnitRotationY, 0.0f); } + public static void AddIndividualErosionUnitId(FlatBufferBuilder builder, long individualErosionUnitId) { builder.AddLong(3, individualErosionUnitId, 0); } + public static void AddIndividualErosionUnitRotationY(FlatBufferBuilder builder, float individualErosionUnitRotationY) { builder.AddFloat(4, individualErosionUnitRotationY, 0.0f); } + public static Offset EndConquestErosionUnitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestErosionUnitExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*TilePrefabId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*MassErosionUnitId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*MassErosionUnitRotationY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IndividualErosionUnitId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*IndividualErosionUnitRotationY*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs b/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs new file mode 100644 index 0000000..a0fd99b --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestErosionUnitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestErosionUnitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestErosionUnitExcelTable GetRootAsConquestErosionUnitExcelTable(ByteBuffer _bb) { return GetRootAsConquestErosionUnitExcelTable(_bb, new ConquestErosionUnitExcelTable()); } + public static ConquestErosionUnitExcelTable GetRootAsConquestErosionUnitExcelTable(ByteBuffer _bb, ConquestErosionUnitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestErosionUnitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestErosionUnitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionUnitExcel?)(new SCHALE.Common.FlatData.ConquestErosionUnitExcel()).__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 CreateConquestErosionUnitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestErosionUnitExcelTable.AddDataList(builder, DataListOffset); + return ConquestErosionUnitExcelTable.EndConquestErosionUnitExcelTable(builder); + } + + public static void StartConquestErosionUnitExcelTable(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 EndConquestErosionUnitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestErosionUnitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestErosionUnitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestEventExcel.cs b/SCHALE.Common/FlatData/ConquestEventExcel.cs new file mode 100644 index 0000000..8b418a3 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestEventExcel.cs @@ -0,0 +1,241 @@ +// +// 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 ConquestEventExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestEventExcel GetRootAsConquestEventExcel(ByteBuffer _bb) { return GetRootAsConquestEventExcel(_bb, new ConquestEventExcel()); } + public static ConquestEventExcel GetRootAsConquestEventExcel(ByteBuffer _bb, ConquestEventExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestEventExcel __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 MainStoryEventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ConquestEventType ConquestEventType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEventType.None; } } + public bool UseErosion { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseUnexpectedEvent { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseCalculate { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseConquestObject { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string EvnetMapGoalLocalize { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEvnetMapGoalLocalizeBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetEvnetMapGoalLocalizeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetEvnetMapGoalLocalizeArray() { return __p.__vector_as_array(18); } + public string EvnetMapNameLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEvnetMapNameLocalizeBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetEvnetMapNameLocalizeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetEvnetMapNameLocalizeArray() { return __p.__vector_as_array(20); } + public long MapEnterScenarioGroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string EvnetScenarioBG { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEvnetScenarioBGBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetEvnetScenarioBGBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetEvnetScenarioBGArray() { return __p.__vector_as_array(24); } + public int ManageUnitChange { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AssistCount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PlayTimeLimitInSeconds { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AnimationUnitAmountMin { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AnimationUnitAmountMax { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float AnimationUnitDelay { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string LocalizeUnexpected { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeUnexpectedBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetLocalizeUnexpectedBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetLocalizeUnexpectedArray() { return __p.__vector_as_array(38); } + public string LocalizeErosions { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeErosionsBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetLocalizeErosionsBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetLocalizeErosionsArray() { return __p.__vector_as_array(40); } + public string LocalizeStep { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeStepBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetLocalizeStepBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetLocalizeStepArray() { return __p.__vector_as_array(42); } + public string LocalizeTile { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeTileBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetLocalizeTileBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetLocalizeTileArray() { return __p.__vector_as_array(44); } + public string LocalizeMapInfo { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeMapInfoBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetLocalizeMapInfoBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetLocalizeMapInfoArray() { return __p.__vector_as_array(46); } + public string LocalizeManage { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeManageBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetLocalizeManageBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetLocalizeManageArray() { return __p.__vector_as_array(48); } + public string LocalizeUpgrade { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeUpgradeBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetLocalizeUpgradeBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetLocalizeUpgradeArray() { return __p.__vector_as_array(50); } + public string LocalizeTreasureBox { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeTreasureBoxBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetLocalizeTreasureBoxBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetLocalizeTreasureBoxArray() { return __p.__vector_as_array(52); } + public long IndividualErosionDailyCount { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateConquestEventExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long MainStoryEventContentId = 0, + SCHALE.Common.FlatData.ConquestEventType ConquestEventType = SCHALE.Common.FlatData.ConquestEventType.None, + bool UseErosion = false, + bool UseUnexpectedEvent = false, + bool UseCalculate = false, + bool UseConquestObject = false, + StringOffset EvnetMapGoalLocalizeOffset = default(StringOffset), + StringOffset EvnetMapNameLocalizeOffset = default(StringOffset), + long MapEnterScenarioGroupId = 0, + StringOffset EvnetScenarioBGOffset = default(StringOffset), + int ManageUnitChange = 0, + int AssistCount = 0, + int PlayTimeLimitInSeconds = 0, + int AnimationUnitAmountMin = 0, + int AnimationUnitAmountMax = 0, + float AnimationUnitDelay = 0.0f, + StringOffset LocalizeUnexpectedOffset = default(StringOffset), + StringOffset LocalizeErosionsOffset = default(StringOffset), + StringOffset LocalizeStepOffset = default(StringOffset), + StringOffset LocalizeTileOffset = default(StringOffset), + StringOffset LocalizeMapInfoOffset = default(StringOffset), + StringOffset LocalizeManageOffset = default(StringOffset), + StringOffset LocalizeUpgradeOffset = default(StringOffset), + StringOffset LocalizeTreasureBoxOffset = default(StringOffset), + long IndividualErosionDailyCount = 0) { + builder.StartTable(26); + ConquestEventExcel.AddIndividualErosionDailyCount(builder, IndividualErosionDailyCount); + ConquestEventExcel.AddMapEnterScenarioGroupId(builder, MapEnterScenarioGroupId); + ConquestEventExcel.AddMainStoryEventContentId(builder, MainStoryEventContentId); + ConquestEventExcel.AddEventContentId(builder, EventContentId); + ConquestEventExcel.AddLocalizeTreasureBox(builder, LocalizeTreasureBoxOffset); + ConquestEventExcel.AddLocalizeUpgrade(builder, LocalizeUpgradeOffset); + ConquestEventExcel.AddLocalizeManage(builder, LocalizeManageOffset); + ConquestEventExcel.AddLocalizeMapInfo(builder, LocalizeMapInfoOffset); + ConquestEventExcel.AddLocalizeTile(builder, LocalizeTileOffset); + ConquestEventExcel.AddLocalizeStep(builder, LocalizeStepOffset); + ConquestEventExcel.AddLocalizeErosions(builder, LocalizeErosionsOffset); + ConquestEventExcel.AddLocalizeUnexpected(builder, LocalizeUnexpectedOffset); + ConquestEventExcel.AddAnimationUnitDelay(builder, AnimationUnitDelay); + ConquestEventExcel.AddAnimationUnitAmountMax(builder, AnimationUnitAmountMax); + ConquestEventExcel.AddAnimationUnitAmountMin(builder, AnimationUnitAmountMin); + ConquestEventExcel.AddPlayTimeLimitInSeconds(builder, PlayTimeLimitInSeconds); + ConquestEventExcel.AddAssistCount(builder, AssistCount); + ConquestEventExcel.AddManageUnitChange(builder, ManageUnitChange); + ConquestEventExcel.AddEvnetScenarioBG(builder, EvnetScenarioBGOffset); + ConquestEventExcel.AddEvnetMapNameLocalize(builder, EvnetMapNameLocalizeOffset); + ConquestEventExcel.AddEvnetMapGoalLocalize(builder, EvnetMapGoalLocalizeOffset); + ConquestEventExcel.AddConquestEventType(builder, ConquestEventType); + ConquestEventExcel.AddUseConquestObject(builder, UseConquestObject); + ConquestEventExcel.AddUseCalculate(builder, UseCalculate); + ConquestEventExcel.AddUseUnexpectedEvent(builder, UseUnexpectedEvent); + ConquestEventExcel.AddUseErosion(builder, UseErosion); + return ConquestEventExcel.EndConquestEventExcel(builder); + } + + public static void StartConquestEventExcel(FlatBufferBuilder builder) { builder.StartTable(26); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddMainStoryEventContentId(FlatBufferBuilder builder, long mainStoryEventContentId) { builder.AddLong(1, mainStoryEventContentId, 0); } + public static void AddConquestEventType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestEventType conquestEventType) { builder.AddInt(2, (int)conquestEventType, 0); } + public static void AddUseErosion(FlatBufferBuilder builder, bool useErosion) { builder.AddBool(3, useErosion, false); } + public static void AddUseUnexpectedEvent(FlatBufferBuilder builder, bool useUnexpectedEvent) { builder.AddBool(4, useUnexpectedEvent, false); } + public static void AddUseCalculate(FlatBufferBuilder builder, bool useCalculate) { builder.AddBool(5, useCalculate, false); } + public static void AddUseConquestObject(FlatBufferBuilder builder, bool useConquestObject) { builder.AddBool(6, useConquestObject, false); } + public static void AddEvnetMapGoalLocalize(FlatBufferBuilder builder, StringOffset evnetMapGoalLocalizeOffset) { builder.AddOffset(7, evnetMapGoalLocalizeOffset.Value, 0); } + public static void AddEvnetMapNameLocalize(FlatBufferBuilder builder, StringOffset evnetMapNameLocalizeOffset) { builder.AddOffset(8, evnetMapNameLocalizeOffset.Value, 0); } + public static void AddMapEnterScenarioGroupId(FlatBufferBuilder builder, long mapEnterScenarioGroupId) { builder.AddLong(9, mapEnterScenarioGroupId, 0); } + public static void AddEvnetScenarioBG(FlatBufferBuilder builder, StringOffset evnetScenarioBGOffset) { builder.AddOffset(10, evnetScenarioBGOffset.Value, 0); } + public static void AddManageUnitChange(FlatBufferBuilder builder, int manageUnitChange) { builder.AddInt(11, manageUnitChange, 0); } + public static void AddAssistCount(FlatBufferBuilder builder, int assistCount) { builder.AddInt(12, assistCount, 0); } + public static void AddPlayTimeLimitInSeconds(FlatBufferBuilder builder, int playTimeLimitInSeconds) { builder.AddInt(13, playTimeLimitInSeconds, 0); } + public static void AddAnimationUnitAmountMin(FlatBufferBuilder builder, int animationUnitAmountMin) { builder.AddInt(14, animationUnitAmountMin, 0); } + public static void AddAnimationUnitAmountMax(FlatBufferBuilder builder, int animationUnitAmountMax) { builder.AddInt(15, animationUnitAmountMax, 0); } + public static void AddAnimationUnitDelay(FlatBufferBuilder builder, float animationUnitDelay) { builder.AddFloat(16, animationUnitDelay, 0.0f); } + public static void AddLocalizeUnexpected(FlatBufferBuilder builder, StringOffset localizeUnexpectedOffset) { builder.AddOffset(17, localizeUnexpectedOffset.Value, 0); } + public static void AddLocalizeErosions(FlatBufferBuilder builder, StringOffset localizeErosionsOffset) { builder.AddOffset(18, localizeErosionsOffset.Value, 0); } + public static void AddLocalizeStep(FlatBufferBuilder builder, StringOffset localizeStepOffset) { builder.AddOffset(19, localizeStepOffset.Value, 0); } + public static void AddLocalizeTile(FlatBufferBuilder builder, StringOffset localizeTileOffset) { builder.AddOffset(20, localizeTileOffset.Value, 0); } + public static void AddLocalizeMapInfo(FlatBufferBuilder builder, StringOffset localizeMapInfoOffset) { builder.AddOffset(21, localizeMapInfoOffset.Value, 0); } + public static void AddLocalizeManage(FlatBufferBuilder builder, StringOffset localizeManageOffset) { builder.AddOffset(22, localizeManageOffset.Value, 0); } + public static void AddLocalizeUpgrade(FlatBufferBuilder builder, StringOffset localizeUpgradeOffset) { builder.AddOffset(23, localizeUpgradeOffset.Value, 0); } + public static void AddLocalizeTreasureBox(FlatBufferBuilder builder, StringOffset localizeTreasureBoxOffset) { builder.AddOffset(24, localizeTreasureBoxOffset.Value, 0); } + public static void AddIndividualErosionDailyCount(FlatBufferBuilder builder, long individualErosionDailyCount) { builder.AddLong(25, individualErosionDailyCount, 0); } + public static Offset EndConquestEventExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestEventExcelVerify +{ + 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 /*MainStoryEventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ConquestEventType*/, 4 /*SCHALE.Common.FlatData.ConquestEventType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*UseErosion*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*UseUnexpectedEvent*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*UseCalculate*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*UseConquestObject*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*EvnetMapGoalLocalize*/, false) + && verifier.VerifyString(tablePos, 20 /*EvnetMapNameLocalize*/, false) + && verifier.VerifyField(tablePos, 22 /*MapEnterScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 24 /*EvnetScenarioBG*/, false) + && verifier.VerifyField(tablePos, 26 /*ManageUnitChange*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*AssistCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*PlayTimeLimitInSeconds*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*AnimationUnitAmountMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*AnimationUnitAmountMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*AnimationUnitDelay*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 38 /*LocalizeUnexpected*/, false) + && verifier.VerifyString(tablePos, 40 /*LocalizeErosions*/, false) + && verifier.VerifyString(tablePos, 42 /*LocalizeStep*/, false) + && verifier.VerifyString(tablePos, 44 /*LocalizeTile*/, false) + && verifier.VerifyString(tablePos, 46 /*LocalizeMapInfo*/, false) + && verifier.VerifyString(tablePos, 48 /*LocalizeManage*/, false) + && verifier.VerifyString(tablePos, 50 /*LocalizeUpgrade*/, false) + && verifier.VerifyString(tablePos, 52 /*LocalizeTreasureBox*/, false) + && verifier.VerifyField(tablePos, 54 /*IndividualErosionDailyCount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestEventExcelTable.cs b/SCHALE.Common/FlatData/ConquestEventExcelTable.cs new file mode 100644 index 0000000..93a6c6f --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestEventExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestEventExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestEventExcelTable GetRootAsConquestEventExcelTable(ByteBuffer _bb) { return GetRootAsConquestEventExcelTable(_bb, new ConquestEventExcelTable()); } + public static ConquestEventExcelTable GetRootAsConquestEventExcelTable(ByteBuffer _bb, ConquestEventExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestEventExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestEventExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestEventExcel?)(new SCHALE.Common.FlatData.ConquestEventExcel()).__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 CreateConquestEventExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestEventExcelTable.AddDataList(builder, DataListOffset); + return ConquestEventExcelTable.EndConquestEventExcelTable(builder); + } + + public static void StartConquestEventExcelTable(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 EndConquestEventExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestEventExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestEventExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestEventType.cs b/SCHALE.Common/FlatData/ConquestEventType.cs new file mode 100644 index 0000000..69f64c2 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestEventType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestEventType : int +{ + None = 0, + Event01 = 1, + Event02 = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs b/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs new file mode 100644 index 0000000..59ce20a --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestGroupBonusExcel.cs @@ -0,0 +1,208 @@ +// +// 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 ConquestGroupBonusExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestGroupBonusExcel GetRootAsConquestGroupBonusExcel(ByteBuffer _bb) { return GetRootAsConquestGroupBonusExcel(_bb, new ConquestGroupBonusExcel()); } + public static ConquestGroupBonusExcel GetRootAsConquestGroupBonusExcel(ByteBuffer _bb, ConquestGroupBonusExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestGroupBonusExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ConquestBonusId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.School School_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.School)0; } + public int School_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSchool_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetSchool_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.School[] GetSchool_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.School[] a = new SCHALE.Common.FlatData.School[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.School)__p.bb.GetInt(p + i * 4); } return a; } + public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ParcelType BonusParcelType(int j) { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int BonusParcelTypeLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetBonusParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetBonusParcelTypeArray() { int o = __p.__offset(10); 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 BonusId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BonusIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetBonusIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetBonusIdArray() { return __p.__vector_as_array(12); } + public int BonusCharacterCount1(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BonusCharacterCount1Length { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusCharacterCount1Bytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetBonusCharacterCount1Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public int[] GetBonusCharacterCount1Array() { return __p.__vector_as_array(14); } + public long BonusPercentage1(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BonusPercentage1Length { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusPercentage1Bytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetBonusPercentage1Bytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetBonusPercentage1Array() { return __p.__vector_as_array(16); } + public int BonusCharacterCount2(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BonusCharacterCount2Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusCharacterCount2Bytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetBonusCharacterCount2Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetBonusCharacterCount2Array() { return __p.__vector_as_array(18); } + public long BonusPercentage2(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BonusPercentage2Length { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusPercentage2Bytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetBonusPercentage2Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetBonusPercentage2Array() { return __p.__vector_as_array(20); } + public int BonusCharacterCount3(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BonusCharacterCount3Length { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusCharacterCount3Bytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetBonusCharacterCount3Bytes() { return __p.__vector_as_arraysegment(22); } +#endif + public int[] GetBonusCharacterCount3Array() { return __p.__vector_as_array(22); } + public long BonusPercentage3(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BonusPercentage3Length { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusPercentage3Bytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetBonusPercentage3Bytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetBonusPercentage3Array() { return __p.__vector_as_array(24); } + + public static Offset CreateConquestGroupBonusExcel(FlatBufferBuilder builder, + long ConquestBonusId = 0, + VectorOffset School_Offset = default(VectorOffset), + uint RecommandLocalizeEtcId = 0, + VectorOffset BonusParcelTypeOffset = default(VectorOffset), + VectorOffset BonusIdOffset = default(VectorOffset), + VectorOffset BonusCharacterCount1Offset = default(VectorOffset), + VectorOffset BonusPercentage1Offset = default(VectorOffset), + VectorOffset BonusCharacterCount2Offset = default(VectorOffset), + VectorOffset BonusPercentage2Offset = default(VectorOffset), + VectorOffset BonusCharacterCount3Offset = default(VectorOffset), + VectorOffset BonusPercentage3Offset = default(VectorOffset)) { + builder.StartTable(11); + ConquestGroupBonusExcel.AddConquestBonusId(builder, ConquestBonusId); + ConquestGroupBonusExcel.AddBonusPercentage3(builder, BonusPercentage3Offset); + ConquestGroupBonusExcel.AddBonusCharacterCount3(builder, BonusCharacterCount3Offset); + ConquestGroupBonusExcel.AddBonusPercentage2(builder, BonusPercentage2Offset); + ConquestGroupBonusExcel.AddBonusCharacterCount2(builder, BonusCharacterCount2Offset); + ConquestGroupBonusExcel.AddBonusPercentage1(builder, BonusPercentage1Offset); + ConquestGroupBonusExcel.AddBonusCharacterCount1(builder, BonusCharacterCount1Offset); + ConquestGroupBonusExcel.AddBonusId(builder, BonusIdOffset); + ConquestGroupBonusExcel.AddBonusParcelType(builder, BonusParcelTypeOffset); + ConquestGroupBonusExcel.AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId); + ConquestGroupBonusExcel.AddSchool_(builder, School_Offset); + return ConquestGroupBonusExcel.EndConquestGroupBonusExcel(builder); + } + + public static void StartConquestGroupBonusExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddConquestBonusId(FlatBufferBuilder builder, long conquestBonusId) { builder.AddLong(0, conquestBonusId, 0); } + public static void AddSchool_(FlatBufferBuilder builder, VectorOffset school_Offset) { builder.AddOffset(1, school_Offset.Value, 0); } + public static VectorOffset CreateSchool_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] 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 CreateSchool_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSchool_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRecommandLocalizeEtcId(FlatBufferBuilder builder, uint recommandLocalizeEtcId) { builder.AddUint(2, recommandLocalizeEtcId, 0); } + public static void AddBonusParcelType(FlatBufferBuilder builder, VectorOffset bonusParcelTypeOffset) { builder.AddOffset(3, bonusParcelTypeOffset.Value, 0); } + public static VectorOffset CreateBonusParcelTypeVector(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 CreateBonusParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBonusId(FlatBufferBuilder builder, VectorOffset bonusIdOffset) { builder.AddOffset(4, bonusIdOffset.Value, 0); } + public static VectorOffset CreateBonusIdVector(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 CreateBonusIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBonusCharacterCount1(FlatBufferBuilder builder, VectorOffset bonusCharacterCount1Offset) { builder.AddOffset(5, bonusCharacterCount1Offset.Value, 0); } + public static VectorOffset CreateBonusCharacterCount1Vector(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 CreateBonusCharacterCount1VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusCharacterCount1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBonusPercentage1(FlatBufferBuilder builder, VectorOffset bonusPercentage1Offset) { builder.AddOffset(6, bonusPercentage1Offset.Value, 0); } + public static VectorOffset CreateBonusPercentage1Vector(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 CreateBonusPercentage1VectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage1VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage1VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusPercentage1Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBonusCharacterCount2(FlatBufferBuilder builder, VectorOffset bonusCharacterCount2Offset) { builder.AddOffset(7, bonusCharacterCount2Offset.Value, 0); } + public static VectorOffset CreateBonusCharacterCount2Vector(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 CreateBonusCharacterCount2VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusCharacterCount2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBonusPercentage2(FlatBufferBuilder builder, VectorOffset bonusPercentage2Offset) { builder.AddOffset(8, bonusPercentage2Offset.Value, 0); } + public static VectorOffset CreateBonusPercentage2Vector(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 CreateBonusPercentage2VectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage2VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage2VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusPercentage2Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBonusCharacterCount3(FlatBufferBuilder builder, VectorOffset bonusCharacterCount3Offset) { builder.AddOffset(9, bonusCharacterCount3Offset.Value, 0); } + public static VectorOffset CreateBonusCharacterCount3Vector(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 CreateBonusCharacterCount3VectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount3VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusCharacterCount3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusCharacterCount3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBonusPercentage3(FlatBufferBuilder builder, VectorOffset bonusPercentage3Offset) { builder.AddOffset(10, bonusPercentage3Offset.Value, 0); } + public static VectorOffset CreateBonusPercentage3Vector(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 CreateBonusPercentage3VectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage3VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentage3VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusPercentage3Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndConquestGroupBonusExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestGroupBonusExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ConquestBonusId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*School_*/, 4 /*SCHALE.Common.FlatData.School*/, false) + && verifier.VerifyField(tablePos, 8 /*RecommandLocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*BonusParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*BonusId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*BonusCharacterCount1*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*BonusPercentage1*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*BonusCharacterCount2*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*BonusPercentage2*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*BonusCharacterCount3*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*BonusPercentage3*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs b/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs new file mode 100644 index 0000000..e3f3cbf --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestGroupBonusExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestGroupBonusExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestGroupBonusExcelTable GetRootAsConquestGroupBonusExcelTable(ByteBuffer _bb) { return GetRootAsConquestGroupBonusExcelTable(_bb, new ConquestGroupBonusExcelTable()); } + public static ConquestGroupBonusExcelTable GetRootAsConquestGroupBonusExcelTable(ByteBuffer _bb, ConquestGroupBonusExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestGroupBonusExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestGroupBonusExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestGroupBonusExcel?)(new SCHALE.Common.FlatData.ConquestGroupBonusExcel()).__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 CreateConquestGroupBonusExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestGroupBonusExcelTable.AddDataList(builder, DataListOffset); + return ConquestGroupBonusExcelTable.EndConquestGroupBonusExcelTable(builder); + } + + public static void StartConquestGroupBonusExcelTable(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 EndConquestGroupBonusExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestGroupBonusExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestGroupBonusExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs b/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs new file mode 100644 index 0000000..b696739 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestGroupBuffExcel.cs @@ -0,0 +1,83 @@ +// +// 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 ConquestGroupBuffExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestGroupBuffExcel GetRootAsConquestGroupBuffExcel(ByteBuffer _bb) { return GetRootAsConquestGroupBuffExcel(_bb, new ConquestGroupBuffExcel()); } + public static ConquestGroupBuffExcel GetRootAsConquestGroupBuffExcel(ByteBuffer _bb, ConquestGroupBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestGroupBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ConquestBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.School School_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.School)0; } + public int School_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSchool_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetSchool_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.School[] GetSchool_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.School[] a = new SCHALE.Common.FlatData.School[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.School)__p.bb.GetInt(p + i * 4); } return a; } + public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string SkillGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillGroupIdBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array(10); } + + public static Offset CreateConquestGroupBuffExcel(FlatBufferBuilder builder, + long ConquestBuffId = 0, + VectorOffset School_Offset = default(VectorOffset), + uint RecommandLocalizeEtcId = 0, + StringOffset SkillGroupIdOffset = default(StringOffset)) { + builder.StartTable(4); + ConquestGroupBuffExcel.AddConquestBuffId(builder, ConquestBuffId); + ConquestGroupBuffExcel.AddSkillGroupId(builder, SkillGroupIdOffset); + ConquestGroupBuffExcel.AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId); + ConquestGroupBuffExcel.AddSchool_(builder, School_Offset); + return ConquestGroupBuffExcel.EndConquestGroupBuffExcel(builder); + } + + public static void StartConquestGroupBuffExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddConquestBuffId(FlatBufferBuilder builder, long conquestBuffId) { builder.AddLong(0, conquestBuffId, 0); } + public static void AddSchool_(FlatBufferBuilder builder, VectorOffset school_Offset) { builder.AddOffset(1, school_Offset.Value, 0); } + public static VectorOffset CreateSchool_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] 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 CreateSchool_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.School[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSchool_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSchool_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRecommandLocalizeEtcId(FlatBufferBuilder builder, uint recommandLocalizeEtcId) { builder.AddUint(2, recommandLocalizeEtcId, 0); } + public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(3, skillGroupIdOffset.Value, 0); } + public static Offset EndConquestGroupBuffExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestGroupBuffExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ConquestBuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*School_*/, 4 /*SCHALE.Common.FlatData.School*/, false) + && verifier.VerifyField(tablePos, 8 /*RecommandLocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*SkillGroupId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs b/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs new file mode 100644 index 0000000..e9d06f9 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestGroupBuffExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestGroupBuffExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestGroupBuffExcelTable GetRootAsConquestGroupBuffExcelTable(ByteBuffer _bb) { return GetRootAsConquestGroupBuffExcelTable(_bb, new ConquestGroupBuffExcelTable()); } + public static ConquestGroupBuffExcelTable GetRootAsConquestGroupBuffExcelTable(ByteBuffer _bb, ConquestGroupBuffExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestGroupBuffExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestGroupBuffExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestGroupBuffExcel?)(new SCHALE.Common.FlatData.ConquestGroupBuffExcel()).__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 CreateConquestGroupBuffExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestGroupBuffExcelTable.AddDataList(builder, DataListOffset); + return ConquestGroupBuffExcelTable.EndConquestGroupBuffExcelTable(builder); + } + + public static void StartConquestGroupBuffExcelTable(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 EndConquestGroupBuffExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestGroupBuffExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestGroupBuffExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestItemType.cs b/SCHALE.Common/FlatData/ConquestItemType.cs new file mode 100644 index 0000000..30c2ce5 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestItemType.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestItemType : int +{ + None = 0, + EventPoint = 1, + EventToken1 = 2, + EventToken2 = 3, + EventToken3 = 4, + EventToken4 = 5, + EventToken5 = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestMapExcel.cs b/SCHALE.Common/FlatData/ConquestMapExcel.cs new file mode 100644 index 0000000..4f2d7da --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestMapExcel.cs @@ -0,0 +1,164 @@ +// +// 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 ConquestMapExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestMapExcel GetRootAsConquestMapExcel(ByteBuffer _bb) { return GetRootAsConquestMapExcel(_bb, new ConquestMapExcel()); } + public static ConquestMapExcel GetRootAsConquestMapExcel(ByteBuffer _bb, ConquestMapExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestMapExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public int StepIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string ConquestMap { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetConquestMapBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetConquestMapBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetConquestMapArray() { return __p.__vector_as_array(12); } + public long StepEnterScenarioGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ConquestConditionType StepOpenConditionType(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConquestConditionType)0; } + public int StepOpenConditionTypeLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStepOpenConditionTypeBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetStepOpenConditionTypeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public SCHALE.Common.FlatData.ConquestConditionType[] GetStepOpenConditionTypeArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; } + public string StepOpenConditionParameter(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int StepOpenConditionParameterLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public string MapGoalLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMapGoalLocalizeBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetMapGoalLocalizeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetMapGoalLocalizeArray() { return __p.__vector_as_array(20); } + public string StepGoalLocalize { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStepGoalLocalizeBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetStepGoalLocalizeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetStepGoalLocalizeArray() { return __p.__vector_as_array(22); } + public string StepNameLocalize { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStepNameLocalizeBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetStepNameLocalizeBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetStepNameLocalizeArray() { return __p.__vector_as_array(24); } + public string ConquestMapBG { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetConquestMapBGBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetConquestMapBGBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetConquestMapBGArray() { return __p.__vector_as_array(26); } + public long CameraSettingId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateConquestMapExcel(FlatBufferBuilder builder, + long EventContentId = 0, + StringOffset DevNameOffset = default(StringOffset), + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + int StepIndex = 0, + StringOffset ConquestMapOffset = default(StringOffset), + long StepEnterScenarioGroupId = 0, + VectorOffset StepOpenConditionTypeOffset = default(VectorOffset), + VectorOffset StepOpenConditionParameterOffset = default(VectorOffset), + StringOffset MapGoalLocalizeOffset = default(StringOffset), + StringOffset StepGoalLocalizeOffset = default(StringOffset), + StringOffset StepNameLocalizeOffset = default(StringOffset), + StringOffset ConquestMapBGOffset = default(StringOffset), + long CameraSettingId = 0) { + builder.StartTable(13); + ConquestMapExcel.AddCameraSettingId(builder, CameraSettingId); + ConquestMapExcel.AddStepEnterScenarioGroupId(builder, StepEnterScenarioGroupId); + ConquestMapExcel.AddEventContentId(builder, EventContentId); + ConquestMapExcel.AddConquestMapBG(builder, ConquestMapBGOffset); + ConquestMapExcel.AddStepNameLocalize(builder, StepNameLocalizeOffset); + ConquestMapExcel.AddStepGoalLocalize(builder, StepGoalLocalizeOffset); + ConquestMapExcel.AddMapGoalLocalize(builder, MapGoalLocalizeOffset); + ConquestMapExcel.AddStepOpenConditionParameter(builder, StepOpenConditionParameterOffset); + ConquestMapExcel.AddStepOpenConditionType(builder, StepOpenConditionTypeOffset); + ConquestMapExcel.AddConquestMap(builder, ConquestMapOffset); + ConquestMapExcel.AddStepIndex(builder, StepIndex); + ConquestMapExcel.AddMapDifficulty(builder, MapDifficulty); + ConquestMapExcel.AddDevName(builder, DevNameOffset); + return ConquestMapExcel.EndConquestMapExcel(builder); + } + + public static void StartConquestMapExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty mapDifficulty) { builder.AddInt(2, (int)mapDifficulty, 0); } + public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(3, stepIndex, 0); } + public static void AddConquestMap(FlatBufferBuilder builder, StringOffset conquestMapOffset) { builder.AddOffset(4, conquestMapOffset.Value, 0); } + public static void AddStepEnterScenarioGroupId(FlatBufferBuilder builder, long stepEnterScenarioGroupId) { builder.AddLong(5, stepEnterScenarioGroupId, 0); } + public static void AddStepOpenConditionType(FlatBufferBuilder builder, VectorOffset stepOpenConditionTypeOffset) { builder.AddOffset(6, stepOpenConditionTypeOffset.Value, 0); } + public static VectorOffset CreateStepOpenConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] 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 CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStepOpenConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStepOpenConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStepOpenConditionParameter(FlatBufferBuilder builder, VectorOffset stepOpenConditionParameterOffset) { builder.AddOffset(7, stepOpenConditionParameterOffset.Value, 0); } + public static VectorOffset CreateStepOpenConditionParameterVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStepOpenConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStepOpenConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMapGoalLocalize(FlatBufferBuilder builder, StringOffset mapGoalLocalizeOffset) { builder.AddOffset(8, mapGoalLocalizeOffset.Value, 0); } + public static void AddStepGoalLocalize(FlatBufferBuilder builder, StringOffset stepGoalLocalizeOffset) { builder.AddOffset(9, stepGoalLocalizeOffset.Value, 0); } + public static void AddStepNameLocalize(FlatBufferBuilder builder, StringOffset stepNameLocalizeOffset) { builder.AddOffset(10, stepNameLocalizeOffset.Value, 0); } + public static void AddConquestMapBG(FlatBufferBuilder builder, StringOffset conquestMapBGOffset) { builder.AddOffset(11, conquestMapBGOffset.Value, 0); } + public static void AddCameraSettingId(FlatBufferBuilder builder, long cameraSettingId) { builder.AddLong(12, cameraSettingId, 0); } + public static Offset EndConquestMapExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestMapExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*MapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*StepIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*ConquestMap*/, false) + && verifier.VerifyField(tablePos, 14 /*StepEnterScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*StepOpenConditionType*/, 4 /*SCHALE.Common.FlatData.ConquestConditionType*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*StepOpenConditionParameter*/, false) + && verifier.VerifyString(tablePos, 20 /*MapGoalLocalize*/, false) + && verifier.VerifyString(tablePos, 22 /*StepGoalLocalize*/, false) + && verifier.VerifyString(tablePos, 24 /*StepNameLocalize*/, false) + && verifier.VerifyString(tablePos, 26 /*ConquestMapBG*/, false) + && verifier.VerifyField(tablePos, 28 /*CameraSettingId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestMapExcelTable.cs b/SCHALE.Common/FlatData/ConquestMapExcelTable.cs new file mode 100644 index 0000000..fc6d121 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestMapExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestMapExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestMapExcelTable GetRootAsConquestMapExcelTable(ByteBuffer _bb) { return GetRootAsConquestMapExcelTable(_bb, new ConquestMapExcelTable()); } + public static ConquestMapExcelTable GetRootAsConquestMapExcelTable(ByteBuffer _bb, ConquestMapExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestMapExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestMapExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestMapExcel?)(new SCHALE.Common.FlatData.ConquestMapExcel()).__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 CreateConquestMapExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestMapExcelTable.AddDataList(builder, DataListOffset); + return ConquestMapExcelTable.EndConquestMapExcelTable(builder); + } + + public static void StartConquestMapExcelTable(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 EndConquestMapExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestMapExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestMapExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestObjectExcel.cs b/SCHALE.Common/FlatData/ConquestObjectExcel.cs new file mode 100644 index 0000000..f9e9a2e --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestObjectExcel.cs @@ -0,0 +1,117 @@ +// +// 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 ConquestObjectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestObjectExcel GetRootAsConquestObjectExcel(ByteBuffer _bb) { return GetRootAsConquestObjectExcel(_bb, new ConquestObjectExcel()); } + public static ConquestObjectExcel GetRootAsConquestObjectExcel(ByteBuffer _bb, ConquestObjectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestObjectExcel __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.ConquestObjectType ConquestObjectType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestObjectType.None; } } + public uint Key { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Name { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(12); } + public string PrefabName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType { 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 ConquestRewardID { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ConquestRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Disposable { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int StepIndex { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StepObjectCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConquestObjectExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType = SCHALE.Common.FlatData.ConquestObjectType.None, + uint Key = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset PrefabNameOffset = default(StringOffset), + SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ConquestRewardID = 0, + int ConquestRewardAmount = 0, + bool Disposable = false, + int StepIndex = 0, + int StepObjectCount = 0) { + builder.StartTable(12); + ConquestObjectExcel.AddConquestRewardID(builder, ConquestRewardID); + ConquestObjectExcel.AddEventContentId(builder, EventContentId); + ConquestObjectExcel.AddId(builder, Id); + ConquestObjectExcel.AddStepObjectCount(builder, StepObjectCount); + ConquestObjectExcel.AddStepIndex(builder, StepIndex); + ConquestObjectExcel.AddConquestRewardAmount(builder, ConquestRewardAmount); + ConquestObjectExcel.AddConquestRewardParcelType(builder, ConquestRewardParcelType); + ConquestObjectExcel.AddPrefabName(builder, PrefabNameOffset); + ConquestObjectExcel.AddName(builder, NameOffset); + ConquestObjectExcel.AddKey(builder, Key); + ConquestObjectExcel.AddConquestObjectType(builder, ConquestObjectType); + ConquestObjectExcel.AddDisposable(builder, Disposable); + return ConquestObjectExcel.EndConquestObjectExcel(builder); + } + + public static void StartConquestObjectExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + 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 AddConquestObjectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestObjectType conquestObjectType) { builder.AddInt(2, (int)conquestObjectType, 0); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(3, key, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(4, nameOffset.Value, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(5, prefabNameOffset.Value, 0); } + public static void AddConquestRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType conquestRewardParcelType) { builder.AddInt(6, (int)conquestRewardParcelType, 0); } + public static void AddConquestRewardID(FlatBufferBuilder builder, long conquestRewardID) { builder.AddLong(7, conquestRewardID, 0); } + public static void AddConquestRewardAmount(FlatBufferBuilder builder, int conquestRewardAmount) { builder.AddInt(8, conquestRewardAmount, 0); } + public static void AddDisposable(FlatBufferBuilder builder, bool disposable) { builder.AddBool(9, disposable, false); } + public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(10, stepIndex, 0); } + public static void AddStepObjectCount(FlatBufferBuilder builder, int stepObjectCount) { builder.AddInt(11, stepObjectCount, 0); } + public static Offset EndConquestObjectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestObjectExcelVerify +{ + 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 /*ConquestObjectType*/, 4 /*SCHALE.Common.FlatData.ConquestObjectType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*Name*/, false) + && verifier.VerifyString(tablePos, 14 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 16 /*ConquestRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ConquestRewardID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ConquestRewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*Disposable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*StepIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*StepObjectCount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs b/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs new file mode 100644 index 0000000..f5e65a0 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestObjectExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestObjectExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestObjectExcelTable GetRootAsConquestObjectExcelTable(ByteBuffer _bb) { return GetRootAsConquestObjectExcelTable(_bb, new ConquestObjectExcelTable()); } + public static ConquestObjectExcelTable GetRootAsConquestObjectExcelTable(ByteBuffer _bb, ConquestObjectExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestObjectExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestObjectExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestObjectExcel?)(new SCHALE.Common.FlatData.ConquestObjectExcel()).__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 CreateConquestObjectExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestObjectExcelTable.AddDataList(builder, DataListOffset); + return ConquestObjectExcelTable.EndConquestObjectExcelTable(builder); + } + + public static void StartConquestObjectExcelTable(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 EndConquestObjectExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestObjectExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestObjectExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestObjectType.cs b/SCHALE.Common/FlatData/ConquestObjectType.cs new file mode 100644 index 0000000..1882c62 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestObjectType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestObjectType : int +{ + None = 0, + ParcelOneTimePerAccount = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs b/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs new file mode 100644 index 0000000..fca7a9a --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestPlayGuideExcel.cs @@ -0,0 +1,93 @@ +// +// 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 ConquestPlayGuideExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestPlayGuideExcel GetRootAsConquestPlayGuideExcel(ByteBuffer _bb) { return GetRootAsConquestPlayGuideExcel(_bb, new ConquestPlayGuideExcel()); } + public static ConquestPlayGuideExcel GetRootAsConquestPlayGuideExcel(ByteBuffer _bb, ConquestPlayGuideExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestPlayGuideExcel __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 int DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string GuideTitle { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTitleBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetGuideTitleBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetGuideTitleArray() { return __p.__vector_as_array(10); } + public string GuideImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetGuideImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetGuideImagePathArray() { return __p.__vector_as_array(12); } + public string GuideText { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTextBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGuideTextBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGuideTextArray() { return __p.__vector_as_array(14); } + + public static Offset CreateConquestPlayGuideExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + int DisplayOrder = 0, + StringOffset GuideTitleOffset = default(StringOffset), + StringOffset GuideImagePathOffset = default(StringOffset), + StringOffset GuideTextOffset = default(StringOffset)) { + builder.StartTable(6); + ConquestPlayGuideExcel.AddEventContentId(builder, EventContentId); + ConquestPlayGuideExcel.AddId(builder, Id); + ConquestPlayGuideExcel.AddGuideText(builder, GuideTextOffset); + ConquestPlayGuideExcel.AddGuideImagePath(builder, GuideImagePathOffset); + ConquestPlayGuideExcel.AddGuideTitle(builder, GuideTitleOffset); + ConquestPlayGuideExcel.AddDisplayOrder(builder, DisplayOrder); + return ConquestPlayGuideExcel.EndConquestPlayGuideExcel(builder); + } + + public static void StartConquestPlayGuideExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + 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 AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(2, displayOrder, 0); } + public static void AddGuideTitle(FlatBufferBuilder builder, StringOffset guideTitleOffset) { builder.AddOffset(3, guideTitleOffset.Value, 0); } + public static void AddGuideImagePath(FlatBufferBuilder builder, StringOffset guideImagePathOffset) { builder.AddOffset(4, guideImagePathOffset.Value, 0); } + public static void AddGuideText(FlatBufferBuilder builder, StringOffset guideTextOffset) { builder.AddOffset(5, guideTextOffset.Value, 0); } + public static Offset EndConquestPlayGuideExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestPlayGuideExcelVerify +{ + 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 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*GuideTitle*/, false) + && verifier.VerifyString(tablePos, 12 /*GuideImagePath*/, false) + && verifier.VerifyString(tablePos, 14 /*GuideText*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs b/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs new file mode 100644 index 0000000..1731838 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestPlayGuideExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestPlayGuideExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestPlayGuideExcelTable GetRootAsConquestPlayGuideExcelTable(ByteBuffer _bb) { return GetRootAsConquestPlayGuideExcelTable(_bb, new ConquestPlayGuideExcelTable()); } + public static ConquestPlayGuideExcelTable GetRootAsConquestPlayGuideExcelTable(ByteBuffer _bb, ConquestPlayGuideExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestPlayGuideExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestPlayGuideExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestPlayGuideExcel?)(new SCHALE.Common.FlatData.ConquestPlayGuideExcel()).__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 CreateConquestPlayGuideExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestPlayGuideExcelTable.AddDataList(builder, DataListOffset); + return ConquestPlayGuideExcelTable.EndConquestPlayGuideExcelTable(builder); + } + + public static void StartConquestPlayGuideExcelTable(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 EndConquestPlayGuideExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestPlayGuideExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestPlayGuideExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs new file mode 100644 index 0000000..9e74d81 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs @@ -0,0 +1,99 @@ +// +// 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 ConquestProgressResourceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestProgressResourceExcel GetRootAsConquestProgressResourceExcel(ByteBuffer _bb) { return GetRootAsConquestProgressResourceExcel(_bb, new ConquestProgressResourceExcel()); } + public static ConquestProgressResourceExcel GetRootAsConquestProgressResourceExcel(ByteBuffer _bb, ConquestProgressResourceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestProgressResourceExcel __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.ConquestProgressType Group { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestProgressType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestProgressType.None; } } + public string ProgressResource { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProgressResourceBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetProgressResourceBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetProgressResourceArray() { return __p.__vector_as_array(10); } + public uint VoiceId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(12); } + public string ProgressLocalizeCode { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProgressLocalizeCodeBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetProgressLocalizeCodeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetProgressLocalizeCodeArray() { return __p.__vector_as_array(14); } + + public static Offset CreateConquestProgressResourceExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.ConquestProgressType Group = SCHALE.Common.FlatData.ConquestProgressType.None, + StringOffset ProgressResourceOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + StringOffset ProgressLocalizeCodeOffset = default(StringOffset)) { + builder.StartTable(6); + ConquestProgressResourceExcel.AddEventContentId(builder, EventContentId); + ConquestProgressResourceExcel.AddId(builder, Id); + ConquestProgressResourceExcel.AddProgressLocalizeCode(builder, ProgressLocalizeCodeOffset); + ConquestProgressResourceExcel.AddVoiceId(builder, VoiceIdOffset); + ConquestProgressResourceExcel.AddProgressResource(builder, ProgressResourceOffset); + ConquestProgressResourceExcel.AddGroup(builder, Group); + return ConquestProgressResourceExcel.EndConquestProgressResourceExcel(builder); + } + + public static void StartConquestProgressResourceExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + 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 AddGroup(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestProgressType group) { builder.AddInt(2, (int)group, 0); } + public static void AddProgressResource(FlatBufferBuilder builder, StringOffset progressResourceOffset) { builder.AddOffset(3, progressResourceOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(4, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddProgressLocalizeCode(FlatBufferBuilder builder, StringOffset progressLocalizeCodeOffset) { builder.AddOffset(5, progressLocalizeCodeOffset.Value, 0); } + public static Offset EndConquestProgressResourceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestProgressResourceExcelVerify +{ + 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 /*Group*/, 4 /*SCHALE.Common.FlatData.ConquestProgressType*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*ProgressResource*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyString(tablePos, 14 /*ProgressLocalizeCode*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs b/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs new file mode 100644 index 0000000..cfdea91 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestProgressResourceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestProgressResourceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestProgressResourceExcelTable GetRootAsConquestProgressResourceExcelTable(ByteBuffer _bb) { return GetRootAsConquestProgressResourceExcelTable(_bb, new ConquestProgressResourceExcelTable()); } + public static ConquestProgressResourceExcelTable GetRootAsConquestProgressResourceExcelTable(ByteBuffer _bb, ConquestProgressResourceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestProgressResourceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestProgressResourceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestProgressResourceExcel?)(new SCHALE.Common.FlatData.ConquestProgressResourceExcel()).__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 CreateConquestProgressResourceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestProgressResourceExcelTable.AddDataList(builder, DataListOffset); + return ConquestProgressResourceExcelTable.EndConquestProgressResourceExcelTable(builder); + } + + public static void StartConquestProgressResourceExcelTable(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 EndConquestProgressResourceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestProgressResourceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestProgressResourceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestProgressType.cs b/SCHALE.Common/FlatData/ConquestProgressType.cs new file mode 100644 index 0000000..a65de6d --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestProgressType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestProgressType : int +{ + None = 0, + Upgrade = 1, + Manage = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestRewardExcel.cs b/SCHALE.Common/FlatData/ConquestRewardExcel.cs new file mode 100644 index 0000000..c8d2701 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 ConquestRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestRewardExcel GetRootAsConquestRewardExcel(ByteBuffer _bb) { return GetRootAsConquestRewardExcel(_bb, new ConquestRewardExcel()); } + public static ConquestRewardExcel GetRootAsConquestRewardExcel(ByteBuffer _bb, ConquestRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateConquestRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + ConquestRewardExcel.AddRewardId(builder, RewardId); + ConquestRewardExcel.AddGroupId(builder, GroupId); + ConquestRewardExcel.AddRewardAmount(builder, RewardAmount); + ConquestRewardExcel.AddRewardParcelType(builder, RewardParcelType); + ConquestRewardExcel.AddRewardProb(builder, RewardProb); + ConquestRewardExcel.AddRewardTag(builder, RewardTag); + ConquestRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return ConquestRewardExcel.EndConquestRewardExcel(builder); + } + + public static void StartConquestRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(2, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndConquestRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs b/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs new file mode 100644 index 0000000..aa62610 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestRewardExcelTable GetRootAsConquestRewardExcelTable(ByteBuffer _bb) { return GetRootAsConquestRewardExcelTable(_bb, new ConquestRewardExcelTable()); } + public static ConquestRewardExcelTable GetRootAsConquestRewardExcelTable(ByteBuffer _bb, ConquestRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestRewardExcel?)(new SCHALE.Common.FlatData.ConquestRewardExcel()).__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 CreateConquestRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestRewardExcelTable.AddDataList(builder, DataListOffset); + return ConquestRewardExcelTable.EndConquestRewardExcelTable(builder); + } + + public static void StartConquestRewardExcelTable(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 EndConquestRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestStepExcel.cs b/SCHALE.Common/FlatData/ConquestStepExcel.cs new file mode 100644 index 0000000..e443d30 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestStepExcel.cs @@ -0,0 +1,129 @@ +// +// 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 ConquestStepExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestStepExcel GetRootAsConquestStepExcel(ByteBuffer _bb) { return GetRootAsConquestStepExcel(_bb, new ConquestStepExcel()); } + public static ConquestStepExcel GetRootAsConquestStepExcel(ByteBuffer _bb, ConquestStepExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestStepExcel __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.StageDifficulty MapDifficulty { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public int Step { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string StepGoalLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStepGoalLocalizeBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetStepGoalLocalizeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetStepGoalLocalizeArray() { return __p.__vector_as_array(10); } + public long StepEnterScenarioGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StepEnterItemType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long StepEnterItemUniqueId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StepEnterItemAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UnexpectedEventUnitId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int UnexpectedEventUnitIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetUnexpectedEventUnitIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetUnexpectedEventUnitIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetUnexpectedEventUnitIdArray() { return __p.__vector_as_array(20); } + public string UnexpectedEventPrefab { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUnexpectedEventPrefabBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetUnexpectedEventPrefabBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetUnexpectedEventPrefabArray() { return __p.__vector_as_array(22); } + public long TreasureBoxObjectId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int TreasureBoxCountPerStepOpen { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConquestStepExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + int Step = 0, + StringOffset StepGoalLocalizeOffset = default(StringOffset), + long StepEnterScenarioGroupId = 0, + SCHALE.Common.FlatData.ParcelType StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None, + long StepEnterItemUniqueId = 0, + long StepEnterItemAmount = 0, + VectorOffset UnexpectedEventUnitIdOffset = default(VectorOffset), + StringOffset UnexpectedEventPrefabOffset = default(StringOffset), + long TreasureBoxObjectId = 0, + int TreasureBoxCountPerStepOpen = 0) { + builder.StartTable(12); + ConquestStepExcel.AddTreasureBoxObjectId(builder, TreasureBoxObjectId); + ConquestStepExcel.AddStepEnterItemAmount(builder, StepEnterItemAmount); + ConquestStepExcel.AddStepEnterItemUniqueId(builder, StepEnterItemUniqueId); + ConquestStepExcel.AddStepEnterScenarioGroupId(builder, StepEnterScenarioGroupId); + ConquestStepExcel.AddEventContentId(builder, EventContentId); + ConquestStepExcel.AddTreasureBoxCountPerStepOpen(builder, TreasureBoxCountPerStepOpen); + ConquestStepExcel.AddUnexpectedEventPrefab(builder, UnexpectedEventPrefabOffset); + ConquestStepExcel.AddUnexpectedEventUnitId(builder, UnexpectedEventUnitIdOffset); + ConquestStepExcel.AddStepEnterItemType(builder, StepEnterItemType); + ConquestStepExcel.AddStepGoalLocalize(builder, StepGoalLocalizeOffset); + ConquestStepExcel.AddStep(builder, Step); + ConquestStepExcel.AddMapDifficulty(builder, MapDifficulty); + return ConquestStepExcel.EndConquestStepExcel(builder); + } + + public static void StartConquestStepExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty mapDifficulty) { builder.AddInt(1, (int)mapDifficulty, 0); } + public static void AddStep(FlatBufferBuilder builder, int step) { builder.AddInt(2, step, 0); } + public static void AddStepGoalLocalize(FlatBufferBuilder builder, StringOffset stepGoalLocalizeOffset) { builder.AddOffset(3, stepGoalLocalizeOffset.Value, 0); } + public static void AddStepEnterScenarioGroupId(FlatBufferBuilder builder, long stepEnterScenarioGroupId) { builder.AddLong(4, stepEnterScenarioGroupId, 0); } + public static void AddStepEnterItemType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stepEnterItemType) { builder.AddInt(5, (int)stepEnterItemType, 0); } + public static void AddStepEnterItemUniqueId(FlatBufferBuilder builder, long stepEnterItemUniqueId) { builder.AddLong(6, stepEnterItemUniqueId, 0); } + public static void AddStepEnterItemAmount(FlatBufferBuilder builder, long stepEnterItemAmount) { builder.AddLong(7, stepEnterItemAmount, 0); } + public static void AddUnexpectedEventUnitId(FlatBufferBuilder builder, VectorOffset unexpectedEventUnitIdOffset) { builder.AddOffset(8, unexpectedEventUnitIdOffset.Value, 0); } + public static VectorOffset CreateUnexpectedEventUnitIdVector(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 CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUnexpectedEventUnitIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddUnexpectedEventPrefab(FlatBufferBuilder builder, StringOffset unexpectedEventPrefabOffset) { builder.AddOffset(9, unexpectedEventPrefabOffset.Value, 0); } + public static void AddTreasureBoxObjectId(FlatBufferBuilder builder, long treasureBoxObjectId) { builder.AddLong(10, treasureBoxObjectId, 0); } + public static void AddTreasureBoxCountPerStepOpen(FlatBufferBuilder builder, int treasureBoxCountPerStepOpen) { builder.AddInt(11, treasureBoxCountPerStepOpen, 0); } + public static Offset EndConquestStepExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestStepExcelVerify +{ + 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 /*MapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Step*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*StepGoalLocalize*/, false) + && verifier.VerifyField(tablePos, 12 /*StepEnterScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*StepEnterItemType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StepEnterItemUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*StepEnterItemAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*UnexpectedEventUnitId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 22 /*UnexpectedEventPrefab*/, false) + && verifier.VerifyField(tablePos, 24 /*TreasureBoxObjectId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*TreasureBoxCountPerStepOpen*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestStepExcelTable.cs b/SCHALE.Common/FlatData/ConquestStepExcelTable.cs new file mode 100644 index 0000000..db1cfec --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestStepExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestStepExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestStepExcelTable GetRootAsConquestStepExcelTable(ByteBuffer _bb) { return GetRootAsConquestStepExcelTable(_bb, new ConquestStepExcelTable()); } + public static ConquestStepExcelTable GetRootAsConquestStepExcelTable(ByteBuffer _bb, ConquestStepExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestStepExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestStepExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestStepExcel?)(new SCHALE.Common.FlatData.ConquestStepExcel()).__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 CreateConquestStepExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestStepExcelTable.AddDataList(builder, DataListOffset); + return ConquestStepExcelTable.EndConquestStepExcelTable(builder); + } + + public static void StartConquestStepExcelTable(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 EndConquestStepExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestStepExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestStepExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestTeamType.cs b/SCHALE.Common/FlatData/ConquestTeamType.cs new file mode 100644 index 0000000..741dfd8 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestTeamType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestTeamType : int +{ + None = 0, + Team1 = 1, + Team2 = 2, + Team3 = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestTileExcel.cs b/SCHALE.Common/FlatData/ConquestTileExcel.cs new file mode 100644 index 0000000..a2f8c11 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestTileExcel.cs @@ -0,0 +1,194 @@ +// +// 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 ConquestTileExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestTileExcel GetRootAsConquestTileExcel(ByteBuffer _bb) { return GetRootAsConquestTileExcel(_bb, new ConquestTileExcel()); } + public static ConquestTileExcel GetRootAsConquestTileExcel(ByteBuffer _bb, ConquestTileExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestTileExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public long EventId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Step { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string PrefabName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(12); } + public string TileNameLocalize { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTileNameLocalizeBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetTileNameLocalizeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetTileNameLocalizeArray() { return __p.__vector_as_array(14); } + public string TileImageName { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTileImageNameBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetTileImageNameBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetTileImageNameArray() { return __p.__vector_as_array(16); } + public bool Playable { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ConquestTileType TileType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ConquestTileType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTileType.None; } } + public bool NotMapFog { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GroupBonusId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ConquestCostType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ConquestCostId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ConquestCostAmount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ManageCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ManageCostId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ManageCostAmount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long ConquestRewardId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MassErosionId { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType Upgrade2CostType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long Upgrade2CostId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Upgrade2CostAmount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType Upgrade3CostType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long Upgrade3CostId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Upgrade3CostAmount { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConquestTileExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset), + long EventId = 0, + int Step = 0, + StringOffset PrefabNameOffset = default(StringOffset), + StringOffset TileNameLocalizeOffset = default(StringOffset), + StringOffset TileImageNameOffset = default(StringOffset), + bool Playable = false, + SCHALE.Common.FlatData.ConquestTileType TileType = SCHALE.Common.FlatData.ConquestTileType.None, + bool NotMapFog = false, + long GroupBonusId = 0, + SCHALE.Common.FlatData.ParcelType ConquestCostType = SCHALE.Common.FlatData.ParcelType.None, + long ConquestCostId = 0, + int ConquestCostAmount = 0, + SCHALE.Common.FlatData.ParcelType ManageCostType = SCHALE.Common.FlatData.ParcelType.None, + long ManageCostId = 0, + int ManageCostAmount = 0, + long ConquestRewardId = 0, + long MassErosionId = 0, + SCHALE.Common.FlatData.ParcelType Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None, + long Upgrade2CostId = 0, + int Upgrade2CostAmount = 0, + SCHALE.Common.FlatData.ParcelType Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None, + long Upgrade3CostId = 0, + int Upgrade3CostAmount = 0) { + builder.StartTable(25); + ConquestTileExcel.AddUpgrade3CostId(builder, Upgrade3CostId); + ConquestTileExcel.AddUpgrade2CostId(builder, Upgrade2CostId); + ConquestTileExcel.AddMassErosionId(builder, MassErosionId); + ConquestTileExcel.AddConquestRewardId(builder, ConquestRewardId); + ConquestTileExcel.AddManageCostId(builder, ManageCostId); + ConquestTileExcel.AddConquestCostId(builder, ConquestCostId); + ConquestTileExcel.AddGroupBonusId(builder, GroupBonusId); + ConquestTileExcel.AddEventId(builder, EventId); + ConquestTileExcel.AddId(builder, Id); + ConquestTileExcel.AddUpgrade3CostAmount(builder, Upgrade3CostAmount); + ConquestTileExcel.AddUpgrade3CostType(builder, Upgrade3CostType); + ConquestTileExcel.AddUpgrade2CostAmount(builder, Upgrade2CostAmount); + ConquestTileExcel.AddUpgrade2CostType(builder, Upgrade2CostType); + ConquestTileExcel.AddManageCostAmount(builder, ManageCostAmount); + ConquestTileExcel.AddManageCostType(builder, ManageCostType); + ConquestTileExcel.AddConquestCostAmount(builder, ConquestCostAmount); + ConquestTileExcel.AddConquestCostType(builder, ConquestCostType); + ConquestTileExcel.AddTileType(builder, TileType); + ConquestTileExcel.AddTileImageName(builder, TileImageNameOffset); + ConquestTileExcel.AddTileNameLocalize(builder, TileNameLocalizeOffset); + ConquestTileExcel.AddPrefabName(builder, PrefabNameOffset); + ConquestTileExcel.AddStep(builder, Step); + ConquestTileExcel.AddName(builder, NameOffset); + ConquestTileExcel.AddNotMapFog(builder, NotMapFog); + ConquestTileExcel.AddPlayable(builder, Playable); + return ConquestTileExcel.EndConquestTileExcel(builder); + } + + public static void StartConquestTileExcel(FlatBufferBuilder builder) { builder.StartTable(25); } + 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 AddEventId(FlatBufferBuilder builder, long eventId) { builder.AddLong(2, eventId, 0); } + public static void AddStep(FlatBufferBuilder builder, int step) { builder.AddInt(3, step, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(4, prefabNameOffset.Value, 0); } + public static void AddTileNameLocalize(FlatBufferBuilder builder, StringOffset tileNameLocalizeOffset) { builder.AddOffset(5, tileNameLocalizeOffset.Value, 0); } + public static void AddTileImageName(FlatBufferBuilder builder, StringOffset tileImageNameOffset) { builder.AddOffset(6, tileImageNameOffset.Value, 0); } + public static void AddPlayable(FlatBufferBuilder builder, bool playable) { builder.AddBool(7, playable, false); } + public static void AddTileType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestTileType tileType) { builder.AddInt(8, (int)tileType, 0); } + public static void AddNotMapFog(FlatBufferBuilder builder, bool notMapFog) { builder.AddBool(9, notMapFog, false); } + public static void AddGroupBonusId(FlatBufferBuilder builder, long groupBonusId) { builder.AddLong(10, groupBonusId, 0); } + public static void AddConquestCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType conquestCostType) { builder.AddInt(11, (int)conquestCostType, 0); } + public static void AddConquestCostId(FlatBufferBuilder builder, long conquestCostId) { builder.AddLong(12, conquestCostId, 0); } + public static void AddConquestCostAmount(FlatBufferBuilder builder, int conquestCostAmount) { builder.AddInt(13, conquestCostAmount, 0); } + public static void AddManageCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType manageCostType) { builder.AddInt(14, (int)manageCostType, 0); } + public static void AddManageCostId(FlatBufferBuilder builder, long manageCostId) { builder.AddLong(15, manageCostId, 0); } + public static void AddManageCostAmount(FlatBufferBuilder builder, int manageCostAmount) { builder.AddInt(16, manageCostAmount, 0); } + public static void AddConquestRewardId(FlatBufferBuilder builder, long conquestRewardId) { builder.AddLong(17, conquestRewardId, 0); } + public static void AddMassErosionId(FlatBufferBuilder builder, long massErosionId) { builder.AddLong(18, massErosionId, 0); } + public static void AddUpgrade2CostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType upgrade2CostType) { builder.AddInt(19, (int)upgrade2CostType, 0); } + public static void AddUpgrade2CostId(FlatBufferBuilder builder, long upgrade2CostId) { builder.AddLong(20, upgrade2CostId, 0); } + public static void AddUpgrade2CostAmount(FlatBufferBuilder builder, int upgrade2CostAmount) { builder.AddInt(21, upgrade2CostAmount, 0); } + public static void AddUpgrade3CostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType upgrade3CostType) { builder.AddInt(22, (int)upgrade3CostType, 0); } + public static void AddUpgrade3CostId(FlatBufferBuilder builder, long upgrade3CostId) { builder.AddLong(23, upgrade3CostId, 0); } + public static void AddUpgrade3CostAmount(FlatBufferBuilder builder, int upgrade3CostAmount) { builder.AddInt(24, upgrade3CostAmount, 0); } + public static Offset EndConquestTileExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestTileExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*EventId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Step*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*PrefabName*/, false) + && verifier.VerifyString(tablePos, 14 /*TileNameLocalize*/, false) + && verifier.VerifyString(tablePos, 16 /*TileImageName*/, false) + && verifier.VerifyField(tablePos, 18 /*Playable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 20 /*TileType*/, 4 /*SCHALE.Common.FlatData.ConquestTileType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*NotMapFog*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*GroupBonusId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ConquestCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*ConquestCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*ConquestCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*ManageCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*ManageCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*ManageCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*ConquestRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*MassErosionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*Upgrade2CostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*Upgrade2CostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*Upgrade2CostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*Upgrade3CostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*Upgrade3CostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*Upgrade3CostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestTileExcelTable.cs b/SCHALE.Common/FlatData/ConquestTileExcelTable.cs new file mode 100644 index 0000000..304c24a --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestTileExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestTileExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestTileExcelTable GetRootAsConquestTileExcelTable(ByteBuffer _bb) { return GetRootAsConquestTileExcelTable(_bb, new ConquestTileExcelTable()); } + public static ConquestTileExcelTable GetRootAsConquestTileExcelTable(ByteBuffer _bb, ConquestTileExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestTileExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestTileExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestTileExcel?)(new SCHALE.Common.FlatData.ConquestTileExcel()).__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 CreateConquestTileExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestTileExcelTable.AddDataList(builder, DataListOffset); + return ConquestTileExcelTable.EndConquestTileExcelTable(builder); + } + + public static void StartConquestTileExcelTable(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 EndConquestTileExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestTileExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestTileExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestTileType.cs b/SCHALE.Common/FlatData/ConquestTileType.cs new file mode 100644 index 0000000..d6285cf --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestTileType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConquestTileType : int +{ + None = 0, + Start = 1, + Normal = 2, + Battle = 3, + Base = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs new file mode 100644 index 0000000..52794eb --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs @@ -0,0 +1,103 @@ +// +// 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 ConquestUnexpectedEventExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestUnexpectedEventExcel GetRootAsConquestUnexpectedEventExcel(ByteBuffer _bb) { return GetRootAsConquestUnexpectedEventExcel(_bb, new ConquestUnexpectedEventExcel()); } + public static ConquestUnexpectedEventExcel GetRootAsConquestUnexpectedEventExcel(ByteBuffer _bb, ConquestUnexpectedEventExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestUnexpectedEventExcel __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.ParcelType UnexpectedEventConditionType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long UnexpectedEventConditionUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UnexpectedEventConditionAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int UnexpectedEventOccurDailyLimitCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int UnitCountPerStep { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string UnexpectedEventPrefab(int j) { int o = __p.__offset(16); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int UnexpectedEventPrefabLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + public long UnexpectedEventUnitId(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int UnexpectedEventUnitIdLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetUnexpectedEventUnitIdBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetUnexpectedEventUnitIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetUnexpectedEventUnitIdArray() { return __p.__vector_as_array(18); } + + public static Offset CreateConquestUnexpectedEventExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None, + long UnexpectedEventConditionUniqueId = 0, + long UnexpectedEventConditionAmount = 0, + int UnexpectedEventOccurDailyLimitCount = 0, + int UnitCountPerStep = 0, + VectorOffset UnexpectedEventPrefabOffset = default(VectorOffset), + VectorOffset UnexpectedEventUnitIdOffset = default(VectorOffset)) { + builder.StartTable(8); + ConquestUnexpectedEventExcel.AddUnexpectedEventConditionAmount(builder, UnexpectedEventConditionAmount); + ConquestUnexpectedEventExcel.AddUnexpectedEventConditionUniqueId(builder, UnexpectedEventConditionUniqueId); + ConquestUnexpectedEventExcel.AddEventContentId(builder, EventContentId); + ConquestUnexpectedEventExcel.AddUnexpectedEventUnitId(builder, UnexpectedEventUnitIdOffset); + ConquestUnexpectedEventExcel.AddUnexpectedEventPrefab(builder, UnexpectedEventPrefabOffset); + ConquestUnexpectedEventExcel.AddUnitCountPerStep(builder, UnitCountPerStep); + ConquestUnexpectedEventExcel.AddUnexpectedEventOccurDailyLimitCount(builder, UnexpectedEventOccurDailyLimitCount); + ConquestUnexpectedEventExcel.AddUnexpectedEventConditionType(builder, UnexpectedEventConditionType); + return ConquestUnexpectedEventExcel.EndConquestUnexpectedEventExcel(builder); + } + + public static void StartConquestUnexpectedEventExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddUnexpectedEventConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType unexpectedEventConditionType) { builder.AddInt(1, (int)unexpectedEventConditionType, 0); } + public static void AddUnexpectedEventConditionUniqueId(FlatBufferBuilder builder, long unexpectedEventConditionUniqueId) { builder.AddLong(2, unexpectedEventConditionUniqueId, 0); } + public static void AddUnexpectedEventConditionAmount(FlatBufferBuilder builder, long unexpectedEventConditionAmount) { builder.AddLong(3, unexpectedEventConditionAmount, 0); } + public static void AddUnexpectedEventOccurDailyLimitCount(FlatBufferBuilder builder, int unexpectedEventOccurDailyLimitCount) { builder.AddInt(4, unexpectedEventOccurDailyLimitCount, 0); } + public static void AddUnitCountPerStep(FlatBufferBuilder builder, int unitCountPerStep) { builder.AddInt(5, unitCountPerStep, 0); } + public static void AddUnexpectedEventPrefab(FlatBufferBuilder builder, VectorOffset unexpectedEventPrefabOffset) { builder.AddOffset(6, unexpectedEventPrefabOffset.Value, 0); } + public static VectorOffset CreateUnexpectedEventPrefabVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventPrefabVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventPrefabVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventPrefabVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUnexpectedEventPrefabVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddUnexpectedEventUnitId(FlatBufferBuilder builder, VectorOffset unexpectedEventUnitIdOffset) { builder.AddOffset(7, unexpectedEventUnitIdOffset.Value, 0); } + public static VectorOffset CreateUnexpectedEventUnitIdVector(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 CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnexpectedEventUnitIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUnexpectedEventUnitIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndConquestUnexpectedEventExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestUnexpectedEventExcelVerify +{ + 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 /*UnexpectedEventConditionType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*UnexpectedEventConditionUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*UnexpectedEventConditionAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*UnexpectedEventOccurDailyLimitCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*UnitCountPerStep*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 16 /*UnexpectedEventPrefab*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*UnexpectedEventUnitId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs new file mode 100644 index 0000000..6193729 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestUnexpectedEventExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestUnexpectedEventExcelTable GetRootAsConquestUnexpectedEventExcelTable(ByteBuffer _bb) { return GetRootAsConquestUnexpectedEventExcelTable(_bb, new ConquestUnexpectedEventExcelTable()); } + public static ConquestUnexpectedEventExcelTable GetRootAsConquestUnexpectedEventExcelTable(ByteBuffer _bb, ConquestUnexpectedEventExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestUnexpectedEventExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestUnexpectedEventExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestUnexpectedEventExcel?)(new SCHALE.Common.FlatData.ConquestUnexpectedEventExcel()).__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 CreateConquestUnexpectedEventExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestUnexpectedEventExcelTable.AddDataList(builder, DataListOffset); + return ConquestUnexpectedEventExcelTable.EndConquestUnexpectedEventExcelTable(builder); + } + + public static void StartConquestUnexpectedEventExcelTable(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 EndConquestUnexpectedEventExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestUnexpectedEventExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestUnexpectedEventExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestUnitExcel.cs b/SCHALE.Common/FlatData/ConquestUnitExcel.cs new file mode 100644 index 0000000..1e599c3 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestUnitExcel.cs @@ -0,0 +1,259 @@ +// +// 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 ConquestUnitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestUnitExcel GetRootAsConquestUnitExcel(ByteBuffer _bb) { return GetRootAsConquestUnitExcel(_bb, new ConquestUnitExcel()); } + public static ConquestUnitExcel GetRootAsConquestUnitExcel(ByteBuffer _bb, ConquestUnitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestUnitExcel __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 uint Key { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Name { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(8); } + public string PrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); } + public string StrategyPrefabName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyPrefabNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStrategyPrefabNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStrategyPrefabNameArray() { return __p.__vector_as_array(12); } + public float Scale { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ShieldEffectScale { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string UnitFxPrefabName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUnitFxPrefabNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetUnitFxPrefabNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetUnitFxPrefabNameArray() { return __p.__vector_as_array(18); } + public string PointAnimation { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPointAnimationBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetPointAnimationBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetPointAnimationArray() { return __p.__vector_as_array(20); } + public SCHALE.Common.FlatData.ConquestEnemyType EnemyType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.ConquestEnemyType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEnemyType.None; } } + public SCHALE.Common.FlatData.ConquestTeamType Team { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ConquestTeamType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTeamType.None; } } + public long UnitGroup { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrevUnitGroup { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(34); 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(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalBytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(34); 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(36); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int StarGoalAmountLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(36, 4); } +#else + public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(36); } + public long GroupBuffId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(40); 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(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageEnterCostAmount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ManageEchelonStageEnterCostId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ManageEchelonStageEnterCostAmount { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EnterScenarioGroupId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearScenarioGroupId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConquestRewardId { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)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 long TacticRewardExp { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedEchelonId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateConquestUnitExcel(FlatBufferBuilder builder, + long Id = 0, + uint Key = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset PrefabNameOffset = default(StringOffset), + StringOffset StrategyPrefabNameOffset = default(StringOffset), + float Scale = 0.0f, + float ShieldEffectScale = 0.0f, + StringOffset UnitFxPrefabNameOffset = default(StringOffset), + StringOffset PointAnimationOffset = default(StringOffset), + SCHALE.Common.FlatData.ConquestEnemyType EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None, + SCHALE.Common.FlatData.ConquestTeamType Team = SCHALE.Common.FlatData.ConquestTeamType.None, + long UnitGroup = 0, + long PrevUnitGroup = 0, + long BattleDuration = 0, + long GroundId = 0, + VectorOffset StarGoalOffset = default(VectorOffset), + VectorOffset StarGoalAmountOffset = default(VectorOffset), + long GroupBuffId = 0, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long StageEnterCostId = 0, + int StageEnterCostAmount = 0, + SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long ManageEchelonStageEnterCostId = 0, + int ManageEchelonStageEnterCostAmount = 0, + long EnterScenarioGroupId = 0, + long ClearScenarioGroupId = 0, + long ConquestRewardId = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + long TacticRewardExp = 0, + long FixedEchelonId = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(32); + ConquestUnitExcel.AddFixedEchelonId(builder, FixedEchelonId); + ConquestUnitExcel.AddTacticRewardExp(builder, TacticRewardExp); + ConquestUnitExcel.AddConquestRewardId(builder, ConquestRewardId); + ConquestUnitExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupId); + ConquestUnitExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupId); + ConquestUnitExcel.AddManageEchelonStageEnterCostId(builder, ManageEchelonStageEnterCostId); + ConquestUnitExcel.AddStageEnterCostId(builder, StageEnterCostId); + ConquestUnitExcel.AddGroupBuffId(builder, GroupBuffId); + ConquestUnitExcel.AddGroundId(builder, GroundId); + ConquestUnitExcel.AddBattleDuration(builder, BattleDuration); + ConquestUnitExcel.AddPrevUnitGroup(builder, PrevUnitGroup); + ConquestUnitExcel.AddUnitGroup(builder, UnitGroup); + ConquestUnitExcel.AddId(builder, Id); + ConquestUnitExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + ConquestUnitExcel.AddRecommandLevel(builder, RecommandLevel); + ConquestUnitExcel.AddStageTopography(builder, StageTopography); + ConquestUnitExcel.AddManageEchelonStageEnterCostAmount(builder, ManageEchelonStageEnterCostAmount); + ConquestUnitExcel.AddManageEchelonStageEnterCostType(builder, ManageEchelonStageEnterCostType); + ConquestUnitExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); + ConquestUnitExcel.AddStageEnterCostType(builder, StageEnterCostType); + ConquestUnitExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); + ConquestUnitExcel.AddStarGoal(builder, StarGoalOffset); + ConquestUnitExcel.AddTeam(builder, Team); + ConquestUnitExcel.AddEnemyType(builder, EnemyType); + ConquestUnitExcel.AddPointAnimation(builder, PointAnimationOffset); + ConquestUnitExcel.AddUnitFxPrefabName(builder, UnitFxPrefabNameOffset); + ConquestUnitExcel.AddShieldEffectScale(builder, ShieldEffectScale); + ConquestUnitExcel.AddScale(builder, Scale); + ConquestUnitExcel.AddStrategyPrefabName(builder, StrategyPrefabNameOffset); + ConquestUnitExcel.AddPrefabName(builder, PrefabNameOffset); + ConquestUnitExcel.AddName(builder, NameOffset); + ConquestUnitExcel.AddKey(builder, Key); + return ConquestUnitExcel.EndConquestUnitExcel(builder); + } + + public static void StartConquestUnitExcel(FlatBufferBuilder builder) { builder.StartTable(32); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(1, key, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(2, nameOffset.Value, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(3, prefabNameOffset.Value, 0); } + public static void AddStrategyPrefabName(FlatBufferBuilder builder, StringOffset strategyPrefabNameOffset) { builder.AddOffset(4, strategyPrefabNameOffset.Value, 0); } + public static void AddScale(FlatBufferBuilder builder, float scale) { builder.AddFloat(5, scale, 0.0f); } + public static void AddShieldEffectScale(FlatBufferBuilder builder, float shieldEffectScale) { builder.AddFloat(6, shieldEffectScale, 0.0f); } + public static void AddUnitFxPrefabName(FlatBufferBuilder builder, StringOffset unitFxPrefabNameOffset) { builder.AddOffset(7, unitFxPrefabNameOffset.Value, 0); } + public static void AddPointAnimation(FlatBufferBuilder builder, StringOffset pointAnimationOffset) { builder.AddOffset(8, pointAnimationOffset.Value, 0); } + public static void AddEnemyType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestEnemyType enemyType) { builder.AddInt(9, (int)enemyType, 0); } + public static void AddTeam(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConquestTeamType team) { builder.AddInt(10, (int)team, 0); } + public static void AddUnitGroup(FlatBufferBuilder builder, long unitGroup) { builder.AddLong(11, unitGroup, 0); } + public static void AddPrevUnitGroup(FlatBufferBuilder builder, long prevUnitGroup) { builder.AddLong(12, prevUnitGroup, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(13, battleDuration, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(14, groundId, 0); } + public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(15, 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(16, 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 AddGroupBuffId(FlatBufferBuilder builder, long groupBuffId) { builder.AddLong(17, groupBuffId, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(18, (int)stageEnterCostType, 0); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(19, stageEnterCostId, 0); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(20, stageEnterCostAmount, 0); } + public static void AddManageEchelonStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType manageEchelonStageEnterCostType) { builder.AddInt(21, (int)manageEchelonStageEnterCostType, 0); } + public static void AddManageEchelonStageEnterCostId(FlatBufferBuilder builder, long manageEchelonStageEnterCostId) { builder.AddLong(22, manageEchelonStageEnterCostId, 0); } + public static void AddManageEchelonStageEnterCostAmount(FlatBufferBuilder builder, int manageEchelonStageEnterCostAmount) { builder.AddInt(23, manageEchelonStageEnterCostAmount, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, long enterScenarioGroupId) { builder.AddLong(24, enterScenarioGroupId, 0); } + public static void AddClearScenarioGroupId(FlatBufferBuilder builder, long clearScenarioGroupId) { builder.AddLong(25, clearScenarioGroupId, 0); } + public static void AddConquestRewardId(FlatBufferBuilder builder, long conquestRewardId) { builder.AddLong(26, conquestRewardId, 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 AddTacticRewardExp(FlatBufferBuilder builder, long tacticRewardExp) { builder.AddLong(29, tacticRewardExp, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(30, fixedEchelonId, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(31, (int)echelonExtensionType, 0); } + public static Offset EndConquestUnitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestUnitExcelVerify +{ + 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 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Name*/, false) + && verifier.VerifyString(tablePos, 10 /*PrefabName*/, false) + && verifier.VerifyString(tablePos, 12 /*StrategyPrefabName*/, false) + && verifier.VerifyField(tablePos, 14 /*Scale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ShieldEffectScale*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*UnitFxPrefabName*/, false) + && verifier.VerifyString(tablePos, 20 /*PointAnimation*/, false) + && verifier.VerifyField(tablePos, 22 /*EnemyType*/, 4 /*SCHALE.Common.FlatData.ConquestEnemyType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*Team*/, 4 /*SCHALE.Common.FlatData.ConquestTeamType*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*UnitGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*PrevUnitGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*StarGoalAmount*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 38 /*GroupBuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*StageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*ManageEchelonStageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*ManageEchelonStageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*ManageEchelonStageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*EnterScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*ClearScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*ConquestRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*TacticRewardExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs b/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs new file mode 100644 index 0000000..723e518 --- /dev/null +++ b/SCHALE.Common/FlatData/ConquestUnitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConquestUnitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConquestUnitExcelTable GetRootAsConquestUnitExcelTable(ByteBuffer _bb) { return GetRootAsConquestUnitExcelTable(_bb, new ConquestUnitExcelTable()); } + public static ConquestUnitExcelTable GetRootAsConquestUnitExcelTable(ByteBuffer _bb, ConquestUnitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConquestUnitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConquestUnitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConquestUnitExcel?)(new SCHALE.Common.FlatData.ConquestUnitExcel()).__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 CreateConquestUnitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConquestUnitExcelTable.AddDataList(builder, DataListOffset); + return ConquestUnitExcelTable.EndConquestUnitExcelTable(builder); + } + + public static void StartConquestUnitExcelTable(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 EndConquestUnitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConquestUnitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConquestUnitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstArenaExcel.cs b/SCHALE.Common/FlatData/ConstArenaExcel.cs new file mode 100644 index 0000000..cb46c5f --- /dev/null +++ b/SCHALE.Common/FlatData/ConstArenaExcel.cs @@ -0,0 +1,313 @@ +// +// 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 ConstArenaExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstArenaExcel GetRootAsConstArenaExcel(ByteBuffer _bb) { return GetRootAsConstArenaExcel(_bb, new ConstArenaExcel()); } + public static ConstArenaExcel GetRootAsConstArenaExcel(ByteBuffer _bb, ConstArenaExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstArenaExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long AttackCoolTime { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenseCoolTime { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TSSStartCoolTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EndAlarm { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TimeRewardMaxAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType EnterCostType { 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 EnterCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TicketCost { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DailyRewardResetTime { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDailyRewardResetTimeBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetDailyRewardResetTimeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetDailyRewardResetTimeArray() { return __p.__vector_as_array(22); } + public string OpenScenarioId { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenScenarioIdBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetOpenScenarioIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetOpenScenarioIdArray() { return __p.__vector_as_array(24); } + public long CharacterSlotHideRank(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CharacterSlotHideRankLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCharacterSlotHideRankBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetCharacterSlotHideRankBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetCharacterSlotHideRankArray() { return __p.__vector_as_array(26); } + public long MapSlotHideRank { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RelativeOpponentRankStart(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RelativeOpponentRankStartLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRelativeOpponentRankStartBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetRelativeOpponentRankStartBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetRelativeOpponentRankStartArray() { return __p.__vector_as_array(30); } + public long RelativeOpponentRankEnd(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RelativeOpponentRankEndLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRelativeOpponentRankEndBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetRelativeOpponentRankEndBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetRelativeOpponentRankEndArray() { return __p.__vector_as_array(32); } + public SCHALE.Common.FlatData.StatType ModifiedStatType(int j) { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StatType)0; } + public int ModifiedStatTypeLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetModifiedStatTypeBytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetModifiedStatTypeBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public SCHALE.Common.FlatData.StatType[] GetModifiedStatTypeArray() { int o = __p.__offset(34); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StatType[] a = new SCHALE.Common.FlatData.StatType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(p + i * 4); } return a; } + public long StatMulFactor(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatMulFactorLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatMulFactorBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetStatMulFactorBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetStatMulFactorArray() { return __p.__vector_as_array(36); } + public long StatSumFactor(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatSumFactorLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatSumFactorBytes() { return __p.__vector_as_span(38, 8); } +#else + public ArraySegment? GetStatSumFactorBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public long[] GetStatSumFactorArray() { return __p.__vector_as_array(38); } + public string NPCName(int j) { int o = __p.__offset(40); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int NPCNameLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } + public long NPCMainCharacterCount { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCSupportCharacterCount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NPCCharacterSkillLevel { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TimeSpanInDaysForBattleHistory { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string HiddenCharacterImagePath { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetHiddenCharacterImagePathBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetHiddenCharacterImagePathBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetHiddenCharacterImagePathArray() { return __p.__vector_as_array(50); } + public long DefenseVictoryRewardMaxCount { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TopRankerCountLimit { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AutoRefreshIntervalMilliSeconds { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EchelonSettingIntervalMilliSeconds { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SkipAllowedTimeMilliSeconds { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShowSeasonChangeInfoStartTime { get { int o = __p.__offset(62); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShowSeasonChangeInfoStartTimeBytes() { return __p.__vector_as_span(62, 1); } +#else + public ArraySegment? GetShowSeasonChangeInfoStartTimeBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public byte[] GetShowSeasonChangeInfoStartTimeArray() { return __p.__vector_as_array(62); } + public string ShowSeasonChangeInfoEndTime { get { int o = __p.__offset(64); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShowSeasonChangeInfoEndTimeBytes() { return __p.__vector_as_span(64, 1); } +#else + public ArraySegment? GetShowSeasonChangeInfoEndTimeBytes() { return __p.__vector_as_arraysegment(64); } +#endif + public byte[] GetShowSeasonChangeInfoEndTimeArray() { return __p.__vector_as_array(64); } + public long ShowSeasonId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateConstArenaExcel(FlatBufferBuilder builder, + long AttackCoolTime = 0, + long BattleDuration = 0, + long DefenseCoolTime = 0, + long TSSStartCoolTime = 0, + long EndAlarm = 0, + long TimeRewardMaxAmount = 0, + SCHALE.Common.FlatData.ParcelType EnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long EnterCostId = 0, + long TicketCost = 0, + StringOffset DailyRewardResetTimeOffset = default(StringOffset), + StringOffset OpenScenarioIdOffset = default(StringOffset), + VectorOffset CharacterSlotHideRankOffset = default(VectorOffset), + long MapSlotHideRank = 0, + VectorOffset RelativeOpponentRankStartOffset = default(VectorOffset), + VectorOffset RelativeOpponentRankEndOffset = default(VectorOffset), + VectorOffset ModifiedStatTypeOffset = default(VectorOffset), + VectorOffset StatMulFactorOffset = default(VectorOffset), + VectorOffset StatSumFactorOffset = default(VectorOffset), + VectorOffset NPCNameOffset = default(VectorOffset), + long NPCMainCharacterCount = 0, + long NPCSupportCharacterCount = 0, + long NPCCharacterSkillLevel = 0, + long TimeSpanInDaysForBattleHistory = 0, + StringOffset HiddenCharacterImagePathOffset = default(StringOffset), + long DefenseVictoryRewardMaxCount = 0, + long TopRankerCountLimit = 0, + long AutoRefreshIntervalMilliSeconds = 0, + long EchelonSettingIntervalMilliSeconds = 0, + long SkipAllowedTimeMilliSeconds = 0, + StringOffset ShowSeasonChangeInfoStartTimeOffset = default(StringOffset), + StringOffset ShowSeasonChangeInfoEndTimeOffset = default(StringOffset), + long ShowSeasonId = 0) { + builder.StartTable(32); + ConstArenaExcel.AddShowSeasonId(builder, ShowSeasonId); + ConstArenaExcel.AddSkipAllowedTimeMilliSeconds(builder, SkipAllowedTimeMilliSeconds); + ConstArenaExcel.AddEchelonSettingIntervalMilliSeconds(builder, EchelonSettingIntervalMilliSeconds); + ConstArenaExcel.AddAutoRefreshIntervalMilliSeconds(builder, AutoRefreshIntervalMilliSeconds); + ConstArenaExcel.AddTopRankerCountLimit(builder, TopRankerCountLimit); + ConstArenaExcel.AddDefenseVictoryRewardMaxCount(builder, DefenseVictoryRewardMaxCount); + ConstArenaExcel.AddTimeSpanInDaysForBattleHistory(builder, TimeSpanInDaysForBattleHistory); + ConstArenaExcel.AddNPCCharacterSkillLevel(builder, NPCCharacterSkillLevel); + ConstArenaExcel.AddNPCSupportCharacterCount(builder, NPCSupportCharacterCount); + ConstArenaExcel.AddNPCMainCharacterCount(builder, NPCMainCharacterCount); + ConstArenaExcel.AddMapSlotHideRank(builder, MapSlotHideRank); + ConstArenaExcel.AddTicketCost(builder, TicketCost); + ConstArenaExcel.AddEnterCostId(builder, EnterCostId); + ConstArenaExcel.AddTimeRewardMaxAmount(builder, TimeRewardMaxAmount); + ConstArenaExcel.AddEndAlarm(builder, EndAlarm); + ConstArenaExcel.AddTSSStartCoolTime(builder, TSSStartCoolTime); + ConstArenaExcel.AddDefenseCoolTime(builder, DefenseCoolTime); + ConstArenaExcel.AddBattleDuration(builder, BattleDuration); + ConstArenaExcel.AddAttackCoolTime(builder, AttackCoolTime); + ConstArenaExcel.AddShowSeasonChangeInfoEndTime(builder, ShowSeasonChangeInfoEndTimeOffset); + ConstArenaExcel.AddShowSeasonChangeInfoStartTime(builder, ShowSeasonChangeInfoStartTimeOffset); + ConstArenaExcel.AddHiddenCharacterImagePath(builder, HiddenCharacterImagePathOffset); + ConstArenaExcel.AddNPCName(builder, NPCNameOffset); + ConstArenaExcel.AddStatSumFactor(builder, StatSumFactorOffset); + ConstArenaExcel.AddStatMulFactor(builder, StatMulFactorOffset); + ConstArenaExcel.AddModifiedStatType(builder, ModifiedStatTypeOffset); + ConstArenaExcel.AddRelativeOpponentRankEnd(builder, RelativeOpponentRankEndOffset); + ConstArenaExcel.AddRelativeOpponentRankStart(builder, RelativeOpponentRankStartOffset); + ConstArenaExcel.AddCharacterSlotHideRank(builder, CharacterSlotHideRankOffset); + ConstArenaExcel.AddOpenScenarioId(builder, OpenScenarioIdOffset); + ConstArenaExcel.AddDailyRewardResetTime(builder, DailyRewardResetTimeOffset); + ConstArenaExcel.AddEnterCostType(builder, EnterCostType); + return ConstArenaExcel.EndConstArenaExcel(builder); + } + + public static void StartConstArenaExcel(FlatBufferBuilder builder) { builder.StartTable(32); } + public static void AddAttackCoolTime(FlatBufferBuilder builder, long attackCoolTime) { builder.AddLong(0, attackCoolTime, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(1, battleDuration, 0); } + public static void AddDefenseCoolTime(FlatBufferBuilder builder, long defenseCoolTime) { builder.AddLong(2, defenseCoolTime, 0); } + public static void AddTSSStartCoolTime(FlatBufferBuilder builder, long tSSStartCoolTime) { builder.AddLong(3, tSSStartCoolTime, 0); } + public static void AddEndAlarm(FlatBufferBuilder builder, long endAlarm) { builder.AddLong(4, endAlarm, 0); } + public static void AddTimeRewardMaxAmount(FlatBufferBuilder builder, long timeRewardMaxAmount) { builder.AddLong(5, timeRewardMaxAmount, 0); } + public static void AddEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType enterCostType) { builder.AddInt(6, (int)enterCostType, 0); } + public static void AddEnterCostId(FlatBufferBuilder builder, long enterCostId) { builder.AddLong(7, enterCostId, 0); } + public static void AddTicketCost(FlatBufferBuilder builder, long ticketCost) { builder.AddLong(8, ticketCost, 0); } + public static void AddDailyRewardResetTime(FlatBufferBuilder builder, StringOffset dailyRewardResetTimeOffset) { builder.AddOffset(9, dailyRewardResetTimeOffset.Value, 0); } + public static void AddOpenScenarioId(FlatBufferBuilder builder, StringOffset openScenarioIdOffset) { builder.AddOffset(10, openScenarioIdOffset.Value, 0); } + public static void AddCharacterSlotHideRank(FlatBufferBuilder builder, VectorOffset characterSlotHideRankOffset) { builder.AddOffset(11, characterSlotHideRankOffset.Value, 0); } + public static VectorOffset CreateCharacterSlotHideRankVector(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 CreateCharacterSlotHideRankVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCharacterSlotHideRankVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCharacterSlotHideRankVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCharacterSlotHideRankVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMapSlotHideRank(FlatBufferBuilder builder, long mapSlotHideRank) { builder.AddLong(12, mapSlotHideRank, 0); } + public static void AddRelativeOpponentRankStart(FlatBufferBuilder builder, VectorOffset relativeOpponentRankStartOffset) { builder.AddOffset(13, relativeOpponentRankStartOffset.Value, 0); } + public static VectorOffset CreateRelativeOpponentRankStartVector(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 CreateRelativeOpponentRankStartVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRelativeOpponentRankStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRelativeOpponentRankStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRelativeOpponentRankStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRelativeOpponentRankEnd(FlatBufferBuilder builder, VectorOffset relativeOpponentRankEndOffset) { builder.AddOffset(14, relativeOpponentRankEndOffset.Value, 0); } + public static VectorOffset CreateRelativeOpponentRankEndVector(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 CreateRelativeOpponentRankEndVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRelativeOpponentRankEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRelativeOpponentRankEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRelativeOpponentRankEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddModifiedStatType(FlatBufferBuilder builder, VectorOffset modifiedStatTypeOffset) { builder.AddOffset(15, modifiedStatTypeOffset.Value, 0); } + public static VectorOffset CreateModifiedStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] 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 CreateModifiedStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateModifiedStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateModifiedStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartModifiedStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatMulFactor(FlatBufferBuilder builder, VectorOffset statMulFactorOffset) { builder.AddOffset(16, statMulFactorOffset.Value, 0); } + public static VectorOffset CreateStatMulFactorVector(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 CreateStatMulFactorVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatMulFactorVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatMulFactorVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatMulFactorVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStatSumFactor(FlatBufferBuilder builder, VectorOffset statSumFactorOffset) { builder.AddOffset(17, statSumFactorOffset.Value, 0); } + public static VectorOffset CreateStatSumFactorVector(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 CreateStatSumFactorVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatSumFactorVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatSumFactorVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatSumFactorVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddNPCName(FlatBufferBuilder builder, VectorOffset nPCNameOffset) { builder.AddOffset(18, nPCNameOffset.Value, 0); } + public static VectorOffset CreateNPCNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateNPCNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNPCNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNPCNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNPCNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddNPCMainCharacterCount(FlatBufferBuilder builder, long nPCMainCharacterCount) { builder.AddLong(19, nPCMainCharacterCount, 0); } + public static void AddNPCSupportCharacterCount(FlatBufferBuilder builder, long nPCSupportCharacterCount) { builder.AddLong(20, nPCSupportCharacterCount, 0); } + public static void AddNPCCharacterSkillLevel(FlatBufferBuilder builder, long nPCCharacterSkillLevel) { builder.AddLong(21, nPCCharacterSkillLevel, 0); } + public static void AddTimeSpanInDaysForBattleHistory(FlatBufferBuilder builder, long timeSpanInDaysForBattleHistory) { builder.AddLong(22, timeSpanInDaysForBattleHistory, 0); } + public static void AddHiddenCharacterImagePath(FlatBufferBuilder builder, StringOffset hiddenCharacterImagePathOffset) { builder.AddOffset(23, hiddenCharacterImagePathOffset.Value, 0); } + public static void AddDefenseVictoryRewardMaxCount(FlatBufferBuilder builder, long defenseVictoryRewardMaxCount) { builder.AddLong(24, defenseVictoryRewardMaxCount, 0); } + public static void AddTopRankerCountLimit(FlatBufferBuilder builder, long topRankerCountLimit) { builder.AddLong(25, topRankerCountLimit, 0); } + public static void AddAutoRefreshIntervalMilliSeconds(FlatBufferBuilder builder, long autoRefreshIntervalMilliSeconds) { builder.AddLong(26, autoRefreshIntervalMilliSeconds, 0); } + public static void AddEchelonSettingIntervalMilliSeconds(FlatBufferBuilder builder, long echelonSettingIntervalMilliSeconds) { builder.AddLong(27, echelonSettingIntervalMilliSeconds, 0); } + public static void AddSkipAllowedTimeMilliSeconds(FlatBufferBuilder builder, long skipAllowedTimeMilliSeconds) { builder.AddLong(28, skipAllowedTimeMilliSeconds, 0); } + public static void AddShowSeasonChangeInfoStartTime(FlatBufferBuilder builder, StringOffset showSeasonChangeInfoStartTimeOffset) { builder.AddOffset(29, showSeasonChangeInfoStartTimeOffset.Value, 0); } + public static void AddShowSeasonChangeInfoEndTime(FlatBufferBuilder builder, StringOffset showSeasonChangeInfoEndTimeOffset) { builder.AddOffset(30, showSeasonChangeInfoEndTimeOffset.Value, 0); } + public static void AddShowSeasonId(FlatBufferBuilder builder, long showSeasonId) { builder.AddLong(31, showSeasonId, 0); } + public static Offset EndConstArenaExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstArenaExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*AttackCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DefenseCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*TSSStartCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*EndAlarm*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*TimeRewardMaxAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*EnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*EnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*TicketCost*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 22 /*DailyRewardResetTime*/, false) + && verifier.VerifyString(tablePos, 24 /*OpenScenarioId*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*CharacterSlotHideRank*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 28 /*MapSlotHideRank*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*RelativeOpponentRankStart*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*RelativeOpponentRankEnd*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*ModifiedStatType*/, 4 /*SCHALE.Common.FlatData.StatType*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*StatMulFactor*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*StatSumFactor*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 40 /*NPCName*/, false) + && verifier.VerifyField(tablePos, 42 /*NPCMainCharacterCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*NPCSupportCharacterCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*NPCCharacterSkillLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*TimeSpanInDaysForBattleHistory*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 50 /*HiddenCharacterImagePath*/, false) + && verifier.VerifyField(tablePos, 52 /*DefenseVictoryRewardMaxCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*TopRankerCountLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*AutoRefreshIntervalMilliSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*EchelonSettingIntervalMilliSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*SkipAllowedTimeMilliSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 62 /*ShowSeasonChangeInfoStartTime*/, false) + && verifier.VerifyString(tablePos, 64 /*ShowSeasonChangeInfoEndTime*/, false) + && verifier.VerifyField(tablePos, 66 /*ShowSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstArenaExcelTable.cs b/SCHALE.Common/FlatData/ConstArenaExcelTable.cs new file mode 100644 index 0000000..8e28cee --- /dev/null +++ b/SCHALE.Common/FlatData/ConstArenaExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstArenaExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstArenaExcelTable GetRootAsConstArenaExcelTable(ByteBuffer _bb) { return GetRootAsConstArenaExcelTable(_bb, new ConstArenaExcelTable()); } + public static ConstArenaExcelTable GetRootAsConstArenaExcelTable(ByteBuffer _bb, ConstArenaExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstArenaExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstArenaExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstArenaExcel?)(new SCHALE.Common.FlatData.ConstArenaExcel()).__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 CreateConstArenaExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstArenaExcelTable.AddDataList(builder, DataListOffset); + return ConstArenaExcelTable.EndConstArenaExcelTable(builder); + } + + public static void StartConstArenaExcelTable(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 EndConstArenaExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstArenaExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstArenaExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstAudioExcel.cs b/SCHALE.Common/FlatData/ConstAudioExcel.cs new file mode 100644 index 0000000..6a0337d --- /dev/null +++ b/SCHALE.Common/FlatData/ConstAudioExcel.cs @@ -0,0 +1,89 @@ +// +// 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 ConstAudioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstAudioExcel GetRootAsConstAudioExcel(ByteBuffer _bb) { return GetRootAsConstAudioExcel(_bb, new ConstAudioExcel()); } + public static ConstAudioExcel GetRootAsConstAudioExcel(ByteBuffer _bb, ConstAudioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstAudioExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string DefaultSnapShotName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDefaultSnapShotNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetDefaultSnapShotNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetDefaultSnapShotNameArray() { return __p.__vector_as_array(4); } + public string BattleSnapShotName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBattleSnapShotNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetBattleSnapShotNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetBattleSnapShotNameArray() { return __p.__vector_as_array(6); } + public string RaidSnapShotName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRaidSnapShotNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetRaidSnapShotNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetRaidSnapShotNameArray() { return __p.__vector_as_array(8); } + public string ExSkillCutInSnapShotName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExSkillCutInSnapShotNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetExSkillCutInSnapShotNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetExSkillCutInSnapShotNameArray() { return __p.__vector_as_array(10); } + + public static Offset CreateConstAudioExcel(FlatBufferBuilder builder, + StringOffset DefaultSnapShotNameOffset = default(StringOffset), + StringOffset BattleSnapShotNameOffset = default(StringOffset), + StringOffset RaidSnapShotNameOffset = default(StringOffset), + StringOffset ExSkillCutInSnapShotNameOffset = default(StringOffset)) { + builder.StartTable(4); + ConstAudioExcel.AddExSkillCutInSnapShotName(builder, ExSkillCutInSnapShotNameOffset); + ConstAudioExcel.AddRaidSnapShotName(builder, RaidSnapShotNameOffset); + ConstAudioExcel.AddBattleSnapShotName(builder, BattleSnapShotNameOffset); + ConstAudioExcel.AddDefaultSnapShotName(builder, DefaultSnapShotNameOffset); + return ConstAudioExcel.EndConstAudioExcel(builder); + } + + public static void StartConstAudioExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddDefaultSnapShotName(FlatBufferBuilder builder, StringOffset defaultSnapShotNameOffset) { builder.AddOffset(0, defaultSnapShotNameOffset.Value, 0); } + public static void AddBattleSnapShotName(FlatBufferBuilder builder, StringOffset battleSnapShotNameOffset) { builder.AddOffset(1, battleSnapShotNameOffset.Value, 0); } + public static void AddRaidSnapShotName(FlatBufferBuilder builder, StringOffset raidSnapShotNameOffset) { builder.AddOffset(2, raidSnapShotNameOffset.Value, 0); } + public static void AddExSkillCutInSnapShotName(FlatBufferBuilder builder, StringOffset exSkillCutInSnapShotNameOffset) { builder.AddOffset(3, exSkillCutInSnapShotNameOffset.Value, 0); } + public static Offset EndConstAudioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstAudioExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*DefaultSnapShotName*/, false) + && verifier.VerifyString(tablePos, 6 /*BattleSnapShotName*/, false) + && verifier.VerifyString(tablePos, 8 /*RaidSnapShotName*/, false) + && verifier.VerifyString(tablePos, 10 /*ExSkillCutInSnapShotName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstAudioExcelTable.cs b/SCHALE.Common/FlatData/ConstAudioExcelTable.cs new file mode 100644 index 0000000..cf7c82e --- /dev/null +++ b/SCHALE.Common/FlatData/ConstAudioExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstAudioExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstAudioExcelTable GetRootAsConstAudioExcelTable(ByteBuffer _bb) { return GetRootAsConstAudioExcelTable(_bb, new ConstAudioExcelTable()); } + public static ConstAudioExcelTable GetRootAsConstAudioExcelTable(ByteBuffer _bb, ConstAudioExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstAudioExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstAudioExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstAudioExcel?)(new SCHALE.Common.FlatData.ConstAudioExcel()).__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 CreateConstAudioExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstAudioExcelTable.AddDataList(builder, DataListOffset); + return ConstAudioExcelTable.EndConstAudioExcelTable(builder); + } + + public static void StartConstAudioExcelTable(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 EndConstAudioExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstAudioExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstAudioExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstCombatExcel.cs b/SCHALE.Common/FlatData/ConstCombatExcel.cs new file mode 100644 index 0000000..ebe67d3 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstCombatExcel.cs @@ -0,0 +1,494 @@ +// +// 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 ConstCombatExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstCombatExcel GetRootAsConstCombatExcel(ByteBuffer _bb) { return GetRootAsConstCombatExcel(_bb, new ConstCombatExcel()); } + public static ConstCombatExcel GetRootAsConstCombatExcel(ByteBuffer _bb, ConstCombatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstCombatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int SkillHandCount { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DyingTime { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BuffIconBlinkTime { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool ShowBufficonEXSkill { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowBufficonPassiveSkill { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowBufficonExtraPassiveSkill { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowBufficonLeaderSkill { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowBufficonGroundPassiveSkill { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string SuppliesConditionStringId { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSuppliesConditionStringIdBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetSuppliesConditionStringIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetSuppliesConditionStringIdArray() { return __p.__vector_as_array(20); } + public float PublicSpeechBubbleOffsetX { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float PublicSpeechBubbleOffsetY { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float PublicSpeechBubbleOffsetZ { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int ShowRaidListCount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long MaxRaidTicketCount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxRaidBossSkillSlot { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string EngageTimelinePath { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEngageTimelinePathBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetEngageTimelinePathBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetEngageTimelinePathArray() { return __p.__vector_as_array(34); } + public string EngageWithSupporterTimelinePath { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEngageWithSupporterTimelinePathBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetEngageWithSupporterTimelinePathBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetEngageWithSupporterTimelinePathArray() { return __p.__vector_as_array(36); } + public string VictoryTimelinePath { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(38); } + public long TimeLimitAlarm { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int EchelonMaxCommonCost { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EchelonInitCommonCost { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long SkillSlotCoolTime { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemyRegenCost { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ChampionRegenCost { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerRegenCostDelay { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CrowdControlFactor { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RaidOpenScenarioId { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRaidOpenScenarioIdBytes() { return __p.__vector_as_span(56, 1); } +#else + public ArraySegment? GetRaidOpenScenarioIdBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public byte[] GetRaidOpenScenarioIdArray() { return __p.__vector_as_array(56); } + public string EliminateRaidOpenScenarioId { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEliminateRaidOpenScenarioIdBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetEliminateRaidOpenScenarioIdBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetEliminateRaidOpenScenarioIdArray() { return __p.__vector_as_array(58); } + public long DefenceConstA { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenceConstB { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenceConstC { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenceConstD { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyConstA { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyConstB { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyConstC { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyConstD { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalConstA { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalConstB { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalConstC { get { int o = __p.__offset(80); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalConstD { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxGroupBuffLevel { get { int o = __p.__offset(84); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EmojiDefaultTime { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TimeLineActionRotateSpeed { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BodyRotateSpeed { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NormalTimeScale { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FastTimeScale { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BulletTimeScale { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UIDisplayDelayAfterSkillCutIn { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool UseInitialRangeForCoverMove { get { int o = __p.__offset(100); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long SlowTimeScale { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float AimIKMinDegree { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float AimIKMaxDegree { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int MinimumClearTime { get { int o = __p.__offset(108); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MinimumClearLevelGap { get { int o = __p.__offset(110); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CheckCheaterMaxUseCostNonArena { get { int o = __p.__offset(112); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CheckCheaterMaxUseCostArena { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long AllowedMaxTimeScale { get { int o = __p.__offset(116); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RandomAnimationOutput { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SummonedTeleportDistance { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ArenaMinimumClearTime { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long WORLDBOSSBATTLELITTLE { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WORLDBOSSBATTLEMIDDLE { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WORLDBOSSBATTLEHIGH { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WORLDBOSSBATTLEVERYHIGH { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidAutoSyncTermSecond { get { int o = __p.__offset(132); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidBossHpDecreaseTerm { get { int o = __p.__offset(134); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidBossParcelReactionDelay { get { int o = __p.__offset(136); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidRankingJumpMinimumWaitingTime { get { int o = __p.__offset(138); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float EffectTeleportDistance { get { int o = __p.__offset(140); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long AuraExitThresholdMargin { get { int o = __p.__offset(142); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TSAInteractionDamageFactor { get { int o = __p.__offset(144); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VictoryInteractionRate { get { int o = __p.__offset(146); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string EchelonExtensionEngageTimelinePath { get { int o = __p.__offset(148); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonExtensionEngageTimelinePathBytes() { return __p.__vector_as_span(148, 1); } +#else + public ArraySegment? GetEchelonExtensionEngageTimelinePathBytes() { return __p.__vector_as_arraysegment(148); } +#endif + public byte[] GetEchelonExtensionEngageTimelinePathArray() { return __p.__vector_as_array(148); } + public string EchelonExtensionEngageWithSupporterTimelinePath { get { int o = __p.__offset(150); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonExtensionEngageWithSupporterTimelinePathBytes() { return __p.__vector_as_span(150, 1); } +#else + public ArraySegment? GetEchelonExtensionEngageWithSupporterTimelinePathBytes() { return __p.__vector_as_arraysegment(150); } +#endif + public byte[] GetEchelonExtensionEngageWithSupporterTimelinePathArray() { return __p.__vector_as_array(150); } + public string EchelonExtensionVictoryTimelinePath { get { int o = __p.__offset(152); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonExtensionVictoryTimelinePathBytes() { return __p.__vector_as_span(152, 1); } +#else + public ArraySegment? GetEchelonExtensionVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(152); } +#endif + public byte[] GetEchelonExtensionVictoryTimelinePathArray() { return __p.__vector_as_array(152); } + public int EchelonExtensionEchelonMaxCommonCost { get { int o = __p.__offset(154); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EchelonExtensionEchelonInitCommonCost { get { int o = __p.__offset(156); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EchelonExtensionCostRegenRatio { get { int o = __p.__offset(158); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CheckCheaterMaxUseCostMultiFloorRaid { get { int o = __p.__offset(160); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstCombatExcel(FlatBufferBuilder builder, + int SkillHandCount = 0, + int DyingTime = 0, + int BuffIconBlinkTime = 0, + bool ShowBufficonEXSkill = false, + bool ShowBufficonPassiveSkill = false, + bool ShowBufficonExtraPassiveSkill = false, + bool ShowBufficonLeaderSkill = false, + bool ShowBufficonGroundPassiveSkill = false, + StringOffset SuppliesConditionStringIdOffset = default(StringOffset), + float PublicSpeechBubbleOffsetX = 0.0f, + float PublicSpeechBubbleOffsetY = 0.0f, + float PublicSpeechBubbleOffsetZ = 0.0f, + int ShowRaidListCount = 0, + long MaxRaidTicketCount = 0, + long MaxRaidBossSkillSlot = 0, + StringOffset EngageTimelinePathOffset = default(StringOffset), + StringOffset EngageWithSupporterTimelinePathOffset = default(StringOffset), + StringOffset VictoryTimelinePathOffset = default(StringOffset), + long TimeLimitAlarm = 0, + int EchelonMaxCommonCost = 0, + int EchelonInitCommonCost = 0, + long SkillSlotCoolTime = 0, + long EnemyRegenCost = 0, + long ChampionRegenCost = 0, + long PlayerRegenCostDelay = 0, + long CrowdControlFactor = 0, + StringOffset RaidOpenScenarioIdOffset = default(StringOffset), + StringOffset EliminateRaidOpenScenarioIdOffset = default(StringOffset), + long DefenceConstA = 0, + long DefenceConstB = 0, + long DefenceConstC = 0, + long DefenceConstD = 0, + long AccuracyConstA = 0, + long AccuracyConstB = 0, + long AccuracyConstC = 0, + long AccuracyConstD = 0, + long CriticalConstA = 0, + long CriticalConstB = 0, + long CriticalConstC = 0, + long CriticalConstD = 0, + int MaxGroupBuffLevel = 0, + int EmojiDefaultTime = 0, + long TimeLineActionRotateSpeed = 0, + long BodyRotateSpeed = 0, + long NormalTimeScale = 0, + long FastTimeScale = 0, + long BulletTimeScale = 0, + long UIDisplayDelayAfterSkillCutIn = 0, + bool UseInitialRangeForCoverMove = false, + long SlowTimeScale = 0, + float AimIKMinDegree = 0.0f, + float AimIKMaxDegree = 0.0f, + int MinimumClearTime = 0, + int MinimumClearLevelGap = 0, + int CheckCheaterMaxUseCostNonArena = 0, + int CheckCheaterMaxUseCostArena = 0, + long AllowedMaxTimeScale = 0, + long RandomAnimationOutput = 0, + long SummonedTeleportDistance = 0, + int ArenaMinimumClearTime = 0, + long WORLDBOSSBATTLELITTLE = 0, + long WORLDBOSSBATTLEMIDDLE = 0, + long WORLDBOSSBATTLEHIGH = 0, + long WORLDBOSSBATTLEVERYHIGH = 0, + long WorldRaidAutoSyncTermSecond = 0, + long WorldRaidBossHpDecreaseTerm = 0, + long WorldRaidBossParcelReactionDelay = 0, + long RaidRankingJumpMinimumWaitingTime = 0, + float EffectTeleportDistance = 0.0f, + long AuraExitThresholdMargin = 0, + long TSAInteractionDamageFactor = 0, + long VictoryInteractionRate = 0, + StringOffset EchelonExtensionEngageTimelinePathOffset = default(StringOffset), + StringOffset EchelonExtensionEngageWithSupporterTimelinePathOffset = default(StringOffset), + StringOffset EchelonExtensionVictoryTimelinePathOffset = default(StringOffset), + int EchelonExtensionEchelonMaxCommonCost = 0, + int EchelonExtensionEchelonInitCommonCost = 0, + long EchelonExtensionCostRegenRatio = 0, + int CheckCheaterMaxUseCostMultiFloorRaid = 0) { + builder.StartTable(79); + ConstCombatExcel.AddEchelonExtensionCostRegenRatio(builder, EchelonExtensionCostRegenRatio); + ConstCombatExcel.AddVictoryInteractionRate(builder, VictoryInteractionRate); + ConstCombatExcel.AddTSAInteractionDamageFactor(builder, TSAInteractionDamageFactor); + ConstCombatExcel.AddAuraExitThresholdMargin(builder, AuraExitThresholdMargin); + ConstCombatExcel.AddRaidRankingJumpMinimumWaitingTime(builder, RaidRankingJumpMinimumWaitingTime); + ConstCombatExcel.AddWorldRaidBossParcelReactionDelay(builder, WorldRaidBossParcelReactionDelay); + ConstCombatExcel.AddWorldRaidBossHpDecreaseTerm(builder, WorldRaidBossHpDecreaseTerm); + ConstCombatExcel.AddWorldRaidAutoSyncTermSecond(builder, WorldRaidAutoSyncTermSecond); + ConstCombatExcel.AddWORLDBOSSBATTLEVERYHIGH(builder, WORLDBOSSBATTLEVERYHIGH); + ConstCombatExcel.AddWORLDBOSSBATTLEHIGH(builder, WORLDBOSSBATTLEHIGH); + ConstCombatExcel.AddWORLDBOSSBATTLEMIDDLE(builder, WORLDBOSSBATTLEMIDDLE); + ConstCombatExcel.AddWORLDBOSSBATTLELITTLE(builder, WORLDBOSSBATTLELITTLE); + ConstCombatExcel.AddSummonedTeleportDistance(builder, SummonedTeleportDistance); + ConstCombatExcel.AddRandomAnimationOutput(builder, RandomAnimationOutput); + ConstCombatExcel.AddAllowedMaxTimeScale(builder, AllowedMaxTimeScale); + ConstCombatExcel.AddSlowTimeScale(builder, SlowTimeScale); + ConstCombatExcel.AddUIDisplayDelayAfterSkillCutIn(builder, UIDisplayDelayAfterSkillCutIn); + ConstCombatExcel.AddBulletTimeScale(builder, BulletTimeScale); + ConstCombatExcel.AddFastTimeScale(builder, FastTimeScale); + ConstCombatExcel.AddNormalTimeScale(builder, NormalTimeScale); + ConstCombatExcel.AddBodyRotateSpeed(builder, BodyRotateSpeed); + ConstCombatExcel.AddTimeLineActionRotateSpeed(builder, TimeLineActionRotateSpeed); + ConstCombatExcel.AddCriticalConstD(builder, CriticalConstD); + ConstCombatExcel.AddCriticalConstC(builder, CriticalConstC); + ConstCombatExcel.AddCriticalConstB(builder, CriticalConstB); + ConstCombatExcel.AddCriticalConstA(builder, CriticalConstA); + ConstCombatExcel.AddAccuracyConstD(builder, AccuracyConstD); + ConstCombatExcel.AddAccuracyConstC(builder, AccuracyConstC); + ConstCombatExcel.AddAccuracyConstB(builder, AccuracyConstB); + ConstCombatExcel.AddAccuracyConstA(builder, AccuracyConstA); + ConstCombatExcel.AddDefenceConstD(builder, DefenceConstD); + ConstCombatExcel.AddDefenceConstC(builder, DefenceConstC); + ConstCombatExcel.AddDefenceConstB(builder, DefenceConstB); + ConstCombatExcel.AddDefenceConstA(builder, DefenceConstA); + ConstCombatExcel.AddCrowdControlFactor(builder, CrowdControlFactor); + ConstCombatExcel.AddPlayerRegenCostDelay(builder, PlayerRegenCostDelay); + ConstCombatExcel.AddChampionRegenCost(builder, ChampionRegenCost); + ConstCombatExcel.AddEnemyRegenCost(builder, EnemyRegenCost); + ConstCombatExcel.AddSkillSlotCoolTime(builder, SkillSlotCoolTime); + ConstCombatExcel.AddTimeLimitAlarm(builder, TimeLimitAlarm); + ConstCombatExcel.AddMaxRaidBossSkillSlot(builder, MaxRaidBossSkillSlot); + ConstCombatExcel.AddMaxRaidTicketCount(builder, MaxRaidTicketCount); + ConstCombatExcel.AddCheckCheaterMaxUseCostMultiFloorRaid(builder, CheckCheaterMaxUseCostMultiFloorRaid); + ConstCombatExcel.AddEchelonExtensionEchelonInitCommonCost(builder, EchelonExtensionEchelonInitCommonCost); + ConstCombatExcel.AddEchelonExtensionEchelonMaxCommonCost(builder, EchelonExtensionEchelonMaxCommonCost); + ConstCombatExcel.AddEchelonExtensionVictoryTimelinePath(builder, EchelonExtensionVictoryTimelinePathOffset); + ConstCombatExcel.AddEchelonExtensionEngageWithSupporterTimelinePath(builder, EchelonExtensionEngageWithSupporterTimelinePathOffset); + ConstCombatExcel.AddEchelonExtensionEngageTimelinePath(builder, EchelonExtensionEngageTimelinePathOffset); + ConstCombatExcel.AddEffectTeleportDistance(builder, EffectTeleportDistance); + ConstCombatExcel.AddArenaMinimumClearTime(builder, ArenaMinimumClearTime); + ConstCombatExcel.AddCheckCheaterMaxUseCostArena(builder, CheckCheaterMaxUseCostArena); + ConstCombatExcel.AddCheckCheaterMaxUseCostNonArena(builder, CheckCheaterMaxUseCostNonArena); + ConstCombatExcel.AddMinimumClearLevelGap(builder, MinimumClearLevelGap); + ConstCombatExcel.AddMinimumClearTime(builder, MinimumClearTime); + ConstCombatExcel.AddAimIKMaxDegree(builder, AimIKMaxDegree); + ConstCombatExcel.AddAimIKMinDegree(builder, AimIKMinDegree); + ConstCombatExcel.AddEmojiDefaultTime(builder, EmojiDefaultTime); + ConstCombatExcel.AddMaxGroupBuffLevel(builder, MaxGroupBuffLevel); + ConstCombatExcel.AddEliminateRaidOpenScenarioId(builder, EliminateRaidOpenScenarioIdOffset); + ConstCombatExcel.AddRaidOpenScenarioId(builder, RaidOpenScenarioIdOffset); + ConstCombatExcel.AddEchelonInitCommonCost(builder, EchelonInitCommonCost); + ConstCombatExcel.AddEchelonMaxCommonCost(builder, EchelonMaxCommonCost); + ConstCombatExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); + ConstCombatExcel.AddEngageWithSupporterTimelinePath(builder, EngageWithSupporterTimelinePathOffset); + ConstCombatExcel.AddEngageTimelinePath(builder, EngageTimelinePathOffset); + ConstCombatExcel.AddShowRaidListCount(builder, ShowRaidListCount); + ConstCombatExcel.AddPublicSpeechBubbleOffsetZ(builder, PublicSpeechBubbleOffsetZ); + ConstCombatExcel.AddPublicSpeechBubbleOffsetY(builder, PublicSpeechBubbleOffsetY); + ConstCombatExcel.AddPublicSpeechBubbleOffsetX(builder, PublicSpeechBubbleOffsetX); + ConstCombatExcel.AddSuppliesConditionStringId(builder, SuppliesConditionStringIdOffset); + ConstCombatExcel.AddBuffIconBlinkTime(builder, BuffIconBlinkTime); + ConstCombatExcel.AddDyingTime(builder, DyingTime); + ConstCombatExcel.AddSkillHandCount(builder, SkillHandCount); + ConstCombatExcel.AddUseInitialRangeForCoverMove(builder, UseInitialRangeForCoverMove); + ConstCombatExcel.AddShowBufficonGroundPassiveSkill(builder, ShowBufficonGroundPassiveSkill); + ConstCombatExcel.AddShowBufficonLeaderSkill(builder, ShowBufficonLeaderSkill); + ConstCombatExcel.AddShowBufficonExtraPassiveSkill(builder, ShowBufficonExtraPassiveSkill); + ConstCombatExcel.AddShowBufficonPassiveSkill(builder, ShowBufficonPassiveSkill); + ConstCombatExcel.AddShowBufficonEXSkill(builder, ShowBufficonEXSkill); + return ConstCombatExcel.EndConstCombatExcel(builder); + } + + public static void StartConstCombatExcel(FlatBufferBuilder builder) { builder.StartTable(79); } + public static void AddSkillHandCount(FlatBufferBuilder builder, int skillHandCount) { builder.AddInt(0, skillHandCount, 0); } + public static void AddDyingTime(FlatBufferBuilder builder, int dyingTime) { builder.AddInt(1, dyingTime, 0); } + public static void AddBuffIconBlinkTime(FlatBufferBuilder builder, int buffIconBlinkTime) { builder.AddInt(2, buffIconBlinkTime, 0); } + public static void AddShowBufficonEXSkill(FlatBufferBuilder builder, bool showBufficonEXSkill) { builder.AddBool(3, showBufficonEXSkill, false); } + public static void AddShowBufficonPassiveSkill(FlatBufferBuilder builder, bool showBufficonPassiveSkill) { builder.AddBool(4, showBufficonPassiveSkill, false); } + public static void AddShowBufficonExtraPassiveSkill(FlatBufferBuilder builder, bool showBufficonExtraPassiveSkill) { builder.AddBool(5, showBufficonExtraPassiveSkill, false); } + public static void AddShowBufficonLeaderSkill(FlatBufferBuilder builder, bool showBufficonLeaderSkill) { builder.AddBool(6, showBufficonLeaderSkill, false); } + public static void AddShowBufficonGroundPassiveSkill(FlatBufferBuilder builder, bool showBufficonGroundPassiveSkill) { builder.AddBool(7, showBufficonGroundPassiveSkill, false); } + public static void AddSuppliesConditionStringId(FlatBufferBuilder builder, StringOffset suppliesConditionStringIdOffset) { builder.AddOffset(8, suppliesConditionStringIdOffset.Value, 0); } + public static void AddPublicSpeechBubbleOffsetX(FlatBufferBuilder builder, float publicSpeechBubbleOffsetX) { builder.AddFloat(9, publicSpeechBubbleOffsetX, 0.0f); } + public static void AddPublicSpeechBubbleOffsetY(FlatBufferBuilder builder, float publicSpeechBubbleOffsetY) { builder.AddFloat(10, publicSpeechBubbleOffsetY, 0.0f); } + public static void AddPublicSpeechBubbleOffsetZ(FlatBufferBuilder builder, float publicSpeechBubbleOffsetZ) { builder.AddFloat(11, publicSpeechBubbleOffsetZ, 0.0f); } + public static void AddShowRaidListCount(FlatBufferBuilder builder, int showRaidListCount) { builder.AddInt(12, showRaidListCount, 0); } + public static void AddMaxRaidTicketCount(FlatBufferBuilder builder, long maxRaidTicketCount) { builder.AddLong(13, maxRaidTicketCount, 0); } + public static void AddMaxRaidBossSkillSlot(FlatBufferBuilder builder, long maxRaidBossSkillSlot) { builder.AddLong(14, maxRaidBossSkillSlot, 0); } + public static void AddEngageTimelinePath(FlatBufferBuilder builder, StringOffset engageTimelinePathOffset) { builder.AddOffset(15, engageTimelinePathOffset.Value, 0); } + public static void AddEngageWithSupporterTimelinePath(FlatBufferBuilder builder, StringOffset engageWithSupporterTimelinePathOffset) { builder.AddOffset(16, engageWithSupporterTimelinePathOffset.Value, 0); } + public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(17, victoryTimelinePathOffset.Value, 0); } + public static void AddTimeLimitAlarm(FlatBufferBuilder builder, long timeLimitAlarm) { builder.AddLong(18, timeLimitAlarm, 0); } + public static void AddEchelonMaxCommonCost(FlatBufferBuilder builder, int echelonMaxCommonCost) { builder.AddInt(19, echelonMaxCommonCost, 0); } + public static void AddEchelonInitCommonCost(FlatBufferBuilder builder, int echelonInitCommonCost) { builder.AddInt(20, echelonInitCommonCost, 0); } + public static void AddSkillSlotCoolTime(FlatBufferBuilder builder, long skillSlotCoolTime) { builder.AddLong(21, skillSlotCoolTime, 0); } + public static void AddEnemyRegenCost(FlatBufferBuilder builder, long enemyRegenCost) { builder.AddLong(22, enemyRegenCost, 0); } + public static void AddChampionRegenCost(FlatBufferBuilder builder, long championRegenCost) { builder.AddLong(23, championRegenCost, 0); } + public static void AddPlayerRegenCostDelay(FlatBufferBuilder builder, long playerRegenCostDelay) { builder.AddLong(24, playerRegenCostDelay, 0); } + public static void AddCrowdControlFactor(FlatBufferBuilder builder, long crowdControlFactor) { builder.AddLong(25, crowdControlFactor, 0); } + public static void AddRaidOpenScenarioId(FlatBufferBuilder builder, StringOffset raidOpenScenarioIdOffset) { builder.AddOffset(26, raidOpenScenarioIdOffset.Value, 0); } + public static void AddEliminateRaidOpenScenarioId(FlatBufferBuilder builder, StringOffset eliminateRaidOpenScenarioIdOffset) { builder.AddOffset(27, eliminateRaidOpenScenarioIdOffset.Value, 0); } + public static void AddDefenceConstA(FlatBufferBuilder builder, long defenceConstA) { builder.AddLong(28, defenceConstA, 0); } + public static void AddDefenceConstB(FlatBufferBuilder builder, long defenceConstB) { builder.AddLong(29, defenceConstB, 0); } + public static void AddDefenceConstC(FlatBufferBuilder builder, long defenceConstC) { builder.AddLong(30, defenceConstC, 0); } + public static void AddDefenceConstD(FlatBufferBuilder builder, long defenceConstD) { builder.AddLong(31, defenceConstD, 0); } + public static void AddAccuracyConstA(FlatBufferBuilder builder, long accuracyConstA) { builder.AddLong(32, accuracyConstA, 0); } + public static void AddAccuracyConstB(FlatBufferBuilder builder, long accuracyConstB) { builder.AddLong(33, accuracyConstB, 0); } + public static void AddAccuracyConstC(FlatBufferBuilder builder, long accuracyConstC) { builder.AddLong(34, accuracyConstC, 0); } + public static void AddAccuracyConstD(FlatBufferBuilder builder, long accuracyConstD) { builder.AddLong(35, accuracyConstD, 0); } + public static void AddCriticalConstA(FlatBufferBuilder builder, long criticalConstA) { builder.AddLong(36, criticalConstA, 0); } + public static void AddCriticalConstB(FlatBufferBuilder builder, long criticalConstB) { builder.AddLong(37, criticalConstB, 0); } + public static void AddCriticalConstC(FlatBufferBuilder builder, long criticalConstC) { builder.AddLong(38, criticalConstC, 0); } + public static void AddCriticalConstD(FlatBufferBuilder builder, long criticalConstD) { builder.AddLong(39, criticalConstD, 0); } + public static void AddMaxGroupBuffLevel(FlatBufferBuilder builder, int maxGroupBuffLevel) { builder.AddInt(40, maxGroupBuffLevel, 0); } + public static void AddEmojiDefaultTime(FlatBufferBuilder builder, int emojiDefaultTime) { builder.AddInt(41, emojiDefaultTime, 0); } + public static void AddTimeLineActionRotateSpeed(FlatBufferBuilder builder, long timeLineActionRotateSpeed) { builder.AddLong(42, timeLineActionRotateSpeed, 0); } + public static void AddBodyRotateSpeed(FlatBufferBuilder builder, long bodyRotateSpeed) { builder.AddLong(43, bodyRotateSpeed, 0); } + public static void AddNormalTimeScale(FlatBufferBuilder builder, long normalTimeScale) { builder.AddLong(44, normalTimeScale, 0); } + public static void AddFastTimeScale(FlatBufferBuilder builder, long fastTimeScale) { builder.AddLong(45, fastTimeScale, 0); } + public static void AddBulletTimeScale(FlatBufferBuilder builder, long bulletTimeScale) { builder.AddLong(46, bulletTimeScale, 0); } + public static void AddUIDisplayDelayAfterSkillCutIn(FlatBufferBuilder builder, long uIDisplayDelayAfterSkillCutIn) { builder.AddLong(47, uIDisplayDelayAfterSkillCutIn, 0); } + public static void AddUseInitialRangeForCoverMove(FlatBufferBuilder builder, bool useInitialRangeForCoverMove) { builder.AddBool(48, useInitialRangeForCoverMove, false); } + public static void AddSlowTimeScale(FlatBufferBuilder builder, long slowTimeScale) { builder.AddLong(49, slowTimeScale, 0); } + public static void AddAimIKMinDegree(FlatBufferBuilder builder, float aimIKMinDegree) { builder.AddFloat(50, aimIKMinDegree, 0.0f); } + public static void AddAimIKMaxDegree(FlatBufferBuilder builder, float aimIKMaxDegree) { builder.AddFloat(51, aimIKMaxDegree, 0.0f); } + public static void AddMinimumClearTime(FlatBufferBuilder builder, int minimumClearTime) { builder.AddInt(52, minimumClearTime, 0); } + public static void AddMinimumClearLevelGap(FlatBufferBuilder builder, int minimumClearLevelGap) { builder.AddInt(53, minimumClearLevelGap, 0); } + public static void AddCheckCheaterMaxUseCostNonArena(FlatBufferBuilder builder, int checkCheaterMaxUseCostNonArena) { builder.AddInt(54, checkCheaterMaxUseCostNonArena, 0); } + public static void AddCheckCheaterMaxUseCostArena(FlatBufferBuilder builder, int checkCheaterMaxUseCostArena) { builder.AddInt(55, checkCheaterMaxUseCostArena, 0); } + public static void AddAllowedMaxTimeScale(FlatBufferBuilder builder, long allowedMaxTimeScale) { builder.AddLong(56, allowedMaxTimeScale, 0); } + public static void AddRandomAnimationOutput(FlatBufferBuilder builder, long randomAnimationOutput) { builder.AddLong(57, randomAnimationOutput, 0); } + public static void AddSummonedTeleportDistance(FlatBufferBuilder builder, long summonedTeleportDistance) { builder.AddLong(58, summonedTeleportDistance, 0); } + public static void AddArenaMinimumClearTime(FlatBufferBuilder builder, int arenaMinimumClearTime) { builder.AddInt(59, arenaMinimumClearTime, 0); } + public static void AddWORLDBOSSBATTLELITTLE(FlatBufferBuilder builder, long wORLDBOSSBATTLELITTLE) { builder.AddLong(60, wORLDBOSSBATTLELITTLE, 0); } + public static void AddWORLDBOSSBATTLEMIDDLE(FlatBufferBuilder builder, long wORLDBOSSBATTLEMIDDLE) { builder.AddLong(61, wORLDBOSSBATTLEMIDDLE, 0); } + public static void AddWORLDBOSSBATTLEHIGH(FlatBufferBuilder builder, long wORLDBOSSBATTLEHIGH) { builder.AddLong(62, wORLDBOSSBATTLEHIGH, 0); } + public static void AddWORLDBOSSBATTLEVERYHIGH(FlatBufferBuilder builder, long wORLDBOSSBATTLEVERYHIGH) { builder.AddLong(63, wORLDBOSSBATTLEVERYHIGH, 0); } + public static void AddWorldRaidAutoSyncTermSecond(FlatBufferBuilder builder, long worldRaidAutoSyncTermSecond) { builder.AddLong(64, worldRaidAutoSyncTermSecond, 0); } + public static void AddWorldRaidBossHpDecreaseTerm(FlatBufferBuilder builder, long worldRaidBossHpDecreaseTerm) { builder.AddLong(65, worldRaidBossHpDecreaseTerm, 0); } + public static void AddWorldRaidBossParcelReactionDelay(FlatBufferBuilder builder, long worldRaidBossParcelReactionDelay) { builder.AddLong(66, worldRaidBossParcelReactionDelay, 0); } + public static void AddRaidRankingJumpMinimumWaitingTime(FlatBufferBuilder builder, long raidRankingJumpMinimumWaitingTime) { builder.AddLong(67, raidRankingJumpMinimumWaitingTime, 0); } + public static void AddEffectTeleportDistance(FlatBufferBuilder builder, float effectTeleportDistance) { builder.AddFloat(68, effectTeleportDistance, 0.0f); } + public static void AddAuraExitThresholdMargin(FlatBufferBuilder builder, long auraExitThresholdMargin) { builder.AddLong(69, auraExitThresholdMargin, 0); } + public static void AddTSAInteractionDamageFactor(FlatBufferBuilder builder, long tSAInteractionDamageFactor) { builder.AddLong(70, tSAInteractionDamageFactor, 0); } + public static void AddVictoryInteractionRate(FlatBufferBuilder builder, long victoryInteractionRate) { builder.AddLong(71, victoryInteractionRate, 0); } + public static void AddEchelonExtensionEngageTimelinePath(FlatBufferBuilder builder, StringOffset echelonExtensionEngageTimelinePathOffset) { builder.AddOffset(72, echelonExtensionEngageTimelinePathOffset.Value, 0); } + public static void AddEchelonExtensionEngageWithSupporterTimelinePath(FlatBufferBuilder builder, StringOffset echelonExtensionEngageWithSupporterTimelinePathOffset) { builder.AddOffset(73, echelonExtensionEngageWithSupporterTimelinePathOffset.Value, 0); } + public static void AddEchelonExtensionVictoryTimelinePath(FlatBufferBuilder builder, StringOffset echelonExtensionVictoryTimelinePathOffset) { builder.AddOffset(74, echelonExtensionVictoryTimelinePathOffset.Value, 0); } + public static void AddEchelonExtensionEchelonMaxCommonCost(FlatBufferBuilder builder, int echelonExtensionEchelonMaxCommonCost) { builder.AddInt(75, echelonExtensionEchelonMaxCommonCost, 0); } + public static void AddEchelonExtensionEchelonInitCommonCost(FlatBufferBuilder builder, int echelonExtensionEchelonInitCommonCost) { builder.AddInt(76, echelonExtensionEchelonInitCommonCost, 0); } + public static void AddEchelonExtensionCostRegenRatio(FlatBufferBuilder builder, long echelonExtensionCostRegenRatio) { builder.AddLong(77, echelonExtensionCostRegenRatio, 0); } + public static void AddCheckCheaterMaxUseCostMultiFloorRaid(FlatBufferBuilder builder, int checkCheaterMaxUseCostMultiFloorRaid) { builder.AddInt(78, checkCheaterMaxUseCostMultiFloorRaid, 0); } + public static Offset EndConstCombatExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstCombatExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SkillHandCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*DyingTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*BuffIconBlinkTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ShowBufficonEXSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*ShowBufficonPassiveSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*ShowBufficonExtraPassiveSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*ShowBufficonLeaderSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*ShowBufficonGroundPassiveSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 20 /*SuppliesConditionStringId*/, false) + && verifier.VerifyField(tablePos, 22 /*PublicSpeechBubbleOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*PublicSpeechBubbleOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*PublicSpeechBubbleOffsetZ*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*ShowRaidListCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*MaxRaidTicketCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*MaxRaidBossSkillSlot*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 34 /*EngageTimelinePath*/, false) + && verifier.VerifyString(tablePos, 36 /*EngageWithSupporterTimelinePath*/, false) + && verifier.VerifyString(tablePos, 38 /*VictoryTimelinePath*/, false) + && verifier.VerifyField(tablePos, 40 /*TimeLimitAlarm*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*EchelonMaxCommonCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*EchelonInitCommonCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*SkillSlotCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*EnemyRegenCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*ChampionRegenCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*PlayerRegenCostDelay*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*CrowdControlFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 56 /*RaidOpenScenarioId*/, false) + && verifier.VerifyString(tablePos, 58 /*EliminateRaidOpenScenarioId*/, false) + && verifier.VerifyField(tablePos, 60 /*DefenceConstA*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*DefenceConstB*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*DefenceConstC*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*DefenceConstD*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*AccuracyConstA*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 70 /*AccuracyConstB*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*AccuracyConstC*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 74 /*AccuracyConstD*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 76 /*CriticalConstA*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 78 /*CriticalConstB*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 80 /*CriticalConstC*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 82 /*CriticalConstD*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 84 /*MaxGroupBuffLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 86 /*EmojiDefaultTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 88 /*TimeLineActionRotateSpeed*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 90 /*BodyRotateSpeed*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 92 /*NormalTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 94 /*FastTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 96 /*BulletTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 98 /*UIDisplayDelayAfterSkillCutIn*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 100 /*UseInitialRangeForCoverMove*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 102 /*SlowTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 104 /*AimIKMinDegree*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 106 /*AimIKMaxDegree*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 108 /*MinimumClearTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 110 /*MinimumClearLevelGap*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 112 /*CheckCheaterMaxUseCostNonArena*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 114 /*CheckCheaterMaxUseCostArena*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 116 /*AllowedMaxTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 118 /*RandomAnimationOutput*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 120 /*SummonedTeleportDistance*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 122 /*ArenaMinimumClearTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 124 /*WORLDBOSSBATTLELITTLE*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 126 /*WORLDBOSSBATTLEMIDDLE*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 128 /*WORLDBOSSBATTLEHIGH*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 130 /*WORLDBOSSBATTLEVERYHIGH*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 132 /*WorldRaidAutoSyncTermSecond*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 134 /*WorldRaidBossHpDecreaseTerm*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 136 /*WorldRaidBossParcelReactionDelay*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 138 /*RaidRankingJumpMinimumWaitingTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 140 /*EffectTeleportDistance*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 142 /*AuraExitThresholdMargin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 144 /*TSAInteractionDamageFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 146 /*VictoryInteractionRate*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 148 /*EchelonExtensionEngageTimelinePath*/, false) + && verifier.VerifyString(tablePos, 150 /*EchelonExtensionEngageWithSupporterTimelinePath*/, false) + && verifier.VerifyString(tablePos, 152 /*EchelonExtensionVictoryTimelinePath*/, false) + && verifier.VerifyField(tablePos, 154 /*EchelonExtensionEchelonMaxCommonCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 156 /*EchelonExtensionEchelonInitCommonCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 158 /*EchelonExtensionCostRegenRatio*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 160 /*CheckCheaterMaxUseCostMultiFloorRaid*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstCombatExcelTable.cs b/SCHALE.Common/FlatData/ConstCombatExcelTable.cs new file mode 100644 index 0000000..1f8ee3c --- /dev/null +++ b/SCHALE.Common/FlatData/ConstCombatExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstCombatExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstCombatExcelTable GetRootAsConstCombatExcelTable(ByteBuffer _bb) { return GetRootAsConstCombatExcelTable(_bb, new ConstCombatExcelTable()); } + public static ConstCombatExcelTable GetRootAsConstCombatExcelTable(ByteBuffer _bb, ConstCombatExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstCombatExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstCombatExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstCombatExcel?)(new SCHALE.Common.FlatData.ConstCombatExcel()).__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 CreateConstCombatExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstCombatExcelTable.AddDataList(builder, DataListOffset); + return ConstCombatExcelTable.EndConstCombatExcelTable(builder); + } + + public static void StartConstCombatExcelTable(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 EndConstCombatExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstCombatExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstCombatExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstCommonExcel.cs b/SCHALE.Common/FlatData/ConstCommonExcel.cs new file mode 100644 index 0000000..56f1caa --- /dev/null +++ b/SCHALE.Common/FlatData/ConstCommonExcel.cs @@ -0,0 +1,586 @@ +// +// 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 ConstCommonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstCommonExcel GetRootAsConstCommonExcel(ByteBuffer _bb) { return GetRootAsConstCommonExcel(_bb, new ConstCommonExcel()); } + public static ConstCommonExcel GetRootAsConstCommonExcel(ByteBuffer _bb, ConstCommonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstCommonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int CampaignMainStageMaxRank { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CampaignMainStageBestRecord { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int HardAdventurePlayCountRecoverDailyNumber { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int HardStageCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TacticRankClearTime { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BaseTimeScale { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int GachaPercentage { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long AcademyFavorZoneId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CafePresetSlotCount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CafeMonologueIntervalMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CafeMonologueDefaultDuration { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CafeBubbleIdleDurationMilliSec { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int FindGiftTimeLimit { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeAutoChargePeriodInMsc { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeProductionDecimalPosition { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeSetGroupApplyCount { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeekDungeonFindGiftRewardLimitCount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StageFailedCurrencyRefundRate { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnterDeposit { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AccountMaxLevel { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MainSquadExpBonus { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SupportSquadExpBonus { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AccountExpRatio { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MissionToastLifeTime { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpItemInsertLimit { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpItemInsertAccelTime { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharacterLvUpCoefficient { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipmentLvUpCoefficient { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpEquipInsertLimit { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipLvUpCoefficient { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NicknameLength { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftDuration(int j) { int o = __p.__offset(66); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int CraftDurationLength { get { int o = __p.__offset(66); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCraftDurationBytes() { return __p.__vector_as_span(66, 4); } +#else + public ArraySegment? GetCraftDurationBytes() { return __p.__vector_as_arraysegment(66); } +#endif + public int[] GetCraftDurationArray() { return __p.__vector_as_array(66); } + public int CraftLimitTime { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShiftingCraftDuration(int j) { int o = __p.__offset(70); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ShiftingCraftDurationLength { get { int o = __p.__offset(70); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetShiftingCraftDurationBytes() { return __p.__vector_as_span(70, 4); } +#else + public ArraySegment? GetShiftingCraftDurationBytes() { return __p.__vector_as_arraysegment(70); } +#endif + public int[] GetShiftingCraftDurationArray() { return __p.__vector_as_array(70); } + public int ShiftingCraftTicketConsumeAmount { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShiftingCraftSlotMaxCapacity { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftTicketItemUniqueId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftTicketConsumeAmount { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType AcademyEnterCostType { get { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long AcademyEnterCostId { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int AcademyTicketCost { get { int o = __p.__offset(84); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MassangerMessageExpireDay { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftLeafNodeGenerateLv1Count { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftLeafNodeGenerateLv2Count { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TutorialGachaShopId { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaShopId { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TutorialGachaGoodsId { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipmentSlotOpenLevel(int j) { int o = __p.__offset(98); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int EquipmentSlotOpenLevelLength { get { int o = __p.__offset(98); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_span(98, 4); } +#else + public ArraySegment? GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_arraysegment(98); } +#endif + public int[] GetEquipmentSlotOpenLevelArray() { return __p.__vector_as_array(98); } + public float ScenarioAutoDelayMillisec { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long JoinOrCreateClanCoolTimeFromHour { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanMaxMember { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanSearchResultCount { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanMaxApplicant { get { int o = __p.__offset(108); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanRejoinCoolTimeFromSecond { get { int o = __p.__offset(110); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ClanWordBalloonMaxCharacter { get { int o = __p.__offset(112); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CallNameRenameCoolTimeFromHour { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CallNameMinimumLength { get { int o = __p.__offset(116); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CallNameMaximumLength { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LobbyToScreenModeWaitTime { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScreenshotToLobbyButtonHideDelay { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrologueScenarioID01 { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrologueScenarioID02 { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialHardStage11 { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialSpeedButtonStage { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialCharacterDefaultCount { get { int o = __p.__offset(132); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ShopCategoryType TutorialShopCategoryType { get { int o = __p.__offset(134); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public long AdventureStrategyPlayTimeLimitInSeconds { get { int o = __p.__offset(136); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WeekDungoenTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(138); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(140); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidOpponentListAmount { get { int o = __p.__offset(142); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftBaseGoldRequired(int j) { int o = __p.__offset(144); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CraftBaseGoldRequiredLength { get { int o = __p.__offset(144); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_span(144, 8); } +#else + public ArraySegment? GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_arraysegment(144); } +#endif + public long[] GetCraftBaseGoldRequiredArray() { return __p.__vector_as_array(144); } + public int PostExpiredDayAttendance { get { int o = __p.__offset(146); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PostExpiredDayInventoryOverflow { get { int o = __p.__offset(148); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PostExpiredDayGameManager { get { int o = __p.__offset(150); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string UILabelCharacterWrap { get { int o = __p.__offset(152); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUILabelCharacterWrapBytes() { return __p.__vector_as_span(152, 1); } +#else + public ArraySegment? GetUILabelCharacterWrapBytes() { return __p.__vector_as_arraysegment(152); } +#endif + public byte[] GetUILabelCharacterWrapArray() { return __p.__vector_as_array(152); } + public float RequestTimeOut { get { int o = __p.__offset(154); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int MailStorageSoftCap { get { int o = __p.__offset(156); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MailStorageHardCap { get { int o = __p.__offset(158); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckStorageSize { get { int o = __p.__offset(160); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckNoStarViewCount { get { int o = __p.__offset(162); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck1StarViewCount { get { int o = __p.__offset(164); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck2StarViewCount { get { int o = __p.__offset(166); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck3StarViewCount { get { int o = __p.__offset(168); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExSkillLevelMax { get { int o = __p.__offset(170); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PublicSkillLevelMax { get { int o = __p.__offset(172); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + 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; } } +#if ENABLE_SPAN_T + public Span GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_span(212, 1); } +#else + public ArraySegment? GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_arraysegment(212); } +#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; } } +#if ENABLE_SPAN_T + public Span GetCommonFavorItemTagsBytes() { return __p.__vector_as_span(226, 4); } +#else + public ArraySegment? GetCommonFavorItemTagsBytes() { return __p.__vector_as_arraysegment(226); } +#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; } } +#if ENABLE_SPAN_T + public Span GetBirthdayMailStartDateBytes() { return __p.__vector_as_span(290, 1); } +#else + public ArraySegment? GetBirthdayMailStartDateBytes() { return __p.__vector_as_arraysegment(290); } +#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 static void StartConstCommonExcel(FlatBufferBuilder builder) { builder.StartTable(156); } + 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); } + public static void AddHardStageCount(FlatBufferBuilder builder, int hardStageCount) { builder.AddInt(3, hardStageCount, 0); } + public static void AddTacticRankClearTime(FlatBufferBuilder builder, int tacticRankClearTime) { builder.AddInt(4, tacticRankClearTime, 0); } + public static void AddBaseTimeScale(FlatBufferBuilder builder, long baseTimeScale) { builder.AddLong(5, baseTimeScale, 0); } + public static void AddGachaPercentage(FlatBufferBuilder builder, int gachaPercentage) { builder.AddInt(6, gachaPercentage, 0); } + public static void AddAcademyFavorZoneId(FlatBufferBuilder builder, long academyFavorZoneId) { builder.AddLong(7, academyFavorZoneId, 0); } + public static void AddCafePresetSlotCount(FlatBufferBuilder builder, int cafePresetSlotCount) { builder.AddInt(8, cafePresetSlotCount, 0); } + public static void AddCafeMonologueIntervalMillisec(FlatBufferBuilder builder, long cafeMonologueIntervalMillisec) { builder.AddLong(9, cafeMonologueIntervalMillisec, 0); } + public static void AddCafeMonologueDefaultDuration(FlatBufferBuilder builder, long cafeMonologueDefaultDuration) { builder.AddLong(10, cafeMonologueDefaultDuration, 0); } + public static void AddCafeBubbleIdleDurationMilliSec(FlatBufferBuilder builder, long cafeBubbleIdleDurationMilliSec) { builder.AddLong(11, cafeBubbleIdleDurationMilliSec, 0); } + public static void AddFindGiftTimeLimit(FlatBufferBuilder builder, int findGiftTimeLimit) { builder.AddInt(12, findGiftTimeLimit, 0); } + public static void AddCafeAutoChargePeriodInMsc(FlatBufferBuilder builder, int cafeAutoChargePeriodInMsc) { builder.AddInt(13, cafeAutoChargePeriodInMsc, 0); } + public static void AddCafeProductionDecimalPosition(FlatBufferBuilder builder, int cafeProductionDecimalPosition) { builder.AddInt(14, cafeProductionDecimalPosition, 0); } + public static void AddCafeSetGroupApplyCount(FlatBufferBuilder builder, int cafeSetGroupApplyCount) { builder.AddInt(15, cafeSetGroupApplyCount, 0); } + public static void AddWeekDungeonFindGiftRewardLimitCount(FlatBufferBuilder builder, int weekDungeonFindGiftRewardLimitCount) { builder.AddInt(16, weekDungeonFindGiftRewardLimitCount, 0); } + public static void AddStageFailedCurrencyRefundRate(FlatBufferBuilder builder, int stageFailedCurrencyRefundRate) { builder.AddInt(17, stageFailedCurrencyRefundRate, 0); } + public static void AddEnterDeposit(FlatBufferBuilder builder, int enterDeposit) { builder.AddInt(18, enterDeposit, 0); } + public static void AddAccountMaxLevel(FlatBufferBuilder builder, int accountMaxLevel) { builder.AddInt(19, accountMaxLevel, 0); } + public static void AddMainSquadExpBonus(FlatBufferBuilder builder, int mainSquadExpBonus) { builder.AddInt(20, mainSquadExpBonus, 0); } + public static void AddSupportSquadExpBonus(FlatBufferBuilder builder, int supportSquadExpBonus) { builder.AddInt(21, supportSquadExpBonus, 0); } + public static void AddAccountExpRatio(FlatBufferBuilder builder, int accountExpRatio) { builder.AddInt(22, accountExpRatio, 0); } + public static void AddMissionToastLifeTime(FlatBufferBuilder builder, int missionToastLifeTime) { builder.AddInt(23, missionToastLifeTime, 0); } + public static void AddExpItemInsertLimit(FlatBufferBuilder builder, int expItemInsertLimit) { builder.AddInt(24, expItemInsertLimit, 0); } + public static void AddExpItemInsertAccelTime(FlatBufferBuilder builder, int expItemInsertAccelTime) { builder.AddInt(25, expItemInsertAccelTime, 0); } + public static void AddCharacterLvUpCoefficient(FlatBufferBuilder builder, int characterLvUpCoefficient) { builder.AddInt(26, characterLvUpCoefficient, 0); } + public static void AddEquipmentLvUpCoefficient(FlatBufferBuilder builder, int equipmentLvUpCoefficient) { builder.AddInt(27, equipmentLvUpCoefficient, 0); } + public static void AddExpEquipInsertLimit(FlatBufferBuilder builder, int expEquipInsertLimit) { builder.AddInt(28, expEquipInsertLimit, 0); } + public static void AddEquipLvUpCoefficient(FlatBufferBuilder builder, int equipLvUpCoefficient) { builder.AddInt(29, equipLvUpCoefficient, 0); } + public static void AddNicknameLength(FlatBufferBuilder builder, int nicknameLength) { builder.AddInt(30, nicknameLength, 0); } + public static void AddCraftDuration(FlatBufferBuilder builder, VectorOffset craftDurationOffset) { builder.AddOffset(31, craftDurationOffset.Value, 0); } + public static VectorOffset CreateCraftDurationVector(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 CreateCraftDurationVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCraftDurationVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCraftDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCraftDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCraftLimitTime(FlatBufferBuilder builder, int craftLimitTime) { builder.AddInt(32, craftLimitTime, 0); } + public static void AddShiftingCraftDuration(FlatBufferBuilder builder, VectorOffset shiftingCraftDurationOffset) { builder.AddOffset(33, shiftingCraftDurationOffset.Value, 0); } + public static VectorOffset CreateShiftingCraftDurationVector(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 CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShiftingCraftDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddShiftingCraftTicketConsumeAmount(FlatBufferBuilder builder, int shiftingCraftTicketConsumeAmount) { builder.AddInt(34, shiftingCraftTicketConsumeAmount, 0); } + public static void AddShiftingCraftSlotMaxCapacity(FlatBufferBuilder builder, int shiftingCraftSlotMaxCapacity) { builder.AddInt(35, shiftingCraftSlotMaxCapacity, 0); } + public static void AddCraftTicketItemUniqueId(FlatBufferBuilder builder, int craftTicketItemUniqueId) { builder.AddInt(36, craftTicketItemUniqueId, 0); } + public static void AddCraftTicketConsumeAmount(FlatBufferBuilder builder, int craftTicketConsumeAmount) { builder.AddInt(37, craftTicketConsumeAmount, 0); } + public static void AddAcademyEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType academyEnterCostType) { builder.AddInt(38, (int)academyEnterCostType, 0); } + public static void AddAcademyEnterCostId(FlatBufferBuilder builder, long academyEnterCostId) { builder.AddLong(39, academyEnterCostId, 0); } + public static void AddAcademyTicketCost(FlatBufferBuilder builder, int academyTicketCost) { builder.AddInt(40, academyTicketCost, 0); } + public static void AddMassangerMessageExpireDay(FlatBufferBuilder builder, int massangerMessageExpireDay) { builder.AddInt(41, massangerMessageExpireDay, 0); } + public static void AddCraftLeafNodeGenerateLv1Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv1Count) { builder.AddInt(42, craftLeafNodeGenerateLv1Count, 0); } + public static void AddCraftLeafNodeGenerateLv2Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv2Count) { builder.AddInt(43, craftLeafNodeGenerateLv2Count, 0); } + public static void AddTutorialGachaShopId(FlatBufferBuilder builder, int tutorialGachaShopId) { builder.AddInt(44, tutorialGachaShopId, 0); } + public static void AddBeforehandGachaShopId(FlatBufferBuilder builder, int beforehandGachaShopId) { builder.AddInt(45, beforehandGachaShopId, 0); } + public static void AddTutorialGachaGoodsId(FlatBufferBuilder builder, int tutorialGachaGoodsId) { builder.AddInt(46, tutorialGachaGoodsId, 0); } + public static void AddEquipmentSlotOpenLevel(FlatBufferBuilder builder, VectorOffset equipmentSlotOpenLevelOffset) { builder.AddOffset(47, equipmentSlotOpenLevelOffset.Value, 0); } + public static VectorOffset CreateEquipmentSlotOpenLevelVector(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 CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEquipmentSlotOpenLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddScenarioAutoDelayMillisec(FlatBufferBuilder builder, float scenarioAutoDelayMillisec) { builder.AddFloat(48, scenarioAutoDelayMillisec, 0.0f); } + public static void AddJoinOrCreateClanCoolTimeFromHour(FlatBufferBuilder builder, long joinOrCreateClanCoolTimeFromHour) { builder.AddLong(49, joinOrCreateClanCoolTimeFromHour, 0); } + public static void AddClanMaxMember(FlatBufferBuilder builder, long clanMaxMember) { builder.AddLong(50, clanMaxMember, 0); } + public static void AddClanSearchResultCount(FlatBufferBuilder builder, long clanSearchResultCount) { builder.AddLong(51, clanSearchResultCount, 0); } + public static void AddClanMaxApplicant(FlatBufferBuilder builder, long clanMaxApplicant) { builder.AddLong(52, clanMaxApplicant, 0); } + public static void AddClanRejoinCoolTimeFromSecond(FlatBufferBuilder builder, long clanRejoinCoolTimeFromSecond) { builder.AddLong(53, clanRejoinCoolTimeFromSecond, 0); } + public static void AddClanWordBalloonMaxCharacter(FlatBufferBuilder builder, int clanWordBalloonMaxCharacter) { builder.AddInt(54, clanWordBalloonMaxCharacter, 0); } + public static void AddCallNameRenameCoolTimeFromHour(FlatBufferBuilder builder, long callNameRenameCoolTimeFromHour) { builder.AddLong(55, callNameRenameCoolTimeFromHour, 0); } + public static void AddCallNameMinimumLength(FlatBufferBuilder builder, long callNameMinimumLength) { builder.AddLong(56, callNameMinimumLength, 0); } + public static void AddCallNameMaximumLength(FlatBufferBuilder builder, long callNameMaximumLength) { builder.AddLong(57, callNameMaximumLength, 0); } + public static void AddLobbyToScreenModeWaitTime(FlatBufferBuilder builder, long lobbyToScreenModeWaitTime) { builder.AddLong(58, lobbyToScreenModeWaitTime, 0); } + public static void AddScreenshotToLobbyButtonHideDelay(FlatBufferBuilder builder, long screenshotToLobbyButtonHideDelay) { builder.AddLong(59, screenshotToLobbyButtonHideDelay, 0); } + public static void AddPrologueScenarioID01(FlatBufferBuilder builder, long prologueScenarioID01) { builder.AddLong(60, prologueScenarioID01, 0); } + public static void AddPrologueScenarioID02(FlatBufferBuilder builder, long prologueScenarioID02) { builder.AddLong(61, prologueScenarioID02, 0); } + public static void AddTutorialHardStage11(FlatBufferBuilder builder, long tutorialHardStage11) { builder.AddLong(62, tutorialHardStage11, 0); } + public static void AddTutorialSpeedButtonStage(FlatBufferBuilder builder, long tutorialSpeedButtonStage) { builder.AddLong(63, tutorialSpeedButtonStage, 0); } + public static void AddTutorialCharacterDefaultCount(FlatBufferBuilder builder, long tutorialCharacterDefaultCount) { builder.AddLong(64, tutorialCharacterDefaultCount, 0); } + public static void AddTutorialShopCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType tutorialShopCategoryType) { builder.AddInt(65, (int)tutorialShopCategoryType, 0); } + public static void AddAdventureStrategyPlayTimeLimitInSeconds(FlatBufferBuilder builder, long adventureStrategyPlayTimeLimitInSeconds) { builder.AddLong(66, adventureStrategyPlayTimeLimitInSeconds, 0); } + public static void AddWeekDungoenTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long weekDungoenTacticPlayTimeLimitInSeconds) { builder.AddLong(67, weekDungoenTacticPlayTimeLimitInSeconds, 0); } + public static void AddRaidTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long raidTacticPlayTimeLimitInSeconds) { builder.AddLong(68, raidTacticPlayTimeLimitInSeconds, 0); } + public static void AddRaidOpponentListAmount(FlatBufferBuilder builder, long raidOpponentListAmount) { builder.AddLong(69, raidOpponentListAmount, 0); } + public static void AddCraftBaseGoldRequired(FlatBufferBuilder builder, VectorOffset craftBaseGoldRequiredOffset) { builder.AddOffset(70, craftBaseGoldRequiredOffset.Value, 0); } + public static VectorOffset CreateCraftBaseGoldRequiredVector(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 CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCraftBaseGoldRequiredVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddPostExpiredDayAttendance(FlatBufferBuilder builder, int postExpiredDayAttendance) { builder.AddInt(71, postExpiredDayAttendance, 0); } + public static void AddPostExpiredDayInventoryOverflow(FlatBufferBuilder builder, int postExpiredDayInventoryOverflow) { builder.AddInt(72, postExpiredDayInventoryOverflow, 0); } + public static void AddPostExpiredDayGameManager(FlatBufferBuilder builder, int postExpiredDayGameManager) { builder.AddInt(73, postExpiredDayGameManager, 0); } + public static void AddUILabelCharacterWrap(FlatBufferBuilder builder, StringOffset uILabelCharacterWrapOffset) { builder.AddOffset(74, uILabelCharacterWrapOffset.Value, 0); } + public static void AddRequestTimeOut(FlatBufferBuilder builder, float requestTimeOut) { builder.AddFloat(75, requestTimeOut, 0.0f); } + public static void AddMailStorageSoftCap(FlatBufferBuilder builder, int mailStorageSoftCap) { builder.AddInt(76, mailStorageSoftCap, 0); } + public static void AddMailStorageHardCap(FlatBufferBuilder builder, int mailStorageHardCap) { builder.AddInt(77, mailStorageHardCap, 0); } + public static void AddClearDeckStorageSize(FlatBufferBuilder builder, int clearDeckStorageSize) { builder.AddInt(78, clearDeckStorageSize, 0); } + public static void AddClearDeckNoStarViewCount(FlatBufferBuilder builder, int clearDeckNoStarViewCount) { builder.AddInt(79, clearDeckNoStarViewCount, 0); } + public static void AddClearDeck1StarViewCount(FlatBufferBuilder builder, int clearDeck1StarViewCount) { builder.AddInt(80, clearDeck1StarViewCount, 0); } + public static void AddClearDeck2StarViewCount(FlatBufferBuilder builder, int clearDeck2StarViewCount) { builder.AddInt(81, clearDeck2StarViewCount, 0); } + public static void AddClearDeck3StarViewCount(FlatBufferBuilder builder, int clearDeck3StarViewCount) { builder.AddInt(82, clearDeck3StarViewCount, 0); } + public static void AddExSkillLevelMax(FlatBufferBuilder builder, int exSkillLevelMax) { builder.AddInt(83, exSkillLevelMax, 0); } + public static void AddPublicSkillLevelMax(FlatBufferBuilder builder, int publicSkillLevelMax) { builder.AddInt(84, publicSkillLevelMax, 0); } + 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 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 Offset EndConstCommonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstCommonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CampaignMainStageMaxRank*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*CampaignMainStageBestRecord*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*HardAdventurePlayCountRecoverDailyNumber*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*HardStageCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*TacticRankClearTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*BaseTimeScale*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*GachaPercentage*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*AcademyFavorZoneId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*CafePresetSlotCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*CafeMonologueIntervalMillisec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*CafeMonologueDefaultDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*CafeBubbleIdleDurationMilliSec*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*FindGiftTimeLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*CafeAutoChargePeriodInMsc*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*CafeProductionDecimalPosition*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*CafeSetGroupApplyCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*WeekDungeonFindGiftRewardLimitCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*StageFailedCurrencyRefundRate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*EnterDeposit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*AccountMaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*MainSquadExpBonus*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*SupportSquadExpBonus*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*AccountExpRatio*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*MissionToastLifeTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*ExpItemInsertLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*ExpItemInsertAccelTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*CharacterLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*EquipmentLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*ExpEquipInsertLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*EquipLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 64 /*NicknameLength*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 66 /*CraftDuration*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 68 /*CraftLimitTime*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 70 /*ShiftingCraftDuration*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 72 /*ShiftingCraftTicketConsumeAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 74 /*ShiftingCraftSlotMaxCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 76 /*CraftTicketItemUniqueId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 78 /*CraftTicketConsumeAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 80 /*AcademyEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 82 /*AcademyEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 84 /*AcademyTicketCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 86 /*MassangerMessageExpireDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 88 /*CraftLeafNodeGenerateLv1Count*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 90 /*CraftLeafNodeGenerateLv2Count*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 92 /*TutorialGachaShopId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 94 /*BeforehandGachaShopId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 96 /*TutorialGachaGoodsId*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 98 /*EquipmentSlotOpenLevel*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 100 /*ScenarioAutoDelayMillisec*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 102 /*JoinOrCreateClanCoolTimeFromHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 104 /*ClanMaxMember*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 106 /*ClanSearchResultCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 108 /*ClanMaxApplicant*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 110 /*ClanRejoinCoolTimeFromSecond*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 112 /*ClanWordBalloonMaxCharacter*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 114 /*CallNameRenameCoolTimeFromHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 116 /*CallNameMinimumLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 118 /*CallNameMaximumLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 120 /*LobbyToScreenModeWaitTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 122 /*ScreenshotToLobbyButtonHideDelay*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 124 /*PrologueScenarioID01*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 126 /*PrologueScenarioID02*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 128 /*TutorialHardStage11*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 130 /*TutorialSpeedButtonStage*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 132 /*TutorialCharacterDefaultCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 134 /*TutorialShopCategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 136 /*AdventureStrategyPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 138 /*WeekDungoenTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 140 /*RaidTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 142 /*RaidOpponentListAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 144 /*CraftBaseGoldRequired*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 146 /*PostExpiredDayAttendance*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 148 /*PostExpiredDayInventoryOverflow*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 150 /*PostExpiredDayGameManager*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 152 /*UILabelCharacterWrap*/, false) + && verifier.VerifyField(tablePos, 154 /*RequestTimeOut*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 156 /*MailStorageSoftCap*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 158 /*MailStorageHardCap*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 160 /*ClearDeckStorageSize*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 162 /*ClearDeckNoStarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 164 /*ClearDeck1StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 166 /*ClearDeck2StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 168 /*ClearDeck3StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 170 /*ExSkillLevelMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 172 /*PublicSkillLevelMax*/, 4 /*int*/, 4, false) + && 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstCommonExcelTable.cs b/SCHALE.Common/FlatData/ConstCommonExcelTable.cs new file mode 100644 index 0000000..292ad53 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstCommonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstCommonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstCommonExcelTable GetRootAsConstCommonExcelTable(ByteBuffer _bb) { return GetRootAsConstCommonExcelTable(_bb, new ConstCommonExcelTable()); } + public static ConstCommonExcelTable GetRootAsConstCommonExcelTable(ByteBuffer _bb, ConstCommonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstCommonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstCommonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstCommonExcel?)(new SCHALE.Common.FlatData.ConstCommonExcel()).__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 CreateConstCommonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstCommonExcelTable.AddDataList(builder, DataListOffset); + return ConstCommonExcelTable.EndConstCommonExcelTable(builder); + } + + public static void StartConstCommonExcelTable(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 EndConstCommonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstCommonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstCommonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstConquestExcel.cs b/SCHALE.Common/FlatData/ConstConquestExcel.cs new file mode 100644 index 0000000..6886289 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstConquestExcel.cs @@ -0,0 +1,75 @@ +// +// 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 ConstConquestExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstConquestExcel GetRootAsConstConquestExcel(ByteBuffer _bb) { return GetRootAsConstConquestExcel(_bb, new ConstConquestExcel()); } + public static ConstConquestExcel GetRootAsConstConquestExcel(ByteBuffer _bb, ConstConquestExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstConquestExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int ManageUnitChange { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AssistCount { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PlayTimeLimitInSeconds { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AnimationUnitAmountMin { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AnimationUnitAmountMax { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float AnimationUnitDelay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateConstConquestExcel(FlatBufferBuilder builder, + int ManageUnitChange = 0, + int AssistCount = 0, + int PlayTimeLimitInSeconds = 0, + int AnimationUnitAmountMin = 0, + int AnimationUnitAmountMax = 0, + float AnimationUnitDelay = 0.0f) { + builder.StartTable(6); + ConstConquestExcel.AddAnimationUnitDelay(builder, AnimationUnitDelay); + ConstConquestExcel.AddAnimationUnitAmountMax(builder, AnimationUnitAmountMax); + ConstConquestExcel.AddAnimationUnitAmountMin(builder, AnimationUnitAmountMin); + ConstConquestExcel.AddPlayTimeLimitInSeconds(builder, PlayTimeLimitInSeconds); + ConstConquestExcel.AddAssistCount(builder, AssistCount); + ConstConquestExcel.AddManageUnitChange(builder, ManageUnitChange); + return ConstConquestExcel.EndConstConquestExcel(builder); + } + + public static void StartConstConquestExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddManageUnitChange(FlatBufferBuilder builder, int manageUnitChange) { builder.AddInt(0, manageUnitChange, 0); } + public static void AddAssistCount(FlatBufferBuilder builder, int assistCount) { builder.AddInt(1, assistCount, 0); } + public static void AddPlayTimeLimitInSeconds(FlatBufferBuilder builder, int playTimeLimitInSeconds) { builder.AddInt(2, playTimeLimitInSeconds, 0); } + public static void AddAnimationUnitAmountMin(FlatBufferBuilder builder, int animationUnitAmountMin) { builder.AddInt(3, animationUnitAmountMin, 0); } + public static void AddAnimationUnitAmountMax(FlatBufferBuilder builder, int animationUnitAmountMax) { builder.AddInt(4, animationUnitAmountMax, 0); } + public static void AddAnimationUnitDelay(FlatBufferBuilder builder, float animationUnitDelay) { builder.AddFloat(5, animationUnitDelay, 0.0f); } + public static Offset EndConstConquestExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstConquestExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ManageUnitChange*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*AssistCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*PlayTimeLimitInSeconds*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*AnimationUnitAmountMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*AnimationUnitAmountMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*AnimationUnitDelay*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstConquestExcelTable.cs b/SCHALE.Common/FlatData/ConstConquestExcelTable.cs new file mode 100644 index 0000000..e4cd0d3 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstConquestExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstConquestExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstConquestExcelTable GetRootAsConstConquestExcelTable(ByteBuffer _bb) { return GetRootAsConstConquestExcelTable(_bb, new ConstConquestExcelTable()); } + public static ConstConquestExcelTable GetRootAsConstConquestExcelTable(ByteBuffer _bb, ConstConquestExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstConquestExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstConquestExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstConquestExcel?)(new SCHALE.Common.FlatData.ConstConquestExcel()).__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 CreateConstConquestExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstConquestExcelTable.AddDataList(builder, DataListOffset); + return ConstConquestExcelTable.EndConstConquestExcelTable(builder); + } + + public static void StartConstConquestExcelTable(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 EndConstConquestExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstConquestExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstConquestExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstEventCommonExcel.cs b/SCHALE.Common/FlatData/ConstEventCommonExcel.cs new file mode 100644 index 0000000..7dd1d35 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstEventCommonExcel.cs @@ -0,0 +1,122 @@ +// +// 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 ConstEventCommonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstEventCommonExcel GetRootAsConstEventCommonExcel(ByteBuffer _bb) { return GetRootAsConstEventCommonExcel(_bb, new ConstEventCommonExcel()); } + public static ConstEventCommonExcel GetRootAsConstEventCommonExcel(ByteBuffer _bb, ConstEventCommonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstEventCommonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int EventContentHardStageCount { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EventStrategyPlayTimeLimitInSeconds { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SubEventChangeLimitSeconds { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool SubEventInstantClear { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CardShopProbWeightCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Rarity CardShopProbWeightRarity { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public string MeetupScenarioReplayResource { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMeetupScenarioReplayResourceBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetMeetupScenarioReplayResourceBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetMeetupScenarioReplayResourceArray() { return __p.__vector_as_array(16); } + public string MeetupScenarioReplayTitleLocalize { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMeetupScenarioReplayTitleLocalizeBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetMeetupScenarioReplayTitleLocalizeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetMeetupScenarioReplayTitleLocalizeArray() { return __p.__vector_as_array(18); } + public long SpecialOperactionCollectionGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int TreasureNormalVariationAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TreasureLoopVariationAmount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TreasureLimitVariationLoopCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TreasureLimitVariationClearLoopCount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstEventCommonExcel(FlatBufferBuilder builder, + int EventContentHardStageCount = 0, + long EventStrategyPlayTimeLimitInSeconds = 0, + long SubEventChangeLimitSeconds = 0, + bool SubEventInstantClear = false, + long CardShopProbWeightCount = 0, + SCHALE.Common.FlatData.Rarity CardShopProbWeightRarity = SCHALE.Common.FlatData.Rarity.N, + StringOffset MeetupScenarioReplayResourceOffset = default(StringOffset), + StringOffset MeetupScenarioReplayTitleLocalizeOffset = default(StringOffset), + long SpecialOperactionCollectionGroupId = 0, + int TreasureNormalVariationAmount = 0, + int TreasureLoopVariationAmount = 0, + int TreasureLimitVariationLoopCount = 0, + int TreasureLimitVariationClearLoopCount = 0) { + builder.StartTable(13); + ConstEventCommonExcel.AddSpecialOperactionCollectionGroupId(builder, SpecialOperactionCollectionGroupId); + ConstEventCommonExcel.AddCardShopProbWeightCount(builder, CardShopProbWeightCount); + ConstEventCommonExcel.AddSubEventChangeLimitSeconds(builder, SubEventChangeLimitSeconds); + ConstEventCommonExcel.AddEventStrategyPlayTimeLimitInSeconds(builder, EventStrategyPlayTimeLimitInSeconds); + ConstEventCommonExcel.AddTreasureLimitVariationClearLoopCount(builder, TreasureLimitVariationClearLoopCount); + ConstEventCommonExcel.AddTreasureLimitVariationLoopCount(builder, TreasureLimitVariationLoopCount); + ConstEventCommonExcel.AddTreasureLoopVariationAmount(builder, TreasureLoopVariationAmount); + ConstEventCommonExcel.AddTreasureNormalVariationAmount(builder, TreasureNormalVariationAmount); + ConstEventCommonExcel.AddMeetupScenarioReplayTitleLocalize(builder, MeetupScenarioReplayTitleLocalizeOffset); + ConstEventCommonExcel.AddMeetupScenarioReplayResource(builder, MeetupScenarioReplayResourceOffset); + ConstEventCommonExcel.AddCardShopProbWeightRarity(builder, CardShopProbWeightRarity); + ConstEventCommonExcel.AddEventContentHardStageCount(builder, EventContentHardStageCount); + ConstEventCommonExcel.AddSubEventInstantClear(builder, SubEventInstantClear); + return ConstEventCommonExcel.EndConstEventCommonExcel(builder); + } + + public static void StartConstEventCommonExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddEventContentHardStageCount(FlatBufferBuilder builder, int eventContentHardStageCount) { builder.AddInt(0, eventContentHardStageCount, 0); } + public static void AddEventStrategyPlayTimeLimitInSeconds(FlatBufferBuilder builder, long eventStrategyPlayTimeLimitInSeconds) { builder.AddLong(1, eventStrategyPlayTimeLimitInSeconds, 0); } + public static void AddSubEventChangeLimitSeconds(FlatBufferBuilder builder, long subEventChangeLimitSeconds) { builder.AddLong(2, subEventChangeLimitSeconds, 0); } + public static void AddSubEventInstantClear(FlatBufferBuilder builder, bool subEventInstantClear) { builder.AddBool(3, subEventInstantClear, false); } + public static void AddCardShopProbWeightCount(FlatBufferBuilder builder, long cardShopProbWeightCount) { builder.AddLong(4, cardShopProbWeightCount, 0); } + public static void AddCardShopProbWeightRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity cardShopProbWeightRarity) { builder.AddInt(5, (int)cardShopProbWeightRarity, 0); } + public static void AddMeetupScenarioReplayResource(FlatBufferBuilder builder, StringOffset meetupScenarioReplayResourceOffset) { builder.AddOffset(6, meetupScenarioReplayResourceOffset.Value, 0); } + public static void AddMeetupScenarioReplayTitleLocalize(FlatBufferBuilder builder, StringOffset meetupScenarioReplayTitleLocalizeOffset) { builder.AddOffset(7, meetupScenarioReplayTitleLocalizeOffset.Value, 0); } + public static void AddSpecialOperactionCollectionGroupId(FlatBufferBuilder builder, long specialOperactionCollectionGroupId) { builder.AddLong(8, specialOperactionCollectionGroupId, 0); } + public static void AddTreasureNormalVariationAmount(FlatBufferBuilder builder, int treasureNormalVariationAmount) { builder.AddInt(9, treasureNormalVariationAmount, 0); } + public static void AddTreasureLoopVariationAmount(FlatBufferBuilder builder, int treasureLoopVariationAmount) { builder.AddInt(10, treasureLoopVariationAmount, 0); } + public static void AddTreasureLimitVariationLoopCount(FlatBufferBuilder builder, int treasureLimitVariationLoopCount) { builder.AddInt(11, treasureLimitVariationLoopCount, 0); } + public static void AddTreasureLimitVariationClearLoopCount(FlatBufferBuilder builder, int treasureLimitVariationClearLoopCount) { builder.AddInt(12, treasureLimitVariationClearLoopCount, 0); } + public static Offset EndConstEventCommonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstEventCommonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentHardStageCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*EventStrategyPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*SubEventChangeLimitSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*SubEventInstantClear*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*CardShopProbWeightCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*CardShopProbWeightRarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyString(tablePos, 16 /*MeetupScenarioReplayResource*/, false) + && verifier.VerifyString(tablePos, 18 /*MeetupScenarioReplayTitleLocalize*/, false) + && verifier.VerifyField(tablePos, 20 /*SpecialOperactionCollectionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*TreasureNormalVariationAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*TreasureLoopVariationAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*TreasureLimitVariationLoopCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*TreasureLimitVariationClearLoopCount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs b/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs new file mode 100644 index 0000000..857bc15 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstEventCommonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstEventCommonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstEventCommonExcelTable GetRootAsConstEventCommonExcelTable(ByteBuffer _bb) { return GetRootAsConstEventCommonExcelTable(_bb, new ConstEventCommonExcelTable()); } + public static ConstEventCommonExcelTable GetRootAsConstEventCommonExcelTable(ByteBuffer _bb, ConstEventCommonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstEventCommonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstEventCommonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstEventCommonExcel?)(new SCHALE.Common.FlatData.ConstEventCommonExcel()).__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 CreateConstEventCommonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstEventCommonExcelTable.AddDataList(builder, DataListOffset); + return ConstEventCommonExcelTable.EndConstEventCommonExcelTable(builder); + } + + public static void StartConstEventCommonExcelTable(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 EndConstEventCommonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstEventCommonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstEventCommonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstFieldExcel.cs b/SCHALE.Common/FlatData/ConstFieldExcel.cs new file mode 100644 index 0000000..7cdcf7d --- /dev/null +++ b/SCHALE.Common/FlatData/ConstFieldExcel.cs @@ -0,0 +1,140 @@ +// +// 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 ConstFieldExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstFieldExcel GetRootAsConstFieldExcel(ByteBuffer _bb) { return GetRootAsConstFieldExcel(_bb, new ConstFieldExcel()); } + public static ConstFieldExcel GetRootAsConstFieldExcel(ByteBuffer _bb, ConstFieldExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstFieldExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int DialogSmoothTime { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TalkDialogDurationDefault { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ThinkDialogDurationDefault { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int IdleThinkDelayMin { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int IdleThinkDelayMax { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExclaimDurationDefault { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int QuestionDurationDefault { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int UpsetDurationDefault { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SurpriseDurationDefault { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BulbDurationDefault { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int HeartDurationDefault { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SweatDurationDefault { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AngryDurationDefault { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MusicDurationDefault { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DotDurationDefault { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MomotalkDurationDefault { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PhoneDurationDefault { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int KeywordDurationDefault { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EvidenceDurationDefault { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstFieldExcel(FlatBufferBuilder builder, + int DialogSmoothTime = 0, + int TalkDialogDurationDefault = 0, + int ThinkDialogDurationDefault = 0, + int IdleThinkDelayMin = 0, + int IdleThinkDelayMax = 0, + int ExclaimDurationDefault = 0, + int QuestionDurationDefault = 0, + int UpsetDurationDefault = 0, + int SurpriseDurationDefault = 0, + int BulbDurationDefault = 0, + int HeartDurationDefault = 0, + int SweatDurationDefault = 0, + int AngryDurationDefault = 0, + int MusicDurationDefault = 0, + int DotDurationDefault = 0, + int MomotalkDurationDefault = 0, + int PhoneDurationDefault = 0, + int KeywordDurationDefault = 0, + int EvidenceDurationDefault = 0) { + builder.StartTable(19); + ConstFieldExcel.AddEvidenceDurationDefault(builder, EvidenceDurationDefault); + ConstFieldExcel.AddKeywordDurationDefault(builder, KeywordDurationDefault); + ConstFieldExcel.AddPhoneDurationDefault(builder, PhoneDurationDefault); + ConstFieldExcel.AddMomotalkDurationDefault(builder, MomotalkDurationDefault); + ConstFieldExcel.AddDotDurationDefault(builder, DotDurationDefault); + ConstFieldExcel.AddMusicDurationDefault(builder, MusicDurationDefault); + ConstFieldExcel.AddAngryDurationDefault(builder, AngryDurationDefault); + ConstFieldExcel.AddSweatDurationDefault(builder, SweatDurationDefault); + ConstFieldExcel.AddHeartDurationDefault(builder, HeartDurationDefault); + ConstFieldExcel.AddBulbDurationDefault(builder, BulbDurationDefault); + ConstFieldExcel.AddSurpriseDurationDefault(builder, SurpriseDurationDefault); + ConstFieldExcel.AddUpsetDurationDefault(builder, UpsetDurationDefault); + ConstFieldExcel.AddQuestionDurationDefault(builder, QuestionDurationDefault); + ConstFieldExcel.AddExclaimDurationDefault(builder, ExclaimDurationDefault); + ConstFieldExcel.AddIdleThinkDelayMax(builder, IdleThinkDelayMax); + ConstFieldExcel.AddIdleThinkDelayMin(builder, IdleThinkDelayMin); + ConstFieldExcel.AddThinkDialogDurationDefault(builder, ThinkDialogDurationDefault); + ConstFieldExcel.AddTalkDialogDurationDefault(builder, TalkDialogDurationDefault); + ConstFieldExcel.AddDialogSmoothTime(builder, DialogSmoothTime); + return ConstFieldExcel.EndConstFieldExcel(builder); + } + + public static void StartConstFieldExcel(FlatBufferBuilder builder) { builder.StartTable(19); } + public static void AddDialogSmoothTime(FlatBufferBuilder builder, int dialogSmoothTime) { builder.AddInt(0, dialogSmoothTime, 0); } + public static void AddTalkDialogDurationDefault(FlatBufferBuilder builder, int talkDialogDurationDefault) { builder.AddInt(1, talkDialogDurationDefault, 0); } + public static void AddThinkDialogDurationDefault(FlatBufferBuilder builder, int thinkDialogDurationDefault) { builder.AddInt(2, thinkDialogDurationDefault, 0); } + public static void AddIdleThinkDelayMin(FlatBufferBuilder builder, int idleThinkDelayMin) { builder.AddInt(3, idleThinkDelayMin, 0); } + public static void AddIdleThinkDelayMax(FlatBufferBuilder builder, int idleThinkDelayMax) { builder.AddInt(4, idleThinkDelayMax, 0); } + public static void AddExclaimDurationDefault(FlatBufferBuilder builder, int exclaimDurationDefault) { builder.AddInt(5, exclaimDurationDefault, 0); } + public static void AddQuestionDurationDefault(FlatBufferBuilder builder, int questionDurationDefault) { builder.AddInt(6, questionDurationDefault, 0); } + public static void AddUpsetDurationDefault(FlatBufferBuilder builder, int upsetDurationDefault) { builder.AddInt(7, upsetDurationDefault, 0); } + public static void AddSurpriseDurationDefault(FlatBufferBuilder builder, int surpriseDurationDefault) { builder.AddInt(8, surpriseDurationDefault, 0); } + public static void AddBulbDurationDefault(FlatBufferBuilder builder, int bulbDurationDefault) { builder.AddInt(9, bulbDurationDefault, 0); } + public static void AddHeartDurationDefault(FlatBufferBuilder builder, int heartDurationDefault) { builder.AddInt(10, heartDurationDefault, 0); } + public static void AddSweatDurationDefault(FlatBufferBuilder builder, int sweatDurationDefault) { builder.AddInt(11, sweatDurationDefault, 0); } + public static void AddAngryDurationDefault(FlatBufferBuilder builder, int angryDurationDefault) { builder.AddInt(12, angryDurationDefault, 0); } + public static void AddMusicDurationDefault(FlatBufferBuilder builder, int musicDurationDefault) { builder.AddInt(13, musicDurationDefault, 0); } + public static void AddDotDurationDefault(FlatBufferBuilder builder, int dotDurationDefault) { builder.AddInt(14, dotDurationDefault, 0); } + public static void AddMomotalkDurationDefault(FlatBufferBuilder builder, int momotalkDurationDefault) { builder.AddInt(15, momotalkDurationDefault, 0); } + public static void AddPhoneDurationDefault(FlatBufferBuilder builder, int phoneDurationDefault) { builder.AddInt(16, phoneDurationDefault, 0); } + public static void AddKeywordDurationDefault(FlatBufferBuilder builder, int keywordDurationDefault) { builder.AddInt(17, keywordDurationDefault, 0); } + public static void AddEvidenceDurationDefault(FlatBufferBuilder builder, int evidenceDurationDefault) { builder.AddInt(18, evidenceDurationDefault, 0); } + public static Offset EndConstFieldExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstFieldExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*DialogSmoothTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*TalkDialogDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ThinkDialogDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IdleThinkDelayMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*IdleThinkDelayMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ExclaimDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*QuestionDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*UpsetDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*SurpriseDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*BulbDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*HeartDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*SweatDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*AngryDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*MusicDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*DotDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*MomotalkDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*PhoneDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*KeywordDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*EvidenceDurationDefault*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstFieldExcelTable.cs b/SCHALE.Common/FlatData/ConstFieldExcelTable.cs new file mode 100644 index 0000000..040469a --- /dev/null +++ b/SCHALE.Common/FlatData/ConstFieldExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstFieldExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstFieldExcelTable GetRootAsConstFieldExcelTable(ByteBuffer _bb) { return GetRootAsConstFieldExcelTable(_bb, new ConstFieldExcelTable()); } + public static ConstFieldExcelTable GetRootAsConstFieldExcelTable(ByteBuffer _bb, ConstFieldExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstFieldExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstFieldExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstFieldExcel?)(new SCHALE.Common.FlatData.ConstFieldExcel()).__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 CreateConstFieldExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstFieldExcelTable.AddDataList(builder, DataListOffset); + return ConstFieldExcelTable.EndConstFieldExcelTable(builder); + } + + public static void StartConstFieldExcelTable(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 EndConstFieldExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstFieldExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstFieldExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs b/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs new file mode 100644 index 0000000..c66ef08 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstMiniGameShootingExcel.cs @@ -0,0 +1,101 @@ +// +// 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 ConstMiniGameShootingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstMiniGameShootingExcel GetRootAsConstMiniGameShootingExcel(ByteBuffer _bb) { return GetRootAsConstMiniGameShootingExcel(_bb, new ConstMiniGameShootingExcel()); } + public static ConstMiniGameShootingExcel GetRootAsConstMiniGameShootingExcel(ByteBuffer _bb, ConstMiniGameShootingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstMiniGameShootingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long NormalStageId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + 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; } } +#if ENABLE_SPAN_T + public Span GetSpawnEffectPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetSpawnEffectPathBytes() { return __p.__vector_as_arraysegment(20); } +#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 static Offset CreateConstMiniGameShootingExcel(FlatBufferBuilder builder, + long NormalStageId = 0, + int NormalSectionCount = 0, + long HardStageId = 0, + int HardSectionCount = 0, + long LeftPlayerCharacterId = 0, + long RightPlayerCharacterId = 0, + long HiddenPlayerCharacterId = 0, + float CameraSmoothTime = 0.0f, + StringOffset SpawnEffectPathOffset = default(StringOffset), + float WaitTimeAfterSpawn = 0.0f) { + builder.StartTable(10); + ConstMiniGameShootingExcel.AddHiddenPlayerCharacterId(builder, HiddenPlayerCharacterId); + ConstMiniGameShootingExcel.AddRightPlayerCharacterId(builder, RightPlayerCharacterId); + ConstMiniGameShootingExcel.AddLeftPlayerCharacterId(builder, LeftPlayerCharacterId); + ConstMiniGameShootingExcel.AddHardStageId(builder, HardStageId); + ConstMiniGameShootingExcel.AddNormalStageId(builder, NormalStageId); + ConstMiniGameShootingExcel.AddWaitTimeAfterSpawn(builder, WaitTimeAfterSpawn); + ConstMiniGameShootingExcel.AddSpawnEffectPath(builder, SpawnEffectPathOffset); + ConstMiniGameShootingExcel.AddCameraSmoothTime(builder, CameraSmoothTime); + ConstMiniGameShootingExcel.AddHardSectionCount(builder, HardSectionCount); + ConstMiniGameShootingExcel.AddNormalSectionCount(builder, NormalSectionCount); + return ConstMiniGameShootingExcel.EndConstMiniGameShootingExcel(builder); + } + + public static void StartConstMiniGameShootingExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + 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 Offset EndConstMiniGameShootingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstMiniGameShootingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*NormalStageId*/, 8 /*long*/, 8, false) + && 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs b/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs new file mode 100644 index 0000000..6e12c33 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstMiniGameShootingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstMiniGameShootingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstMiniGameShootingExcelTable GetRootAsConstMiniGameShootingExcelTable(ByteBuffer _bb) { return GetRootAsConstMiniGameShootingExcelTable(_bb, new ConstMiniGameShootingExcelTable()); } + public static ConstMiniGameShootingExcelTable GetRootAsConstMiniGameShootingExcelTable(ByteBuffer _bb, ConstMiniGameShootingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstMiniGameShootingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstMiniGameShootingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstMiniGameShootingExcel?)(new SCHALE.Common.FlatData.ConstMiniGameShootingExcel()).__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 CreateConstMiniGameShootingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstMiniGameShootingExcelTable.AddDataList(builder, DataListOffset); + return ConstMiniGameShootingExcelTable.EndConstMiniGameShootingExcelTable(builder); + } + + public static void StartConstMiniGameShootingExcelTable(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 EndConstMiniGameShootingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstMiniGameShootingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstMiniGameShootingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs b/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs new file mode 100644 index 0000000..8ac629e --- /dev/null +++ b/SCHALE.Common/FlatData/ConstMinigameTBGExcel.cs @@ -0,0 +1,186 @@ +// +// 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 ConstMinigameTBGExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstMinigameTBGExcel GetRootAsConstMinigameTBGExcel(ByteBuffer _bb) { return GetRootAsConstMinigameTBGExcel(_bb, new ConstMinigameTBGExcel()); } + public static ConstMinigameTBGExcel GetRootAsConstMinigameTBGExcel(ByteBuffer _bb, ConstMinigameTBGExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstMinigameTBGExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float ConquestMapBoundaryOffsetLeft { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetRight { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetTop { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapBoundaryOffsetBottom { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapCenterOffsetX { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ConquestMapCenterOffsetY { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraAngle { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMax { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMin { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomDefault { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ThemaLoadingProgressTime { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float MapAllyRotation { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string AniAllyBattleAttack { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAniAllyBattleAttackBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetAniAllyBattleAttackBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetAniAllyBattleAttackArray() { return __p.__vector_as_array(28); } + public string EffectAllyBattleAttack { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectAllyBattleAttackBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetEffectAllyBattleAttackBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetEffectAllyBattleAttackArray() { return __p.__vector_as_array(30); } + public string EffectAllyBattleDamage { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectAllyBattleDamageBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetEffectAllyBattleDamageBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetEffectAllyBattleDamageArray() { return __p.__vector_as_array(32); } + public string AniEnemyBattleAttack { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAniEnemyBattleAttackBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetAniEnemyBattleAttackBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetAniEnemyBattleAttackArray() { return __p.__vector_as_array(34); } + public string EffectEnemyBattleAttack { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectEnemyBattleAttackBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetEffectEnemyBattleAttackBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetEffectEnemyBattleAttackArray() { return __p.__vector_as_array(36); } + public string EffectEnemyBattleDamage { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectEnemyBattleDamageBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetEffectEnemyBattleDamageBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetEffectEnemyBattleDamageArray() { return __p.__vector_as_array(38); } + public float EncounterAllyRotation { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float EncounterEnemyRotation { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int EncounterRewardReceiveIndex { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstMinigameTBGExcel(FlatBufferBuilder builder, + float ConquestMapBoundaryOffsetLeft = 0.0f, + float ConquestMapBoundaryOffsetRight = 0.0f, + float ConquestMapBoundaryOffsetTop = 0.0f, + float ConquestMapBoundaryOffsetBottom = 0.0f, + float ConquestMapCenterOffsetX = 0.0f, + float ConquestMapCenterOffsetY = 0.0f, + float CameraAngle = 0.0f, + float CameraZoomMax = 0.0f, + float CameraZoomMin = 0.0f, + float CameraZoomDefault = 0.0f, + float ThemaLoadingProgressTime = 0.0f, + float MapAllyRotation = 0.0f, + StringOffset AniAllyBattleAttackOffset = default(StringOffset), + StringOffset EffectAllyBattleAttackOffset = default(StringOffset), + StringOffset EffectAllyBattleDamageOffset = default(StringOffset), + StringOffset AniEnemyBattleAttackOffset = default(StringOffset), + StringOffset EffectEnemyBattleAttackOffset = default(StringOffset), + StringOffset EffectEnemyBattleDamageOffset = default(StringOffset), + float EncounterAllyRotation = 0.0f, + float EncounterEnemyRotation = 0.0f, + int EncounterRewardReceiveIndex = 0) { + builder.StartTable(21); + ConstMinigameTBGExcel.AddEncounterRewardReceiveIndex(builder, EncounterRewardReceiveIndex); + ConstMinigameTBGExcel.AddEncounterEnemyRotation(builder, EncounterEnemyRotation); + ConstMinigameTBGExcel.AddEncounterAllyRotation(builder, EncounterAllyRotation); + ConstMinigameTBGExcel.AddEffectEnemyBattleDamage(builder, EffectEnemyBattleDamageOffset); + ConstMinigameTBGExcel.AddEffectEnemyBattleAttack(builder, EffectEnemyBattleAttackOffset); + ConstMinigameTBGExcel.AddAniEnemyBattleAttack(builder, AniEnemyBattleAttackOffset); + ConstMinigameTBGExcel.AddEffectAllyBattleDamage(builder, EffectAllyBattleDamageOffset); + ConstMinigameTBGExcel.AddEffectAllyBattleAttack(builder, EffectAllyBattleAttackOffset); + ConstMinigameTBGExcel.AddAniAllyBattleAttack(builder, AniAllyBattleAttackOffset); + ConstMinigameTBGExcel.AddMapAllyRotation(builder, MapAllyRotation); + ConstMinigameTBGExcel.AddThemaLoadingProgressTime(builder, ThemaLoadingProgressTime); + ConstMinigameTBGExcel.AddCameraZoomDefault(builder, CameraZoomDefault); + ConstMinigameTBGExcel.AddCameraZoomMin(builder, CameraZoomMin); + ConstMinigameTBGExcel.AddCameraZoomMax(builder, CameraZoomMax); + ConstMinigameTBGExcel.AddCameraAngle(builder, CameraAngle); + ConstMinigameTBGExcel.AddConquestMapCenterOffsetY(builder, ConquestMapCenterOffsetY); + ConstMinigameTBGExcel.AddConquestMapCenterOffsetX(builder, ConquestMapCenterOffsetX); + ConstMinigameTBGExcel.AddConquestMapBoundaryOffsetBottom(builder, ConquestMapBoundaryOffsetBottom); + ConstMinigameTBGExcel.AddConquestMapBoundaryOffsetTop(builder, ConquestMapBoundaryOffsetTop); + ConstMinigameTBGExcel.AddConquestMapBoundaryOffsetRight(builder, ConquestMapBoundaryOffsetRight); + ConstMinigameTBGExcel.AddConquestMapBoundaryOffsetLeft(builder, ConquestMapBoundaryOffsetLeft); + return ConstMinigameTBGExcel.EndConstMinigameTBGExcel(builder); + } + + public static void StartConstMinigameTBGExcel(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddConquestMapBoundaryOffsetLeft(FlatBufferBuilder builder, float conquestMapBoundaryOffsetLeft) { builder.AddFloat(0, conquestMapBoundaryOffsetLeft, 0.0f); } + public static void AddConquestMapBoundaryOffsetRight(FlatBufferBuilder builder, float conquestMapBoundaryOffsetRight) { builder.AddFloat(1, conquestMapBoundaryOffsetRight, 0.0f); } + public static void AddConquestMapBoundaryOffsetTop(FlatBufferBuilder builder, float conquestMapBoundaryOffsetTop) { builder.AddFloat(2, conquestMapBoundaryOffsetTop, 0.0f); } + public static void AddConquestMapBoundaryOffsetBottom(FlatBufferBuilder builder, float conquestMapBoundaryOffsetBottom) { builder.AddFloat(3, conquestMapBoundaryOffsetBottom, 0.0f); } + public static void AddConquestMapCenterOffsetX(FlatBufferBuilder builder, float conquestMapCenterOffsetX) { builder.AddFloat(4, conquestMapCenterOffsetX, 0.0f); } + public static void AddConquestMapCenterOffsetY(FlatBufferBuilder builder, float conquestMapCenterOffsetY) { builder.AddFloat(5, conquestMapCenterOffsetY, 0.0f); } + public static void AddCameraAngle(FlatBufferBuilder builder, float cameraAngle) { builder.AddFloat(6, cameraAngle, 0.0f); } + public static void AddCameraZoomMax(FlatBufferBuilder builder, float cameraZoomMax) { builder.AddFloat(7, cameraZoomMax, 0.0f); } + public static void AddCameraZoomMin(FlatBufferBuilder builder, float cameraZoomMin) { builder.AddFloat(8, cameraZoomMin, 0.0f); } + public static void AddCameraZoomDefault(FlatBufferBuilder builder, float cameraZoomDefault) { builder.AddFloat(9, cameraZoomDefault, 0.0f); } + public static void AddThemaLoadingProgressTime(FlatBufferBuilder builder, float themaLoadingProgressTime) { builder.AddFloat(10, themaLoadingProgressTime, 0.0f); } + public static void AddMapAllyRotation(FlatBufferBuilder builder, float mapAllyRotation) { builder.AddFloat(11, mapAllyRotation, 0.0f); } + public static void AddAniAllyBattleAttack(FlatBufferBuilder builder, StringOffset aniAllyBattleAttackOffset) { builder.AddOffset(12, aniAllyBattleAttackOffset.Value, 0); } + public static void AddEffectAllyBattleAttack(FlatBufferBuilder builder, StringOffset effectAllyBattleAttackOffset) { builder.AddOffset(13, effectAllyBattleAttackOffset.Value, 0); } + public static void AddEffectAllyBattleDamage(FlatBufferBuilder builder, StringOffset effectAllyBattleDamageOffset) { builder.AddOffset(14, effectAllyBattleDamageOffset.Value, 0); } + public static void AddAniEnemyBattleAttack(FlatBufferBuilder builder, StringOffset aniEnemyBattleAttackOffset) { builder.AddOffset(15, aniEnemyBattleAttackOffset.Value, 0); } + public static void AddEffectEnemyBattleAttack(FlatBufferBuilder builder, StringOffset effectEnemyBattleAttackOffset) { builder.AddOffset(16, effectEnemyBattleAttackOffset.Value, 0); } + public static void AddEffectEnemyBattleDamage(FlatBufferBuilder builder, StringOffset effectEnemyBattleDamageOffset) { builder.AddOffset(17, effectEnemyBattleDamageOffset.Value, 0); } + public static void AddEncounterAllyRotation(FlatBufferBuilder builder, float encounterAllyRotation) { builder.AddFloat(18, encounterAllyRotation, 0.0f); } + public static void AddEncounterEnemyRotation(FlatBufferBuilder builder, float encounterEnemyRotation) { builder.AddFloat(19, encounterEnemyRotation, 0.0f); } + public static void AddEncounterRewardReceiveIndex(FlatBufferBuilder builder, int encounterRewardReceiveIndex) { builder.AddInt(20, encounterRewardReceiveIndex, 0); } + public static Offset EndConstMinigameTBGExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstMinigameTBGExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ConquestMapBoundaryOffsetLeft*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ConquestMapBoundaryOffsetRight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ConquestMapBoundaryOffsetTop*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ConquestMapBoundaryOffsetBottom*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ConquestMapCenterOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ConquestMapCenterOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*CameraAngle*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*CameraZoomMax*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*CameraZoomMin*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*CameraZoomDefault*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*ThemaLoadingProgressTime*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*MapAllyRotation*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 28 /*AniAllyBattleAttack*/, false) + && verifier.VerifyString(tablePos, 30 /*EffectAllyBattleAttack*/, false) + && verifier.VerifyString(tablePos, 32 /*EffectAllyBattleDamage*/, false) + && verifier.VerifyString(tablePos, 34 /*AniEnemyBattleAttack*/, false) + && verifier.VerifyString(tablePos, 36 /*EffectEnemyBattleAttack*/, false) + && verifier.VerifyString(tablePos, 38 /*EffectEnemyBattleDamage*/, false) + && verifier.VerifyField(tablePos, 40 /*EncounterAllyRotation*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*EncounterEnemyRotation*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*EncounterRewardReceiveIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs b/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs new file mode 100644 index 0000000..605e034 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstMinigameTBGExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstMinigameTBGExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstMinigameTBGExcelTable GetRootAsConstMinigameTBGExcelTable(ByteBuffer _bb) { return GetRootAsConstMinigameTBGExcelTable(_bb, new ConstMinigameTBGExcelTable()); } + public static ConstMinigameTBGExcelTable GetRootAsConstMinigameTBGExcelTable(ByteBuffer _bb, ConstMinigameTBGExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstMinigameTBGExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstMinigameTBGExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstMinigameTBGExcel?)(new SCHALE.Common.FlatData.ConstMinigameTBGExcel()).__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 CreateConstMinigameTBGExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstMinigameTBGExcelTable.AddDataList(builder, DataListOffset); + return ConstMinigameTBGExcelTable.EndConstMinigameTBGExcelTable(builder); + } + + public static void StartConstMinigameTBGExcelTable(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 EndConstMinigameTBGExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstMinigameTBGExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstMinigameTBGExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs b/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs new file mode 100644 index 0000000..7ce1b1b --- /dev/null +++ b/SCHALE.Common/FlatData/ConstNewbieContentExcel.cs @@ -0,0 +1,87 @@ +// +// 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 ConstNewbieContentExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstNewbieContentExcel GetRootAsConstNewbieContentExcel(ByteBuffer _bb) { return GetRootAsConstNewbieContentExcel(_bb, new ConstNewbieContentExcel()); } + public static ConstNewbieContentExcel GetRootAsConstNewbieContentExcel(ByteBuffer _bb, ConstNewbieContentExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstNewbieContentExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string NewbieGachaReleaseDate { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNewbieGachaReleaseDateBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNewbieGachaReleaseDateBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNewbieGachaReleaseDateArray() { return __p.__vector_as_array(4); } + public int NewbieGachaCheckDays { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NewbieGachaTokenGraceTime { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string NewbieAttendanceReleaseDate { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNewbieAttendanceReleaseDateBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetNewbieAttendanceReleaseDateBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetNewbieAttendanceReleaseDateArray() { return __p.__vector_as_array(10); } + public int NewbieAttendanceStartableEndDay { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NewbieAttendanceEndDay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstNewbieContentExcel(FlatBufferBuilder builder, + StringOffset NewbieGachaReleaseDateOffset = default(StringOffset), + int NewbieGachaCheckDays = 0, + int NewbieGachaTokenGraceTime = 0, + StringOffset NewbieAttendanceReleaseDateOffset = default(StringOffset), + int NewbieAttendanceStartableEndDay = 0, + int NewbieAttendanceEndDay = 0) { + builder.StartTable(6); + ConstNewbieContentExcel.AddNewbieAttendanceEndDay(builder, NewbieAttendanceEndDay); + ConstNewbieContentExcel.AddNewbieAttendanceStartableEndDay(builder, NewbieAttendanceStartableEndDay); + ConstNewbieContentExcel.AddNewbieAttendanceReleaseDate(builder, NewbieAttendanceReleaseDateOffset); + ConstNewbieContentExcel.AddNewbieGachaTokenGraceTime(builder, NewbieGachaTokenGraceTime); + ConstNewbieContentExcel.AddNewbieGachaCheckDays(builder, NewbieGachaCheckDays); + ConstNewbieContentExcel.AddNewbieGachaReleaseDate(builder, NewbieGachaReleaseDateOffset); + return ConstNewbieContentExcel.EndConstNewbieContentExcel(builder); + } + + public static void StartConstNewbieContentExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddNewbieGachaReleaseDate(FlatBufferBuilder builder, StringOffset newbieGachaReleaseDateOffset) { builder.AddOffset(0, newbieGachaReleaseDateOffset.Value, 0); } + public static void AddNewbieGachaCheckDays(FlatBufferBuilder builder, int newbieGachaCheckDays) { builder.AddInt(1, newbieGachaCheckDays, 0); } + public static void AddNewbieGachaTokenGraceTime(FlatBufferBuilder builder, int newbieGachaTokenGraceTime) { builder.AddInt(2, newbieGachaTokenGraceTime, 0); } + public static void AddNewbieAttendanceReleaseDate(FlatBufferBuilder builder, StringOffset newbieAttendanceReleaseDateOffset) { builder.AddOffset(3, newbieAttendanceReleaseDateOffset.Value, 0); } + public static void AddNewbieAttendanceStartableEndDay(FlatBufferBuilder builder, int newbieAttendanceStartableEndDay) { builder.AddInt(4, newbieAttendanceStartableEndDay, 0); } + public static void AddNewbieAttendanceEndDay(FlatBufferBuilder builder, int newbieAttendanceEndDay) { builder.AddInt(5, newbieAttendanceEndDay, 0); } + public static Offset EndConstNewbieContentExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstNewbieContentExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*NewbieGachaReleaseDate*/, false) + && verifier.VerifyField(tablePos, 6 /*NewbieGachaCheckDays*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*NewbieGachaTokenGraceTime*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*NewbieAttendanceReleaseDate*/, false) + && verifier.VerifyField(tablePos, 12 /*NewbieAttendanceStartableEndDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*NewbieAttendanceEndDay*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs b/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs new file mode 100644 index 0000000..57c03e8 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstNewbieContentExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstNewbieContentExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstNewbieContentExcelTable GetRootAsConstNewbieContentExcelTable(ByteBuffer _bb) { return GetRootAsConstNewbieContentExcelTable(_bb, new ConstNewbieContentExcelTable()); } + public static ConstNewbieContentExcelTable GetRootAsConstNewbieContentExcelTable(ByteBuffer _bb, ConstNewbieContentExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstNewbieContentExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstNewbieContentExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstNewbieContentExcel?)(new SCHALE.Common.FlatData.ConstNewbieContentExcel()).__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 CreateConstNewbieContentExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstNewbieContentExcelTable.AddDataList(builder, DataListOffset); + return ConstNewbieContentExcelTable.EndConstNewbieContentExcelTable(builder); + } + + public static void StartConstNewbieContentExcelTable(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 EndConstNewbieContentExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstNewbieContentExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstNewbieContentExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstStrategyExcel.cs b/SCHALE.Common/FlatData/ConstStrategyExcel.cs new file mode 100644 index 0000000..a7e25e2 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstStrategyExcel.cs @@ -0,0 +1,162 @@ +// +// 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 ConstStrategyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstStrategyExcel GetRootAsConstStrategyExcel(ByteBuffer _bb) { return GetRootAsConstStrategyExcel(_bb, new ConstStrategyExcel()); } + public static ConstStrategyExcel GetRootAsConstStrategyExcel(ByteBuffer _bb, ConstStrategyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstStrategyExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float HexaMapBoundaryOffset { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float HexaMapStartCameraOffset { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMax { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomMin { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CameraZoomDefault { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public SCHALE.Common.FlatData.CurrencyTypes HealCostType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } } + public long HealCostAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int HealCostAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetHealCostAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetHealCostAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetHealCostAmountArray() { return __p.__vector_as_array(16); } + public int CanHealHpRate { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long PlayTimeLimitInSeconds { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int AdventureEchelonCount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RaidEchelonCount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DefaultEchelonCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EventContentEchelonCount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TimeAttackDungeonEchelonCount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WorldRaidEchelonCount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TacticSkipClearTimeSeconds { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TacticSkipFramePerSecond { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ConquestEchelonCount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StoryEchelonCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MultiSweepPresetCount { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MultiSweepPresetNameMaxLength { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateConstStrategyExcel(FlatBufferBuilder builder, + float HexaMapBoundaryOffset = 0.0f, + float HexaMapStartCameraOffset = 0.0f, + float CameraZoomMax = 0.0f, + float CameraZoomMin = 0.0f, + float CameraZoomDefault = 0.0f, + SCHALE.Common.FlatData.CurrencyTypes HealCostType = SCHALE.Common.FlatData.CurrencyTypes.Invalid, + VectorOffset HealCostAmountOffset = default(VectorOffset), + int CanHealHpRate = 0, + long PlayTimeLimitInSeconds = 0, + int AdventureEchelonCount = 0, + int RaidEchelonCount = 0, + int DefaultEchelonCount = 0, + int EventContentEchelonCount = 0, + int TimeAttackDungeonEchelonCount = 0, + int WorldRaidEchelonCount = 0, + int TacticSkipClearTimeSeconds = 0, + int TacticSkipFramePerSecond = 0, + int ConquestEchelonCount = 0, + int StoryEchelonCount = 0, + int MultiSweepPresetCount = 0, + int MultiSweepPresetNameMaxLength = 0) { + builder.StartTable(21); + ConstStrategyExcel.AddPlayTimeLimitInSeconds(builder, PlayTimeLimitInSeconds); + ConstStrategyExcel.AddMultiSweepPresetNameMaxLength(builder, MultiSweepPresetNameMaxLength); + ConstStrategyExcel.AddMultiSweepPresetCount(builder, MultiSweepPresetCount); + ConstStrategyExcel.AddStoryEchelonCount(builder, StoryEchelonCount); + ConstStrategyExcel.AddConquestEchelonCount(builder, ConquestEchelonCount); + ConstStrategyExcel.AddTacticSkipFramePerSecond(builder, TacticSkipFramePerSecond); + ConstStrategyExcel.AddTacticSkipClearTimeSeconds(builder, TacticSkipClearTimeSeconds); + ConstStrategyExcel.AddWorldRaidEchelonCount(builder, WorldRaidEchelonCount); + ConstStrategyExcel.AddTimeAttackDungeonEchelonCount(builder, TimeAttackDungeonEchelonCount); + ConstStrategyExcel.AddEventContentEchelonCount(builder, EventContentEchelonCount); + ConstStrategyExcel.AddDefaultEchelonCount(builder, DefaultEchelonCount); + ConstStrategyExcel.AddRaidEchelonCount(builder, RaidEchelonCount); + ConstStrategyExcel.AddAdventureEchelonCount(builder, AdventureEchelonCount); + ConstStrategyExcel.AddCanHealHpRate(builder, CanHealHpRate); + ConstStrategyExcel.AddHealCostAmount(builder, HealCostAmountOffset); + ConstStrategyExcel.AddHealCostType(builder, HealCostType); + ConstStrategyExcel.AddCameraZoomDefault(builder, CameraZoomDefault); + ConstStrategyExcel.AddCameraZoomMin(builder, CameraZoomMin); + ConstStrategyExcel.AddCameraZoomMax(builder, CameraZoomMax); + ConstStrategyExcel.AddHexaMapStartCameraOffset(builder, HexaMapStartCameraOffset); + ConstStrategyExcel.AddHexaMapBoundaryOffset(builder, HexaMapBoundaryOffset); + return ConstStrategyExcel.EndConstStrategyExcel(builder); + } + + public static void StartConstStrategyExcel(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddHexaMapBoundaryOffset(FlatBufferBuilder builder, float hexaMapBoundaryOffset) { builder.AddFloat(0, hexaMapBoundaryOffset, 0.0f); } + public static void AddHexaMapStartCameraOffset(FlatBufferBuilder builder, float hexaMapStartCameraOffset) { builder.AddFloat(1, hexaMapStartCameraOffset, 0.0f); } + public static void AddCameraZoomMax(FlatBufferBuilder builder, float cameraZoomMax) { builder.AddFloat(2, cameraZoomMax, 0.0f); } + public static void AddCameraZoomMin(FlatBufferBuilder builder, float cameraZoomMin) { builder.AddFloat(3, cameraZoomMin, 0.0f); } + public static void AddCameraZoomDefault(FlatBufferBuilder builder, float cameraZoomDefault) { builder.AddFloat(4, cameraZoomDefault, 0.0f); } + public static void AddHealCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes healCostType) { builder.AddInt(5, (int)healCostType, 0); } + public static void AddHealCostAmount(FlatBufferBuilder builder, VectorOffset healCostAmountOffset) { builder.AddOffset(6, healCostAmountOffset.Value, 0); } + public static VectorOffset CreateHealCostAmountVector(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 CreateHealCostAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHealCostAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateHealCostAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartHealCostAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCanHealHpRate(FlatBufferBuilder builder, int canHealHpRate) { builder.AddInt(7, canHealHpRate, 0); } + public static void AddPlayTimeLimitInSeconds(FlatBufferBuilder builder, long playTimeLimitInSeconds) { builder.AddLong(8, playTimeLimitInSeconds, 0); } + public static void AddAdventureEchelonCount(FlatBufferBuilder builder, int adventureEchelonCount) { builder.AddInt(9, adventureEchelonCount, 0); } + public static void AddRaidEchelonCount(FlatBufferBuilder builder, int raidEchelonCount) { builder.AddInt(10, raidEchelonCount, 0); } + public static void AddDefaultEchelonCount(FlatBufferBuilder builder, int defaultEchelonCount) { builder.AddInt(11, defaultEchelonCount, 0); } + public static void AddEventContentEchelonCount(FlatBufferBuilder builder, int eventContentEchelonCount) { builder.AddInt(12, eventContentEchelonCount, 0); } + public static void AddTimeAttackDungeonEchelonCount(FlatBufferBuilder builder, int timeAttackDungeonEchelonCount) { builder.AddInt(13, timeAttackDungeonEchelonCount, 0); } + public static void AddWorldRaidEchelonCount(FlatBufferBuilder builder, int worldRaidEchelonCount) { builder.AddInt(14, worldRaidEchelonCount, 0); } + public static void AddTacticSkipClearTimeSeconds(FlatBufferBuilder builder, int tacticSkipClearTimeSeconds) { builder.AddInt(15, tacticSkipClearTimeSeconds, 0); } + public static void AddTacticSkipFramePerSecond(FlatBufferBuilder builder, int tacticSkipFramePerSecond) { builder.AddInt(16, tacticSkipFramePerSecond, 0); } + public static void AddConquestEchelonCount(FlatBufferBuilder builder, int conquestEchelonCount) { builder.AddInt(17, conquestEchelonCount, 0); } + public static void AddStoryEchelonCount(FlatBufferBuilder builder, int storyEchelonCount) { builder.AddInt(18, storyEchelonCount, 0); } + public static void AddMultiSweepPresetCount(FlatBufferBuilder builder, int multiSweepPresetCount) { builder.AddInt(19, multiSweepPresetCount, 0); } + public static void AddMultiSweepPresetNameMaxLength(FlatBufferBuilder builder, int multiSweepPresetNameMaxLength) { builder.AddInt(20, multiSweepPresetNameMaxLength, 0); } + public static Offset EndConstStrategyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstStrategyExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*HexaMapBoundaryOffset*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*HexaMapStartCameraOffset*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CameraZoomMax*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CameraZoomMin*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*CameraZoomDefault*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*HealCostType*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*HealCostAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*CanHealHpRate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*PlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*AdventureEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*RaidEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*DefaultEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*EventContentEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*TimeAttackDungeonEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*WorldRaidEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*TacticSkipClearTimeSeconds*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*TacticSkipFramePerSecond*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*ConquestEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*StoryEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*MultiSweepPresetCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*MultiSweepPresetNameMaxLength*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs b/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs new file mode 100644 index 0000000..b5bd861 --- /dev/null +++ b/SCHALE.Common/FlatData/ConstStrategyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ConstStrategyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ConstStrategyExcelTable GetRootAsConstStrategyExcelTable(ByteBuffer _bb) { return GetRootAsConstStrategyExcelTable(_bb, new ConstStrategyExcelTable()); } + public static ConstStrategyExcelTable GetRootAsConstStrategyExcelTable(ByteBuffer _bb, ConstStrategyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ConstStrategyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ConstStrategyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ConstStrategyExcel?)(new SCHALE.Common.FlatData.ConstStrategyExcel()).__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 CreateConstStrategyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ConstStrategyExcelTable.AddDataList(builder, DataListOffset); + return ConstStrategyExcelTable.EndConstStrategyExcelTable(builder); + } + + public static void StartConstStrategyExcelTable(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 EndConstStrategyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ConstStrategyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ConstStrategyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ConsumeCondition.cs b/SCHALE.Common/FlatData/ConsumeCondition.cs new file mode 100644 index 0000000..47b3079 --- /dev/null +++ b/SCHALE.Common/FlatData/ConsumeCondition.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ConsumeCondition : int +{ + And = 0, + Or = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs new file mode 100644 index 0000000..69b0e37 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs @@ -0,0 +1,75 @@ +// +// 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 ContentEnterCostReduceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentEnterCostReduceExcel GetRootAsContentEnterCostReduceExcel(ByteBuffer _bb) { return GetRootAsContentEnterCostReduceExcel(_bb, new ContentEnterCostReduceExcel()); } + public static ContentEnterCostReduceExcel GetRootAsContentEnterCostReduceExcel(ByteBuffer _bb, ContentEnterCostReduceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentEnterCostReduceExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long EnterCostReduceGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long StageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ReduceEnterCostId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ReduceAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateContentEnterCostReduceExcel(FlatBufferBuilder builder, + long EnterCostReduceGroupId = 0, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long StageId = 0, + SCHALE.Common.FlatData.ParcelType ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long ReduceEnterCostId = 0, + long ReduceAmount = 0) { + builder.StartTable(6); + ContentEnterCostReduceExcel.AddReduceAmount(builder, ReduceAmount); + ContentEnterCostReduceExcel.AddReduceEnterCostId(builder, ReduceEnterCostId); + ContentEnterCostReduceExcel.AddStageId(builder, StageId); + ContentEnterCostReduceExcel.AddEnterCostReduceGroupId(builder, EnterCostReduceGroupId); + ContentEnterCostReduceExcel.AddReduceEnterCostType(builder, ReduceEnterCostType); + ContentEnterCostReduceExcel.AddContentType(builder, ContentType); + return ContentEnterCostReduceExcel.EndContentEnterCostReduceExcel(builder); + } + + public static void StartContentEnterCostReduceExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddEnterCostReduceGroupId(FlatBufferBuilder builder, long enterCostReduceGroupId) { builder.AddLong(0, enterCostReduceGroupId, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(1, (int)contentType, 0); } + public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(2, stageId, 0); } + public static void AddReduceEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType reduceEnterCostType) { builder.AddInt(3, (int)reduceEnterCostType, 0); } + public static void AddReduceEnterCostId(FlatBufferBuilder builder, long reduceEnterCostId) { builder.AddLong(4, reduceEnterCostId, 0); } + public static void AddReduceAmount(FlatBufferBuilder builder, long reduceAmount) { builder.AddLong(5, reduceAmount, 0); } + public static Offset EndContentEnterCostReduceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentEnterCostReduceExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EnterCostReduceGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*StageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ReduceEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ReduceEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ReduceAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs new file mode 100644 index 0000000..7574e41 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ContentEnterCostReduceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentEnterCostReduceExcelTable GetRootAsContentEnterCostReduceExcelTable(ByteBuffer _bb) { return GetRootAsContentEnterCostReduceExcelTable(_bb, new ContentEnterCostReduceExcelTable()); } + public static ContentEnterCostReduceExcelTable GetRootAsContentEnterCostReduceExcelTable(ByteBuffer _bb, ContentEnterCostReduceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentEnterCostReduceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ContentEnterCostReduceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentEnterCostReduceExcel?)(new SCHALE.Common.FlatData.ContentEnterCostReduceExcel()).__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 CreateContentEnterCostReduceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ContentEnterCostReduceExcelTable.AddDataList(builder, DataListOffset); + return ContentEnterCostReduceExcelTable.EndContentEnterCostReduceExcelTable(builder); + } + + public static void StartContentEnterCostReduceExcelTable(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 EndContentEnterCostReduceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentEnterCostReduceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentEnterCostReduceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentLockType.cs b/SCHALE.Common/FlatData/ContentLockType.cs new file mode 100644 index 0000000..50a2a28 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentLockType.cs @@ -0,0 +1,34 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ContentLockType : int +{ + None = 0, + NotUseControlledByOtherSetting = 1, + Academy = 2, + MultiFloorRaid = 3, + EventContent = 4, + EventNotice = 5, + GuideMission = 6, + Campaign = 7, + Story = 8, + WeekDungeon_Chase = 9, + WeekDungeon = 10, + SchoolDungeon = 11, + Raid = 12, + EliminateRaid = 13, + TimeAttackDungeon = 14, + Arena = 15, + Cafe = 16, + GemShop = 17, + Gacha = 18, + Craft = 19, + MomoTalk = 20, +}; + + +} diff --git a/SCHALE.Common/FlatData/ContentResultType.cs b/SCHALE.Common/FlatData/ContentResultType.cs new file mode 100644 index 0000000..1b3383d --- /dev/null +++ b/SCHALE.Common/FlatData/ContentResultType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ContentResultType : int +{ + Failure = 0, + Success = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs new file mode 100644 index 0000000..95c389e --- /dev/null +++ b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs @@ -0,0 +1,82 @@ +// +// 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 ContentSpoilerPopupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentSpoilerPopupExcel GetRootAsContentSpoilerPopupExcel(ByteBuffer _bb) { return GetRootAsContentSpoilerPopupExcel(_bb, new ContentSpoilerPopupExcel()); } + public static ContentSpoilerPopupExcel GetRootAsContentSpoilerPopupExcel(ByteBuffer _bb, ContentSpoilerPopupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentSpoilerPopupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public string SpoilerPopupTitle { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpoilerPopupTitleBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSpoilerPopupTitleBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSpoilerPopupTitleArray() { return __p.__vector_as_array(6); } + public string SpoilerPopupDescription { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpoilerPopupDescriptionBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSpoilerPopupDescriptionBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSpoilerPopupDescriptionArray() { return __p.__vector_as_array(8); } + public bool IsWarningPopUp { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ConditionScenarioModeId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateContentSpoilerPopupExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + StringOffset SpoilerPopupTitleOffset = default(StringOffset), + StringOffset SpoilerPopupDescriptionOffset = default(StringOffset), + bool IsWarningPopUp = false, + long ConditionScenarioModeId = 0) { + builder.StartTable(5); + ContentSpoilerPopupExcel.AddConditionScenarioModeId(builder, ConditionScenarioModeId); + ContentSpoilerPopupExcel.AddSpoilerPopupDescription(builder, SpoilerPopupDescriptionOffset); + ContentSpoilerPopupExcel.AddSpoilerPopupTitle(builder, SpoilerPopupTitleOffset); + ContentSpoilerPopupExcel.AddContentType(builder, ContentType); + ContentSpoilerPopupExcel.AddIsWarningPopUp(builder, IsWarningPopUp); + return ContentSpoilerPopupExcel.EndContentSpoilerPopupExcel(builder); + } + + public static void StartContentSpoilerPopupExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(0, (int)contentType, 0); } + public static void AddSpoilerPopupTitle(FlatBufferBuilder builder, StringOffset spoilerPopupTitleOffset) { builder.AddOffset(1, spoilerPopupTitleOffset.Value, 0); } + public static void AddSpoilerPopupDescription(FlatBufferBuilder builder, StringOffset spoilerPopupDescriptionOffset) { builder.AddOffset(2, spoilerPopupDescriptionOffset.Value, 0); } + public static void AddIsWarningPopUp(FlatBufferBuilder builder, bool isWarningPopUp) { builder.AddBool(3, isWarningPopUp, false); } + public static void AddConditionScenarioModeId(FlatBufferBuilder builder, long conditionScenarioModeId) { builder.AddLong(4, conditionScenarioModeId, 0); } + public static Offset EndContentSpoilerPopupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentSpoilerPopupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*SpoilerPopupTitle*/, false) + && verifier.VerifyString(tablePos, 8 /*SpoilerPopupDescription*/, false) + && verifier.VerifyField(tablePos, 10 /*IsWarningPopUp*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*ConditionScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs b/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs new file mode 100644 index 0000000..510e0a7 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentSpoilerPopupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ContentSpoilerPopupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentSpoilerPopupExcelTable GetRootAsContentSpoilerPopupExcelTable(ByteBuffer _bb) { return GetRootAsContentSpoilerPopupExcelTable(_bb, new ContentSpoilerPopupExcelTable()); } + public static ContentSpoilerPopupExcelTable GetRootAsContentSpoilerPopupExcelTable(ByteBuffer _bb, ContentSpoilerPopupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentSpoilerPopupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ContentSpoilerPopupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentSpoilerPopupExcel?)(new SCHALE.Common.FlatData.ContentSpoilerPopupExcel()).__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 CreateContentSpoilerPopupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ContentSpoilerPopupExcelTable.AddDataList(builder, DataListOffset); + return ContentSpoilerPopupExcelTable.EndContentSpoilerPopupExcelTable(builder); + } + + public static void StartContentSpoilerPopupExcelTable(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 EndContentSpoilerPopupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentSpoilerPopupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentSpoilerPopupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentType.cs b/SCHALE.Common/FlatData/ContentType.cs new file mode 100644 index 0000000..b5afbac --- /dev/null +++ b/SCHALE.Common/FlatData/ContentType.cs @@ -0,0 +1,35 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ContentType : int +{ + None = 0, + CampaignMainStage = 1, + CampaignSubStage = 2, + WeekDungeon = 3, + EventContentMainStage = 4, + EventContentSubStage = 5, + CampaignTutorialStage = 6, + EventContentMainGroundStage = 7, + SchoolDungeon = 8, + TimeAttackDungeon = 9, + Raid = 10, + Conquest = 11, + EventContentStoryStage = 12, + CampaignExtraStage = 13, + StoryStrategyStage = 14, + ScenarioMode = 15, + EventContent = 16, + WorldRaid = 17, + EliminateRaid = 18, + Chaser = 19, + FieldContentStage = 20, + MultiFloorRaid = 21, +}; + + +} diff --git a/SCHALE.Common/FlatData/ContentsChangeType.cs b/SCHALE.Common/FlatData/ContentsChangeType.cs new file mode 100644 index 0000000..81d2bbe --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsChangeType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ContentsChangeType : int +{ + None = 0, + WorldRaidBossDamageRatio = 1, + WorldRaidBossGroupDate = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ContentsFeverExcel.cs b/SCHALE.Common/FlatData/ContentsFeverExcel.cs new file mode 100644 index 0000000..2f4cddc --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsFeverExcel.cs @@ -0,0 +1,70 @@ +// +// 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 ContentsFeverExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentsFeverExcel GetRootAsContentsFeverExcel(ByteBuffer _bb) { return GetRootAsContentsFeverExcel(_bb, new ContentsFeverExcel()); } + public static ContentsFeverExcel GetRootAsContentsFeverExcel(ByteBuffer _bb, ContentsFeverExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentsFeverExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FeverBattleType ConditionContent { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FeverBattleType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FeverBattleType.Campaign; } } + public SCHALE.Common.FlatData.SkillPriorityCheckTarget SkillFeverCheckCondition { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.SkillPriorityCheckTarget)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SkillPriorityCheckTarget.Ally; } } + public long SkillCostFever { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeverStartTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeverDurationTime { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateContentsFeverExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.FeverBattleType ConditionContent = SCHALE.Common.FlatData.FeverBattleType.Campaign, + SCHALE.Common.FlatData.SkillPriorityCheckTarget SkillFeverCheckCondition = SCHALE.Common.FlatData.SkillPriorityCheckTarget.Ally, + long SkillCostFever = 0, + long FeverStartTime = 0, + long FeverDurationTime = 0) { + builder.StartTable(5); + ContentsFeverExcel.AddFeverDurationTime(builder, FeverDurationTime); + ContentsFeverExcel.AddFeverStartTime(builder, FeverStartTime); + ContentsFeverExcel.AddSkillCostFever(builder, SkillCostFever); + ContentsFeverExcel.AddSkillFeverCheckCondition(builder, SkillFeverCheckCondition); + ContentsFeverExcel.AddConditionContent(builder, ConditionContent); + return ContentsFeverExcel.EndContentsFeverExcel(builder); + } + + public static void StartContentsFeverExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddConditionContent(FlatBufferBuilder builder, SCHALE.Common.FlatData.FeverBattleType conditionContent) { builder.AddInt(0, (int)conditionContent, 0); } + public static void AddSkillFeverCheckCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.SkillPriorityCheckTarget skillFeverCheckCondition) { builder.AddInt(1, (int)skillFeverCheckCondition, 0); } + public static void AddSkillCostFever(FlatBufferBuilder builder, long skillCostFever) { builder.AddLong(2, skillCostFever, 0); } + public static void AddFeverStartTime(FlatBufferBuilder builder, long feverStartTime) { builder.AddLong(3, feverStartTime, 0); } + public static void AddFeverDurationTime(FlatBufferBuilder builder, long feverDurationTime) { builder.AddLong(4, feverDurationTime, 0); } + public static Offset EndContentsFeverExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentsFeverExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ConditionContent*/, 4 /*SCHALE.Common.FlatData.FeverBattleType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*SkillFeverCheckCondition*/, 4 /*SCHALE.Common.FlatData.SkillPriorityCheckTarget*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*SkillCostFever*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*FeverStartTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*FeverDurationTime*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs b/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs new file mode 100644 index 0000000..fb519eb --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsFeverExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ContentsFeverExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentsFeverExcelTable GetRootAsContentsFeverExcelTable(ByteBuffer _bb) { return GetRootAsContentsFeverExcelTable(_bb, new ContentsFeverExcelTable()); } + public static ContentsFeverExcelTable GetRootAsContentsFeverExcelTable(ByteBuffer _bb, ContentsFeverExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentsFeverExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ContentsFeverExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentsFeverExcel?)(new SCHALE.Common.FlatData.ContentsFeverExcel()).__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 CreateContentsFeverExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ContentsFeverExcelTable.AddDataList(builder, DataListOffset); + return ContentsFeverExcelTable.EndContentsFeverExcelTable(builder); + } + + public static void StartContentsFeverExcelTable(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 EndContentsFeverExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentsFeverExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentsFeverExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentsScenarioExcel.cs b/SCHALE.Common/FlatData/ContentsScenarioExcel.cs new file mode 100644 index 0000000..f3359f1 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsScenarioExcel.cs @@ -0,0 +1,82 @@ +// +// 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 ContentsScenarioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentsScenarioExcel GetRootAsContentsScenarioExcel(ByteBuffer _bb) { return GetRootAsContentsScenarioExcel(_bb, new ContentsScenarioExcel()); } + public static ContentsScenarioExcel GetRootAsContentsScenarioExcel(ByteBuffer _bb, ContentsScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentsScenarioExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint LocalizeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ScenarioContentType ScenarioContentType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioContentType.Prologue; } } + public long ScenarioGroupId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ScenarioGroupIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetScenarioGroupIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetScenarioGroupIdArray() { return __p.__vector_as_array(12); } + + public static Offset CreateContentsScenarioExcel(FlatBufferBuilder builder, + uint Id = 0, + uint LocalizeId = 0, + int DisplayOrder = 0, + SCHALE.Common.FlatData.ScenarioContentType ScenarioContentType = SCHALE.Common.FlatData.ScenarioContentType.Prologue, + VectorOffset ScenarioGroupIdOffset = default(VectorOffset)) { + builder.StartTable(5); + ContentsScenarioExcel.AddScenarioGroupId(builder, ScenarioGroupIdOffset); + ContentsScenarioExcel.AddScenarioContentType(builder, ScenarioContentType); + ContentsScenarioExcel.AddDisplayOrder(builder, DisplayOrder); + ContentsScenarioExcel.AddLocalizeId(builder, LocalizeId); + ContentsScenarioExcel.AddId(builder, Id); + return ContentsScenarioExcel.EndContentsScenarioExcel(builder); + } + + public static void StartContentsScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, uint id) { builder.AddUint(0, id, 0); } + public static void AddLocalizeId(FlatBufferBuilder builder, uint localizeId) { builder.AddUint(1, localizeId, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(2, displayOrder, 0); } + public static void AddScenarioContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioContentType scenarioContentType) { builder.AddInt(3, (int)scenarioContentType, 0); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, VectorOffset scenarioGroupIdOffset) { builder.AddOffset(4, scenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateScenarioGroupIdVector(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 CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndContentsScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentsScenarioExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ScenarioContentType*/, 4 /*SCHALE.Common.FlatData.ScenarioContentType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs b/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs new file mode 100644 index 0000000..75e2b88 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsScenarioExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..1994771 --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsShortcutExcel.cs @@ -0,0 +1,134 @@ +// +// 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 ContentsShortcutExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb) { return GetRootAsContentsShortcutExcel(_bb, new ContentsShortcutExcel()); } + public static ContentsShortcutExcel GetRootAsContentsShortcutExcel(ByteBuffer _bb, ContentsShortcutExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ContentsShortcutExcel __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 SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioModeVolume { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioModeChapter { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShortcutOpenTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShortcutOpenTimeBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetShortcutOpenTimeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetShortcutOpenTimeArray() { return __p.__vector_as_array(14); } + public string ShortcutCloseTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShortcutCloseTimeBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetShortcutCloseTimeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetShortcutCloseTimeArray() { return __p.__vector_as_array(16); } + public long ConditionContentId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public int ConquestStepIndex { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long ShortcutContentId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShortcutUIName(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUINameLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } + public string Localize { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetLocalizeBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetLocalizeArray() { return __p.__vector_as_array(28); } + + public static Offset CreateContentsShortcutExcel(FlatBufferBuilder builder, + long UniqueId = 0, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long EventContentId = 0, + long ScenarioModeVolume = 0, + long ScenarioModeChapter = 0, + StringOffset ShortcutOpenTimeOffset = default(StringOffset), + StringOffset ShortcutCloseTimeOffset = default(StringOffset), + long ConditionContentId = 0, + SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + int ConquestStepIndex = 0, + long ShortcutContentId = 0, + VectorOffset ShortcutUINameOffset = default(VectorOffset), + StringOffset LocalizeOffset = default(StringOffset)) { + builder.StartTable(13); + ContentsShortcutExcel.AddShortcutContentId(builder, ShortcutContentId); + ContentsShortcutExcel.AddConditionContentId(builder, ConditionContentId); + ContentsShortcutExcel.AddScenarioModeChapter(builder, ScenarioModeChapter); + ContentsShortcutExcel.AddScenarioModeVolume(builder, ScenarioModeVolume); + ContentsShortcutExcel.AddEventContentId(builder, EventContentId); + ContentsShortcutExcel.AddUniqueId(builder, UniqueId); + ContentsShortcutExcel.AddLocalize(builder, LocalizeOffset); + ContentsShortcutExcel.AddShortcutUIName(builder, ShortcutUINameOffset); + ContentsShortcutExcel.AddConquestStepIndex(builder, ConquestStepIndex); + ContentsShortcutExcel.AddConquestMapDifficulty(builder, ConquestMapDifficulty); + ContentsShortcutExcel.AddShortcutCloseTime(builder, ShortcutCloseTimeOffset); + ContentsShortcutExcel.AddShortcutOpenTime(builder, ShortcutOpenTimeOffset); + ContentsShortcutExcel.AddContentType(builder, ContentType); + return ContentsShortcutExcel.EndContentsShortcutExcel(builder); + } + + public static void StartContentsShortcutExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(1, (int)contentType, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } + public static void AddScenarioModeVolume(FlatBufferBuilder builder, long scenarioModeVolume) { builder.AddLong(3, scenarioModeVolume, 0); } + public static void AddScenarioModeChapter(FlatBufferBuilder builder, long scenarioModeChapter) { builder.AddLong(4, scenarioModeChapter, 0); } + public static void AddShortcutOpenTime(FlatBufferBuilder builder, StringOffset shortcutOpenTimeOffset) { builder.AddOffset(5, shortcutOpenTimeOffset.Value, 0); } + public static void AddShortcutCloseTime(FlatBufferBuilder builder, StringOffset shortcutCloseTimeOffset) { builder.AddOffset(6, shortcutCloseTimeOffset.Value, 0); } + public static void AddConditionContentId(FlatBufferBuilder builder, long conditionContentId) { builder.AddLong(7, conditionContentId, 0); } + public static void AddConquestMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty conquestMapDifficulty) { builder.AddInt(8, (int)conquestMapDifficulty, 0); } + public static void AddConquestStepIndex(FlatBufferBuilder builder, int conquestStepIndex) { builder.AddInt(9, conquestStepIndex, 0); } + public static void AddShortcutContentId(FlatBufferBuilder builder, long shortcutContentId) { builder.AddLong(10, shortcutContentId, 0); } + public static void AddShortcutUIName(FlatBufferBuilder builder, VectorOffset shortcutUINameOffset) { builder.AddOffset(11, shortcutUINameOffset.Value, 0); } + public static VectorOffset CreateShortcutUINameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLocalize(FlatBufferBuilder builder, StringOffset localizeOffset) { builder.AddOffset(12, localizeOffset.Value, 0); } + public static Offset EndContentsShortcutExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ContentsShortcutExcelVerify +{ + 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 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ScenarioModeVolume*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ScenarioModeChapter*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*ShortcutOpenTime*/, false) + && verifier.VerifyString(tablePos, 16 /*ShortcutCloseTime*/, false) + && verifier.VerifyField(tablePos, 18 /*ConditionContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ConquestMapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*ConquestStepIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*ShortcutContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 26 /*ShortcutUIName*/, false) + && verifier.VerifyString(tablePos, 28 /*Localize*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs b/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs new file mode 100644 index 0000000..ad06b8e --- /dev/null +++ b/SCHALE.Common/FlatData/ContentsShortcutExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..d204530 --- /dev/null +++ b/SCHALE.Common/FlatData/CostumeExcel.cs @@ -0,0 +1,309 @@ +// +// 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 CostumeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CostumeExcel GetRootAsCostumeExcel(ByteBuffer _bb) { return GetRootAsCostumeExcel(_bb, new CostumeExcel()); } + public static CostumeExcel GetRootAsCostumeExcel(ByteBuffer _bb, CostumeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CostumeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CostumeGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CostumeUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DevName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public bool IsDefault { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CollectionVisible { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string ReleaseDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetReleaseDateBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetReleaseDateBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetReleaseDateArray() { return __p.__vector_as_array(16); } + public string CollectionVisibleStartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionVisibleStartDateBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetCollectionVisibleStartDateBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetCollectionVisibleStartDateArray() { return __p.__vector_as_array(18); } + public string CollectionVisibleEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionVisibleEndDateBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetCollectionVisibleEndDateBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetCollectionVisibleEndDateArray() { return __p.__vector_as_array(20); } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public long CharacterSkillListGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SpineResourceName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpineResourceNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetSpineResourceNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetSpineResourceNameArray() { return __p.__vector_as_array(26); } + public string SpineResourceNameDiorama { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpineResourceNameDioramaBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetSpineResourceNameDioramaBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetSpineResourceNameDioramaArray() { return __p.__vector_as_array(28); } + public string SpineResourceNameDioramaForFormConversion(int j) { int o = __p.__offset(30); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SpineResourceNameDioramaForFormConversionLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.EntityMaterialType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EntityMaterialType.Wood; } } + public string ModelPrefabName { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetModelPrefabNameBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetModelPrefabNameBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetModelPrefabNameArray() { return __p.__vector_as_array(34); } + public string CafeModelPrefabName { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCafeModelPrefabNameBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetCafeModelPrefabNameBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetCafeModelPrefabNameArray() { return __p.__vector_as_array(36); } + public string EchelonModelPrefabName { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonModelPrefabNameBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetEchelonModelPrefabNameBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetEchelonModelPrefabNameArray() { return __p.__vector_as_array(38); } + public string StrategyModelPrefabName { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyModelPrefabNameBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetStrategyModelPrefabNameBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetStrategyModelPrefabNameArray() { return __p.__vector_as_array(40); } + public string TextureDir { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextureDirBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetTextureDirBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetTextureDirArray() { return __p.__vector_as_array(42); } + public string CollectionTexturePath { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionTexturePathBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetCollectionTexturePathBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetCollectionTexturePathArray() { return __p.__vector_as_array(44); } + public string CollectionBGTexturePath { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCollectionBGTexturePathBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetCollectionBGTexturePathBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetCollectionBGTexturePathArray() { return __p.__vector_as_array(46); } + public bool UseObjectHPBAR { get { int o = __p.__offset(48); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string TextureBoss { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextureBossBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetTextureBossBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetTextureBossArray() { return __p.__vector_as_array(50); } + public string TextureSkillCard(int j) { int o = __p.__offset(52); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int TextureSkillCardLength { get { int o = __p.__offset(52); return o != 0 ? __p.__vector_len(o) : 0; } } + public string InformationPacel { get { int o = __p.__offset(54); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInformationPacelBytes() { return __p.__vector_as_span(54, 1); } +#else + public ArraySegment? GetInformationPacelBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public byte[] GetInformationPacelArray() { return __p.__vector_as_array(54); } + public string AnimationSSR { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationSSRBytes() { return __p.__vector_as_span(56, 1); } +#else + public ArraySegment? GetAnimationSSRBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public byte[] GetAnimationSSRArray() { return __p.__vector_as_array(56); } + public string EnterStrategyAnimationName { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnterStrategyAnimationNameBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetEnterStrategyAnimationNameBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetEnterStrategyAnimationNameArray() { return __p.__vector_as_array(58); } + public bool AnimationValidator { get { int o = __p.__offset(60); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CharacterVoiceGroupId { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateCostumeExcel(FlatBufferBuilder builder, + long CostumeGroupId = 0, + long CostumeUniqueId = 0, + StringOffset DevNameOffset = default(StringOffset), + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + bool IsDefault = false, + bool CollectionVisible = false, + StringOffset ReleaseDateOffset = default(StringOffset), + StringOffset CollectionVisibleStartDateOffset = default(StringOffset), + StringOffset CollectionVisibleEndDateOffset = default(StringOffset), + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + long CharacterSkillListGroupId = 0, + StringOffset SpineResourceNameOffset = default(StringOffset), + StringOffset SpineResourceNameDioramaOffset = default(StringOffset), + VectorOffset SpineResourceNameDioramaForFormConversionOffset = default(VectorOffset), + SCHALE.Common.FlatData.EntityMaterialType EntityMaterialType = SCHALE.Common.FlatData.EntityMaterialType.Wood, + StringOffset ModelPrefabNameOffset = default(StringOffset), + StringOffset CafeModelPrefabNameOffset = default(StringOffset), + StringOffset EchelonModelPrefabNameOffset = default(StringOffset), + StringOffset StrategyModelPrefabNameOffset = default(StringOffset), + StringOffset TextureDirOffset = default(StringOffset), + StringOffset CollectionTexturePathOffset = default(StringOffset), + StringOffset CollectionBGTexturePathOffset = default(StringOffset), + bool UseObjectHPBAR = false, + StringOffset TextureBossOffset = default(StringOffset), + VectorOffset TextureSkillCardOffset = default(VectorOffset), + StringOffset InformationPacelOffset = default(StringOffset), + StringOffset AnimationSSROffset = default(StringOffset), + StringOffset EnterStrategyAnimationNameOffset = default(StringOffset), + bool AnimationValidator = false, + long CharacterVoiceGroupId = 0) { + builder.StartTable(30); + CostumeExcel.AddCharacterVoiceGroupId(builder, CharacterVoiceGroupId); + CostumeExcel.AddCharacterSkillListGroupId(builder, CharacterSkillListGroupId); + CostumeExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + CostumeExcel.AddCostumeGroupId(builder, CostumeGroupId); + CostumeExcel.AddEnterStrategyAnimationName(builder, EnterStrategyAnimationNameOffset); + CostumeExcel.AddAnimationSSR(builder, AnimationSSROffset); + CostumeExcel.AddInformationPacel(builder, InformationPacelOffset); + CostumeExcel.AddTextureSkillCard(builder, TextureSkillCardOffset); + CostumeExcel.AddTextureBoss(builder, TextureBossOffset); + CostumeExcel.AddCollectionBGTexturePath(builder, CollectionBGTexturePathOffset); + CostumeExcel.AddCollectionTexturePath(builder, CollectionTexturePathOffset); + CostumeExcel.AddTextureDir(builder, TextureDirOffset); + CostumeExcel.AddStrategyModelPrefabName(builder, StrategyModelPrefabNameOffset); + CostumeExcel.AddEchelonModelPrefabName(builder, EchelonModelPrefabNameOffset); + CostumeExcel.AddCafeModelPrefabName(builder, CafeModelPrefabNameOffset); + CostumeExcel.AddModelPrefabName(builder, ModelPrefabNameOffset); + CostumeExcel.AddEntityMaterialType(builder, EntityMaterialType); + CostumeExcel.AddSpineResourceNameDioramaForFormConversion(builder, SpineResourceNameDioramaForFormConversionOffset); + CostumeExcel.AddSpineResourceNameDiorama(builder, SpineResourceNameDioramaOffset); + CostumeExcel.AddSpineResourceName(builder, SpineResourceNameOffset); + CostumeExcel.AddRarity(builder, Rarity); + CostumeExcel.AddCollectionVisibleEndDate(builder, CollectionVisibleEndDateOffset); + CostumeExcel.AddCollectionVisibleStartDate(builder, CollectionVisibleStartDateOffset); + CostumeExcel.AddReleaseDate(builder, ReleaseDateOffset); + CostumeExcel.AddProductionStep(builder, ProductionStep); + CostumeExcel.AddDevName(builder, DevNameOffset); + CostumeExcel.AddAnimationValidator(builder, AnimationValidator); + CostumeExcel.AddUseObjectHPBAR(builder, UseObjectHPBAR); + CostumeExcel.AddCollectionVisible(builder, CollectionVisible); + CostumeExcel.AddIsDefault(builder, IsDefault); + return CostumeExcel.EndCostumeExcel(builder); + } + + public static void StartCostumeExcel(FlatBufferBuilder builder) { builder.StartTable(30); } + public static void AddCostumeGroupId(FlatBufferBuilder builder, long costumeGroupId) { builder.AddLong(0, costumeGroupId, 0); } + public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(1, costumeUniqueId, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(2, devNameOffset.Value, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); } + public static void AddIsDefault(FlatBufferBuilder builder, bool isDefault) { builder.AddBool(4, isDefault, false); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(5, collectionVisible, false); } + public static void AddReleaseDate(FlatBufferBuilder builder, StringOffset releaseDateOffset) { builder.AddOffset(6, releaseDateOffset.Value, 0); } + public static void AddCollectionVisibleStartDate(FlatBufferBuilder builder, StringOffset collectionVisibleStartDateOffset) { builder.AddOffset(7, collectionVisibleStartDateOffset.Value, 0); } + public static void AddCollectionVisibleEndDate(FlatBufferBuilder builder, StringOffset collectionVisibleEndDateOffset) { builder.AddOffset(8, collectionVisibleEndDateOffset.Value, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(9, (int)rarity, 0); } + public static void AddCharacterSkillListGroupId(FlatBufferBuilder builder, long characterSkillListGroupId) { builder.AddLong(10, characterSkillListGroupId, 0); } + public static void AddSpineResourceName(FlatBufferBuilder builder, StringOffset spineResourceNameOffset) { builder.AddOffset(11, spineResourceNameOffset.Value, 0); } + public static void AddSpineResourceNameDiorama(FlatBufferBuilder builder, StringOffset spineResourceNameDioramaOffset) { builder.AddOffset(12, spineResourceNameDioramaOffset.Value, 0); } + public static void AddSpineResourceNameDioramaForFormConversion(FlatBufferBuilder builder, VectorOffset spineResourceNameDioramaForFormConversionOffset) { builder.AddOffset(13, spineResourceNameDioramaForFormConversionOffset.Value, 0); } + public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSpineResourceNameDioramaForFormConversionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSpineResourceNameDioramaForFormConversionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEntityMaterialType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EntityMaterialType entityMaterialType) { builder.AddInt(14, (int)entityMaterialType, 0); } + public static void AddModelPrefabName(FlatBufferBuilder builder, StringOffset modelPrefabNameOffset) { builder.AddOffset(15, modelPrefabNameOffset.Value, 0); } + public static void AddCafeModelPrefabName(FlatBufferBuilder builder, StringOffset cafeModelPrefabNameOffset) { builder.AddOffset(16, cafeModelPrefabNameOffset.Value, 0); } + public static void AddEchelonModelPrefabName(FlatBufferBuilder builder, StringOffset echelonModelPrefabNameOffset) { builder.AddOffset(17, echelonModelPrefabNameOffset.Value, 0); } + public static void AddStrategyModelPrefabName(FlatBufferBuilder builder, StringOffset strategyModelPrefabNameOffset) { builder.AddOffset(18, strategyModelPrefabNameOffset.Value, 0); } + public static void AddTextureDir(FlatBufferBuilder builder, StringOffset textureDirOffset) { builder.AddOffset(19, textureDirOffset.Value, 0); } + public static void AddCollectionTexturePath(FlatBufferBuilder builder, StringOffset collectionTexturePathOffset) { builder.AddOffset(20, collectionTexturePathOffset.Value, 0); } + public static void AddCollectionBGTexturePath(FlatBufferBuilder builder, StringOffset collectionBGTexturePathOffset) { builder.AddOffset(21, collectionBGTexturePathOffset.Value, 0); } + public static void AddUseObjectHPBAR(FlatBufferBuilder builder, bool useObjectHPBAR) { builder.AddBool(22, useObjectHPBAR, false); } + public static void AddTextureBoss(FlatBufferBuilder builder, StringOffset textureBossOffset) { builder.AddOffset(23, textureBossOffset.Value, 0); } + public static void AddTextureSkillCard(FlatBufferBuilder builder, VectorOffset textureSkillCardOffset) { builder.AddOffset(24, textureSkillCardOffset.Value, 0); } + public static VectorOffset CreateTextureSkillCardVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTextureSkillCardVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTextureSkillCardVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddInformationPacel(FlatBufferBuilder builder, StringOffset informationPacelOffset) { builder.AddOffset(25, informationPacelOffset.Value, 0); } + public static void AddAnimationSSR(FlatBufferBuilder builder, StringOffset animationSSROffset) { builder.AddOffset(26, animationSSROffset.Value, 0); } + public static void AddEnterStrategyAnimationName(FlatBufferBuilder builder, StringOffset enterStrategyAnimationNameOffset) { builder.AddOffset(27, enterStrategyAnimationNameOffset.Value, 0); } + public static void AddAnimationValidator(FlatBufferBuilder builder, bool animationValidator) { builder.AddBool(28, animationValidator, false); } + public static void AddCharacterVoiceGroupId(FlatBufferBuilder builder, long characterVoiceGroupId) { builder.AddLong(29, characterVoiceGroupId, 0); } + public static Offset EndCostumeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CostumeExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CostumeGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*CostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*DevName*/, false) + && verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*IsDefault*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 16 /*ReleaseDate*/, false) + && verifier.VerifyString(tablePos, 18 /*CollectionVisibleStartDate*/, false) + && verifier.VerifyString(tablePos, 20 /*CollectionVisibleEndDate*/, false) + && verifier.VerifyField(tablePos, 22 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*CharacterSkillListGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 26 /*SpineResourceName*/, false) + && verifier.VerifyString(tablePos, 28 /*SpineResourceNameDiorama*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 30 /*SpineResourceNameDioramaForFormConversion*/, false) + && verifier.VerifyField(tablePos, 32 /*EntityMaterialType*/, 4 /*SCHALE.Common.FlatData.EntityMaterialType*/, 4, false) + && verifier.VerifyString(tablePos, 34 /*ModelPrefabName*/, false) + && verifier.VerifyString(tablePos, 36 /*CafeModelPrefabName*/, false) + && verifier.VerifyString(tablePos, 38 /*EchelonModelPrefabName*/, false) + && verifier.VerifyString(tablePos, 40 /*StrategyModelPrefabName*/, false) + && verifier.VerifyString(tablePos, 42 /*TextureDir*/, false) + && verifier.VerifyString(tablePos, 44 /*CollectionTexturePath*/, false) + && verifier.VerifyString(tablePos, 46 /*CollectionBGTexturePath*/, false) + && verifier.VerifyField(tablePos, 48 /*UseObjectHPBAR*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 50 /*TextureBoss*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 52 /*TextureSkillCard*/, false) + && verifier.VerifyString(tablePos, 54 /*InformationPacel*/, false) + && verifier.VerifyString(tablePos, 56 /*AnimationSSR*/, false) + && verifier.VerifyString(tablePos, 58 /*EnterStrategyAnimationName*/, false) + && verifier.VerifyField(tablePos, 60 /*AnimationValidator*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 62 /*CharacterVoiceGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CostumeExcelTable.cs b/SCHALE.Common/FlatData/CostumeExcelTable.cs new file mode 100644 index 0000000..393fab7 --- /dev/null +++ b/SCHALE.Common/FlatData/CostumeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CostumeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CostumeExcelTable GetRootAsCostumeExcelTable(ByteBuffer _bb) { return GetRootAsCostumeExcelTable(_bb, new CostumeExcelTable()); } + public static CostumeExcelTable GetRootAsCostumeExcelTable(ByteBuffer _bb, CostumeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CostumeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CostumeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CostumeExcel?)(new SCHALE.Common.FlatData.CostumeExcel()).__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 CreateCostumeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CostumeExcelTable.AddDataList(builder, DataListOffset); + return CostumeExcelTable.EndCostumeExcelTable(builder); + } + + public static void StartCostumeExcelTable(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 EndCostumeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CostumeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CostumeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CouponStuffExcel.cs b/SCHALE.Common/FlatData/CouponStuffExcel.cs new file mode 100644 index 0000000..3e01bf6 --- /dev/null +++ b/SCHALE.Common/FlatData/CouponStuffExcel.cs @@ -0,0 +1,76 @@ +// +// 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 CouponStuffExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CouponStuffExcel GetRootAsCouponStuffExcel(ByteBuffer _bb) { return GetRootAsCouponStuffExcel(_bb, new CouponStuffExcel()); } + public static CouponStuffExcel GetRootAsCouponStuffExcel(ByteBuffer _bb, CouponStuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CouponStuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int LimitAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string CouponStuffNameLocalizeKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCouponStuffNameLocalizeKeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetCouponStuffNameLocalizeKeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetCouponStuffNameLocalizeKeyArray() { return __p.__vector_as_array(12); } + + public static Offset CreateCouponStuffExcel(FlatBufferBuilder builder, + long StuffId = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelId = 0, + int LimitAmount = 0, + StringOffset CouponStuffNameLocalizeKeyOffset = default(StringOffset)) { + builder.StartTable(5); + CouponStuffExcel.AddParcelId(builder, ParcelId); + CouponStuffExcel.AddStuffId(builder, StuffId); + CouponStuffExcel.AddCouponStuffNameLocalizeKey(builder, CouponStuffNameLocalizeKeyOffset); + CouponStuffExcel.AddLimitAmount(builder, LimitAmount); + CouponStuffExcel.AddParcelType(builder, ParcelType); + return CouponStuffExcel.EndCouponStuffExcel(builder); + } + + public static void StartCouponStuffExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddStuffId(FlatBufferBuilder builder, long stuffId) { builder.AddLong(0, stuffId, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(1, (int)parcelType, 0); } + public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(2, parcelId, 0); } + public static void AddLimitAmount(FlatBufferBuilder builder, int limitAmount) { builder.AddInt(3, limitAmount, 0); } + public static void AddCouponStuffNameLocalizeKey(FlatBufferBuilder builder, StringOffset couponStuffNameLocalizeKeyOffset) { builder.AddOffset(4, couponStuffNameLocalizeKeyOffset.Value, 0); } + public static Offset EndCouponStuffExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CouponStuffExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*LimitAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*CouponStuffNameLocalizeKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CouponStuffExcelTable.cs b/SCHALE.Common/FlatData/CouponStuffExcelTable.cs new file mode 100644 index 0000000..12368d2 --- /dev/null +++ b/SCHALE.Common/FlatData/CouponStuffExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CouponStuffExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CouponStuffExcelTable GetRootAsCouponStuffExcelTable(ByteBuffer _bb) { return GetRootAsCouponStuffExcelTable(_bb, new CouponStuffExcelTable()); } + public static CouponStuffExcelTable GetRootAsCouponStuffExcelTable(ByteBuffer _bb, CouponStuffExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CouponStuffExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CouponStuffExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CouponStuffExcel?)(new SCHALE.Common.FlatData.CouponStuffExcel()).__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 CreateCouponStuffExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CouponStuffExcelTable.AddDataList(builder, DataListOffset); + return CouponStuffExcelTable.EndCouponStuffExcelTable(builder); + } + + public static void StartCouponStuffExcelTable(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 EndCouponStuffExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CouponStuffExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CouponStuffExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CoverMotionType.cs b/SCHALE.Common/FlatData/CoverMotionType.cs new file mode 100644 index 0000000..3c4e4af --- /dev/null +++ b/SCHALE.Common/FlatData/CoverMotionType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CoverMotionType : int +{ + All = 0, + Kneel = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/CraftNodeTier.cs b/SCHALE.Common/FlatData/CraftNodeTier.cs new file mode 100644 index 0000000..c3f043d --- /dev/null +++ b/SCHALE.Common/FlatData/CraftNodeTier.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CraftNodeTier : int +{ + Base = 0, + Node01 = 1, + Node02 = 2, + Node03 = 3, + Max = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/CraftSlotIndex.cs b/SCHALE.Common/FlatData/CraftSlotIndex.cs new file mode 100644 index 0000000..0757e5f --- /dev/null +++ b/SCHALE.Common/FlatData/CraftSlotIndex.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CraftSlotIndex : int +{ + Slot00 = 0, + Slot01 = 1, + Slot02 = 2, + Max = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/CurrencyAdditionalChargeType.cs b/SCHALE.Common/FlatData/CurrencyAdditionalChargeType.cs new file mode 100644 index 0000000..f13f92b --- /dev/null +++ b/SCHALE.Common/FlatData/CurrencyAdditionalChargeType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CurrencyAdditionalChargeType : int +{ + EnableAutoChargeOverLimit = 0, + DisableAutoChargeOverLimit = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/CurrencyExcel.cs b/SCHALE.Common/FlatData/CurrencyExcel.cs new file mode 100644 index 0000000..e70ec93 --- /dev/null +++ b/SCHALE.Common/FlatData/CurrencyExcel.cs @@ -0,0 +1,155 @@ +// +// 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 CurrencyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CurrencyExcel GetRootAsCurrencyExcel(ByteBuffer _bb) { return GetRootAsCurrencyExcel(_bb, new CurrencyExcel()); } + public static CurrencyExcel GetRootAsCurrencyExcel(ByteBuffer _bb, CurrencyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CurrencyExcel __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 uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.CurrencyTypes CurrencyType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } } + public string CurrencyName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCurrencyNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetCurrencyNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetCurrencyNameArray() { return __p.__vector_as_array(10); } + public string Icon { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public int AutoChargeMsc { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AutoChargeAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.CurrencyOverChargeType CurrencyOverChargeType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.CurrencyOverChargeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyOverChargeType.CanNotCharge; } } + public SCHALE.Common.FlatData.CurrencyAdditionalChargeType CurrencyAdditionalChargeType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.CurrencyAdditionalChargeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyAdditionalChargeType.EnableAutoChargeOverLimit; } } + public long ChargeLimit { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OverChargeLimit { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SpriteName { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpriteNameBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetSpriteNameBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetSpriteNameArray() { return __p.__vector_as_array(28); } + public SCHALE.Common.FlatData.DailyRefillType DailyRefillType { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.DailyRefillType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DailyRefillType.None; } } + public long DailyRefillAmount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DailyRefillTime(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int DailyRefillTimeLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDailyRefillTimeBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetDailyRefillTimeBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetDailyRefillTimeArray() { return __p.__vector_as_array(34); } + + public static Offset CreateCurrencyExcel(FlatBufferBuilder builder, + long ID = 0, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.CurrencyTypes CurrencyType = SCHALE.Common.FlatData.CurrencyTypes.Invalid, + StringOffset CurrencyNameOffset = default(StringOffset), + StringOffset IconOffset = default(StringOffset), + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + int AutoChargeMsc = 0, + int AutoChargeAmount = 0, + SCHALE.Common.FlatData.CurrencyOverChargeType CurrencyOverChargeType = SCHALE.Common.FlatData.CurrencyOverChargeType.CanNotCharge, + SCHALE.Common.FlatData.CurrencyAdditionalChargeType CurrencyAdditionalChargeType = SCHALE.Common.FlatData.CurrencyAdditionalChargeType.EnableAutoChargeOverLimit, + long ChargeLimit = 0, + long OverChargeLimit = 0, + StringOffset SpriteNameOffset = default(StringOffset), + SCHALE.Common.FlatData.DailyRefillType DailyRefillType = SCHALE.Common.FlatData.DailyRefillType.None, + long DailyRefillAmount = 0, + VectorOffset DailyRefillTimeOffset = default(VectorOffset)) { + builder.StartTable(16); + CurrencyExcel.AddDailyRefillAmount(builder, DailyRefillAmount); + CurrencyExcel.AddOverChargeLimit(builder, OverChargeLimit); + CurrencyExcel.AddChargeLimit(builder, ChargeLimit); + CurrencyExcel.AddID(builder, ID); + CurrencyExcel.AddDailyRefillTime(builder, DailyRefillTimeOffset); + CurrencyExcel.AddDailyRefillType(builder, DailyRefillType); + CurrencyExcel.AddSpriteName(builder, SpriteNameOffset); + CurrencyExcel.AddCurrencyAdditionalChargeType(builder, CurrencyAdditionalChargeType); + CurrencyExcel.AddCurrencyOverChargeType(builder, CurrencyOverChargeType); + CurrencyExcel.AddAutoChargeAmount(builder, AutoChargeAmount); + CurrencyExcel.AddAutoChargeMsc(builder, AutoChargeMsc); + CurrencyExcel.AddRarity(builder, Rarity); + CurrencyExcel.AddIcon(builder, IconOffset); + CurrencyExcel.AddCurrencyName(builder, CurrencyNameOffset); + CurrencyExcel.AddCurrencyType(builder, CurrencyType); + CurrencyExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return CurrencyExcel.EndCurrencyExcel(builder); + } + + public static void StartCurrencyExcel(FlatBufferBuilder builder) { builder.StartTable(16); } + 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 AddCurrencyType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes currencyType) { builder.AddInt(2, (int)currencyType, 0); } + public static void AddCurrencyName(FlatBufferBuilder builder, StringOffset currencyNameOffset) { builder.AddOffset(3, currencyNameOffset.Value, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(4, iconOffset.Value, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(5, (int)rarity, 0); } + public static void AddAutoChargeMsc(FlatBufferBuilder builder, int autoChargeMsc) { builder.AddInt(6, autoChargeMsc, 0); } + public static void AddAutoChargeAmount(FlatBufferBuilder builder, int autoChargeAmount) { builder.AddInt(7, autoChargeAmount, 0); } + public static void AddCurrencyOverChargeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyOverChargeType currencyOverChargeType) { builder.AddInt(8, (int)currencyOverChargeType, 0); } + public static void AddCurrencyAdditionalChargeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyAdditionalChargeType currencyAdditionalChargeType) { builder.AddInt(9, (int)currencyAdditionalChargeType, 0); } + public static void AddChargeLimit(FlatBufferBuilder builder, long chargeLimit) { builder.AddLong(10, chargeLimit, 0); } + public static void AddOverChargeLimit(FlatBufferBuilder builder, long overChargeLimit) { builder.AddLong(11, overChargeLimit, 0); } + public static void AddSpriteName(FlatBufferBuilder builder, StringOffset spriteNameOffset) { builder.AddOffset(12, spriteNameOffset.Value, 0); } + public static void AddDailyRefillType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DailyRefillType dailyRefillType) { builder.AddInt(13, (int)dailyRefillType, 0); } + public static void AddDailyRefillAmount(FlatBufferBuilder builder, long dailyRefillAmount) { builder.AddLong(14, dailyRefillAmount, 0); } + public static void AddDailyRefillTime(FlatBufferBuilder builder, VectorOffset dailyRefillTimeOffset) { builder.AddOffset(15, dailyRefillTimeOffset.Value, 0); } + public static VectorOffset CreateDailyRefillTimeVector(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 CreateDailyRefillTimeVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyRefillTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyRefillTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDailyRefillTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndCurrencyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CurrencyExcelVerify +{ + 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 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CurrencyType*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*CurrencyName*/, false) + && verifier.VerifyString(tablePos, 12 /*Icon*/, false) + && verifier.VerifyField(tablePos, 14 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*AutoChargeMsc*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*AutoChargeAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*CurrencyOverChargeType*/, 4 /*SCHALE.Common.FlatData.CurrencyOverChargeType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*CurrencyAdditionalChargeType*/, 4 /*SCHALE.Common.FlatData.CurrencyAdditionalChargeType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*ChargeLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*OverChargeLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 28 /*SpriteName*/, false) + && verifier.VerifyField(tablePos, 30 /*DailyRefillType*/, 4 /*SCHALE.Common.FlatData.DailyRefillType*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*DailyRefillAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*DailyRefillTime*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CurrencyExcelTable.cs b/SCHALE.Common/FlatData/CurrencyExcelTable.cs new file mode 100644 index 0000000..d3e9c3d --- /dev/null +++ b/SCHALE.Common/FlatData/CurrencyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 CurrencyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CurrencyExcelTable GetRootAsCurrencyExcelTable(ByteBuffer _bb) { return GetRootAsCurrencyExcelTable(_bb, new CurrencyExcelTable()); } + public static CurrencyExcelTable GetRootAsCurrencyExcelTable(ByteBuffer _bb, CurrencyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CurrencyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CurrencyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CurrencyExcel?)(new SCHALE.Common.FlatData.CurrencyExcel()).__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 CreateCurrencyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + CurrencyExcelTable.AddDataList(builder, DataListOffset); + return CurrencyExcelTable.EndCurrencyExcelTable(builder); + } + + public static void StartCurrencyExcelTable(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 EndCurrencyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class CurrencyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CurrencyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/CurrencyOverChargeType.cs b/SCHALE.Common/FlatData/CurrencyOverChargeType.cs new file mode 100644 index 0000000..9f68335 --- /dev/null +++ b/SCHALE.Common/FlatData/CurrencyOverChargeType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CurrencyOverChargeType : int +{ + CanNotCharge = 0, + FitToLimit = 1, + ChargeOverLimit = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/CurrencyTypes.cs b/SCHALE.Common/FlatData/CurrencyTypes.cs new file mode 100644 index 0000000..d05936f --- /dev/null +++ b/SCHALE.Common/FlatData/CurrencyTypes.cs @@ -0,0 +1,41 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum CurrencyTypes : int +{ + Invalid = 0, + Gold = 1, + GemPaid = 2, + GemBonus = 3, + Gem = 4, + ActionPoint = 5, + AcademyTicket = 6, + ArenaTicket = 7, + RaidTicket = 8, + WeekDungeonChaserATicket = 9, + WeekDungeonFindGiftTicket = 10, + WeekDungeonBloodTicket = 11, + WeekDungeonChaserBTicket = 12, + WeekDungeonChaserCTicket = 13, + SchoolDungeonATicket = 14, + SchoolDungeonBTicket = 15, + SchoolDungeonCTicket = 16, + TimeAttackDungeonTicket = 17, + MasterCoin = 18, + WorldRaidTicketA = 19, + WorldRaidTicketB = 20, + WorldRaidTicketC = 21, + ChaserTotalTicket = 22, + SchoolDungeonTotalTicket = 23, + EliminateTicketA = 24, + EliminateTicketB = 25, + EliminateTicketC = 26, + Max = 27, +}; + + +} diff --git a/SCHALE.Common/FlatData/DailyRefillType.cs b/SCHALE.Common/FlatData/DailyRefillType.cs new file mode 100644 index 0000000..aa2fd36 --- /dev/null +++ b/SCHALE.Common/FlatData/DailyRefillType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DailyRefillType : int +{ + None = 0, + Default = 1, + Login = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/DamageAttribute.cs b/SCHALE.Common/FlatData/DamageAttribute.cs new file mode 100644 index 0000000..1a5b6d6 --- /dev/null +++ b/SCHALE.Common/FlatData/DamageAttribute.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DamageAttribute : int +{ + Resist = 0, + Normal = 1, + Weak = 2, + Effective = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/DamageFontColor.cs b/SCHALE.Common/FlatData/DamageFontColor.cs new file mode 100644 index 0000000..769ab73 --- /dev/null +++ b/SCHALE.Common/FlatData/DamageFontColor.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DamageFontColor : int +{ + Blue = 0, + White = 1, + Yellow = 2, + Red = 3, + Green = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/DamageType.cs b/SCHALE.Common/FlatData/DamageType.cs new file mode 100644 index 0000000..42fac99 --- /dev/null +++ b/SCHALE.Common/FlatData/DamageType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DamageType : int +{ + Normal = 0, + Critical = 1, + IgnoreDefence = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/DefaultCharacterExcel.cs b/SCHALE.Common/FlatData/DefaultCharacterExcel.cs new file mode 100644 index 0000000..0ce96dd --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultCharacterExcel.cs @@ -0,0 +1,105 @@ +// +// 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 DefaultCharacterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultCharacterExcel GetRootAsDefaultCharacterExcel(ByteBuffer _bb) { return GetRootAsDefaultCharacterExcel(_bb, new DefaultCharacterExcel()); } + public static DefaultCharacterExcel GetRootAsDefaultCharacterExcel(ByteBuffer _bb, DefaultCharacterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultCharacterExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool FavoriteCharacter { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int Level { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Exp { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FavorExp { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FavorRank { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StarGrade { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExSkillLevel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PassiveSkillLevel { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraPassiveSkillLevel { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CommonSkillLevel { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int LeaderSkillLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateDefaultCharacterExcel(FlatBufferBuilder builder, + long CharacterId = 0, + bool FavoriteCharacter = false, + int Level = 0, + int Exp = 0, + int FavorExp = 0, + int FavorRank = 0, + int StarGrade = 0, + int ExSkillLevel = 0, + int PassiveSkillLevel = 0, + int ExtraPassiveSkillLevel = 0, + int CommonSkillLevel = 0, + int LeaderSkillLevel = 0) { + builder.StartTable(12); + DefaultCharacterExcel.AddCharacterId(builder, CharacterId); + DefaultCharacterExcel.AddLeaderSkillLevel(builder, LeaderSkillLevel); + DefaultCharacterExcel.AddCommonSkillLevel(builder, CommonSkillLevel); + DefaultCharacterExcel.AddExtraPassiveSkillLevel(builder, ExtraPassiveSkillLevel); + DefaultCharacterExcel.AddPassiveSkillLevel(builder, PassiveSkillLevel); + DefaultCharacterExcel.AddExSkillLevel(builder, ExSkillLevel); + DefaultCharacterExcel.AddStarGrade(builder, StarGrade); + DefaultCharacterExcel.AddFavorRank(builder, FavorRank); + DefaultCharacterExcel.AddFavorExp(builder, FavorExp); + DefaultCharacterExcel.AddExp(builder, Exp); + DefaultCharacterExcel.AddLevel(builder, Level); + DefaultCharacterExcel.AddFavoriteCharacter(builder, FavoriteCharacter); + return DefaultCharacterExcel.EndDefaultCharacterExcel(builder); + } + + public static void StartDefaultCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddFavoriteCharacter(FlatBufferBuilder builder, bool favoriteCharacter) { builder.AddBool(1, favoriteCharacter, false); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(2, level, 0); } + public static void AddExp(FlatBufferBuilder builder, int exp) { builder.AddInt(3, exp, 0); } + public static void AddFavorExp(FlatBufferBuilder builder, int favorExp) { builder.AddInt(4, favorExp, 0); } + public static void AddFavorRank(FlatBufferBuilder builder, int favorRank) { builder.AddInt(5, favorRank, 0); } + public static void AddStarGrade(FlatBufferBuilder builder, int starGrade) { builder.AddInt(6, starGrade, 0); } + public static void AddExSkillLevel(FlatBufferBuilder builder, int exSkillLevel) { builder.AddInt(7, exSkillLevel, 0); } + public static void AddPassiveSkillLevel(FlatBufferBuilder builder, int passiveSkillLevel) { builder.AddInt(8, passiveSkillLevel, 0); } + public static void AddExtraPassiveSkillLevel(FlatBufferBuilder builder, int extraPassiveSkillLevel) { builder.AddInt(9, extraPassiveSkillLevel, 0); } + public static void AddCommonSkillLevel(FlatBufferBuilder builder, int commonSkillLevel) { builder.AddInt(10, commonSkillLevel, 0); } + public static void AddLeaderSkillLevel(FlatBufferBuilder builder, int leaderSkillLevel) { builder.AddInt(11, leaderSkillLevel, 0); } + public static Offset EndDefaultCharacterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultCharacterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FavoriteCharacter*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Exp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*FavorExp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*FavorRank*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ExSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*PassiveSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*ExtraPassiveSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*CommonSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*LeaderSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs b/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs new file mode 100644 index 0000000..5cda89b --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultCharacterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DefaultCharacterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultCharacterExcelTable GetRootAsDefaultCharacterExcelTable(ByteBuffer _bb) { return GetRootAsDefaultCharacterExcelTable(_bb, new DefaultCharacterExcelTable()); } + public static DefaultCharacterExcelTable GetRootAsDefaultCharacterExcelTable(ByteBuffer _bb, DefaultCharacterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultCharacterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DefaultCharacterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DefaultCharacterExcel?)(new SCHALE.Common.FlatData.DefaultCharacterExcel()).__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 CreateDefaultCharacterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DefaultCharacterExcelTable.AddDataList(builder, DataListOffset); + return DefaultCharacterExcelTable.EndDefaultCharacterExcelTable(builder); + } + + public static void StartDefaultCharacterExcelTable(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 EndDefaultCharacterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultCharacterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DefaultCharacterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultEchelonExcel.cs b/SCHALE.Common/FlatData/DefaultEchelonExcel.cs new file mode 100644 index 0000000..a574a14 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultEchelonExcel.cs @@ -0,0 +1,94 @@ +// +// 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 DefaultEchelonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultEchelonExcel GetRootAsDefaultEchelonExcel(ByteBuffer _bb) { return GetRootAsDefaultEchelonExcel(_bb, new DefaultEchelonExcel()); } + public static DefaultEchelonExcel GetRootAsDefaultEchelonExcel(ByteBuffer _bb, DefaultEchelonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultEchelonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int EchlonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long LeaderId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MainId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MainIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetMainIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetMainIdArray() { return __p.__vector_as_array(8); } + public long SupportId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SupportIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetSupportIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetSupportIdArray() { return __p.__vector_as_array(10); } + public long TssId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateDefaultEchelonExcel(FlatBufferBuilder builder, + int EchlonId = 0, + long LeaderId = 0, + VectorOffset MainIdOffset = default(VectorOffset), + VectorOffset SupportIdOffset = default(VectorOffset), + long TssId = 0) { + builder.StartTable(5); + DefaultEchelonExcel.AddTssId(builder, TssId); + DefaultEchelonExcel.AddLeaderId(builder, LeaderId); + DefaultEchelonExcel.AddSupportId(builder, SupportIdOffset); + DefaultEchelonExcel.AddMainId(builder, MainIdOffset); + DefaultEchelonExcel.AddEchlonId(builder, EchlonId); + return DefaultEchelonExcel.EndDefaultEchelonExcel(builder); + } + + public static void StartDefaultEchelonExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddEchlonId(FlatBufferBuilder builder, int echlonId) { builder.AddInt(0, echlonId, 0); } + public static void AddLeaderId(FlatBufferBuilder builder, long leaderId) { builder.AddLong(1, leaderId, 0); } + public static void AddMainId(FlatBufferBuilder builder, VectorOffset mainIdOffset) { builder.AddOffset(2, mainIdOffset.Value, 0); } + public static VectorOffset CreateMainIdVector(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 CreateMainIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSupportId(FlatBufferBuilder builder, VectorOffset supportIdOffset) { builder.AddOffset(3, supportIdOffset.Value, 0); } + public static VectorOffset CreateSupportIdVector(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 CreateSupportIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddTssId(FlatBufferBuilder builder, long tssId) { builder.AddLong(4, tssId, 0); } + public static Offset EndDefaultEchelonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultEchelonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EchlonId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*LeaderId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*MainId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*SupportId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 12 /*TssId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs b/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs new file mode 100644 index 0000000..7c1ab4d --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultEchelonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DefaultEchelonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultEchelonExcelTable GetRootAsDefaultEchelonExcelTable(ByteBuffer _bb) { return GetRootAsDefaultEchelonExcelTable(_bb, new DefaultEchelonExcelTable()); } + public static DefaultEchelonExcelTable GetRootAsDefaultEchelonExcelTable(ByteBuffer _bb, DefaultEchelonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultEchelonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DefaultEchelonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DefaultEchelonExcel?)(new SCHALE.Common.FlatData.DefaultEchelonExcel()).__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 CreateDefaultEchelonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DefaultEchelonExcelTable.AddDataList(builder, DataListOffset); + return DefaultEchelonExcelTable.EndDefaultEchelonExcelTable(builder); + } + + public static void StartDefaultEchelonExcelTable(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 EndDefaultEchelonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultEchelonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DefaultEchelonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs new file mode 100644 index 0000000..8fb47a6 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs @@ -0,0 +1,70 @@ +// +// 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 DefaultFurnitureExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultFurnitureExcel GetRootAsDefaultFurnitureExcel(ByteBuffer _bb) { return GetRootAsDefaultFurnitureExcel(_bb, new DefaultFurnitureExcel()); } + public static DefaultFurnitureExcel GetRootAsDefaultFurnitureExcel(ByteBuffer _bb, DefaultFurnitureExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultFurnitureExcel __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 SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None; } } + public float PositionX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float PositionY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Rotation { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateDefaultFurnitureExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None, + float PositionX = 0.0f, + float PositionY = 0.0f, + float Rotation = 0.0f) { + builder.StartTable(5); + DefaultFurnitureExcel.AddId(builder, Id); + DefaultFurnitureExcel.AddRotation(builder, Rotation); + DefaultFurnitureExcel.AddPositionY(builder, PositionY); + DefaultFurnitureExcel.AddPositionX(builder, PositionX); + DefaultFurnitureExcel.AddLocation(builder, Location); + return DefaultFurnitureExcel.EndDefaultFurnitureExcel(builder); + } + + public static void StartDefaultFurnitureExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocation(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureLocation location) { builder.AddInt(1, (int)location, 0); } + public static void AddPositionX(FlatBufferBuilder builder, float positionX) { builder.AddFloat(2, positionX, 0.0f); } + public static void AddPositionY(FlatBufferBuilder builder, float positionY) { builder.AddFloat(3, positionY, 0.0f); } + public static void AddRotation(FlatBufferBuilder builder, float rotation) { builder.AddFloat(4, rotation, 0.0f); } + public static Offset EndDefaultFurnitureExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultFurnitureExcelVerify +{ + 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 /*Location*/, 4 /*SCHALE.Common.FlatData.FurnitureLocation*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*PositionX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*PositionY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Rotation*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs b/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs new file mode 100644 index 0000000..e58d0c4 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultFurnitureExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DefaultFurnitureExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultFurnitureExcelTable GetRootAsDefaultFurnitureExcelTable(ByteBuffer _bb) { return GetRootAsDefaultFurnitureExcelTable(_bb, new DefaultFurnitureExcelTable()); } + public static DefaultFurnitureExcelTable GetRootAsDefaultFurnitureExcelTable(ByteBuffer _bb, DefaultFurnitureExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultFurnitureExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DefaultFurnitureExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DefaultFurnitureExcel?)(new SCHALE.Common.FlatData.DefaultFurnitureExcel()).__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 CreateDefaultFurnitureExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DefaultFurnitureExcelTable.AddDataList(builder, DataListOffset); + return DefaultFurnitureExcelTable.EndDefaultFurnitureExcelTable(builder); + } + + public static void StartDefaultFurnitureExcelTable(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 EndDefaultFurnitureExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultFurnitureExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DefaultFurnitureExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultMailExcel.cs b/SCHALE.Common/FlatData/DefaultMailExcel.cs new file mode 100644 index 0000000..9750885 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultMailExcel.cs @@ -0,0 +1,133 @@ +// +// 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 DefaultMailExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultMailExcel GetRootAsDefaultMailExcel(ByteBuffer _bb) { return GetRootAsDefaultMailExcel(_bb, new DefaultMailExcel()); } + public static DefaultMailExcel GetRootAsDefaultMailExcel(ByteBuffer _bb, DefaultMailExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultMailExcel __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 uint LocalizeCodeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.MailType MailType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.MailType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MailType.System; } } + public string MailSendPeriodFrom { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMailSendPeriodFromBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetMailSendPeriodFromBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetMailSendPeriodFromArray() { return __p.__vector_as_array(10); } + public string MailSendPeriodTo { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMailSendPeriodToBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetMailSendPeriodToBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetMailSendPeriodToArray() { return __p.__vector_as_array(12); } + 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 CreateDefaultMailExcel(FlatBufferBuilder builder, + long Id = 0, + uint LocalizeCodeId = 0, + SCHALE.Common.FlatData.MailType MailType = SCHALE.Common.FlatData.MailType.System, + StringOffset MailSendPeriodFromOffset = default(StringOffset), + StringOffset MailSendPeriodToOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(8); + DefaultMailExcel.AddId(builder, Id); + DefaultMailExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + DefaultMailExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + DefaultMailExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + DefaultMailExcel.AddMailSendPeriodTo(builder, MailSendPeriodToOffset); + DefaultMailExcel.AddMailSendPeriodFrom(builder, MailSendPeriodFromOffset); + DefaultMailExcel.AddMailType(builder, MailType); + DefaultMailExcel.AddLocalizeCodeId(builder, LocalizeCodeId); + return DefaultMailExcel.EndDefaultMailExcel(builder); + } + + public static void StartDefaultMailExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, uint localizeCodeId) { builder.AddUint(1, localizeCodeId, 0); } + public static void AddMailType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MailType mailType) { builder.AddInt(2, (int)mailType, 0); } + public static void AddMailSendPeriodFrom(FlatBufferBuilder builder, StringOffset mailSendPeriodFromOffset) { builder.AddOffset(3, mailSendPeriodFromOffset.Value, 0); } + public static void AddMailSendPeriodTo(FlatBufferBuilder builder, StringOffset mailSendPeriodToOffset) { builder.AddOffset(4, mailSendPeriodToOffset.Value, 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 EndDefaultMailExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultMailExcelVerify +{ + 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 /*LocalizeCodeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*MailType*/, 4 /*SCHALE.Common.FlatData.MailType*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*MailSendPeriodFrom*/, false) + && verifier.VerifyString(tablePos, 12 /*MailSendPeriodTo*/, 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/DefaultMailExcelTable.cs b/SCHALE.Common/FlatData/DefaultMailExcelTable.cs new file mode 100644 index 0000000..6786074 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultMailExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DefaultMailExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultMailExcelTable GetRootAsDefaultMailExcelTable(ByteBuffer _bb) { return GetRootAsDefaultMailExcelTable(_bb, new DefaultMailExcelTable()); } + public static DefaultMailExcelTable GetRootAsDefaultMailExcelTable(ByteBuffer _bb, DefaultMailExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultMailExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DefaultMailExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DefaultMailExcel?)(new SCHALE.Common.FlatData.DefaultMailExcel()).__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 CreateDefaultMailExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DefaultMailExcelTable.AddDataList(builder, DataListOffset); + return DefaultMailExcelTable.EndDefaultMailExcelTable(builder); + } + + public static void StartDefaultMailExcelTable(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 EndDefaultMailExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultMailExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DefaultMailExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultParcelExcel.cs b/SCHALE.Common/FlatData/DefaultParcelExcel.cs new file mode 100644 index 0000000..5320a49 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultParcelExcel.cs @@ -0,0 +1,60 @@ +// +// 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 DefaultParcelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultParcelExcel GetRootAsDefaultParcelExcel(ByteBuffer _bb) { return GetRootAsDefaultParcelExcel(_bb, new DefaultParcelExcel()); } + public static DefaultParcelExcel GetRootAsDefaultParcelExcel(ByteBuffer _bb, DefaultParcelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultParcelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParcelAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateDefaultParcelExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelId = 0, + long ParcelAmount = 0) { + builder.StartTable(3); + DefaultParcelExcel.AddParcelAmount(builder, ParcelAmount); + DefaultParcelExcel.AddParcelId(builder, ParcelId); + DefaultParcelExcel.AddParcelType(builder, ParcelType); + return DefaultParcelExcel.EndDefaultParcelExcel(builder); + } + + public static void StartDefaultParcelExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(0, (int)parcelType, 0); } + public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(1, parcelId, 0); } + public static void AddParcelAmount(FlatBufferBuilder builder, long parcelAmount) { builder.AddLong(2, parcelAmount, 0); } + public static Offset EndDefaultParcelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultParcelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs b/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs new file mode 100644 index 0000000..c892276 --- /dev/null +++ b/SCHALE.Common/FlatData/DefaultParcelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DefaultParcelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DefaultParcelExcelTable GetRootAsDefaultParcelExcelTable(ByteBuffer _bb) { return GetRootAsDefaultParcelExcelTable(_bb, new DefaultParcelExcelTable()); } + public static DefaultParcelExcelTable GetRootAsDefaultParcelExcelTable(ByteBuffer _bb, DefaultParcelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DefaultParcelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DefaultParcelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DefaultParcelExcel?)(new SCHALE.Common.FlatData.DefaultParcelExcel()).__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 CreateDefaultParcelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DefaultParcelExcelTable.AddDataList(builder, DataListOffset); + return DefaultParcelExcelTable.EndDefaultParcelExcelTable(builder); + } + + public static void StartDefaultParcelExcelTable(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 EndDefaultParcelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DefaultParcelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DefaultParcelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DialogCategory.cs b/SCHALE.Common/FlatData/DialogCategory.cs new file mode 100644 index 0000000..40513f9 --- /dev/null +++ b/SCHALE.Common/FlatData/DialogCategory.cs @@ -0,0 +1,82 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DialogCategory : int +{ + Cafe = 0, + Echelon = 1, + CharacterSSRNew = 2, + CharacterGet = 3, + Birthday = 4, + Dating = 5, + Title = 6, + UILobby = 7, + UILobbySpecial = 8, + UIShop = 9, + UIGacha = 10, + UIRaidLobby = 11, + UIWork = 12, + UITitle = 13, + UIWeekDungeon = 14, + UIAcademyLobby = 15, + UIRaidLobbySeasonOff = 16, + UIRaidLobbySeasonOn = 17, + UIWorkAronaSit = 18, + UIWorkAronaSleep = 19, + UIWorkAronaWatch = 20, + UIGuideMission = 21, + UILobby2 = 22, + UIClanSearchList = 23, + UIAttendance = 24, + UIAttendanceEvent01 = 25, + UIEventLobby = 26, + UIEventShop = 27, + UIEventBoxGachaShop = 28, + UIAttendanceEvent02 = 29, + UIAttendanceEvent03 = 30, + UIEventCardShop = 31, + UISchoolDungeon = 32, + UIAttendanceEvent = 33, + UISpecialOperationLobby = 34, + WeaponGet = 35, + UIAttendanceEvent04 = 36, + UIEventFortuneGachaShop = 37, + UIAttendanceEvent05 = 38, + UIAttendanceEvent06 = 39, + UIMission = 40, + UIEventMission = 41, + UIAttendanceEvent08 = 42, + UIAttendanceEvent07 = 43, + UIEventMiniGameMission = 44, + UIAttendanceEvent09 = 45, + UIAttendanceEvent10 = 46, + UIAttendanceEvent11 = 47, + UIWorkPlanaSit = 48, + UIWorkPlanaUmbrella = 49, + UIWorkPlanaCabinet = 50, + UIWorkCoexist_AronaSleepSit = 51, + UIWorkCoexist_PlanaWatchSky = 52, + UIWorkCoexist_PlanaSitPeek = 53, + UIWorkCoexist_AronaSleepPeek = 54, + UIEventArchive = 55, + UIAttendanceEvent12 = 56, + UIAttendanceEvent13 = 57, + UIAttendanceEvent14 = 58, + Temp_1 = 59, + Temp_2 = 60, + Temp_3 = 61, + Temp_4 = 62, + Temp_5 = 63, + UIAttendanceEvent15 = 64, + UILobbySpecial2 = 65, + UIAttendanceEvent16 = 66, + UIEventTreasure = 67, + UIMultiFloorRaid = 68, +}; + + +} diff --git a/SCHALE.Common/FlatData/DialogCondition.cs b/SCHALE.Common/FlatData/DialogCondition.cs new file mode 100644 index 0000000..3fc1612 --- /dev/null +++ b/SCHALE.Common/FlatData/DialogCondition.cs @@ -0,0 +1,37 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DialogCondition : int +{ + Idle = 0, + Enter = 1, + Exit = 2, + Buy = 3, + SoldOut = 4, + BoxGachaNormal = 5, + BoxGachaPrize = 6, + Prize0 = 7, + Prize1 = 8, + Prize2 = 9, + Prize3 = 10, + Interaction = 11, + Luck0 = 12, + Luck1 = 13, + Luck2 = 14, + Luck3 = 15, + Luck4 = 16, + Luck5 = 17, + StoryOpen = 18, + CollectionOpen = 19, + BoxGachaFinish = 20, + FindTreasure = 21, + GetTreasure = 22, + RoundRenewal = 23, +}; + + +} diff --git a/SCHALE.Common/FlatData/DialogConditionDetail.cs b/SCHALE.Common/FlatData/DialogConditionDetail.cs new file mode 100644 index 0000000..e5bec62 --- /dev/null +++ b/SCHALE.Common/FlatData/DialogConditionDetail.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DialogConditionDetail : int +{ + None = 0, + Day = 1, + Close = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/DialogType.cs b/SCHALE.Common/FlatData/DialogType.cs new file mode 100644 index 0000000..6acb507 --- /dev/null +++ b/SCHALE.Common/FlatData/DialogType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum DialogType : int +{ + Talk = 0, + Think = 1, + UITalk = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/Difficulty.cs b/SCHALE.Common/FlatData/Difficulty.cs new file mode 100644 index 0000000..227dc18 --- /dev/null +++ b/SCHALE.Common/FlatData/Difficulty.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Difficulty : int +{ + Normal = 0, + Hard = 1, + VeryHard = 2, + Hardcore = 3, + Extreme = 4, + Insane = 5, + Torment = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/DuplicateBonusExcel.cs b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs new file mode 100644 index 0000000..cbe6d42 --- /dev/null +++ b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs @@ -0,0 +1,80 @@ +// +// 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 DuplicateBonusExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DuplicateBonusExcel GetRootAsDuplicateBonusExcel(ByteBuffer _bb) { return GetRootAsDuplicateBonusExcel(_bb, new DuplicateBonusExcel()); } + public static DuplicateBonusExcel GetRootAsDuplicateBonusExcel(ByteBuffer _bb, DuplicateBonusExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DuplicateBonusExcel __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 SCHALE.Common.FlatData.ItemCategory ItemCategory { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ItemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ItemCategory.Coin; } } + public long ItemId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateDuplicateBonusExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ItemCategory ItemCategory = SCHALE.Common.FlatData.ItemCategory.Coin, + long ItemId = 0, + long CharacterId = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0) { + builder.StartTable(7); + DuplicateBonusExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + DuplicateBonusExcel.AddRewardParcelId(builder, RewardParcelId); + DuplicateBonusExcel.AddCharacterId(builder, CharacterId); + DuplicateBonusExcel.AddItemId(builder, ItemId); + DuplicateBonusExcel.AddId(builder, Id); + DuplicateBonusExcel.AddRewardParcelType(builder, RewardParcelType); + DuplicateBonusExcel.AddItemCategory(builder, ItemCategory); + return DuplicateBonusExcel.EndDuplicateBonusExcel(builder); + } + + public static void StartDuplicateBonusExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddItemCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.ItemCategory itemCategory) { builder.AddInt(1, (int)itemCategory, 0); } + public static void AddItemId(FlatBufferBuilder builder, long itemId) { builder.AddLong(2, itemId, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(3, characterId, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(4, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(5, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(6, rewardParcelAmount, 0); } + public static Offset EndDuplicateBonusExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DuplicateBonusExcelVerify +{ + 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 /*ItemCategory*/, 4 /*SCHALE.Common.FlatData.ItemCategory*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs b/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs new file mode 100644 index 0000000..cc133aa --- /dev/null +++ b/SCHALE.Common/FlatData/DuplicateBonusExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 DuplicateBonusExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static DuplicateBonusExcelTable GetRootAsDuplicateBonusExcelTable(ByteBuffer _bb) { return GetRootAsDuplicateBonusExcelTable(_bb, new DuplicateBonusExcelTable()); } + public static DuplicateBonusExcelTable GetRootAsDuplicateBonusExcelTable(ByteBuffer _bb, DuplicateBonusExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public DuplicateBonusExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.DuplicateBonusExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.DuplicateBonusExcel?)(new SCHALE.Common.FlatData.DuplicateBonusExcel()).__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 CreateDuplicateBonusExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + DuplicateBonusExcelTable.AddDataList(builder, DataListOffset); + return DuplicateBonusExcelTable.EndDuplicateBonusExcelTable(builder); + } + + public static void StartDuplicateBonusExcelTable(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 EndDuplicateBonusExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class DuplicateBonusExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.DuplicateBonusExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EchelonConstraintExcel.cs b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs new file mode 100644 index 0000000..fb4a0ff --- /dev/null +++ b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs @@ -0,0 +1,109 @@ +// +// 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 EchelonConstraintExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EchelonConstraintExcel GetRootAsEchelonConstraintExcel(ByteBuffer _bb) { return GetRootAsEchelonConstraintExcel(_bb, new EchelonConstraintExcel()); } + public static EchelonConstraintExcel GetRootAsEchelonConstraintExcel(ByteBuffer _bb, EchelonConstraintExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EchelonConstraintExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsWhiteList { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CharacterId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CharacterIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCharacterIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetCharacterIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetCharacterIdArray() { return __p.__vector_as_array(8); } + public long PersonalityId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PersonalityIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPersonalityIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetPersonalityIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetPersonalityIdArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.WeaponType WeaponType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } + public SCHALE.Common.FlatData.School School { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } + public SCHALE.Common.FlatData.Club Club { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } + public SCHALE.Common.FlatData.TacticRole Role { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None; } } + + public static Offset CreateEchelonConstraintExcel(FlatBufferBuilder builder, + long GroupId = 0, + bool IsWhiteList = false, + VectorOffset CharacterIdOffset = default(VectorOffset), + VectorOffset PersonalityIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.WeaponType WeaponType = SCHALE.Common.FlatData.WeaponType.None, + SCHALE.Common.FlatData.School School = SCHALE.Common.FlatData.School.None, + SCHALE.Common.FlatData.Club Club = SCHALE.Common.FlatData.Club.None, + SCHALE.Common.FlatData.TacticRole Role = SCHALE.Common.FlatData.TacticRole.None) { + builder.StartTable(8); + EchelonConstraintExcel.AddGroupId(builder, GroupId); + EchelonConstraintExcel.AddRole(builder, Role); + EchelonConstraintExcel.AddClub(builder, Club); + EchelonConstraintExcel.AddSchool(builder, School); + EchelonConstraintExcel.AddWeaponType(builder, WeaponType); + EchelonConstraintExcel.AddPersonalityId(builder, PersonalityIdOffset); + EchelonConstraintExcel.AddCharacterId(builder, CharacterIdOffset); + EchelonConstraintExcel.AddIsWhiteList(builder, IsWhiteList); + return EchelonConstraintExcel.EndEchelonConstraintExcel(builder); + } + + public static void StartEchelonConstraintExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddIsWhiteList(FlatBufferBuilder builder, bool isWhiteList) { builder.AddBool(1, isWhiteList, false); } + public static void AddCharacterId(FlatBufferBuilder builder, VectorOffset characterIdOffset) { builder.AddOffset(2, characterIdOffset.Value, 0); } + public static VectorOffset CreateCharacterIdVector(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 CreateCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddPersonalityId(FlatBufferBuilder builder, VectorOffset personalityIdOffset) { builder.AddOffset(3, personalityIdOffset.Value, 0); } + public static VectorOffset CreatePersonalityIdVector(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 CreatePersonalityIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePersonalityIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePersonalityIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPersonalityIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddWeaponType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeaponType weaponType) { builder.AddInt(4, (int)weaponType, 0); } + public static void AddSchool(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school) { builder.AddInt(5, (int)school, 0); } + public static void AddClub(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club club) { builder.AddInt(6, (int)club, 0); } + public static void AddRole(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRole role) { builder.AddInt(7, (int)role, 0); } + public static Offset EndEchelonConstraintExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EchelonConstraintExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsWhiteList*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*CharacterId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*PersonalityId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 12 /*WeaponType*/, 4 /*SCHALE.Common.FlatData.WeaponType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*School*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Club*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Role*/, 4 /*SCHALE.Common.FlatData.TacticRole*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs b/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs new file mode 100644 index 0000000..98abe77 --- /dev/null +++ b/SCHALE.Common/FlatData/EchelonConstraintExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EchelonConstraintExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EchelonConstraintExcelTable GetRootAsEchelonConstraintExcelTable(ByteBuffer _bb) { return GetRootAsEchelonConstraintExcelTable(_bb, new EchelonConstraintExcelTable()); } + public static EchelonConstraintExcelTable GetRootAsEchelonConstraintExcelTable(ByteBuffer _bb, EchelonConstraintExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EchelonConstraintExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EchelonConstraintExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EchelonConstraintExcel?)(new SCHALE.Common.FlatData.EchelonConstraintExcel()).__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 CreateEchelonConstraintExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EchelonConstraintExcelTable.AddDataList(builder, DataListOffset); + return EchelonConstraintExcelTable.EndEchelonConstraintExcelTable(builder); + } + + public static void StartEchelonConstraintExcelTable(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 EndEchelonConstraintExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EchelonConstraintExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EchelonConstraintExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EchelonExtensionType.cs b/SCHALE.Common/FlatData/EchelonExtensionType.cs new file mode 100644 index 0000000..5a6f6a5 --- /dev/null +++ b/SCHALE.Common/FlatData/EchelonExtensionType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EchelonExtensionType : int +{ + Base = 0, + Extension = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/EchelonType.cs b/SCHALE.Common/FlatData/EchelonType.cs new file mode 100644 index 0000000..6c21555 --- /dev/null +++ b/SCHALE.Common/FlatData/EchelonType.cs @@ -0,0 +1,38 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EchelonType : int +{ + None = 0, + Adventure = 1, + Raid = 2, + ArenaAttack = 3, + ArenaDefence = 4, + WeekDungeonChaserA = 5, + Scenario = 6, + WeekDungeonBlood = 7, + WeekDungeonChaserB = 8, + WeekDungeonChaserC = 9, + WeekDungeonFindGift = 10, + EventContent = 11, + SchoolDungeonA = 12, + SchoolDungeonB = 13, + SchoolDungeonC = 14, + TimeAttack = 15, + WorldRaid = 16, + Conquest = 17, + ConquestManage = 18, + StoryStrategyStage = 19, + EliminateRaid01 = 20, + EliminateRaid02 = 21, + EliminateRaid03 = 22, + Field = 23, + MultiFloorRaid = 24, +}; + + +} diff --git a/SCHALE.Common/FlatData/EffectBone.cs b/SCHALE.Common/FlatData/EffectBone.cs new file mode 100644 index 0000000..1e25623 --- /dev/null +++ b/SCHALE.Common/FlatData/EffectBone.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EffectBone : int +{ + None = 0, + Shot = 1, + Head = 2, + Body = 3, + Shot2 = 4, + Shot3 = 5, + Extra = 6, + Extra2 = 7, + Extra3 = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs new file mode 100644 index 0000000..228273f --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcel.cs @@ -0,0 +1,142 @@ +// +// 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 EliminateRaidRankingRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidRankingRewardExcel GetRootAsEliminateRaidRankingRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidRankingRewardExcel(_bb, new EliminateRaidRankingRewardExcel()); } + public static EliminateRaidRankingRewardExcel GetRootAsEliminateRaidRankingRewardExcel(ByteBuffer _bb, EliminateRaidRankingRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidRankingRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long RankingRewardGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankStart { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankEnd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PercentRankStart { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PercentRankEnd { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Tier { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(18); 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(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(18); 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 RewardParcelUniqueId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelUniqueIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelUniqueIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetRewardParcelUniqueIdArray() { return __p.__vector_as_array(20); } + public string RewardParcelUniqueName(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int RewardParcelUniqueNameLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + public long RewardParcelAmount(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(24); } + + public static Offset CreateEliminateRaidRankingRewardExcel(FlatBufferBuilder builder, + long RankingRewardGroupId = 0, + long Id = 0, + long RankStart = 0, + long RankEnd = 0, + long PercentRankStart = 0, + long PercentRankEnd = 0, + int Tier = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(11); + EliminateRaidRankingRewardExcel.AddPercentRankEnd(builder, PercentRankEnd); + EliminateRaidRankingRewardExcel.AddPercentRankStart(builder, PercentRankStart); + EliminateRaidRankingRewardExcel.AddRankEnd(builder, RankEnd); + EliminateRaidRankingRewardExcel.AddRankStart(builder, RankStart); + EliminateRaidRankingRewardExcel.AddId(builder, Id); + EliminateRaidRankingRewardExcel.AddRankingRewardGroupId(builder, RankingRewardGroupId); + EliminateRaidRankingRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EliminateRaidRankingRewardExcel.AddRewardParcelUniqueName(builder, RewardParcelUniqueNameOffset); + EliminateRaidRankingRewardExcel.AddRewardParcelUniqueId(builder, RewardParcelUniqueIdOffset); + EliminateRaidRankingRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EliminateRaidRankingRewardExcel.AddTier(builder, Tier); + return EliminateRaidRankingRewardExcel.EndEliminateRaidRankingRewardExcel(builder); + } + + public static void StartEliminateRaidRankingRewardExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddRankingRewardGroupId(FlatBufferBuilder builder, long rankingRewardGroupId) { builder.AddLong(0, rankingRewardGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddRankStart(FlatBufferBuilder builder, long rankStart) { builder.AddLong(2, rankStart, 0); } + public static void AddRankEnd(FlatBufferBuilder builder, long rankEnd) { builder.AddLong(3, rankEnd, 0); } + public static void AddPercentRankStart(FlatBufferBuilder builder, long percentRankStart) { builder.AddLong(4, percentRankStart, 0); } + public static void AddPercentRankEnd(FlatBufferBuilder builder, long percentRankEnd) { builder.AddLong(5, percentRankEnd, 0); } + public static void AddTier(FlatBufferBuilder builder, int tier) { builder.AddInt(6, tier, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(7, 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 AddRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueIdOffset) { builder.AddOffset(8, rewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueIdVector(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 CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueNameOffset) { builder.AddOffset(9, rewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, VectorOffset rewardParcelAmountOffset) { builder.AddOffset(10, 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 EndEliminateRaidRankingRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidRankingRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RankingRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*RankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*PercentRankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PercentRankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*Tier*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*RewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*RewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs new file mode 100644 index 0000000..98b185d --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidRankingRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidRankingRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidRankingRewardExcelTable GetRootAsEliminateRaidRankingRewardExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidRankingRewardExcelTable(_bb, new EliminateRaidRankingRewardExcelTable()); } + public static EliminateRaidRankingRewardExcelTable GetRootAsEliminateRaidRankingRewardExcelTable(ByteBuffer _bb, EliminateRaidRankingRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidRankingRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidRankingRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidRankingRewardExcel?)(new SCHALE.Common.FlatData.EliminateRaidRankingRewardExcel()).__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 CreateEliminateRaidRankingRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidRankingRewardExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidRankingRewardExcelTable.EndEliminateRaidRankingRewardExcelTable(builder); + } + + public static void StartEliminateRaidRankingRewardExcelTable(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 EndEliminateRaidRankingRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidRankingRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidRankingRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs new file mode 100644 index 0000000..588d8f6 --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcel.cs @@ -0,0 +1,222 @@ +// +// 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 EliminateRaidSeasonManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidSeasonManageExcel GetRootAsEliminateRaidSeasonManageExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidSeasonManageExcel(_bb, new EliminateRaidSeasonManageExcel()); } + public static EliminateRaidSeasonManageExcel GetRootAsEliminateRaidSeasonManageExcel(ByteBuffer _bb, EliminateRaidSeasonManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidSeasonManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SeasonDisplay { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SeasonStartData { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonStartDataBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSeasonStartDataBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSeasonStartDataArray() { return __p.__vector_as_array(8); } + public string SeasonEndData { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonEndDataBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSeasonEndDataBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSeasonEndDataArray() { return __p.__vector_as_array(10); } + public string SettlementEndDate { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSettlementEndDateBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSettlementEndDateBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSettlementEndDateArray() { return __p.__vector_as_array(12); } + public string LobbyTableBGPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLobbyTableBGPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetLobbyTableBGPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetLobbyTableBGPathArray() { return __p.__vector_as_array(14); } + public string LobbyScreenBGPath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLobbyScreenBGPathBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetLobbyScreenBGPathBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetLobbyScreenBGPathArray() { return __p.__vector_as_array(16); } + public string OpenRaidBossGroup01 { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenRaidBossGroup01Bytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetOpenRaidBossGroup01Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetOpenRaidBossGroup01Array() { return __p.__vector_as_array(18); } + public string OpenRaidBossGroup02 { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenRaidBossGroup02Bytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetOpenRaidBossGroup02Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetOpenRaidBossGroup02Array() { return __p.__vector_as_array(20); } + public string OpenRaidBossGroup03 { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenRaidBossGroup03Bytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetOpenRaidBossGroup03Bytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetOpenRaidBossGroup03Array() { return __p.__vector_as_array(22); } + public long RankingRewardGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxSeasonRewardGauage { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StackedSeasonRewardGauge(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StackedSeasonRewardGaugeLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStackedSeasonRewardGaugeBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetStackedSeasonRewardGaugeBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetStackedSeasonRewardGaugeArray() { return __p.__vector_as_array(28); } + public long SeasonRewardId(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardIdLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardIdBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetSeasonRewardIdBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetSeasonRewardIdArray() { return __p.__vector_as_array(30); } + public long LimitedRewardIdNormal { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdHard { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdVeryhard { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdHardcore { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdExtreme { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdInsane { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedRewardIdTorment { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEliminateRaidSeasonManageExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long SeasonDisplay = 0, + StringOffset SeasonStartDataOffset = default(StringOffset), + StringOffset SeasonEndDataOffset = default(StringOffset), + StringOffset SettlementEndDateOffset = default(StringOffset), + StringOffset LobbyTableBGPathOffset = default(StringOffset), + StringOffset LobbyScreenBGPathOffset = default(StringOffset), + StringOffset OpenRaidBossGroup01Offset = default(StringOffset), + StringOffset OpenRaidBossGroup02Offset = default(StringOffset), + StringOffset OpenRaidBossGroup03Offset = default(StringOffset), + long RankingRewardGroupId = 0, + int MaxSeasonRewardGauage = 0, + VectorOffset StackedSeasonRewardGaugeOffset = default(VectorOffset), + VectorOffset SeasonRewardIdOffset = default(VectorOffset), + long LimitedRewardIdNormal = 0, + long LimitedRewardIdHard = 0, + long LimitedRewardIdVeryhard = 0, + long LimitedRewardIdHardcore = 0, + long LimitedRewardIdExtreme = 0, + long LimitedRewardIdInsane = 0, + long LimitedRewardIdTorment = 0) { + builder.StartTable(21); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdTorment(builder, LimitedRewardIdTorment); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdInsane(builder, LimitedRewardIdInsane); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdExtreme(builder, LimitedRewardIdExtreme); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdHardcore(builder, LimitedRewardIdHardcore); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdVeryhard(builder, LimitedRewardIdVeryhard); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdHard(builder, LimitedRewardIdHard); + EliminateRaidSeasonManageExcel.AddLimitedRewardIdNormal(builder, LimitedRewardIdNormal); + EliminateRaidSeasonManageExcel.AddRankingRewardGroupId(builder, RankingRewardGroupId); + EliminateRaidSeasonManageExcel.AddSeasonDisplay(builder, SeasonDisplay); + EliminateRaidSeasonManageExcel.AddSeasonId(builder, SeasonId); + EliminateRaidSeasonManageExcel.AddSeasonRewardId(builder, SeasonRewardIdOffset); + EliminateRaidSeasonManageExcel.AddStackedSeasonRewardGauge(builder, StackedSeasonRewardGaugeOffset); + EliminateRaidSeasonManageExcel.AddMaxSeasonRewardGauage(builder, MaxSeasonRewardGauage); + EliminateRaidSeasonManageExcel.AddOpenRaidBossGroup03(builder, OpenRaidBossGroup03Offset); + EliminateRaidSeasonManageExcel.AddOpenRaidBossGroup02(builder, OpenRaidBossGroup02Offset); + EliminateRaidSeasonManageExcel.AddOpenRaidBossGroup01(builder, OpenRaidBossGroup01Offset); + EliminateRaidSeasonManageExcel.AddLobbyScreenBGPath(builder, LobbyScreenBGPathOffset); + EliminateRaidSeasonManageExcel.AddLobbyTableBGPath(builder, LobbyTableBGPathOffset); + EliminateRaidSeasonManageExcel.AddSettlementEndDate(builder, SettlementEndDateOffset); + EliminateRaidSeasonManageExcel.AddSeasonEndData(builder, SeasonEndDataOffset); + EliminateRaidSeasonManageExcel.AddSeasonStartData(builder, SeasonStartDataOffset); + return EliminateRaidSeasonManageExcel.EndEliminateRaidSeasonManageExcel(builder); + } + + public static void StartEliminateRaidSeasonManageExcel(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddSeasonDisplay(FlatBufferBuilder builder, long seasonDisplay) { builder.AddLong(1, seasonDisplay, 0); } + public static void AddSeasonStartData(FlatBufferBuilder builder, StringOffset seasonStartDataOffset) { builder.AddOffset(2, seasonStartDataOffset.Value, 0); } + public static void AddSeasonEndData(FlatBufferBuilder builder, StringOffset seasonEndDataOffset) { builder.AddOffset(3, seasonEndDataOffset.Value, 0); } + public static void AddSettlementEndDate(FlatBufferBuilder builder, StringOffset settlementEndDateOffset) { builder.AddOffset(4, settlementEndDateOffset.Value, 0); } + public static void AddLobbyTableBGPath(FlatBufferBuilder builder, StringOffset lobbyTableBGPathOffset) { builder.AddOffset(5, lobbyTableBGPathOffset.Value, 0); } + public static void AddLobbyScreenBGPath(FlatBufferBuilder builder, StringOffset lobbyScreenBGPathOffset) { builder.AddOffset(6, lobbyScreenBGPathOffset.Value, 0); } + public static void AddOpenRaidBossGroup01(FlatBufferBuilder builder, StringOffset openRaidBossGroup01Offset) { builder.AddOffset(7, openRaidBossGroup01Offset.Value, 0); } + public static void AddOpenRaidBossGroup02(FlatBufferBuilder builder, StringOffset openRaidBossGroup02Offset) { builder.AddOffset(8, openRaidBossGroup02Offset.Value, 0); } + public static void AddOpenRaidBossGroup03(FlatBufferBuilder builder, StringOffset openRaidBossGroup03Offset) { builder.AddOffset(9, openRaidBossGroup03Offset.Value, 0); } + public static void AddRankingRewardGroupId(FlatBufferBuilder builder, long rankingRewardGroupId) { builder.AddLong(10, rankingRewardGroupId, 0); } + public static void AddMaxSeasonRewardGauage(FlatBufferBuilder builder, int maxSeasonRewardGauage) { builder.AddInt(11, maxSeasonRewardGauage, 0); } + public static void AddStackedSeasonRewardGauge(FlatBufferBuilder builder, VectorOffset stackedSeasonRewardGaugeOffset) { builder.AddOffset(12, stackedSeasonRewardGaugeOffset.Value, 0); } + public static VectorOffset CreateStackedSeasonRewardGaugeVector(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 CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStackedSeasonRewardGaugeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSeasonRewardId(FlatBufferBuilder builder, VectorOffset seasonRewardIdOffset) { builder.AddOffset(13, seasonRewardIdOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardIdVector(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 CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddLimitedRewardIdNormal(FlatBufferBuilder builder, long limitedRewardIdNormal) { builder.AddLong(14, limitedRewardIdNormal, 0); } + public static void AddLimitedRewardIdHard(FlatBufferBuilder builder, long limitedRewardIdHard) { builder.AddLong(15, limitedRewardIdHard, 0); } + public static void AddLimitedRewardIdVeryhard(FlatBufferBuilder builder, long limitedRewardIdVeryhard) { builder.AddLong(16, limitedRewardIdVeryhard, 0); } + public static void AddLimitedRewardIdHardcore(FlatBufferBuilder builder, long limitedRewardIdHardcore) { builder.AddLong(17, limitedRewardIdHardcore, 0); } + public static void AddLimitedRewardIdExtreme(FlatBufferBuilder builder, long limitedRewardIdExtreme) { builder.AddLong(18, limitedRewardIdExtreme, 0); } + public static void AddLimitedRewardIdInsane(FlatBufferBuilder builder, long limitedRewardIdInsane) { builder.AddLong(19, limitedRewardIdInsane, 0); } + public static void AddLimitedRewardIdTorment(FlatBufferBuilder builder, long limitedRewardIdTorment) { builder.AddLong(20, limitedRewardIdTorment, 0); } + public static Offset EndEliminateRaidSeasonManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidSeasonManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SeasonDisplay*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*SeasonStartData*/, false) + && verifier.VerifyString(tablePos, 10 /*SeasonEndData*/, false) + && verifier.VerifyString(tablePos, 12 /*SettlementEndDate*/, false) + && verifier.VerifyString(tablePos, 14 /*LobbyTableBGPath*/, false) + && verifier.VerifyString(tablePos, 16 /*LobbyScreenBGPath*/, false) + && verifier.VerifyString(tablePos, 18 /*OpenRaidBossGroup01*/, false) + && verifier.VerifyString(tablePos, 20 /*OpenRaidBossGroup02*/, false) + && verifier.VerifyString(tablePos, 22 /*OpenRaidBossGroup03*/, false) + && verifier.VerifyField(tablePos, 24 /*RankingRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*MaxSeasonRewardGauage*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*StackedSeasonRewardGauge*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*SeasonRewardId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 32 /*LimitedRewardIdNormal*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*LimitedRewardIdHard*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*LimitedRewardIdVeryhard*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*LimitedRewardIdHardcore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*LimitedRewardIdExtreme*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*LimitedRewardIdInsane*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*LimitedRewardIdTorment*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs new file mode 100644 index 0000000..6ab150f --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidSeasonManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidSeasonManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidSeasonManageExcelTable GetRootAsEliminateRaidSeasonManageExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidSeasonManageExcelTable(_bb, new EliminateRaidSeasonManageExcelTable()); } + public static EliminateRaidSeasonManageExcelTable GetRootAsEliminateRaidSeasonManageExcelTable(ByteBuffer _bb, EliminateRaidSeasonManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidSeasonManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidSeasonManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidSeasonManageExcel?)(new SCHALE.Common.FlatData.EliminateRaidSeasonManageExcel()).__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 CreateEliminateRaidSeasonManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidSeasonManageExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidSeasonManageExcelTable.EndEliminateRaidSeasonManageExcelTable(builder); + } + + public static void StartEliminateRaidSeasonManageExcelTable(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 EndEliminateRaidSeasonManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidSeasonManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidSeasonManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs new file mode 100644 index 0000000..f9a152c --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs @@ -0,0 +1,330 @@ +// +// 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 EliminateRaidStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageExcel GetRootAsEliminateRaidStageExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageExcel(_bb, new EliminateRaidStageExcel()); } + public static EliminateRaidStageExcel GetRootAsEliminateRaidStageExcel(ByteBuffer _bb, EliminateRaidStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageExcel __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 UseBossIndex { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseBossAIPhaseSync { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string RaidBossGroup { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRaidBossGroupBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetRaidBossGroupBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetRaidBossGroupArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RaidEnterCostAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string BossSpinePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBossSpinePathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetBossSpinePathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetBossSpinePathArray() { return __p.__vector_as_array(18); } + public string PortraitPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPortraitPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetPortraitPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetPortraitPathArray() { return __p.__vector_as_array(20); } + public string BGPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBGPathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetBGPathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetBGPathArray() { return __p.__vector_as_array(22); } + public long RaidCharacterId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BossCharacterId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BossCharacterIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBossCharacterIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetBossCharacterIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.Difficulty Difficulty { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.Difficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Difficulty.Normal; } } + public bool IsOpen { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long MaxPlayerCount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RaidRoomLifeTime { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BattleDuration { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GroundDevName { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroundDevNameBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetGroundDevNameBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetGroundDevNameArray() { return __p.__vector_as_array(40); } + public string EnterTimeLine { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnterTimeLineBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetEnterTimeLineBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetEnterTimeLineArray() { return __p.__vector_as_array(42); } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public long DefaultClearScore { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaximumScore { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PerSecondMinusScore { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HPPercentScore { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MinimumAcquisitionScore { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaximumAcquisitionScore { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidRewardGroupId { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BattleReadyTimelinePath(int j) { int o = __p.__offset(60); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int BattleReadyTimelinePathLength { get { int o = __p.__offset(60); return o != 0 ? __p.__vector_len(o) : 0; } } + public int BattleReadyTimelinePhaseStart(int j) { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseStartLength { get { int o = __p.__offset(62); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_span(62, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public int[] GetBattleReadyTimelinePhaseStartArray() { return __p.__vector_as_array(62); } + public int BattleReadyTimelinePhaseEnd(int j) { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseEndLength { get { int o = __p.__offset(64); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_span(64, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_arraysegment(64); } +#endif + public int[] GetBattleReadyTimelinePhaseEndArray() { return __p.__vector_as_array(64); } + public string VictoryTimelinePath { get { int o = __p.__offset(66); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(66, 1); } +#else + public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(66); } +#endif + public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(66); } + public string PhaseChangeTimelinePath { get { int o = __p.__offset(68); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_span(68, 1); } +#else + public ArraySegment? GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_arraysegment(68); } +#endif + public byte[] GetPhaseChangeTimelinePathArray() { return __p.__vector_as_array(68); } + public long TimeLinePhase { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint EnterScenarioKey { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint ClearScenarioKey { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool ShowSkillCard { get { int o = __p.__offset(76); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint BossBGInfoKey { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateEliminateRaidStageExcel(FlatBufferBuilder builder, + long Id = 0, + bool UseBossIndex = false, + bool UseBossAIPhaseSync = false, + StringOffset RaidBossGroupOffset = default(StringOffset), + SCHALE.Common.FlatData.ParcelType RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long RaidEnterCostId = 0, + int RaidEnterCostAmount = 0, + StringOffset BossSpinePathOffset = default(StringOffset), + StringOffset PortraitPathOffset = default(StringOffset), + StringOffset BGPathOffset = default(StringOffset), + long RaidCharacterId = 0, + VectorOffset BossCharacterIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.Difficulty Difficulty = SCHALE.Common.FlatData.Difficulty.Normal, + bool IsOpen = false, + long MaxPlayerCount = 0, + int RaidRoomLifeTime = 0, + long BattleDuration = 0, + long GroundId = 0, + StringOffset GroundDevNameOffset = default(StringOffset), + StringOffset EnterTimeLineOffset = default(StringOffset), + SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment = SCHALE.Common.FlatData.TacticEnvironment.None, + long DefaultClearScore = 0, + long MaximumScore = 0, + long PerSecondMinusScore = 0, + long HPPercentScore = 0, + long MinimumAcquisitionScore = 0, + long MaximumAcquisitionScore = 0, + long RaidRewardGroupId = 0, + VectorOffset BattleReadyTimelinePathOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseStartOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseEndOffset = default(VectorOffset), + StringOffset VictoryTimelinePathOffset = default(StringOffset), + StringOffset PhaseChangeTimelinePathOffset = default(StringOffset), + long TimeLinePhase = 0, + uint EnterScenarioKey = 0, + uint ClearScenarioKey = 0, + bool ShowSkillCard = false, + uint BossBGInfoKey = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(39); + EliminateRaidStageExcel.AddTimeLinePhase(builder, TimeLinePhase); + EliminateRaidStageExcel.AddRaidRewardGroupId(builder, RaidRewardGroupId); + EliminateRaidStageExcel.AddMaximumAcquisitionScore(builder, MaximumAcquisitionScore); + EliminateRaidStageExcel.AddMinimumAcquisitionScore(builder, MinimumAcquisitionScore); + EliminateRaidStageExcel.AddHPPercentScore(builder, HPPercentScore); + EliminateRaidStageExcel.AddPerSecondMinusScore(builder, PerSecondMinusScore); + EliminateRaidStageExcel.AddMaximumScore(builder, MaximumScore); + EliminateRaidStageExcel.AddDefaultClearScore(builder, DefaultClearScore); + EliminateRaidStageExcel.AddGroundId(builder, GroundId); + EliminateRaidStageExcel.AddBattleDuration(builder, BattleDuration); + EliminateRaidStageExcel.AddMaxPlayerCount(builder, MaxPlayerCount); + EliminateRaidStageExcel.AddRaidCharacterId(builder, RaidCharacterId); + EliminateRaidStageExcel.AddRaidEnterCostId(builder, RaidEnterCostId); + EliminateRaidStageExcel.AddId(builder, Id); + EliminateRaidStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + EliminateRaidStageExcel.AddBossBGInfoKey(builder, BossBGInfoKey); + EliminateRaidStageExcel.AddClearScenarioKey(builder, ClearScenarioKey); + EliminateRaidStageExcel.AddEnterScenarioKey(builder, EnterScenarioKey); + EliminateRaidStageExcel.AddPhaseChangeTimelinePath(builder, PhaseChangeTimelinePathOffset); + EliminateRaidStageExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); + EliminateRaidStageExcel.AddBattleReadyTimelinePhaseEnd(builder, BattleReadyTimelinePhaseEndOffset); + EliminateRaidStageExcel.AddBattleReadyTimelinePhaseStart(builder, BattleReadyTimelinePhaseStartOffset); + EliminateRaidStageExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); + EliminateRaidStageExcel.AddTacticEnvironment(builder, TacticEnvironment); + EliminateRaidStageExcel.AddEnterTimeLine(builder, EnterTimeLineOffset); + EliminateRaidStageExcel.AddGroundDevName(builder, GroundDevNameOffset); + EliminateRaidStageExcel.AddRaidRoomLifeTime(builder, RaidRoomLifeTime); + EliminateRaidStageExcel.AddDifficulty(builder, Difficulty); + EliminateRaidStageExcel.AddBossCharacterId(builder, BossCharacterIdOffset); + EliminateRaidStageExcel.AddBGPath(builder, BGPathOffset); + EliminateRaidStageExcel.AddPortraitPath(builder, PortraitPathOffset); + EliminateRaidStageExcel.AddBossSpinePath(builder, BossSpinePathOffset); + EliminateRaidStageExcel.AddRaidEnterCostAmount(builder, RaidEnterCostAmount); + EliminateRaidStageExcel.AddRaidEnterCostType(builder, RaidEnterCostType); + EliminateRaidStageExcel.AddRaidBossGroup(builder, RaidBossGroupOffset); + EliminateRaidStageExcel.AddShowSkillCard(builder, ShowSkillCard); + EliminateRaidStageExcel.AddIsOpen(builder, IsOpen); + EliminateRaidStageExcel.AddUseBossAIPhaseSync(builder, UseBossAIPhaseSync); + EliminateRaidStageExcel.AddUseBossIndex(builder, UseBossIndex); + return EliminateRaidStageExcel.EndEliminateRaidStageExcel(builder); + } + + public static void StartEliminateRaidStageExcel(FlatBufferBuilder builder) { builder.StartTable(39); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddUseBossIndex(FlatBufferBuilder builder, bool useBossIndex) { builder.AddBool(1, useBossIndex, false); } + public static void AddUseBossAIPhaseSync(FlatBufferBuilder builder, bool useBossAIPhaseSync) { builder.AddBool(2, useBossAIPhaseSync, false); } + public static void AddRaidBossGroup(FlatBufferBuilder builder, StringOffset raidBossGroupOffset) { builder.AddOffset(3, raidBossGroupOffset.Value, 0); } + public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(4, (int)raidEnterCostType, 0); } + public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(5, raidEnterCostId, 0); } + public static void AddRaidEnterCostAmount(FlatBufferBuilder builder, int raidEnterCostAmount) { builder.AddInt(6, raidEnterCostAmount, 0); } + public static void AddBossSpinePath(FlatBufferBuilder builder, StringOffset bossSpinePathOffset) { builder.AddOffset(7, bossSpinePathOffset.Value, 0); } + public static void AddPortraitPath(FlatBufferBuilder builder, StringOffset portraitPathOffset) { builder.AddOffset(8, portraitPathOffset.Value, 0); } + public static void AddBGPath(FlatBufferBuilder builder, StringOffset bGPathOffset) { builder.AddOffset(9, bGPathOffset.Value, 0); } + public static void AddRaidCharacterId(FlatBufferBuilder builder, long raidCharacterId) { builder.AddLong(10, raidCharacterId, 0); } + public static void AddBossCharacterId(FlatBufferBuilder builder, VectorOffset bossCharacterIdOffset) { builder.AddOffset(11, bossCharacterIdOffset.Value, 0); } + public static VectorOffset CreateBossCharacterIdVector(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 CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBossCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.Difficulty difficulty) { builder.AddInt(12, (int)difficulty, 0); } + public static void AddIsOpen(FlatBufferBuilder builder, bool isOpen) { builder.AddBool(13, isOpen, false); } + public static void AddMaxPlayerCount(FlatBufferBuilder builder, long maxPlayerCount) { builder.AddLong(14, maxPlayerCount, 0); } + public static void AddRaidRoomLifeTime(FlatBufferBuilder builder, int raidRoomLifeTime) { builder.AddInt(15, raidRoomLifeTime, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(16, battleDuration, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(17, groundId, 0); } + public static void AddGroundDevName(FlatBufferBuilder builder, StringOffset groundDevNameOffset) { builder.AddOffset(18, groundDevNameOffset.Value, 0); } + public static void AddEnterTimeLine(FlatBufferBuilder builder, StringOffset enterTimeLineOffset) { builder.AddOffset(19, enterTimeLineOffset.Value, 0); } + public static void AddTacticEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEnvironment tacticEnvironment) { builder.AddInt(20, (int)tacticEnvironment, 0); } + public static void AddDefaultClearScore(FlatBufferBuilder builder, long defaultClearScore) { builder.AddLong(21, defaultClearScore, 0); } + public static void AddMaximumScore(FlatBufferBuilder builder, long maximumScore) { builder.AddLong(22, maximumScore, 0); } + public static void AddPerSecondMinusScore(FlatBufferBuilder builder, long perSecondMinusScore) { builder.AddLong(23, perSecondMinusScore, 0); } + public static void AddHPPercentScore(FlatBufferBuilder builder, long hPPercentScore) { builder.AddLong(24, hPPercentScore, 0); } + public static void AddMinimumAcquisitionScore(FlatBufferBuilder builder, long minimumAcquisitionScore) { builder.AddLong(25, minimumAcquisitionScore, 0); } + public static void AddMaximumAcquisitionScore(FlatBufferBuilder builder, long maximumAcquisitionScore) { builder.AddLong(26, maximumAcquisitionScore, 0); } + public static void AddRaidRewardGroupId(FlatBufferBuilder builder, long raidRewardGroupId) { builder.AddLong(27, raidRewardGroupId, 0); } + public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePathOffset) { builder.AddOffset(28, battleReadyTimelinePathOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseStart(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseStartOffset) { builder.AddOffset(29, battleReadyTimelinePhaseStartOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVector(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 CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseEnd(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseEndOffset) { builder.AddOffset(30, battleReadyTimelinePhaseEndOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVector(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 CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(31, victoryTimelinePathOffset.Value, 0); } + public static void AddPhaseChangeTimelinePath(FlatBufferBuilder builder, StringOffset phaseChangeTimelinePathOffset) { builder.AddOffset(32, phaseChangeTimelinePathOffset.Value, 0); } + public static void AddTimeLinePhase(FlatBufferBuilder builder, long timeLinePhase) { builder.AddLong(33, timeLinePhase, 0); } + public static void AddEnterScenarioKey(FlatBufferBuilder builder, uint enterScenarioKey) { builder.AddUint(34, enterScenarioKey, 0); } + public static void AddClearScenarioKey(FlatBufferBuilder builder, uint clearScenarioKey) { builder.AddUint(35, clearScenarioKey, 0); } + public static void AddShowSkillCard(FlatBufferBuilder builder, bool showSkillCard) { builder.AddBool(36, showSkillCard, false); } + public static void AddBossBGInfoKey(FlatBufferBuilder builder, uint bossBGInfoKey) { builder.AddUint(37, bossBGInfoKey, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(38, (int)echelonExtensionType, 0); } + public static Offset EndEliminateRaidStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageExcelVerify +{ + 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 /*UseBossIndex*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*UseBossAIPhaseSync*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*RaidBossGroup*/, false) + && verifier.VerifyField(tablePos, 12 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*RaidEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RaidEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*BossSpinePath*/, false) + && verifier.VerifyString(tablePos, 20 /*PortraitPath*/, false) + && verifier.VerifyString(tablePos, 22 /*BGPath*/, false) + && verifier.VerifyField(tablePos, 24 /*RaidCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*BossCharacterId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 28 /*Difficulty*/, 4 /*SCHALE.Common.FlatData.Difficulty*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*IsOpen*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*MaxPlayerCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*RaidRoomLifeTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 40 /*GroundDevName*/, false) + && verifier.VerifyString(tablePos, 42 /*EnterTimeLine*/, false) + && verifier.VerifyField(tablePos, 44 /*TacticEnvironment*/, 4 /*SCHALE.Common.FlatData.TacticEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*DefaultClearScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*MaximumScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*PerSecondMinusScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*HPPercentScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*MinimumAcquisitionScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*MaximumAcquisitionScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*RaidRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 60 /*BattleReadyTimelinePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 62 /*BattleReadyTimelinePhaseStart*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 64 /*BattleReadyTimelinePhaseEnd*/, 4 /*int*/, false) + && verifier.VerifyString(tablePos, 66 /*VictoryTimelinePath*/, false) + && verifier.VerifyString(tablePos, 68 /*PhaseChangeTimelinePath*/, false) + && verifier.VerifyField(tablePos, 70 /*TimeLinePhase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*EnterScenarioKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 74 /*ClearScenarioKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 76 /*ShowSkillCard*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 78 /*BossBGInfoKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 80 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs new file mode 100644 index 0000000..63f00e8 --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageExcelTable GetRootAsEliminateRaidStageExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidStageExcelTable(_bb, new EliminateRaidStageExcelTable()); } + public static EliminateRaidStageExcelTable GetRootAsEliminateRaidStageExcelTable(ByteBuffer _bb, EliminateRaidStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidStageExcel?)(new SCHALE.Common.FlatData.EliminateRaidStageExcel()).__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 CreateEliminateRaidStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidStageExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidStageExcelTable.EndEliminateRaidStageExcelTable(builder); + } + + public static void StartEliminateRaidStageExcelTable(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 EndEliminateRaidStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs new file mode 100644 index 0000000..ede8f95 --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcel.cs @@ -0,0 +1,101 @@ +// +// 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 EliminateRaidStageLimitedRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageLimitedRewardExcel GetRootAsEliminateRaidStageLimitedRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageLimitedRewardExcel(_bb, new EliminateRaidStageLimitedRewardExcel()); } + public static EliminateRaidStageLimitedRewardExcel GetRootAsEliminateRaidStageLimitedRewardExcel(ByteBuffer _bb, EliminateRaidStageLimitedRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageLimitedRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long LimitedRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType LimitedRewardParcelType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int LimitedRewardParcelTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLimitedRewardParcelTypeBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetLimitedRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetLimitedRewardParcelTypeArray() { int o = __p.__offset(6); 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 LimitedRewardParcelUniqueId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int LimitedRewardParcelUniqueIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLimitedRewardParcelUniqueIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetLimitedRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetLimitedRewardParcelUniqueIdArray() { return __p.__vector_as_array(8); } + public long LimitedRewardAmount(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int LimitedRewardAmountLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLimitedRewardAmountBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetLimitedRewardAmountBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetLimitedRewardAmountArray() { return __p.__vector_as_array(10); } + + public static Offset CreateEliminateRaidStageLimitedRewardExcel(FlatBufferBuilder builder, + long LimitedRewardId = 0, + VectorOffset LimitedRewardParcelTypeOffset = default(VectorOffset), + VectorOffset LimitedRewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset LimitedRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(4); + EliminateRaidStageLimitedRewardExcel.AddLimitedRewardId(builder, LimitedRewardId); + EliminateRaidStageLimitedRewardExcel.AddLimitedRewardAmount(builder, LimitedRewardAmountOffset); + EliminateRaidStageLimitedRewardExcel.AddLimitedRewardParcelUniqueId(builder, LimitedRewardParcelUniqueIdOffset); + EliminateRaidStageLimitedRewardExcel.AddLimitedRewardParcelType(builder, LimitedRewardParcelTypeOffset); + return EliminateRaidStageLimitedRewardExcel.EndEliminateRaidStageLimitedRewardExcel(builder); + } + + public static void StartEliminateRaidStageLimitedRewardExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddLimitedRewardId(FlatBufferBuilder builder, long limitedRewardId) { builder.AddLong(0, limitedRewardId, 0); } + public static void AddLimitedRewardParcelType(FlatBufferBuilder builder, VectorOffset limitedRewardParcelTypeOffset) { builder.AddOffset(1, limitedRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateLimitedRewardParcelTypeVector(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 CreateLimitedRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLimitedRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLimitedRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset limitedRewardParcelUniqueIdOffset) { builder.AddOffset(2, limitedRewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateLimitedRewardParcelUniqueIdVector(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 CreateLimitedRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLimitedRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddLimitedRewardAmount(FlatBufferBuilder builder, VectorOffset limitedRewardAmountOffset) { builder.AddOffset(3, limitedRewardAmountOffset.Value, 0); } + public static VectorOffset CreateLimitedRewardAmountVector(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 CreateLimitedRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitedRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLimitedRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEliminateRaidStageLimitedRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageLimitedRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*LimitedRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*LimitedRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*LimitedRewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*LimitedRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs new file mode 100644 index 0000000..de2812d --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageLimitedRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidStageLimitedRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageLimitedRewardExcelTable GetRootAsEliminateRaidStageLimitedRewardExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidStageLimitedRewardExcelTable(_bb, new EliminateRaidStageLimitedRewardExcelTable()); } + public static EliminateRaidStageLimitedRewardExcelTable GetRootAsEliminateRaidStageLimitedRewardExcelTable(ByteBuffer _bb, EliminateRaidStageLimitedRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageLimitedRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidStageLimitedRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidStageLimitedRewardExcel?)(new SCHALE.Common.FlatData.EliminateRaidStageLimitedRewardExcel()).__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 CreateEliminateRaidStageLimitedRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidStageLimitedRewardExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidStageLimitedRewardExcelTable.EndEliminateRaidStageLimitedRewardExcelTable(builder); + } + + public static void StartEliminateRaidStageLimitedRewardExcelTable(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 EndEliminateRaidStageLimitedRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageLimitedRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidStageLimitedRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs new file mode 100644 index 0000000..7f6b619 --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs @@ -0,0 +1,86 @@ +// +// 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 EliminateRaidStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageRewardExcel GetRootAsEliminateRaidStageRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageRewardExcel(_bb, new EliminateRaidStageRewardExcel()); } + public static EliminateRaidStageRewardExcel GetRootAsEliminateRaidStageRewardExcel(ByteBuffer _bb, EliminateRaidStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetClearStageRewardParcelUniqueNameArray() { return __p.__vector_as_array(14); } + public long ClearStageRewardAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEliminateRaidStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + bool IsClearStageRewardHideInfo = false, + long ClearStageRewardProb = 0, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ClearStageRewardParcelUniqueID = 0, + StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), + long ClearStageRewardAmount = 0) { + builder.StartTable(7); + EliminateRaidStageRewardExcel.AddClearStageRewardAmount(builder, ClearStageRewardAmount); + EliminateRaidStageRewardExcel.AddClearStageRewardParcelUniqueID(builder, ClearStageRewardParcelUniqueID); + EliminateRaidStageRewardExcel.AddClearStageRewardProb(builder, ClearStageRewardProb); + EliminateRaidStageRewardExcel.AddGroupId(builder, GroupId); + EliminateRaidStageRewardExcel.AddClearStageRewardParcelUniqueName(builder, ClearStageRewardParcelUniqueNameOffset); + EliminateRaidStageRewardExcel.AddClearStageRewardParcelType(builder, ClearStageRewardParcelType); + EliminateRaidStageRewardExcel.AddIsClearStageRewardHideInfo(builder, IsClearStageRewardHideInfo); + return EliminateRaidStageRewardExcel.EndEliminateRaidStageRewardExcel(builder); + } + + public static void StartEliminateRaidStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddIsClearStageRewardHideInfo(FlatBufferBuilder builder, bool isClearStageRewardHideInfo) { builder.AddBool(1, isClearStageRewardHideInfo, false); } + public static void AddClearStageRewardProb(FlatBufferBuilder builder, long clearStageRewardProb) { builder.AddLong(2, clearStageRewardProb, 0); } + public static void AddClearStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType clearStageRewardParcelType) { builder.AddInt(3, (int)clearStageRewardParcelType, 0); } + public static void AddClearStageRewardParcelUniqueID(FlatBufferBuilder builder, long clearStageRewardParcelUniqueID) { builder.AddLong(4, clearStageRewardParcelUniqueID, 0); } + public static void AddClearStageRewardParcelUniqueName(FlatBufferBuilder builder, StringOffset clearStageRewardParcelUniqueNameOffset) { builder.AddOffset(5, clearStageRewardParcelUniqueNameOffset.Value, 0); } + public static void AddClearStageRewardAmount(FlatBufferBuilder builder, long clearStageRewardAmount) { builder.AddLong(6, clearStageRewardAmount, 0); } + public static Offset EndEliminateRaidStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsClearStageRewardHideInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*ClearStageRewardProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ClearStageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ClearStageRewardParcelUniqueID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*ClearStageRewardParcelUniqueName*/, false) + && verifier.VerifyField(tablePos, 16 /*ClearStageRewardAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs new file mode 100644 index 0000000..76a3671 --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageRewardExcelTable GetRootAsEliminateRaidStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidStageRewardExcelTable(_bb, new EliminateRaidStageRewardExcelTable()); } + public static EliminateRaidStageRewardExcelTable GetRootAsEliminateRaidStageRewardExcelTable(ByteBuffer _bb, EliminateRaidStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidStageRewardExcel?)(new SCHALE.Common.FlatData.EliminateRaidStageRewardExcel()).__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 CreateEliminateRaidStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidStageRewardExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidStageRewardExcelTable.EndEliminateRaidStageRewardExcelTable(builder); + } + + public static void StartEliminateRaidStageRewardExcelTable(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 EndEliminateRaidStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs new file mode 100644 index 0000000..26900eb --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcel.cs @@ -0,0 +1,112 @@ +// +// 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 EliminateRaidStageSeasonRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageSeasonRewardExcel GetRootAsEliminateRaidStageSeasonRewardExcel(ByteBuffer _bb) { return GetRootAsEliminateRaidStageSeasonRewardExcel(_bb, new EliminateRaidStageSeasonRewardExcel()); } + public static EliminateRaidStageSeasonRewardExcel GetRootAsEliminateRaidStageSeasonRewardExcel(ByteBuffer _bb, EliminateRaidStageSeasonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageSeasonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType SeasonRewardParcelType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int SeasonRewardParcelTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetSeasonRewardParcelTypeArray() { int o = __p.__offset(6); 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 SeasonRewardParcelUniqueId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardParcelUniqueIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetSeasonRewardParcelUniqueIdArray() { return __p.__vector_as_array(8); } + public string SeasonRewardParcelUniqueName(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SeasonRewardParcelUniqueNameLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public long SeasonRewardAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetSeasonRewardAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetSeasonRewardAmountArray() { return __p.__vector_as_array(12); } + + public static Offset CreateEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder, + long SeasonRewardId = 0, + VectorOffset SeasonRewardParcelTypeOffset = default(VectorOffset), + VectorOffset SeasonRewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset SeasonRewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset SeasonRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(5); + EliminateRaidStageSeasonRewardExcel.AddSeasonRewardId(builder, SeasonRewardId); + EliminateRaidStageSeasonRewardExcel.AddSeasonRewardAmount(builder, SeasonRewardAmountOffset); + EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueName(builder, SeasonRewardParcelUniqueNameOffset); + EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueId(builder, SeasonRewardParcelUniqueIdOffset); + EliminateRaidStageSeasonRewardExcel.AddSeasonRewardParcelType(builder, SeasonRewardParcelTypeOffset); + return EliminateRaidStageSeasonRewardExcel.EndEliminateRaidStageSeasonRewardExcel(builder); + } + + public static void StartEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddSeasonRewardId(FlatBufferBuilder builder, long seasonRewardId) { builder.AddLong(0, seasonRewardId, 0); } + public static void AddSeasonRewardParcelType(FlatBufferBuilder builder, VectorOffset seasonRewardParcelTypeOffset) { builder.AddOffset(1, seasonRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelTypeVector(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 CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSeasonRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueIdOffset) { builder.AddOffset(2, seasonRewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVector(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 CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSeasonRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueNameOffset) { builder.AddOffset(3, seasonRewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSeasonRewardAmount(FlatBufferBuilder builder, VectorOffset seasonRewardAmountOffset) { builder.AddOffset(4, seasonRewardAmountOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardAmountVector(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 CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEliminateRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageSeasonRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*SeasonRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*SeasonRewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*SeasonRewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*SeasonRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs new file mode 100644 index 0000000..0a60cbd --- /dev/null +++ b/SCHALE.Common/FlatData/EliminateRaidStageSeasonRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EliminateRaidStageSeasonRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EliminateRaidStageSeasonRewardExcelTable GetRootAsEliminateRaidStageSeasonRewardExcelTable(ByteBuffer _bb) { return GetRootAsEliminateRaidStageSeasonRewardExcelTable(_bb, new EliminateRaidStageSeasonRewardExcelTable()); } + public static EliminateRaidStageSeasonRewardExcelTable GetRootAsEliminateRaidStageSeasonRewardExcelTable(ByteBuffer _bb, EliminateRaidStageSeasonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EliminateRaidStageSeasonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EliminateRaidStageSeasonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EliminateRaidStageSeasonRewardExcel?)(new SCHALE.Common.FlatData.EliminateRaidStageSeasonRewardExcel()).__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 CreateEliminateRaidStageSeasonRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EliminateRaidStageSeasonRewardExcelTable.AddDataList(builder, DataListOffset); + return EliminateRaidStageSeasonRewardExcelTable.EndEliminateRaidStageSeasonRewardExcelTable(builder); + } + + public static void StartEliminateRaidStageSeasonRewardExcelTable(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 EndEliminateRaidStageSeasonRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EliminateRaidStageSeasonRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EliminateRaidStageSeasonRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EmblemCategory.cs b/SCHALE.Common/FlatData/EmblemCategory.cs new file mode 100644 index 0000000..1621d8e --- /dev/null +++ b/SCHALE.Common/FlatData/EmblemCategory.cs @@ -0,0 +1,25 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EmblemCategory : int +{ + None = 0, + Default = 1, + Mission = 2, + GroupStory = 3, + Event = 4, + MainStory = 5, + Favor = 6, + Boss = 7, + Etc = 8, + Etc_Anniversary = 9, + MultiFloorRaid = 10, + Potential = 11, +}; + + +} diff --git a/SCHALE.Common/FlatData/EmblemCheckPassType.cs b/SCHALE.Common/FlatData/EmblemCheckPassType.cs new file mode 100644 index 0000000..79241c7 --- /dev/null +++ b/SCHALE.Common/FlatData/EmblemCheckPassType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EmblemCheckPassType : int +{ + None = 0, + Default = 1, + Favor = 2, + Story = 3, + Potential = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/EmblemDisplayType.cs b/SCHALE.Common/FlatData/EmblemDisplayType.cs new file mode 100644 index 0000000..92da8dd --- /dev/null +++ b/SCHALE.Common/FlatData/EmblemDisplayType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EmblemDisplayType : int +{ + Always = 0, + Time = 1, + Favor = 2, + Potential = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/EmblemExcel.cs b/SCHALE.Common/FlatData/EmblemExcel.cs new file mode 100644 index 0000000..ca3174b --- /dev/null +++ b/SCHALE.Common/FlatData/EmblemExcel.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::Google.FlatBuffers; + +public struct EmblemExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EmblemExcel GetRootAsEmblemExcel(ByteBuffer _bb) { return GetRootAsEmblemExcel(_bb, new EmblemExcel()); } + public static EmblemExcel GetRootAsEmblemExcel(ByteBuffer _bb, EmblemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EmblemExcel __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 SCHALE.Common.FlatData.EmblemCategory Category { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EmblemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCategory.None; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public long DisplayOrder { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint LocalizeCodeId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long UseAtLocalizeId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool EmblemTextVisible { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string IconPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(20); } + public string EmblemIconPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmblemIconPathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetEmblemIconPathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetEmblemIconPathArray() { return __p.__vector_as_array(22); } + public int EmblemIconNumControl { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string EmblemIconBGPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmblemIconBGPathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetEmblemIconBGPathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetEmblemIconBGPathArray() { return __p.__vector_as_array(26); } + public string EmblemBGPathJp { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmblemBGPathJpBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetEmblemBGPathJpBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetEmblemBGPathJpArray() { return __p.__vector_as_array(28); } + public string EmblemBGPathKr { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmblemBGPathKrBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetEmblemBGPathKrBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetEmblemBGPathKrArray() { return __p.__vector_as_array(30); } + public SCHALE.Common.FlatData.EmblemDisplayType DisplayType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.EmblemDisplayType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemDisplayType.Always; } } + public string DisplayStartDate { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDisplayStartDateBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetDisplayStartDateBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetDisplayStartDateArray() { return __p.__vector_as_array(34); } + public string DisplayEndDate { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDisplayEndDateBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetDisplayEndDateBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetDisplayEndDateArray() { return __p.__vector_as_array(36); } + public int DislpayFavorLevel { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.EmblemCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCheckPassType.None; } } + public long EmblemParameter { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CheckPassCount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEmblemExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.EmblemCategory Category = SCHALE.Common.FlatData.EmblemCategory.None, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + long DisplayOrder = 0, + uint LocalizeEtcId = 0, + uint LocalizeCodeId = 0, + long UseAtLocalizeId = 0, + bool EmblemTextVisible = false, + StringOffset IconPathOffset = default(StringOffset), + StringOffset EmblemIconPathOffset = default(StringOffset), + int EmblemIconNumControl = 0, + StringOffset EmblemIconBGPathOffset = default(StringOffset), + StringOffset EmblemBGPathJpOffset = default(StringOffset), + StringOffset EmblemBGPathKrOffset = default(StringOffset), + SCHALE.Common.FlatData.EmblemDisplayType DisplayType = SCHALE.Common.FlatData.EmblemDisplayType.Always, + StringOffset DisplayStartDateOffset = default(StringOffset), + StringOffset DisplayEndDateOffset = default(StringOffset), + int DislpayFavorLevel = 0, + SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None, + long EmblemParameter = 0, + long CheckPassCount = 0) { + builder.StartTable(21); + EmblemExcel.AddCheckPassCount(builder, CheckPassCount); + EmblemExcel.AddEmblemParameter(builder, EmblemParameter); + EmblemExcel.AddUseAtLocalizeId(builder, UseAtLocalizeId); + EmblemExcel.AddDisplayOrder(builder, DisplayOrder); + EmblemExcel.AddId(builder, Id); + EmblemExcel.AddCheckPassType(builder, CheckPassType); + EmblemExcel.AddDislpayFavorLevel(builder, DislpayFavorLevel); + EmblemExcel.AddDisplayEndDate(builder, DisplayEndDateOffset); + EmblemExcel.AddDisplayStartDate(builder, DisplayStartDateOffset); + EmblemExcel.AddDisplayType(builder, DisplayType); + EmblemExcel.AddEmblemBGPathKr(builder, EmblemBGPathKrOffset); + EmblemExcel.AddEmblemBGPathJp(builder, EmblemBGPathJpOffset); + EmblemExcel.AddEmblemIconBGPath(builder, EmblemIconBGPathOffset); + EmblemExcel.AddEmblemIconNumControl(builder, EmblemIconNumControl); + EmblemExcel.AddEmblemIconPath(builder, EmblemIconPathOffset); + EmblemExcel.AddIconPath(builder, IconPathOffset); + EmblemExcel.AddLocalizeCodeId(builder, LocalizeCodeId); + EmblemExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EmblemExcel.AddRarity(builder, Rarity); + EmblemExcel.AddCategory(builder, Category); + EmblemExcel.AddEmblemTextVisible(builder, EmblemTextVisible); + return EmblemExcel.EndEmblemExcel(builder); + } + + public static void StartEmblemExcel(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.EmblemCategory category) { builder.AddInt(1, (int)category, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(3, displayOrder, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(4, localizeEtcId, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, uint localizeCodeId) { builder.AddUint(5, localizeCodeId, 0); } + public static void AddUseAtLocalizeId(FlatBufferBuilder builder, long useAtLocalizeId) { builder.AddLong(6, useAtLocalizeId, 0); } + public static void AddEmblemTextVisible(FlatBufferBuilder builder, bool emblemTextVisible) { builder.AddBool(7, emblemTextVisible, false); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(8, iconPathOffset.Value, 0); } + public static void AddEmblemIconPath(FlatBufferBuilder builder, StringOffset emblemIconPathOffset) { builder.AddOffset(9, emblemIconPathOffset.Value, 0); } + public static void AddEmblemIconNumControl(FlatBufferBuilder builder, int emblemIconNumControl) { builder.AddInt(10, emblemIconNumControl, 0); } + public static void AddEmblemIconBGPath(FlatBufferBuilder builder, StringOffset emblemIconBGPathOffset) { builder.AddOffset(11, emblemIconBGPathOffset.Value, 0); } + public static void AddEmblemBGPathJp(FlatBufferBuilder builder, StringOffset emblemBGPathJpOffset) { builder.AddOffset(12, emblemBGPathJpOffset.Value, 0); } + public static void AddEmblemBGPathKr(FlatBufferBuilder builder, StringOffset emblemBGPathKrOffset) { builder.AddOffset(13, emblemBGPathKrOffset.Value, 0); } + public static void AddDisplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EmblemDisplayType displayType) { builder.AddInt(14, (int)displayType, 0); } + public static void AddDisplayStartDate(FlatBufferBuilder builder, StringOffset displayStartDateOffset) { builder.AddOffset(15, displayStartDateOffset.Value, 0); } + public static void AddDisplayEndDate(FlatBufferBuilder builder, StringOffset displayEndDateOffset) { builder.AddOffset(16, displayEndDateOffset.Value, 0); } + public static void AddDislpayFavorLevel(FlatBufferBuilder builder, int dislpayFavorLevel) { builder.AddInt(17, dislpayFavorLevel, 0); } + public static void AddCheckPassType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EmblemCheckPassType checkPassType) { builder.AddInt(18, (int)checkPassType, 0); } + public static void AddEmblemParameter(FlatBufferBuilder builder, long emblemParameter) { builder.AddLong(19, emblemParameter, 0); } + public static void AddCheckPassCount(FlatBufferBuilder builder, long checkPassCount) { builder.AddLong(20, checkPassCount, 0); } + public static Offset EndEmblemExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EmblemExcelVerify +{ + 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 /*Category*/, 4 /*SCHALE.Common.FlatData.EmblemCategory*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeCodeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*UseAtLocalizeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*EmblemTextVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 20 /*IconPath*/, false) + && verifier.VerifyString(tablePos, 22 /*EmblemIconPath*/, false) + && verifier.VerifyField(tablePos, 24 /*EmblemIconNumControl*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*EmblemIconBGPath*/, false) + && verifier.VerifyString(tablePos, 28 /*EmblemBGPathJp*/, false) + && verifier.VerifyString(tablePos, 30 /*EmblemBGPathKr*/, false) + && verifier.VerifyField(tablePos, 32 /*DisplayType*/, 4 /*SCHALE.Common.FlatData.EmblemDisplayType*/, 4, false) + && verifier.VerifyString(tablePos, 34 /*DisplayStartDate*/, false) + && verifier.VerifyString(tablePos, 36 /*DisplayEndDate*/, false) + && verifier.VerifyField(tablePos, 38 /*DislpayFavorLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*CheckPassType*/, 4 /*SCHALE.Common.FlatData.EmblemCheckPassType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*EmblemParameter*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*CheckPassCount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EmblemExcelTable.cs b/SCHALE.Common/FlatData/EmblemExcelTable.cs new file mode 100644 index 0000000..40c4b85 --- /dev/null +++ b/SCHALE.Common/FlatData/EmblemExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EmblemExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EmblemExcelTable GetRootAsEmblemExcelTable(ByteBuffer _bb) { return GetRootAsEmblemExcelTable(_bb, new EmblemExcelTable()); } + public static EmblemExcelTable GetRootAsEmblemExcelTable(ByteBuffer _bb, EmblemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EmblemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EmblemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EmblemExcel?)(new SCHALE.Common.FlatData.EmblemExcel()).__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 CreateEmblemExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EmblemExcelTable.AddDataList(builder, DataListOffset); + return EmblemExcelTable.EndEmblemExcelTable(builder); + } + + public static void StartEmblemExcelTable(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 EndEmblemExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EmblemExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EmblemExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EmojiEvent.cs b/SCHALE.Common/FlatData/EmojiEvent.cs new file mode 100644 index 0000000..7dc9e95 --- /dev/null +++ b/SCHALE.Common/FlatData/EmojiEvent.cs @@ -0,0 +1,49 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EmojiEvent : int +{ + EnterConver = 0, + EnterShelter = 1, + SignalLeader = 2, + Nice = 3, + Reload = 4, + Blind = 5, + Panic = 6, + Silence = 7, + NearyDead = 8, + Run = 9, + TerrainAdaptionS = 10, + TerrainAdaptionA = 11, + TerrainAdaptionB = 12, + TerrainAdaptionC = 13, + TerrainAdaptionD = 14, + TerrainAdaptionSS = 15, + Dot = 16, + Angry = 17, + Bulb = 18, + Exclaim = 19, + Surprise = 20, + Sad = 21, + Sigh = 22, + Steam = 23, + Upset = 24, + Respond = 25, + Question = 26, + Sweat = 27, + Music = 28, + Chat = 29, + Twinkle = 30, + Zzz = 31, + Tear = 32, + Heart = 33, + Shy = 34, + Think = 35, +}; + + +} diff --git a/SCHALE.Common/FlatData/EmoticonEvent.cs b/SCHALE.Common/FlatData/EmoticonEvent.cs new file mode 100644 index 0000000..639ba8a --- /dev/null +++ b/SCHALE.Common/FlatData/EmoticonEvent.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EmoticonEvent : int +{ + CoverEnter = 0, + ShelterEnter = 1, + Panic = 2, + NearlyDead = 3, + Reload = 4, + Found = 5, + GetBeacon = 6, + Warning = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs b/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs new file mode 100644 index 0000000..1951aad --- /dev/null +++ b/SCHALE.Common/FlatData/EmoticonSpecialExcel.cs @@ -0,0 +1,66 @@ +// +// 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 EmoticonSpecialExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EmoticonSpecialExcel GetRootAsEmoticonSpecialExcel(ByteBuffer _bb) { return GetRootAsEmoticonSpecialExcel(_bb, new EmoticonSpecialExcel()); } + public static EmoticonSpecialExcel GetRootAsEmoticonSpecialExcel(ByteBuffer _bb, EmoticonSpecialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EmoticonSpecialExcel __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 CharacterUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Random { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRandomBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetRandomBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetRandomArray() { return __p.__vector_as_array(8); } + + public static Offset CreateEmoticonSpecialExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long CharacterUniqueId = 0, + StringOffset RandomOffset = default(StringOffset)) { + builder.StartTable(3); + EmoticonSpecialExcel.AddCharacterUniqueId(builder, CharacterUniqueId); + EmoticonSpecialExcel.AddUniqueId(builder, UniqueId); + EmoticonSpecialExcel.AddRandom(builder, RandomOffset); + return EmoticonSpecialExcel.EndEmoticonSpecialExcel(builder); + } + + public static void StartEmoticonSpecialExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddCharacterUniqueId(FlatBufferBuilder builder, long characterUniqueId) { builder.AddLong(1, characterUniqueId, 0); } + public static void AddRandom(FlatBufferBuilder builder, StringOffset randomOffset) { builder.AddOffset(2, randomOffset.Value, 0); } + public static Offset EndEmoticonSpecialExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EmoticonSpecialExcelVerify +{ + 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 /*CharacterUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*Random*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs b/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs new file mode 100644 index 0000000..8668d24 --- /dev/null +++ b/SCHALE.Common/FlatData/EmoticonSpecialExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EmoticonSpecialExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EmoticonSpecialExcelTable GetRootAsEmoticonSpecialExcelTable(ByteBuffer _bb) { return GetRootAsEmoticonSpecialExcelTable(_bb, new EmoticonSpecialExcelTable()); } + public static EmoticonSpecialExcelTable GetRootAsEmoticonSpecialExcelTable(ByteBuffer _bb, EmoticonSpecialExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EmoticonSpecialExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EmoticonSpecialExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EmoticonSpecialExcel?)(new SCHALE.Common.FlatData.EmoticonSpecialExcel()).__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 CreateEmoticonSpecialExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EmoticonSpecialExcelTable.AddDataList(builder, DataListOffset); + return EmoticonSpecialExcelTable.EndEmoticonSpecialExcelTable(builder); + } + + public static void StartEmoticonSpecialExcelTable(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 EndEmoticonSpecialExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EmoticonSpecialExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EmoticonSpecialExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EndCondition.cs b/SCHALE.Common/FlatData/EndCondition.cs new file mode 100644 index 0000000..65f5abd --- /dev/null +++ b/SCHALE.Common/FlatData/EndCondition.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EndCondition : int +{ + Duration = 0, + ReloadCount = 1, + AmmoCount = 2, + AmmoHit = 3, + HitCount = 4, + None = 5, + UseExSkillCount = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/EngageType.cs b/SCHALE.Common/FlatData/EngageType.cs new file mode 100644 index 0000000..de19159 --- /dev/null +++ b/SCHALE.Common/FlatData/EngageType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EngageType : int +{ + SearchAndMove = 0, + HoldPosition = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/EntityMaterialType.cs b/SCHALE.Common/FlatData/EntityMaterialType.cs new file mode 100644 index 0000000..c47e3a0 --- /dev/null +++ b/SCHALE.Common/FlatData/EntityMaterialType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EntityMaterialType : int +{ + Wood = 0, + Stone = 1, + Flesh = 2, + Metal = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/EquipmentCategory.cs b/SCHALE.Common/FlatData/EquipmentCategory.cs new file mode 100644 index 0000000..37b8858 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentCategory.cs @@ -0,0 +1,28 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EquipmentCategory : int +{ + Unable = 0, + Exp = 1, + Bag = 2, + Hat = 3, + Gloves = 4, + Shoes = 5, + Badge = 6, + Hairpin = 7, + Charm = 8, + Watch = 9, + Necklace = 10, + WeaponExpGrowthA = 11, + WeaponExpGrowthB = 12, + WeaponExpGrowthC = 13, + WeaponExpGrowthZ = 14, +}; + + +} diff --git a/SCHALE.Common/FlatData/EquipmentExcel.cs b/SCHALE.Common/FlatData/EquipmentExcel.cs new file mode 100644 index 0000000..c269009 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentExcel.cs @@ -0,0 +1,176 @@ +// +// 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 EquipmentExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentExcel GetRootAsEquipmentExcel(ByteBuffer _bb) { return GetRootAsEquipmentExcel(_bb, new EquipmentExcel()); } + public static EquipmentExcel GetRootAsEquipmentExcel(ByteBuffer _bb, EquipmentExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentExcel __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 SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EquipmentCategory.Unable; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool Wear { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int MaxLevel { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RecipeId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TierInit { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NextTierEquipment { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StackableMax { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Icon { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(24); } + public string ImageName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImageNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetImageNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetImageNameArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(28); 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 CraftQualityTier0 { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier1 { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier2 { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShiftingCraftQuality { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ShopCategoryType ShopCategory(int j) { int o = __p.__offset(38); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ShopCategoryType)0; } + public int ShopCategoryLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetShopCategoryBytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetShopCategoryBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public SCHALE.Common.FlatData.ShopCategoryType[] GetShopCategoryArray() { int o = __p.__offset(38); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ShopCategoryType[] a = new SCHALE.Common.FlatData.ShopCategoryType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(p + i * 4); } return a; } + public long ShortcutTypeId { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEquipmentExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + uint LocalizeEtcId = 0, + bool Wear = false, + int MaxLevel = 0, + int RecipeId = 0, + long TierInit = 0, + long NextTierEquipment = 0, + int StackableMax = 0, + StringOffset IconOffset = default(StringOffset), + StringOffset ImageNameOffset = default(StringOffset), + VectorOffset TagsOffset = default(VectorOffset), + long CraftQualityTier0 = 0, + long CraftQualityTier1 = 0, + long CraftQualityTier2 = 0, + long ShiftingCraftQuality = 0, + VectorOffset ShopCategoryOffset = default(VectorOffset), + long ShortcutTypeId = 0) { + builder.StartTable(19); + EquipmentExcel.AddShortcutTypeId(builder, ShortcutTypeId); + EquipmentExcel.AddShiftingCraftQuality(builder, ShiftingCraftQuality); + EquipmentExcel.AddCraftQualityTier2(builder, CraftQualityTier2); + EquipmentExcel.AddCraftQualityTier1(builder, CraftQualityTier1); + EquipmentExcel.AddCraftQualityTier0(builder, CraftQualityTier0); + EquipmentExcel.AddNextTierEquipment(builder, NextTierEquipment); + EquipmentExcel.AddTierInit(builder, TierInit); + EquipmentExcel.AddId(builder, Id); + EquipmentExcel.AddShopCategory(builder, ShopCategoryOffset); + EquipmentExcel.AddTags(builder, TagsOffset); + EquipmentExcel.AddImageName(builder, ImageNameOffset); + EquipmentExcel.AddIcon(builder, IconOffset); + EquipmentExcel.AddStackableMax(builder, StackableMax); + EquipmentExcel.AddRecipeId(builder, RecipeId); + EquipmentExcel.AddMaxLevel(builder, MaxLevel); + EquipmentExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EquipmentExcel.AddRarity(builder, Rarity); + EquipmentExcel.AddEquipmentCategory(builder, EquipmentCategory); + EquipmentExcel.AddWear(builder, Wear); + return EquipmentExcel.EndEquipmentExcel(builder); + } + + public static void StartEquipmentExcel(FlatBufferBuilder builder) { builder.StartTable(19); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEquipmentCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory equipmentCategory) { builder.AddInt(1, (int)equipmentCategory, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(3, localizeEtcId, 0); } + public static void AddWear(FlatBufferBuilder builder, bool wear) { builder.AddBool(4, wear, false); } + public static void AddMaxLevel(FlatBufferBuilder builder, int maxLevel) { builder.AddInt(5, maxLevel, 0); } + public static void AddRecipeId(FlatBufferBuilder builder, int recipeId) { builder.AddInt(6, recipeId, 0); } + public static void AddTierInit(FlatBufferBuilder builder, long tierInit) { builder.AddLong(7, tierInit, 0); } + public static void AddNextTierEquipment(FlatBufferBuilder builder, long nextTierEquipment) { builder.AddLong(8, nextTierEquipment, 0); } + public static void AddStackableMax(FlatBufferBuilder builder, int stackableMax) { builder.AddInt(9, stackableMax, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(10, iconOffset.Value, 0); } + public static void AddImageName(FlatBufferBuilder builder, StringOffset imageNameOffset) { builder.AddOffset(11, imageNameOffset.Value, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(12, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCraftQualityTier0(FlatBufferBuilder builder, long craftQualityTier0) { builder.AddLong(13, craftQualityTier0, 0); } + public static void AddCraftQualityTier1(FlatBufferBuilder builder, long craftQualityTier1) { builder.AddLong(14, craftQualityTier1, 0); } + public static void AddCraftQualityTier2(FlatBufferBuilder builder, long craftQualityTier2) { builder.AddLong(15, craftQualityTier2, 0); } + public static void AddShiftingCraftQuality(FlatBufferBuilder builder, long shiftingCraftQuality) { builder.AddLong(16, shiftingCraftQuality, 0); } + public static void AddShopCategory(FlatBufferBuilder builder, VectorOffset shopCategoryOffset) { builder.AddOffset(17, shopCategoryOffset.Value, 0); } + public static VectorOffset CreateShopCategoryVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType[] 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 CreateShopCategoryVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopCategoryVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopCategoryVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShopCategoryVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddShortcutTypeId(FlatBufferBuilder builder, long shortcutTypeId) { builder.AddLong(18, shortcutTypeId, 0); } + public static Offset EndEquipmentExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentExcelVerify +{ + 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 /*EquipmentCategory*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Wear*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*MaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*RecipeId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*TierInit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*NextTierEquipment*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*StackableMax*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 24 /*Icon*/, false) + && verifier.VerifyString(tablePos, 26 /*ImageName*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 30 /*CraftQualityTier0*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*CraftQualityTier1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*CraftQualityTier2*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*ShiftingCraftQuality*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*ShopCategory*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, false) + && verifier.VerifyField(tablePos, 40 /*ShortcutTypeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EquipmentExcelTable.cs b/SCHALE.Common/FlatData/EquipmentExcelTable.cs new file mode 100644 index 0000000..3f62d16 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EquipmentExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentExcelTable GetRootAsEquipmentExcelTable(ByteBuffer _bb) { return GetRootAsEquipmentExcelTable(_bb, new EquipmentExcelTable()); } + public static EquipmentExcelTable GetRootAsEquipmentExcelTable(ByteBuffer _bb, EquipmentExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EquipmentExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EquipmentExcel?)(new SCHALE.Common.FlatData.EquipmentExcel()).__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 CreateEquipmentExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EquipmentExcelTable.AddDataList(builder, DataListOffset); + return EquipmentExcelTable.EndEquipmentExcelTable(builder); + } + + public static void StartEquipmentExcelTable(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 EndEquipmentExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EquipmentExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EquipmentLevelExcel.cs b/SCHALE.Common/FlatData/EquipmentLevelExcel.cs new file mode 100644 index 0000000..2069aae --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentLevelExcel.cs @@ -0,0 +1,84 @@ +// +// 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 EquipmentLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentLevelExcel GetRootAsEquipmentLevelExcel(ByteBuffer _bb) { return GetRootAsEquipmentLevelExcel(_bb, new EquipmentLevelExcel()); } + public static EquipmentLevelExcel GetRootAsEquipmentLevelExcel(ByteBuffer _bb, EquipmentLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TierLevelExp(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int TierLevelExpLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTierLevelExpBytes() { return __p.__vector_as_span(6, 8); } +#else + public ArraySegment? GetTierLevelExpBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public long[] GetTierLevelExpArray() { return __p.__vector_as_array(6); } + public long TotalExp(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int TotalExpLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTotalExpBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetTotalExpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetTotalExpArray() { return __p.__vector_as_array(8); } + + public static Offset CreateEquipmentLevelExcel(FlatBufferBuilder builder, + int Level = 0, + VectorOffset TierLevelExpOffset = default(VectorOffset), + VectorOffset TotalExpOffset = default(VectorOffset)) { + builder.StartTable(3); + EquipmentLevelExcel.AddTotalExp(builder, TotalExpOffset); + EquipmentLevelExcel.AddTierLevelExp(builder, TierLevelExpOffset); + EquipmentLevelExcel.AddLevel(builder, Level); + return EquipmentLevelExcel.EndEquipmentLevelExcel(builder); + } + + public static void StartEquipmentLevelExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); } + public static void AddTierLevelExp(FlatBufferBuilder builder, VectorOffset tierLevelExpOffset) { builder.AddOffset(1, tierLevelExpOffset.Value, 0); } + public static VectorOffset CreateTierLevelExpVector(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 CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTierLevelExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTierLevelExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddTotalExp(FlatBufferBuilder builder, VectorOffset totalExpOffset) { builder.AddOffset(2, totalExpOffset.Value, 0); } + public static VectorOffset CreateTotalExpVector(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 CreateTotalExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTotalExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEquipmentLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*TierLevelExp*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*TotalExp*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs b/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs new file mode 100644 index 0000000..5d98323 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EquipmentLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentLevelExcelTable GetRootAsEquipmentLevelExcelTable(ByteBuffer _bb) { return GetRootAsEquipmentLevelExcelTable(_bb, new EquipmentLevelExcelTable()); } + public static EquipmentLevelExcelTable GetRootAsEquipmentLevelExcelTable(ByteBuffer _bb, EquipmentLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EquipmentLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EquipmentLevelExcel?)(new SCHALE.Common.FlatData.EquipmentLevelExcel()).__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 CreateEquipmentLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EquipmentLevelExcelTable.AddDataList(builder, DataListOffset); + return EquipmentLevelExcelTable.EndEquipmentLevelExcelTable(builder); + } + + public static void StartEquipmentLevelExcelTable(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 EndEquipmentLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EquipmentLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EquipmentOptionType.cs b/SCHALE.Common/FlatData/EquipmentOptionType.cs new file mode 100644 index 0000000..7d7aa14 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentOptionType.cs @@ -0,0 +1,102 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EquipmentOptionType : int +{ + None = 0, + MaxHP_Base = 1, + MaxHP_Coefficient = 2, + AttackPower_Base = 3, + AttackPower_Coefficient = 4, + DefensePower_Base = 5, + DefensePower_Coefficient = 6, + HealPower_Base = 7, + HealPower_Coefficient = 8, + CriticalPoint_Base = 9, + CriticalPoint_Coefficient = 10, + CriticalChanceRate_Base = 11, + CriticalDamageRate_Base = 12, + CriticalDamageRate_Coefficient = 13, + SightRange_Base = 14, + SightRange_Coefficient = 15, + MaxBulletCount_Base = 16, + MaxBulletCount_Coefficient = 17, + HPRecoverOnKill_Base = 18, + HPRecoverOnKill_Coefficient = 19, + StreetBattleAdaptation_Base = 20, + OutdoorBattleAdaptation_Base = 21, + IndoorBattleAdaptation_Base = 22, + HealEffectivenessRate_Base = 23, + HealEffectivenessRate_Coefficient = 24, + CriticalChanceResistPoint_Base = 25, + CriticalChanceResistPoint_Coefficient = 26, + CriticalDamageResistRate_Base = 27, + CriticalDamageResistRate_Coefficient = 28, + ExSkillUpgrade = 29, + OppressionPower_Base = 30, + OppressionPower_Coefficient = 31, + OppressionResist_Base = 32, + OppressionResist_Coefficient = 33, + StabilityPoint_Base = 34, + StabilityPoint_Coefficient = 35, + AccuracyPoint_Base = 36, + AccuracyPoint_Coefficient = 37, + DodgePoint_Base = 38, + DodgePoint_Coefficient = 39, + MoveSpeed_Base = 40, + MoveSpeed_Coefficient = 41, + Max = 42, + NormalAttackSpeed_Base = 43, + NormalAttackSpeed_Coefficient = 44, + DefensePenetration_Base = 45, + DefensePenetrationResisit_Base = 46, + ExtendBuffDuration_Base = 47, + ExtendDebuffDuration_Base = 48, + ExtendCrowdControlDuration_Base = 49, + EnhanceExplosionRate_Base = 50, + EnhanceExplosionRate_Coefficient = 51, + EnhancePierceRate_Base = 52, + EnhancePierceRate_Coefficient = 53, + EnhanceMysticRate_Base = 54, + EnhanceMysticRate_Coefficient = 55, + EnhanceLightArmorRate_Base = 56, + EnhanceLightArmorRate_Coefficient = 57, + EnhanceHeavyArmorRate_Base = 58, + EnhanceHeavyArmorRate_Coefficient = 59, + EnhanceUnarmedRate_Base = 60, + EnhanceUnarmedRate_Coefficient = 61, + EnhanceSiegeRate_Base = 62, + EnhanceSiegeRate_Coefficient = 63, + EnhanceNormalRate_Base = 64, + EnhanceNormalRate_Coefficient = 65, + EnhanceStructureRate_Base = 66, + EnhanceStructureRate_Coefficient = 67, + EnhanceNormalArmorRate_Base = 68, + EnhanceNormalArmorRate_Coefficient = 69, + DamageRatio2Increase_Base = 70, + DamageRatio2Increase_Coefficient = 71, + DamageRatio2Decrease_Base = 72, + DamageRatio2Decrease_Coefficient = 73, + DamagedRatio2Increase_Base = 74, + DamagedRatio2Increase_Coefficient = 75, + DamagedRatio2Decrease_Base = 76, + DamagedRatio2Decrease_Coefficient = 77, + EnhanceSonicRate_Base = 78, + EnhanceSonicRate_Coefficient = 79, + EnhanceElasticArmorRate_Base = 80, + EnhanceElasticArmorRate_Coefficient = 81, + IgnoreDelayCount_Base = 82, + WeaponRange_Base = 83, + BlockRate_Base = 84, + BlockRate_Coefficient = 85, + AmmoCost_Base = 86, + RegenCost_Base = 87, + RegenCost_Coefficient = 88, +}; + + +} diff --git a/SCHALE.Common/FlatData/EquipmentStatExcel.cs b/SCHALE.Common/FlatData/EquipmentStatExcel.cs new file mode 100644 index 0000000..b734c40 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentStatExcel.cs @@ -0,0 +1,157 @@ +// +// 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 EquipmentStatExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentStatExcel GetRootAsEquipmentStatExcel(ByteBuffer _bb) { return GetRootAsEquipmentStatExcel(_bb, new EquipmentStatExcel()); } + public static EquipmentStatExcel GetRootAsEquipmentStatExcel(ByteBuffer _bb, EquipmentStatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentStatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long EquipmentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } + public SCHALE.Common.FlatData.EquipmentOptionType StatType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentOptionType)0; } + public int StatTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetStatTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.EquipmentOptionType[] GetStatTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentOptionType[] a = new SCHALE.Common.FlatData.EquipmentOptionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(p + i * 4); } return a; } + public long MinStat(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MinStatLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMinStatBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetMinStatBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetMinStatArray() { return __p.__vector_as_array(10); } + public long MaxStat(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MaxStatLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMaxStatBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetMaxStatBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetMaxStatArray() { return __p.__vector_as_array(12); } + public int LevelUpInsertLimit { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long LevelUpFeedExp { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } } + public long LevelUpFeedCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EquipmentCategory.Unable; } } + public long LevelUpFeedAddExp { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int DefaultMaxLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TranscendenceMax { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string DamageFactorGroupId { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDamageFactorGroupIdBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetDamageFactorGroupIdBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetDamageFactorGroupIdArray() { return __p.__vector_as_array(30); } + + public static Offset CreateEquipmentStatExcel(FlatBufferBuilder builder, + long EquipmentId = 0, + SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard, + VectorOffset StatTypeOffset = default(VectorOffset), + VectorOffset MinStatOffset = default(VectorOffset), + VectorOffset MaxStatOffset = default(VectorOffset), + int LevelUpInsertLimit = 0, + long LevelUpFeedExp = 0, + SCHALE.Common.FlatData.CurrencyTypes LevelUpFeedCostCurrency = SCHALE.Common.FlatData.CurrencyTypes.Invalid, + long LevelUpFeedCostAmount = 0, + SCHALE.Common.FlatData.EquipmentCategory EquipmentCategory = SCHALE.Common.FlatData.EquipmentCategory.Unable, + long LevelUpFeedAddExp = 0, + int DefaultMaxLevel = 0, + int TranscendenceMax = 0, + StringOffset DamageFactorGroupIdOffset = default(StringOffset)) { + builder.StartTable(14); + EquipmentStatExcel.AddLevelUpFeedAddExp(builder, LevelUpFeedAddExp); + EquipmentStatExcel.AddLevelUpFeedCostAmount(builder, LevelUpFeedCostAmount); + EquipmentStatExcel.AddLevelUpFeedExp(builder, LevelUpFeedExp); + EquipmentStatExcel.AddEquipmentId(builder, EquipmentId); + EquipmentStatExcel.AddDamageFactorGroupId(builder, DamageFactorGroupIdOffset); + EquipmentStatExcel.AddTranscendenceMax(builder, TranscendenceMax); + EquipmentStatExcel.AddDefaultMaxLevel(builder, DefaultMaxLevel); + EquipmentStatExcel.AddEquipmentCategory(builder, EquipmentCategory); + EquipmentStatExcel.AddLevelUpFeedCostCurrency(builder, LevelUpFeedCostCurrency); + EquipmentStatExcel.AddLevelUpInsertLimit(builder, LevelUpInsertLimit); + EquipmentStatExcel.AddMaxStat(builder, MaxStatOffset); + EquipmentStatExcel.AddMinStat(builder, MinStatOffset); + EquipmentStatExcel.AddStatType(builder, StatTypeOffset); + EquipmentStatExcel.AddStatLevelUpType(builder, StatLevelUpType); + return EquipmentStatExcel.EndEquipmentStatExcel(builder); + } + + public static void StartEquipmentStatExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddEquipmentId(FlatBufferBuilder builder, long equipmentId) { builder.AddLong(0, equipmentId, 0); } + public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(1, (int)statLevelUpType, 0); } + public static void AddStatType(FlatBufferBuilder builder, VectorOffset statTypeOffset) { builder.AddOffset(2, statTypeOffset.Value, 0); } + public static VectorOffset CreateStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] 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 CreateStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMinStat(FlatBufferBuilder builder, VectorOffset minStatOffset) { builder.AddOffset(3, minStatOffset.Value, 0); } + public static VectorOffset CreateMinStatVector(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 CreateMinStatVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMinStatVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMinStatVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMinStatVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMaxStat(FlatBufferBuilder builder, VectorOffset maxStatOffset) { builder.AddOffset(4, maxStatOffset.Value, 0); } + public static VectorOffset CreateMaxStatVector(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 CreateMaxStatVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxStatVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMaxStatVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMaxStatVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddLevelUpInsertLimit(FlatBufferBuilder builder, int levelUpInsertLimit) { builder.AddInt(5, levelUpInsertLimit, 0); } + public static void AddLevelUpFeedExp(FlatBufferBuilder builder, long levelUpFeedExp) { builder.AddLong(6, levelUpFeedExp, 0); } + public static void AddLevelUpFeedCostCurrency(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes levelUpFeedCostCurrency) { builder.AddInt(7, (int)levelUpFeedCostCurrency, 0); } + public static void AddLevelUpFeedCostAmount(FlatBufferBuilder builder, long levelUpFeedCostAmount) { builder.AddLong(8, levelUpFeedCostAmount, 0); } + public static void AddEquipmentCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory equipmentCategory) { builder.AddInt(9, (int)equipmentCategory, 0); } + public static void AddLevelUpFeedAddExp(FlatBufferBuilder builder, long levelUpFeedAddExp) { builder.AddLong(10, levelUpFeedAddExp, 0); } + public static void AddDefaultMaxLevel(FlatBufferBuilder builder, int defaultMaxLevel) { builder.AddInt(11, defaultMaxLevel, 0); } + public static void AddTranscendenceMax(FlatBufferBuilder builder, int transcendenceMax) { builder.AddInt(12, transcendenceMax, 0); } + public static void AddDamageFactorGroupId(FlatBufferBuilder builder, StringOffset damageFactorGroupIdOffset) { builder.AddOffset(13, damageFactorGroupIdOffset.Value, 0); } + public static Offset EndEquipmentStatExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentStatExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EquipmentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*StatType*/, 4 /*SCHALE.Common.FlatData.EquipmentOptionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*MinStat*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*MaxStat*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*LevelUpInsertLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*LevelUpFeedExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*LevelUpFeedCostCurrency*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*LevelUpFeedCostAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*EquipmentCategory*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*LevelUpFeedAddExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*DefaultMaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*TranscendenceMax*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 30 /*DamageFactorGroupId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs b/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs new file mode 100644 index 0000000..c769cf7 --- /dev/null +++ b/SCHALE.Common/FlatData/EquipmentStatExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EquipmentStatExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EquipmentStatExcelTable GetRootAsEquipmentStatExcelTable(ByteBuffer _bb) { return GetRootAsEquipmentStatExcelTable(_bb, new EquipmentStatExcelTable()); } + public static EquipmentStatExcelTable GetRootAsEquipmentStatExcelTable(ByteBuffer _bb, EquipmentStatExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EquipmentStatExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EquipmentStatExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EquipmentStatExcel?)(new SCHALE.Common.FlatData.EquipmentStatExcel()).__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 CreateEquipmentStatExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EquipmentStatExcelTable.AddDataList(builder, DataListOffset); + return EquipmentStatExcelTable.EndEquipmentStatExcelTable(builder); + } + + public static void StartEquipmentStatExcelTable(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 EndEquipmentStatExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EquipmentStatExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EquipmentStatExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EtcSchool.cs b/SCHALE.Common/FlatData/EtcSchool.cs new file mode 100644 index 0000000..2f6a247 --- /dev/null +++ b/SCHALE.Common/FlatData/EtcSchool.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EtcSchool : int +{ + None = 0, + ETC = 1, + Tokiwadai = 2, + Sakugawa = 3, + Max = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventChangeType.cs b/SCHALE.Common/FlatData/EventChangeType.cs new file mode 100644 index 0000000..ed12ab9 --- /dev/null +++ b/SCHALE.Common/FlatData/EventChangeType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventChangeType : int +{ + MainSub = 0, + SubMain = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventCollectionUnlockType.cs b/SCHALE.Common/FlatData/EventCollectionUnlockType.cs new file mode 100644 index 0000000..3640b3b --- /dev/null +++ b/SCHALE.Common/FlatData/EventCollectionUnlockType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventCollectionUnlockType : int +{ + None = 0, + ClearSpecificEventStage = 1, + ClearSpecificEventScenario = 2, + ClearSpecificEventMission = 3, + PurchaseSpecificItemCount = 4, + SpecificEventLocationRank = 5, + DiceRaceConsumeDiceCount = 6, + MinigameTBGThemaClear = 7, + MinigameEnter = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs new file mode 100644 index 0000000..c134480 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcel.cs @@ -0,0 +1,70 @@ +// +// 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 EventContentArchiveBannerOffsetExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentArchiveBannerOffsetExcel GetRootAsEventContentArchiveBannerOffsetExcel(ByteBuffer _bb) { return GetRootAsEventContentArchiveBannerOffsetExcel(_bb, new EventContentArchiveBannerOffsetExcel()); } + public static EventContentArchiveBannerOffsetExcel GetRootAsEventContentArchiveBannerOffsetExcel(ByteBuffer _bb, EventContentArchiveBannerOffsetExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentArchiveBannerOffsetExcel __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 float OffsetX { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float OffsetY { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ScaleX { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float ScaleY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateEventContentArchiveBannerOffsetExcel(FlatBufferBuilder builder, + long EventContentId = 0, + float OffsetX = 0.0f, + float OffsetY = 0.0f, + float ScaleX = 0.0f, + float ScaleY = 0.0f) { + builder.StartTable(5); + EventContentArchiveBannerOffsetExcel.AddEventContentId(builder, EventContentId); + EventContentArchiveBannerOffsetExcel.AddScaleY(builder, ScaleY); + EventContentArchiveBannerOffsetExcel.AddScaleX(builder, ScaleX); + EventContentArchiveBannerOffsetExcel.AddOffsetY(builder, OffsetY); + EventContentArchiveBannerOffsetExcel.AddOffsetX(builder, OffsetX); + return EventContentArchiveBannerOffsetExcel.EndEventContentArchiveBannerOffsetExcel(builder); + } + + public static void StartEventContentArchiveBannerOffsetExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddOffsetX(FlatBufferBuilder builder, float offsetX) { builder.AddFloat(1, offsetX, 0.0f); } + public static void AddOffsetY(FlatBufferBuilder builder, float offsetY) { builder.AddFloat(2, offsetY, 0.0f); } + public static void AddScaleX(FlatBufferBuilder builder, float scaleX) { builder.AddFloat(3, scaleX, 0.0f); } + public static void AddScaleY(FlatBufferBuilder builder, float scaleY) { builder.AddFloat(4, scaleY, 0.0f); } + public static Offset EndEventContentArchiveBannerOffsetExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentArchiveBannerOffsetExcelVerify +{ + 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 /*OffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*OffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ScaleX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ScaleY*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs new file mode 100644 index 0000000..8485e7d --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentArchiveBannerOffsetExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentArchiveBannerOffsetExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentArchiveBannerOffsetExcelTable GetRootAsEventContentArchiveBannerOffsetExcelTable(ByteBuffer _bb) { return GetRootAsEventContentArchiveBannerOffsetExcelTable(_bb, new EventContentArchiveBannerOffsetExcelTable()); } + public static EventContentArchiveBannerOffsetExcelTable GetRootAsEventContentArchiveBannerOffsetExcelTable(ByteBuffer _bb, EventContentArchiveBannerOffsetExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentArchiveBannerOffsetExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentArchiveBannerOffsetExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentArchiveBannerOffsetExcel?)(new SCHALE.Common.FlatData.EventContentArchiveBannerOffsetExcel()).__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 CreateEventContentArchiveBannerOffsetExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentArchiveBannerOffsetExcelTable.AddDataList(builder, DataListOffset); + return EventContentArchiveBannerOffsetExcelTable.EndEventContentArchiveBannerOffsetExcelTable(builder); + } + + public static void StartEventContentArchiveBannerOffsetExcelTable(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 EndEventContentArchiveBannerOffsetExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentArchiveBannerOffsetExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentArchiveBannerOffsetExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs new file mode 100644 index 0000000..45d4224 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcel.cs @@ -0,0 +1,65 @@ +// +// 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 EventContentBoxGachaElementExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaElementExcel GetRootAsEventContentBoxGachaElementExcel(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaElementExcel(_bb, new EventContentBoxGachaElementExcel()); } + public static EventContentBoxGachaElementExcel GetRootAsEventContentBoxGachaElementExcel(ByteBuffer _bb, EventContentBoxGachaElementExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaElementExcel __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 Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Round { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentBoxGachaElementExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + long Round = 0, + long GroupId = 0) { + builder.StartTable(4); + EventContentBoxGachaElementExcel.AddGroupId(builder, GroupId); + EventContentBoxGachaElementExcel.AddRound(builder, Round); + EventContentBoxGachaElementExcel.AddId(builder, Id); + EventContentBoxGachaElementExcel.AddEventContentId(builder, EventContentId); + return EventContentBoxGachaElementExcel.EndEventContentBoxGachaElementExcel(builder); + } + + public static void StartEventContentBoxGachaElementExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddRound(FlatBufferBuilder builder, long round) { builder.AddLong(2, round, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(3, groupId, 0); } + public static Offset EndEventContentBoxGachaElementExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaElementExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Round*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs new file mode 100644 index 0000000..a88d864 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaElementExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentBoxGachaElementExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaElementExcelTable GetRootAsEventContentBoxGachaElementExcelTable(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaElementExcelTable(_bb, new EventContentBoxGachaElementExcelTable()); } + public static EventContentBoxGachaElementExcelTable GetRootAsEventContentBoxGachaElementExcelTable(ByteBuffer _bb, EventContentBoxGachaElementExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaElementExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentBoxGachaElementExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentBoxGachaElementExcel?)(new SCHALE.Common.FlatData.EventContentBoxGachaElementExcel()).__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 CreateEventContentBoxGachaElementExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentBoxGachaElementExcelTable.AddDataList(builder, DataListOffset); + return EventContentBoxGachaElementExcelTable.EndEventContentBoxGachaElementExcelTable(builder); + } + + public static void StartEventContentBoxGachaElementExcelTable(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 EndEventContentBoxGachaElementExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaElementExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentBoxGachaElementExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs new file mode 100644 index 0000000..40440a3 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcel.cs @@ -0,0 +1,65 @@ +// +// 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 EventContentBoxGachaManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaManageExcel GetRootAsEventContentBoxGachaManageExcel(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaManageExcel(_bb, new EventContentBoxGachaManageExcel()); } + public static EventContentBoxGachaManageExcel GetRootAsEventContentBoxGachaManageExcel(ByteBuffer _bb, EventContentBoxGachaManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaManageExcel __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 Round { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GoodsId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsLoop { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateEventContentBoxGachaManageExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Round = 0, + long GoodsId = 0, + bool IsLoop = false) { + builder.StartTable(4); + EventContentBoxGachaManageExcel.AddGoodsId(builder, GoodsId); + EventContentBoxGachaManageExcel.AddRound(builder, Round); + EventContentBoxGachaManageExcel.AddEventContentId(builder, EventContentId); + EventContentBoxGachaManageExcel.AddIsLoop(builder, IsLoop); + return EventContentBoxGachaManageExcel.EndEventContentBoxGachaManageExcel(builder); + } + + public static void StartEventContentBoxGachaManageExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddRound(FlatBufferBuilder builder, long round) { builder.AddLong(1, round, 0); } + public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(2, goodsId, 0); } + public static void AddIsLoop(FlatBufferBuilder builder, bool isLoop) { builder.AddBool(3, isLoop, false); } + public static Offset EndEventContentBoxGachaManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaManageExcelVerify +{ + 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 /*Round*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*GoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*IsLoop*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs new file mode 100644 index 0000000..4d0807e --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentBoxGachaManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaManageExcelTable GetRootAsEventContentBoxGachaManageExcelTable(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaManageExcelTable(_bb, new EventContentBoxGachaManageExcelTable()); } + public static EventContentBoxGachaManageExcelTable GetRootAsEventContentBoxGachaManageExcelTable(ByteBuffer _bb, EventContentBoxGachaManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentBoxGachaManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentBoxGachaManageExcel?)(new SCHALE.Common.FlatData.EventContentBoxGachaManageExcel()).__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 CreateEventContentBoxGachaManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentBoxGachaManageExcelTable.AddDataList(builder, DataListOffset); + return EventContentBoxGachaManageExcelTable.EndEventContentBoxGachaManageExcelTable(builder); + } + + public static void StartEventContentBoxGachaManageExcelTable(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 EndEventContentBoxGachaManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentBoxGachaManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs new file mode 100644 index 0000000..641d6f4 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcel.cs @@ -0,0 +1,97 @@ +// +// 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 EventContentBoxGachaShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaShopExcel GetRootAsEventContentBoxGachaShopExcel(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaShopExcel(_bb, new EventContentBoxGachaShopExcel()); } + public static EventContentBoxGachaShopExcel GetRootAsEventContentBoxGachaShopExcel(ByteBuffer _bb, EventContentBoxGachaShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaShopExcel __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 GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupElementAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Round { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsLegacy { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsPrize { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GoodsId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GoodsIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGoodsIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetGoodsIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetGoodsIdArray() { return __p.__vector_as_array(16); } + public long DisplayOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentBoxGachaShopExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long GroupId = 0, + long GroupElementAmount = 0, + long Round = 0, + bool IsLegacy = false, + bool IsPrize = false, + VectorOffset GoodsIdOffset = default(VectorOffset), + long DisplayOrder = 0) { + builder.StartTable(8); + EventContentBoxGachaShopExcel.AddDisplayOrder(builder, DisplayOrder); + EventContentBoxGachaShopExcel.AddRound(builder, Round); + EventContentBoxGachaShopExcel.AddGroupElementAmount(builder, GroupElementAmount); + EventContentBoxGachaShopExcel.AddGroupId(builder, GroupId); + EventContentBoxGachaShopExcel.AddEventContentId(builder, EventContentId); + EventContentBoxGachaShopExcel.AddGoodsId(builder, GoodsIdOffset); + EventContentBoxGachaShopExcel.AddIsPrize(builder, IsPrize); + EventContentBoxGachaShopExcel.AddIsLegacy(builder, IsLegacy); + return EventContentBoxGachaShopExcel.EndEventContentBoxGachaShopExcel(builder); + } + + public static void StartEventContentBoxGachaShopExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(1, groupId, 0); } + public static void AddGroupElementAmount(FlatBufferBuilder builder, long groupElementAmount) { builder.AddLong(2, groupElementAmount, 0); } + public static void AddRound(FlatBufferBuilder builder, long round) { builder.AddLong(3, round, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(4, isLegacy, false); } + public static void AddIsPrize(FlatBufferBuilder builder, bool isPrize) { builder.AddBool(5, isPrize, false); } + public static void AddGoodsId(FlatBufferBuilder builder, VectorOffset goodsIdOffset) { builder.AddOffset(6, goodsIdOffset.Value, 0); } + public static VectorOffset CreateGoodsIdVector(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 CreateGoodsIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGoodsIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(7, displayOrder, 0); } + public static Offset EndEventContentBoxGachaShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaShopExcelVerify +{ + 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 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*GroupElementAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Round*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*IsPrize*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*GoodsId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs new file mode 100644 index 0000000..dd0bb8f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBoxGachaShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentBoxGachaShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBoxGachaShopExcelTable GetRootAsEventContentBoxGachaShopExcelTable(ByteBuffer _bb) { return GetRootAsEventContentBoxGachaShopExcelTable(_bb, new EventContentBoxGachaShopExcelTable()); } + public static EventContentBoxGachaShopExcelTable GetRootAsEventContentBoxGachaShopExcelTable(ByteBuffer _bb, EventContentBoxGachaShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBoxGachaShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentBoxGachaShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentBoxGachaShopExcel?)(new SCHALE.Common.FlatData.EventContentBoxGachaShopExcel()).__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 CreateEventContentBoxGachaShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentBoxGachaShopExcelTable.AddDataList(builder, DataListOffset); + return EventContentBoxGachaShopExcelTable.EndEventContentBoxGachaShopExcelTable(builder); + } + + public static void StartEventContentBoxGachaShopExcelTable(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 EndEventContentBoxGachaShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBoxGachaShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentBoxGachaShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBuffExcel.cs b/SCHALE.Common/FlatData/EventContentBuffExcel.cs new file mode 100644 index 0000000..a924c0e --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBuffExcel.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::Google.FlatBuffers; + +public struct EventContentBuffExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBuffExcel GetRootAsEventContentBuffExcel(ByteBuffer _bb) { return GetRootAsEventContentBuffExcel(_bb, new EventContentBuffExcel()); } + public static EventContentBuffExcel GetRootAsEventContentBuffExcel(ByteBuffer _bb, EventContentBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long EventContentBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsBuff { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.Tag CharacterTag { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Tag.A; } } + public SCHALE.Common.FlatData.EventContentBuffFindRule EnumType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.EventContentBuffFindRule)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentBuffFindRule.None; } } + public string EnumTypeValue(int j) { int o = __p.__offset(12); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int EnumTypeValueLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + public string SkillGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillGroupIdBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array(14); } + public string IconPath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(16); } + public string SpriteName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpriteNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetSpriteNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetSpriteNameArray() { return __p.__vector_as_array(18); } + public string BuffDescriptionLocalizeCodeId { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffDescriptionLocalizeCodeIdBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetBuffDescriptionLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetBuffDescriptionLocalizeCodeIdArray() { return __p.__vector_as_array(20); } + + public static Offset CreateEventContentBuffExcel(FlatBufferBuilder builder, + long EventContentBuffId = 0, + bool IsBuff = false, + SCHALE.Common.FlatData.Tag CharacterTag = SCHALE.Common.FlatData.Tag.A, + SCHALE.Common.FlatData.EventContentBuffFindRule EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None, + VectorOffset EnumTypeValueOffset = default(VectorOffset), + StringOffset SkillGroupIdOffset = default(StringOffset), + StringOffset IconPathOffset = default(StringOffset), + StringOffset SpriteNameOffset = default(StringOffset), + StringOffset BuffDescriptionLocalizeCodeIdOffset = default(StringOffset)) { + builder.StartTable(9); + EventContentBuffExcel.AddEventContentBuffId(builder, EventContentBuffId); + EventContentBuffExcel.AddBuffDescriptionLocalizeCodeId(builder, BuffDescriptionLocalizeCodeIdOffset); + EventContentBuffExcel.AddSpriteName(builder, SpriteNameOffset); + EventContentBuffExcel.AddIconPath(builder, IconPathOffset); + EventContentBuffExcel.AddSkillGroupId(builder, SkillGroupIdOffset); + EventContentBuffExcel.AddEnumTypeValue(builder, EnumTypeValueOffset); + EventContentBuffExcel.AddEnumType(builder, EnumType); + EventContentBuffExcel.AddCharacterTag(builder, CharacterTag); + EventContentBuffExcel.AddIsBuff(builder, IsBuff); + return EventContentBuffExcel.EndEventContentBuffExcel(builder); + } + + public static void StartEventContentBuffExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddEventContentBuffId(FlatBufferBuilder builder, long eventContentBuffId) { builder.AddLong(0, eventContentBuffId, 0); } + public static void AddIsBuff(FlatBufferBuilder builder, bool isBuff) { builder.AddBool(1, isBuff, false); } + public static void AddCharacterTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag characterTag) { builder.AddInt(2, (int)characterTag, 0); } + public static void AddEnumType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentBuffFindRule enumType) { builder.AddInt(3, (int)enumType, 0); } + public static void AddEnumTypeValue(FlatBufferBuilder builder, VectorOffset enumTypeValueOffset) { builder.AddOffset(4, enumTypeValueOffset.Value, 0); } + public static VectorOffset CreateEnumTypeValueVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateEnumTypeValueVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnumTypeValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnumTypeValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnumTypeValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(5, skillGroupIdOffset.Value, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(6, iconPathOffset.Value, 0); } + public static void AddSpriteName(FlatBufferBuilder builder, StringOffset spriteNameOffset) { builder.AddOffset(7, spriteNameOffset.Value, 0); } + public static void AddBuffDescriptionLocalizeCodeId(FlatBufferBuilder builder, StringOffset buffDescriptionLocalizeCodeIdOffset) { builder.AddOffset(8, buffDescriptionLocalizeCodeIdOffset.Value, 0); } + public static Offset EndEventContentBuffExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBuffExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentBuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsBuff*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*CharacterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*EnumType*/, 4 /*SCHALE.Common.FlatData.EventContentBuffFindRule*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 12 /*EnumTypeValue*/, false) + && verifier.VerifyString(tablePos, 14 /*SkillGroupId*/, false) + && verifier.VerifyString(tablePos, 16 /*IconPath*/, false) + && verifier.VerifyString(tablePos, 18 /*SpriteName*/, false) + && verifier.VerifyString(tablePos, 20 /*BuffDescriptionLocalizeCodeId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs b/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs new file mode 100644 index 0000000..50c7e7e --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBuffExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentBuffExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBuffExcelTable GetRootAsEventContentBuffExcelTable(ByteBuffer _bb) { return GetRootAsEventContentBuffExcelTable(_bb, new EventContentBuffExcelTable()); } + public static EventContentBuffExcelTable GetRootAsEventContentBuffExcelTable(ByteBuffer _bb, EventContentBuffExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBuffExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentBuffExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentBuffExcel?)(new SCHALE.Common.FlatData.EventContentBuffExcel()).__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 CreateEventContentBuffExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentBuffExcelTable.AddDataList(builder, DataListOffset); + return EventContentBuffExcelTable.EndEventContentBuffExcelTable(builder); + } + + public static void StartEventContentBuffExcelTable(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 EndEventContentBuffExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBuffExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentBuffExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBuffFindRule.cs b/SCHALE.Common/FlatData/EventContentBuffFindRule.cs new file mode 100644 index 0000000..6332cff --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBuffFindRule.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentBuffFindRule : int +{ + None = 0, + WeaponType = 1, + SquadType = 2, + StreetBattleAdaptation = 3, + OutdoorBattleAdaptation = 4, + IndoorBattleAdaptation = 5, + BulletType = 6, + School = 7, + TacticRange = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs b/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs new file mode 100644 index 0000000..1090601 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBuffGroupExcel.cs @@ -0,0 +1,157 @@ +// +// 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 EventContentBuffGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBuffGroupExcel GetRootAsEventContentBuffGroupExcel(ByteBuffer _bb) { return GetRootAsEventContentBuffGroupExcel(_bb, new EventContentBuffGroupExcel()); } + public static EventContentBuffGroupExcel GetRootAsEventContentBuffGroupExcel(ByteBuffer _bb, EventContentBuffGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBuffGroupExcel __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 BuffContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BuffGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BuffGroupNameLocalizeCodeId { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffGroupNameLocalizeCodeIdBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetBuffGroupNameLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetBuffGroupNameLocalizeCodeIdArray() { return __p.__vector_as_array(10); } + public long EventContentBuffId1 { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BuffNameLocalizeCodeId1 { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffNameLocalizeCodeId1Bytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetBuffNameLocalizeCodeId1Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetBuffNameLocalizeCodeId1Array() { return __p.__vector_as_array(14); } + public string BuffDescriptionIconPath1 { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffDescriptionIconPath1Bytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetBuffDescriptionIconPath1Bytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetBuffDescriptionIconPath1Array() { return __p.__vector_as_array(16); } + public long EventContentBuffId2 { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BuffNameLocalizeCodeId2 { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffNameLocalizeCodeId2Bytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetBuffNameLocalizeCodeId2Bytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetBuffNameLocalizeCodeId2Array() { return __p.__vector_as_array(20); } + public string BuffDescriptionIconPath2 { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffDescriptionIconPath2Bytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetBuffDescriptionIconPath2Bytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetBuffDescriptionIconPath2Array() { return __p.__vector_as_array(22); } + public long EventContentDebuffId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DebuffNameLocalizeCodeId { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDebuffNameLocalizeCodeIdBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetDebuffNameLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetDebuffNameLocalizeCodeIdArray() { return __p.__vector_as_array(26); } + public string DeBuffDescriptionIconPath { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDeBuffDescriptionIconPathBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetDeBuffDescriptionIconPathBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetDeBuffDescriptionIconPathArray() { return __p.__vector_as_array(28); } + public long BuffGroupProb { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentBuffGroupExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long BuffContentId = 0, + long BuffGroupId = 0, + StringOffset BuffGroupNameLocalizeCodeIdOffset = default(StringOffset), + long EventContentBuffId1 = 0, + StringOffset BuffNameLocalizeCodeId1Offset = default(StringOffset), + StringOffset BuffDescriptionIconPath1Offset = default(StringOffset), + long EventContentBuffId2 = 0, + StringOffset BuffNameLocalizeCodeId2Offset = default(StringOffset), + StringOffset BuffDescriptionIconPath2Offset = default(StringOffset), + long EventContentDebuffId = 0, + StringOffset DebuffNameLocalizeCodeIdOffset = default(StringOffset), + StringOffset DeBuffDescriptionIconPathOffset = default(StringOffset), + long BuffGroupProb = 0) { + builder.StartTable(14); + EventContentBuffGroupExcel.AddBuffGroupProb(builder, BuffGroupProb); + EventContentBuffGroupExcel.AddEventContentDebuffId(builder, EventContentDebuffId); + EventContentBuffGroupExcel.AddEventContentBuffId2(builder, EventContentBuffId2); + EventContentBuffGroupExcel.AddEventContentBuffId1(builder, EventContentBuffId1); + EventContentBuffGroupExcel.AddBuffGroupId(builder, BuffGroupId); + EventContentBuffGroupExcel.AddBuffContentId(builder, BuffContentId); + EventContentBuffGroupExcel.AddEventContentId(builder, EventContentId); + EventContentBuffGroupExcel.AddDeBuffDescriptionIconPath(builder, DeBuffDescriptionIconPathOffset); + EventContentBuffGroupExcel.AddDebuffNameLocalizeCodeId(builder, DebuffNameLocalizeCodeIdOffset); + EventContentBuffGroupExcel.AddBuffDescriptionIconPath2(builder, BuffDescriptionIconPath2Offset); + EventContentBuffGroupExcel.AddBuffNameLocalizeCodeId2(builder, BuffNameLocalizeCodeId2Offset); + EventContentBuffGroupExcel.AddBuffDescriptionIconPath1(builder, BuffDescriptionIconPath1Offset); + EventContentBuffGroupExcel.AddBuffNameLocalizeCodeId1(builder, BuffNameLocalizeCodeId1Offset); + EventContentBuffGroupExcel.AddBuffGroupNameLocalizeCodeId(builder, BuffGroupNameLocalizeCodeIdOffset); + return EventContentBuffGroupExcel.EndEventContentBuffGroupExcel(builder); + } + + public static void StartEventContentBuffGroupExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddBuffContentId(FlatBufferBuilder builder, long buffContentId) { builder.AddLong(1, buffContentId, 0); } + public static void AddBuffGroupId(FlatBufferBuilder builder, long buffGroupId) { builder.AddLong(2, buffGroupId, 0); } + public static void AddBuffGroupNameLocalizeCodeId(FlatBufferBuilder builder, StringOffset buffGroupNameLocalizeCodeIdOffset) { builder.AddOffset(3, buffGroupNameLocalizeCodeIdOffset.Value, 0); } + public static void AddEventContentBuffId1(FlatBufferBuilder builder, long eventContentBuffId1) { builder.AddLong(4, eventContentBuffId1, 0); } + public static void AddBuffNameLocalizeCodeId1(FlatBufferBuilder builder, StringOffset buffNameLocalizeCodeId1Offset) { builder.AddOffset(5, buffNameLocalizeCodeId1Offset.Value, 0); } + public static void AddBuffDescriptionIconPath1(FlatBufferBuilder builder, StringOffset buffDescriptionIconPath1Offset) { builder.AddOffset(6, buffDescriptionIconPath1Offset.Value, 0); } + public static void AddEventContentBuffId2(FlatBufferBuilder builder, long eventContentBuffId2) { builder.AddLong(7, eventContentBuffId2, 0); } + public static void AddBuffNameLocalizeCodeId2(FlatBufferBuilder builder, StringOffset buffNameLocalizeCodeId2Offset) { builder.AddOffset(8, buffNameLocalizeCodeId2Offset.Value, 0); } + public static void AddBuffDescriptionIconPath2(FlatBufferBuilder builder, StringOffset buffDescriptionIconPath2Offset) { builder.AddOffset(9, buffDescriptionIconPath2Offset.Value, 0); } + public static void AddEventContentDebuffId(FlatBufferBuilder builder, long eventContentDebuffId) { builder.AddLong(10, eventContentDebuffId, 0); } + public static void AddDebuffNameLocalizeCodeId(FlatBufferBuilder builder, StringOffset debuffNameLocalizeCodeIdOffset) { builder.AddOffset(11, debuffNameLocalizeCodeIdOffset.Value, 0); } + public static void AddDeBuffDescriptionIconPath(FlatBufferBuilder builder, StringOffset deBuffDescriptionIconPathOffset) { builder.AddOffset(12, deBuffDescriptionIconPathOffset.Value, 0); } + public static void AddBuffGroupProb(FlatBufferBuilder builder, long buffGroupProb) { builder.AddLong(13, buffGroupProb, 0); } + public static Offset EndEventContentBuffGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBuffGroupExcelVerify +{ + 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 /*BuffContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*BuffGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*BuffGroupNameLocalizeCodeId*/, false) + && verifier.VerifyField(tablePos, 12 /*EventContentBuffId1*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*BuffNameLocalizeCodeId1*/, false) + && verifier.VerifyString(tablePos, 16 /*BuffDescriptionIconPath1*/, false) + && verifier.VerifyField(tablePos, 18 /*EventContentBuffId2*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*BuffNameLocalizeCodeId2*/, false) + && verifier.VerifyString(tablePos, 22 /*BuffDescriptionIconPath2*/, false) + && verifier.VerifyField(tablePos, 24 /*EventContentDebuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 26 /*DebuffNameLocalizeCodeId*/, false) + && verifier.VerifyString(tablePos, 28 /*DeBuffDescriptionIconPath*/, false) + && verifier.VerifyField(tablePos, 30 /*BuffGroupProb*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs b/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs new file mode 100644 index 0000000..7311b0c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentBuffGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentBuffGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentBuffGroupExcelTable GetRootAsEventContentBuffGroupExcelTable(ByteBuffer _bb) { return GetRootAsEventContentBuffGroupExcelTable(_bb, new EventContentBuffGroupExcelTable()); } + public static EventContentBuffGroupExcelTable GetRootAsEventContentBuffGroupExcelTable(ByteBuffer _bb, EventContentBuffGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentBuffGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentBuffGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentBuffGroupExcel?)(new SCHALE.Common.FlatData.EventContentBuffGroupExcel()).__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 CreateEventContentBuffGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentBuffGroupExcelTable.AddDataList(builder, DataListOffset); + return EventContentBuffGroupExcelTable.EndEventContentBuffGroupExcelTable(builder); + } + + public static void StartEventContentBuffGroupExcelTable(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 EndEventContentBuffGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentBuffGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentBuffGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCardExcel.cs b/SCHALE.Common/FlatData/EventContentCardExcel.cs new file mode 100644 index 0000000..e333b1b --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCardExcel.cs @@ -0,0 +1,116 @@ +// +// 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 EventContentCardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCardExcel GetRootAsEventContentCardExcel(ByteBuffer _bb) { return GetRootAsEventContentCardExcel(_bb, new EventContentCardExcel()); } + public static EventContentCardExcel GetRootAsEventContentCardExcel(ByteBuffer _bb, EventContentCardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int CardGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EventContentId { 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 string IconPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(10); } + public string BackIconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBackIconPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetBackIconPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetBackIconPathArray() { return __p.__vector_as_array(12); } + 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 static Offset CreateEventContentCardExcel(FlatBufferBuilder builder, + int CardGroupId = 0, + long EventContentId = 0, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset), + StringOffset BackIconPathOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset)) { + builder.StartTable(7); + EventContentCardExcel.AddEventContentId(builder, EventContentId); + EventContentCardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentCardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentCardExcel.AddBackIconPath(builder, BackIconPathOffset); + EventContentCardExcel.AddIconPath(builder, IconPathOffset); + EventContentCardExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentCardExcel.AddCardGroupId(builder, CardGroupId); + return EventContentCardExcel.EndEventContentCardExcel(builder); + } + + public static void StartEventContentCardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddCardGroupId(FlatBufferBuilder builder, int cardGroupId) { builder.AddInt(0, cardGroupId, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(3, iconPathOffset.Value, 0); } + public static void AddBackIconPath(FlatBufferBuilder builder, StringOffset backIconPathOffset) { builder.AddOffset(4, backIconPathOffset.Value, 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 Offset EndEventContentCardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CardGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*IconPath*/, false) + && verifier.VerifyString(tablePos, 12 /*BackIconPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCardExcelTable.cs b/SCHALE.Common/FlatData/EventContentCardExcelTable.cs new file mode 100644 index 0000000..349a9d4 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentCardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCardExcelTable GetRootAsEventContentCardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentCardExcelTable(_bb, new EventContentCardExcelTable()); } + public static EventContentCardExcelTable GetRootAsEventContentCardExcelTable(ByteBuffer _bb, EventContentCardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentCardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentCardExcel?)(new SCHALE.Common.FlatData.EventContentCardExcel()).__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 CreateEventContentCardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentCardExcelTable.AddDataList(builder, DataListOffset); + return EventContentCardExcelTable.EndEventContentCardExcelTable(builder); + } + + public static void StartEventContentCardExcelTable(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 EndEventContentCardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentCardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCardShopExcel.cs b/SCHALE.Common/FlatData/EventContentCardShopExcel.cs new file mode 100644 index 0000000..f066f3f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCardShopExcel.cs @@ -0,0 +1,141 @@ +// +// 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 EventContentCardShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCardShopExcel GetRootAsEventContentCardShopExcel(ByteBuffer _bb) { return GetRootAsEventContentCardShopExcel(_bb, new EventContentCardShopExcel()); } + public static EventContentCardShopExcel GetRootAsEventContentCardShopExcel(ByteBuffer _bb, EventContentCardShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCardShopExcel __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 Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public long CostGoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CardGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsLegacy { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + 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 int ProbWeight1 { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(22); 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(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(22); 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(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(24); } + public long RewardParcelAmount(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(26); } + + public static Offset CreateEventContentCardShopExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + long CostGoodsId = 0, + int CardGroupId = 0, + bool IsLegacy = false, + int RefreshGroup = 0, + int Prob = 0, + int ProbWeight1 = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(12); + EventContentCardShopExcel.AddCostGoodsId(builder, CostGoodsId); + EventContentCardShopExcel.AddId(builder, Id); + EventContentCardShopExcel.AddEventContentId(builder, EventContentId); + EventContentCardShopExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentCardShopExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentCardShopExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentCardShopExcel.AddProbWeight1(builder, ProbWeight1); + EventContentCardShopExcel.AddProb(builder, Prob); + EventContentCardShopExcel.AddRefreshGroup(builder, RefreshGroup); + EventContentCardShopExcel.AddCardGroupId(builder, CardGroupId); + EventContentCardShopExcel.AddRarity(builder, Rarity); + EventContentCardShopExcel.AddIsLegacy(builder, IsLegacy); + return EventContentCardShopExcel.EndEventContentCardShopExcel(builder); + } + + public static void StartEventContentCardShopExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddCostGoodsId(FlatBufferBuilder builder, long costGoodsId) { builder.AddLong(3, costGoodsId, 0); } + public static void AddCardGroupId(FlatBufferBuilder builder, int cardGroupId) { builder.AddInt(4, cardGroupId, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(5, isLegacy, false); } + 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 AddProbWeight1(FlatBufferBuilder builder, int probWeight1) { builder.AddInt(8, probWeight1, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(9, 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(10, 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(11, 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 EndEventContentCardShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCardShopExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CostGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*CardGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*RefreshGroup*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*ProbWeight1*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs new file mode 100644 index 0000000..d5483d6 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCardShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentCardShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCardShopExcelTable GetRootAsEventContentCardShopExcelTable(ByteBuffer _bb) { return GetRootAsEventContentCardShopExcelTable(_bb, new EventContentCardShopExcelTable()); } + public static EventContentCardShopExcelTable GetRootAsEventContentCardShopExcelTable(ByteBuffer _bb, EventContentCardShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCardShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentCardShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentCardShopExcel?)(new SCHALE.Common.FlatData.EventContentCardShopExcel()).__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 CreateEventContentCardShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentCardShopExcelTable.AddDataList(builder, DataListOffset); + return EventContentCardShopExcelTable.EndEventContentCardShopExcelTable(builder); + } + + public static void StartEventContentCardShopExcelTable(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 EndEventContentCardShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCardShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentCardShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentChangeExcel.cs b/SCHALE.Common/FlatData/EventContentChangeExcel.cs new file mode 100644 index 0000000..718d897 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentChangeExcel.cs @@ -0,0 +1,90 @@ +// +// 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 EventContentChangeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentChangeExcel GetRootAsEventContentChangeExcel(ByteBuffer _bb) { return GetRootAsEventContentChangeExcel(_bb, new EventContentChangeExcel()); } + public static EventContentChangeExcel GetRootAsEventContentChangeExcel(ByteBuffer _bb, EventContentChangeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentChangeExcel __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 ChangeCount { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsLast { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ChangeCostType { 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 ChangeCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ChangeCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateEventContentChangeExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long ChangeCount = 0, + bool IsLast = false, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0, + SCHALE.Common.FlatData.ParcelType ChangeCostType = SCHALE.Common.FlatData.ParcelType.None, + long ChangeCostId = 0, + int ChangeCostAmount = 0) { + builder.StartTable(9); + EventContentChangeExcel.AddChangeCostId(builder, ChangeCostId); + EventContentChangeExcel.AddRewardId(builder, RewardId); + EventContentChangeExcel.AddChangeCount(builder, ChangeCount); + EventContentChangeExcel.AddEventContentId(builder, EventContentId); + EventContentChangeExcel.AddChangeCostAmount(builder, ChangeCostAmount); + EventContentChangeExcel.AddChangeCostType(builder, ChangeCostType); + EventContentChangeExcel.AddRewardAmount(builder, RewardAmount); + EventContentChangeExcel.AddRewardParcelType(builder, RewardParcelType); + EventContentChangeExcel.AddIsLast(builder, IsLast); + return EventContentChangeExcel.EndEventContentChangeExcel(builder); + } + + public static void StartEventContentChangeExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddChangeCount(FlatBufferBuilder builder, long changeCount) { builder.AddLong(1, changeCount, 0); } + public static void AddIsLast(FlatBufferBuilder builder, bool isLast) { builder.AddBool(2, isLast, false); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static void AddChangeCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType changeCostType) { builder.AddInt(6, (int)changeCostType, 0); } + public static void AddChangeCostId(FlatBufferBuilder builder, long changeCostId) { builder.AddLong(7, changeCostId, 0); } + public static void AddChangeCostAmount(FlatBufferBuilder builder, int changeCostAmount) { builder.AddInt(8, changeCostAmount, 0); } + public static Offset EndEventContentChangeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentChangeExcelVerify +{ + 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 /*ChangeCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*IsLast*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ChangeCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ChangeCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ChangeCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs b/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs new file mode 100644 index 0000000..dbf68fb --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentChangeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentChangeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentChangeExcelTable GetRootAsEventContentChangeExcelTable(ByteBuffer _bb) { return GetRootAsEventContentChangeExcelTable(_bb, new EventContentChangeExcelTable()); } + public static EventContentChangeExcelTable GetRootAsEventContentChangeExcelTable(ByteBuffer _bb, EventContentChangeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentChangeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentChangeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentChangeExcel?)(new SCHALE.Common.FlatData.EventContentChangeExcel()).__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 CreateEventContentChangeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentChangeExcelTable.AddDataList(builder, DataListOffset); + return EventContentChangeExcelTable.EndEventContentChangeExcelTable(builder); + } + + public static void StartEventContentChangeExcelTable(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 EndEventContentChangeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentChangeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentChangeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs b/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs new file mode 100644 index 0000000..1ca220b --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentChangeScenarioExcel.cs @@ -0,0 +1,65 @@ +// +// 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 EventContentChangeScenarioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentChangeScenarioExcel GetRootAsEventContentChangeScenarioExcel(ByteBuffer _bb) { return GetRootAsEventContentChangeScenarioExcel(_bb, new EventContentChangeScenarioExcel()); } + public static EventContentChangeScenarioExcel GetRootAsEventContentChangeScenarioExcel(ByteBuffer _bb, EventContentChangeScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentChangeScenarioExcel __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.EventChangeType ChangeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventChangeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventChangeType.MainSub; } } + public long ChangeCount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentChangeScenarioExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventChangeType ChangeType = SCHALE.Common.FlatData.EventChangeType.MainSub, + long ChangeCount = 0, + long ScenarioGroupId = 0) { + builder.StartTable(4); + EventContentChangeScenarioExcel.AddScenarioGroupId(builder, ScenarioGroupId); + EventContentChangeScenarioExcel.AddChangeCount(builder, ChangeCount); + EventContentChangeScenarioExcel.AddEventContentId(builder, EventContentId); + EventContentChangeScenarioExcel.AddChangeType(builder, ChangeType); + return EventContentChangeScenarioExcel.EndEventContentChangeScenarioExcel(builder); + } + + public static void StartEventContentChangeScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddChangeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventChangeType changeType) { builder.AddInt(1, (int)changeType, 0); } + public static void AddChangeCount(FlatBufferBuilder builder, long changeCount) { builder.AddLong(2, changeCount, 0); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, long scenarioGroupId) { builder.AddLong(3, scenarioGroupId, 0); } + public static Offset EndEventContentChangeScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentChangeScenarioExcelVerify +{ + 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 /*ChangeType*/, 4 /*SCHALE.Common.FlatData.EventChangeType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ChangeCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs b/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs new file mode 100644 index 0000000..4643c07 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentChangeScenarioExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentChangeScenarioExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentChangeScenarioExcelTable GetRootAsEventContentChangeScenarioExcelTable(ByteBuffer _bb) { return GetRootAsEventContentChangeScenarioExcelTable(_bb, new EventContentChangeScenarioExcelTable()); } + public static EventContentChangeScenarioExcelTable GetRootAsEventContentChangeScenarioExcelTable(ByteBuffer _bb, EventContentChangeScenarioExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentChangeScenarioExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentChangeScenarioExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentChangeScenarioExcel?)(new SCHALE.Common.FlatData.EventContentChangeScenarioExcel()).__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 CreateEventContentChangeScenarioExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentChangeScenarioExcelTable.AddDataList(builder, DataListOffset); + return EventContentChangeScenarioExcelTable.EndEventContentChangeScenarioExcelTable(builder); + } + + public static void StartEventContentChangeScenarioExcelTable(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 EndEventContentChangeScenarioExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentChangeScenarioExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentChangeScenarioExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs b/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs new file mode 100644 index 0000000..67f2c0a --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCharacterBonusExcel.cs @@ -0,0 +1,89 @@ +// +// 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 EventContentCharacterBonusExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCharacterBonusExcel GetRootAsEventContentCharacterBonusExcel(ByteBuffer _bb) { return GetRootAsEventContentCharacterBonusExcel(_bb, new EventContentCharacterBonusExcel()); } + public static EventContentCharacterBonusExcel GetRootAsEventContentCharacterBonusExcel(ByteBuffer _bb, EventContentCharacterBonusExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCharacterBonusExcel __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 CharacterId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EventContentItemType EventContentItemType_(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EventContentItemType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EventContentItemType)0; } + public int EventContentItemType_Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEventContentItemType_Bytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetEventContentItemType_Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.EventContentItemType[] GetEventContentItemType_Array() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EventContentItemType[] a = new SCHALE.Common.FlatData.EventContentItemType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EventContentItemType)__p.bb.GetInt(p + i * 4); } return a; } + public long BonusPercentage(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BonusPercentageLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBonusPercentageBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetBonusPercentageBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetBonusPercentageArray() { return __p.__vector_as_array(10); } + + public static Offset CreateEventContentCharacterBonusExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long CharacterId = 0, + VectorOffset EventContentItemType_Offset = default(VectorOffset), + VectorOffset BonusPercentageOffset = default(VectorOffset)) { + builder.StartTable(4); + EventContentCharacterBonusExcel.AddCharacterId(builder, CharacterId); + EventContentCharacterBonusExcel.AddEventContentId(builder, EventContentId); + EventContentCharacterBonusExcel.AddBonusPercentage(builder, BonusPercentageOffset); + EventContentCharacterBonusExcel.AddEventContentItemType_(builder, EventContentItemType_Offset); + return EventContentCharacterBonusExcel.EndEventContentCharacterBonusExcel(builder); + } + + public static void StartEventContentCharacterBonusExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(1, characterId, 0); } + public static void AddEventContentItemType_(FlatBufferBuilder builder, VectorOffset eventContentItemType_Offset) { builder.AddOffset(2, eventContentItemType_Offset.Value, 0); } + public static VectorOffset CreateEventContentItemType_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentItemType[] 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 CreateEventContentItemType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentItemType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEventContentItemType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEventContentItemType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEventContentItemType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBonusPercentage(FlatBufferBuilder builder, VectorOffset bonusPercentageOffset) { builder.AddOffset(3, bonusPercentageOffset.Value, 0); } + public static VectorOffset CreateBonusPercentageVector(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 CreateBonusPercentageVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentageVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBonusPercentageVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBonusPercentageVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEventContentCharacterBonusExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCharacterBonusExcelVerify +{ + 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 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*EventContentItemType_*/, 4 /*SCHALE.Common.FlatData.EventContentItemType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*BonusPercentage*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs b/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs new file mode 100644 index 0000000..f917cd7 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCharacterBonusExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentCharacterBonusExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCharacterBonusExcelTable GetRootAsEventContentCharacterBonusExcelTable(ByteBuffer _bb) { return GetRootAsEventContentCharacterBonusExcelTable(_bb, new EventContentCharacterBonusExcelTable()); } + public static EventContentCharacterBonusExcelTable GetRootAsEventContentCharacterBonusExcelTable(ByteBuffer _bb, EventContentCharacterBonusExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCharacterBonusExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentCharacterBonusExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentCharacterBonusExcel?)(new SCHALE.Common.FlatData.EventContentCharacterBonusExcel()).__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 CreateEventContentCharacterBonusExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentCharacterBonusExcelTable.AddDataList(builder, DataListOffset); + return EventContentCharacterBonusExcelTable.EndEventContentCharacterBonusExcelTable(builder); + } + + public static void StartEventContentCharacterBonusExcelTable(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 EndEventContentCharacterBonusExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCharacterBonusExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentCharacterBonusExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCollectionExcel.cs b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs new file mode 100644 index 0000000..265062f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs @@ -0,0 +1,151 @@ +// +// 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 EventContentCollectionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCollectionExcel GetRootAsEventContentCollectionExcel(ByteBuffer _bb) { return GetRootAsEventContentCollectionExcel(_bb, new EventContentCollectionExcel()); } + public static EventContentCollectionExcel GetRootAsEventContentCollectionExcel(ByteBuffer _bb, EventContentCollectionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCollectionExcel __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 SCHALE.Common.FlatData.EventCollectionUnlockType UnlockConditionType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.EventCollectionUnlockType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventCollectionUnlockType.None; } } + public long UnlockConditionParameter(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int UnlockConditionParameterLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetUnlockConditionParameterBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetUnlockConditionParameterBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetUnlockConditionParameterArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.MultipleConditionCheckType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MultipleConditionCheckType.And; } } + public long UnlockConditionCount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsObject { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsHorizon { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string EmblemResource { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmblemResourceBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetEmblemResourceBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetEmblemResourceArray() { return __p.__vector_as_array(22); } + public string ThumbResource { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThumbResourceBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetThumbResourceBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetThumbResourceArray() { return __p.__vector_as_array(24); } + public string FullResource { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFullResourceBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetFullResourceBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetFullResourceArray() { return __p.__vector_as_array(26); } + public uint LocalizeEtcId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string SubNameLocalizeCodeId { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubNameLocalizeCodeIdBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetSubNameLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetSubNameLocalizeCodeIdArray() { return __p.__vector_as_array(30); } + + public static Offset CreateEventContentCollectionExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long GroupId = 0, + SCHALE.Common.FlatData.EventCollectionUnlockType UnlockConditionType = SCHALE.Common.FlatData.EventCollectionUnlockType.None, + VectorOffset UnlockConditionParameterOffset = default(VectorOffset), + SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And, + long UnlockConditionCount = 0, + bool IsObject = false, + bool IsHorizon = false, + StringOffset EmblemResourceOffset = default(StringOffset), + StringOffset ThumbResourceOffset = default(StringOffset), + StringOffset FullResourceOffset = default(StringOffset), + uint LocalizeEtcId = 0, + StringOffset SubNameLocalizeCodeIdOffset = default(StringOffset)) { + builder.StartTable(14); + EventContentCollectionExcel.AddUnlockConditionCount(builder, UnlockConditionCount); + EventContentCollectionExcel.AddGroupId(builder, GroupId); + EventContentCollectionExcel.AddEventContentId(builder, EventContentId); + EventContentCollectionExcel.AddId(builder, Id); + EventContentCollectionExcel.AddSubNameLocalizeCodeId(builder, SubNameLocalizeCodeIdOffset); + EventContentCollectionExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentCollectionExcel.AddFullResource(builder, FullResourceOffset); + EventContentCollectionExcel.AddThumbResource(builder, ThumbResourceOffset); + EventContentCollectionExcel.AddEmblemResource(builder, EmblemResourceOffset); + EventContentCollectionExcel.AddMultipleConditionCheckType(builder, MultipleConditionCheckType); + EventContentCollectionExcel.AddUnlockConditionParameter(builder, UnlockConditionParameterOffset); + EventContentCollectionExcel.AddUnlockConditionType(builder, UnlockConditionType); + EventContentCollectionExcel.AddIsHorizon(builder, IsHorizon); + EventContentCollectionExcel.AddIsObject(builder, IsObject); + return EventContentCollectionExcel.EndEventContentCollectionExcel(builder); + } + + public static void StartEventContentCollectionExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + 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 AddUnlockConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventCollectionUnlockType unlockConditionType) { builder.AddInt(3, (int)unlockConditionType, 0); } + public static void AddUnlockConditionParameter(FlatBufferBuilder builder, VectorOffset unlockConditionParameterOffset) { builder.AddOffset(4, unlockConditionParameterOffset.Value, 0); } + public static VectorOffset CreateUnlockConditionParameterVector(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 CreateUnlockConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnlockConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUnlockConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUnlockConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMultipleConditionCheckType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MultipleConditionCheckType multipleConditionCheckType) { builder.AddInt(5, (int)multipleConditionCheckType, 0); } + public static void AddUnlockConditionCount(FlatBufferBuilder builder, long unlockConditionCount) { builder.AddLong(6, unlockConditionCount, 0); } + public static void AddIsObject(FlatBufferBuilder builder, bool isObject) { builder.AddBool(7, isObject, false); } + public static void AddIsHorizon(FlatBufferBuilder builder, bool isHorizon) { builder.AddBool(8, isHorizon, false); } + public static void AddEmblemResource(FlatBufferBuilder builder, StringOffset emblemResourceOffset) { builder.AddOffset(9, emblemResourceOffset.Value, 0); } + public static void AddThumbResource(FlatBufferBuilder builder, StringOffset thumbResourceOffset) { builder.AddOffset(10, thumbResourceOffset.Value, 0); } + public static void AddFullResource(FlatBufferBuilder builder, StringOffset fullResourceOffset) { builder.AddOffset(11, fullResourceOffset.Value, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(12, localizeEtcId, 0); } + public static void AddSubNameLocalizeCodeId(FlatBufferBuilder builder, StringOffset subNameLocalizeCodeIdOffset) { builder.AddOffset(13, subNameLocalizeCodeIdOffset.Value, 0); } + public static Offset EndEventContentCollectionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCollectionExcelVerify +{ + 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 /*UnlockConditionType*/, 4 /*SCHALE.Common.FlatData.EventCollectionUnlockType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*UnlockConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*MultipleConditionCheckType*/, 4 /*SCHALE.Common.FlatData.MultipleConditionCheckType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*UnlockConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*IsObject*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 20 /*IsHorizon*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 22 /*EmblemResource*/, false) + && verifier.VerifyString(tablePos, 24 /*ThumbResource*/, false) + && verifier.VerifyString(tablePos, 26 /*FullResource*/, false) + && verifier.VerifyField(tablePos, 28 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 30 /*SubNameLocalizeCodeId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs b/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs new file mode 100644 index 0000000..504b6bd --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCollectionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentCollectionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCollectionExcelTable GetRootAsEventContentCollectionExcelTable(ByteBuffer _bb) { return GetRootAsEventContentCollectionExcelTable(_bb, new EventContentCollectionExcelTable()); } + public static EventContentCollectionExcelTable GetRootAsEventContentCollectionExcelTable(ByteBuffer _bb, EventContentCollectionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCollectionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentCollectionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentCollectionExcel?)(new SCHALE.Common.FlatData.EventContentCollectionExcel()).__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 CreateEventContentCollectionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentCollectionExcelTable.AddDataList(builder, DataListOffset); + return EventContentCollectionExcelTable.EndEventContentCollectionExcelTable(builder); + } + + public static void StartEventContentCollectionExcelTable(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 EndEventContentCollectionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCollectionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentCollectionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs b/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs new file mode 100644 index 0000000..625df7f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCurrencyItemExcel.cs @@ -0,0 +1,60 @@ +// +// 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 EventContentCurrencyItemExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCurrencyItemExcel GetRootAsEventContentCurrencyItemExcel(ByteBuffer _bb) { return GetRootAsEventContentCurrencyItemExcel(_bb, new EventContentCurrencyItemExcel()); } + public static EventContentCurrencyItemExcel GetRootAsEventContentCurrencyItemExcel(ByteBuffer _bb, EventContentCurrencyItemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCurrencyItemExcel __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.EventContentItemType EventContentItemType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentItemType.EventPoint; } } + public long ItemUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentCurrencyItemExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentItemType EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint, + long ItemUniqueId = 0) { + builder.StartTable(3); + EventContentCurrencyItemExcel.AddItemUniqueId(builder, ItemUniqueId); + EventContentCurrencyItemExcel.AddEventContentId(builder, EventContentId); + EventContentCurrencyItemExcel.AddEventContentItemType(builder, EventContentItemType); + return EventContentCurrencyItemExcel.EndEventContentCurrencyItemExcel(builder); + } + + public static void StartEventContentCurrencyItemExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentItemType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentItemType eventContentItemType) { builder.AddInt(1, (int)eventContentItemType, 0); } + public static void AddItemUniqueId(FlatBufferBuilder builder, long itemUniqueId) { builder.AddLong(2, itemUniqueId, 0); } + public static Offset EndEventContentCurrencyItemExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCurrencyItemExcelVerify +{ + 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 /*EventContentItemType*/, 4 /*SCHALE.Common.FlatData.EventContentItemType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ItemUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs b/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs new file mode 100644 index 0000000..9ba7f8b --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentCurrencyItemExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentCurrencyItemExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentCurrencyItemExcelTable GetRootAsEventContentCurrencyItemExcelTable(ByteBuffer _bb) { return GetRootAsEventContentCurrencyItemExcelTable(_bb, new EventContentCurrencyItemExcelTable()); } + public static EventContentCurrencyItemExcelTable GetRootAsEventContentCurrencyItemExcelTable(ByteBuffer _bb, EventContentCurrencyItemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentCurrencyItemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentCurrencyItemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentCurrencyItemExcel?)(new SCHALE.Common.FlatData.EventContentCurrencyItemExcel()).__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 CreateEventContentCurrencyItemExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentCurrencyItemExcelTable.AddDataList(builder, DataListOffset); + return EventContentCurrencyItemExcelTable.EndEventContentCurrencyItemExcelTable(builder); + } + + public static void StartEventContentCurrencyItemExcelTable(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 EndEventContentCurrencyItemExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentCurrencyItemExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentCurrencyItemExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs b/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs new file mode 100644 index 0000000..70cbff2 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDebuffRewardExcel.cs @@ -0,0 +1,65 @@ +// +// 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 EventContentDebuffRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDebuffRewardExcel GetRootAsEventContentDebuffRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentDebuffRewardExcel(_bb, new EventContentDebuffRewardExcel()); } + public static EventContentDebuffRewardExcel GetRootAsEventContentDebuffRewardExcel(ByteBuffer _bb, EventContentDebuffRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDebuffRewardExcel __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 EventStageId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EventContentItemType EventContentItemType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EventContentItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentItemType.EventPoint; } } + public long RewardPercentage { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentDebuffRewardExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long EventStageId = 0, + SCHALE.Common.FlatData.EventContentItemType EventContentItemType = SCHALE.Common.FlatData.EventContentItemType.EventPoint, + long RewardPercentage = 0) { + builder.StartTable(4); + EventContentDebuffRewardExcel.AddRewardPercentage(builder, RewardPercentage); + EventContentDebuffRewardExcel.AddEventStageId(builder, EventStageId); + EventContentDebuffRewardExcel.AddEventContentId(builder, EventContentId); + EventContentDebuffRewardExcel.AddEventContentItemType(builder, EventContentItemType); + return EventContentDebuffRewardExcel.EndEventContentDebuffRewardExcel(builder); + } + + public static void StartEventContentDebuffRewardExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventStageId(FlatBufferBuilder builder, long eventStageId) { builder.AddLong(1, eventStageId, 0); } + public static void AddEventContentItemType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentItemType eventContentItemType) { builder.AddInt(2, (int)eventContentItemType, 0); } + public static void AddRewardPercentage(FlatBufferBuilder builder, long rewardPercentage) { builder.AddLong(3, rewardPercentage, 0); } + public static Offset EndEventContentDebuffRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDebuffRewardExcelVerify +{ + 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 /*EventStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*EventContentItemType*/, 4 /*SCHALE.Common.FlatData.EventContentItemType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardPercentage*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs new file mode 100644 index 0000000..55bac7e --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDebuffRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDebuffRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDebuffRewardExcelTable GetRootAsEventContentDebuffRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDebuffRewardExcelTable(_bb, new EventContentDebuffRewardExcelTable()); } + public static EventContentDebuffRewardExcelTable GetRootAsEventContentDebuffRewardExcelTable(ByteBuffer _bb, EventContentDebuffRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDebuffRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDebuffRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDebuffRewardExcel?)(new SCHALE.Common.FlatData.EventContentDebuffRewardExcel()).__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 CreateEventContentDebuffRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDebuffRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentDebuffRewardExcelTable.EndEventContentDebuffRewardExcelTable(builder); + } + + public static void StartEventContentDebuffRewardExcelTable(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 EndEventContentDebuffRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDebuffRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDebuffRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs new file mode 100644 index 0000000..797d0aa --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcel.cs @@ -0,0 +1,88 @@ +// +// 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 EventContentDiceRaceEffectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceEffectExcel GetRootAsEventContentDiceRaceEffectExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceEffectExcel(_bb, new EventContentDiceRaceEffectExcel()); } + public static EventContentDiceRaceEffectExcel GetRootAsEventContentDiceRaceEffectExcel(ByteBuffer _bb, EventContentDiceRaceEffectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceEffectExcel __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.EventContentDiceRaceResultType EventContentDiceRaceResultType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceResultType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1; } } + public bool IsDiceResult { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string AniClip { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAniClipBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetAniClipBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetAniClipArray() { return __p.__vector_as_array(10); } + public uint VoiceId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(12); } + + public static Offset CreateEventContentDiceRaceEffectExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentDiceRaceResultType EventContentDiceRaceResultType = SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1, + bool IsDiceResult = false, + StringOffset AniClipOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset)) { + builder.StartTable(5); + EventContentDiceRaceEffectExcel.AddEventContentId(builder, EventContentId); + EventContentDiceRaceEffectExcel.AddVoiceId(builder, VoiceIdOffset); + EventContentDiceRaceEffectExcel.AddAniClip(builder, AniClipOffset); + EventContentDiceRaceEffectExcel.AddEventContentDiceRaceResultType(builder, EventContentDiceRaceResultType); + EventContentDiceRaceEffectExcel.AddIsDiceResult(builder, IsDiceResult); + return EventContentDiceRaceEffectExcel.EndEventContentDiceRaceEffectExcel(builder); + } + + public static void StartEventContentDiceRaceEffectExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentDiceRaceResultType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentDiceRaceResultType eventContentDiceRaceResultType) { builder.AddInt(1, (int)eventContentDiceRaceResultType, 0); } + public static void AddIsDiceResult(FlatBufferBuilder builder, bool isDiceResult) { builder.AddBool(2, isDiceResult, false); } + public static void AddAniClip(FlatBufferBuilder builder, StringOffset aniClipOffset) { builder.AddOffset(3, aniClipOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(4, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndEventContentDiceRaceEffectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceEffectExcelVerify +{ + 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 /*EventContentDiceRaceResultType*/, 4 /*SCHALE.Common.FlatData.EventContentDiceRaceResultType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*IsDiceResult*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*AniClip*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs new file mode 100644 index 0000000..b3ab816 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceEffectExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDiceRaceEffectExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceEffectExcelTable GetRootAsEventContentDiceRaceEffectExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceEffectExcelTable(_bb, new EventContentDiceRaceEffectExcelTable()); } + public static EventContentDiceRaceEffectExcelTable GetRootAsEventContentDiceRaceEffectExcelTable(ByteBuffer _bb, EventContentDiceRaceEffectExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceEffectExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDiceRaceEffectExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceEffectExcel?)(new SCHALE.Common.FlatData.EventContentDiceRaceEffectExcel()).__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 CreateEventContentDiceRaceEffectExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDiceRaceEffectExcelTable.AddDataList(builder, DataListOffset); + return EventContentDiceRaceEffectExcelTable.EndEventContentDiceRaceEffectExcelTable(builder); + } + + public static void StartEventContentDiceRaceEffectExcelTable(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 EndEventContentDiceRaceEffectExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceEffectExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDiceRaceEffectExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs new file mode 100644 index 0000000..e3ad399 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceExcel.cs @@ -0,0 +1,87 @@ +// +// 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 EventContentDiceRaceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceExcel GetRootAsEventContentDiceRaceExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceExcel(_bb, new EventContentDiceRaceExcel()); } + public static EventContentDiceRaceExcel GetRootAsEventContentDiceRaceExcel(ByteBuffer _bb, EventContentDiceRaceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceExcel __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 DiceCostGoodsId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int SkipableLap { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string DiceRacePawnPrefab { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDiceRacePawnPrefabBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetDiceRacePawnPrefabBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetDiceRacePawnPrefabArray() { return __p.__vector_as_array(10); } + public bool IsUsingFixedDice { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string DiceRaceEventType(int j) { int o = __p.__offset(14); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int DiceRaceEventTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateEventContentDiceRaceExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long DiceCostGoodsId = 0, + int SkipableLap = 0, + StringOffset DiceRacePawnPrefabOffset = default(StringOffset), + bool IsUsingFixedDice = false, + VectorOffset DiceRaceEventTypeOffset = default(VectorOffset)) { + builder.StartTable(6); + EventContentDiceRaceExcel.AddDiceCostGoodsId(builder, DiceCostGoodsId); + EventContentDiceRaceExcel.AddEventContentId(builder, EventContentId); + EventContentDiceRaceExcel.AddDiceRaceEventType(builder, DiceRaceEventTypeOffset); + EventContentDiceRaceExcel.AddDiceRacePawnPrefab(builder, DiceRacePawnPrefabOffset); + EventContentDiceRaceExcel.AddSkipableLap(builder, SkipableLap); + EventContentDiceRaceExcel.AddIsUsingFixedDice(builder, IsUsingFixedDice); + return EventContentDiceRaceExcel.EndEventContentDiceRaceExcel(builder); + } + + public static void StartEventContentDiceRaceExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddDiceCostGoodsId(FlatBufferBuilder builder, long diceCostGoodsId) { builder.AddLong(1, diceCostGoodsId, 0); } + public static void AddSkipableLap(FlatBufferBuilder builder, int skipableLap) { builder.AddInt(2, skipableLap, 0); } + public static void AddDiceRacePawnPrefab(FlatBufferBuilder builder, StringOffset diceRacePawnPrefabOffset) { builder.AddOffset(3, diceRacePawnPrefabOffset.Value, 0); } + public static void AddIsUsingFixedDice(FlatBufferBuilder builder, bool isUsingFixedDice) { builder.AddBool(4, isUsingFixedDice, false); } + public static void AddDiceRaceEventType(FlatBufferBuilder builder, VectorOffset diceRaceEventTypeOffset) { builder.AddOffset(5, diceRaceEventTypeOffset.Value, 0); } + public static VectorOffset CreateDiceRaceEventTypeVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDiceRaceEventTypeVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDiceRaceEventTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDiceRaceEventTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDiceRaceEventTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndEventContentDiceRaceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceExcelVerify +{ + 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 /*DiceCostGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*SkipableLap*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*DiceRacePawnPrefab*/, false) + && verifier.VerifyField(tablePos, 12 /*IsUsingFixedDice*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfStrings(tablePos, 14 /*DiceRaceEventType*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs new file mode 100644 index 0000000..d855cb7 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDiceRaceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceExcelTable GetRootAsEventContentDiceRaceExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceExcelTable(_bb, new EventContentDiceRaceExcelTable()); } + public static EventContentDiceRaceExcelTable GetRootAsEventContentDiceRaceExcelTable(ByteBuffer _bb, EventContentDiceRaceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDiceRaceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceExcel?)(new SCHALE.Common.FlatData.EventContentDiceRaceExcel()).__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 CreateEventContentDiceRaceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDiceRaceExcelTable.AddDataList(builder, DataListOffset); + return EventContentDiceRaceExcelTable.EndEventContentDiceRaceExcelTable(builder); + } + + public static void StartEventContentDiceRaceExcelTable(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 EndEventContentDiceRaceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDiceRaceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs new file mode 100644 index 0000000..cbaaf5a --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcel.cs @@ -0,0 +1,116 @@ +// +// 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 EventContentDiceRaceNodeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceNodeExcel GetRootAsEventContentDiceRaceNodeExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceNodeExcel(_bb, new EventContentDiceRaceNodeExcel()); } + public static EventContentDiceRaceNodeExcel GetRootAsEventContentDiceRaceNodeExcel(ByteBuffer _bb, EventContentDiceRaceNodeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceNodeExcel __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 NodeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode; } } + public int MoveForwardTypeArg { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(12); 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(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(14); } + public long RewardAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(16); } + + public static Offset CreateEventContentDiceRaceNodeExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long NodeId = 0, + SCHALE.Common.FlatData.EventContentDiceRaceNodeType EventContentDiceRaceNodeType = SCHALE.Common.FlatData.EventContentDiceRaceNodeType.StartNode, + int MoveForwardTypeArg = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(7); + EventContentDiceRaceNodeExcel.AddNodeId(builder, NodeId); + EventContentDiceRaceNodeExcel.AddEventContentId(builder, EventContentId); + EventContentDiceRaceNodeExcel.AddRewardAmount(builder, RewardAmountOffset); + EventContentDiceRaceNodeExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentDiceRaceNodeExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentDiceRaceNodeExcel.AddMoveForwardTypeArg(builder, MoveForwardTypeArg); + EventContentDiceRaceNodeExcel.AddEventContentDiceRaceNodeType(builder, EventContentDiceRaceNodeType); + return EventContentDiceRaceNodeExcel.EndEventContentDiceRaceNodeExcel(builder); + } + + public static void StartEventContentDiceRaceNodeExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddNodeId(FlatBufferBuilder builder, long nodeId) { builder.AddLong(1, nodeId, 0); } + public static void AddEventContentDiceRaceNodeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentDiceRaceNodeType eventContentDiceRaceNodeType) { builder.AddInt(2, (int)eventContentDiceRaceNodeType, 0); } + public static void AddMoveForwardTypeArg(FlatBufferBuilder builder, int moveForwardTypeArg) { builder.AddInt(3, moveForwardTypeArg, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(4, 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(5, 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 AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(6, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEventContentDiceRaceNodeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceNodeExcelVerify +{ + 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 /*NodeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*EventContentDiceRaceNodeType*/, 4 /*SCHALE.Common.FlatData.EventContentDiceRaceNodeType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*MoveForwardTypeArg*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs new file mode 100644 index 0000000..4db246c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceNodeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDiceRaceNodeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceNodeExcelTable GetRootAsEventContentDiceRaceNodeExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceNodeExcelTable(_bb, new EventContentDiceRaceNodeExcelTable()); } + public static EventContentDiceRaceNodeExcelTable GetRootAsEventContentDiceRaceNodeExcelTable(ByteBuffer _bb, EventContentDiceRaceNodeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceNodeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel?)(new SCHALE.Common.FlatData.EventContentDiceRaceNodeExcel()).__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 CreateEventContentDiceRaceNodeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDiceRaceNodeExcelTable.AddDataList(builder, DataListOffset); + return EventContentDiceRaceNodeExcelTable.EndEventContentDiceRaceNodeExcelTable(builder); + } + + public static void StartEventContentDiceRaceNodeExcelTable(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 EndEventContentDiceRaceNodeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceNodeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDiceRaceNodeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceNodeType.cs b/SCHALE.Common/FlatData/EventContentDiceRaceNodeType.cs new file mode 100644 index 0000000..78bd8ca --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceNodeType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentDiceRaceNodeType : int +{ + StartNode = 0, + RewardNode = 1, + MoveForwardNode = 2, + SpecialRewardNode = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs new file mode 100644 index 0000000..794879c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcel.cs @@ -0,0 +1,75 @@ +// +// 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 EventContentDiceRaceProbExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceProbExcel GetRootAsEventContentDiceRaceProbExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceProbExcel(_bb, new EventContentDiceRaceProbExcel()); } + public static EventContentDiceRaceProbExcel GetRootAsEventContentDiceRaceProbExcel(ByteBuffer _bb, EventContentDiceRaceProbExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceProbExcel __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.EventContentDiceRaceResultType EventContentDiceRaceResultType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceResultType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1; } } + public long CostItemId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CostItemAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DiceResult { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Prob { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateEventContentDiceRaceProbExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentDiceRaceResultType EventContentDiceRaceResultType = SCHALE.Common.FlatData.EventContentDiceRaceResultType.DiceResult1, + long CostItemId = 0, + int CostItemAmount = 0, + int DiceResult = 0, + int Prob = 0) { + builder.StartTable(6); + EventContentDiceRaceProbExcel.AddCostItemId(builder, CostItemId); + EventContentDiceRaceProbExcel.AddEventContentId(builder, EventContentId); + EventContentDiceRaceProbExcel.AddProb(builder, Prob); + EventContentDiceRaceProbExcel.AddDiceResult(builder, DiceResult); + EventContentDiceRaceProbExcel.AddCostItemAmount(builder, CostItemAmount); + EventContentDiceRaceProbExcel.AddEventContentDiceRaceResultType(builder, EventContentDiceRaceResultType); + return EventContentDiceRaceProbExcel.EndEventContentDiceRaceProbExcel(builder); + } + + public static void StartEventContentDiceRaceProbExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentDiceRaceResultType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentDiceRaceResultType eventContentDiceRaceResultType) { builder.AddInt(1, (int)eventContentDiceRaceResultType, 0); } + public static void AddCostItemId(FlatBufferBuilder builder, long costItemId) { builder.AddLong(2, costItemId, 0); } + public static void AddCostItemAmount(FlatBufferBuilder builder, int costItemAmount) { builder.AddInt(3, costItemAmount, 0); } + public static void AddDiceResult(FlatBufferBuilder builder, int diceResult) { builder.AddInt(4, diceResult, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(5, prob, 0); } + public static Offset EndEventContentDiceRaceProbExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceProbExcelVerify +{ + 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 /*EventContentDiceRaceResultType*/, 4 /*SCHALE.Common.FlatData.EventContentDiceRaceResultType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CostItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*CostItemAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*DiceResult*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs new file mode 100644 index 0000000..3d787c0 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceProbExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDiceRaceProbExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceProbExcelTable GetRootAsEventContentDiceRaceProbExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceProbExcelTable(_bb, new EventContentDiceRaceProbExcelTable()); } + public static EventContentDiceRaceProbExcelTable GetRootAsEventContentDiceRaceProbExcelTable(ByteBuffer _bb, EventContentDiceRaceProbExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceProbExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDiceRaceProbExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceProbExcel?)(new SCHALE.Common.FlatData.EventContentDiceRaceProbExcel()).__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 CreateEventContentDiceRaceProbExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDiceRaceProbExcelTable.AddDataList(builder, DataListOffset); + return EventContentDiceRaceProbExcelTable.EndEventContentDiceRaceProbExcelTable(builder); + } + + public static void StartEventContentDiceRaceProbExcelTable(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 EndEventContentDiceRaceProbExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceProbExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDiceRaceProbExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceResultType.cs b/SCHALE.Common/FlatData/EventContentDiceRaceResultType.cs new file mode 100644 index 0000000..ce3b315 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceResultType.cs @@ -0,0 +1,29 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentDiceRaceResultType : int +{ + DiceResult1 = 0, + DiceResult2 = 1, + DiceResult3 = 2, + DiceResult4 = 3, + DiceResult5 = 4, + DiceResult6 = 5, + MoveForward = 6, + LapFinish = 7, + EventOccur = 8, + DiceResultFixed1 = 9, + DiceResultFixed2 = 10, + DiceResultFixed3 = 11, + DiceResultFixed4 = 12, + DiceResultFixed5 = 13, + DiceResultFixed6 = 14, + SpecialReward = 15, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs new file mode 100644 index 0000000..145a72c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcel.cs @@ -0,0 +1,116 @@ +// +// 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 EventContentDiceRaceTotalRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceTotalRewardExcel GetRootAsEventContentDiceRaceTotalRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceTotalRewardExcel(_bb, new EventContentDiceRaceTotalRewardExcel()); } + public static EventContentDiceRaceTotalRewardExcel GetRootAsEventContentDiceRaceTotalRewardExcel(ByteBuffer _bb, EventContentDiceRaceTotalRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceTotalRewardExcel __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 RewardID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RequiredLapFinishCount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DisplayLapFinishCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(12); 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(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(14); } + public long RewardParcelAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(16); } + + public static Offset CreateEventContentDiceRaceTotalRewardExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long RewardID = 0, + int RequiredLapFinishCount = 0, + int DisplayLapFinishCount = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(7); + EventContentDiceRaceTotalRewardExcel.AddRewardID(builder, RewardID); + EventContentDiceRaceTotalRewardExcel.AddEventContentId(builder, EventContentId); + EventContentDiceRaceTotalRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentDiceRaceTotalRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentDiceRaceTotalRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentDiceRaceTotalRewardExcel.AddDisplayLapFinishCount(builder, DisplayLapFinishCount); + EventContentDiceRaceTotalRewardExcel.AddRequiredLapFinishCount(builder, RequiredLapFinishCount); + return EventContentDiceRaceTotalRewardExcel.EndEventContentDiceRaceTotalRewardExcel(builder); + } + + public static void StartEventContentDiceRaceTotalRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddRewardID(FlatBufferBuilder builder, long rewardID) { builder.AddLong(1, rewardID, 0); } + public static void AddRequiredLapFinishCount(FlatBufferBuilder builder, int requiredLapFinishCount) { builder.AddInt(2, requiredLapFinishCount, 0); } + public static void AddDisplayLapFinishCount(FlatBufferBuilder builder, int displayLapFinishCount) { builder.AddInt(3, displayLapFinishCount, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(4, 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(5, 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(6, 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 EndEventContentDiceRaceTotalRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceTotalRewardExcelVerify +{ + 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 /*RewardID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RequiredLapFinishCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DisplayLapFinishCount*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs new file mode 100644 index 0000000..e1d8db3 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentDiceRaceTotalRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentDiceRaceTotalRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentDiceRaceTotalRewardExcelTable GetRootAsEventContentDiceRaceTotalRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentDiceRaceTotalRewardExcelTable(_bb, new EventContentDiceRaceTotalRewardExcelTable()); } + public static EventContentDiceRaceTotalRewardExcelTable GetRootAsEventContentDiceRaceTotalRewardExcelTable(ByteBuffer _bb, EventContentDiceRaceTotalRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentDiceRaceTotalRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentDiceRaceTotalRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentDiceRaceTotalRewardExcel?)(new SCHALE.Common.FlatData.EventContentDiceRaceTotalRewardExcel()).__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 CreateEventContentDiceRaceTotalRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentDiceRaceTotalRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentDiceRaceTotalRewardExcelTable.EndEventContentDiceRaceTotalRewardExcelTable(builder); + } + + public static void StartEventContentDiceRaceTotalRewardExcelTable(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 EndEventContentDiceRaceTotalRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentDiceRaceTotalRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentDiceRaceTotalRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentExcel.cs b/SCHALE.Common/FlatData/EventContentExcel.cs new file mode 100644 index 0000000..744ef71 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentExcel.cs @@ -0,0 +1,77 @@ +// +// 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 EventContentExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentExcel GetRootAsEventContentExcel(ByteBuffer _bb) { return GetRootAsEventContentExcel(_bb, new EventContentExcel()); } + public static EventContentExcel GetRootAsEventContentExcel(ByteBuffer _bb, EventContentExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BgImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetBgImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetBgImagePathArray() { return __p.__vector_as_array(10); } + + public static Offset CreateEventContentExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset DevNameOffset = default(StringOffset), + long EventContentId = 0, + StringOffset BgImagePathOffset = default(StringOffset)) { + builder.StartTable(4); + EventContentExcel.AddEventContentId(builder, EventContentId); + EventContentExcel.AddId(builder, Id); + EventContentExcel.AddBgImagePath(builder, BgImagePathOffset); + EventContentExcel.AddDevName(builder, DevNameOffset); + return EventContentExcel.EndEventContentExcel(builder); + } + + public static void StartEventContentExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(2, eventContentId, 0); } + public static void AddBgImagePath(FlatBufferBuilder builder, StringOffset bgImagePathOffset) { builder.AddOffset(3, bgImagePathOffset.Value, 0); } + public static Offset EndEventContentExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*BgImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentExcelTable.cs b/SCHALE.Common/FlatData/EventContentExcelTable.cs new file mode 100644 index 0000000..082333b --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentExcelTable GetRootAsEventContentExcelTable(ByteBuffer _bb) { return GetRootAsEventContentExcelTable(_bb, new EventContentExcelTable()); } + public static EventContentExcelTable GetRootAsEventContentExcelTable(ByteBuffer _bb, EventContentExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentExcel?)(new SCHALE.Common.FlatData.EventContentExcel()).__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 CreateEventContentExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentExcelTable.AddDataList(builder, DataListOffset); + return EventContentExcelTable.EndEventContentExcelTable(builder); + } + + public static void StartEventContentExcelTable(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 EndEventContentExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs new file mode 100644 index 0000000..068c6b4 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaExcel.cs @@ -0,0 +1,66 @@ +// +// 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 EventContentFortuneGachaExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaExcel GetRootAsEventContentFortuneGachaExcel(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaExcel(_bb, new EventContentFortuneGachaExcel()); } + public static EventContentFortuneGachaExcel GetRootAsEventContentFortuneGachaExcel(ByteBuffer _bb, EventContentFortuneGachaExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int FortuneGachaGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconPath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(8); } + + public static Offset CreateEventContentFortuneGachaExcel(FlatBufferBuilder builder, + int FortuneGachaGroupId = 0, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset)) { + builder.StartTable(3); + EventContentFortuneGachaExcel.AddIconPath(builder, IconPathOffset); + EventContentFortuneGachaExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentFortuneGachaExcel.AddFortuneGachaGroupId(builder, FortuneGachaGroupId); + return EventContentFortuneGachaExcel.EndEventContentFortuneGachaExcel(builder); + } + + public static void StartEventContentFortuneGachaExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddFortuneGachaGroupId(FlatBufferBuilder builder, int fortuneGachaGroupId) { builder.AddInt(0, fortuneGachaGroupId, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(1, localizeEtcId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(2, iconPathOffset.Value, 0); } + public static Offset EndEventContentFortuneGachaExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FortuneGachaGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*IconPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs new file mode 100644 index 0000000..b282305 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentFortuneGachaExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaExcelTable GetRootAsEventContentFortuneGachaExcelTable(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaExcelTable(_bb, new EventContentFortuneGachaExcelTable()); } + public static EventContentFortuneGachaExcelTable GetRootAsEventContentFortuneGachaExcelTable(ByteBuffer _bb, EventContentFortuneGachaExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentFortuneGachaExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentFortuneGachaExcel?)(new SCHALE.Common.FlatData.EventContentFortuneGachaExcel()).__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 CreateEventContentFortuneGachaExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentFortuneGachaExcelTable.AddDataList(builder, DataListOffset); + return EventContentFortuneGachaExcelTable.EndEventContentFortuneGachaExcelTable(builder); + } + + public static void StartEventContentFortuneGachaExcelTable(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 EndEventContentFortuneGachaExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentFortuneGachaExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs new file mode 100644 index 0000000..8920d2f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcel.cs @@ -0,0 +1,104 @@ +// +// 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 EventContentFortuneGachaModifyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaModifyExcel GetRootAsEventContentFortuneGachaModifyExcel(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaModifyExcel(_bb, new EventContentFortuneGachaModifyExcel()); } + public static EventContentFortuneGachaModifyExcel GetRootAsEventContentFortuneGachaModifyExcel(ByteBuffer _bb, EventContentFortuneGachaModifyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaModifyExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TargetGrade { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ProbModifyStartCount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string UsePrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUsePrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetUsePrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetUsePrefabNameArray() { return __p.__vector_as_array(10); } + public string BucketImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBucketImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetBucketImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetBucketImagePathArray() { return __p.__vector_as_array(12); } + public string ShopBgImagePath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShopBgImagePathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetShopBgImagePathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetShopBgImagePathArray() { return __p.__vector_as_array(14); } + public string TitleLocalizeKey { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleLocalizeKeyBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetTitleLocalizeKeyBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetTitleLocalizeKeyArray() { return __p.__vector_as_array(16); } + + public static Offset CreateEventContentFortuneGachaModifyExcel(FlatBufferBuilder builder, + int EventContentId = 0, + int TargetGrade = 0, + int ProbModifyStartCount = 0, + StringOffset UsePrefabNameOffset = default(StringOffset), + StringOffset BucketImagePathOffset = default(StringOffset), + StringOffset ShopBgImagePathOffset = default(StringOffset), + StringOffset TitleLocalizeKeyOffset = default(StringOffset)) { + builder.StartTable(7); + EventContentFortuneGachaModifyExcel.AddTitleLocalizeKey(builder, TitleLocalizeKeyOffset); + EventContentFortuneGachaModifyExcel.AddShopBgImagePath(builder, ShopBgImagePathOffset); + EventContentFortuneGachaModifyExcel.AddBucketImagePath(builder, BucketImagePathOffset); + EventContentFortuneGachaModifyExcel.AddUsePrefabName(builder, UsePrefabNameOffset); + EventContentFortuneGachaModifyExcel.AddProbModifyStartCount(builder, ProbModifyStartCount); + EventContentFortuneGachaModifyExcel.AddTargetGrade(builder, TargetGrade); + EventContentFortuneGachaModifyExcel.AddEventContentId(builder, EventContentId); + return EventContentFortuneGachaModifyExcel.EndEventContentFortuneGachaModifyExcel(builder); + } + + public static void StartEventContentFortuneGachaModifyExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddEventContentId(FlatBufferBuilder builder, int eventContentId) { builder.AddInt(0, eventContentId, 0); } + public static void AddTargetGrade(FlatBufferBuilder builder, int targetGrade) { builder.AddInt(1, targetGrade, 0); } + public static void AddProbModifyStartCount(FlatBufferBuilder builder, int probModifyStartCount) { builder.AddInt(2, probModifyStartCount, 0); } + public static void AddUsePrefabName(FlatBufferBuilder builder, StringOffset usePrefabNameOffset) { builder.AddOffset(3, usePrefabNameOffset.Value, 0); } + public static void AddBucketImagePath(FlatBufferBuilder builder, StringOffset bucketImagePathOffset) { builder.AddOffset(4, bucketImagePathOffset.Value, 0); } + public static void AddShopBgImagePath(FlatBufferBuilder builder, StringOffset shopBgImagePathOffset) { builder.AddOffset(5, shopBgImagePathOffset.Value, 0); } + public static void AddTitleLocalizeKey(FlatBufferBuilder builder, StringOffset titleLocalizeKeyOffset) { builder.AddOffset(6, titleLocalizeKeyOffset.Value, 0); } + public static Offset EndEventContentFortuneGachaModifyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaModifyExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*TargetGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ProbModifyStartCount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*UsePrefabName*/, false) + && verifier.VerifyString(tablePos, 12 /*BucketImagePath*/, false) + && verifier.VerifyString(tablePos, 14 /*ShopBgImagePath*/, false) + && verifier.VerifyString(tablePos, 16 /*TitleLocalizeKey*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs new file mode 100644 index 0000000..2d65229 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaModifyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentFortuneGachaModifyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaModifyExcelTable GetRootAsEventContentFortuneGachaModifyExcelTable(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaModifyExcelTable(_bb, new EventContentFortuneGachaModifyExcelTable()); } + public static EventContentFortuneGachaModifyExcelTable GetRootAsEventContentFortuneGachaModifyExcelTable(ByteBuffer _bb, EventContentFortuneGachaModifyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaModifyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentFortuneGachaModifyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentFortuneGachaModifyExcel?)(new SCHALE.Common.FlatData.EventContentFortuneGachaModifyExcel()).__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 CreateEventContentFortuneGachaModifyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentFortuneGachaModifyExcelTable.AddDataList(builder, DataListOffset); + return EventContentFortuneGachaModifyExcelTable.EndEventContentFortuneGachaModifyExcelTable(builder); + } + + public static void StartEventContentFortuneGachaModifyExcelTable(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 EndEventContentFortuneGachaModifyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaModifyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentFortuneGachaModifyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs new file mode 100644 index 0000000..bc0c9c0 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcel.cs @@ -0,0 +1,141 @@ +// +// 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 EventContentFortuneGachaShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaShopExcel GetRootAsEventContentFortuneGachaShopExcel(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaShopExcel(_bb, new EventContentFortuneGachaShopExcel()); } + public static EventContentFortuneGachaShopExcel GetRootAsEventContentFortuneGachaShopExcel(ByteBuffer _bb, EventContentFortuneGachaShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaShopExcel __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 Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Grade { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CostGoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsLegacy { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int FortuneGachaGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Prob { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ProbModifyValue { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ProbModifyLimit { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(22); 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(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(22); 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(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(24); } + public long RewardParcelAmount(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(26); } + + public static Offset CreateEventContentFortuneGachaShopExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + int Grade = 0, + long CostGoodsId = 0, + bool IsLegacy = false, + int FortuneGachaGroupId = 0, + int Prob = 0, + int ProbModifyValue = 0, + int ProbModifyLimit = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(12); + EventContentFortuneGachaShopExcel.AddCostGoodsId(builder, CostGoodsId); + EventContentFortuneGachaShopExcel.AddId(builder, Id); + EventContentFortuneGachaShopExcel.AddEventContentId(builder, EventContentId); + EventContentFortuneGachaShopExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentFortuneGachaShopExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentFortuneGachaShopExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentFortuneGachaShopExcel.AddProbModifyLimit(builder, ProbModifyLimit); + EventContentFortuneGachaShopExcel.AddProbModifyValue(builder, ProbModifyValue); + EventContentFortuneGachaShopExcel.AddProb(builder, Prob); + EventContentFortuneGachaShopExcel.AddFortuneGachaGroupId(builder, FortuneGachaGroupId); + EventContentFortuneGachaShopExcel.AddGrade(builder, Grade); + EventContentFortuneGachaShopExcel.AddIsLegacy(builder, IsLegacy); + return EventContentFortuneGachaShopExcel.EndEventContentFortuneGachaShopExcel(builder); + } + + public static void StartEventContentFortuneGachaShopExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddGrade(FlatBufferBuilder builder, int grade) { builder.AddInt(2, grade, 0); } + public static void AddCostGoodsId(FlatBufferBuilder builder, long costGoodsId) { builder.AddLong(3, costGoodsId, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(4, isLegacy, false); } + public static void AddFortuneGachaGroupId(FlatBufferBuilder builder, int fortuneGachaGroupId) { builder.AddInt(5, fortuneGachaGroupId, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(6, prob, 0); } + public static void AddProbModifyValue(FlatBufferBuilder builder, int probModifyValue) { builder.AddInt(7, probModifyValue, 0); } + public static void AddProbModifyLimit(FlatBufferBuilder builder, int probModifyLimit) { builder.AddInt(8, probModifyLimit, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(9, 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(10, 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(11, 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 EndEventContentFortuneGachaShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaShopExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Grade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CostGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*FortuneGachaGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ProbModifyValue*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*ProbModifyLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs new file mode 100644 index 0000000..0b21a6d --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentFortuneGachaShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentFortuneGachaShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentFortuneGachaShopExcelTable GetRootAsEventContentFortuneGachaShopExcelTable(ByteBuffer _bb) { return GetRootAsEventContentFortuneGachaShopExcelTable(_bb, new EventContentFortuneGachaShopExcelTable()); } + public static EventContentFortuneGachaShopExcelTable GetRootAsEventContentFortuneGachaShopExcelTable(ByteBuffer _bb, EventContentFortuneGachaShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentFortuneGachaShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentFortuneGachaShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentFortuneGachaShopExcel?)(new SCHALE.Common.FlatData.EventContentFortuneGachaShopExcel()).__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 CreateEventContentFortuneGachaShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentFortuneGachaShopExcelTable.AddDataList(builder, DataListOffset); + return EventContentFortuneGachaShopExcelTable.EndEventContentFortuneGachaShopExcelTable(builder); + } + + public static void StartEventContentFortuneGachaShopExcelTable(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 EndEventContentFortuneGachaShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentFortuneGachaShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentFortuneGachaShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentItemType.cs b/SCHALE.Common/FlatData/EventContentItemType.cs new file mode 100644 index 0000000..28d935c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentItemType.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentItemType : int +{ + EventPoint = 0, + EventToken1 = 1, + EventToken2 = 2, + EventToken3 = 3, + EventToken4 = 4, + EventToken5 = 5, + EventMeetUpTicket = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs b/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs new file mode 100644 index 0000000..50c423f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLobbyMenuExcel.cs @@ -0,0 +1,103 @@ +// +// 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 EventContentLobbyMenuExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLobbyMenuExcel GetRootAsEventContentLobbyMenuExcel(ByteBuffer _bb) { return GetRootAsEventContentLobbyMenuExcel(_bb, new EventContentLobbyMenuExcel()); } + public static EventContentLobbyMenuExcel GetRootAsEventContentLobbyMenuExcel(ByteBuffer _bb, EventContentLobbyMenuExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLobbyMenuExcel __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.EventContentType EventContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } + public string IconSpriteName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconSpriteNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIconSpriteNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIconSpriteNameArray() { return __p.__vector_as_array(8); } + public string ButtonText { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetButtonTextBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetButtonTextBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetButtonTextArray() { return __p.__vector_as_array(10); } + public int DisplayOrder { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float IconOffsetX { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float IconOffsetY { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string ReddotSpriteName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetReddotSpriteNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetReddotSpriteNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetReddotSpriteNameArray() { return __p.__vector_as_array(18); } + + public static Offset CreateEventContentLobbyMenuExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentType EventContentType = SCHALE.Common.FlatData.EventContentType.Stage, + StringOffset IconSpriteNameOffset = default(StringOffset), + StringOffset ButtonTextOffset = default(StringOffset), + int DisplayOrder = 0, + float IconOffsetX = 0.0f, + float IconOffsetY = 0.0f, + StringOffset ReddotSpriteNameOffset = default(StringOffset)) { + builder.StartTable(8); + EventContentLobbyMenuExcel.AddEventContentId(builder, EventContentId); + EventContentLobbyMenuExcel.AddReddotSpriteName(builder, ReddotSpriteNameOffset); + EventContentLobbyMenuExcel.AddIconOffsetY(builder, IconOffsetY); + EventContentLobbyMenuExcel.AddIconOffsetX(builder, IconOffsetX); + EventContentLobbyMenuExcel.AddDisplayOrder(builder, DisplayOrder); + EventContentLobbyMenuExcel.AddButtonText(builder, ButtonTextOffset); + EventContentLobbyMenuExcel.AddIconSpriteName(builder, IconSpriteNameOffset); + EventContentLobbyMenuExcel.AddEventContentType(builder, EventContentType); + return EventContentLobbyMenuExcel.EndEventContentLobbyMenuExcel(builder); + } + + public static void StartEventContentLobbyMenuExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType eventContentType) { builder.AddInt(1, (int)eventContentType, 0); } + public static void AddIconSpriteName(FlatBufferBuilder builder, StringOffset iconSpriteNameOffset) { builder.AddOffset(2, iconSpriteNameOffset.Value, 0); } + public static void AddButtonText(FlatBufferBuilder builder, StringOffset buttonTextOffset) { builder.AddOffset(3, buttonTextOffset.Value, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(4, displayOrder, 0); } + public static void AddIconOffsetX(FlatBufferBuilder builder, float iconOffsetX) { builder.AddFloat(5, iconOffsetX, 0.0f); } + public static void AddIconOffsetY(FlatBufferBuilder builder, float iconOffsetY) { builder.AddFloat(6, iconOffsetY, 0.0f); } + public static void AddReddotSpriteName(FlatBufferBuilder builder, StringOffset reddotSpriteNameOffset) { builder.AddOffset(7, reddotSpriteNameOffset.Value, 0); } + public static Offset EndEventContentLobbyMenuExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLobbyMenuExcelVerify +{ + 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 /*EventContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*IconSpriteName*/, false) + && verifier.VerifyString(tablePos, 10 /*ButtonText*/, false) + && verifier.VerifyField(tablePos, 12 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*IconOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IconOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*ReddotSpriteName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs b/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs new file mode 100644 index 0000000..a966db8 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLobbyMenuExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentLobbyMenuExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLobbyMenuExcelTable GetRootAsEventContentLobbyMenuExcelTable(ByteBuffer _bb) { return GetRootAsEventContentLobbyMenuExcelTable(_bb, new EventContentLobbyMenuExcelTable()); } + public static EventContentLobbyMenuExcelTable GetRootAsEventContentLobbyMenuExcelTable(ByteBuffer _bb, EventContentLobbyMenuExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLobbyMenuExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentLobbyMenuExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentLobbyMenuExcel?)(new SCHALE.Common.FlatData.EventContentLobbyMenuExcel()).__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 CreateEventContentLobbyMenuExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentLobbyMenuExcelTable.AddDataList(builder, DataListOffset); + return EventContentLobbyMenuExcelTable.EndEventContentLobbyMenuExcelTable(builder); + } + + public static void StartEventContentLobbyMenuExcelTable(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 EndEventContentLobbyMenuExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLobbyMenuExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentLobbyMenuExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentLocationExcel.cs b/SCHALE.Common/FlatData/EventContentLocationExcel.cs new file mode 100644 index 0000000..c180628 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLocationExcel.cs @@ -0,0 +1,106 @@ +// +// 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 EventContentLocationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLocationExcel GetRootAsEventContentLocationExcel(ByteBuffer _bb) { return GetRootAsEventContentLocationExcel(_bb, new EventContentLocationExcel()); } + public static EventContentLocationExcel GetRootAsEventContentLocationExcel(ByteBuffer _bb, EventContentLocationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLocationExcel __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 Id { 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 string PrefabPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetPrefabPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetPrefabPathArray() { return __p.__vector_as_array(10); } + public int LocationResetScheduleCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ScheduleEventPointCostParcelId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScheduleEventPointCostParcelAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + 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 InformationGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentLocationExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + uint LocalizeEtcId = 0, + StringOffset PrefabPathOffset = default(StringOffset), + int LocationResetScheduleCount = 0, + SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ScheduleEventPointCostParcelId = 0, + long ScheduleEventPointCostParcelAmount = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long InformationGroupId = 0) { + builder.StartTable(11); + EventContentLocationExcel.AddInformationGroupId(builder, InformationGroupId); + EventContentLocationExcel.AddRewardParcelId(builder, RewardParcelId); + EventContentLocationExcel.AddScheduleEventPointCostParcelAmount(builder, ScheduleEventPointCostParcelAmount); + EventContentLocationExcel.AddScheduleEventPointCostParcelId(builder, ScheduleEventPointCostParcelId); + EventContentLocationExcel.AddId(builder, Id); + EventContentLocationExcel.AddEventContentId(builder, EventContentId); + EventContentLocationExcel.AddRewardParcelType(builder, RewardParcelType); + EventContentLocationExcel.AddScheduleEventPointCostParcelType(builder, ScheduleEventPointCostParcelType); + EventContentLocationExcel.AddLocationResetScheduleCount(builder, LocationResetScheduleCount); + EventContentLocationExcel.AddPrefabPath(builder, PrefabPathOffset); + EventContentLocationExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return EventContentLocationExcel.EndEventContentLocationExcel(builder); + } + + public static void StartEventContentLocationExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddPrefabPath(FlatBufferBuilder builder, StringOffset prefabPathOffset) { builder.AddOffset(3, prefabPathOffset.Value, 0); } + public static void AddLocationResetScheduleCount(FlatBufferBuilder builder, int locationResetScheduleCount) { builder.AddInt(4, locationResetScheduleCount, 0); } + public static void AddScheduleEventPointCostParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType scheduleEventPointCostParcelType) { builder.AddInt(5, (int)scheduleEventPointCostParcelType, 0); } + public static void AddScheduleEventPointCostParcelId(FlatBufferBuilder builder, long scheduleEventPointCostParcelId) { builder.AddLong(6, scheduleEventPointCostParcelId, 0); } + public static void AddScheduleEventPointCostParcelAmount(FlatBufferBuilder builder, long scheduleEventPointCostParcelAmount) { builder.AddLong(7, scheduleEventPointCostParcelAmount, 0); } + 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 AddInformationGroupId(FlatBufferBuilder builder, long informationGroupId) { builder.AddLong(10, informationGroupId, 0); } + public static Offset EndEventContentLocationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLocationExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*PrefabPath*/, false) + && verifier.VerifyField(tablePos, 12 /*LocationResetScheduleCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ScheduleEventPointCostParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ScheduleEventPointCostParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*ScheduleEventPointCostParcelAmount*/, 8 /*long*/, 8, 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 /*InformationGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs b/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs new file mode 100644 index 0000000..91ea91f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLocationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentLocationExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLocationExcelTable GetRootAsEventContentLocationExcelTable(ByteBuffer _bb) { return GetRootAsEventContentLocationExcelTable(_bb, new EventContentLocationExcelTable()); } + public static EventContentLocationExcelTable GetRootAsEventContentLocationExcelTable(ByteBuffer _bb, EventContentLocationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLocationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentLocationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentLocationExcel?)(new SCHALE.Common.FlatData.EventContentLocationExcel()).__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 CreateEventContentLocationExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentLocationExcelTable.AddDataList(builder, DataListOffset); + return EventContentLocationExcelTable.EndEventContentLocationExcelTable(builder); + } + + public static void StartEventContentLocationExcelTable(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 EndEventContentLocationExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLocationExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentLocationExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs b/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs new file mode 100644 index 0000000..d074452 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLocationRewardExcel.cs @@ -0,0 +1,270 @@ +// +// 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 EventContentLocationRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLocationRewardExcel GetRootAsEventContentLocationRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentLocationRewardExcel(_bb, new EventContentLocationRewardExcel()); } + public static EventContentLocationRewardExcel GetRootAsEventContentLocationRewardExcel(ByteBuffer _bb, EventContentLocationRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLocationRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Location { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocationBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetLocationBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetLocationArray() { return __p.__vector_as_array(4); } + public long ScheduleGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OrderInGroup { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ProgressTexture { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProgressTextureBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetProgressTextureBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetProgressTextureArray() { return __p.__vector_as_array(12); } + public uint VoiceId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(14); } + public uint LocalizeEtcId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long LocationRank { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorExp { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SecretStoneAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SecretStoneProb { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtraFavorExp { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExtraFavorExpProb { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ExtraRewardParcelType(int j) { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ExtraRewardParcelTypeLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardParcelTypeBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetExtraRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetExtraRewardParcelTypeArray() { int o = __p.__offset(30); 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 ExtraRewardParcelId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardParcelIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardParcelIdBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetExtraRewardParcelIdBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetExtraRewardParcelIdArray() { return __p.__vector_as_array(32); } + public long ExtraRewardAmount(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardAmountLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardAmountBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetExtraRewardAmountBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetExtraRewardAmountArray() { return __p.__vector_as_array(34); } + public long ExtraRewardProb(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExtraRewardProbLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExtraRewardProbBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetExtraRewardProbBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetExtraRewardProbArray() { return __p.__vector_as_array(36); } + public bool IsExtraRewardDisplayed(int j) { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int IsExtraRewardDisplayedLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetIsExtraRewardDisplayedBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public bool[] GetIsExtraRewardDisplayedArray() { return __p.__vector_as_array(38); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(40); 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(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(40, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(40); 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(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(42, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(42); } + public long RewardAmount(int j) { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(44, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(44); } + + public static Offset CreateEventContentLocationRewardExcel(FlatBufferBuilder builder, + StringOffset LocationOffset = default(StringOffset), + long ScheduleGroupId = 0, + long OrderInGroup = 0, + long Id = 0, + StringOffset ProgressTextureOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + uint LocalizeEtcId = 0, + long LocationRank = 0, + long FavorExp = 0, + long SecretStoneAmount = 0, + long SecretStoneProb = 0, + long ExtraFavorExp = 0, + long ExtraFavorExpProb = 0, + VectorOffset ExtraRewardParcelTypeOffset = default(VectorOffset), + VectorOffset ExtraRewardParcelIdOffset = default(VectorOffset), + VectorOffset ExtraRewardAmountOffset = default(VectorOffset), + VectorOffset ExtraRewardProbOffset = default(VectorOffset), + VectorOffset IsExtraRewardDisplayedOffset = default(VectorOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(21); + EventContentLocationRewardExcel.AddExtraFavorExpProb(builder, ExtraFavorExpProb); + EventContentLocationRewardExcel.AddExtraFavorExp(builder, ExtraFavorExp); + EventContentLocationRewardExcel.AddSecretStoneProb(builder, SecretStoneProb); + EventContentLocationRewardExcel.AddSecretStoneAmount(builder, SecretStoneAmount); + EventContentLocationRewardExcel.AddFavorExp(builder, FavorExp); + EventContentLocationRewardExcel.AddLocationRank(builder, LocationRank); + EventContentLocationRewardExcel.AddId(builder, Id); + EventContentLocationRewardExcel.AddOrderInGroup(builder, OrderInGroup); + EventContentLocationRewardExcel.AddScheduleGroupId(builder, ScheduleGroupId); + EventContentLocationRewardExcel.AddRewardAmount(builder, RewardAmountOffset); + EventContentLocationRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentLocationRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentLocationRewardExcel.AddIsExtraRewardDisplayed(builder, IsExtraRewardDisplayedOffset); + EventContentLocationRewardExcel.AddExtraRewardProb(builder, ExtraRewardProbOffset); + EventContentLocationRewardExcel.AddExtraRewardAmount(builder, ExtraRewardAmountOffset); + EventContentLocationRewardExcel.AddExtraRewardParcelId(builder, ExtraRewardParcelIdOffset); + EventContentLocationRewardExcel.AddExtraRewardParcelType(builder, ExtraRewardParcelTypeOffset); + EventContentLocationRewardExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentLocationRewardExcel.AddVoiceId(builder, VoiceIdOffset); + EventContentLocationRewardExcel.AddProgressTexture(builder, ProgressTextureOffset); + EventContentLocationRewardExcel.AddLocation(builder, LocationOffset); + return EventContentLocationRewardExcel.EndEventContentLocationRewardExcel(builder); + } + + public static void StartEventContentLocationRewardExcel(FlatBufferBuilder builder) { builder.StartTable(21); } + public static void AddLocation(FlatBufferBuilder builder, StringOffset locationOffset) { builder.AddOffset(0, locationOffset.Value, 0); } + public static void AddScheduleGroupId(FlatBufferBuilder builder, long scheduleGroupId) { builder.AddLong(1, scheduleGroupId, 0); } + public static void AddOrderInGroup(FlatBufferBuilder builder, long orderInGroup) { builder.AddLong(2, orderInGroup, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(3, id, 0); } + public static void AddProgressTexture(FlatBufferBuilder builder, StringOffset progressTextureOffset) { builder.AddOffset(4, progressTextureOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(5, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(6, localizeEtcId, 0); } + public static void AddLocationRank(FlatBufferBuilder builder, long locationRank) { builder.AddLong(7, locationRank, 0); } + public static void AddFavorExp(FlatBufferBuilder builder, long favorExp) { builder.AddLong(8, favorExp, 0); } + public static void AddSecretStoneAmount(FlatBufferBuilder builder, long secretStoneAmount) { builder.AddLong(9, secretStoneAmount, 0); } + public static void AddSecretStoneProb(FlatBufferBuilder builder, long secretStoneProb) { builder.AddLong(10, secretStoneProb, 0); } + public static void AddExtraFavorExp(FlatBufferBuilder builder, long extraFavorExp) { builder.AddLong(11, extraFavorExp, 0); } + public static void AddExtraFavorExpProb(FlatBufferBuilder builder, long extraFavorExpProb) { builder.AddLong(12, extraFavorExpProb, 0); } + public static void AddExtraRewardParcelType(FlatBufferBuilder builder, VectorOffset extraRewardParcelTypeOffset) { builder.AddOffset(13, extraRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateExtraRewardParcelTypeVector(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 CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExtraRewardParcelId(FlatBufferBuilder builder, VectorOffset extraRewardParcelIdOffset) { builder.AddOffset(14, extraRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateExtraRewardParcelIdVector(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 CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExtraRewardAmount(FlatBufferBuilder builder, VectorOffset extraRewardAmountOffset) { builder.AddOffset(15, extraRewardAmountOffset.Value, 0); } + public static VectorOffset CreateExtraRewardAmountVector(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 CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExtraRewardProb(FlatBufferBuilder builder, VectorOffset extraRewardProbOffset) { builder.AddOffset(16, extraRewardProbOffset.Value, 0); } + public static VectorOffset CreateExtraRewardProbVector(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 CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExtraRewardProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExtraRewardProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIsExtraRewardDisplayed(FlatBufferBuilder builder, VectorOffset isExtraRewardDisplayedOffset) { builder.AddOffset(17, isExtraRewardDisplayedOffset.Value, 0); } + public static VectorOffset CreateIsExtraRewardDisplayedVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIsExtraRewardDisplayedVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIsExtraRewardDisplayedVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(18, 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(19, 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 AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(20, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEventContentLocationRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLocationRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Location*/, false) + && verifier.VerifyField(tablePos, 6 /*ScheduleGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*OrderInGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*ProgressTexture*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 16 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*LocationRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*FavorExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*SecretStoneAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*SecretStoneProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ExtraFavorExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ExtraFavorExpProb*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*ExtraRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*ExtraRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*ExtraRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*ExtraRewardProb*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*IsExtraRewardDisplayed*/, 1 /*bool*/, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 44 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs new file mode 100644 index 0000000..d88a613 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentLocationRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentLocationRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentLocationRewardExcelTable GetRootAsEventContentLocationRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentLocationRewardExcelTable(_bb, new EventContentLocationRewardExcelTable()); } + public static EventContentLocationRewardExcelTable GetRootAsEventContentLocationRewardExcelTable(ByteBuffer _bb, EventContentLocationRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentLocationRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentLocationRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentLocationRewardExcel?)(new SCHALE.Common.FlatData.EventContentLocationRewardExcel()).__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 CreateEventContentLocationRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentLocationRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentLocationRewardExcelTable.EndEventContentLocationRewardExcelTable(builder); + } + + public static void StartEventContentLocationRewardExcelTable(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 EndEventContentLocationRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentLocationRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentLocationRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMeetupExcel.cs b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs new file mode 100644 index 0000000..d8424d2 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs @@ -0,0 +1,92 @@ +// +// 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 EventContentMeetupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMeetupExcel GetRootAsEventContentMeetupExcel(ByteBuffer _bb) { return GetRootAsEventContentMeetupExcel(_bb, new EventContentMeetupExcel()); } + public static EventContentMeetupExcel GetRootAsEventContentMeetupExcel(ByteBuffer _bb, EventContentMeetupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMeetupExcel __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 CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConditionScenarioGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MeetupConditionType ConditionType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionType.None; } } + public long ConditionParameter(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionParameterLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionParameterBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetConditionParameterBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetConditionParameterArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionPrintType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionPrintType.None; } } + + public static Offset CreateEventContentMeetupExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long CharacterId = 0, + long ConditionScenarioGroupId = 0, + SCHALE.Common.FlatData.MeetupConditionType ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None, + VectorOffset ConditionParameterOffset = default(VectorOffset), + SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None) { + builder.StartTable(7); + EventContentMeetupExcel.AddConditionScenarioGroupId(builder, ConditionScenarioGroupId); + EventContentMeetupExcel.AddCharacterId(builder, CharacterId); + EventContentMeetupExcel.AddEventContentId(builder, EventContentId); + EventContentMeetupExcel.AddId(builder, Id); + EventContentMeetupExcel.AddConditionPrintType(builder, ConditionPrintType); + EventContentMeetupExcel.AddConditionParameter(builder, ConditionParameterOffset); + EventContentMeetupExcel.AddConditionType(builder, ConditionType); + return EventContentMeetupExcel.EndEventContentMeetupExcel(builder); + } + + public static void StartEventContentMeetupExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + 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 AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(2, characterId, 0); } + public static void AddConditionScenarioGroupId(FlatBufferBuilder builder, long conditionScenarioGroupId) { builder.AddLong(3, conditionScenarioGroupId, 0); } + public static void AddConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MeetupConditionType conditionType) { builder.AddInt(4, (int)conditionType, 0); } + public static void AddConditionParameter(FlatBufferBuilder builder, VectorOffset conditionParameterOffset) { builder.AddOffset(5, conditionParameterOffset.Value, 0); } + public static VectorOffset CreateConditionParameterVector(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 CreateConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionPrintType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MeetupConditionPrintType conditionPrintType) { builder.AddInt(6, (int)conditionPrintType, 0); } + public static Offset EndEventContentMeetupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMeetupExcelVerify +{ + 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 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ConditionScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ConditionType*/, 4 /*SCHALE.Common.FlatData.MeetupConditionType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*ConditionPrintType*/, 4 /*SCHALE.Common.FlatData.MeetupConditionPrintType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs b/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs new file mode 100644 index 0000000..2fe7911 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMeetupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentMeetupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMeetupExcelTable GetRootAsEventContentMeetupExcelTable(ByteBuffer _bb) { return GetRootAsEventContentMeetupExcelTable(_bb, new EventContentMeetupExcelTable()); } + public static EventContentMeetupExcelTable GetRootAsEventContentMeetupExcelTable(ByteBuffer _bb, EventContentMeetupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMeetupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentMeetupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentMeetupExcel?)(new SCHALE.Common.FlatData.EventContentMeetupExcel()).__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 CreateEventContentMeetupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentMeetupExcelTable.AddDataList(builder, DataListOffset); + return EventContentMeetupExcelTable.EndEventContentMeetupExcelTable(builder); + } + + public static void StartEventContentMeetupExcelTable(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 EndEventContentMeetupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMeetupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentMeetupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs new file mode 100644 index 0000000..3fa7c89 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcel.cs @@ -0,0 +1,60 @@ +// +// 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 EventContentMiniEventShortCutExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMiniEventShortCutExcel GetRootAsEventContentMiniEventShortCutExcel(ByteBuffer _bb) { return GetRootAsEventContentMiniEventShortCutExcel(_bb, new EventContentMiniEventShortCutExcel()); } + public static EventContentMiniEventShortCutExcel GetRootAsEventContentMiniEventShortCutExcel(ByteBuffer _bb, EventContentMiniEventShortCutExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMiniEventShortCutExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.EventTargetType ShorcutContentType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EventTargetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventTargetType.WeekDungeon; } } + + public static Offset CreateEventContentMiniEventShortCutExcel(FlatBufferBuilder builder, + int Id = 0, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.EventTargetType ShorcutContentType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon) { + builder.StartTable(3); + EventContentMiniEventShortCutExcel.AddShorcutContentType(builder, ShorcutContentType); + EventContentMiniEventShortCutExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentMiniEventShortCutExcel.AddId(builder, Id); + return EventContentMiniEventShortCutExcel.EndEventContentMiniEventShortCutExcel(builder); + } + + public static void StartEventContentMiniEventShortCutExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(1, localizeEtcId, 0); } + public static void AddShorcutContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventTargetType shorcutContentType) { builder.AddInt(2, (int)shorcutContentType, 0); } + public static Offset EndEventContentMiniEventShortCutExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMiniEventShortCutExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ShorcutContentType*/, 4 /*SCHALE.Common.FlatData.EventTargetType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs new file mode 100644 index 0000000..0017097 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMiniEventShortCutExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentMiniEventShortCutExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMiniEventShortCutExcelTable GetRootAsEventContentMiniEventShortCutExcelTable(ByteBuffer _bb) { return GetRootAsEventContentMiniEventShortCutExcelTable(_bb, new EventContentMiniEventShortCutExcelTable()); } + public static EventContentMiniEventShortCutExcelTable GetRootAsEventContentMiniEventShortCutExcelTable(ByteBuffer _bb, EventContentMiniEventShortCutExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMiniEventShortCutExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentMiniEventShortCutExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentMiniEventShortCutExcel?)(new SCHALE.Common.FlatData.EventContentMiniEventShortCutExcel()).__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 CreateEventContentMiniEventShortCutExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentMiniEventShortCutExcelTable.AddDataList(builder, DataListOffset); + return EventContentMiniEventShortCutExcelTable.EndEventContentMiniEventShortCutExcelTable(builder); + } + + public static void StartEventContentMiniEventShortCutExcelTable(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 EndEventContentMiniEventShortCutExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMiniEventShortCutExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentMiniEventShortCutExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs new file mode 100644 index 0000000..ec20440 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcel.cs @@ -0,0 +1,60 @@ +// +// 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 EventContentMiniEventTokenExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMiniEventTokenExcel GetRootAsEventContentMiniEventTokenExcel(ByteBuffer _bb) { return GetRootAsEventContentMiniEventTokenExcel(_bb, new EventContentMiniEventTokenExcel()); } + public static EventContentMiniEventTokenExcel GetRootAsEventContentMiniEventTokenExcel(ByteBuffer _bb, EventContentMiniEventTokenExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMiniEventTokenExcel __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 ItemUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaximumAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentMiniEventTokenExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long ItemUniqueId = 0, + long MaximumAmount = 0) { + builder.StartTable(3); + EventContentMiniEventTokenExcel.AddMaximumAmount(builder, MaximumAmount); + EventContentMiniEventTokenExcel.AddItemUniqueId(builder, ItemUniqueId); + EventContentMiniEventTokenExcel.AddEventContentId(builder, EventContentId); + return EventContentMiniEventTokenExcel.EndEventContentMiniEventTokenExcel(builder); + } + + public static void StartEventContentMiniEventTokenExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddItemUniqueId(FlatBufferBuilder builder, long itemUniqueId) { builder.AddLong(1, itemUniqueId, 0); } + public static void AddMaximumAmount(FlatBufferBuilder builder, long maximumAmount) { builder.AddLong(2, maximumAmount, 0); } + public static Offset EndEventContentMiniEventTokenExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMiniEventTokenExcelVerify +{ + 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 /*ItemUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*MaximumAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs new file mode 100644 index 0000000..8c99224 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMiniEventTokenExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentMiniEventTokenExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMiniEventTokenExcelTable GetRootAsEventContentMiniEventTokenExcelTable(ByteBuffer _bb) { return GetRootAsEventContentMiniEventTokenExcelTable(_bb, new EventContentMiniEventTokenExcelTable()); } + public static EventContentMiniEventTokenExcelTable GetRootAsEventContentMiniEventTokenExcelTable(ByteBuffer _bb, EventContentMiniEventTokenExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMiniEventTokenExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentMiniEventTokenExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentMiniEventTokenExcel?)(new SCHALE.Common.FlatData.EventContentMiniEventTokenExcel()).__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 CreateEventContentMiniEventTokenExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentMiniEventTokenExcelTable.AddDataList(builder, DataListOffset); + return EventContentMiniEventTokenExcelTable.EndEventContentMiniEventTokenExcelTable(builder); + } + + public static void StartEventContentMiniEventTokenExcelTable(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 EndEventContentMiniEventTokenExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMiniEventTokenExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentMiniEventTokenExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMissionExcel.cs b/SCHALE.Common/FlatData/EventContentMissionExcel.cs new file mode 100644 index 0000000..b797d7d --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMissionExcel.cs @@ -0,0 +1,345 @@ +// +// 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 EventContentMissionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMissionExcel GetRootAsEventContentMissionExcel(ByteBuffer _bb) { return GetRootAsEventContentMissionExcel(_bb, new EventContentMissionExcel()); } + public static EventContentMissionExcel GetRootAsEventContentMissionExcel(ByteBuffer _bb, EventContentMissionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMissionExcel __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 string GroupName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroupNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetGroupNameBytes() { return __p.__vector_as_arraysegment(10); } +#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 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; } } +#if ENABLE_SPAN_T + public Span GetToastImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetToastImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetToastImagePathArray() { return __p.__vector_as_array(20); } + public bool ViewFlag { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long DisplayOrder { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreMissionId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PreMissionIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPreMissionIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetPreMissionIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetPreMissionIdArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } + public long AccountLevel { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShortcutUI(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUILength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } + public long ChallengeStageShortcut { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public bool IsCompleteExtensionTime { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CompleteConditionCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CompleteConditionParameter(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CompleteConditionParameterLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterBytes() { return __p.__vector_as_span(42, 8); } +#else + public ArraySegment? GetCompleteConditionParameterBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public long[] GetCompleteConditionParameterArray() { return __p.__vector_as_array(42); } + public SCHALE.Common.FlatData.Tag CompleteConditionParameterTag(int j) { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CompleteConditionParameterTagLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterTagBytes() { return __p.__vector_as_span(44, 4); } +#else + public ArraySegment? GetCompleteConditionParameterTagBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public SCHALE.Common.FlatData.Tag[] GetCompleteConditionParameterTagArray() { int o = __p.__offset(44); 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 string RewardIcon { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardIconBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetRewardIconBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetRewardIconArray() { return __p.__vector_as_array(46); } + public long CompleteConditionMissionId(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CompleteConditionMissionIdLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionMissionIdBytes() { return __p.__vector_as_span(48, 8); } +#else + public ArraySegment? GetCompleteConditionMissionIdBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public long[] GetCompleteConditionMissionIdArray() { return __p.__vector_as_array(48); } + public long CompleteConditionMissionCount { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType MissionRewardParcelType(int j) { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int MissionRewardParcelTypeLength { get { int o = __p.__offset(52); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelTypeBytes() { return __p.__vector_as_span(52, 4); } +#else + public ArraySegment? GetMissionRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetMissionRewardParcelTypeArray() { int o = __p.__offset(52); 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 MissionRewardParcelId(int j) { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MissionRewardParcelIdLength { get { int o = __p.__offset(54); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelIdBytes() { return __p.__vector_as_span(54, 8); } +#else + public ArraySegment? GetMissionRewardParcelIdBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public long[] GetMissionRewardParcelIdArray() { return __p.__vector_as_array(54); } + public int MissionRewardAmount(int j) { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MissionRewardAmountLength { get { int o = __p.__offset(56); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardAmountBytes() { return __p.__vector_as_span(56, 4); } +#else + public ArraySegment? GetMissionRewardAmountBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public int[] GetMissionRewardAmountArray() { return __p.__vector_as_array(56); } + public SCHALE.Common.FlatData.ParcelType ConditionRewardParcelType(int j) { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ConditionRewardParcelTypeLength { get { int o = __p.__offset(58); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionRewardParcelTypeBytes() { return __p.__vector_as_span(58, 4); } +#else + public ArraySegment? GetConditionRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetConditionRewardParcelTypeArray() { int o = __p.__offset(58); 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 ConditionRewardParcelId(int j) { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionRewardParcelIdLength { get { int o = __p.__offset(60); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionRewardParcelIdBytes() { return __p.__vector_as_span(60, 8); } +#else + public ArraySegment? GetConditionRewardParcelIdBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public long[] GetConditionRewardParcelIdArray() { return __p.__vector_as_array(60); } + public int ConditionRewardAmount(int j) { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ConditionRewardAmountLength { get { int o = __p.__offset(62); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionRewardAmountBytes() { return __p.__vector_as_span(62, 4); } +#else + public ArraySegment? GetConditionRewardAmountBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public int[] GetConditionRewardAmountArray() { return __p.__vector_as_array(62); } + + public static Offset CreateEventContentMissionExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long GroupId = 0, + StringOffset GroupNameOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, + StringOffset DescriptionOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, + StringOffset ToastImagePathOffset = default(StringOffset), + bool ViewFlag = false, + long DisplayOrder = 0, + VectorOffset PreMissionIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, + long AccountLevel = 0, + VectorOffset ShortcutUIOffset = default(VectorOffset), + long ChallengeStageShortcut = 0, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + bool IsCompleteExtensionTime = false, + long CompleteConditionCount = 0, + VectorOffset CompleteConditionParameterOffset = default(VectorOffset), + VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), + StringOffset RewardIconOffset = default(StringOffset), + VectorOffset CompleteConditionMissionIdOffset = default(VectorOffset), + long CompleteConditionMissionCount = 0, + VectorOffset MissionRewardParcelTypeOffset = default(VectorOffset), + VectorOffset MissionRewardParcelIdOffset = default(VectorOffset), + VectorOffset MissionRewardAmountOffset = default(VectorOffset), + VectorOffset ConditionRewardParcelTypeOffset = default(VectorOffset), + VectorOffset ConditionRewardParcelIdOffset = default(VectorOffset), + VectorOffset ConditionRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(30); + EventContentMissionExcel.AddCompleteConditionMissionCount(builder, CompleteConditionMissionCount); + EventContentMissionExcel.AddCompleteConditionCount(builder, CompleteConditionCount); + EventContentMissionExcel.AddChallengeStageShortcut(builder, ChallengeStageShortcut); + EventContentMissionExcel.AddAccountLevel(builder, AccountLevel); + EventContentMissionExcel.AddDisplayOrder(builder, DisplayOrder); + EventContentMissionExcel.AddGroupId(builder, GroupId); + EventContentMissionExcel.AddEventContentId(builder, EventContentId); + EventContentMissionExcel.AddId(builder, Id); + EventContentMissionExcel.AddConditionRewardAmount(builder, ConditionRewardAmountOffset); + EventContentMissionExcel.AddConditionRewardParcelId(builder, ConditionRewardParcelIdOffset); + EventContentMissionExcel.AddConditionRewardParcelType(builder, ConditionRewardParcelTypeOffset); + EventContentMissionExcel.AddMissionRewardAmount(builder, MissionRewardAmountOffset); + EventContentMissionExcel.AddMissionRewardParcelId(builder, MissionRewardParcelIdOffset); + EventContentMissionExcel.AddMissionRewardParcelType(builder, MissionRewardParcelTypeOffset); + EventContentMissionExcel.AddCompleteConditionMissionId(builder, CompleteConditionMissionIdOffset); + EventContentMissionExcel.AddRewardIcon(builder, RewardIconOffset); + EventContentMissionExcel.AddCompleteConditionParameterTag(builder, CompleteConditionParameterTagOffset); + EventContentMissionExcel.AddCompleteConditionParameter(builder, CompleteConditionParameterOffset); + EventContentMissionExcel.AddCompleteConditionType(builder, CompleteConditionType); + EventContentMissionExcel.AddShortcutUI(builder, ShortcutUIOffset); + EventContentMissionExcel.AddAccountType(builder, AccountType); + EventContentMissionExcel.AddPreMissionId(builder, PreMissionIdOffset); + EventContentMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); + EventContentMissionExcel.AddToastDisplayType(builder, ToastDisplayType); + EventContentMissionExcel.AddResetType(builder, ResetType); + EventContentMissionExcel.AddDescription(builder, DescriptionOffset); + EventContentMissionExcel.AddCategory(builder, Category); + EventContentMissionExcel.AddGroupName(builder, GroupNameOffset); + EventContentMissionExcel.AddIsCompleteExtensionTime(builder, IsCompleteExtensionTime); + EventContentMissionExcel.AddViewFlag(builder, ViewFlag); + return EventContentMissionExcel.EndEventContentMissionExcel(builder); + } + + public static void StartEventContentMissionExcel(FlatBufferBuilder builder) { builder.StartTable(30); } + 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 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 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); } + public static void AddViewFlag(FlatBufferBuilder builder, bool viewFlag) { builder.AddBool(9, viewFlag, false); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(10, displayOrder, 0); } + public static void AddPreMissionId(FlatBufferBuilder builder, VectorOffset preMissionIdOffset) { builder.AddOffset(11, preMissionIdOffset.Value, 0); } + public static VectorOffset CreatePreMissionIdVector(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 CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + 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 AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(12, (int)accountType, 0); } + public static void AddAccountLevel(FlatBufferBuilder builder, long accountLevel) { builder.AddLong(13, accountLevel, 0); } + public static void AddShortcutUI(FlatBufferBuilder builder, VectorOffset shortcutUIOffset) { builder.AddOffset(14, shortcutUIOffset.Value, 0); } + public static VectorOffset CreateShortcutUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddChallengeStageShortcut(FlatBufferBuilder builder, long challengeStageShortcut) { builder.AddLong(15, challengeStageShortcut, 0); } + public static void AddCompleteConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCompleteConditionType completeConditionType) { builder.AddInt(16, (int)completeConditionType, 0); } + public static void AddIsCompleteExtensionTime(FlatBufferBuilder builder, bool isCompleteExtensionTime) { builder.AddBool(17, isCompleteExtensionTime, false); } + public static void AddCompleteConditionCount(FlatBufferBuilder builder, long completeConditionCount) { builder.AddLong(18, completeConditionCount, 0); } + public static void AddCompleteConditionParameter(FlatBufferBuilder builder, VectorOffset completeConditionParameterOffset) { builder.AddOffset(19, completeConditionParameterOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterVector(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 CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCompleteConditionParameterTag(FlatBufferBuilder builder, VectorOffset completeConditionParameterTagOffset) { builder.AddOffset(20, completeConditionParameterTagOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterTagVector(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 CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardIcon(FlatBufferBuilder builder, StringOffset rewardIconOffset) { builder.AddOffset(21, rewardIconOffset.Value, 0); } + public static void AddCompleteConditionMissionId(FlatBufferBuilder builder, VectorOffset completeConditionMissionIdOffset) { builder.AddOffset(22, completeConditionMissionIdOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionMissionIdVector(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 CreateCompleteConditionMissionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionMissionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionMissionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionMissionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCompleteConditionMissionCount(FlatBufferBuilder builder, long completeConditionMissionCount) { builder.AddLong(23, completeConditionMissionCount, 0); } + public static void AddMissionRewardParcelType(FlatBufferBuilder builder, VectorOffset missionRewardParcelTypeOffset) { builder.AddOffset(24, missionRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelTypeVector(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 CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMissionRewardParcelId(FlatBufferBuilder builder, VectorOffset missionRewardParcelIdOffset) { builder.AddOffset(25, missionRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelIdVector(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 CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMissionRewardAmount(FlatBufferBuilder builder, VectorOffset missionRewardAmountOffset) { builder.AddOffset(26, missionRewardAmountOffset.Value, 0); } + public static VectorOffset CreateMissionRewardAmountVector(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 CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConditionRewardParcelType(FlatBufferBuilder builder, VectorOffset conditionRewardParcelTypeOffset) { builder.AddOffset(27, conditionRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateConditionRewardParcelTypeVector(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 CreateConditionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConditionRewardParcelId(FlatBufferBuilder builder, VectorOffset conditionRewardParcelIdOffset) { builder.AddOffset(28, conditionRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateConditionRewardParcelIdVector(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 CreateConditionRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionRewardAmount(FlatBufferBuilder builder, VectorOffset conditionRewardAmountOffset) { builder.AddOffset(29, conditionRewardAmountOffset.Value, 0); } + public static VectorOffset CreateConditionRewardAmountVector(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 CreateConditionRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndEventContentMissionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMissionExcelVerify +{ + 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.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, 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) + && verifier.VerifyField(tablePos, 22 /*ViewFlag*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*PreMissionId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 28 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*AccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 32 /*ShortcutUI*/, false) + && verifier.VerifyField(tablePos, 34 /*ChallengeStageShortcut*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*CompleteConditionType*/, 4 /*SCHALE.Common.FlatData.MissionCompleteConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*IsCompleteExtensionTime*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 40 /*CompleteConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*CompleteConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 44 /*CompleteConditionParameterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyString(tablePos, 46 /*RewardIcon*/, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*CompleteConditionMissionId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 50 /*CompleteConditionMissionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 52 /*MissionRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 54 /*MissionRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 56 /*MissionRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 58 /*ConditionRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 60 /*ConditionRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 62 /*ConditionRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs b/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs new file mode 100644 index 0000000..5aebe41 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentMissionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentMissionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentMissionExcelTable GetRootAsEventContentMissionExcelTable(ByteBuffer _bb) { return GetRootAsEventContentMissionExcelTable(_bb, new EventContentMissionExcelTable()); } + public static EventContentMissionExcelTable GetRootAsEventContentMissionExcelTable(ByteBuffer _bb, EventContentMissionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentMissionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentMissionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentMissionExcel?)(new SCHALE.Common.FlatData.EventContentMissionExcel()).__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 CreateEventContentMissionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentMissionExcelTable.AddDataList(builder, DataListOffset); + return EventContentMissionExcelTable.EndEventContentMissionExcelTable(builder); + } + + public static void StartEventContentMissionExcelTable(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 EndEventContentMissionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentMissionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentMissionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentNotifyExcel.cs b/SCHALE.Common/FlatData/EventContentNotifyExcel.cs new file mode 100644 index 0000000..3ec81ae --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentNotifyExcel.cs @@ -0,0 +1,86 @@ +// +// 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 EventContentNotifyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentNotifyExcel GetRootAsEventContentNotifyExcel(ByteBuffer _bb) { return GetRootAsEventContentNotifyExcel(_bb, new EventContentNotifyExcel()); } + public static EventContentNotifyExcel GetRootAsEventContentNotifyExcel(ByteBuffer _bb, EventContentNotifyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentNotifyExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconPath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.EventNotifyType EventNotifyType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.EventNotifyType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventNotifyType.RewardIncreaseEvent; } } + public SCHALE.Common.FlatData.EventTargetType EventTargetType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EventTargetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventTargetType.WeekDungeon; } } + public SCHALE.Common.FlatData.EventTargetType ShortcutEventTargetType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.EventTargetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventTargetType.WeekDungeon; } } + public bool IsShortcutEnable { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateEventContentNotifyExcel(FlatBufferBuilder builder, + int Id = 0, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EventNotifyType EventNotifyType = SCHALE.Common.FlatData.EventNotifyType.RewardIncreaseEvent, + SCHALE.Common.FlatData.EventTargetType EventTargetType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon, + SCHALE.Common.FlatData.EventTargetType ShortcutEventTargetType = SCHALE.Common.FlatData.EventTargetType.WeekDungeon, + bool IsShortcutEnable = false) { + builder.StartTable(7); + EventContentNotifyExcel.AddShortcutEventTargetType(builder, ShortcutEventTargetType); + EventContentNotifyExcel.AddEventTargetType(builder, EventTargetType); + EventContentNotifyExcel.AddEventNotifyType(builder, EventNotifyType); + EventContentNotifyExcel.AddIconPath(builder, IconPathOffset); + EventContentNotifyExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentNotifyExcel.AddId(builder, Id); + EventContentNotifyExcel.AddIsShortcutEnable(builder, IsShortcutEnable); + return EventContentNotifyExcel.EndEventContentNotifyExcel(builder); + } + + public static void StartEventContentNotifyExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, int id) { builder.AddInt(0, id, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(1, localizeEtcId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(2, iconPathOffset.Value, 0); } + public static void AddEventNotifyType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventNotifyType eventNotifyType) { builder.AddInt(3, (int)eventNotifyType, 0); } + public static void AddEventTargetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventTargetType eventTargetType) { builder.AddInt(4, (int)eventTargetType, 0); } + public static void AddShortcutEventTargetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventTargetType shortcutEventTargetType) { builder.AddInt(5, (int)shortcutEventTargetType, 0); } + public static void AddIsShortcutEnable(FlatBufferBuilder builder, bool isShortcutEnable) { builder.AddBool(6, isShortcutEnable, false); } + public static Offset EndEventContentNotifyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentNotifyExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*IconPath*/, false) + && verifier.VerifyField(tablePos, 10 /*EventNotifyType*/, 4 /*SCHALE.Common.FlatData.EventNotifyType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*EventTargetType*/, 4 /*SCHALE.Common.FlatData.EventTargetType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ShortcutEventTargetType*/, 4 /*SCHALE.Common.FlatData.EventTargetType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsShortcutEnable*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs b/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs new file mode 100644 index 0000000..d535525 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentNotifyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..c845904 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentPlayGuideExcel.cs @@ -0,0 +1,93 @@ +// +// 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 EventContentPlayGuideExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentPlayGuideExcel GetRootAsEventContentPlayGuideExcel(ByteBuffer _bb) { return GetRootAsEventContentPlayGuideExcel(_bb, new EventContentPlayGuideExcel()); } + public static EventContentPlayGuideExcel GetRootAsEventContentPlayGuideExcel(ByteBuffer _bb, EventContentPlayGuideExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentPlayGuideExcel __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 int DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string GuideTitle { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTitleBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetGuideTitleBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetGuideTitleArray() { return __p.__vector_as_array(10); } + public string GuideImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetGuideImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetGuideImagePathArray() { return __p.__vector_as_array(12); } + public string GuideText { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTextBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGuideTextBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGuideTextArray() { return __p.__vector_as_array(14); } + + public static Offset CreateEventContentPlayGuideExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + int DisplayOrder = 0, + StringOffset GuideTitleOffset = default(StringOffset), + StringOffset GuideImagePathOffset = default(StringOffset), + StringOffset GuideTextOffset = default(StringOffset)) { + builder.StartTable(6); + EventContentPlayGuideExcel.AddEventContentId(builder, EventContentId); + EventContentPlayGuideExcel.AddId(builder, Id); + EventContentPlayGuideExcel.AddGuideText(builder, GuideTextOffset); + EventContentPlayGuideExcel.AddGuideImagePath(builder, GuideImagePathOffset); + EventContentPlayGuideExcel.AddGuideTitle(builder, GuideTitleOffset); + EventContentPlayGuideExcel.AddDisplayOrder(builder, DisplayOrder); + return EventContentPlayGuideExcel.EndEventContentPlayGuideExcel(builder); + } + + public static void StartEventContentPlayGuideExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + 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 AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(2, displayOrder, 0); } + public static void AddGuideTitle(FlatBufferBuilder builder, StringOffset guideTitleOffset) { builder.AddOffset(3, guideTitleOffset.Value, 0); } + public static void AddGuideImagePath(FlatBufferBuilder builder, StringOffset guideImagePathOffset) { builder.AddOffset(4, guideImagePathOffset.Value, 0); } + public static void AddGuideText(FlatBufferBuilder builder, StringOffset guideTextOffset) { builder.AddOffset(5, guideTextOffset.Value, 0); } + public static Offset EndEventContentPlayGuideExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentPlayGuideExcelVerify +{ + 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 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*GuideTitle*/, false) + && verifier.VerifyString(tablePos, 12 /*GuideImagePath*/, false) + && verifier.VerifyString(tablePos, 14 /*GuideText*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs b/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs new file mode 100644 index 0000000..6ec08f0 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentPlayGuideExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentPlayGuideExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentPlayGuideExcelTable GetRootAsEventContentPlayGuideExcelTable(ByteBuffer _bb) { return GetRootAsEventContentPlayGuideExcelTable(_bb, new EventContentPlayGuideExcelTable()); } + public static EventContentPlayGuideExcelTable GetRootAsEventContentPlayGuideExcelTable(ByteBuffer _bb, EventContentPlayGuideExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentPlayGuideExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentPlayGuideExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentPlayGuideExcel?)(new SCHALE.Common.FlatData.EventContentPlayGuideExcel()).__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 CreateEventContentPlayGuideExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentPlayGuideExcelTable.AddDataList(builder, DataListOffset); + return EventContentPlayGuideExcelTable.EndEventContentPlayGuideExcelTable(builder); + } + + public static void StartEventContentPlayGuideExcelTable(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 EndEventContentPlayGuideExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentPlayGuideExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentPlayGuideExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentReleaseType.cs b/SCHALE.Common/FlatData/EventContentReleaseType.cs new file mode 100644 index 0000000..b4ec83f --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentReleaseType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentReleaseType : int +{ + None = 0, + Permanent = 1, + MainStory = 2, + PermanentSpecialOperate = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs b/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs new file mode 100644 index 0000000..741a5e8 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentScenarioConditionType : int +{ + None = 0, + DayAfter = 1, + EventPoint = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentScenarioExcel.cs b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs new file mode 100644 index 0000000..d487f87 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs @@ -0,0 +1,209 @@ +// +// 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 EventContentScenarioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentScenarioExcel GetRootAsEventContentScenarioExcel(ByteBuffer _bb) { return GetRootAsEventContentScenarioExcel(_bb, new EventContentScenarioExcel()); } + public static EventContentScenarioExcel GetRootAsEventContentScenarioExcel(ByteBuffer _bb, EventContentScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentScenarioExcel __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 int ReplayDisplayGroup { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Order { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecollectionNumber { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsRecollection { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsMeetup { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsOmnibus { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ScenarioGroupId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ScenarioGroupIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetScenarioGroupIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetScenarioGroupIdArray() { return __p.__vector_as_array(20); } + public SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EventContentScenarioConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentScenarioConditionType.None; } } + public long ConditionAmount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConditionEventContentId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearedScenarioGroupId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint RecollectionSummaryLocalizeScenarioId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string RecollectionResource { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRecollectionResourceBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetRecollectionResourceBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetRecollectionResourceArray() { return __p.__vector_as_array(32); } + public bool IsRecollectionHorizon { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType CostParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long CostId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CostAmount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(42); 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(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(42, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(42); 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 RewardId(int j) { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardIdLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardIdBytes() { return __p.__vector_as_span(44, 8); } +#else + public ArraySegment? GetRewardIdBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public long[] GetRewardIdArray() { return __p.__vector_as_array(44); } + public int RewardAmount(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int RewardAmountLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(46, 4); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public int[] GetRewardAmountArray() { return __p.__vector_as_array(46); } + + public static Offset CreateEventContentScenarioExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + int ReplayDisplayGroup = 0, + long Order = 0, + long RecollectionNumber = 0, + bool IsRecollection = false, + bool IsMeetup = false, + bool IsOmnibus = false, + VectorOffset ScenarioGroupIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None, + long ConditionAmount = 0, + long ConditionEventContentId = 0, + long ClearedScenarioGroupId = 0, + uint RecollectionSummaryLocalizeScenarioId = 0, + StringOffset RecollectionResourceOffset = default(StringOffset), + bool IsRecollectionHorizon = false, + SCHALE.Common.FlatData.ParcelType CostParcelType = SCHALE.Common.FlatData.ParcelType.None, + long CostId = 0, + int CostAmount = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(22); + EventContentScenarioExcel.AddCostId(builder, CostId); + EventContentScenarioExcel.AddClearedScenarioGroupId(builder, ClearedScenarioGroupId); + EventContentScenarioExcel.AddConditionEventContentId(builder, ConditionEventContentId); + EventContentScenarioExcel.AddConditionAmount(builder, ConditionAmount); + EventContentScenarioExcel.AddRecollectionNumber(builder, RecollectionNumber); + EventContentScenarioExcel.AddOrder(builder, Order); + EventContentScenarioExcel.AddEventContentId(builder, EventContentId); + EventContentScenarioExcel.AddId(builder, Id); + EventContentScenarioExcel.AddRewardAmount(builder, RewardAmountOffset); + EventContentScenarioExcel.AddRewardId(builder, RewardIdOffset); + EventContentScenarioExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentScenarioExcel.AddCostAmount(builder, CostAmount); + EventContentScenarioExcel.AddCostParcelType(builder, CostParcelType); + EventContentScenarioExcel.AddRecollectionResource(builder, RecollectionResourceOffset); + EventContentScenarioExcel.AddRecollectionSummaryLocalizeScenarioId(builder, RecollectionSummaryLocalizeScenarioId); + EventContentScenarioExcel.AddScenarioConditionType(builder, ScenarioConditionType); + EventContentScenarioExcel.AddScenarioGroupId(builder, ScenarioGroupIdOffset); + EventContentScenarioExcel.AddReplayDisplayGroup(builder, ReplayDisplayGroup); + EventContentScenarioExcel.AddIsRecollectionHorizon(builder, IsRecollectionHorizon); + EventContentScenarioExcel.AddIsOmnibus(builder, IsOmnibus); + EventContentScenarioExcel.AddIsMeetup(builder, IsMeetup); + EventContentScenarioExcel.AddIsRecollection(builder, IsRecollection); + return EventContentScenarioExcel.EndEventContentScenarioExcel(builder); + } + + public static void StartEventContentScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(22); } + 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 AddReplayDisplayGroup(FlatBufferBuilder builder, int replayDisplayGroup) { builder.AddInt(2, replayDisplayGroup, 0); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(3, order, 0); } + public static void AddRecollectionNumber(FlatBufferBuilder builder, long recollectionNumber) { builder.AddLong(4, recollectionNumber, 0); } + public static void AddIsRecollection(FlatBufferBuilder builder, bool isRecollection) { builder.AddBool(5, isRecollection, false); } + public static void AddIsMeetup(FlatBufferBuilder builder, bool isMeetup) { builder.AddBool(6, isMeetup, false); } + public static void AddIsOmnibus(FlatBufferBuilder builder, bool isOmnibus) { builder.AddBool(7, isOmnibus, false); } + public static void AddScenarioGroupId(FlatBufferBuilder builder, VectorOffset scenarioGroupIdOffset) { builder.AddOffset(8, scenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateScenarioGroupIdVector(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 CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddScenarioConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentScenarioConditionType scenarioConditionType) { builder.AddInt(9, (int)scenarioConditionType, 0); } + public static void AddConditionAmount(FlatBufferBuilder builder, long conditionAmount) { builder.AddLong(10, conditionAmount, 0); } + public static void AddConditionEventContentId(FlatBufferBuilder builder, long conditionEventContentId) { builder.AddLong(11, conditionEventContentId, 0); } + public static void AddClearedScenarioGroupId(FlatBufferBuilder builder, long clearedScenarioGroupId) { builder.AddLong(12, clearedScenarioGroupId, 0); } + public static void AddRecollectionSummaryLocalizeScenarioId(FlatBufferBuilder builder, uint recollectionSummaryLocalizeScenarioId) { builder.AddUint(13, recollectionSummaryLocalizeScenarioId, 0); } + public static void AddRecollectionResource(FlatBufferBuilder builder, StringOffset recollectionResourceOffset) { builder.AddOffset(14, recollectionResourceOffset.Value, 0); } + public static void AddIsRecollectionHorizon(FlatBufferBuilder builder, bool isRecollectionHorizon) { builder.AddBool(15, isRecollectionHorizon, false); } + public static void AddCostParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType costParcelType) { builder.AddInt(16, (int)costParcelType, 0); } + public static void AddCostId(FlatBufferBuilder builder, long costId) { builder.AddLong(17, costId, 0); } + public static void AddCostAmount(FlatBufferBuilder builder, int costAmount) { builder.AddInt(18, costAmount, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(19, 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 AddRewardId(FlatBufferBuilder builder, VectorOffset rewardIdOffset) { builder.AddOffset(20, rewardIdOffset.Value, 0); } + public static VectorOffset CreateRewardIdVector(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 CreateRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(21, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndEventContentScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentScenarioExcelVerify +{ + 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 /*ReplayDisplayGroup*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RecollectionNumber*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*IsRecollection*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*IsMeetup*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*IsOmnibus*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 22 /*ScenarioConditionType*/, 4 /*SCHALE.Common.FlatData.EventContentScenarioConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*ConditionAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ConditionEventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ClearedScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*RecollectionSummaryLocalizeScenarioId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 32 /*RecollectionResource*/, false) + && verifier.VerifyField(tablePos, 34 /*IsRecollectionHorizon*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 36 /*CostParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*CostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*CostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 44 /*RewardId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*RewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs b/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs new file mode 100644 index 0000000..5790cd3 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentScenarioExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentScenarioExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentScenarioExcelTable GetRootAsEventContentScenarioExcelTable(ByteBuffer _bb) { return GetRootAsEventContentScenarioExcelTable(_bb, new EventContentScenarioExcelTable()); } + public static EventContentScenarioExcelTable GetRootAsEventContentScenarioExcelTable(ByteBuffer _bb, EventContentScenarioExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentScenarioExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentScenarioExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentScenarioExcel?)(new SCHALE.Common.FlatData.EventContentScenarioExcel()).__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 CreateEventContentScenarioExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentScenarioExcelTable.AddDataList(builder, DataListOffset); + return EventContentScenarioExcelTable.EndEventContentScenarioExcelTable(builder); + } + + public static void StartEventContentScenarioExcelTable(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 EndEventContentScenarioExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentScenarioExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentScenarioExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSeasonExcel.cs b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs new file mode 100644 index 0000000..32d3039 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs @@ -0,0 +1,322 @@ +// +// 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 EventContentSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSeasonExcel GetRootAsEventContentSeasonExcel(ByteBuffer _bb) { return GetRootAsEventContentSeasonExcel(_bb, new EventContentSeasonExcel()); } + public static EventContentSeasonExcel GetRootAsEventContentSeasonExcel(ByteBuffer _bb, EventContentSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSeasonExcel __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 OriginalEventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsReturn { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string Name { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.EventContentType EventContentType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } + public bool EventDisplay { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int IconOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.SubEventType SubEventType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.SubEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SubEventType.None; } } + public bool SubEvent { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long EventItemId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MainEventId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventChangeOpenCondition { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BeforehandExposedTime { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforehandExposedTimeBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetBeforehandExposedTimeBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetBeforehandExposedTimeArray() { return __p.__vector_as_array(30); } + public string EventContentOpenTime { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEventContentOpenTimeBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetEventContentOpenTimeBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetEventContentOpenTimeArray() { return __p.__vector_as_array(32); } + public string EventContentCloseTime { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEventContentCloseTimeBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetEventContentCloseTimeBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetEventContentCloseTimeArray() { return __p.__vector_as_array(34); } + public string ExtensionTime { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExtensionTimeBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetExtensionTimeBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetExtensionTimeArray() { return __p.__vector_as_array(36); } + public string MainIconParcelPath { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMainIconParcelPathBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetMainIconParcelPathBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetMainIconParcelPathArray() { return __p.__vector_as_array(38); } + public string SubIconParcelPath { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubIconParcelPathBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetSubIconParcelPathBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetSubIconParcelPathArray() { return __p.__vector_as_array(40); } + public string BeforehandBgImagePath { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforehandBgImagePathBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetBeforehandBgImagePathBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetBeforehandBgImagePathArray() { return __p.__vector_as_array(42); } + public long MinigamePrologScenarioGroupId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BeforehandScenarioGroupId(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BeforehandScenarioGroupIdLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBeforehandScenarioGroupIdBytes() { return __p.__vector_as_span(46, 8); } +#else + public ArraySegment? GetBeforehandScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public long[] GetBeforehandScenarioGroupIdArray() { return __p.__vector_as_array(46); } + public string MainBannerImagePath { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMainBannerImagePathBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetMainBannerImagePathBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetMainBannerImagePathArray() { return __p.__vector_as_array(48); } + public string MainBgImagePath { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMainBgImagePathBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetMainBgImagePathBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetMainBgImagePathArray() { return __p.__vector_as_array(50); } + public long ShiftTriggerStageId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShiftMainBgImagePath { get { int o = __p.__offset(54); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShiftMainBgImagePathBytes() { return __p.__vector_as_span(54, 1); } +#else + public ArraySegment? GetShiftMainBgImagePathBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public byte[] GetShiftMainBgImagePathArray() { return __p.__vector_as_array(54); } + public string MinigameLobbyPrefabName { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMinigameLobbyPrefabNameBytes() { return __p.__vector_as_span(56, 1); } +#else + public ArraySegment? GetMinigameLobbyPrefabNameBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public byte[] GetMinigameLobbyPrefabNameArray() { return __p.__vector_as_array(56); } + public string MinigameVictoryPrefabName { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMinigameVictoryPrefabNameBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetMinigameVictoryPrefabNameBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetMinigameVictoryPrefabNameArray() { return __p.__vector_as_array(58); } + public string MinigameMissionBgPrefabName { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMinigameMissionBgPrefabNameBytes() { return __p.__vector_as_span(60, 1); } +#else + public ArraySegment? GetMinigameMissionBgPrefabNameBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public byte[] GetMinigameMissionBgPrefabNameArray() { return __p.__vector_as_array(60); } + public string CardBgImagePath { get { int o = __p.__offset(62); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCardBgImagePathBytes() { return __p.__vector_as_span(62, 1); } +#else + public ArraySegment? GetCardBgImagePathBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public byte[] GetCardBgImagePathArray() { return __p.__vector_as_array(62); } + public bool EventAssist { get { int o = __p.__offset(64); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.EventContentReleaseType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentReleaseType.None; } } + public long EventContentStageRewardIdPermanent { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTagPermanent { get { int o = __p.__offset(70); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public long MiniEventShortCutScenarioModeId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentSeasonExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long OriginalEventContentId = 0, + bool IsReturn = false, + StringOffset NameOffset = default(StringOffset), + SCHALE.Common.FlatData.EventContentType EventContentType = SCHALE.Common.FlatData.EventContentType.Stage, + SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent = SCHALE.Common.FlatData.OpenConditionContent.Shop, + bool EventDisplay = false, + int IconOrder = 0, + SCHALE.Common.FlatData.SubEventType SubEventType = SCHALE.Common.FlatData.SubEventType.None, + bool SubEvent = false, + long EventItemId = 0, + long MainEventId = 0, + long EventChangeOpenCondition = 0, + StringOffset BeforehandExposedTimeOffset = default(StringOffset), + StringOffset EventContentOpenTimeOffset = default(StringOffset), + StringOffset EventContentCloseTimeOffset = default(StringOffset), + StringOffset ExtensionTimeOffset = default(StringOffset), + StringOffset MainIconParcelPathOffset = default(StringOffset), + StringOffset SubIconParcelPathOffset = default(StringOffset), + StringOffset BeforehandBgImagePathOffset = default(StringOffset), + long MinigamePrologScenarioGroupId = 0, + VectorOffset BeforehandScenarioGroupIdOffset = default(VectorOffset), + StringOffset MainBannerImagePathOffset = default(StringOffset), + StringOffset MainBgImagePathOffset = default(StringOffset), + long ShiftTriggerStageId = 0, + StringOffset ShiftMainBgImagePathOffset = default(StringOffset), + StringOffset MinigameLobbyPrefabNameOffset = default(StringOffset), + StringOffset MinigameVictoryPrefabNameOffset = default(StringOffset), + StringOffset MinigameMissionBgPrefabNameOffset = default(StringOffset), + StringOffset CardBgImagePathOffset = default(StringOffset), + bool EventAssist = false, + SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType = SCHALE.Common.FlatData.EventContentReleaseType.None, + long EventContentStageRewardIdPermanent = 0, + SCHALE.Common.FlatData.RewardTag RewardTagPermanent = SCHALE.Common.FlatData.RewardTag.Default, + long MiniEventShortCutScenarioModeId = 0) { + builder.StartTable(35); + EventContentSeasonExcel.AddMiniEventShortCutScenarioModeId(builder, MiniEventShortCutScenarioModeId); + EventContentSeasonExcel.AddEventContentStageRewardIdPermanent(builder, EventContentStageRewardIdPermanent); + EventContentSeasonExcel.AddShiftTriggerStageId(builder, ShiftTriggerStageId); + EventContentSeasonExcel.AddMinigamePrologScenarioGroupId(builder, MinigamePrologScenarioGroupId); + EventContentSeasonExcel.AddEventChangeOpenCondition(builder, EventChangeOpenCondition); + EventContentSeasonExcel.AddMainEventId(builder, MainEventId); + EventContentSeasonExcel.AddEventItemId(builder, EventItemId); + EventContentSeasonExcel.AddOriginalEventContentId(builder, OriginalEventContentId); + EventContentSeasonExcel.AddEventContentId(builder, EventContentId); + EventContentSeasonExcel.AddRewardTagPermanent(builder, RewardTagPermanent); + EventContentSeasonExcel.AddEventContentReleaseType(builder, EventContentReleaseType); + EventContentSeasonExcel.AddCardBgImagePath(builder, CardBgImagePathOffset); + EventContentSeasonExcel.AddMinigameMissionBgPrefabName(builder, MinigameMissionBgPrefabNameOffset); + EventContentSeasonExcel.AddMinigameVictoryPrefabName(builder, MinigameVictoryPrefabNameOffset); + EventContentSeasonExcel.AddMinigameLobbyPrefabName(builder, MinigameLobbyPrefabNameOffset); + EventContentSeasonExcel.AddShiftMainBgImagePath(builder, ShiftMainBgImagePathOffset); + EventContentSeasonExcel.AddMainBgImagePath(builder, MainBgImagePathOffset); + EventContentSeasonExcel.AddMainBannerImagePath(builder, MainBannerImagePathOffset); + EventContentSeasonExcel.AddBeforehandScenarioGroupId(builder, BeforehandScenarioGroupIdOffset); + EventContentSeasonExcel.AddBeforehandBgImagePath(builder, BeforehandBgImagePathOffset); + EventContentSeasonExcel.AddSubIconParcelPath(builder, SubIconParcelPathOffset); + EventContentSeasonExcel.AddMainIconParcelPath(builder, MainIconParcelPathOffset); + EventContentSeasonExcel.AddExtensionTime(builder, ExtensionTimeOffset); + EventContentSeasonExcel.AddEventContentCloseTime(builder, EventContentCloseTimeOffset); + EventContentSeasonExcel.AddEventContentOpenTime(builder, EventContentOpenTimeOffset); + EventContentSeasonExcel.AddBeforehandExposedTime(builder, BeforehandExposedTimeOffset); + EventContentSeasonExcel.AddSubEventType(builder, SubEventType); + EventContentSeasonExcel.AddIconOrder(builder, IconOrder); + EventContentSeasonExcel.AddOpenConditionContent(builder, OpenConditionContent); + EventContentSeasonExcel.AddEventContentType(builder, EventContentType); + EventContentSeasonExcel.AddName(builder, NameOffset); + EventContentSeasonExcel.AddEventAssist(builder, EventAssist); + EventContentSeasonExcel.AddSubEvent(builder, SubEvent); + EventContentSeasonExcel.AddEventDisplay(builder, EventDisplay); + EventContentSeasonExcel.AddIsReturn(builder, IsReturn); + return EventContentSeasonExcel.EndEventContentSeasonExcel(builder); + } + + public static void StartEventContentSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(35); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddOriginalEventContentId(FlatBufferBuilder builder, long originalEventContentId) { builder.AddLong(1, originalEventContentId, 0); } + public static void AddIsReturn(FlatBufferBuilder builder, bool isReturn) { builder.AddBool(2, isReturn, false); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(3, nameOffset.Value, 0); } + public static void AddEventContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType eventContentType) { builder.AddInt(4, (int)eventContentType, 0); } + public static void AddOpenConditionContent(FlatBufferBuilder builder, SCHALE.Common.FlatData.OpenConditionContent openConditionContent) { builder.AddInt(5, (int)openConditionContent, 0); } + public static void AddEventDisplay(FlatBufferBuilder builder, bool eventDisplay) { builder.AddBool(6, eventDisplay, false); } + public static void AddIconOrder(FlatBufferBuilder builder, int iconOrder) { builder.AddInt(7, iconOrder, 0); } + public static void AddSubEventType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SubEventType subEventType) { builder.AddInt(8, (int)subEventType, 0); } + public static void AddSubEvent(FlatBufferBuilder builder, bool subEvent) { builder.AddBool(9, subEvent, false); } + public static void AddEventItemId(FlatBufferBuilder builder, long eventItemId) { builder.AddLong(10, eventItemId, 0); } + public static void AddMainEventId(FlatBufferBuilder builder, long mainEventId) { builder.AddLong(11, mainEventId, 0); } + public static void AddEventChangeOpenCondition(FlatBufferBuilder builder, long eventChangeOpenCondition) { builder.AddLong(12, eventChangeOpenCondition, 0); } + public static void AddBeforehandExposedTime(FlatBufferBuilder builder, StringOffset beforehandExposedTimeOffset) { builder.AddOffset(13, beforehandExposedTimeOffset.Value, 0); } + public static void AddEventContentOpenTime(FlatBufferBuilder builder, StringOffset eventContentOpenTimeOffset) { builder.AddOffset(14, eventContentOpenTimeOffset.Value, 0); } + public static void AddEventContentCloseTime(FlatBufferBuilder builder, StringOffset eventContentCloseTimeOffset) { builder.AddOffset(15, eventContentCloseTimeOffset.Value, 0); } + public static void AddExtensionTime(FlatBufferBuilder builder, StringOffset extensionTimeOffset) { builder.AddOffset(16, extensionTimeOffset.Value, 0); } + public static void AddMainIconParcelPath(FlatBufferBuilder builder, StringOffset mainIconParcelPathOffset) { builder.AddOffset(17, mainIconParcelPathOffset.Value, 0); } + public static void AddSubIconParcelPath(FlatBufferBuilder builder, StringOffset subIconParcelPathOffset) { builder.AddOffset(18, subIconParcelPathOffset.Value, 0); } + public static void AddBeforehandBgImagePath(FlatBufferBuilder builder, StringOffset beforehandBgImagePathOffset) { builder.AddOffset(19, beforehandBgImagePathOffset.Value, 0); } + public static void AddMinigamePrologScenarioGroupId(FlatBufferBuilder builder, long minigamePrologScenarioGroupId) { builder.AddLong(20, minigamePrologScenarioGroupId, 0); } + public static void AddBeforehandScenarioGroupId(FlatBufferBuilder builder, VectorOffset beforehandScenarioGroupIdOffset) { builder.AddOffset(21, beforehandScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateBeforehandScenarioGroupIdVector(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 CreateBeforehandScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBeforehandScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBeforehandScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBeforehandScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMainBannerImagePath(FlatBufferBuilder builder, StringOffset mainBannerImagePathOffset) { builder.AddOffset(22, mainBannerImagePathOffset.Value, 0); } + public static void AddMainBgImagePath(FlatBufferBuilder builder, StringOffset mainBgImagePathOffset) { builder.AddOffset(23, mainBgImagePathOffset.Value, 0); } + public static void AddShiftTriggerStageId(FlatBufferBuilder builder, long shiftTriggerStageId) { builder.AddLong(24, shiftTriggerStageId, 0); } + public static void AddShiftMainBgImagePath(FlatBufferBuilder builder, StringOffset shiftMainBgImagePathOffset) { builder.AddOffset(25, shiftMainBgImagePathOffset.Value, 0); } + public static void AddMinigameLobbyPrefabName(FlatBufferBuilder builder, StringOffset minigameLobbyPrefabNameOffset) { builder.AddOffset(26, minigameLobbyPrefabNameOffset.Value, 0); } + public static void AddMinigameVictoryPrefabName(FlatBufferBuilder builder, StringOffset minigameVictoryPrefabNameOffset) { builder.AddOffset(27, minigameVictoryPrefabNameOffset.Value, 0); } + public static void AddMinigameMissionBgPrefabName(FlatBufferBuilder builder, StringOffset minigameMissionBgPrefabNameOffset) { builder.AddOffset(28, minigameMissionBgPrefabNameOffset.Value, 0); } + public static void AddCardBgImagePath(FlatBufferBuilder builder, StringOffset cardBgImagePathOffset) { builder.AddOffset(29, cardBgImagePathOffset.Value, 0); } + public static void AddEventAssist(FlatBufferBuilder builder, bool eventAssist) { builder.AddBool(30, eventAssist, false); } + public static void AddEventContentReleaseType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentReleaseType eventContentReleaseType) { builder.AddInt(31, (int)eventContentReleaseType, 0); } + public static void AddEventContentStageRewardIdPermanent(FlatBufferBuilder builder, long eventContentStageRewardIdPermanent) { builder.AddLong(32, eventContentStageRewardIdPermanent, 0); } + public static void AddRewardTagPermanent(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTagPermanent) { builder.AddInt(33, (int)rewardTagPermanent, 0); } + public static void AddMiniEventShortCutScenarioModeId(FlatBufferBuilder builder, long miniEventShortCutScenarioModeId) { builder.AddLong(34, miniEventShortCutScenarioModeId, 0); } + public static Offset EndEventContentSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSeasonExcelVerify +{ + 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 /*OriginalEventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*IsReturn*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*Name*/, false) + && verifier.VerifyField(tablePos, 12 /*EventContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*OpenConditionContent*/, 4 /*SCHALE.Common.FlatData.OpenConditionContent*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*EventDisplay*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*IconOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*SubEventType*/, 4 /*SCHALE.Common.FlatData.SubEventType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*SubEvent*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*EventItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*MainEventId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*EventChangeOpenCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 30 /*BeforehandExposedTime*/, false) + && verifier.VerifyString(tablePos, 32 /*EventContentOpenTime*/, false) + && verifier.VerifyString(tablePos, 34 /*EventContentCloseTime*/, false) + && verifier.VerifyString(tablePos, 36 /*ExtensionTime*/, false) + && verifier.VerifyString(tablePos, 38 /*MainIconParcelPath*/, false) + && verifier.VerifyString(tablePos, 40 /*SubIconParcelPath*/, false) + && verifier.VerifyString(tablePos, 42 /*BeforehandBgImagePath*/, false) + && verifier.VerifyField(tablePos, 44 /*MinigamePrologScenarioGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*BeforehandScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 48 /*MainBannerImagePath*/, false) + && verifier.VerifyString(tablePos, 50 /*MainBgImagePath*/, false) + && verifier.VerifyField(tablePos, 52 /*ShiftTriggerStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 54 /*ShiftMainBgImagePath*/, false) + && verifier.VerifyString(tablePos, 56 /*MinigameLobbyPrefabName*/, false) + && verifier.VerifyString(tablePos, 58 /*MinigameVictoryPrefabName*/, false) + && verifier.VerifyString(tablePos, 60 /*MinigameMissionBgPrefabName*/, false) + && verifier.VerifyString(tablePos, 62 /*CardBgImagePath*/, false) + && verifier.VerifyField(tablePos, 64 /*EventAssist*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 66 /*EventContentReleaseType*/, 4 /*SCHALE.Common.FlatData.EventContentReleaseType*/, 4, false) + && verifier.VerifyField(tablePos, 68 /*EventContentStageRewardIdPermanent*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 70 /*RewardTagPermanent*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 72 /*MiniEventShortCutScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs b/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs new file mode 100644 index 0000000..a110541 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSeasonExcelTable GetRootAsEventContentSeasonExcelTable(ByteBuffer _bb) { return GetRootAsEventContentSeasonExcelTable(_bb, new EventContentSeasonExcelTable()); } + public static EventContentSeasonExcelTable GetRootAsEventContentSeasonExcelTable(ByteBuffer _bb, EventContentSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentSeasonExcel?)(new SCHALE.Common.FlatData.EventContentSeasonExcel()).__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 CreateEventContentSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentSeasonExcelTable.AddDataList(builder, DataListOffset); + return EventContentSeasonExcelTable.EndEventContentSeasonExcelTable(builder); + } + + public static void StartEventContentSeasonExcelTable(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 EndEventContentSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopExcel.cs b/SCHALE.Common/FlatData/EventContentShopExcel.cs new file mode 100644 index 0000000..868973a --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopExcel.cs @@ -0,0 +1,145 @@ +// +// 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 EventContentShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopExcel GetRootAsEventContentShopExcel(ByteBuffer _bb) { return GetRootAsEventContentShopExcel(_bb, new EventContentShopExcel()); } + public static EventContentShopExcel GetRootAsEventContentShopExcel(ByteBuffer _bb, EventContentShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopExcel __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 Id { 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.ShopCategoryType CategoryType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public bool IsLegacy { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GoodsId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GoodsIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGoodsIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetGoodsIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetGoodsIdArray() { return __p.__vector_as_array(14); } + public long DisplayOrder { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SalePeriodFrom { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array(18); } + public string SalePeriodTo { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodToBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(20); } + public long PurchaseCooltimeMin { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PurchaseCountLimit { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public string BuyReportEventName { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(28); } + public bool RestrictBuyWhenInventoryFull { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateEventContentShopExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + bool IsLegacy = false, + VectorOffset GoodsIdOffset = default(VectorOffset), + long DisplayOrder = 0, + StringOffset SalePeriodFromOffset = default(StringOffset), + StringOffset SalePeriodToOffset = default(StringOffset), + long PurchaseCooltimeMin = 0, + long PurchaseCountLimit = 0, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None, + StringOffset BuyReportEventNameOffset = default(StringOffset), + bool RestrictBuyWhenInventoryFull = false) { + builder.StartTable(14); + EventContentShopExcel.AddPurchaseCountLimit(builder, PurchaseCountLimit); + EventContentShopExcel.AddPurchaseCooltimeMin(builder, PurchaseCooltimeMin); + EventContentShopExcel.AddDisplayOrder(builder, DisplayOrder); + EventContentShopExcel.AddId(builder, Id); + EventContentShopExcel.AddEventContentId(builder, EventContentId); + EventContentShopExcel.AddBuyReportEventName(builder, BuyReportEventNameOffset); + EventContentShopExcel.AddPurchaseCountResetType(builder, PurchaseCountResetType); + EventContentShopExcel.AddSalePeriodTo(builder, SalePeriodToOffset); + EventContentShopExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset); + EventContentShopExcel.AddGoodsId(builder, GoodsIdOffset); + EventContentShopExcel.AddCategoryType(builder, CategoryType); + EventContentShopExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentShopExcel.AddRestrictBuyWhenInventoryFull(builder, RestrictBuyWhenInventoryFull); + EventContentShopExcel.AddIsLegacy(builder, IsLegacy); + return EventContentShopExcel.EndEventContentShopExcel(builder); + } + + public static void StartEventContentShopExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(3, (int)categoryType, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(4, isLegacy, false); } + public static void AddGoodsId(FlatBufferBuilder builder, VectorOffset goodsIdOffset) { builder.AddOffset(5, goodsIdOffset.Value, 0); } + public static VectorOffset CreateGoodsIdVector(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 CreateGoodsIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGoodsIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(6, displayOrder, 0); } + public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(7, salePeriodFromOffset.Value, 0); } + public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(8, salePeriodToOffset.Value, 0); } + public static void AddPurchaseCooltimeMin(FlatBufferBuilder builder, long purchaseCooltimeMin) { builder.AddLong(9, purchaseCooltimeMin, 0); } + public static void AddPurchaseCountLimit(FlatBufferBuilder builder, long purchaseCountLimit) { builder.AddLong(10, purchaseCountLimit, 0); } + public static void AddPurchaseCountResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseCountResetType purchaseCountResetType) { builder.AddInt(11, (int)purchaseCountResetType, 0); } + public static void AddBuyReportEventName(FlatBufferBuilder builder, StringOffset buyReportEventNameOffset) { builder.AddOffset(12, buyReportEventNameOffset.Value, 0); } + public static void AddRestrictBuyWhenInventoryFull(FlatBufferBuilder builder, bool restrictBuyWhenInventoryFull) { builder.AddBool(13, restrictBuyWhenInventoryFull, false); } + public static Offset EndEventContentShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*GoodsId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*SalePeriodFrom*/, false) + && verifier.VerifyString(tablePos, 20 /*SalePeriodTo*/, false) + && verifier.VerifyField(tablePos, 22 /*PurchaseCooltimeMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*PurchaseCountLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*PurchaseCountResetType*/, 4 /*SCHALE.Common.FlatData.PurchaseCountResetType*/, 4, false) + && verifier.VerifyString(tablePos, 28 /*BuyReportEventName*/, false) + && verifier.VerifyField(tablePos, 30 /*RestrictBuyWhenInventoryFull*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopExcelTable.cs new file mode 100644 index 0000000..e49cb71 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopExcelTable GetRootAsEventContentShopExcelTable(ByteBuffer _bb) { return GetRootAsEventContentShopExcelTable(_bb, new EventContentShopExcelTable()); } + public static EventContentShopExcelTable GetRootAsEventContentShopExcelTable(ByteBuffer _bb, EventContentShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentShopExcel?)(new SCHALE.Common.FlatData.EventContentShopExcel()).__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 CreateEventContentShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentShopExcelTable.AddDataList(builder, DataListOffset); + return EventContentShopExcelTable.EndEventContentShopExcelTable(builder); + } + + public static void StartEventContentShopExcelTable(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 EndEventContentShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs b/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs new file mode 100644 index 0000000..32f2605 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopInfoExcel.cs @@ -0,0 +1,164 @@ +// +// 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 EventContentShopInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopInfoExcel GetRootAsEventContentShopInfoExcel(ByteBuffer _bb) { return GetRootAsEventContentShopInfoExcel(_bb, new EventContentShopInfoExcel()); } + public static EventContentShopInfoExcel GetRootAsEventContentShopInfoExcel(ByteBuffer _bb, EventContentShopInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopInfoExcel __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.ShopCategoryType CategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public uint LocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ParcelType CostParcelType(int j) { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int CostParcelTypeLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetCostParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetCostParcelTypeArray() { int o = __p.__offset(10); 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 CostParcelId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CostParcelIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostParcelIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetCostParcelIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetCostParcelIdArray() { return __p.__vector_as_array(12); } + public bool IsRefresh { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsSoldOutDimmed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AutoRefreshCoolTime { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RefreshAbleCount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GoodsId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GoodsIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGoodsIdBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetGoodsIdBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetGoodsIdArray() { return __p.__vector_as_array(22); } + public string OpenPeriodFrom { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenPeriodFromBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetOpenPeriodFromBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetOpenPeriodFromArray() { return __p.__vector_as_array(24); } + public string OpenPeriodTo { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenPeriodToBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetOpenPeriodToBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetOpenPeriodToArray() { return __p.__vector_as_array(26); } + public string ShopProductUpdateDate { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShopProductUpdateDateBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetShopProductUpdateDateBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetShopProductUpdateDateArray() { return __p.__vector_as_array(28); } + + public static Offset CreateEventContentShopInfoExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + uint LocalizeCode = 0, + VectorOffset CostParcelTypeOffset = default(VectorOffset), + VectorOffset CostParcelIdOffset = default(VectorOffset), + bool IsRefresh = false, + bool IsSoldOutDimmed = false, + long AutoRefreshCoolTime = 0, + long RefreshAbleCount = 0, + VectorOffset GoodsIdOffset = default(VectorOffset), + StringOffset OpenPeriodFromOffset = default(StringOffset), + StringOffset OpenPeriodToOffset = default(StringOffset), + StringOffset ShopProductUpdateDateOffset = default(StringOffset)) { + builder.StartTable(13); + EventContentShopInfoExcel.AddRefreshAbleCount(builder, RefreshAbleCount); + EventContentShopInfoExcel.AddAutoRefreshCoolTime(builder, AutoRefreshCoolTime); + EventContentShopInfoExcel.AddEventContentId(builder, EventContentId); + EventContentShopInfoExcel.AddShopProductUpdateDate(builder, ShopProductUpdateDateOffset); + EventContentShopInfoExcel.AddOpenPeriodTo(builder, OpenPeriodToOffset); + EventContentShopInfoExcel.AddOpenPeriodFrom(builder, OpenPeriodFromOffset); + EventContentShopInfoExcel.AddGoodsId(builder, GoodsIdOffset); + EventContentShopInfoExcel.AddCostParcelId(builder, CostParcelIdOffset); + EventContentShopInfoExcel.AddCostParcelType(builder, CostParcelTypeOffset); + EventContentShopInfoExcel.AddLocalizeCode(builder, LocalizeCode); + EventContentShopInfoExcel.AddCategoryType(builder, CategoryType); + EventContentShopInfoExcel.AddIsSoldOutDimmed(builder, IsSoldOutDimmed); + EventContentShopInfoExcel.AddIsRefresh(builder, IsRefresh); + return EventContentShopInfoExcel.EndEventContentShopInfoExcel(builder); + } + + public static void StartEventContentShopInfoExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(1, (int)categoryType, 0); } + public static void AddLocalizeCode(FlatBufferBuilder builder, uint localizeCode) { builder.AddUint(2, localizeCode, 0); } + public static void AddCostParcelType(FlatBufferBuilder builder, VectorOffset costParcelTypeOffset) { builder.AddOffset(3, costParcelTypeOffset.Value, 0); } + public static VectorOffset CreateCostParcelTypeVector(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 CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCostParcelId(FlatBufferBuilder builder, VectorOffset costParcelIdOffset) { builder.AddOffset(4, costParcelIdOffset.Value, 0); } + public static VectorOffset CreateCostParcelIdVector(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 CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIsRefresh(FlatBufferBuilder builder, bool isRefresh) { builder.AddBool(5, isRefresh, false); } + public static void AddIsSoldOutDimmed(FlatBufferBuilder builder, bool isSoldOutDimmed) { builder.AddBool(6, isSoldOutDimmed, false); } + public static void AddAutoRefreshCoolTime(FlatBufferBuilder builder, long autoRefreshCoolTime) { builder.AddLong(7, autoRefreshCoolTime, 0); } + public static void AddRefreshAbleCount(FlatBufferBuilder builder, long refreshAbleCount) { builder.AddLong(8, refreshAbleCount, 0); } + public static void AddGoodsId(FlatBufferBuilder builder, VectorOffset goodsIdOffset) { builder.AddOffset(9, goodsIdOffset.Value, 0); } + public static VectorOffset CreateGoodsIdVector(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 CreateGoodsIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGoodsIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddOpenPeriodFrom(FlatBufferBuilder builder, StringOffset openPeriodFromOffset) { builder.AddOffset(10, openPeriodFromOffset.Value, 0); } + public static void AddOpenPeriodTo(FlatBufferBuilder builder, StringOffset openPeriodToOffset) { builder.AddOffset(11, openPeriodToOffset.Value, 0); } + public static void AddShopProductUpdateDate(FlatBufferBuilder builder, StringOffset shopProductUpdateDateOffset) { builder.AddOffset(12, shopProductUpdateDateOffset.Value, 0); } + public static Offset EndEventContentShopInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopInfoExcelVerify +{ + 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 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeCode*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*CostParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*CostParcelId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*IsRefresh*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*IsSoldOutDimmed*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*AutoRefreshCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*RefreshAbleCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*GoodsId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 24 /*OpenPeriodFrom*/, false) + && verifier.VerifyString(tablePos, 26 /*OpenPeriodTo*/, false) + && verifier.VerifyString(tablePos, 28 /*ShopProductUpdateDate*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs new file mode 100644 index 0000000..4e76386 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopInfoExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentShopInfoExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopInfoExcelTable GetRootAsEventContentShopInfoExcelTable(ByteBuffer _bb) { return GetRootAsEventContentShopInfoExcelTable(_bb, new EventContentShopInfoExcelTable()); } + public static EventContentShopInfoExcelTable GetRootAsEventContentShopInfoExcelTable(ByteBuffer _bb, EventContentShopInfoExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopInfoExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentShopInfoExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentShopInfoExcel?)(new SCHALE.Common.FlatData.EventContentShopInfoExcel()).__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 CreateEventContentShopInfoExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentShopInfoExcelTable.AddDataList(builder, DataListOffset); + return EventContentShopInfoExcelTable.EndEventContentShopInfoExcelTable(builder); + } + + public static void StartEventContentShopInfoExcelTable(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 EndEventContentShopInfoExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopInfoExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentShopInfoExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs b/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs new file mode 100644 index 0000000..3167641 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopRefreshExcel.cs @@ -0,0 +1,101 @@ +// +// 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 EventContentShopRefreshExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopRefreshExcel GetRootAsEventContentShopRefreshExcel(ByteBuffer _bb) { return GetRootAsEventContentShopRefreshExcel(_bb, new EventContentShopRefreshExcel()); } + public static EventContentShopRefreshExcel GetRootAsEventContentShopRefreshExcel(ByteBuffer _bb, EventContentShopRefreshExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopRefreshExcel __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 Id { 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 bool IsLegacy { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GoodsId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)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(22, 1); } +#else + public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(22); } + + public static Offset CreateEventContentShopRefreshExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long Id = 0, + uint LocalizeEtcId = 0, + bool IsLegacy = false, + long GoodsId = 0, + long DisplayOrder = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + int RefreshGroup = 0, + int Prob = 0, + StringOffset BuyReportEventNameOffset = default(StringOffset)) { + builder.StartTable(10); + EventContentShopRefreshExcel.AddDisplayOrder(builder, DisplayOrder); + EventContentShopRefreshExcel.AddGoodsId(builder, GoodsId); + EventContentShopRefreshExcel.AddId(builder, Id); + EventContentShopRefreshExcel.AddEventContentId(builder, EventContentId); + EventContentShopRefreshExcel.AddBuyReportEventName(builder, BuyReportEventNameOffset); + EventContentShopRefreshExcel.AddProb(builder, Prob); + EventContentShopRefreshExcel.AddRefreshGroup(builder, RefreshGroup); + EventContentShopRefreshExcel.AddCategoryType(builder, CategoryType); + EventContentShopRefreshExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + EventContentShopRefreshExcel.AddIsLegacy(builder, IsLegacy); + return EventContentShopRefreshExcel.EndEventContentShopRefreshExcel(builder); + } + + public static void StartEventContentShopRefreshExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(3, isLegacy, false); } + public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(4, goodsId, 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 Offset EndEventContentShopRefreshExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopRefreshExcelVerify +{ + 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 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*GoodsId*/, 8 /*long*/, 8, 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs b/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs new file mode 100644 index 0000000..929f1e8 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentShopRefreshExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentShopRefreshExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentShopRefreshExcelTable GetRootAsEventContentShopRefreshExcelTable(ByteBuffer _bb) { return GetRootAsEventContentShopRefreshExcelTable(_bb, new EventContentShopRefreshExcelTable()); } + public static EventContentShopRefreshExcelTable GetRootAsEventContentShopRefreshExcelTable(ByteBuffer _bb, EventContentShopRefreshExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentShopRefreshExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentShopRefreshExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentShopRefreshExcel?)(new SCHALE.Common.FlatData.EventContentShopRefreshExcel()).__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 CreateEventContentShopRefreshExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentShopRefreshExcelTable.AddDataList(builder, DataListOffset); + return EventContentShopRefreshExcelTable.EndEventContentShopRefreshExcelTable(builder); + } + + public static void StartEventContentShopRefreshExcelTable(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 EndEventContentShopRefreshExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentShopRefreshExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentShopRefreshExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs new file mode 100644 index 0000000..cbcbacc --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcel.cs @@ -0,0 +1,55 @@ +// +// 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 EventContentSpecialOperationsExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpecialOperationsExcel GetRootAsEventContentSpecialOperationsExcel(ByteBuffer _bb) { return GetRootAsEventContentSpecialOperationsExcel(_bb, new EventContentSpecialOperationsExcel()); } + public static EventContentSpecialOperationsExcel GetRootAsEventContentSpecialOperationsExcel(ByteBuffer _bb, EventContentSpecialOperationsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpecialOperationsExcel __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 PointItemId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentSpecialOperationsExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long PointItemId = 0) { + builder.StartTable(2); + EventContentSpecialOperationsExcel.AddPointItemId(builder, PointItemId); + EventContentSpecialOperationsExcel.AddEventContentId(builder, EventContentId); + return EventContentSpecialOperationsExcel.EndEventContentSpecialOperationsExcel(builder); + } + + public static void StartEventContentSpecialOperationsExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddPointItemId(FlatBufferBuilder builder, long pointItemId) { builder.AddLong(1, pointItemId, 0); } + public static Offset EndEventContentSpecialOperationsExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpecialOperationsExcelVerify +{ + 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 /*PointItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs new file mode 100644 index 0000000..7ad7346 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpecialOperationsExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentSpecialOperationsExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpecialOperationsExcelTable GetRootAsEventContentSpecialOperationsExcelTable(ByteBuffer _bb) { return GetRootAsEventContentSpecialOperationsExcelTable(_bb, new EventContentSpecialOperationsExcelTable()); } + public static EventContentSpecialOperationsExcelTable GetRootAsEventContentSpecialOperationsExcelTable(ByteBuffer _bb, EventContentSpecialOperationsExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpecialOperationsExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentSpecialOperationsExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentSpecialOperationsExcel?)(new SCHALE.Common.FlatData.EventContentSpecialOperationsExcel()).__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 CreateEventContentSpecialOperationsExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentSpecialOperationsExcelTable.AddDataList(builder, DataListOffset); + return EventContentSpecialOperationsExcelTable.EndEventContentSpecialOperationsExcelTable(builder); + } + + public static void StartEventContentSpecialOperationsExcelTable(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 EndEventContentSpecialOperationsExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpecialOperationsExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentSpecialOperationsExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs new file mode 100644 index 0000000..1c3b981 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcel.cs @@ -0,0 +1,80 @@ +// +// 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 EventContentSpineDialogOffsetExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpineDialogOffsetExcel GetRootAsEventContentSpineDialogOffsetExcel(ByteBuffer _bb) { return GetRootAsEventContentSpineDialogOffsetExcel(_bb, new EventContentSpineDialogOffsetExcel()); } + public static EventContentSpineDialogOffsetExcel GetRootAsEventContentSpineDialogOffsetExcel(ByteBuffer _bb, EventContentSpineDialogOffsetExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpineDialogOffsetExcel __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.EventContentType EventContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } + public long CostumeUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float SpineOffsetX { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float SpineOffsetY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DialogOffsetX { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float DialogOffsetY { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateEventContentSpineDialogOffsetExcel(FlatBufferBuilder builder, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentType EventContentType = SCHALE.Common.FlatData.EventContentType.Stage, + long CostumeUniqueId = 0, + float SpineOffsetX = 0.0f, + float SpineOffsetY = 0.0f, + float DialogOffsetX = 0.0f, + float DialogOffsetY = 0.0f) { + builder.StartTable(7); + EventContentSpineDialogOffsetExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + EventContentSpineDialogOffsetExcel.AddEventContentId(builder, EventContentId); + EventContentSpineDialogOffsetExcel.AddDialogOffsetY(builder, DialogOffsetY); + EventContentSpineDialogOffsetExcel.AddDialogOffsetX(builder, DialogOffsetX); + EventContentSpineDialogOffsetExcel.AddSpineOffsetY(builder, SpineOffsetY); + EventContentSpineDialogOffsetExcel.AddSpineOffsetX(builder, SpineOffsetX); + EventContentSpineDialogOffsetExcel.AddEventContentType(builder, EventContentType); + return EventContentSpineDialogOffsetExcel.EndEventContentSpineDialogOffsetExcel(builder); + } + + public static void StartEventContentSpineDialogOffsetExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType eventContentType) { builder.AddInt(1, (int)eventContentType, 0); } + public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(2, costumeUniqueId, 0); } + public static void AddSpineOffsetX(FlatBufferBuilder builder, float spineOffsetX) { builder.AddFloat(3, spineOffsetX, 0.0f); } + public static void AddSpineOffsetY(FlatBufferBuilder builder, float spineOffsetY) { builder.AddFloat(4, spineOffsetY, 0.0f); } + public static void AddDialogOffsetX(FlatBufferBuilder builder, float dialogOffsetX) { builder.AddFloat(5, dialogOffsetX, 0.0f); } + public static void AddDialogOffsetY(FlatBufferBuilder builder, float dialogOffsetY) { builder.AddFloat(6, dialogOffsetY, 0.0f); } + public static Offset EndEventContentSpineDialogOffsetExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpineDialogOffsetExcelVerify +{ + 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 /*EventContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*SpineOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*SpineOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DialogOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*DialogOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs new file mode 100644 index 0000000..c84e3ad --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpineDialogOffsetExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentSpineDialogOffsetExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpineDialogOffsetExcelTable GetRootAsEventContentSpineDialogOffsetExcelTable(ByteBuffer _bb) { return GetRootAsEventContentSpineDialogOffsetExcelTable(_bb, new EventContentSpineDialogOffsetExcelTable()); } + public static EventContentSpineDialogOffsetExcelTable GetRootAsEventContentSpineDialogOffsetExcelTable(ByteBuffer _bb, EventContentSpineDialogOffsetExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpineDialogOffsetExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentSpineDialogOffsetExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentSpineDialogOffsetExcel?)(new SCHALE.Common.FlatData.EventContentSpineDialogOffsetExcel()).__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 CreateEventContentSpineDialogOffsetExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentSpineDialogOffsetExcelTable.AddDataList(builder, DataListOffset); + return EventContentSpineDialogOffsetExcelTable.EndEventContentSpineDialogOffsetExcelTable(builder); + } + + public static void StartEventContentSpineDialogOffsetExcelTable(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 EndEventContentSpineDialogOffsetExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpineDialogOffsetExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentSpineDialogOffsetExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs new file mode 100644 index 0000000..bf1f860 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcel.cs @@ -0,0 +1,82 @@ +// +// 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 EventContentSpoilerPopupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpoilerPopupExcel GetRootAsEventContentSpoilerPopupExcel(ByteBuffer _bb) { return GetRootAsEventContentSpoilerPopupExcel(_bb, new EventContentSpoilerPopupExcel()); } + public static EventContentSpoilerPopupExcel GetRootAsEventContentSpoilerPopupExcel(ByteBuffer _bb, EventContentSpoilerPopupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpoilerPopupExcel __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 string SpoilerPopupTitle { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpoilerPopupTitleBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSpoilerPopupTitleBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSpoilerPopupTitleArray() { return __p.__vector_as_array(6); } + public string SpoilerPopupDescription { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpoilerPopupDescriptionBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSpoilerPopupDescriptionBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSpoilerPopupDescriptionArray() { return __p.__vector_as_array(8); } + public bool IsWarningPopUp { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ConditionScenarioModeId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateEventContentSpoilerPopupExcel(FlatBufferBuilder builder, + long EventContentId = 0, + StringOffset SpoilerPopupTitleOffset = default(StringOffset), + StringOffset SpoilerPopupDescriptionOffset = default(StringOffset), + bool IsWarningPopUp = false, + long ConditionScenarioModeId = 0) { + builder.StartTable(5); + EventContentSpoilerPopupExcel.AddConditionScenarioModeId(builder, ConditionScenarioModeId); + EventContentSpoilerPopupExcel.AddEventContentId(builder, EventContentId); + EventContentSpoilerPopupExcel.AddSpoilerPopupDescription(builder, SpoilerPopupDescriptionOffset); + EventContentSpoilerPopupExcel.AddSpoilerPopupTitle(builder, SpoilerPopupTitleOffset); + EventContentSpoilerPopupExcel.AddIsWarningPopUp(builder, IsWarningPopUp); + return EventContentSpoilerPopupExcel.EndEventContentSpoilerPopupExcel(builder); + } + + public static void StartEventContentSpoilerPopupExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddSpoilerPopupTitle(FlatBufferBuilder builder, StringOffset spoilerPopupTitleOffset) { builder.AddOffset(1, spoilerPopupTitleOffset.Value, 0); } + public static void AddSpoilerPopupDescription(FlatBufferBuilder builder, StringOffset spoilerPopupDescriptionOffset) { builder.AddOffset(2, spoilerPopupDescriptionOffset.Value, 0); } + public static void AddIsWarningPopUp(FlatBufferBuilder builder, bool isWarningPopUp) { builder.AddBool(3, isWarningPopUp, false); } + public static void AddConditionScenarioModeId(FlatBufferBuilder builder, long conditionScenarioModeId) { builder.AddLong(4, conditionScenarioModeId, 0); } + public static Offset EndEventContentSpoilerPopupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpoilerPopupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*SpoilerPopupTitle*/, false) + && verifier.VerifyString(tablePos, 8 /*SpoilerPopupDescription*/, false) + && verifier.VerifyField(tablePos, 10 /*IsWarningPopUp*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*ConditionScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs new file mode 100644 index 0000000..3e99e37 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentSpoilerPopupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentSpoilerPopupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentSpoilerPopupExcelTable GetRootAsEventContentSpoilerPopupExcelTable(ByteBuffer _bb) { return GetRootAsEventContentSpoilerPopupExcelTable(_bb, new EventContentSpoilerPopupExcelTable()); } + public static EventContentSpoilerPopupExcelTable GetRootAsEventContentSpoilerPopupExcelTable(ByteBuffer _bb, EventContentSpoilerPopupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentSpoilerPopupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentSpoilerPopupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentSpoilerPopupExcel?)(new SCHALE.Common.FlatData.EventContentSpoilerPopupExcel()).__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 CreateEventContentSpoilerPopupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentSpoilerPopupExcelTable.AddDataList(builder, DataListOffset); + return EventContentSpoilerPopupExcelTable.EndEventContentSpoilerPopupExcelTable(builder); + } + + public static void StartEventContentSpoilerPopupExcelTable(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 EndEventContentSpoilerPopupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentSpoilerPopupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentSpoilerPopupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageExcel.cs b/SCHALE.Common/FlatData/EventContentStageExcel.cs new file mode 100644 index 0000000..632b1aa --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageExcel.cs @@ -0,0 +1,328 @@ +// +// 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 EventContentStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageExcel GetRootAsEventContentStageExcel(ByteBuffer _bb) { return GetRootAsEventContentStageExcel(_bb, new EventContentStageExcel()); } + public static EventContentStageExcel GetRootAsEventContentStageExcel(ByteBuffer _bb, EventContentStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + 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.StageDifficulty StageDifficulty { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public string StageNumber { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStageNumberBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStageNumberBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStageNumberArray() { return __p.__vector_as_array(12); } + public int StageDisplay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + 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; } } +#if ENABLE_SPAN_T + public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(42, 8); } +#else + public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(42); } +#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; } } +#if ENABLE_SPAN_T + public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(44, 8); } +#else + public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(44); } +#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; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(46); } +#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; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(48); } +#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; } } +#if ENABLE_SPAN_T + public Span GetBgmIdBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(58); } +#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; } } +#if ENABLE_SPAN_T + public Span GetStarGoalBytes() { return __p.__vector_as_span(76, 4); } +#else + public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(76); } +#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; } } +#if ENABLE_SPAN_T + public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(78, 4); } +#else + public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(78); } +#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 static Offset CreateEventContentStageExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset), + long EventContentId = 0, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + StringOffset StageNumberOffset = default(StringOffset), + int StageDisplay = 0, + long PrevStageId = 0, + long OpenDate = 0, + long OpenEventPoint = 0, + long OpenConditionScenarioId = 0, + SCHALE.Common.FlatData.EventContentType OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage, + long OpenConditionContentId = 0, + long BattleDuration = 0, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long StageEnterCostId = 0, + int StageEnterCostAmount = 0, + int StageEnterEchelonCount = 0, + long StarConditionTacticRankSCount = 0, + long StarConditionTurnCount = 0, + VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), + StringOffset StrategyMapOffset = default(StringOffset), + StringOffset StrategyMapBGOffset = default(StringOffset), + long EventContentStageRewardId = 0, + int MaxTurn = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + StringOffset BgmIdOffset = default(StringOffset), + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, + long GroundID = 0, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long BGMId = 0, + bool InstantClear = false, + long BuffContentId = 0, + long FixedEchelonId = 0, + bool ChallengeDisplay = false, + VectorOffset StarGoalOffset = default(VectorOffset), + VectorOffset StarGoalAmountOffset = default(VectorOffset), + bool IsDefeatBattle = false, + uint StageHint = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(41); + EventContentStageExcel.AddFixedEchelonId(builder, FixedEchelonId); + EventContentStageExcel.AddBuffContentId(builder, BuffContentId); + EventContentStageExcel.AddBGMId(builder, BGMId); + EventContentStageExcel.AddGroundID(builder, GroundID); + EventContentStageExcel.AddEventContentStageRewardId(builder, EventContentStageRewardId); + EventContentStageExcel.AddStarConditionTurnCount(builder, StarConditionTurnCount); + EventContentStageExcel.AddStarConditionTacticRankSCount(builder, StarConditionTacticRankSCount); + EventContentStageExcel.AddStageEnterCostId(builder, StageEnterCostId); + EventContentStageExcel.AddBattleDuration(builder, BattleDuration); + EventContentStageExcel.AddOpenConditionContentId(builder, OpenConditionContentId); + EventContentStageExcel.AddOpenConditionScenarioId(builder, OpenConditionScenarioId); + EventContentStageExcel.AddOpenEventPoint(builder, OpenEventPoint); + EventContentStageExcel.AddOpenDate(builder, OpenDate); + EventContentStageExcel.AddPrevStageId(builder, PrevStageId); + EventContentStageExcel.AddEventContentId(builder, EventContentId); + EventContentStageExcel.AddId(builder, Id); + EventContentStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + EventContentStageExcel.AddStageHint(builder, StageHint); + EventContentStageExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); + EventContentStageExcel.AddStarGoal(builder, StarGoalOffset); + EventContentStageExcel.AddContentType(builder, ContentType); + EventContentStageExcel.AddStrategyEnvironment(builder, StrategyEnvironment); + EventContentStageExcel.AddBgmId(builder, BgmIdOffset); + EventContentStageExcel.AddRecommandLevel(builder, RecommandLevel); + EventContentStageExcel.AddStageTopography(builder, StageTopography); + EventContentStageExcel.AddMaxTurn(builder, MaxTurn); + EventContentStageExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); + EventContentStageExcel.AddStrategyMap(builder, StrategyMapOffset); + EventContentStageExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); + EventContentStageExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); + EventContentStageExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); + EventContentStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); + EventContentStageExcel.AddStageEnterCostType(builder, StageEnterCostType); + EventContentStageExcel.AddOpenConditionContentType(builder, OpenConditionContentType); + EventContentStageExcel.AddStageDisplay(builder, StageDisplay); + EventContentStageExcel.AddStageNumber(builder, StageNumberOffset); + EventContentStageExcel.AddStageDifficulty(builder, StageDifficulty); + EventContentStageExcel.AddName(builder, NameOffset); + EventContentStageExcel.AddIsDefeatBattle(builder, IsDefeatBattle); + EventContentStageExcel.AddChallengeDisplay(builder, ChallengeDisplay); + EventContentStageExcel.AddInstantClear(builder, InstantClear); + return EventContentStageExcel.EndEventContentStageExcel(builder); + } + + public static void StartEventContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(41); } + 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); } + public static void AddStageDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty stageDifficulty) { builder.AddInt(3, (int)stageDifficulty, 0); } + public static void AddStageNumber(FlatBufferBuilder builder, StringOffset stageNumberOffset) { builder.AddOffset(4, stageNumberOffset.Value, 0); } + public static void AddStageDisplay(FlatBufferBuilder builder, int stageDisplay) { builder.AddInt(5, stageDisplay, 0); } + 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 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 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 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 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 Offset EndEventContentStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StageDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*StageNumber*/, false) + && verifier.VerifyField(tablePos, 14 /*StageDisplay*/, 4 /*int*/, 4, false) + && 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageExcelTable.cs new file mode 100644 index 0000000..6b02876 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageExcelTable GetRootAsEventContentStageExcelTable(ByteBuffer _bb) { return GetRootAsEventContentStageExcelTable(_bb, new EventContentStageExcelTable()); } + public static EventContentStageExcelTable GetRootAsEventContentStageExcelTable(ByteBuffer _bb, EventContentStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentStageExcel?)(new SCHALE.Common.FlatData.EventContentStageExcel()).__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 CreateEventContentStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentStageExcelTable.AddDataList(builder, DataListOffset); + return EventContentStageExcelTable.EndEventContentStageExcelTable(builder); + } + + public static void StartEventContentStageExcelTable(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 EndEventContentStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs new file mode 100644 index 0000000..9bb7903 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 EventContentStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageRewardExcel GetRootAsEventContentStageRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentStageRewardExcel(_bb, new EventContentStageRewardExcel()); } + public static EventContentStageRewardExcel GetRootAsEventContentStageRewardExcel(ByteBuffer _bb, EventContentStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateEventContentStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + EventContentStageRewardExcel.AddRewardId(builder, RewardId); + EventContentStageRewardExcel.AddGroupId(builder, GroupId); + EventContentStageRewardExcel.AddRewardAmount(builder, RewardAmount); + EventContentStageRewardExcel.AddRewardParcelType(builder, RewardParcelType); + EventContentStageRewardExcel.AddRewardProb(builder, RewardProb); + EventContentStageRewardExcel.AddRewardTag(builder, RewardTag); + EventContentStageRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return EventContentStageRewardExcel.EndEventContentStageRewardExcel(builder); + } + + public static void StartEventContentStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(2, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndEventContentStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs new file mode 100644 index 0000000..2884543 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageRewardExcelTable GetRootAsEventContentStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentStageRewardExcelTable(_bb, new EventContentStageRewardExcelTable()); } + public static EventContentStageRewardExcelTable GetRootAsEventContentStageRewardExcelTable(ByteBuffer _bb, EventContentStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentStageRewardExcel?)(new SCHALE.Common.FlatData.EventContentStageRewardExcel()).__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 CreateEventContentStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentStageRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentStageRewardExcelTable.EndEventContentStageRewardExcelTable(builder); + } + + public static void StartEventContentStageRewardExcelTable(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 EndEventContentStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs new file mode 100644 index 0000000..206f97c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcel.cs @@ -0,0 +1,111 @@ +// +// 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 EventContentStageTotalRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageTotalRewardExcel GetRootAsEventContentStageTotalRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentStageTotalRewardExcel(_bb, new EventContentStageTotalRewardExcel()); } + public static EventContentStageTotalRewardExcel GetRootAsEventContentStageTotalRewardExcel(ByteBuffer _bb, EventContentStageTotalRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageTotalRewardExcel __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 RequiredEventItemAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(10); 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(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(10); 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(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(12); } + public long RewardParcelAmount(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(14); } + + public static Offset CreateEventContentStageTotalRewardExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long RequiredEventItemAmount = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(6); + EventContentStageTotalRewardExcel.AddRequiredEventItemAmount(builder, RequiredEventItemAmount); + EventContentStageTotalRewardExcel.AddEventContentId(builder, EventContentId); + EventContentStageTotalRewardExcel.AddId(builder, Id); + EventContentStageTotalRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentStageTotalRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentStageTotalRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + return EventContentStageTotalRewardExcel.EndEventContentStageTotalRewardExcel(builder); + } + + public static void StartEventContentStageTotalRewardExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + 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 AddRequiredEventItemAmount(FlatBufferBuilder builder, long requiredEventItemAmount) { builder.AddLong(2, requiredEventItemAmount, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(3, 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(4, 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(5, 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 EndEventContentStageTotalRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageTotalRewardExcelVerify +{ + 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 /*RequiredEventItemAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs new file mode 100644 index 0000000..7521d25 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentStageTotalRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentStageTotalRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentStageTotalRewardExcelTable GetRootAsEventContentStageTotalRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentStageTotalRewardExcelTable(_bb, new EventContentStageTotalRewardExcelTable()); } + public static EventContentStageTotalRewardExcelTable GetRootAsEventContentStageTotalRewardExcelTable(ByteBuffer _bb, EventContentStageTotalRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentStageTotalRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentStageTotalRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentStageTotalRewardExcel?)(new SCHALE.Common.FlatData.EventContentStageTotalRewardExcel()).__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 CreateEventContentStageTotalRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentStageTotalRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentStageTotalRewardExcelTable.EndEventContentStageTotalRewardExcelTable(builder); + } + + public static void StartEventContentStageTotalRewardExcelTable(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 EndEventContentStageTotalRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentStageTotalRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentStageTotalRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs new file mode 100644 index 0000000..58e20ae --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentTreasureCellRewardExcel.cs @@ -0,0 +1,112 @@ +// +// 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 EventContentTreasureCellRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentTreasureCellRewardExcel GetRootAsEventContentTreasureCellRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentTreasureCellRewardExcel(_bb, new EventContentTreasureCellRewardExcel()); } + public static EventContentTreasureCellRewardExcel GetRootAsEventContentTreasureCellRewardExcel(ByteBuffer _bb, EventContentTreasureCellRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentTreasureCellRewardExcel __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 string LocalizeCodeID { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCodeIDBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetLocalizeCodeIDBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetLocalizeCodeIDArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(8); 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(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(8); 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(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(10); } + public long RewardParcelAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(12); } + + public static Offset CreateEventContentTreasureCellRewardExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset LocalizeCodeIDOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(5); + EventContentTreasureCellRewardExcel.AddId(builder, Id); + EventContentTreasureCellRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentTreasureCellRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentTreasureCellRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentTreasureCellRewardExcel.AddLocalizeCodeID(builder, LocalizeCodeIDOffset); + return EventContentTreasureCellRewardExcel.EndEventContentTreasureCellRewardExcel(builder); + } + + public static void StartEventContentTreasureCellRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocalizeCodeID(FlatBufferBuilder builder, StringOffset localizeCodeIDOffset) { builder.AddOffset(1, localizeCodeIDOffset.Value, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(2, 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(3, 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(4, 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 EndEventContentTreasureCellRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentTreasureCellRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*LocalizeCodeID*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentTreasureExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureExcel.cs new file mode 100644 index 0000000..f2dff8b --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentTreasureExcel.cs @@ -0,0 +1,88 @@ +// +// 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 EventContentTreasureExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentTreasureExcel GetRootAsEventContentTreasureExcel(ByteBuffer _bb) { return GetRootAsEventContentTreasureExcel(_bb, new EventContentTreasureExcel()); } + public static EventContentTreasureExcel GetRootAsEventContentTreasureExcel(ByteBuffer _bb, EventContentTreasureExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentTreasureExcel __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 string TitleLocalize { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleLocalizeBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetTitleLocalizeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetTitleLocalizeArray() { return __p.__vector_as_array(6); } + public int LoopRound { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string UsePrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUsePrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetUsePrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetUsePrefabNameArray() { return __p.__vector_as_array(10); } + public string TreasureBGImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTreasureBGImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetTreasureBGImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetTreasureBGImagePathArray() { return __p.__vector_as_array(12); } + + public static Offset CreateEventContentTreasureExcel(FlatBufferBuilder builder, + long EventContentId = 0, + StringOffset TitleLocalizeOffset = default(StringOffset), + int LoopRound = 0, + StringOffset UsePrefabNameOffset = default(StringOffset), + StringOffset TreasureBGImagePathOffset = default(StringOffset)) { + builder.StartTable(5); + EventContentTreasureExcel.AddEventContentId(builder, EventContentId); + EventContentTreasureExcel.AddTreasureBGImagePath(builder, TreasureBGImagePathOffset); + EventContentTreasureExcel.AddUsePrefabName(builder, UsePrefabNameOffset); + EventContentTreasureExcel.AddLoopRound(builder, LoopRound); + EventContentTreasureExcel.AddTitleLocalize(builder, TitleLocalizeOffset); + return EventContentTreasureExcel.EndEventContentTreasureExcel(builder); + } + + public static void StartEventContentTreasureExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddTitleLocalize(FlatBufferBuilder builder, StringOffset titleLocalizeOffset) { builder.AddOffset(1, titleLocalizeOffset.Value, 0); } + public static void AddLoopRound(FlatBufferBuilder builder, int loopRound) { builder.AddInt(2, loopRound, 0); } + public static void AddUsePrefabName(FlatBufferBuilder builder, StringOffset usePrefabNameOffset) { builder.AddOffset(3, usePrefabNameOffset.Value, 0); } + public static void AddTreasureBGImagePath(FlatBufferBuilder builder, StringOffset treasureBGImagePathOffset) { builder.AddOffset(4, treasureBGImagePathOffset.Value, 0); } + public static Offset EndEventContentTreasureExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentTreasureExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*TitleLocalize*/, false) + && verifier.VerifyField(tablePos, 8 /*LoopRound*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*UsePrefabName*/, false) + && verifier.VerifyString(tablePos, 12 /*TreasureBGImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs new file mode 100644 index 0000000..354273d --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs @@ -0,0 +1,149 @@ +// +// 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 EventContentTreasureRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentTreasureRewardExcel GetRootAsEventContentTreasureRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentTreasureRewardExcel(_bb, new EventContentTreasureRewardExcel()); } + public static EventContentTreasureRewardExcel GetRootAsEventContentTreasureRewardExcel(ByteBuffer _bb, EventContentTreasureRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentTreasureRewardExcel __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 string LocalizeCodeID { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCodeIDBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetLocalizeCodeIDBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetLocalizeCodeIDArray() { return __p.__vector_as_array(6); } + public int CellUnderImageWidth { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CellUnderImageHeight { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool HiddenImage { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + 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 string CellUnderImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCellUnderImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetCellUnderImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetCellUnderImagePathArray() { return __p.__vector_as_array(20); } + public string TreasureSmallImagePath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTreasureSmallImagePathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetTreasureSmallImagePathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetTreasureSmallImagePathArray() { return __p.__vector_as_array(22); } + + public static Offset CreateEventContentTreasureRewardExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset LocalizeCodeIDOffset = default(StringOffset), + int CellUnderImageWidth = 0, + int CellUnderImageHeight = 0, + bool HiddenImage = false, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset), + StringOffset CellUnderImagePathOffset = default(StringOffset), + StringOffset TreasureSmallImagePathOffset = default(StringOffset)) { + builder.StartTable(10); + EventContentTreasureRewardExcel.AddId(builder, Id); + EventContentTreasureRewardExcel.AddTreasureSmallImagePath(builder, TreasureSmallImagePathOffset); + EventContentTreasureRewardExcel.AddCellUnderImagePath(builder, CellUnderImagePathOffset); + EventContentTreasureRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + EventContentTreasureRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + EventContentTreasureRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + EventContentTreasureRewardExcel.AddCellUnderImageHeight(builder, CellUnderImageHeight); + EventContentTreasureRewardExcel.AddCellUnderImageWidth(builder, CellUnderImageWidth); + EventContentTreasureRewardExcel.AddLocalizeCodeID(builder, LocalizeCodeIDOffset); + EventContentTreasureRewardExcel.AddHiddenImage(builder, HiddenImage); + return EventContentTreasureRewardExcel.EndEventContentTreasureRewardExcel(builder); + } + + public static void StartEventContentTreasureRewardExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocalizeCodeID(FlatBufferBuilder builder, StringOffset localizeCodeIDOffset) { builder.AddOffset(1, localizeCodeIDOffset.Value, 0); } + public static void AddCellUnderImageWidth(FlatBufferBuilder builder, int cellUnderImageWidth) { builder.AddInt(2, cellUnderImageWidth, 0); } + public static void AddCellUnderImageHeight(FlatBufferBuilder builder, int cellUnderImageHeight) { builder.AddInt(3, cellUnderImageHeight, 0); } + public static void AddHiddenImage(FlatBufferBuilder builder, bool hiddenImage) { builder.AddBool(4, hiddenImage, false); } + 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 void AddCellUnderImagePath(FlatBufferBuilder builder, StringOffset cellUnderImagePathOffset) { builder.AddOffset(8, cellUnderImagePathOffset.Value, 0); } + public static void AddTreasureSmallImagePath(FlatBufferBuilder builder, StringOffset treasureSmallImagePathOffset) { builder.AddOffset(9, treasureSmallImagePathOffset.Value, 0); } + public static Offset EndEventContentTreasureRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentTreasureRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*LocalizeCodeID*/, false) + && verifier.VerifyField(tablePos, 8 /*CellUnderImageWidth*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CellUnderImageHeight*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*HiddenImage*/, 1 /*bool*/, 1, 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.VerifyString(tablePos, 20 /*CellUnderImagePath*/, false) + && verifier.VerifyString(tablePos, 22 /*TreasureSmallImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs new file mode 100644 index 0000000..e91414a --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentTreasureRoundExcel.cs @@ -0,0 +1,132 @@ +// +// 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 EventContentTreasureRoundExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentTreasureRoundExcel GetRootAsEventContentTreasureRoundExcel(ByteBuffer _bb) { return GetRootAsEventContentTreasureRoundExcel(_bb, new EventContentTreasureRoundExcel()); } + public static EventContentTreasureRoundExcel GetRootAsEventContentTreasureRoundExcel(ByteBuffer _bb, EventContentTreasureRoundExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentTreasureRoundExcel __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 int TreasureRound { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TreasureRoundSize(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int TreasureRoundSizeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTreasureRoundSizeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetTreasureRoundSizeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public int[] GetTreasureRoundSizeArray() { return __p.__vector_as_array(8); } + public bool CellVisualSortUnstructed { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CellCheckGoodsId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CellRewardId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardID(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardIDLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardIDBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardIDBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardIDArray() { return __p.__vector_as_array(16); } + public int RewardAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int RewardAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetRewardAmountArray() { return __p.__vector_as_array(18); } + public string TreasureCellImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTreasureCellImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetTreasureCellImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetTreasureCellImagePathArray() { return __p.__vector_as_array(20); } + + public static Offset CreateEventContentTreasureRoundExcel(FlatBufferBuilder builder, + long EventContentId = 0, + int TreasureRound = 0, + VectorOffset TreasureRoundSizeOffset = default(VectorOffset), + bool CellVisualSortUnstructed = false, + long CellCheckGoodsId = 0, + long CellRewardId = 0, + VectorOffset RewardIDOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset), + StringOffset TreasureCellImagePathOffset = default(StringOffset)) { + builder.StartTable(9); + EventContentTreasureRoundExcel.AddCellRewardId(builder, CellRewardId); + EventContentTreasureRoundExcel.AddCellCheckGoodsId(builder, CellCheckGoodsId); + EventContentTreasureRoundExcel.AddEventContentId(builder, EventContentId); + EventContentTreasureRoundExcel.AddTreasureCellImagePath(builder, TreasureCellImagePathOffset); + EventContentTreasureRoundExcel.AddRewardAmount(builder, RewardAmountOffset); + EventContentTreasureRoundExcel.AddRewardID(builder, RewardIDOffset); + EventContentTreasureRoundExcel.AddTreasureRoundSize(builder, TreasureRoundSizeOffset); + EventContentTreasureRoundExcel.AddTreasureRound(builder, TreasureRound); + EventContentTreasureRoundExcel.AddCellVisualSortUnstructed(builder, CellVisualSortUnstructed); + return EventContentTreasureRoundExcel.EndEventContentTreasureRoundExcel(builder); + } + + public static void StartEventContentTreasureRoundExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddTreasureRound(FlatBufferBuilder builder, int treasureRound) { builder.AddInt(1, treasureRound, 0); } + public static void AddTreasureRoundSize(FlatBufferBuilder builder, VectorOffset treasureRoundSizeOffset) { builder.AddOffset(2, treasureRoundSizeOffset.Value, 0); } + public static VectorOffset CreateTreasureRoundSizeVector(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 CreateTreasureRoundSizeVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTreasureRoundSizeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTreasureRoundSizeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTreasureRoundSizeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCellVisualSortUnstructed(FlatBufferBuilder builder, bool cellVisualSortUnstructed) { builder.AddBool(3, cellVisualSortUnstructed, false); } + public static void AddCellCheckGoodsId(FlatBufferBuilder builder, long cellCheckGoodsId) { builder.AddLong(4, cellCheckGoodsId, 0); } + public static void AddCellRewardId(FlatBufferBuilder builder, long cellRewardId) { builder.AddLong(5, cellRewardId, 0); } + public static void AddRewardID(FlatBufferBuilder builder, VectorOffset rewardIDOffset) { builder.AddOffset(6, rewardIDOffset.Value, 0); } + public static VectorOffset CreateRewardIDVector(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 CreateRewardIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(7, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddTreasureCellImagePath(FlatBufferBuilder builder, StringOffset treasureCellImagePathOffset) { builder.AddOffset(8, treasureCellImagePathOffset.Value, 0); } + public static Offset EndEventContentTreasureRoundExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentTreasureRoundExcelVerify +{ + 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 /*TreasureRound*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*TreasureRoundSize*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 10 /*CellVisualSortUnstructed*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*CellCheckGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*CellRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardID*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardAmount*/, 4 /*int*/, false) + && verifier.VerifyString(tablePos, 20 /*TreasureCellImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentType.cs b/SCHALE.Common/FlatData/EventContentType.cs new file mode 100644 index 0000000..e7bef7c --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentType.cs @@ -0,0 +1,44 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventContentType : int +{ + Stage = 0, + Gacha = 1, + Mission = 2, + Shop = 3, + Raid = 4, + Arena = 5, + BoxGacha = 6, + Collection = 7, + Recollection = 8, + MiniGameRhythm = 9, + CardShop = 10, + EventLocation = 11, + MinigameRhythmEvent = 12, + FortuneGachaShop = 13, + SubEvent = 14, + EventMeetup = 15, + BoxGachaResult = 16, + Conquest = 17, + WorldRaid = 18, + DiceRace = 19, + MiniGameRhythmMission = 20, + WorldRaidEntrance = 21, + MiniEvent = 22, + MiniGameShooting = 23, + MiniGameShootingMission = 24, + MiniGameTBG = 25, + TimeAttackDungeon = 26, + EliminateRaid = 27, + Treasure = 28, + Field = 29, + MultiFloorRaid = 30, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventContentZoneExcel.cs b/SCHALE.Common/FlatData/EventContentZoneExcel.cs new file mode 100644 index 0000000..85bbf02 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentZoneExcel.cs @@ -0,0 +1,131 @@ +// +// 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 EventContentZoneExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentZoneExcel GetRootAsEventContentZoneExcel(ByteBuffer _bb) { return GetRootAsEventContentZoneExcel(_bb, new EventContentZoneExcel()); } + public static EventContentZoneExcel GetRootAsEventContentZoneExcel(ByteBuffer _bb, EventContentZoneExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentZoneExcel __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 OriginalZoneId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LocationId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LocationRank { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventPointForLocationRank { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long StudentVisitProb(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StudentVisitProbLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStudentVisitProbBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetStudentVisitProbBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetStudentVisitProbArray() { return __p.__vector_as_array(16); } + public long RewardGroupId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(20); 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 SCHALE.Common.FlatData.Tag WhiteListTags(int j) { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int WhiteListTagsLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetWhiteListTagsBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetWhiteListTagsBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.Tag[] GetWhiteListTagsArray() { int o = __p.__offset(22); 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 static Offset CreateEventContentZoneExcel(FlatBufferBuilder builder, + long Id = 0, + long OriginalZoneId = 0, + long LocationId = 0, + long LocationRank = 0, + long EventPointForLocationRank = 0, + uint LocalizeEtcId = 0, + VectorOffset StudentVisitProbOffset = default(VectorOffset), + long RewardGroupId = 0, + VectorOffset TagsOffset = default(VectorOffset), + VectorOffset WhiteListTagsOffset = default(VectorOffset)) { + builder.StartTable(10); + EventContentZoneExcel.AddRewardGroupId(builder, RewardGroupId); + EventContentZoneExcel.AddEventPointForLocationRank(builder, EventPointForLocationRank); + EventContentZoneExcel.AddLocationRank(builder, LocationRank); + EventContentZoneExcel.AddLocationId(builder, LocationId); + EventContentZoneExcel.AddOriginalZoneId(builder, OriginalZoneId); + EventContentZoneExcel.AddId(builder, Id); + EventContentZoneExcel.AddWhiteListTags(builder, WhiteListTagsOffset); + EventContentZoneExcel.AddTags(builder, TagsOffset); + EventContentZoneExcel.AddStudentVisitProb(builder, StudentVisitProbOffset); + EventContentZoneExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + return EventContentZoneExcel.EndEventContentZoneExcel(builder); + } + + public static void StartEventContentZoneExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddOriginalZoneId(FlatBufferBuilder builder, long originalZoneId) { builder.AddLong(1, originalZoneId, 0); } + public static void AddLocationId(FlatBufferBuilder builder, long locationId) { builder.AddLong(2, locationId, 0); } + public static void AddLocationRank(FlatBufferBuilder builder, long locationRank) { builder.AddLong(3, locationRank, 0); } + public static void AddEventPointForLocationRank(FlatBufferBuilder builder, long eventPointForLocationRank) { builder.AddLong(4, eventPointForLocationRank, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(5, localizeEtcId, 0); } + public static void AddStudentVisitProb(FlatBufferBuilder builder, VectorOffset studentVisitProbOffset) { builder.AddOffset(6, studentVisitProbOffset.Value, 0); } + public static VectorOffset CreateStudentVisitProbVector(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 CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStudentVisitProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStudentVisitProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardGroupId(FlatBufferBuilder builder, long rewardGroupId) { builder.AddLong(7, rewardGroupId, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(8, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddWhiteListTags(FlatBufferBuilder builder, VectorOffset whiteListTagsOffset) { builder.AddOffset(9, whiteListTagsOffset.Value, 0); } + public static VectorOffset CreateWhiteListTagsVector(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 CreateWhiteListTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateWhiteListTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateWhiteListTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartWhiteListTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndEventContentZoneExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentZoneExcelVerify +{ + 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 /*OriginalZoneId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*LocationId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*LocationRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*EventPointForLocationRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*StudentVisitProb*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*RewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*WhiteListTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs b/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs new file mode 100644 index 0000000..5878e64 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentZoneExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentZoneExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentZoneExcelTable GetRootAsEventContentZoneExcelTable(ByteBuffer _bb) { return GetRootAsEventContentZoneExcelTable(_bb, new EventContentZoneExcelTable()); } + public static EventContentZoneExcelTable GetRootAsEventContentZoneExcelTable(ByteBuffer _bb, EventContentZoneExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentZoneExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentZoneExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentZoneExcel?)(new SCHALE.Common.FlatData.EventContentZoneExcel()).__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 CreateEventContentZoneExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentZoneExcelTable.AddDataList(builder, DataListOffset); + return EventContentZoneExcelTable.EndEventContentZoneExcelTable(builder); + } + + public static void StartEventContentZoneExcelTable(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 EndEventContentZoneExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentZoneExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentZoneExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs new file mode 100644 index 0000000..9aa57f1 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcel.cs @@ -0,0 +1,150 @@ +// +// 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 EventContentZoneVisitRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentZoneVisitRewardExcel GetRootAsEventContentZoneVisitRewardExcel(ByteBuffer _bb) { return GetRootAsEventContentZoneVisitRewardExcel(_bb, new EventContentZoneVisitRewardExcel()); } + public static EventContentZoneVisitRewardExcel GetRootAsEventContentZoneVisitRewardExcel(ByteBuffer _bb, EventContentZoneVisitRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentZoneVisitRewardExcel __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 EventContentLocationId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DevName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(8); } + public long CharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string CharacterDevName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterDevNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetCharacterDevNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetCharacterDevNameArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.ParcelType VisitRewardParcelType(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 VisitRewardParcelTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVisitRewardParcelTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetVisitRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetVisitRewardParcelTypeArray() { 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 VisitRewardParcelId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int VisitRewardParcelIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVisitRewardParcelIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetVisitRewardParcelIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetVisitRewardParcelIdArray() { return __p.__vector_as_array(16); } + public long VisitRewardAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int VisitRewardAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVisitRewardAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetVisitRewardAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetVisitRewardAmountArray() { return __p.__vector_as_array(18); } + public long VisitRewardProb(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int VisitRewardProbLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVisitRewardProbBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetVisitRewardProbBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetVisitRewardProbArray() { return __p.__vector_as_array(20); } + + public static Offset CreateEventContentZoneVisitRewardExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long EventContentLocationId = 0, + StringOffset DevNameOffset = default(StringOffset), + long CharacterId = 0, + StringOffset CharacterDevNameOffset = default(StringOffset), + VectorOffset VisitRewardParcelTypeOffset = default(VectorOffset), + VectorOffset VisitRewardParcelIdOffset = default(VectorOffset), + VectorOffset VisitRewardAmountOffset = default(VectorOffset), + VectorOffset VisitRewardProbOffset = default(VectorOffset)) { + builder.StartTable(9); + EventContentZoneVisitRewardExcel.AddCharacterId(builder, CharacterId); + EventContentZoneVisitRewardExcel.AddEventContentLocationId(builder, EventContentLocationId); + EventContentZoneVisitRewardExcel.AddEventContentId(builder, EventContentId); + EventContentZoneVisitRewardExcel.AddVisitRewardProb(builder, VisitRewardProbOffset); + EventContentZoneVisitRewardExcel.AddVisitRewardAmount(builder, VisitRewardAmountOffset); + EventContentZoneVisitRewardExcel.AddVisitRewardParcelId(builder, VisitRewardParcelIdOffset); + EventContentZoneVisitRewardExcel.AddVisitRewardParcelType(builder, VisitRewardParcelTypeOffset); + EventContentZoneVisitRewardExcel.AddCharacterDevName(builder, CharacterDevNameOffset); + EventContentZoneVisitRewardExcel.AddDevName(builder, DevNameOffset); + return EventContentZoneVisitRewardExcel.EndEventContentZoneVisitRewardExcel(builder); + } + + public static void StartEventContentZoneVisitRewardExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddEventContentLocationId(FlatBufferBuilder builder, long eventContentLocationId) { builder.AddLong(1, eventContentLocationId, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(2, devNameOffset.Value, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(3, characterId, 0); } + public static void AddCharacterDevName(FlatBufferBuilder builder, StringOffset characterDevNameOffset) { builder.AddOffset(4, characterDevNameOffset.Value, 0); } + public static void AddVisitRewardParcelType(FlatBufferBuilder builder, VectorOffset visitRewardParcelTypeOffset) { builder.AddOffset(5, visitRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateVisitRewardParcelTypeVector(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 CreateVisitRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVisitRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVisitRewardParcelId(FlatBufferBuilder builder, VectorOffset visitRewardParcelIdOffset) { builder.AddOffset(6, visitRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateVisitRewardParcelIdVector(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 CreateVisitRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVisitRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddVisitRewardAmount(FlatBufferBuilder builder, VectorOffset visitRewardAmountOffset) { builder.AddOffset(7, visitRewardAmountOffset.Value, 0); } + public static VectorOffset CreateVisitRewardAmountVector(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 CreateVisitRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVisitRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddVisitRewardProb(FlatBufferBuilder builder, VectorOffset visitRewardProbOffset) { builder.AddOffset(8, visitRewardProbOffset.Value, 0); } + public static VectorOffset CreateVisitRewardProbVector(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 CreateVisitRewardProbVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardProbVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVisitRewardProbVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVisitRewardProbVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndEventContentZoneVisitRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentZoneVisitRewardExcelVerify +{ + 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 /*EventContentLocationId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*DevName*/, false) + && verifier.VerifyField(tablePos, 10 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*CharacterDevName*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*VisitRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*VisitRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*VisitRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*VisitRewardProb*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs new file mode 100644 index 0000000..3f58b19 --- /dev/null +++ b/SCHALE.Common/FlatData/EventContentZoneVisitRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 EventContentZoneVisitRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static EventContentZoneVisitRewardExcelTable GetRootAsEventContentZoneVisitRewardExcelTable(ByteBuffer _bb) { return GetRootAsEventContentZoneVisitRewardExcelTable(_bb, new EventContentZoneVisitRewardExcelTable()); } + public static EventContentZoneVisitRewardExcelTable GetRootAsEventContentZoneVisitRewardExcelTable(ByteBuffer _bb, EventContentZoneVisitRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public EventContentZoneVisitRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.EventContentZoneVisitRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EventContentZoneVisitRewardExcel?)(new SCHALE.Common.FlatData.EventContentZoneVisitRewardExcel()).__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 CreateEventContentZoneVisitRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + EventContentZoneVisitRewardExcelTable.AddDataList(builder, DataListOffset); + return EventContentZoneVisitRewardExcelTable.EndEventContentZoneVisitRewardExcelTable(builder); + } + + public static void StartEventContentZoneVisitRewardExcelTable(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 EndEventContentZoneVisitRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class EventContentZoneVisitRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EventContentZoneVisitRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/EventNotifyType.cs b/SCHALE.Common/FlatData/EventNotifyType.cs new file mode 100644 index 0000000..3f48cda --- /dev/null +++ b/SCHALE.Common/FlatData/EventNotifyType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventNotifyType : int +{ + RewardIncreaseEvent = 0, + AccountExpIncreaseEvent = 1, + RaidSeasonManager = 2, + TimeAttackDungeonSeasonManage = 3, + EliminateRaidSeasonManage = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/EventTargetType.cs b/SCHALE.Common/FlatData/EventTargetType.cs new file mode 100644 index 0000000..e3a0736 --- /dev/null +++ b/SCHALE.Common/FlatData/EventTargetType.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum EventTargetType : int +{ + WeekDungeon = 0, + Chaser = 1, + Campaign_Normal = 2, + Campaign_Hard = 3, + SchoolDungeon = 4, + AcademySchedule = 5, + TimeAttackDungeon = 6, + AccountLevelExpIncrease = 7, + Raid = 8, + EliminateRaid = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/ExternalBTNodeType.cs b/SCHALE.Common/FlatData/ExternalBTNodeType.cs new file mode 100644 index 0000000..9bff41a --- /dev/null +++ b/SCHALE.Common/FlatData/ExternalBTNodeType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ExternalBTNodeType : int +{ + Sequence = 0, + Selector = 1, + Instant = 2, + SubNode = 3, + ExecuteAll = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ExternalBTTrigger.cs b/SCHALE.Common/FlatData/ExternalBTTrigger.cs new file mode 100644 index 0000000..ed0b5d3 --- /dev/null +++ b/SCHALE.Common/FlatData/ExternalBTTrigger.cs @@ -0,0 +1,31 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ExternalBTTrigger : int +{ + None = 0, + HPUnder = 1, + ApplySkillEffectCategory = 2, + HaveNextExSkillActiveGauge = 3, + UseNormalSkill = 4, + UseExSkill = 5, + CheckActiveGaugeOver = 6, + CheckPeriod = 7, + CheckSummonCharacterCountOver = 8, + CheckSummonCharacterCountUnder = 9, + ApplyGroggy = 10, + ApplyLogicEffectTemplateId = 11, + OnSpawned = 12, + CheckActiveGaugeBetween = 13, + DestroyParts = 14, + CheckHallucinationCountOver = 15, + CheckHallucinationCountUnder = 16, + UseSkillEndGroupId = 17, +}; + + +} diff --git a/SCHALE.Common/FlatData/ExternalBehavior.cs b/SCHALE.Common/FlatData/ExternalBehavior.cs new file mode 100644 index 0000000..9c5ab27 --- /dev/null +++ b/SCHALE.Common/FlatData/ExternalBehavior.cs @@ -0,0 +1,31 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ExternalBehavior : int +{ + UseNextExSkill = 0, + ChangePhase = 1, + ChangeSection = 2, + AddActiveGauge = 3, + UseSelectExSkill = 4, + ClearNormalSkill = 5, + MoveLeft = 6, + MoveRight = 7, + AllUseSelectExSkill = 8, + ConnectCharacterToDummy = 9, + ConnectExSkillToParts = 10, + SetMaxHPToParts = 11, + AlivePartsUseExSkill = 12, + ActivatePart = 13, + AddGroggy = 14, + SelectTargetToUseSkillAlly = 15, + ForceChangePhase = 16, + ClearUseSkillEndGroupId = 17, +}; + + +} diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs new file mode 100644 index 0000000..a90afd2 --- /dev/null +++ b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs @@ -0,0 +1,113 @@ +// +// 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 FarmingDungeonLocationManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb) { return GetRootAsFarmingDungeonLocationManageExcel(_bb, new FarmingDungeonLocationManageExcel()); } + public static FarmingDungeonLocationManageExcel GetRootAsFarmingDungeonLocationManageExcel(ByteBuffer _bb, FarmingDungeonLocationManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FarmingDungeonLocationManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long FarmingDungeonLocationId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } + public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } + public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string OpenStartDateTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenStartDateTimeBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetOpenStartDateTimeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetOpenStartDateTimeArray() { return __p.__vector_as_array(14); } + public string OpenEndDateTime { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenEndDateTimeBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetOpenEndDateTimeBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetOpenEndDateTimeArray() { return __p.__vector_as_array(16); } + public string LocationButtonImagePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocationButtonImagePathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetLocationButtonImagePathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetLocationButtonImagePathArray() { return __p.__vector_as_array(18); } + public uint LocalizeCodeTitle { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint LocalizeCodeInfo { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateFarmingDungeonLocationManageExcel(FlatBufferBuilder builder, + long FarmingDungeonLocationId = 0, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None, + SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, + long Order = 0, + StringOffset OpenStartDateTimeOffset = default(StringOffset), + StringOffset OpenEndDateTimeOffset = default(StringOffset), + StringOffset LocationButtonImagePathOffset = default(StringOffset), + uint LocalizeCodeTitle = 0, + uint LocalizeCodeInfo = 0) { + builder.StartTable(10); + FarmingDungeonLocationManageExcel.AddOrder(builder, Order); + FarmingDungeonLocationManageExcel.AddFarmingDungeonLocationId(builder, FarmingDungeonLocationId); + FarmingDungeonLocationManageExcel.AddLocalizeCodeInfo(builder, LocalizeCodeInfo); + FarmingDungeonLocationManageExcel.AddLocalizeCodeTitle(builder, LocalizeCodeTitle); + FarmingDungeonLocationManageExcel.AddLocationButtonImagePath(builder, LocationButtonImagePathOffset); + FarmingDungeonLocationManageExcel.AddOpenEndDateTime(builder, OpenEndDateTimeOffset); + FarmingDungeonLocationManageExcel.AddOpenStartDateTime(builder, OpenStartDateTimeOffset); + FarmingDungeonLocationManageExcel.AddSchoolDungeonType(builder, SchoolDungeonType); + FarmingDungeonLocationManageExcel.AddWeekDungeonType(builder, WeekDungeonType); + FarmingDungeonLocationManageExcel.AddContentType(builder, ContentType); + return FarmingDungeonLocationManageExcel.EndFarmingDungeonLocationManageExcel(builder); + } + + public static void StartFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddFarmingDungeonLocationId(FlatBufferBuilder builder, long farmingDungeonLocationId) { builder.AddLong(0, farmingDungeonLocationId, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(1, (int)contentType, 0); } + public static void AddWeekDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType weekDungeonType) { builder.AddInt(2, (int)weekDungeonType, 0); } + public static void AddSchoolDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SchoolDungeonType schoolDungeonType) { builder.AddInt(3, (int)schoolDungeonType, 0); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(4, order, 0); } + public static void AddOpenStartDateTime(FlatBufferBuilder builder, StringOffset openStartDateTimeOffset) { builder.AddOffset(5, openStartDateTimeOffset.Value, 0); } + public static void AddOpenEndDateTime(FlatBufferBuilder builder, StringOffset openEndDateTimeOffset) { builder.AddOffset(6, openEndDateTimeOffset.Value, 0); } + public static void AddLocationButtonImagePath(FlatBufferBuilder builder, StringOffset locationButtonImagePathOffset) { builder.AddOffset(7, locationButtonImagePathOffset.Value, 0); } + public static void AddLocalizeCodeTitle(FlatBufferBuilder builder, uint localizeCodeTitle) { builder.AddUint(8, localizeCodeTitle, 0); } + public static void AddLocalizeCodeInfo(FlatBufferBuilder builder, uint localizeCodeInfo) { builder.AddUint(9, localizeCodeInfo, 0); } + public static Offset EndFarmingDungeonLocationManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FarmingDungeonLocationManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FarmingDungeonLocationId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*WeekDungeonType*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*SchoolDungeonType*/, 4 /*SCHALE.Common.FlatData.SchoolDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*OpenStartDateTime*/, false) + && verifier.VerifyString(tablePos, 16 /*OpenEndDateTime*/, false) + && verifier.VerifyString(tablePos, 18 /*LocationButtonImagePath*/, false) + && verifier.VerifyField(tablePos, 20 /*LocalizeCodeTitle*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*LocalizeCodeInfo*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs new file mode 100644 index 0000000..7f7963a --- /dev/null +++ b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FarmingDungeonLocationManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FarmingDungeonLocationManageExcelTable GetRootAsFarmingDungeonLocationManageExcelTable(ByteBuffer _bb) { return GetRootAsFarmingDungeonLocationManageExcelTable(_bb, new FarmingDungeonLocationManageExcelTable()); } + public static FarmingDungeonLocationManageExcelTable GetRootAsFarmingDungeonLocationManageExcelTable(ByteBuffer _bb, FarmingDungeonLocationManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FarmingDungeonLocationManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel?)(new SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel()).__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 CreateFarmingDungeonLocationManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FarmingDungeonLocationManageExcelTable.AddDataList(builder, DataListOffset); + return FarmingDungeonLocationManageExcelTable.EndFarmingDungeonLocationManageExcelTable(builder); + } + + public static void StartFarmingDungeonLocationManageExcelTable(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 EndFarmingDungeonLocationManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FarmingDungeonLocationManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FarmingDungeonLocationManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FavorLevelExcel.cs b/SCHALE.Common/FlatData/FavorLevelExcel.cs new file mode 100644 index 0000000..ebeb8d5 --- /dev/null +++ b/SCHALE.Common/FlatData/FavorLevelExcel.cs @@ -0,0 +1,67 @@ +// +// 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 FavorLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FavorLevelExcel GetRootAsFavorLevelExcel(ByteBuffer _bb) { return GetRootAsFavorLevelExcel(_bb, new FavorLevelExcel()); } + public static FavorLevelExcel GetRootAsFavorLevelExcel(ByteBuffer _bb, FavorLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FavorLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExpType(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExpTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExpTypeBytes() { return __p.__vector_as_span(6, 8); } +#else + public ArraySegment? GetExpTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public long[] GetExpTypeArray() { return __p.__vector_as_array(6); } + + public static Offset CreateFavorLevelExcel(FlatBufferBuilder builder, + long Level = 0, + VectorOffset ExpTypeOffset = default(VectorOffset)) { + builder.StartTable(2); + FavorLevelExcel.AddLevel(builder, Level); + FavorLevelExcel.AddExpType(builder, ExpTypeOffset); + return FavorLevelExcel.EndFavorLevelExcel(builder); + } + + public static void StartFavorLevelExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddLevel(FlatBufferBuilder builder, long level) { builder.AddLong(0, level, 0); } + public static void AddExpType(FlatBufferBuilder builder, VectorOffset expTypeOffset) { builder.AddOffset(1, expTypeOffset.Value, 0); } + public static VectorOffset CreateExpTypeVector(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 CreateExpTypeVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExpTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExpTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExpTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFavorLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FavorLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*ExpType*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FavorLevelExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelExcelTable.cs new file mode 100644 index 0000000..ecb918d --- /dev/null +++ b/SCHALE.Common/FlatData/FavorLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FavorLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FavorLevelExcelTable GetRootAsFavorLevelExcelTable(ByteBuffer _bb) { return GetRootAsFavorLevelExcelTable(_bb, new FavorLevelExcelTable()); } + public static FavorLevelExcelTable GetRootAsFavorLevelExcelTable(ByteBuffer _bb, FavorLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FavorLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FavorLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FavorLevelExcel?)(new SCHALE.Common.FlatData.FavorLevelExcel()).__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 CreateFavorLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FavorLevelExcelTable.AddDataList(builder, DataListOffset); + return FavorLevelExcelTable.EndFavorLevelExcelTable(builder); + } + + public static void StartFavorLevelExcelTable(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 EndFavorLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FavorLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FavorLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs b/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs new file mode 100644 index 0000000..79b7273 --- /dev/null +++ b/SCHALE.Common/FlatData/FavorLevelRewardExcel.cs @@ -0,0 +1,140 @@ +// +// 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 FavorLevelRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FavorLevelRewardExcel GetRootAsFavorLevelRewardExcel(ByteBuffer _bb) { return GetRootAsFavorLevelRewardExcel(_bb, new FavorLevelRewardExcel()); } + public static FavorLevelRewardExcel GetRootAsFavorLevelRewardExcel(ByteBuffer _bb, FavorLevelRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FavorLevelRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FavorLevel { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EquipmentOptionType StatType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentOptionType)0; } + public int StatTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetStatTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.EquipmentOptionType[] GetStatTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentOptionType[] a = new SCHALE.Common.FlatData.EquipmentOptionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentOptionType)__p.bb.GetInt(p + i * 4); } return a; } + public long StatValue(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatValueLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatValueBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetStatValueBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetStatValueArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(12); 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(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(14); } + public long RewardAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardAmountArray() { return __p.__vector_as_array(16); } + + public static Offset CreateFavorLevelRewardExcel(FlatBufferBuilder builder, + long CharacterId = 0, + long FavorLevel = 0, + VectorOffset StatTypeOffset = default(VectorOffset), + VectorOffset StatValueOffset = default(VectorOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { + builder.StartTable(7); + FavorLevelRewardExcel.AddFavorLevel(builder, FavorLevel); + FavorLevelRewardExcel.AddCharacterId(builder, CharacterId); + FavorLevelRewardExcel.AddRewardAmount(builder, RewardAmountOffset); + FavorLevelRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + FavorLevelRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + FavorLevelRewardExcel.AddStatValue(builder, StatValueOffset); + FavorLevelRewardExcel.AddStatType(builder, StatTypeOffset); + return FavorLevelRewardExcel.EndFavorLevelRewardExcel(builder); + } + + public static void StartFavorLevelRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddFavorLevel(FlatBufferBuilder builder, long favorLevel) { builder.AddLong(1, favorLevel, 0); } + public static void AddStatType(FlatBufferBuilder builder, VectorOffset statTypeOffset) { builder.AddOffset(2, statTypeOffset.Value, 0); } + public static VectorOffset CreateStatTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] 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 CreateStatTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentOptionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatValue(FlatBufferBuilder builder, VectorOffset statValueOffset) { builder.AddOffset(3, statValueOffset.Value, 0); } + public static VectorOffset CreateStatValueVector(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 CreateStatValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(4, 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(5, 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 AddRewardAmount(FlatBufferBuilder builder, VectorOffset rewardAmountOffset) { builder.AddOffset(6, rewardAmountOffset.Value, 0); } + public static VectorOffset CreateRewardAmountVector(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 CreateRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFavorLevelRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FavorLevelRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FavorLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*StatType*/, 4 /*SCHALE.Common.FlatData.EquipmentOptionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*StatValue*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs new file mode 100644 index 0000000..0a3b538 --- /dev/null +++ b/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FavorLevelRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FavorLevelRewardExcelTable GetRootAsFavorLevelRewardExcelTable(ByteBuffer _bb) { return GetRootAsFavorLevelRewardExcelTable(_bb, new FavorLevelRewardExcelTable()); } + public static FavorLevelRewardExcelTable GetRootAsFavorLevelRewardExcelTable(ByteBuffer _bb, FavorLevelRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FavorLevelRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FavorLevelRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FavorLevelRewardExcel?)(new SCHALE.Common.FlatData.FavorLevelRewardExcel()).__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 CreateFavorLevelRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FavorLevelRewardExcelTable.AddDataList(builder, DataListOffset); + return FavorLevelRewardExcelTable.EndFavorLevelRewardExcelTable(builder); + } + + public static void StartFavorLevelRewardExcelTable(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 EndFavorLevelRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FavorLevelRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FavorLevelRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FeverBattleType.cs b/SCHALE.Common/FlatData/FeverBattleType.cs new file mode 100644 index 0000000..83569e1 --- /dev/null +++ b/SCHALE.Common/FlatData/FeverBattleType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FeverBattleType : int +{ + Campaign = 0, + Raid = 1, + WeekDungeon = 2, + Arena = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldConditionClass.cs b/SCHALE.Common/FlatData/FieldConditionClass.cs new file mode 100644 index 0000000..083223f --- /dev/null +++ b/SCHALE.Common/FlatData/FieldConditionClass.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FieldConditionClass : int +{ + AndOr = 0, + OrAnd = 1, + Multi = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldConditionType.cs b/SCHALE.Common/FlatData/FieldConditionType.cs new file mode 100644 index 0000000..2ec24d8 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldConditionType.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FieldConditionType : int +{ + Invalid = 0, + Interaction = 1, + QuestInProgress = 2, + QuestClear = 3, + Date = 4, + StageClear = 5, + HasKeyword = 6, + HasEvidence = 7, + OpenDate = 8, + OpenDateAfter = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldContentStageExcel.cs b/SCHALE.Common/FlatData/FieldContentStageExcel.cs new file mode 100644 index 0000000..8b278c7 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldContentStageExcel.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::Google.FlatBuffers; + +public struct FieldContentStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldContentStageExcel GetRootAsFieldContentStageExcel(ByteBuffer _bb) { return GetRootAsFieldContentStageExcel(_bb, new FieldContentStageExcel()); } + public static FieldContentStageExcel GetRootAsFieldContentStageExcel(ByteBuffer _bb, FieldContentStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldContentStageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AreaId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public string Name { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(14); } + public long BattleDuration { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long StageEnterCostId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageEnterCostAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public int RecommandLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long GroundID { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool InstantClear { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long FixedEchelonId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool SkipFormationSettings { get { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateFieldContentStageExcel(FlatBufferBuilder builder, + long Id = 0, + long SeasonId = 0, + long AreaId = 0, + long GroupId = 0, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + StringOffset NameOffset = default(StringOffset), + long BattleDuration = 0, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long StageEnterCostId = 0, + int StageEnterCostAmount = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + long GroundID = 0, + long BGMId = 0, + bool InstantClear = false, + long FixedEchelonId = 0, + bool SkipFormationSettings = false) { + builder.StartTable(17); + FieldContentStageExcel.AddFixedEchelonId(builder, FixedEchelonId); + FieldContentStageExcel.AddBGMId(builder, BGMId); + FieldContentStageExcel.AddGroundID(builder, GroundID); + FieldContentStageExcel.AddStageEnterCostId(builder, StageEnterCostId); + FieldContentStageExcel.AddBattleDuration(builder, BattleDuration); + FieldContentStageExcel.AddGroupId(builder, GroupId); + FieldContentStageExcel.AddAreaId(builder, AreaId); + FieldContentStageExcel.AddSeasonId(builder, SeasonId); + FieldContentStageExcel.AddId(builder, Id); + FieldContentStageExcel.AddRecommandLevel(builder, RecommandLevel); + FieldContentStageExcel.AddStageTopography(builder, StageTopography); + FieldContentStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); + FieldContentStageExcel.AddStageEnterCostType(builder, StageEnterCostType); + FieldContentStageExcel.AddName(builder, NameOffset); + FieldContentStageExcel.AddStageDifficulty(builder, StageDifficulty); + FieldContentStageExcel.AddSkipFormationSettings(builder, SkipFormationSettings); + FieldContentStageExcel.AddInstantClear(builder, InstantClear); + return FieldContentStageExcel.EndFieldContentStageExcel(builder); + } + + public static void StartFieldContentStageExcel(FlatBufferBuilder builder) { builder.StartTable(17); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); } + public static void AddAreaId(FlatBufferBuilder builder, long areaId) { builder.AddLong(2, areaId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(3, groupId, 0); } + public static void AddStageDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty stageDifficulty) { builder.AddInt(4, (int)stageDifficulty, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(5, nameOffset.Value, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(6, battleDuration, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(7, (int)stageEnterCostType, 0); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(8, stageEnterCostId, 0); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(9, stageEnterCostAmount, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(10, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(11, recommandLevel, 0); } + public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(12, groundID, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(13, bGMId, 0); } + public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(14, instantClear, false); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(15, fixedEchelonId, 0); } + public static void AddSkipFormationSettings(FlatBufferBuilder builder, bool skipFormationSettings) { builder.AddBool(16, skipFormationSettings, false); } + public static Offset EndFieldContentStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldContentStageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*AreaId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StageDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyString(tablePos, 14 /*Name*/, false) + && verifier.VerifyField(tablePos, 16 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*StageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*GroundID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*InstantClear*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 34 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*SkipFormationSettings*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs b/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs new file mode 100644 index 0000000..03c2f57 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldContentStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldContentStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldContentStageExcelTable GetRootAsFieldContentStageExcelTable(ByteBuffer _bb) { return GetRootAsFieldContentStageExcelTable(_bb, new FieldContentStageExcelTable()); } + public static FieldContentStageExcelTable GetRootAsFieldContentStageExcelTable(ByteBuffer _bb, FieldContentStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldContentStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldContentStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldContentStageExcel?)(new SCHALE.Common.FlatData.FieldContentStageExcel()).__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 CreateFieldContentStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldContentStageExcelTable.AddDataList(builder, DataListOffset); + return FieldContentStageExcelTable.EndFieldContentStageExcelTable(builder); + } + + public static void StartFieldContentStageExcelTable(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 EndFieldContentStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldContentStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldContentStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs new file mode 100644 index 0000000..bd93ba6 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 FieldContentStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldContentStageRewardExcel GetRootAsFieldContentStageRewardExcel(ByteBuffer _bb) { return GetRootAsFieldContentStageRewardExcel(_bb, new FieldContentStageRewardExcel()); } + public static FieldContentStageRewardExcel GetRootAsFieldContentStageRewardExcel(ByteBuffer _bb, FieldContentStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldContentStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateFieldContentStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + FieldContentStageRewardExcel.AddRewardId(builder, RewardId); + FieldContentStageRewardExcel.AddGroupId(builder, GroupId); + FieldContentStageRewardExcel.AddRewardAmount(builder, RewardAmount); + FieldContentStageRewardExcel.AddRewardParcelType(builder, RewardParcelType); + FieldContentStageRewardExcel.AddRewardProb(builder, RewardProb); + FieldContentStageRewardExcel.AddRewardTag(builder, RewardTag); + FieldContentStageRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return FieldContentStageRewardExcel.EndFieldContentStageRewardExcel(builder); + } + + public static void StartFieldContentStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(2, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndFieldContentStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldContentStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs b/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs new file mode 100644 index 0000000..c9e57c2 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldContentStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldContentStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldContentStageRewardExcelTable GetRootAsFieldContentStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsFieldContentStageRewardExcelTable(_bb, new FieldContentStageRewardExcelTable()); } + public static FieldContentStageRewardExcelTable GetRootAsFieldContentStageRewardExcelTable(ByteBuffer _bb, FieldContentStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldContentStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldContentStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldContentStageRewardExcel?)(new SCHALE.Common.FlatData.FieldContentStageRewardExcel()).__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 CreateFieldContentStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldContentStageRewardExcelTable.AddDataList(builder, DataListOffset); + return FieldContentStageRewardExcelTable.EndFieldContentStageRewardExcelTable(builder); + } + + public static void StartFieldContentStageRewardExcelTable(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 EndFieldContentStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldContentStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldContentStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldDateExcel.cs b/SCHALE.Common/FlatData/FieldDateExcel.cs new file mode 100644 index 0000000..8eb48a2 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldDateExcel.cs @@ -0,0 +1,117 @@ +// +// 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 FieldDateExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldDateExcel GetRootAsFieldDateExcel(ByteBuffer _bb) { return GetRootAsFieldDateExcel(_bb, new FieldDateExcel()); } + public static FieldDateExcel GetRootAsFieldDateExcel(ByteBuffer _bb, FieldDateExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldDateExcel __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 SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenDate { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DateLocalizeKey { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDateLocalizeKeyBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetDateLocalizeKeyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetDateLocalizeKeyArray() { return __p.__vector_as_array(10); } + public long EntrySceneId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldConditionType StartConditionType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } + public long StartConditionId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldConditionType EndConditionType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } + public long EndConditionId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenConditionStage { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DateResultSpinePath { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDateResultSpinePathBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetDateResultSpinePathBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetDateResultSpinePathArray() { return __p.__vector_as_array(24); } + public float DateResultSpineOffsetX { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateFieldDateExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long SeasonId = 0, + long OpenDate = 0, + StringOffset DateLocalizeKeyOffset = default(StringOffset), + long EntrySceneId = 0, + SCHALE.Common.FlatData.FieldConditionType StartConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, + long StartConditionId = 0, + SCHALE.Common.FlatData.FieldConditionType EndConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, + long EndConditionId = 0, + long OpenConditionStage = 0, + StringOffset DateResultSpinePathOffset = default(StringOffset), + float DateResultSpineOffsetX = 0.0f) { + builder.StartTable(12); + FieldDateExcel.AddOpenConditionStage(builder, OpenConditionStage); + FieldDateExcel.AddEndConditionId(builder, EndConditionId); + FieldDateExcel.AddStartConditionId(builder, StartConditionId); + FieldDateExcel.AddEntrySceneId(builder, EntrySceneId); + FieldDateExcel.AddOpenDate(builder, OpenDate); + FieldDateExcel.AddSeasonId(builder, SeasonId); + FieldDateExcel.AddUniqueId(builder, UniqueId); + FieldDateExcel.AddDateResultSpineOffsetX(builder, DateResultSpineOffsetX); + FieldDateExcel.AddDateResultSpinePath(builder, DateResultSpinePathOffset); + FieldDateExcel.AddEndConditionType(builder, EndConditionType); + FieldDateExcel.AddStartConditionType(builder, StartConditionType); + FieldDateExcel.AddDateLocalizeKey(builder, DateLocalizeKeyOffset); + return FieldDateExcel.EndFieldDateExcel(builder); + } + + public static void StartFieldDateExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); } + public static void AddOpenDate(FlatBufferBuilder builder, long openDate) { builder.AddLong(2, openDate, 0); } + public static void AddDateLocalizeKey(FlatBufferBuilder builder, StringOffset dateLocalizeKeyOffset) { builder.AddOffset(3, dateLocalizeKeyOffset.Value, 0); } + public static void AddEntrySceneId(FlatBufferBuilder builder, long entrySceneId) { builder.AddLong(4, entrySceneId, 0); } + public static void AddStartConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType startConditionType) { builder.AddInt(5, (int)startConditionType, 0); } + public static void AddStartConditionId(FlatBufferBuilder builder, long startConditionId) { builder.AddLong(6, startConditionId, 0); } + public static void AddEndConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType endConditionType) { builder.AddInt(7, (int)endConditionType, 0); } + public static void AddEndConditionId(FlatBufferBuilder builder, long endConditionId) { builder.AddLong(8, endConditionId, 0); } + public static void AddOpenConditionStage(FlatBufferBuilder builder, long openConditionStage) { builder.AddLong(9, openConditionStage, 0); } + public static void AddDateResultSpinePath(FlatBufferBuilder builder, StringOffset dateResultSpinePathOffset) { builder.AddOffset(10, dateResultSpinePathOffset.Value, 0); } + public static void AddDateResultSpineOffsetX(FlatBufferBuilder builder, float dateResultSpineOffsetX) { builder.AddFloat(11, dateResultSpineOffsetX, 0.0f); } + public static Offset EndFieldDateExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldDateExcelVerify +{ + 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 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*OpenDate*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*DateLocalizeKey*/, false) + && verifier.VerifyField(tablePos, 12 /*EntrySceneId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*StartConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StartConditionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*EndConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*EndConditionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*OpenConditionStage*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 24 /*DateResultSpinePath*/, false) + && verifier.VerifyField(tablePos, 26 /*DateResultSpineOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldDateExcelTable.cs b/SCHALE.Common/FlatData/FieldDateExcelTable.cs new file mode 100644 index 0000000..bc08699 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldDateExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldDateExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldDateExcelTable GetRootAsFieldDateExcelTable(ByteBuffer _bb) { return GetRootAsFieldDateExcelTable(_bb, new FieldDateExcelTable()); } + public static FieldDateExcelTable GetRootAsFieldDateExcelTable(ByteBuffer _bb, FieldDateExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldDateExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldDateExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldDateExcel?)(new SCHALE.Common.FlatData.FieldDateExcel()).__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 CreateFieldDateExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldDateExcelTable.AddDataList(builder, DataListOffset); + return FieldDateExcelTable.EndFieldDateExcelTable(builder); + } + + public static void StartFieldDateExcelTable(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 EndFieldDateExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldDateExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldDateExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldDialogType.cs b/SCHALE.Common/FlatData/FieldDialogType.cs new file mode 100644 index 0000000..11e87d1 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldDialogType.cs @@ -0,0 +1,30 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FieldDialogType : int +{ + None = 0, + Talk = 1, + Think = 2, + Exclaim = 3, + Question = 4, + Upset = 5, + Surprise = 6, + Bulb = 7, + Heart = 8, + Sweat = 9, + Angry = 10, + Music = 11, + Dot = 12, + Momotalk = 13, + Phone = 14, + Keyword = 15, + Evidence = 16, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldEvidenceExcel.cs b/SCHALE.Common/FlatData/FieldEvidenceExcel.cs new file mode 100644 index 0000000..e0922f8 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldEvidenceExcel.cs @@ -0,0 +1,94 @@ +// +// 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 FieldEvidenceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldEvidenceExcel GetRootAsFieldEvidenceExcel(ByteBuffer _bb) { return GetRootAsFieldEvidenceExcel(_bb, new FieldEvidenceExcel()); } + public static FieldEvidenceExcel GetRootAsFieldEvidenceExcel(ByteBuffer _bb, FieldEvidenceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldEvidenceExcel __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 string NameLocalizeKey { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameLocalizeKeyBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameLocalizeKeyBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameLocalizeKeyArray() { return __p.__vector_as_array(6); } + public string DescriptionLocalizeKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionLocalizeKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescriptionLocalizeKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescriptionLocalizeKeyArray() { return __p.__vector_as_array(8); } + public string DetailLocalizeKey { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDetailLocalizeKeyBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetDetailLocalizeKeyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetDetailLocalizeKeyArray() { return __p.__vector_as_array(10); } + public string ImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(12); } + + public static Offset CreateFieldEvidenceExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset NameLocalizeKeyOffset = default(StringOffset), + StringOffset DescriptionLocalizeKeyOffset = default(StringOffset), + StringOffset DetailLocalizeKeyOffset = default(StringOffset), + StringOffset ImagePathOffset = default(StringOffset)) { + builder.StartTable(5); + FieldEvidenceExcel.AddUniqueId(builder, UniqueId); + FieldEvidenceExcel.AddImagePath(builder, ImagePathOffset); + FieldEvidenceExcel.AddDetailLocalizeKey(builder, DetailLocalizeKeyOffset); + FieldEvidenceExcel.AddDescriptionLocalizeKey(builder, DescriptionLocalizeKeyOffset); + FieldEvidenceExcel.AddNameLocalizeKey(builder, NameLocalizeKeyOffset); + return FieldEvidenceExcel.EndFieldEvidenceExcel(builder); + } + + public static void StartFieldEvidenceExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddNameLocalizeKey(FlatBufferBuilder builder, StringOffset nameLocalizeKeyOffset) { builder.AddOffset(1, nameLocalizeKeyOffset.Value, 0); } + public static void AddDescriptionLocalizeKey(FlatBufferBuilder builder, StringOffset descriptionLocalizeKeyOffset) { builder.AddOffset(2, descriptionLocalizeKeyOffset.Value, 0); } + public static void AddDetailLocalizeKey(FlatBufferBuilder builder, StringOffset detailLocalizeKeyOffset) { builder.AddOffset(3, detailLocalizeKeyOffset.Value, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(4, imagePathOffset.Value, 0); } + public static Offset EndFieldEvidenceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldEvidenceExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*NameLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 8 /*DescriptionLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 10 /*DetailLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 12 /*ImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs b/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs new file mode 100644 index 0000000..a2102a2 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldEvidenceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldEvidenceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldEvidenceExcelTable GetRootAsFieldEvidenceExcelTable(ByteBuffer _bb) { return GetRootAsFieldEvidenceExcelTable(_bb, new FieldEvidenceExcelTable()); } + public static FieldEvidenceExcelTable GetRootAsFieldEvidenceExcelTable(ByteBuffer _bb, FieldEvidenceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldEvidenceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldEvidenceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldEvidenceExcel?)(new SCHALE.Common.FlatData.FieldEvidenceExcel()).__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 CreateFieldEvidenceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldEvidenceExcelTable.AddDataList(builder, DataListOffset); + return FieldEvidenceExcelTable.EndFieldEvidenceExcelTable(builder); + } + + public static void StartFieldEvidenceExcelTable(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 EndFieldEvidenceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldEvidenceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldEvidenceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldInteractionExcel.cs b/SCHALE.Common/FlatData/FieldInteractionExcel.cs new file mode 100644 index 0000000..f75a8b2 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldInteractionExcel.cs @@ -0,0 +1,205 @@ +// +// 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 FieldInteractionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldInteractionExcel GetRootAsFieldInteractionExcel(ByteBuffer _bb) { return GetRootAsFieldInteractionExcel(_bb, new FieldInteractionExcel()); } + public static FieldInteractionExcel GetRootAsFieldInteractionExcel(ByteBuffer _bb, FieldInteractionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldInteractionExcel __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 FieldDateId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ShowEmoji { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string KeywordLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeywordLocalizeBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetKeywordLocalizeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetKeywordLocalizeArray() { return __p.__vector_as_array(10); } + public long FieldSeasonId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldInteractionType InteractionType(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.FieldInteractionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldInteractionType)0; } + public int InteractionTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetInteractionTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetInteractionTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.FieldInteractionType[] GetInteractionTypeArray() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldInteractionType[] a = new SCHALE.Common.FlatData.FieldInteractionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldInteractionType)__p.bb.GetInt(p + i * 4); } return a; } + public long InteractionId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int InteractionIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetInteractionIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetInteractionIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetInteractionIdArray() { return __p.__vector_as_array(16); } + public SCHALE.Common.FlatData.FieldConditionClass ConditionClass { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionClass)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionClass.AndOr; } } + public long ConditionClassParameters(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionClassParametersLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionClassParametersBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetConditionClassParametersBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetConditionClassParametersArray() { return __p.__vector_as_array(20); } + public bool OnceOnly { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ConditionIndex(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionIndexLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionIndexBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetConditionIndexBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetConditionIndexArray() { return __p.__vector_as_array(24); } + public SCHALE.Common.FlatData.FieldConditionType ConditionType(int j) { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldConditionType)0; } + public int ConditionTypeLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionTypeBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetConditionTypeBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public SCHALE.Common.FlatData.FieldConditionType[] GetConditionTypeArray() { int o = __p.__offset(26); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldConditionType[] a = new SCHALE.Common.FlatData.FieldConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(p + i * 4); } return a; } + public long ConditionId(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionIdBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetConditionIdBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetConditionIdArray() { return __p.__vector_as_array(28); } + public bool NegateCondition(int j) { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(__p.__vector(o) + j * 1) : false; } + public int NegateConditionLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNegateConditionBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetNegateConditionBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public bool[] GetNegateConditionArray() { return __p.__vector_as_array(30); } + + public static Offset CreateFieldInteractionExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long FieldDateId = 0, + bool ShowEmoji = false, + StringOffset KeywordLocalizeOffset = default(StringOffset), + long FieldSeasonId = 0, + VectorOffset InteractionTypeOffset = default(VectorOffset), + VectorOffset InteractionIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.FieldConditionClass ConditionClass = SCHALE.Common.FlatData.FieldConditionClass.AndOr, + VectorOffset ConditionClassParametersOffset = default(VectorOffset), + bool OnceOnly = false, + VectorOffset ConditionIndexOffset = default(VectorOffset), + VectorOffset ConditionTypeOffset = default(VectorOffset), + VectorOffset ConditionIdOffset = default(VectorOffset), + VectorOffset NegateConditionOffset = default(VectorOffset)) { + builder.StartTable(14); + FieldInteractionExcel.AddFieldSeasonId(builder, FieldSeasonId); + FieldInteractionExcel.AddFieldDateId(builder, FieldDateId); + FieldInteractionExcel.AddUniqueId(builder, UniqueId); + FieldInteractionExcel.AddNegateCondition(builder, NegateConditionOffset); + FieldInteractionExcel.AddConditionId(builder, ConditionIdOffset); + FieldInteractionExcel.AddConditionType(builder, ConditionTypeOffset); + FieldInteractionExcel.AddConditionIndex(builder, ConditionIndexOffset); + FieldInteractionExcel.AddConditionClassParameters(builder, ConditionClassParametersOffset); + FieldInteractionExcel.AddConditionClass(builder, ConditionClass); + FieldInteractionExcel.AddInteractionId(builder, InteractionIdOffset); + FieldInteractionExcel.AddInteractionType(builder, InteractionTypeOffset); + FieldInteractionExcel.AddKeywordLocalize(builder, KeywordLocalizeOffset); + FieldInteractionExcel.AddOnceOnly(builder, OnceOnly); + FieldInteractionExcel.AddShowEmoji(builder, ShowEmoji); + return FieldInteractionExcel.EndFieldInteractionExcel(builder); + } + + public static void StartFieldInteractionExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddFieldDateId(FlatBufferBuilder builder, long fieldDateId) { builder.AddLong(1, fieldDateId, 0); } + public static void AddShowEmoji(FlatBufferBuilder builder, bool showEmoji) { builder.AddBool(2, showEmoji, false); } + public static void AddKeywordLocalize(FlatBufferBuilder builder, StringOffset keywordLocalizeOffset) { builder.AddOffset(3, keywordLocalizeOffset.Value, 0); } + public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(4, fieldSeasonId, 0); } + public static void AddInteractionType(FlatBufferBuilder builder, VectorOffset interactionTypeOffset) { builder.AddOffset(5, interactionTypeOffset.Value, 0); } + public static VectorOffset CreateInteractionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldInteractionType[] 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 CreateInteractionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldInteractionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInteractionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInteractionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartInteractionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddInteractionId(FlatBufferBuilder builder, VectorOffset interactionIdOffset) { builder.AddOffset(6, interactionIdOffset.Value, 0); } + public static VectorOffset CreateInteractionIdVector(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 CreateInteractionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInteractionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInteractionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartInteractionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionClass(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionClass conditionClass) { builder.AddInt(7, (int)conditionClass, 0); } + public static void AddConditionClassParameters(FlatBufferBuilder builder, VectorOffset conditionClassParametersOffset) { builder.AddOffset(8, conditionClassParametersOffset.Value, 0); } + public static VectorOffset CreateConditionClassParametersVector(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 CreateConditionClassParametersVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionClassParametersVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionClassParametersVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionClassParametersVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddOnceOnly(FlatBufferBuilder builder, bool onceOnly) { builder.AddBool(9, onceOnly, false); } + public static void AddConditionIndex(FlatBufferBuilder builder, VectorOffset conditionIndexOffset) { builder.AddOffset(10, conditionIndexOffset.Value, 0); } + public static VectorOffset CreateConditionIndexVector(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 CreateConditionIndexVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIndexVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIndexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionIndexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionType(FlatBufferBuilder builder, VectorOffset conditionTypeOffset) { builder.AddOffset(11, conditionTypeOffset.Value, 0); } + public static VectorOffset CreateConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] 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 CreateConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConditionId(FlatBufferBuilder builder, VectorOffset conditionIdOffset) { builder.AddOffset(12, conditionIdOffset.Value, 0); } + public static VectorOffset CreateConditionIdVector(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 CreateConditionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddNegateCondition(FlatBufferBuilder builder, VectorOffset negateConditionOffset) { builder.AddOffset(13, negateConditionOffset.Value, 0); } + public static VectorOffset CreateNegateConditionVector(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); for (int i = data.Length - 1; i >= 0; i--) builder.AddBool(data[i]); return builder.EndVector(); } + public static VectorOffset CreateNegateConditionVectorBlock(FlatBufferBuilder builder, bool[] data) { builder.StartVector(1, data.Length, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNegateConditionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(1, data.Count, 1); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNegateConditionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNegateConditionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(1, numElems, 1); } + public static Offset EndFieldInteractionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldInteractionExcelVerify +{ + 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 /*FieldDateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ShowEmoji*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*KeywordLocalize*/, false) + && verifier.VerifyField(tablePos, 12 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*InteractionType*/, 4 /*SCHALE.Common.FlatData.FieldInteractionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*InteractionId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 18 /*ConditionClass*/, 4 /*SCHALE.Common.FlatData.FieldConditionClass*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ConditionClassParameters*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 22 /*OnceOnly*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*ConditionIndex*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*ConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*ConditionId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*NegateCondition*/, 1 /*bool*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs b/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs new file mode 100644 index 0000000..9a63a65 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldInteractionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldInteractionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldInteractionExcelTable GetRootAsFieldInteractionExcelTable(ByteBuffer _bb) { return GetRootAsFieldInteractionExcelTable(_bb, new FieldInteractionExcelTable()); } + public static FieldInteractionExcelTable GetRootAsFieldInteractionExcelTable(ByteBuffer _bb, FieldInteractionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldInteractionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldInteractionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldInteractionExcel?)(new SCHALE.Common.FlatData.FieldInteractionExcel()).__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 CreateFieldInteractionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldInteractionExcelTable.AddDataList(builder, DataListOffset); + return FieldInteractionExcelTable.EndFieldInteractionExcelTable(builder); + } + + public static void StartFieldInteractionExcelTable(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 EndFieldInteractionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldInteractionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldInteractionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldInteractionType.cs b/SCHALE.Common/FlatData/FieldInteractionType.cs new file mode 100644 index 0000000..29fa51f --- /dev/null +++ b/SCHALE.Common/FlatData/FieldInteractionType.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FieldInteractionType : int +{ + None = 0, + Scenario = 1, + Reward = 2, + Dialog = 3, + Stage = 4, + KeywordFound = 5, + EvidenceFound = 6, + SceneChange = 7, + Timeline = 8, + ActionTrigger = 9, + Interplay = 10, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldKeywordExcel.cs b/SCHALE.Common/FlatData/FieldKeywordExcel.cs new file mode 100644 index 0000000..3f7b382 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldKeywordExcel.cs @@ -0,0 +1,83 @@ +// +// 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 FieldKeywordExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldKeywordExcel GetRootAsFieldKeywordExcel(ByteBuffer _bb) { return GetRootAsFieldKeywordExcel(_bb, new FieldKeywordExcel()); } + public static FieldKeywordExcel GetRootAsFieldKeywordExcel(ByteBuffer _bb, FieldKeywordExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldKeywordExcel __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 string NameLocalizeKey { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameLocalizeKeyBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameLocalizeKeyBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameLocalizeKeyArray() { return __p.__vector_as_array(6); } + public string DescriptionLocalizeKey { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionLocalizeKeyBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescriptionLocalizeKeyBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescriptionLocalizeKeyArray() { return __p.__vector_as_array(8); } + public string ImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(10); } + + public static Offset CreateFieldKeywordExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset NameLocalizeKeyOffset = default(StringOffset), + StringOffset DescriptionLocalizeKeyOffset = default(StringOffset), + StringOffset ImagePathOffset = default(StringOffset)) { + builder.StartTable(4); + FieldKeywordExcel.AddUniqueId(builder, UniqueId); + FieldKeywordExcel.AddImagePath(builder, ImagePathOffset); + FieldKeywordExcel.AddDescriptionLocalizeKey(builder, DescriptionLocalizeKeyOffset); + FieldKeywordExcel.AddNameLocalizeKey(builder, NameLocalizeKeyOffset); + return FieldKeywordExcel.EndFieldKeywordExcel(builder); + } + + public static void StartFieldKeywordExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddNameLocalizeKey(FlatBufferBuilder builder, StringOffset nameLocalizeKeyOffset) { builder.AddOffset(1, nameLocalizeKeyOffset.Value, 0); } + public static void AddDescriptionLocalizeKey(FlatBufferBuilder builder, StringOffset descriptionLocalizeKeyOffset) { builder.AddOffset(2, descriptionLocalizeKeyOffset.Value, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(3, imagePathOffset.Value, 0); } + public static Offset EndFieldKeywordExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldKeywordExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*NameLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 8 /*DescriptionLocalizeKey*/, false) + && verifier.VerifyString(tablePos, 10 /*ImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs b/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs new file mode 100644 index 0000000..32ef2da --- /dev/null +++ b/SCHALE.Common/FlatData/FieldKeywordExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldKeywordExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldKeywordExcelTable GetRootAsFieldKeywordExcelTable(ByteBuffer _bb) { return GetRootAsFieldKeywordExcelTable(_bb, new FieldKeywordExcelTable()); } + public static FieldKeywordExcelTable GetRootAsFieldKeywordExcelTable(ByteBuffer _bb, FieldKeywordExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldKeywordExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldKeywordExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldKeywordExcel?)(new SCHALE.Common.FlatData.FieldKeywordExcel()).__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 CreateFieldKeywordExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldKeywordExcelTable.AddDataList(builder, DataListOffset); + return FieldKeywordExcelTable.EndFieldKeywordExcelTable(builder); + } + + public static void StartFieldKeywordExcelTable(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 EndFieldKeywordExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldKeywordExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldKeywordExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryExcel.cs b/SCHALE.Common/FlatData/FieldMasteryExcel.cs new file mode 100644 index 0000000..aef535f --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryExcel.cs @@ -0,0 +1,90 @@ +// +// 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 FieldMasteryExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryExcel GetRootAsFieldMasteryExcel(ByteBuffer _bb) { return GetRootAsFieldMasteryExcel(_bb, new FieldMasteryExcel()); } + public static FieldMasteryExcel GetRootAsFieldMasteryExcel(ByteBuffer _bb, FieldMasteryExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryExcel __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 SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Order { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long ExpAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType TokenType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long TokenId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TokenRequirement { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldConditionType AccomplishmentConditionType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } + public long AccomplishmentConditionId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateFieldMasteryExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long SeasonId = 0, + int Order = 0, + long ExpAmount = 0, + SCHALE.Common.FlatData.ParcelType TokenType = SCHALE.Common.FlatData.ParcelType.None, + long TokenId = 0, + long TokenRequirement = 0, + SCHALE.Common.FlatData.FieldConditionType AccomplishmentConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, + long AccomplishmentConditionId = 0) { + builder.StartTable(9); + FieldMasteryExcel.AddAccomplishmentConditionId(builder, AccomplishmentConditionId); + FieldMasteryExcel.AddTokenRequirement(builder, TokenRequirement); + FieldMasteryExcel.AddTokenId(builder, TokenId); + FieldMasteryExcel.AddExpAmount(builder, ExpAmount); + FieldMasteryExcel.AddSeasonId(builder, SeasonId); + FieldMasteryExcel.AddUniqueId(builder, UniqueId); + FieldMasteryExcel.AddAccomplishmentConditionType(builder, AccomplishmentConditionType); + FieldMasteryExcel.AddTokenType(builder, TokenType); + FieldMasteryExcel.AddOrder(builder, Order); + return FieldMasteryExcel.EndFieldMasteryExcel(builder); + } + + public static void StartFieldMasteryExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); } + public static void AddOrder(FlatBufferBuilder builder, int order) { builder.AddInt(2, order, 0); } + public static void AddExpAmount(FlatBufferBuilder builder, long expAmount) { builder.AddLong(3, expAmount, 0); } + public static void AddTokenType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType tokenType) { builder.AddInt(4, (int)tokenType, 0); } + public static void AddTokenId(FlatBufferBuilder builder, long tokenId) { builder.AddLong(5, tokenId, 0); } + public static void AddTokenRequirement(FlatBufferBuilder builder, long tokenRequirement) { builder.AddLong(6, tokenRequirement, 0); } + public static void AddAccomplishmentConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType accomplishmentConditionType) { builder.AddInt(7, (int)accomplishmentConditionType, 0); } + public static void AddAccomplishmentConditionId(FlatBufferBuilder builder, long accomplishmentConditionId) { builder.AddLong(8, accomplishmentConditionId, 0); } + public static Offset EndFieldMasteryExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryExcelVerify +{ + 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 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Order*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ExpAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*TokenType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*TokenId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*TokenRequirement*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*AccomplishmentConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*AccomplishmentConditionId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs new file mode 100644 index 0000000..40e567f --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldMasteryExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryExcelTable GetRootAsFieldMasteryExcelTable(ByteBuffer _bb) { return GetRootAsFieldMasteryExcelTable(_bb, new FieldMasteryExcelTable()); } + public static FieldMasteryExcelTable GetRootAsFieldMasteryExcelTable(ByteBuffer _bb, FieldMasteryExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldMasteryExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldMasteryExcel?)(new SCHALE.Common.FlatData.FieldMasteryExcel()).__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 CreateFieldMasteryExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldMasteryExcelTable.AddDataList(builder, DataListOffset); + return FieldMasteryExcelTable.EndFieldMasteryExcelTable(builder); + } + + public static void StartFieldMasteryExcelTable(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 EndFieldMasteryExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldMasteryExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs b/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs new file mode 100644 index 0000000..4d6b4d3 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryLevelExcel.cs @@ -0,0 +1,118 @@ +// +// 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 FieldMasteryLevelExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryLevelExcel GetRootAsFieldMasteryLevelExcel(ByteBuffer _bb) { return GetRootAsFieldMasteryLevelExcel(_bb, new FieldMasteryLevelExcel()); } + public static FieldMasteryLevelExcel GetRootAsFieldMasteryLevelExcel(ByteBuffer _bb, FieldMasteryLevelExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryLevelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Id(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int IdLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIdBytes() { return __p.__vector_as_span(6, 8); } +#else + public ArraySegment? GetIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public long[] GetIdArray() { return __p.__vector_as_array(6); } + public long Exp(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ExpLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetExpBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetExpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetExpArray() { return __p.__vector_as_array(8); } + public long TotalExp(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int TotalExpLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTotalExpBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetTotalExpBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetTotalExpArray() { return __p.__vector_as_array(10); } + public long RewardId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardIdArray() { return __p.__vector_as_array(12); } + + public static Offset CreateFieldMasteryLevelExcel(FlatBufferBuilder builder, + int Level = 0, + VectorOffset IdOffset = default(VectorOffset), + VectorOffset ExpOffset = default(VectorOffset), + VectorOffset TotalExpOffset = default(VectorOffset), + VectorOffset RewardIdOffset = default(VectorOffset)) { + builder.StartTable(5); + FieldMasteryLevelExcel.AddRewardId(builder, RewardIdOffset); + FieldMasteryLevelExcel.AddTotalExp(builder, TotalExpOffset); + FieldMasteryLevelExcel.AddExp(builder, ExpOffset); + FieldMasteryLevelExcel.AddId(builder, IdOffset); + FieldMasteryLevelExcel.AddLevel(builder, Level); + return FieldMasteryLevelExcel.EndFieldMasteryLevelExcel(builder); + } + + public static void StartFieldMasteryLevelExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(0, level, 0); } + public static void AddId(FlatBufferBuilder builder, VectorOffset idOffset) { builder.AddOffset(1, idOffset.Value, 0); } + public static VectorOffset CreateIdVector(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 CreateIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddExp(FlatBufferBuilder builder, VectorOffset expOffset) { builder.AddOffset(2, expOffset.Value, 0); } + public static VectorOffset CreateExpVector(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 CreateExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddTotalExp(FlatBufferBuilder builder, VectorOffset totalExpOffset) { builder.AddOffset(3, totalExpOffset.Value, 0); } + public static VectorOffset CreateTotalExpVector(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 CreateTotalExpVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTotalExpVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTotalExpVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardId(FlatBufferBuilder builder, VectorOffset rewardIdOffset) { builder.AddOffset(4, rewardIdOffset.Value, 0); } + public static VectorOffset CreateRewardIdVector(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 CreateRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFieldMasteryLevelExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryLevelExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Id*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*Exp*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*TotalExp*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs new file mode 100644 index 0000000..db5aa43 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryLevelExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldMasteryLevelExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryLevelExcelTable GetRootAsFieldMasteryLevelExcelTable(ByteBuffer _bb) { return GetRootAsFieldMasteryLevelExcelTable(_bb, new FieldMasteryLevelExcelTable()); } + public static FieldMasteryLevelExcelTable GetRootAsFieldMasteryLevelExcelTable(ByteBuffer _bb, FieldMasteryLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldMasteryLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldMasteryLevelExcel?)(new SCHALE.Common.FlatData.FieldMasteryLevelExcel()).__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 CreateFieldMasteryLevelExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldMasteryLevelExcelTable.AddDataList(builder, DataListOffset); + return FieldMasteryLevelExcelTable.EndFieldMasteryLevelExcelTable(builder); + } + + public static void StartFieldMasteryLevelExcelTable(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 EndFieldMasteryLevelExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryLevelExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldMasteryLevelExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs b/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs new file mode 100644 index 0000000..9c1527c --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryManageExcel.cs @@ -0,0 +1,71 @@ +// +// 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 FieldMasteryManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryManageExcel GetRootAsFieldMasteryManageExcel(ByteBuffer _bb) { return GetRootAsFieldMasteryManageExcel(_bb, new FieldMasteryManageExcel()); } + public static FieldMasteryManageExcel GetRootAsFieldMasteryManageExcel(ByteBuffer _bb, FieldMasteryManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long FieldSeason { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeEtc { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string ImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(8); } + public long LevelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateFieldMasteryManageExcel(FlatBufferBuilder builder, + long FieldSeason = 0, + uint LocalizeEtc = 0, + StringOffset ImagePathOffset = default(StringOffset), + long LevelId = 0) { + builder.StartTable(4); + FieldMasteryManageExcel.AddLevelId(builder, LevelId); + FieldMasteryManageExcel.AddFieldSeason(builder, FieldSeason); + FieldMasteryManageExcel.AddImagePath(builder, ImagePathOffset); + FieldMasteryManageExcel.AddLocalizeEtc(builder, LocalizeEtc); + return FieldMasteryManageExcel.EndFieldMasteryManageExcel(builder); + } + + public static void StartFieldMasteryManageExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddFieldSeason(FlatBufferBuilder builder, long fieldSeason) { builder.AddLong(0, fieldSeason, 0); } + public static void AddLocalizeEtc(FlatBufferBuilder builder, uint localizeEtc) { builder.AddUint(1, localizeEtc, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(2, imagePathOffset.Value, 0); } + public static void AddLevelId(FlatBufferBuilder builder, long levelId) { builder.AddLong(3, levelId, 0); } + public static Offset EndFieldMasteryManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FieldSeason*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeEtc*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*ImagePath*/, false) + && verifier.VerifyField(tablePos, 10 /*LevelId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs b/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs new file mode 100644 index 0000000..cc17aaa --- /dev/null +++ b/SCHALE.Common/FlatData/FieldMasteryManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldMasteryManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldMasteryManageExcelTable GetRootAsFieldMasteryManageExcelTable(ByteBuffer _bb) { return GetRootAsFieldMasteryManageExcelTable(_bb, new FieldMasteryManageExcelTable()); } + public static FieldMasteryManageExcelTable GetRootAsFieldMasteryManageExcelTable(ByteBuffer _bb, FieldMasteryManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldMasteryManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldMasteryManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldMasteryManageExcel?)(new SCHALE.Common.FlatData.FieldMasteryManageExcel()).__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 CreateFieldMasteryManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldMasteryManageExcelTable.AddDataList(builder, DataListOffset); + return FieldMasteryManageExcelTable.EndFieldMasteryManageExcelTable(builder); + } + + public static void StartFieldMasteryManageExcelTable(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 EndFieldMasteryManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldMasteryManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldMasteryManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldQuestExcel.cs b/SCHALE.Common/FlatData/FieldQuestExcel.cs new file mode 100644 index 0000000..f7125b8 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldQuestExcel.cs @@ -0,0 +1,101 @@ +// +// 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 FieldQuestExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldQuestExcel GetRootAsFieldQuestExcel(ByteBuffer _bb) { return GetRootAsFieldQuestExcel(_bb, new FieldQuestExcel()); } + public static FieldQuestExcel GetRootAsFieldQuestExcel(ByteBuffer _bb, FieldQuestExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldQuestExcel __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 FieldSeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDaily { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long FieldDateId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Opendate { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AssetPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAssetPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetAssetPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetAssetPathArray() { return __p.__vector_as_array(14); } + public long RewardId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Prob { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint QuestNamKey { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint QuestDescKey { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateFieldQuestExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long FieldSeasonId = 0, + bool IsDaily = false, + long FieldDateId = 0, + long Opendate = 0, + StringOffset AssetPathOffset = default(StringOffset), + long RewardId = 0, + int Prob = 0, + uint QuestNamKey = 0, + uint QuestDescKey = 0) { + builder.StartTable(10); + FieldQuestExcel.AddRewardId(builder, RewardId); + FieldQuestExcel.AddOpendate(builder, Opendate); + FieldQuestExcel.AddFieldDateId(builder, FieldDateId); + FieldQuestExcel.AddFieldSeasonId(builder, FieldSeasonId); + FieldQuestExcel.AddUniqueId(builder, UniqueId); + FieldQuestExcel.AddQuestDescKey(builder, QuestDescKey); + FieldQuestExcel.AddQuestNamKey(builder, QuestNamKey); + FieldQuestExcel.AddProb(builder, Prob); + FieldQuestExcel.AddAssetPath(builder, AssetPathOffset); + FieldQuestExcel.AddIsDaily(builder, IsDaily); + return FieldQuestExcel.EndFieldQuestExcel(builder); + } + + public static void StartFieldQuestExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(1, fieldSeasonId, 0); } + public static void AddIsDaily(FlatBufferBuilder builder, bool isDaily) { builder.AddBool(2, isDaily, false); } + public static void AddFieldDateId(FlatBufferBuilder builder, long fieldDateId) { builder.AddLong(3, fieldDateId, 0); } + public static void AddOpendate(FlatBufferBuilder builder, long opendate) { builder.AddLong(4, opendate, 0); } + public static void AddAssetPath(FlatBufferBuilder builder, StringOffset assetPathOffset) { builder.AddOffset(5, assetPathOffset.Value, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(6, rewardId, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(7, prob, 0); } + public static void AddQuestNamKey(FlatBufferBuilder builder, uint questNamKey) { builder.AddUint(8, questNamKey, 0); } + public static void AddQuestDescKey(FlatBufferBuilder builder, uint questDescKey) { builder.AddUint(9, questDescKey, 0); } + public static Offset EndFieldQuestExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldQuestExcelVerify +{ + 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 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*IsDaily*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*FieldDateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*Opendate*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*AssetPath*/, false) + && verifier.VerifyField(tablePos, 16 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*QuestNamKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*QuestDescKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldQuestExcelTable.cs b/SCHALE.Common/FlatData/FieldQuestExcelTable.cs new file mode 100644 index 0000000..64e664b --- /dev/null +++ b/SCHALE.Common/FlatData/FieldQuestExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldQuestExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldQuestExcelTable GetRootAsFieldQuestExcelTable(ByteBuffer _bb) { return GetRootAsFieldQuestExcelTable(_bb, new FieldQuestExcelTable()); } + public static FieldQuestExcelTable GetRootAsFieldQuestExcelTable(ByteBuffer _bb, FieldQuestExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldQuestExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldQuestExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldQuestExcel?)(new SCHALE.Common.FlatData.FieldQuestExcel()).__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 CreateFieldQuestExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldQuestExcelTable.AddDataList(builder, DataListOffset); + return FieldQuestExcelTable.EndFieldQuestExcelTable(builder); + } + + public static void StartFieldQuestExcelTable(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 EndFieldQuestExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldQuestExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldQuestExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldRewardExcel.cs b/SCHALE.Common/FlatData/FieldRewardExcel.cs new file mode 100644 index 0000000..6748acc --- /dev/null +++ b/SCHALE.Common/FlatData/FieldRewardExcel.cs @@ -0,0 +1,70 @@ +// +// 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 FieldRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldRewardExcel GetRootAsFieldRewardExcel(ByteBuffer _bb) { return GetRootAsFieldRewardExcel(_bb, new FieldRewardExcel()); } + public static FieldRewardExcel GetRootAsFieldRewardExcel(ByteBuffer _bb, FieldRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardProb { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateFieldRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0) { + builder.StartTable(5); + FieldRewardExcel.AddRewardId(builder, RewardId); + FieldRewardExcel.AddGroupId(builder, GroupId); + FieldRewardExcel.AddRewardAmount(builder, RewardAmount); + FieldRewardExcel.AddRewardParcelType(builder, RewardParcelType); + FieldRewardExcel.AddRewardProb(builder, RewardProb); + return FieldRewardExcel.EndFieldRewardExcel(builder); + } + + public static void StartFieldRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(1, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(2, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(3, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(4, rewardAmount, 0); } + public static Offset EndFieldRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldRewardExcelTable.cs b/SCHALE.Common/FlatData/FieldRewardExcelTable.cs new file mode 100644 index 0000000..0ad6aff --- /dev/null +++ b/SCHALE.Common/FlatData/FieldRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldRewardExcelTable GetRootAsFieldRewardExcelTable(ByteBuffer _bb) { return GetRootAsFieldRewardExcelTable(_bb, new FieldRewardExcelTable()); } + public static FieldRewardExcelTable GetRootAsFieldRewardExcelTable(ByteBuffer _bb, FieldRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldRewardExcel?)(new SCHALE.Common.FlatData.FieldRewardExcel()).__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 CreateFieldRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldRewardExcelTable.AddDataList(builder, DataListOffset); + return FieldRewardExcelTable.EndFieldRewardExcelTable(builder); + } + + public static void StartFieldRewardExcelTable(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 EndFieldRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldSceneExcel.cs b/SCHALE.Common/FlatData/FieldSceneExcel.cs new file mode 100644 index 0000000..5567e76 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldSceneExcel.cs @@ -0,0 +1,155 @@ +// +// 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 FieldSceneExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldSceneExcel GetRootAsFieldSceneExcel(ByteBuffer _bb) { return GetRootAsFieldSceneExcel(_bb, new FieldSceneExcel()); } + public static FieldSceneExcel GetRootAsFieldSceneExcel(ByteBuffer _bb, FieldSceneExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldSceneExcel __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 DateId { 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 string ArtLevelPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetArtLevelPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetArtLevelPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetArtLevelPathArray() { return __p.__vector_as_array(10); } + public string DesignLevelPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDesignLevelPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetDesignLevelPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetDesignLevelPathArray() { return __p.__vector_as_array(12); } + public long BGMId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConditionalBGMQuestId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionalBGMQuestIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionalBGMQuestIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetConditionalBGMQuestIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetConditionalBGMQuestIdArray() { return __p.__vector_as_array(16); } + public long BeginConditionalBGMScenarioGroupId(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BeginConditionalBGMScenarioGroupIdLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBeginConditionalBGMScenarioGroupIdBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetBeginConditionalBGMScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetBeginConditionalBGMScenarioGroupIdArray() { return __p.__vector_as_array(18); } + public long EndConditionalBGMScenarioGroupId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EndConditionalBGMScenarioGroupIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEndConditionalBGMScenarioGroupIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetEndConditionalBGMScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetEndConditionalBGMScenarioGroupIdArray() { return __p.__vector_as_array(20); } + public long ConditionalBGMId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionalBGMIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionalBGMIdBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetConditionalBGMIdBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetConditionalBGMIdArray() { return __p.__vector_as_array(22); } + + public static Offset CreateFieldSceneExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long DateId = 0, + long GroupId = 0, + StringOffset ArtLevelPathOffset = default(StringOffset), + StringOffset DesignLevelPathOffset = default(StringOffset), + long BGMId = 0, + VectorOffset ConditionalBGMQuestIdOffset = default(VectorOffset), + VectorOffset BeginConditionalBGMScenarioGroupIdOffset = default(VectorOffset), + VectorOffset EndConditionalBGMScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ConditionalBGMIdOffset = default(VectorOffset)) { + builder.StartTable(10); + FieldSceneExcel.AddBGMId(builder, BGMId); + FieldSceneExcel.AddGroupId(builder, GroupId); + FieldSceneExcel.AddDateId(builder, DateId); + FieldSceneExcel.AddUniqueId(builder, UniqueId); + FieldSceneExcel.AddConditionalBGMId(builder, ConditionalBGMIdOffset); + FieldSceneExcel.AddEndConditionalBGMScenarioGroupId(builder, EndConditionalBGMScenarioGroupIdOffset); + FieldSceneExcel.AddBeginConditionalBGMScenarioGroupId(builder, BeginConditionalBGMScenarioGroupIdOffset); + FieldSceneExcel.AddConditionalBGMQuestId(builder, ConditionalBGMQuestIdOffset); + FieldSceneExcel.AddDesignLevelPath(builder, DesignLevelPathOffset); + FieldSceneExcel.AddArtLevelPath(builder, ArtLevelPathOffset); + return FieldSceneExcel.EndFieldSceneExcel(builder); + } + + public static void StartFieldSceneExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddDateId(FlatBufferBuilder builder, long dateId) { builder.AddLong(1, dateId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(2, groupId, 0); } + public static void AddArtLevelPath(FlatBufferBuilder builder, StringOffset artLevelPathOffset) { builder.AddOffset(3, artLevelPathOffset.Value, 0); } + public static void AddDesignLevelPath(FlatBufferBuilder builder, StringOffset designLevelPathOffset) { builder.AddOffset(4, designLevelPathOffset.Value, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(5, bGMId, 0); } + public static void AddConditionalBGMQuestId(FlatBufferBuilder builder, VectorOffset conditionalBGMQuestIdOffset) { builder.AddOffset(6, conditionalBGMQuestIdOffset.Value, 0); } + public static VectorOffset CreateConditionalBGMQuestIdVector(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 CreateConditionalBGMQuestIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionalBGMQuestIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionalBGMQuestIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionalBGMQuestIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBeginConditionalBGMScenarioGroupId(FlatBufferBuilder builder, VectorOffset beginConditionalBGMScenarioGroupIdOffset) { builder.AddOffset(7, beginConditionalBGMScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateBeginConditionalBGMScenarioGroupIdVector(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 CreateBeginConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBeginConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBeginConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBeginConditionalBGMScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddEndConditionalBGMScenarioGroupId(FlatBufferBuilder builder, VectorOffset endConditionalBGMScenarioGroupIdOffset) { builder.AddOffset(8, endConditionalBGMScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateEndConditionalBGMScenarioGroupIdVector(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 CreateEndConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEndConditionalBGMScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEndConditionalBGMScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionalBGMId(FlatBufferBuilder builder, VectorOffset conditionalBGMIdOffset) { builder.AddOffset(9, conditionalBGMIdOffset.Value, 0); } + public static VectorOffset CreateConditionalBGMIdVector(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 CreateConditionalBGMIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionalBGMIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionalBGMIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionalBGMIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFieldSceneExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldSceneExcelVerify +{ + 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 /*DateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*ArtLevelPath*/, false) + && verifier.VerifyString(tablePos, 12 /*DesignLevelPath*/, false) + && verifier.VerifyField(tablePos, 14 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ConditionalBGMQuestId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*BeginConditionalBGMScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*EndConditionalBGMScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*ConditionalBGMId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldSceneExcelTable.cs b/SCHALE.Common/FlatData/FieldSceneExcelTable.cs new file mode 100644 index 0000000..74369b6 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldSceneExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldSceneExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldSceneExcelTable GetRootAsFieldSceneExcelTable(ByteBuffer _bb) { return GetRootAsFieldSceneExcelTable(_bb, new FieldSceneExcelTable()); } + public static FieldSceneExcelTable GetRootAsFieldSceneExcelTable(ByteBuffer _bb, FieldSceneExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldSceneExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldSceneExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldSceneExcel?)(new SCHALE.Common.FlatData.FieldSceneExcel()).__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 CreateFieldSceneExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldSceneExcelTable.AddDataList(builder, DataListOffset); + return FieldSceneExcelTable.EndFieldSceneExcelTable(builder); + } + + public static void StartFieldSceneExcelTable(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 EndFieldSceneExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldSceneExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldSceneExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldSeasonExcel.cs b/SCHALE.Common/FlatData/FieldSeasonExcel.cs new file mode 100644 index 0000000..28dce3e --- /dev/null +++ b/SCHALE.Common/FlatData/FieldSeasonExcel.cs @@ -0,0 +1,114 @@ +// +// 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 FieldSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldSeasonExcel GetRootAsFieldSeasonExcel(ByteBuffer _bb) { return GetRootAsFieldSeasonExcel(_bb, new FieldSeasonExcel()); } + public static FieldSeasonExcel GetRootAsFieldSeasonExcel(ByteBuffer _bb, FieldSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldSeasonExcel __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 EntryDateId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long InstantEntryDateId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StartDate { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(12); } + public string EndDate { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(14); } + public long LobbyBGMChangeStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string CharacterIconPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterIconPathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetCharacterIconPathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetCharacterIconPathArray() { return __p.__vector_as_array(18); } + public string MasteryImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMasteryImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetMasteryImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetMasteryImagePathArray() { return __p.__vector_as_array(20); } + + public static Offset CreateFieldSeasonExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long EventContentId = 0, + long EntryDateId = 0, + long InstantEntryDateId = 0, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long LobbyBGMChangeStageId = 0, + StringOffset CharacterIconPathOffset = default(StringOffset), + StringOffset MasteryImagePathOffset = default(StringOffset)) { + builder.StartTable(9); + FieldSeasonExcel.AddLobbyBGMChangeStageId(builder, LobbyBGMChangeStageId); + FieldSeasonExcel.AddInstantEntryDateId(builder, InstantEntryDateId); + FieldSeasonExcel.AddEntryDateId(builder, EntryDateId); + FieldSeasonExcel.AddEventContentId(builder, EventContentId); + FieldSeasonExcel.AddUniqueId(builder, UniqueId); + FieldSeasonExcel.AddMasteryImagePath(builder, MasteryImagePathOffset); + FieldSeasonExcel.AddCharacterIconPath(builder, CharacterIconPathOffset); + FieldSeasonExcel.AddEndDate(builder, EndDateOffset); + FieldSeasonExcel.AddStartDate(builder, StartDateOffset); + return FieldSeasonExcel.EndFieldSeasonExcel(builder); + } + + public static void StartFieldSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + 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 AddEntryDateId(FlatBufferBuilder builder, long entryDateId) { builder.AddLong(2, entryDateId, 0); } + public static void AddInstantEntryDateId(FlatBufferBuilder builder, long instantEntryDateId) { builder.AddLong(3, instantEntryDateId, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(4, startDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(5, endDateOffset.Value, 0); } + public static void AddLobbyBGMChangeStageId(FlatBufferBuilder builder, long lobbyBGMChangeStageId) { builder.AddLong(6, lobbyBGMChangeStageId, 0); } + public static void AddCharacterIconPath(FlatBufferBuilder builder, StringOffset characterIconPathOffset) { builder.AddOffset(7, characterIconPathOffset.Value, 0); } + public static void AddMasteryImagePath(FlatBufferBuilder builder, StringOffset masteryImagePathOffset) { builder.AddOffset(8, masteryImagePathOffset.Value, 0); } + public static Offset EndFieldSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldSeasonExcelVerify +{ + 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 /*EntryDateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*InstantEntryDateId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 14 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 16 /*LobbyBGMChangeStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*CharacterIconPath*/, false) + && verifier.VerifyString(tablePos, 20 /*MasteryImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs b/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs new file mode 100644 index 0000000..2b53391 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldSeasonExcelTable GetRootAsFieldSeasonExcelTable(ByteBuffer _bb) { return GetRootAsFieldSeasonExcelTable(_bb, new FieldSeasonExcelTable()); } + public static FieldSeasonExcelTable GetRootAsFieldSeasonExcelTable(ByteBuffer _bb, FieldSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldSeasonExcel?)(new SCHALE.Common.FlatData.FieldSeasonExcel()).__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 CreateFieldSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldSeasonExcelTable.AddDataList(builder, DataListOffset); + return FieldSeasonExcelTable.EndFieldSeasonExcelTable(builder); + } + + public static void StartFieldSeasonExcelTable(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 EndFieldSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldStoryStageExcel.cs b/SCHALE.Common/FlatData/FieldStoryStageExcel.cs new file mode 100644 index 0000000..82f3067 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldStoryStageExcel.cs @@ -0,0 +1,101 @@ +// +// 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 FieldStoryStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldStoryStageExcel GetRootAsFieldStoryStageExcel(ByteBuffer _bb) { return GetRootAsFieldStoryStageExcel(_bb, new FieldStoryStageExcel()); } + public static FieldStoryStageExcel GetRootAsFieldStoryStageExcel(ByteBuffer _bb, FieldStoryStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldStoryStageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Name { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(8); } + public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long GroundID { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedEchelonId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool SkipFormationSettings { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateFieldStoryStageExcel(FlatBufferBuilder builder, + long Id = 0, + long SeasonId = 0, + StringOffset NameOffset = default(StringOffset), + long BattleDuration = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + long GroundID = 0, + long BGMId = 0, + long FixedEchelonId = 0, + bool SkipFormationSettings = false) { + builder.StartTable(10); + FieldStoryStageExcel.AddFixedEchelonId(builder, FixedEchelonId); + FieldStoryStageExcel.AddBGMId(builder, BGMId); + FieldStoryStageExcel.AddGroundID(builder, GroundID); + FieldStoryStageExcel.AddBattleDuration(builder, BattleDuration); + FieldStoryStageExcel.AddSeasonId(builder, SeasonId); + FieldStoryStageExcel.AddId(builder, Id); + FieldStoryStageExcel.AddRecommandLevel(builder, RecommandLevel); + FieldStoryStageExcel.AddStageTopography(builder, StageTopography); + FieldStoryStageExcel.AddName(builder, NameOffset); + FieldStoryStageExcel.AddSkipFormationSettings(builder, SkipFormationSettings); + return FieldStoryStageExcel.EndFieldStoryStageExcel(builder); + } + + public static void StartFieldStoryStageExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(2, nameOffset.Value, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(3, battleDuration, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(4, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(5, recommandLevel, 0); } + public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(6, groundID, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(7, bGMId, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(8, fixedEchelonId, 0); } + public static void AddSkipFormationSettings(FlatBufferBuilder builder, bool skipFormationSettings) { builder.AddBool(9, skipFormationSettings, false); } + public static Offset EndFieldStoryStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldStoryStageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*Name*/, false) + && verifier.VerifyField(tablePos, 10 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*GroundID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*SkipFormationSettings*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs b/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs new file mode 100644 index 0000000..dd4de02 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldStoryStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldStoryStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldStoryStageExcelTable GetRootAsFieldStoryStageExcelTable(ByteBuffer _bb) { return GetRootAsFieldStoryStageExcelTable(_bb, new FieldStoryStageExcelTable()); } + public static FieldStoryStageExcelTable GetRootAsFieldStoryStageExcelTable(ByteBuffer _bb, FieldStoryStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldStoryStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldStoryStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldStoryStageExcel?)(new SCHALE.Common.FlatData.FieldStoryStageExcel()).__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 CreateFieldStoryStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldStoryStageExcelTable.AddDataList(builder, DataListOffset); + return FieldStoryStageExcelTable.EndFieldStoryStageExcelTable(builder); + } + + public static void StartFieldStoryStageExcelTable(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 EndFieldStoryStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldStoryStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldStoryStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldTutorialExcel.cs b/SCHALE.Common/FlatData/FieldTutorialExcel.cs new file mode 100644 index 0000000..f932c4a --- /dev/null +++ b/SCHALE.Common/FlatData/FieldTutorialExcel.cs @@ -0,0 +1,101 @@ +// +// 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 FieldTutorialExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldTutorialExcel GetRootAsFieldTutorialExcel(ByteBuffer _bb) { return GetRootAsFieldTutorialExcel(_bb, new FieldTutorialExcel()); } + public static FieldTutorialExcel GetRootAsFieldTutorialExcel(ByteBuffer _bb, FieldTutorialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldTutorialExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldTutorialType TutorialType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.FieldTutorialType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldTutorialType)0; } + public int TutorialTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTutorialTypeBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetTutorialTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.FieldTutorialType[] GetTutorialTypeArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldTutorialType[] a = new SCHALE.Common.FlatData.FieldTutorialType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldTutorialType)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.FieldConditionType ConditionType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldConditionType)0; } + public int ConditionTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetConditionTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.FieldConditionType[] GetConditionTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.FieldConditionType[] a = new SCHALE.Common.FlatData.FieldConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(p + i * 4); } return a; } + public long ConditionId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetConditionIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetConditionIdArray() { return __p.__vector_as_array(10); } + + public static Offset CreateFieldTutorialExcel(FlatBufferBuilder builder, + long SeasonId = 0, + VectorOffset TutorialTypeOffset = default(VectorOffset), + VectorOffset ConditionTypeOffset = default(VectorOffset), + VectorOffset ConditionIdOffset = default(VectorOffset)) { + builder.StartTable(4); + FieldTutorialExcel.AddSeasonId(builder, SeasonId); + FieldTutorialExcel.AddConditionId(builder, ConditionIdOffset); + FieldTutorialExcel.AddConditionType(builder, ConditionTypeOffset); + FieldTutorialExcel.AddTutorialType(builder, TutorialTypeOffset); + return FieldTutorialExcel.EndFieldTutorialExcel(builder); + } + + public static void StartFieldTutorialExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddTutorialType(FlatBufferBuilder builder, VectorOffset tutorialTypeOffset) { builder.AddOffset(1, tutorialTypeOffset.Value, 0); } + public static VectorOffset CreateTutorialTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldTutorialType[] 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 CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldTutorialType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTutorialTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConditionType(FlatBufferBuilder builder, VectorOffset conditionTypeOffset) { builder.AddOffset(2, conditionTypeOffset.Value, 0); } + public static VectorOffset CreateConditionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] 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 CreateConditionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConditionId(FlatBufferBuilder builder, VectorOffset conditionIdOffset) { builder.AddOffset(3, conditionIdOffset.Value, 0); } + public static VectorOffset CreateConditionIdVector(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 CreateConditionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFieldTutorialExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldTutorialExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*TutorialType*/, 4 /*SCHALE.Common.FlatData.FieldTutorialType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*ConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*ConditionId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs b/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs new file mode 100644 index 0000000..024c351 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldTutorialExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldTutorialExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldTutorialExcelTable GetRootAsFieldTutorialExcelTable(ByteBuffer _bb) { return GetRootAsFieldTutorialExcelTable(_bb, new FieldTutorialExcelTable()); } + public static FieldTutorialExcelTable GetRootAsFieldTutorialExcelTable(ByteBuffer _bb, FieldTutorialExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldTutorialExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldTutorialExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldTutorialExcel?)(new SCHALE.Common.FlatData.FieldTutorialExcel()).__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 CreateFieldTutorialExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldTutorialExcelTable.AddDataList(builder, DataListOffset); + return FieldTutorialExcelTable.EndFieldTutorialExcelTable(builder); + } + + public static void StartFieldTutorialExcelTable(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 EndFieldTutorialExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldTutorialExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldTutorialExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldTutorialType.cs b/SCHALE.Common/FlatData/FieldTutorialType.cs new file mode 100644 index 0000000..77ba593 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldTutorialType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FieldTutorialType : int +{ + None = 0, + MasteryHUD = 1, + QuestHUD = 2, + WorldMapHUD = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs b/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs new file mode 100644 index 0000000..6c10327 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldWorldMapZoneExcel.cs @@ -0,0 +1,95 @@ +// +// 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 FieldWorldMapZoneExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldWorldMapZoneExcel GetRootAsFieldWorldMapZoneExcel(ByteBuffer _bb) { return GetRootAsFieldWorldMapZoneExcel(_bb, new FieldWorldMapZoneExcel()); } + public static FieldWorldMapZoneExcel GetRootAsFieldWorldMapZoneExcel(ByteBuffer _bb, FieldWorldMapZoneExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldWorldMapZoneExcel __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 int GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Date { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.FieldConditionType OpenConditionType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } + public long OpenConditionId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FieldConditionType CloseConditionType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } + public long CloseConditionId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ResultFieldScene { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FieldStageInteractionId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeCode { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateFieldWorldMapZoneExcel(FlatBufferBuilder builder, + long Id = 0, + int GroupId = 0, + int Date = 0, + SCHALE.Common.FlatData.FieldConditionType OpenConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, + long OpenConditionId = 0, + SCHALE.Common.FlatData.FieldConditionType CloseConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, + long CloseConditionId = 0, + long ResultFieldScene = 0, + long FieldStageInteractionId = 0, + uint LocalizeCode = 0) { + builder.StartTable(10); + FieldWorldMapZoneExcel.AddFieldStageInteractionId(builder, FieldStageInteractionId); + FieldWorldMapZoneExcel.AddResultFieldScene(builder, ResultFieldScene); + FieldWorldMapZoneExcel.AddCloseConditionId(builder, CloseConditionId); + FieldWorldMapZoneExcel.AddOpenConditionId(builder, OpenConditionId); + FieldWorldMapZoneExcel.AddId(builder, Id); + FieldWorldMapZoneExcel.AddLocalizeCode(builder, LocalizeCode); + FieldWorldMapZoneExcel.AddCloseConditionType(builder, CloseConditionType); + FieldWorldMapZoneExcel.AddOpenConditionType(builder, OpenConditionType); + FieldWorldMapZoneExcel.AddDate(builder, Date); + FieldWorldMapZoneExcel.AddGroupId(builder, GroupId); + return FieldWorldMapZoneExcel.EndFieldWorldMapZoneExcel(builder); + } + + public static void StartFieldWorldMapZoneExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddGroupId(FlatBufferBuilder builder, int groupId) { builder.AddInt(1, groupId, 0); } + public static void AddDate(FlatBufferBuilder builder, int date) { builder.AddInt(2, date, 0); } + public static void AddOpenConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType openConditionType) { builder.AddInt(3, (int)openConditionType, 0); } + public static void AddOpenConditionId(FlatBufferBuilder builder, long openConditionId) { builder.AddLong(4, openConditionId, 0); } + public static void AddCloseConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldConditionType closeConditionType) { builder.AddInt(5, (int)closeConditionType, 0); } + public static void AddCloseConditionId(FlatBufferBuilder builder, long closeConditionId) { builder.AddLong(6, closeConditionId, 0); } + public static void AddResultFieldScene(FlatBufferBuilder builder, long resultFieldScene) { builder.AddLong(7, resultFieldScene, 0); } + public static void AddFieldStageInteractionId(FlatBufferBuilder builder, long fieldStageInteractionId) { builder.AddLong(8, fieldStageInteractionId, 0); } + public static void AddLocalizeCode(FlatBufferBuilder builder, uint localizeCode) { builder.AddUint(9, localizeCode, 0); } + public static Offset EndFieldWorldMapZoneExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldWorldMapZoneExcelVerify +{ + 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 /*GroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Date*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*OpenConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*OpenConditionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*CloseConditionType*/, 4 /*SCHALE.Common.FlatData.FieldConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*CloseConditionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*ResultFieldScene*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*FieldStageInteractionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*LocalizeCode*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs b/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs new file mode 100644 index 0000000..92bc938 --- /dev/null +++ b/SCHALE.Common/FlatData/FieldWorldMapZoneExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FieldWorldMapZoneExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FieldWorldMapZoneExcelTable GetRootAsFieldWorldMapZoneExcelTable(ByteBuffer _bb) { return GetRootAsFieldWorldMapZoneExcelTable(_bb, new FieldWorldMapZoneExcelTable()); } + public static FieldWorldMapZoneExcelTable GetRootAsFieldWorldMapZoneExcelTable(ByteBuffer _bb, FieldWorldMapZoneExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FieldWorldMapZoneExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FieldWorldMapZoneExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FieldWorldMapZoneExcel?)(new SCHALE.Common.FlatData.FieldWorldMapZoneExcel()).__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 CreateFieldWorldMapZoneExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FieldWorldMapZoneExcelTable.AddDataList(builder, DataListOffset); + return FieldWorldMapZoneExcelTable.EndFieldWorldMapZoneExcelTable(builder); + } + + public static void StartFieldWorldMapZoneExcelTable(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 EndFieldWorldMapZoneExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FieldWorldMapZoneExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FieldWorldMapZoneExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs b/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs new file mode 100644 index 0000000..1c5d12b --- /dev/null +++ b/SCHALE.Common/FlatData/FixedEchelonSettingExcel.cs @@ -0,0 +1,575 @@ +// +// 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 FixedEchelonSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FixedEchelonSettingExcel GetRootAsFixedEchelonSettingExcel(ByteBuffer _bb) { return GetRootAsFixedEchelonSettingExcel(_bb, new FixedEchelonSettingExcel()); } + public static FixedEchelonSettingExcel GetRootAsFixedEchelonSettingExcel(ByteBuffer _bb, FixedEchelonSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FixedEchelonSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long FixedEchelonID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool EchelonSceneSkip { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int MainLeaderSlot { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long MainCharacterID(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MainCharacterIDLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainCharacterIDBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetMainCharacterIDBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetMainCharacterIDArray() { return __p.__vector_as_array(10); } + public int MainLevel(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainLevelLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainLevelBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetMainLevelBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public int[] GetMainLevelArray() { return __p.__vector_as_array(12); } + public int MainGrade(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainGradeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainGradeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetMainGradeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public int[] GetMainGradeArray() { return __p.__vector_as_array(14); } + public int MainExSkillLevel(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainExSkillLevelLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainExSkillLevelBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetMainExSkillLevelBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public int[] GetMainExSkillLevelArray() { return __p.__vector_as_array(16); } + public int MainNoneExSkillLevel(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainNoneExSkillLevelLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainNoneExSkillLevelBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetMainNoneExSkillLevelBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetMainNoneExSkillLevelArray() { return __p.__vector_as_array(18); } + public int MainEquipment1Tier(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment1TierLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment1TierBytes() { return __p.__vector_as_span(20, 4); } +#else + public ArraySegment? GetMainEquipment1TierBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public int[] GetMainEquipment1TierArray() { return __p.__vector_as_array(20); } + public int MainEquipment1Level(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment1LevelLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment1LevelBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetMainEquipment1LevelBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public int[] GetMainEquipment1LevelArray() { return __p.__vector_as_array(22); } + public int MainEquipment2Tier(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment2TierLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment2TierBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetMainEquipment2TierBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public int[] GetMainEquipment2TierArray() { return __p.__vector_as_array(24); } + public int MainEquipment2Level(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment2LevelLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment2LevelBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetMainEquipment2LevelBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetMainEquipment2LevelArray() { return __p.__vector_as_array(26); } + public int MainEquipment3Tier(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment3TierLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment3TierBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetMainEquipment3TierBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public int[] GetMainEquipment3TierArray() { return __p.__vector_as_array(28); } + public int MainEquipment3Level(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainEquipment3LevelLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainEquipment3LevelBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetMainEquipment3LevelBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public int[] GetMainEquipment3LevelArray() { return __p.__vector_as_array(30); } + public int MainCharacterWeaponGrade(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainCharacterWeaponGradeLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainCharacterWeaponGradeBytes() { return __p.__vector_as_span(32, 4); } +#else + public ArraySegment? GetMainCharacterWeaponGradeBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public int[] GetMainCharacterWeaponGradeArray() { return __p.__vector_as_array(32); } + public int MainCharacterWeaponLevel(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainCharacterWeaponLevelLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainCharacterWeaponLevelBytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetMainCharacterWeaponLevelBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public int[] GetMainCharacterWeaponLevelArray() { return __p.__vector_as_array(34); } + public int MainCharacterGearTier(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainCharacterGearTierLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainCharacterGearTierBytes() { return __p.__vector_as_span(36, 4); } +#else + public ArraySegment? GetMainCharacterGearTierBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public int[] GetMainCharacterGearTierArray() { return __p.__vector_as_array(36); } + public int MainCharacterGearLevel(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MainCharacterGearLevelLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMainCharacterGearLevelBytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetMainCharacterGearLevelBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public int[] GetMainCharacterGearLevelArray() { return __p.__vector_as_array(38); } + public long SupportCharacterID(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SupportCharacterIDLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportCharacterIDBytes() { return __p.__vector_as_span(40, 8); } +#else + public ArraySegment? GetSupportCharacterIDBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public long[] GetSupportCharacterIDArray() { return __p.__vector_as_array(40); } + public int SupportLevel(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportLevelLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportLevelBytes() { return __p.__vector_as_span(42, 4); } +#else + public ArraySegment? GetSupportLevelBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public int[] GetSupportLevelArray() { return __p.__vector_as_array(42); } + public int SupportGrade(int j) { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportGradeLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportGradeBytes() { return __p.__vector_as_span(44, 4); } +#else + public ArraySegment? GetSupportGradeBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public int[] GetSupportGradeArray() { return __p.__vector_as_array(44); } + public int SupportExSkillLevel(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportExSkillLevelLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportExSkillLevelBytes() { return __p.__vector_as_span(46, 4); } +#else + public ArraySegment? GetSupportExSkillLevelBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public int[] GetSupportExSkillLevelArray() { return __p.__vector_as_array(46); } + public int SupportNoneExSkillLevel(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportNoneExSkillLevelLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportNoneExSkillLevelBytes() { return __p.__vector_as_span(48, 4); } +#else + public ArraySegment? GetSupportNoneExSkillLevelBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public int[] GetSupportNoneExSkillLevelArray() { return __p.__vector_as_array(48); } + public int SupportEquipment1Tier(int j) { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment1TierLength { get { int o = __p.__offset(50); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment1TierBytes() { return __p.__vector_as_span(50, 4); } +#else + public ArraySegment? GetSupportEquipment1TierBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public int[] GetSupportEquipment1TierArray() { return __p.__vector_as_array(50); } + public int SupportEquipment1Level(int j) { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment1LevelLength { get { int o = __p.__offset(52); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment1LevelBytes() { return __p.__vector_as_span(52, 4); } +#else + public ArraySegment? GetSupportEquipment1LevelBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public int[] GetSupportEquipment1LevelArray() { return __p.__vector_as_array(52); } + public int SupportEquipment2Tier(int j) { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment2TierLength { get { int o = __p.__offset(54); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment2TierBytes() { return __p.__vector_as_span(54, 4); } +#else + public ArraySegment? GetSupportEquipment2TierBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public int[] GetSupportEquipment2TierArray() { return __p.__vector_as_array(54); } + public int SupportEquipment2Level(int j) { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment2LevelLength { get { int o = __p.__offset(56); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment2LevelBytes() { return __p.__vector_as_span(56, 4); } +#else + public ArraySegment? GetSupportEquipment2LevelBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public int[] GetSupportEquipment2LevelArray() { return __p.__vector_as_array(56); } + public int SupportEquipment3Tier(int j) { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment3TierLength { get { int o = __p.__offset(58); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment3TierBytes() { return __p.__vector_as_span(58, 4); } +#else + public ArraySegment? GetSupportEquipment3TierBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public int[] GetSupportEquipment3TierArray() { return __p.__vector_as_array(58); } + public int SupportEquipment3Level(int j) { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportEquipment3LevelLength { get { int o = __p.__offset(60); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportEquipment3LevelBytes() { return __p.__vector_as_span(60, 4); } +#else + public ArraySegment? GetSupportEquipment3LevelBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public int[] GetSupportEquipment3LevelArray() { return __p.__vector_as_array(60); } + public int SupportCharacterWeaponGrade(int j) { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportCharacterWeaponGradeLength { get { int o = __p.__offset(62); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportCharacterWeaponGradeBytes() { return __p.__vector_as_span(62, 4); } +#else + public ArraySegment? GetSupportCharacterWeaponGradeBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public int[] GetSupportCharacterWeaponGradeArray() { return __p.__vector_as_array(62); } + public int SupportCharacterWeaponLevel(int j) { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportCharacterWeaponLevelLength { get { int o = __p.__offset(64); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportCharacterWeaponLevelBytes() { return __p.__vector_as_span(64, 4); } +#else + public ArraySegment? GetSupportCharacterWeaponLevelBytes() { return __p.__vector_as_arraysegment(64); } +#endif + public int[] GetSupportCharacterWeaponLevelArray() { return __p.__vector_as_array(64); } + public int SupportCharacterGearTier(int j) { int o = __p.__offset(66); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportCharacterGearTierLength { get { int o = __p.__offset(66); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportCharacterGearTierBytes() { return __p.__vector_as_span(66, 4); } +#else + public ArraySegment? GetSupportCharacterGearTierBytes() { return __p.__vector_as_arraysegment(66); } +#endif + public int[] GetSupportCharacterGearTierArray() { return __p.__vector_as_array(66); } + public int SupportCharacterGearLevel(int j) { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int SupportCharacterGearLevelLength { get { int o = __p.__offset(68); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSupportCharacterGearLevelBytes() { return __p.__vector_as_span(68, 4); } +#else + public ArraySegment? GetSupportCharacterGearLevelBytes() { return __p.__vector_as_arraysegment(68); } +#endif + public int[] GetSupportCharacterGearLevelArray() { return __p.__vector_as_array(68); } + public long InteractionTSCharacterId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateFixedEchelonSettingExcel(FlatBufferBuilder builder, + long FixedEchelonID = 0, + bool EchelonSceneSkip = false, + int MainLeaderSlot = 0, + VectorOffset MainCharacterIDOffset = default(VectorOffset), + VectorOffset MainLevelOffset = default(VectorOffset), + VectorOffset MainGradeOffset = default(VectorOffset), + VectorOffset MainExSkillLevelOffset = default(VectorOffset), + VectorOffset MainNoneExSkillLevelOffset = default(VectorOffset), + VectorOffset MainEquipment1TierOffset = default(VectorOffset), + VectorOffset MainEquipment1LevelOffset = default(VectorOffset), + VectorOffset MainEquipment2TierOffset = default(VectorOffset), + VectorOffset MainEquipment2LevelOffset = default(VectorOffset), + VectorOffset MainEquipment3TierOffset = default(VectorOffset), + VectorOffset MainEquipment3LevelOffset = default(VectorOffset), + VectorOffset MainCharacterWeaponGradeOffset = default(VectorOffset), + VectorOffset MainCharacterWeaponLevelOffset = default(VectorOffset), + VectorOffset MainCharacterGearTierOffset = default(VectorOffset), + VectorOffset MainCharacterGearLevelOffset = default(VectorOffset), + VectorOffset SupportCharacterIDOffset = default(VectorOffset), + VectorOffset SupportLevelOffset = default(VectorOffset), + VectorOffset SupportGradeOffset = default(VectorOffset), + VectorOffset SupportExSkillLevelOffset = default(VectorOffset), + VectorOffset SupportNoneExSkillLevelOffset = default(VectorOffset), + VectorOffset SupportEquipment1TierOffset = default(VectorOffset), + VectorOffset SupportEquipment1LevelOffset = default(VectorOffset), + VectorOffset SupportEquipment2TierOffset = default(VectorOffset), + VectorOffset SupportEquipment2LevelOffset = default(VectorOffset), + VectorOffset SupportEquipment3TierOffset = default(VectorOffset), + VectorOffset SupportEquipment3LevelOffset = default(VectorOffset), + VectorOffset SupportCharacterWeaponGradeOffset = default(VectorOffset), + VectorOffset SupportCharacterWeaponLevelOffset = default(VectorOffset), + VectorOffset SupportCharacterGearTierOffset = default(VectorOffset), + VectorOffset SupportCharacterGearLevelOffset = default(VectorOffset), + long InteractionTSCharacterId = 0) { + builder.StartTable(34); + FixedEchelonSettingExcel.AddInteractionTSCharacterId(builder, InteractionTSCharacterId); + FixedEchelonSettingExcel.AddFixedEchelonID(builder, FixedEchelonID); + FixedEchelonSettingExcel.AddSupportCharacterGearLevel(builder, SupportCharacterGearLevelOffset); + FixedEchelonSettingExcel.AddSupportCharacterGearTier(builder, SupportCharacterGearTierOffset); + FixedEchelonSettingExcel.AddSupportCharacterWeaponLevel(builder, SupportCharacterWeaponLevelOffset); + FixedEchelonSettingExcel.AddSupportCharacterWeaponGrade(builder, SupportCharacterWeaponGradeOffset); + FixedEchelonSettingExcel.AddSupportEquipment3Level(builder, SupportEquipment3LevelOffset); + FixedEchelonSettingExcel.AddSupportEquipment3Tier(builder, SupportEquipment3TierOffset); + FixedEchelonSettingExcel.AddSupportEquipment2Level(builder, SupportEquipment2LevelOffset); + FixedEchelonSettingExcel.AddSupportEquipment2Tier(builder, SupportEquipment2TierOffset); + FixedEchelonSettingExcel.AddSupportEquipment1Level(builder, SupportEquipment1LevelOffset); + FixedEchelonSettingExcel.AddSupportEquipment1Tier(builder, SupportEquipment1TierOffset); + FixedEchelonSettingExcel.AddSupportNoneExSkillLevel(builder, SupportNoneExSkillLevelOffset); + FixedEchelonSettingExcel.AddSupportExSkillLevel(builder, SupportExSkillLevelOffset); + FixedEchelonSettingExcel.AddSupportGrade(builder, SupportGradeOffset); + FixedEchelonSettingExcel.AddSupportLevel(builder, SupportLevelOffset); + FixedEchelonSettingExcel.AddSupportCharacterID(builder, SupportCharacterIDOffset); + FixedEchelonSettingExcel.AddMainCharacterGearLevel(builder, MainCharacterGearLevelOffset); + FixedEchelonSettingExcel.AddMainCharacterGearTier(builder, MainCharacterGearTierOffset); + FixedEchelonSettingExcel.AddMainCharacterWeaponLevel(builder, MainCharacterWeaponLevelOffset); + FixedEchelonSettingExcel.AddMainCharacterWeaponGrade(builder, MainCharacterWeaponGradeOffset); + FixedEchelonSettingExcel.AddMainEquipment3Level(builder, MainEquipment3LevelOffset); + FixedEchelonSettingExcel.AddMainEquipment3Tier(builder, MainEquipment3TierOffset); + FixedEchelonSettingExcel.AddMainEquipment2Level(builder, MainEquipment2LevelOffset); + FixedEchelonSettingExcel.AddMainEquipment2Tier(builder, MainEquipment2TierOffset); + FixedEchelonSettingExcel.AddMainEquipment1Level(builder, MainEquipment1LevelOffset); + FixedEchelonSettingExcel.AddMainEquipment1Tier(builder, MainEquipment1TierOffset); + FixedEchelonSettingExcel.AddMainNoneExSkillLevel(builder, MainNoneExSkillLevelOffset); + FixedEchelonSettingExcel.AddMainExSkillLevel(builder, MainExSkillLevelOffset); + FixedEchelonSettingExcel.AddMainGrade(builder, MainGradeOffset); + FixedEchelonSettingExcel.AddMainLevel(builder, MainLevelOffset); + FixedEchelonSettingExcel.AddMainCharacterID(builder, MainCharacterIDOffset); + FixedEchelonSettingExcel.AddMainLeaderSlot(builder, MainLeaderSlot); + FixedEchelonSettingExcel.AddEchelonSceneSkip(builder, EchelonSceneSkip); + return FixedEchelonSettingExcel.EndFixedEchelonSettingExcel(builder); + } + + public static void StartFixedEchelonSettingExcel(FlatBufferBuilder builder) { builder.StartTable(34); } + public static void AddFixedEchelonID(FlatBufferBuilder builder, long fixedEchelonID) { builder.AddLong(0, fixedEchelonID, 0); } + public static void AddEchelonSceneSkip(FlatBufferBuilder builder, bool echelonSceneSkip) { builder.AddBool(1, echelonSceneSkip, false); } + public static void AddMainLeaderSlot(FlatBufferBuilder builder, int mainLeaderSlot) { builder.AddInt(2, mainLeaderSlot, 0); } + public static void AddMainCharacterID(FlatBufferBuilder builder, VectorOffset mainCharacterIDOffset) { builder.AddOffset(3, mainCharacterIDOffset.Value, 0); } + public static VectorOffset CreateMainCharacterIDVector(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 CreateMainCharacterIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainCharacterIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMainLevel(FlatBufferBuilder builder, VectorOffset mainLevelOffset) { builder.AddOffset(4, mainLevelOffset.Value, 0); } + public static VectorOffset CreateMainLevelVector(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 CreateMainLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainGrade(FlatBufferBuilder builder, VectorOffset mainGradeOffset) { builder.AddOffset(5, mainGradeOffset.Value, 0); } + public static VectorOffset CreateMainGradeVector(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 CreateMainGradeVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainGradeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainGradeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainGradeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainExSkillLevel(FlatBufferBuilder builder, VectorOffset mainExSkillLevelOffset) { builder.AddOffset(6, mainExSkillLevelOffset.Value, 0); } + public static VectorOffset CreateMainExSkillLevelVector(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 CreateMainExSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainExSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainExSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainExSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainNoneExSkillLevel(FlatBufferBuilder builder, VectorOffset mainNoneExSkillLevelOffset) { builder.AddOffset(7, mainNoneExSkillLevelOffset.Value, 0); } + public static VectorOffset CreateMainNoneExSkillLevelVector(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 CreateMainNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainNoneExSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment1Tier(FlatBufferBuilder builder, VectorOffset mainEquipment1TierOffset) { builder.AddOffset(8, mainEquipment1TierOffset.Value, 0); } + public static VectorOffset CreateMainEquipment1TierVector(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 CreateMainEquipment1TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment1TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment1TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment1TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment1Level(FlatBufferBuilder builder, VectorOffset mainEquipment1LevelOffset) { builder.AddOffset(9, mainEquipment1LevelOffset.Value, 0); } + public static VectorOffset CreateMainEquipment1LevelVector(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 CreateMainEquipment1LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment1LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment1LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment1LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment2Tier(FlatBufferBuilder builder, VectorOffset mainEquipment2TierOffset) { builder.AddOffset(10, mainEquipment2TierOffset.Value, 0); } + public static VectorOffset CreateMainEquipment2TierVector(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 CreateMainEquipment2TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment2TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment2TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment2TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment2Level(FlatBufferBuilder builder, VectorOffset mainEquipment2LevelOffset) { builder.AddOffset(11, mainEquipment2LevelOffset.Value, 0); } + public static VectorOffset CreateMainEquipment2LevelVector(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 CreateMainEquipment2LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment2LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment2LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment2LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment3Tier(FlatBufferBuilder builder, VectorOffset mainEquipment3TierOffset) { builder.AddOffset(12, mainEquipment3TierOffset.Value, 0); } + public static VectorOffset CreateMainEquipment3TierVector(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 CreateMainEquipment3TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment3TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment3TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment3TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainEquipment3Level(FlatBufferBuilder builder, VectorOffset mainEquipment3LevelOffset) { builder.AddOffset(13, mainEquipment3LevelOffset.Value, 0); } + public static VectorOffset CreateMainEquipment3LevelVector(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 CreateMainEquipment3LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment3LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainEquipment3LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainEquipment3LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainCharacterWeaponGrade(FlatBufferBuilder builder, VectorOffset mainCharacterWeaponGradeOffset) { builder.AddOffset(14, mainCharacterWeaponGradeOffset.Value, 0); } + public static VectorOffset CreateMainCharacterWeaponGradeVector(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 CreateMainCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainCharacterWeaponGradeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainCharacterWeaponLevel(FlatBufferBuilder builder, VectorOffset mainCharacterWeaponLevelOffset) { builder.AddOffset(15, mainCharacterWeaponLevelOffset.Value, 0); } + public static VectorOffset CreateMainCharacterWeaponLevelVector(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 CreateMainCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainCharacterWeaponLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainCharacterGearTier(FlatBufferBuilder builder, VectorOffset mainCharacterGearTierOffset) { builder.AddOffset(16, mainCharacterGearTierOffset.Value, 0); } + public static VectorOffset CreateMainCharacterGearTierVector(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 CreateMainCharacterGearTierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterGearTierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterGearTierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainCharacterGearTierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMainCharacterGearLevel(FlatBufferBuilder builder, VectorOffset mainCharacterGearLevelOffset) { builder.AddOffset(17, mainCharacterGearLevelOffset.Value, 0); } + public static VectorOffset CreateMainCharacterGearLevelVector(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 CreateMainCharacterGearLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterGearLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMainCharacterGearLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMainCharacterGearLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportCharacterID(FlatBufferBuilder builder, VectorOffset supportCharacterIDOffset) { builder.AddOffset(18, supportCharacterIDOffset.Value, 0); } + public static VectorOffset CreateSupportCharacterIDVector(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 CreateSupportCharacterIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportCharacterIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSupportLevel(FlatBufferBuilder builder, VectorOffset supportLevelOffset) { builder.AddOffset(19, supportLevelOffset.Value, 0); } + public static VectorOffset CreateSupportLevelVector(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 CreateSupportLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportGrade(FlatBufferBuilder builder, VectorOffset supportGradeOffset) { builder.AddOffset(20, supportGradeOffset.Value, 0); } + public static VectorOffset CreateSupportGradeVector(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 CreateSupportGradeVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportGradeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportGradeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportGradeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportExSkillLevel(FlatBufferBuilder builder, VectorOffset supportExSkillLevelOffset) { builder.AddOffset(21, supportExSkillLevelOffset.Value, 0); } + public static VectorOffset CreateSupportExSkillLevelVector(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 CreateSupportExSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportExSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportExSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportExSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportNoneExSkillLevel(FlatBufferBuilder builder, VectorOffset supportNoneExSkillLevelOffset) { builder.AddOffset(22, supportNoneExSkillLevelOffset.Value, 0); } + public static VectorOffset CreateSupportNoneExSkillLevelVector(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 CreateSupportNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportNoneExSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportNoneExSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment1Tier(FlatBufferBuilder builder, VectorOffset supportEquipment1TierOffset) { builder.AddOffset(23, supportEquipment1TierOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment1TierVector(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 CreateSupportEquipment1TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment1TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment1TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment1TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment1Level(FlatBufferBuilder builder, VectorOffset supportEquipment1LevelOffset) { builder.AddOffset(24, supportEquipment1LevelOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment1LevelVector(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 CreateSupportEquipment1LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment1LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment1LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment1LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment2Tier(FlatBufferBuilder builder, VectorOffset supportEquipment2TierOffset) { builder.AddOffset(25, supportEquipment2TierOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment2TierVector(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 CreateSupportEquipment2TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment2TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment2TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment2TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment2Level(FlatBufferBuilder builder, VectorOffset supportEquipment2LevelOffset) { builder.AddOffset(26, supportEquipment2LevelOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment2LevelVector(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 CreateSupportEquipment2LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment2LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment2LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment2LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment3Tier(FlatBufferBuilder builder, VectorOffset supportEquipment3TierOffset) { builder.AddOffset(27, supportEquipment3TierOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment3TierVector(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 CreateSupportEquipment3TierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment3TierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment3TierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment3TierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportEquipment3Level(FlatBufferBuilder builder, VectorOffset supportEquipment3LevelOffset) { builder.AddOffset(28, supportEquipment3LevelOffset.Value, 0); } + public static VectorOffset CreateSupportEquipment3LevelVector(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 CreateSupportEquipment3LevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment3LevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportEquipment3LevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportEquipment3LevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportCharacterWeaponGrade(FlatBufferBuilder builder, VectorOffset supportCharacterWeaponGradeOffset) { builder.AddOffset(29, supportCharacterWeaponGradeOffset.Value, 0); } + public static VectorOffset CreateSupportCharacterWeaponGradeVector(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 CreateSupportCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterWeaponGradeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportCharacterWeaponGradeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportCharacterWeaponLevel(FlatBufferBuilder builder, VectorOffset supportCharacterWeaponLevelOffset) { builder.AddOffset(30, supportCharacterWeaponLevelOffset.Value, 0); } + public static VectorOffset CreateSupportCharacterWeaponLevelVector(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 CreateSupportCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterWeaponLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportCharacterWeaponLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportCharacterGearTier(FlatBufferBuilder builder, VectorOffset supportCharacterGearTierOffset) { builder.AddOffset(31, supportCharacterGearTierOffset.Value, 0); } + public static VectorOffset CreateSupportCharacterGearTierVector(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 CreateSupportCharacterGearTierVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterGearTierVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterGearTierVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportCharacterGearTierVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSupportCharacterGearLevel(FlatBufferBuilder builder, VectorOffset supportCharacterGearLevelOffset) { builder.AddOffset(32, supportCharacterGearLevelOffset.Value, 0); } + public static VectorOffset CreateSupportCharacterGearLevelVector(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 CreateSupportCharacterGearLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterGearLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSupportCharacterGearLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSupportCharacterGearLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddInteractionTSCharacterId(FlatBufferBuilder builder, long interactionTSCharacterId) { builder.AddLong(33, interactionTSCharacterId, 0); } + public static Offset EndFixedEchelonSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FixedEchelonSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FixedEchelonID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EchelonSceneSkip*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*MainLeaderSlot*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*MainCharacterID*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*MainLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*MainGrade*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*MainExSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*MainNoneExSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*MainEquipment1Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*MainEquipment1Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*MainEquipment2Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*MainEquipment2Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*MainEquipment3Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*MainEquipment3Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*MainCharacterWeaponGrade*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*MainCharacterWeaponLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*MainCharacterGearTier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*MainCharacterGearLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*SupportCharacterID*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*SupportLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 44 /*SupportGrade*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*SupportExSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*SupportNoneExSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 50 /*SupportEquipment1Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 52 /*SupportEquipment1Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 54 /*SupportEquipment2Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 56 /*SupportEquipment2Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 58 /*SupportEquipment3Tier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 60 /*SupportEquipment3Level*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 62 /*SupportCharacterWeaponGrade*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 64 /*SupportCharacterWeaponLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 66 /*SupportCharacterGearTier*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 68 /*SupportCharacterGearLevel*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 70 /*InteractionTSCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs b/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs new file mode 100644 index 0000000..493f979 --- /dev/null +++ b/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FixedEchelonSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FixedEchelonSettingExcelTable GetRootAsFixedEchelonSettingExcelTable(ByteBuffer _bb) { return GetRootAsFixedEchelonSettingExcelTable(_bb, new FixedEchelonSettingExcelTable()); } + public static FixedEchelonSettingExcelTable GetRootAsFixedEchelonSettingExcelTable(ByteBuffer _bb, FixedEchelonSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FixedEchelonSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FixedEchelonSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FixedEchelonSettingExcel?)(new SCHALE.Common.FlatData.FixedEchelonSettingExcel()).__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 CreateFixedEchelonSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FixedEchelonSettingExcelTable.AddDataList(builder, DataListOffset); + return FixedEchelonSettingExcelTable.EndFixedEchelonSettingExcelTable(builder); + } + + public static void StartFixedEchelonSettingExcelTable(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 EndFixedEchelonSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FixedEchelonSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FixedEchelonSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FixedStrategyExcel.cs b/SCHALE.Common/FlatData/FixedStrategyExcel.cs new file mode 100644 index 0000000..a18fbef --- /dev/null +++ b/SCHALE.Common/FlatData/FixedStrategyExcel.cs @@ -0,0 +1,90 @@ +// +// 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 FixedStrategyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FixedStrategyExcel GetRootAsFixedStrategyExcel(ByteBuffer _bb) { return GetRootAsFixedStrategyExcel(_bb, new FixedStrategyExcel()); } + public static FixedStrategyExcel GetRootAsFixedStrategyExcel(ByteBuffer _bb, FixedStrategyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FixedStrategyExcel __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 StageEnterEchelon01FixedEchelonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon01Starttile { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon02FixedEchelonId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon02Starttile { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon03FixedEchelonId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon03Starttile { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon04FixedEchelonId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageEnterEchelon04Starttile { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateFixedStrategyExcel(FlatBufferBuilder builder, + long Id = 0, + long StageEnterEchelon01FixedEchelonId = 0, + long StageEnterEchelon01Starttile = 0, + long StageEnterEchelon02FixedEchelonId = 0, + long StageEnterEchelon02Starttile = 0, + long StageEnterEchelon03FixedEchelonId = 0, + long StageEnterEchelon03Starttile = 0, + long StageEnterEchelon04FixedEchelonId = 0, + long StageEnterEchelon04Starttile = 0) { + builder.StartTable(9); + FixedStrategyExcel.AddStageEnterEchelon04Starttile(builder, StageEnterEchelon04Starttile); + FixedStrategyExcel.AddStageEnterEchelon04FixedEchelonId(builder, StageEnterEchelon04FixedEchelonId); + FixedStrategyExcel.AddStageEnterEchelon03Starttile(builder, StageEnterEchelon03Starttile); + FixedStrategyExcel.AddStageEnterEchelon03FixedEchelonId(builder, StageEnterEchelon03FixedEchelonId); + FixedStrategyExcel.AddStageEnterEchelon02Starttile(builder, StageEnterEchelon02Starttile); + FixedStrategyExcel.AddStageEnterEchelon02FixedEchelonId(builder, StageEnterEchelon02FixedEchelonId); + FixedStrategyExcel.AddStageEnterEchelon01Starttile(builder, StageEnterEchelon01Starttile); + FixedStrategyExcel.AddStageEnterEchelon01FixedEchelonId(builder, StageEnterEchelon01FixedEchelonId); + FixedStrategyExcel.AddId(builder, Id); + return FixedStrategyExcel.EndFixedStrategyExcel(builder); + } + + public static void StartFixedStrategyExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStageEnterEchelon01FixedEchelonId(FlatBufferBuilder builder, long stageEnterEchelon01FixedEchelonId) { builder.AddLong(1, stageEnterEchelon01FixedEchelonId, 0); } + public static void AddStageEnterEchelon01Starttile(FlatBufferBuilder builder, long stageEnterEchelon01Starttile) { builder.AddLong(2, stageEnterEchelon01Starttile, 0); } + public static void AddStageEnterEchelon02FixedEchelonId(FlatBufferBuilder builder, long stageEnterEchelon02FixedEchelonId) { builder.AddLong(3, stageEnterEchelon02FixedEchelonId, 0); } + public static void AddStageEnterEchelon02Starttile(FlatBufferBuilder builder, long stageEnterEchelon02Starttile) { builder.AddLong(4, stageEnterEchelon02Starttile, 0); } + public static void AddStageEnterEchelon03FixedEchelonId(FlatBufferBuilder builder, long stageEnterEchelon03FixedEchelonId) { builder.AddLong(5, stageEnterEchelon03FixedEchelonId, 0); } + public static void AddStageEnterEchelon03Starttile(FlatBufferBuilder builder, long stageEnterEchelon03Starttile) { builder.AddLong(6, stageEnterEchelon03Starttile, 0); } + public static void AddStageEnterEchelon04FixedEchelonId(FlatBufferBuilder builder, long stageEnterEchelon04FixedEchelonId) { builder.AddLong(7, stageEnterEchelon04FixedEchelonId, 0); } + public static void AddStageEnterEchelon04Starttile(FlatBufferBuilder builder, long stageEnterEchelon04Starttile) { builder.AddLong(8, stageEnterEchelon04Starttile, 0); } + public static Offset EndFixedStrategyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FixedStrategyExcelVerify +{ + 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 /*StageEnterEchelon01FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*StageEnterEchelon01Starttile*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StageEnterEchelon02FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StageEnterEchelon02Starttile*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*StageEnterEchelon03FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*StageEnterEchelon03Starttile*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*StageEnterEchelon04FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*StageEnterEchelon04Starttile*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs b/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs new file mode 100644 index 0000000..71905c9 --- /dev/null +++ b/SCHALE.Common/FlatData/FixedStrategyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FixedStrategyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FixedStrategyExcelTable GetRootAsFixedStrategyExcelTable(ByteBuffer _bb) { return GetRootAsFixedStrategyExcelTable(_bb, new FixedStrategyExcelTable()); } + public static FixedStrategyExcelTable GetRootAsFixedStrategyExcelTable(ByteBuffer _bb, FixedStrategyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FixedStrategyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FixedStrategyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FixedStrategyExcel?)(new SCHALE.Common.FlatData.FixedStrategyExcel()).__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 CreateFixedStrategyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FixedStrategyExcelTable.AddDataList(builder, DataListOffset); + return FixedStrategyExcelTable.EndFixedStrategyExcelTable(builder); + } + + public static void StartFixedStrategyExcelTable(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 EndFixedStrategyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FixedStrategyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FixedStrategyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FloaterCommonExcel.cs b/SCHALE.Common/FlatData/FloaterCommonExcel.cs new file mode 100644 index 0000000..7d5cb4b --- /dev/null +++ b/SCHALE.Common/FlatData/FloaterCommonExcel.cs @@ -0,0 +1,75 @@ +// +// 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 FloaterCommonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FloaterCommonExcel GetRootAsFloaterCommonExcel(ByteBuffer _bb) { return GetRootAsFloaterCommonExcel(_bb, new FloaterCommonExcel()); } + public static FloaterCommonExcel GetRootAsFloaterCommonExcel(ByteBuffer _bb, FloaterCommonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FloaterCommonExcel __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 SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public int FloaterOffsetPosX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FloaterOffsetPosY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FloaterRandomPosRangeX { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FloaterRandomPosRangeY { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateFloaterCommonExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None, + int FloaterOffsetPosX = 0, + int FloaterOffsetPosY = 0, + int FloaterRandomPosRangeX = 0, + int FloaterRandomPosRangeY = 0) { + builder.StartTable(6); + FloaterCommonExcel.AddId(builder, Id); + FloaterCommonExcel.AddFloaterRandomPosRangeY(builder, FloaterRandomPosRangeY); + FloaterCommonExcel.AddFloaterRandomPosRangeX(builder, FloaterRandomPosRangeX); + FloaterCommonExcel.AddFloaterOffsetPosY(builder, FloaterOffsetPosY); + FloaterCommonExcel.AddFloaterOffsetPosX(builder, FloaterOffsetPosX); + FloaterCommonExcel.AddTacticEntityType(builder, TacticEntityType); + return FloaterCommonExcel.EndFloaterCommonExcel(builder); + } + + public static void StartFloaterCommonExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTacticEntityType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType) { builder.AddInt(1, (int)tacticEntityType, 0); } + public static void AddFloaterOffsetPosX(FlatBufferBuilder builder, int floaterOffsetPosX) { builder.AddInt(2, floaterOffsetPosX, 0); } + public static void AddFloaterOffsetPosY(FlatBufferBuilder builder, int floaterOffsetPosY) { builder.AddInt(3, floaterOffsetPosY, 0); } + public static void AddFloaterRandomPosRangeX(FlatBufferBuilder builder, int floaterRandomPosRangeX) { builder.AddInt(4, floaterRandomPosRangeX, 0); } + public static void AddFloaterRandomPosRangeY(FlatBufferBuilder builder, int floaterRandomPosRangeY) { builder.AddInt(5, floaterRandomPosRangeY, 0); } + public static Offset EndFloaterCommonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FloaterCommonExcelVerify +{ + 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 /*TacticEntityType*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*FloaterOffsetPosX*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*FloaterOffsetPosY*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*FloaterRandomPosRangeX*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*FloaterRandomPosRangeY*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs b/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs new file mode 100644 index 0000000..cc4057c --- /dev/null +++ b/SCHALE.Common/FlatData/FloaterCommonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FloaterCommonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FloaterCommonExcelTable GetRootAsFloaterCommonExcelTable(ByteBuffer _bb) { return GetRootAsFloaterCommonExcelTable(_bb, new FloaterCommonExcelTable()); } + public static FloaterCommonExcelTable GetRootAsFloaterCommonExcelTable(ByteBuffer _bb, FloaterCommonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FloaterCommonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FloaterCommonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FloaterCommonExcel?)(new SCHALE.Common.FlatData.FloaterCommonExcel()).__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 CreateFloaterCommonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FloaterCommonExcelTable.AddDataList(builder, DataListOffset); + return FloaterCommonExcelTable.EndFloaterCommonExcelTable(builder); + } + + public static void StartFloaterCommonExcelTable(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 EndFloaterCommonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FloaterCommonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FloaterCommonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FontType.cs b/SCHALE.Common/FlatData/FontType.cs new file mode 100644 index 0000000..53d36f7 --- /dev/null +++ b/SCHALE.Common/FlatData/FontType.cs @@ -0,0 +1,27 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FontType : int +{ + None = 0, + Damage = 1, + Block = 2, + Heal = 3, + Miss = 4, + Critical = 5, + Skill = 6, + Immune = 7, + DamageResist = 8, + DamageWeak = 9, + CriticalResist = 10, + CriticalWeak = 11, + Effective = 12, + CriticalEffective = 13, +}; + + +} diff --git a/SCHALE.Common/FlatData/Form.cs b/SCHALE.Common/FlatData/Form.cs new file mode 100644 index 0000000..7889260 --- /dev/null +++ b/SCHALE.Common/FlatData/Form.cs @@ -0,0 +1,55 @@ +// +// 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 Form : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static Form GetRootAsForm(ByteBuffer _bb) { return GetRootAsForm(_bb, new Form()); } + public static Form GetRootAsForm(ByteBuffer _bb, Form obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + 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.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 PublicSkillOffset = default(Offset)) { + builder.StartTable(2); + Form.AddPublicSkill(builder, PublicSkillOffset); + Form.AddMoveEnd(builder, MoveEndOffset); + return Form.EndForm(builder); + } + + 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 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); + } +} + + +static public class FormVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTable(tablePos, 4 /*MoveEnd*/, SCHALE.Common.FlatData.MoveEndTableVerify.Verify, false) + && verifier.VerifyTable(tablePos, 6 /*PublicSkill*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FormationLine.cs b/SCHALE.Common/FlatData/FormationLine.cs new file mode 100644 index 0000000..ce920ca --- /dev/null +++ b/SCHALE.Common/FlatData/FormationLine.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FormationLine : int +{ + Students = 0, + TSS = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/FormationLocationExcel.cs b/SCHALE.Common/FlatData/FormationLocationExcel.cs new file mode 100644 index 0000000..f84df0d --- /dev/null +++ b/SCHALE.Common/FlatData/FormationLocationExcel.cs @@ -0,0 +1,89 @@ +// +// 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 FormationLocationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FormationLocationExcel GetRootAsFormationLocationExcel(ByteBuffer _bb) { return GetRootAsFormationLocationExcel(_bb, new FormationLocationExcel()); } + public static FormationLocationExcel GetRootAsFormationLocationExcel(ByteBuffer _bb, FormationLocationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FormationLocationExcel __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 GroupID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float SlotZ(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int SlotZLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSlotZBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetSlotZBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public float[] GetSlotZArray() { return __p.__vector_as_array(8); } + public float SlotX(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int SlotXLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSlotXBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetSlotXBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public float[] GetSlotXArray() { return __p.__vector_as_array(10); } + + public static Offset CreateFormationLocationExcel(FlatBufferBuilder builder, + long Id = 0, + long GroupID = 0, + VectorOffset SlotZOffset = default(VectorOffset), + VectorOffset SlotXOffset = default(VectorOffset)) { + builder.StartTable(4); + FormationLocationExcel.AddGroupID(builder, GroupID); + FormationLocationExcel.AddId(builder, Id); + FormationLocationExcel.AddSlotX(builder, SlotXOffset); + FormationLocationExcel.AddSlotZ(builder, SlotZOffset); + return FormationLocationExcel.EndFormationLocationExcel(builder); + } + + public static void StartFormationLocationExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddGroupID(FlatBufferBuilder builder, long groupID) { builder.AddLong(1, groupID, 0); } + public static void AddSlotZ(FlatBufferBuilder builder, VectorOffset slotZOffset) { builder.AddOffset(2, slotZOffset.Value, 0); } + public static VectorOffset CreateSlotZVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateSlotZVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSlotZVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSlotZVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSlotZVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSlotX(FlatBufferBuilder builder, VectorOffset slotXOffset) { builder.AddOffset(3, slotXOffset.Value, 0); } + public static VectorOffset CreateSlotXVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateSlotXVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSlotXVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSlotXVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSlotXVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndFormationLocationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FormationLocationExcelVerify +{ + 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 /*GroupID*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*SlotZ*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*SlotX*/, 4 /*float*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FormationLocationExcelTable.cs b/SCHALE.Common/FlatData/FormationLocationExcelTable.cs new file mode 100644 index 0000000..d1258a3 --- /dev/null +++ b/SCHALE.Common/FlatData/FormationLocationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FormationLocationExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FormationLocationExcelTable GetRootAsFormationLocationExcelTable(ByteBuffer _bb) { return GetRootAsFormationLocationExcelTable(_bb, new FormationLocationExcelTable()); } + public static FormationLocationExcelTable GetRootAsFormationLocationExcelTable(ByteBuffer _bb, FormationLocationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FormationLocationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FormationLocationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FormationLocationExcel?)(new SCHALE.Common.FlatData.FormationLocationExcel()).__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 CreateFormationLocationExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FormationLocationExcelTable.AddDataList(builder, DataListOffset); + return FormationLocationExcelTable.EndFormationLocationExcelTable(builder); + } + + public static void StartFormationLocationExcelTable(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 EndFormationLocationExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FormationLocationExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FormationLocationExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FriendSearchLevelOption.cs b/SCHALE.Common/FlatData/FriendSearchLevelOption.cs new file mode 100644 index 0000000..3bb94d5 --- /dev/null +++ b/SCHALE.Common/FlatData/FriendSearchLevelOption.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FriendSearchLevelOption : int +{ + Recommend = 0, + All = 1, + Level1To30 = 2, + Level31To40 = 3, + Level41To50 = 4, + Level51To60 = 5, + Level61To70 = 6, + Level71To80 = 7, + Level81To90 = 8, + Level91To100 = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/FurnitureCategory.cs b/SCHALE.Common/FlatData/FurnitureCategory.cs new file mode 100644 index 0000000..e62b2d6 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureCategory.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FurnitureCategory : int +{ + Furnitures = 0, + Decorations = 1, + Interiors = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/FurnitureExcel.cs b/SCHALE.Common/FlatData/FurnitureExcel.cs new file mode 100644 index 0000000..07832e2 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureExcel.cs @@ -0,0 +1,322 @@ +// +// 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 FurnitureExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureExcel GetRootAsFurnitureExcel(ByteBuffer _bb) { return GetRootAsFurnitureExcel(_bb, new FurnitureExcel()); } + public static FurnitureExcel GetRootAsFurnitureExcel(ByteBuffer _bb, FurnitureExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureExcel __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 SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public SCHALE.Common.FlatData.FurnitureCategory Category { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FurnitureCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureCategory.Furnitures; } } + public SCHALE.Common.FlatData.FurnitureSubCategory SubCategory { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.FurnitureSubCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureSubCategory.Table; } } + public uint LocalizeEtcId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int StarGradeInit { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long Tier { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Icon { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(20); } + public int SizeWidth { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SizeHeight { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int OtherSize { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpandWidth { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Enable { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ReverseRotation { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string Prefab { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetPrefabBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetPrefabArray() { return __p.__vector_as_array(34); } + public string PrefabExpand { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabExpandBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetPrefabExpandBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetPrefabExpandArray() { return __p.__vector_as_array(36); } + public string SubPrefab { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubPrefabBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetSubPrefabBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetSubPrefabArray() { return __p.__vector_as_array(38); } + public string SubExpandPrefab { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubExpandPrefabBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetSubExpandPrefabBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetSubExpandPrefabArray() { return __p.__vector_as_array(40); } + public string CornerPrefab { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCornerPrefabBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetCornerPrefabBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetCornerPrefabArray() { return __p.__vector_as_array(42); } + public long StackableMax { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecipeCraftId { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SetGroudpId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ComfortBonus { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VisitOperationType { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VisitBonusOperationType { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(56); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(56); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(56, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(56); 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 CraftQualityTier0 { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier1 { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier2 { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShiftingCraftQuality { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.FurnitureFunctionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureFunctionType.None; } } + public long FurnitureFunctionParameter { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VideoId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventCollectionId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FurnitureBubbleOffsetX { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FurnitureBubbleOffsetY { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string CafeCharacterStateReq(int j) { int o = __p.__offset(78); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int CafeCharacterStateReqLength { get { int o = __p.__offset(78); return o != 0 ? __p.__vector_len(o) : 0; } } + public string CafeCharacterStateAdd(int j) { int o = __p.__offset(80); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int CafeCharacterStateAddLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } } + public string CafeCharacterStateMake(int j) { int o = __p.__offset(82); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int CafeCharacterStateMakeLength { get { int o = __p.__offset(82); return o != 0 ? __p.__vector_len(o) : 0; } } + public string CafeCharacterStateOnly(int j) { int o = __p.__offset(84); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int CafeCharacterStateOnlyLength { get { int o = __p.__offset(84); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateFurnitureExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + SCHALE.Common.FlatData.FurnitureCategory Category = SCHALE.Common.FlatData.FurnitureCategory.Furnitures, + SCHALE.Common.FlatData.FurnitureSubCategory SubCategory = SCHALE.Common.FlatData.FurnitureSubCategory.Table, + uint LocalizeEtcId = 0, + int StarGradeInit = 0, + long Tier = 0, + StringOffset IconOffset = default(StringOffset), + int SizeWidth = 0, + int SizeHeight = 0, + int OtherSize = 0, + int ExpandWidth = 0, + bool Enable = false, + bool ReverseRotation = false, + StringOffset PrefabOffset = default(StringOffset), + StringOffset PrefabExpandOffset = default(StringOffset), + StringOffset SubPrefabOffset = default(StringOffset), + StringOffset SubExpandPrefabOffset = default(StringOffset), + StringOffset CornerPrefabOffset = default(StringOffset), + long StackableMax = 0, + long RecipeCraftId = 0, + long SetGroudpId = 0, + long ComfortBonus = 0, + long VisitOperationType = 0, + long VisitBonusOperationType = 0, + VectorOffset TagsOffset = default(VectorOffset), + long CraftQualityTier0 = 0, + long CraftQualityTier1 = 0, + long CraftQualityTier2 = 0, + long ShiftingCraftQuality = 0, + SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType = SCHALE.Common.FlatData.FurnitureFunctionType.None, + long FurnitureFunctionParameter = 0, + long VideoId = 0, + long EventCollectionId = 0, + long FurnitureBubbleOffsetX = 0, + long FurnitureBubbleOffsetY = 0, + VectorOffset CafeCharacterStateReqOffset = default(VectorOffset), + VectorOffset CafeCharacterStateAddOffset = default(VectorOffset), + VectorOffset CafeCharacterStateMakeOffset = default(VectorOffset), + VectorOffset CafeCharacterStateOnlyOffset = default(VectorOffset)) { + builder.StartTable(41); + FurnitureExcel.AddFurnitureBubbleOffsetY(builder, FurnitureBubbleOffsetY); + FurnitureExcel.AddFurnitureBubbleOffsetX(builder, FurnitureBubbleOffsetX); + FurnitureExcel.AddEventCollectionId(builder, EventCollectionId); + FurnitureExcel.AddVideoId(builder, VideoId); + FurnitureExcel.AddFurnitureFunctionParameter(builder, FurnitureFunctionParameter); + FurnitureExcel.AddShiftingCraftQuality(builder, ShiftingCraftQuality); + FurnitureExcel.AddCraftQualityTier2(builder, CraftQualityTier2); + FurnitureExcel.AddCraftQualityTier1(builder, CraftQualityTier1); + FurnitureExcel.AddCraftQualityTier0(builder, CraftQualityTier0); + FurnitureExcel.AddVisitBonusOperationType(builder, VisitBonusOperationType); + FurnitureExcel.AddVisitOperationType(builder, VisitOperationType); + FurnitureExcel.AddComfortBonus(builder, ComfortBonus); + FurnitureExcel.AddSetGroudpId(builder, SetGroudpId); + FurnitureExcel.AddRecipeCraftId(builder, RecipeCraftId); + FurnitureExcel.AddStackableMax(builder, StackableMax); + FurnitureExcel.AddTier(builder, Tier); + FurnitureExcel.AddId(builder, Id); + FurnitureExcel.AddCafeCharacterStateOnly(builder, CafeCharacterStateOnlyOffset); + FurnitureExcel.AddCafeCharacterStateMake(builder, CafeCharacterStateMakeOffset); + FurnitureExcel.AddCafeCharacterStateAdd(builder, CafeCharacterStateAddOffset); + FurnitureExcel.AddCafeCharacterStateReq(builder, CafeCharacterStateReqOffset); + FurnitureExcel.AddFurnitureFunctionType(builder, FurnitureFunctionType); + FurnitureExcel.AddTags(builder, TagsOffset); + FurnitureExcel.AddCornerPrefab(builder, CornerPrefabOffset); + FurnitureExcel.AddSubExpandPrefab(builder, SubExpandPrefabOffset); + FurnitureExcel.AddSubPrefab(builder, SubPrefabOffset); + FurnitureExcel.AddPrefabExpand(builder, PrefabExpandOffset); + FurnitureExcel.AddPrefab(builder, PrefabOffset); + FurnitureExcel.AddExpandWidth(builder, ExpandWidth); + FurnitureExcel.AddOtherSize(builder, OtherSize); + FurnitureExcel.AddSizeHeight(builder, SizeHeight); + FurnitureExcel.AddSizeWidth(builder, SizeWidth); + FurnitureExcel.AddIcon(builder, IconOffset); + FurnitureExcel.AddStarGradeInit(builder, StarGradeInit); + FurnitureExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + FurnitureExcel.AddSubCategory(builder, SubCategory); + FurnitureExcel.AddCategory(builder, Category); + FurnitureExcel.AddRarity(builder, Rarity); + FurnitureExcel.AddProductionStep(builder, ProductionStep); + FurnitureExcel.AddReverseRotation(builder, ReverseRotation); + FurnitureExcel.AddEnable(builder, Enable); + return FurnitureExcel.EndFurnitureExcel(builder); + } + + public static void StartFurnitureExcel(FlatBufferBuilder builder) { builder.StartTable(41); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(1, (int)productionStep, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureCategory category) { builder.AddInt(3, (int)category, 0); } + public static void AddSubCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureSubCategory subCategory) { builder.AddInt(4, (int)subCategory, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(5, localizeEtcId, 0); } + public static void AddStarGradeInit(FlatBufferBuilder builder, int starGradeInit) { builder.AddInt(6, starGradeInit, 0); } + public static void AddTier(FlatBufferBuilder builder, long tier) { builder.AddLong(7, tier, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(8, iconOffset.Value, 0); } + public static void AddSizeWidth(FlatBufferBuilder builder, int sizeWidth) { builder.AddInt(9, sizeWidth, 0); } + public static void AddSizeHeight(FlatBufferBuilder builder, int sizeHeight) { builder.AddInt(10, sizeHeight, 0); } + public static void AddOtherSize(FlatBufferBuilder builder, int otherSize) { builder.AddInt(11, otherSize, 0); } + public static void AddExpandWidth(FlatBufferBuilder builder, int expandWidth) { builder.AddInt(12, expandWidth, 0); } + public static void AddEnable(FlatBufferBuilder builder, bool enable) { builder.AddBool(13, enable, false); } + public static void AddReverseRotation(FlatBufferBuilder builder, bool reverseRotation) { builder.AddBool(14, reverseRotation, false); } + public static void AddPrefab(FlatBufferBuilder builder, StringOffset prefabOffset) { builder.AddOffset(15, prefabOffset.Value, 0); } + public static void AddPrefabExpand(FlatBufferBuilder builder, StringOffset prefabExpandOffset) { builder.AddOffset(16, prefabExpandOffset.Value, 0); } + public static void AddSubPrefab(FlatBufferBuilder builder, StringOffset subPrefabOffset) { builder.AddOffset(17, subPrefabOffset.Value, 0); } + public static void AddSubExpandPrefab(FlatBufferBuilder builder, StringOffset subExpandPrefabOffset) { builder.AddOffset(18, subExpandPrefabOffset.Value, 0); } + public static void AddCornerPrefab(FlatBufferBuilder builder, StringOffset cornerPrefabOffset) { builder.AddOffset(19, cornerPrefabOffset.Value, 0); } + public static void AddStackableMax(FlatBufferBuilder builder, long stackableMax) { builder.AddLong(20, stackableMax, 0); } + public static void AddRecipeCraftId(FlatBufferBuilder builder, long recipeCraftId) { builder.AddLong(21, recipeCraftId, 0); } + public static void AddSetGroudpId(FlatBufferBuilder builder, long setGroudpId) { builder.AddLong(22, setGroudpId, 0); } + public static void AddComfortBonus(FlatBufferBuilder builder, long comfortBonus) { builder.AddLong(23, comfortBonus, 0); } + public static void AddVisitOperationType(FlatBufferBuilder builder, long visitOperationType) { builder.AddLong(24, visitOperationType, 0); } + public static void AddVisitBonusOperationType(FlatBufferBuilder builder, long visitBonusOperationType) { builder.AddLong(25, visitBonusOperationType, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(26, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCraftQualityTier0(FlatBufferBuilder builder, long craftQualityTier0) { builder.AddLong(27, craftQualityTier0, 0); } + public static void AddCraftQualityTier1(FlatBufferBuilder builder, long craftQualityTier1) { builder.AddLong(28, craftQualityTier1, 0); } + public static void AddCraftQualityTier2(FlatBufferBuilder builder, long craftQualityTier2) { builder.AddLong(29, craftQualityTier2, 0); } + public static void AddShiftingCraftQuality(FlatBufferBuilder builder, long shiftingCraftQuality) { builder.AddLong(30, shiftingCraftQuality, 0); } + public static void AddFurnitureFunctionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureFunctionType furnitureFunctionType) { builder.AddInt(31, (int)furnitureFunctionType, 0); } + public static void AddFurnitureFunctionParameter(FlatBufferBuilder builder, long furnitureFunctionParameter) { builder.AddLong(32, furnitureFunctionParameter, 0); } + public static void AddVideoId(FlatBufferBuilder builder, long videoId) { builder.AddLong(33, videoId, 0); } + public static void AddEventCollectionId(FlatBufferBuilder builder, long eventCollectionId) { builder.AddLong(34, eventCollectionId, 0); } + public static void AddFurnitureBubbleOffsetX(FlatBufferBuilder builder, long furnitureBubbleOffsetX) { builder.AddLong(35, furnitureBubbleOffsetX, 0); } + public static void AddFurnitureBubbleOffsetY(FlatBufferBuilder builder, long furnitureBubbleOffsetY) { builder.AddLong(36, furnitureBubbleOffsetY, 0); } + public static void AddCafeCharacterStateReq(FlatBufferBuilder builder, VectorOffset cafeCharacterStateReqOffset) { builder.AddOffset(37, cafeCharacterStateReqOffset.Value, 0); } + public static VectorOffset CreateCafeCharacterStateReqVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateReqVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateReqVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateReqVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeCharacterStateReqVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCafeCharacterStateAdd(FlatBufferBuilder builder, VectorOffset cafeCharacterStateAddOffset) { builder.AddOffset(38, cafeCharacterStateAddOffset.Value, 0); } + public static VectorOffset CreateCafeCharacterStateAddVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateAddVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateAddVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateAddVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeCharacterStateAddVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCafeCharacterStateMake(FlatBufferBuilder builder, VectorOffset cafeCharacterStateMakeOffset) { builder.AddOffset(39, cafeCharacterStateMakeOffset.Value, 0); } + public static VectorOffset CreateCafeCharacterStateMakeVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateMakeVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateMakeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateMakeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeCharacterStateMakeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCafeCharacterStateOnly(FlatBufferBuilder builder, VectorOffset cafeCharacterStateOnlyOffset) { builder.AddOffset(40, cafeCharacterStateOnlyOffset.Value, 0); } + public static VectorOffset CreateCafeCharacterStateOnlyVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateOnlyVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateOnlyVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCafeCharacterStateOnlyVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCafeCharacterStateOnlyVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndFurnitureExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureExcelVerify +{ + 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 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Category*/, 4 /*SCHALE.Common.FlatData.FurnitureCategory*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*SubCategory*/, 4 /*SCHALE.Common.FlatData.FurnitureSubCategory*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StarGradeInit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Tier*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*Icon*/, false) + && verifier.VerifyField(tablePos, 22 /*SizeWidth*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*SizeHeight*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*OtherSize*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*ExpandWidth*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*Enable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*ReverseRotation*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 34 /*Prefab*/, false) + && verifier.VerifyString(tablePos, 36 /*PrefabExpand*/, false) + && verifier.VerifyString(tablePos, 38 /*SubPrefab*/, false) + && verifier.VerifyString(tablePos, 40 /*SubExpandPrefab*/, false) + && verifier.VerifyString(tablePos, 42 /*CornerPrefab*/, false) + && verifier.VerifyField(tablePos, 44 /*StackableMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*RecipeCraftId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*SetGroudpId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*ComfortBonus*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*VisitOperationType*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*VisitBonusOperationType*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 56 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 58 /*CraftQualityTier0*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*CraftQualityTier1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*CraftQualityTier2*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*ShiftingCraftQuality*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*FurnitureFunctionType*/, 4 /*SCHALE.Common.FlatData.FurnitureFunctionType*/, 4, false) + && verifier.VerifyField(tablePos, 68 /*FurnitureFunctionParameter*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 70 /*VideoId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*EventCollectionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 74 /*FurnitureBubbleOffsetX*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 76 /*FurnitureBubbleOffsetY*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 78 /*CafeCharacterStateReq*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 80 /*CafeCharacterStateAdd*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 82 /*CafeCharacterStateMake*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 84 /*CafeCharacterStateOnly*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureExcelTable.cs b/SCHALE.Common/FlatData/FurnitureExcelTable.cs new file mode 100644 index 0000000..885723e --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FurnitureExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureExcelTable GetRootAsFurnitureExcelTable(ByteBuffer _bb) { return GetRootAsFurnitureExcelTable(_bb, new FurnitureExcelTable()); } + public static FurnitureExcelTable GetRootAsFurnitureExcelTable(ByteBuffer _bb, FurnitureExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FurnitureExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FurnitureExcel?)(new SCHALE.Common.FlatData.FurnitureExcel()).__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 CreateFurnitureExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FurnitureExcelTable.AddDataList(builder, DataListOffset); + return FurnitureExcelTable.EndFurnitureExcelTable(builder); + } + + public static void StartFurnitureExcelTable(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 EndFurnitureExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FurnitureExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureFunctionType.cs b/SCHALE.Common/FlatData/FurnitureFunctionType.cs new file mode 100644 index 0000000..5380adf --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureFunctionType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FurnitureFunctionType : int +{ + None = 0, + EventCollection = 1, + VideoPlay = 2, + TrophyCollection = 3, + InteractionBGMPlay = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/FurnitureGroupExcel.cs b/SCHALE.Common/FlatData/FurnitureGroupExcel.cs new file mode 100644 index 0000000..fa50f1f --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureGroupExcel.cs @@ -0,0 +1,94 @@ +// +// 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 FurnitureGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureGroupExcel GetRootAsFurnitureGroupExcel(ByteBuffer _bb) { return GetRootAsFurnitureGroupExcel(_bb, new FurnitureGroupExcel()); } + public static FurnitureGroupExcel GetRootAsFurnitureGroupExcel(ByteBuffer _bb, FurnitureGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureGroupExcel __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 uint GroupNameLocalize { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int RequiredFurnitureCount(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int RequiredFurnitureCountLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRequiredFurnitureCountBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetRequiredFurnitureCountBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public int[] GetRequiredFurnitureCountArray() { return __p.__vector_as_array(10); } + public long ComfortBonus(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ComfortBonusLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetComfortBonusBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetComfortBonusBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetComfortBonusArray() { return __p.__vector_as_array(12); } + + public static Offset CreateFurnitureGroupExcel(FlatBufferBuilder builder, + long Id = 0, + uint GroupNameLocalize = 0, + uint LocalizeEtcId = 0, + VectorOffset RequiredFurnitureCountOffset = default(VectorOffset), + VectorOffset ComfortBonusOffset = default(VectorOffset)) { + builder.StartTable(5); + FurnitureGroupExcel.AddId(builder, Id); + FurnitureGroupExcel.AddComfortBonus(builder, ComfortBonusOffset); + FurnitureGroupExcel.AddRequiredFurnitureCount(builder, RequiredFurnitureCountOffset); + FurnitureGroupExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + FurnitureGroupExcel.AddGroupNameLocalize(builder, GroupNameLocalize); + return FurnitureGroupExcel.EndFurnitureGroupExcel(builder); + } + + public static void StartFurnitureGroupExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddGroupNameLocalize(FlatBufferBuilder builder, uint groupNameLocalize) { builder.AddUint(1, groupNameLocalize, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddRequiredFurnitureCount(FlatBufferBuilder builder, VectorOffset requiredFurnitureCountOffset) { builder.AddOffset(3, requiredFurnitureCountOffset.Value, 0); } + public static VectorOffset CreateRequiredFurnitureCountVector(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 CreateRequiredFurnitureCountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequiredFurnitureCountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRequiredFurnitureCountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRequiredFurnitureCountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddComfortBonus(FlatBufferBuilder builder, VectorOffset comfortBonusOffset) { builder.AddOffset(4, comfortBonusOffset.Value, 0); } + public static VectorOffset CreateComfortBonusVector(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 CreateComfortBonusVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateComfortBonusVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateComfortBonusVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartComfortBonusVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndFurnitureGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureGroupExcelVerify +{ + 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 /*GroupNameLocalize*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RequiredFurnitureCount*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ComfortBonus*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs b/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs new file mode 100644 index 0000000..c5f35e6 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FurnitureGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureGroupExcelTable GetRootAsFurnitureGroupExcelTable(ByteBuffer _bb) { return GetRootAsFurnitureGroupExcelTable(_bb, new FurnitureGroupExcelTable()); } + public static FurnitureGroupExcelTable GetRootAsFurnitureGroupExcelTable(ByteBuffer _bb, FurnitureGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FurnitureGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FurnitureGroupExcel?)(new SCHALE.Common.FlatData.FurnitureGroupExcel()).__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 CreateFurnitureGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FurnitureGroupExcelTable.AddDataList(builder, DataListOffset); + return FurnitureGroupExcelTable.EndFurnitureGroupExcelTable(builder); + } + + public static void StartFurnitureGroupExcelTable(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 EndFurnitureGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FurnitureGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureLocation.cs b/SCHALE.Common/FlatData/FurnitureLocation.cs new file mode 100644 index 0000000..8676705 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureLocation.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FurnitureLocation : int +{ + None = 0, + Inventory = 1, + Floor = 2, + WallLeft = 3, + WallRight = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/FurnitureSubCategory.cs b/SCHALE.Common/FlatData/FurnitureSubCategory.cs new file mode 100644 index 0000000..d8f2aeb --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureSubCategory.cs @@ -0,0 +1,30 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum FurnitureSubCategory : int +{ + Table = 0, + Closet = 1, + Chair = 2, + Bed = 3, + FurnitureEtc = 4, + FurnitureSubCategory1 = 5, + Prop = 6, + HomeAppliance = 7, + WallDecoration = 8, + FloorDecoration = 9, + DecorationEtc = 10, + DecorationSubCategory1 = 11, + Floor = 12, + Background = 13, + Wallpaper = 14, + InteriorsSubCategory1 = 15, + All = 16, +}; + + +} diff --git a/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs new file mode 100644 index 0000000..961f823 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs @@ -0,0 +1,80 @@ +// +// 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 FurnitureTemplateElementExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureTemplateElementExcel GetRootAsFurnitureTemplateElementExcel(ByteBuffer _bb) { return GetRootAsFurnitureTemplateElementExcel(_bb, new FurnitureTemplateElementExcel()); } + public static FurnitureTemplateElementExcel GetRootAsFurnitureTemplateElementExcel(ByteBuffer _bb, FurnitureTemplateElementExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureTemplateElementExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long FurnitureTemplateId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FurnitureId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None; } } + public float PositionX { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float PositionY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Rotation { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long Order { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateFurnitureTemplateElementExcel(FlatBufferBuilder builder, + long FurnitureTemplateId = 0, + long FurnitureId = 0, + SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None, + float PositionX = 0.0f, + float PositionY = 0.0f, + float Rotation = 0.0f, + long Order = 0) { + builder.StartTable(7); + FurnitureTemplateElementExcel.AddOrder(builder, Order); + FurnitureTemplateElementExcel.AddFurnitureId(builder, FurnitureId); + FurnitureTemplateElementExcel.AddFurnitureTemplateId(builder, FurnitureTemplateId); + FurnitureTemplateElementExcel.AddRotation(builder, Rotation); + FurnitureTemplateElementExcel.AddPositionY(builder, PositionY); + FurnitureTemplateElementExcel.AddPositionX(builder, PositionX); + FurnitureTemplateElementExcel.AddLocation(builder, Location); + return FurnitureTemplateElementExcel.EndFurnitureTemplateElementExcel(builder); + } + + public static void StartFurnitureTemplateElementExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddFurnitureTemplateId(FlatBufferBuilder builder, long furnitureTemplateId) { builder.AddLong(0, furnitureTemplateId, 0); } + public static void AddFurnitureId(FlatBufferBuilder builder, long furnitureId) { builder.AddLong(1, furnitureId, 0); } + public static void AddLocation(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureLocation location) { builder.AddInt(2, (int)location, 0); } + public static void AddPositionX(FlatBufferBuilder builder, float positionX) { builder.AddFloat(3, positionX, 0.0f); } + public static void AddPositionY(FlatBufferBuilder builder, float positionY) { builder.AddFloat(4, positionY, 0.0f); } + public static void AddRotation(FlatBufferBuilder builder, float rotation) { builder.AddFloat(5, rotation, 0.0f); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(6, order, 0); } + public static Offset EndFurnitureTemplateElementExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureTemplateElementExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FurnitureTemplateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FurnitureId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Location*/, 4 /*SCHALE.Common.FlatData.FurnitureLocation*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*PositionX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*PositionY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*Rotation*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs b/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs new file mode 100644 index 0000000..635bd1d --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureTemplateElementExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FurnitureTemplateElementExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureTemplateElementExcelTable GetRootAsFurnitureTemplateElementExcelTable(ByteBuffer _bb) { return GetRootAsFurnitureTemplateElementExcelTable(_bb, new FurnitureTemplateElementExcelTable()); } + public static FurnitureTemplateElementExcelTable GetRootAsFurnitureTemplateElementExcelTable(ByteBuffer _bb, FurnitureTemplateElementExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureTemplateElementExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FurnitureTemplateElementExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FurnitureTemplateElementExcel?)(new SCHALE.Common.FlatData.FurnitureTemplateElementExcel()).__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 CreateFurnitureTemplateElementExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FurnitureTemplateElementExcelTable.AddDataList(builder, DataListOffset); + return FurnitureTemplateElementExcelTable.EndFurnitureTemplateElementExcelTable(builder); + } + + public static void StartFurnitureTemplateElementExcelTable(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 EndFurnitureTemplateElementExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureTemplateElementExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FurnitureTemplateElementExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs b/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs new file mode 100644 index 0000000..67edf66 --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureTemplateExcel.cs @@ -0,0 +1,77 @@ +// +// 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 FurnitureTemplateExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureTemplateExcel GetRootAsFurnitureTemplateExcel(ByteBuffer _bb) { return GetRootAsFurnitureTemplateExcel(_bb, new FurnitureTemplateExcel()); } + public static FurnitureTemplateExcel GetRootAsFurnitureTemplateExcel(ByteBuffer _bb, FurnitureTemplateExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureTemplateExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long FurnitureTemplateId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint FunitureTemplateTitle { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string ThumbnailImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThumbnailImagePathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetThumbnailImagePathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetThumbnailImagePathArray() { return __p.__vector_as_array(8); } + public string ImagePath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImagePathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImagePathArray() { return __p.__vector_as_array(10); } + + public static Offset CreateFurnitureTemplateExcel(FlatBufferBuilder builder, + long FurnitureTemplateId = 0, + uint FunitureTemplateTitle = 0, + StringOffset ThumbnailImagePathOffset = default(StringOffset), + StringOffset ImagePathOffset = default(StringOffset)) { + builder.StartTable(4); + FurnitureTemplateExcel.AddFurnitureTemplateId(builder, FurnitureTemplateId); + FurnitureTemplateExcel.AddImagePath(builder, ImagePathOffset); + FurnitureTemplateExcel.AddThumbnailImagePath(builder, ThumbnailImagePathOffset); + FurnitureTemplateExcel.AddFunitureTemplateTitle(builder, FunitureTemplateTitle); + return FurnitureTemplateExcel.EndFurnitureTemplateExcel(builder); + } + + public static void StartFurnitureTemplateExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddFurnitureTemplateId(FlatBufferBuilder builder, long furnitureTemplateId) { builder.AddLong(0, furnitureTemplateId, 0); } + public static void AddFunitureTemplateTitle(FlatBufferBuilder builder, uint funitureTemplateTitle) { builder.AddUint(1, funitureTemplateTitle, 0); } + public static void AddThumbnailImagePath(FlatBufferBuilder builder, StringOffset thumbnailImagePathOffset) { builder.AddOffset(2, thumbnailImagePathOffset.Value, 0); } + public static void AddImagePath(FlatBufferBuilder builder, StringOffset imagePathOffset) { builder.AddOffset(3, imagePathOffset.Value, 0); } + public static Offset EndFurnitureTemplateExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureTemplateExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*FurnitureTemplateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FunitureTemplateTitle*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*ThumbnailImagePath*/, false) + && verifier.VerifyString(tablePos, 10 /*ImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs b/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs new file mode 100644 index 0000000..3577fcd --- /dev/null +++ b/SCHALE.Common/FlatData/FurnitureTemplateExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 FurnitureTemplateExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static FurnitureTemplateExcelTable GetRootAsFurnitureTemplateExcelTable(ByteBuffer _bb) { return GetRootAsFurnitureTemplateExcelTable(_bb, new FurnitureTemplateExcelTable()); } + public static FurnitureTemplateExcelTable GetRootAsFurnitureTemplateExcelTable(ByteBuffer _bb, FurnitureTemplateExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public FurnitureTemplateExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.FurnitureTemplateExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FurnitureTemplateExcel?)(new SCHALE.Common.FlatData.FurnitureTemplateExcel()).__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 CreateFurnitureTemplateExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + FurnitureTemplateExcelTable.AddDataList(builder, DataListOffset); + return FurnitureTemplateExcelTable.EndFurnitureTemplateExcelTable(builder); + } + + public static void StartFurnitureTemplateExcelTable(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 EndFurnitureTemplateExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class FurnitureTemplateExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FurnitureTemplateExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs b/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs new file mode 100644 index 0000000..6acf5a0 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftNodeExcel.cs @@ -0,0 +1,86 @@ +// +// 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 GachaCraftNodeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftNodeExcel GetRootAsGachaCraftNodeExcel(ByteBuffer _bb) { return GetRootAsGachaCraftNodeExcel(_bb, new GachaCraftNodeExcel()); } + public static GachaCraftNodeExcel GetRootAsGachaCraftNodeExcel(ByteBuffer _bb, GachaCraftNodeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftNodeExcel __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 Tier { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int QuickCraftNodeDisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long NodeQuality { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Icon { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(12); } + public uint LocalizeKey { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long Property { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateGachaCraftNodeExcel(FlatBufferBuilder builder, + long ID = 0, + long Tier = 0, + int QuickCraftNodeDisplayOrder = 0, + long NodeQuality = 0, + StringOffset IconOffset = default(StringOffset), + uint LocalizeKey = 0, + long Property = 0) { + builder.StartTable(7); + GachaCraftNodeExcel.AddProperty(builder, Property); + GachaCraftNodeExcel.AddNodeQuality(builder, NodeQuality); + GachaCraftNodeExcel.AddTier(builder, Tier); + GachaCraftNodeExcel.AddID(builder, ID); + GachaCraftNodeExcel.AddLocalizeKey(builder, LocalizeKey); + GachaCraftNodeExcel.AddIcon(builder, IconOffset); + GachaCraftNodeExcel.AddQuickCraftNodeDisplayOrder(builder, QuickCraftNodeDisplayOrder); + return GachaCraftNodeExcel.EndGachaCraftNodeExcel(builder); + } + + public static void StartGachaCraftNodeExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddTier(FlatBufferBuilder builder, long tier) { builder.AddLong(1, tier, 0); } + public static void AddQuickCraftNodeDisplayOrder(FlatBufferBuilder builder, int quickCraftNodeDisplayOrder) { builder.AddInt(2, quickCraftNodeDisplayOrder, 0); } + public static void AddNodeQuality(FlatBufferBuilder builder, long nodeQuality) { builder.AddLong(3, nodeQuality, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(4, iconOffset.Value, 0); } + public static void AddLocalizeKey(FlatBufferBuilder builder, uint localizeKey) { builder.AddUint(5, localizeKey, 0); } + public static void AddProperty(FlatBufferBuilder builder, long property) { builder.AddLong(6, property, 0); } + public static Offset EndGachaCraftNodeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftNodeExcelVerify +{ + 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 /*Tier*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*QuickCraftNodeDisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*NodeQuality*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*Icon*/, false) + && verifier.VerifyField(tablePos, 14 /*LocalizeKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Property*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs new file mode 100644 index 0000000..3a86298 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftNodeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaCraftNodeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftNodeExcelTable GetRootAsGachaCraftNodeExcelTable(ByteBuffer _bb) { return GetRootAsGachaCraftNodeExcelTable(_bb, new GachaCraftNodeExcelTable()); } + public static GachaCraftNodeExcelTable GetRootAsGachaCraftNodeExcelTable(ByteBuffer _bb, GachaCraftNodeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftNodeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaCraftNodeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaCraftNodeExcel?)(new SCHALE.Common.FlatData.GachaCraftNodeExcel()).__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 CreateGachaCraftNodeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaCraftNodeExcelTable.AddDataList(builder, DataListOffset); + return GachaCraftNodeExcelTable.EndGachaCraftNodeExcelTable(builder); + } + + public static void StartGachaCraftNodeExcelTable(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 EndGachaCraftNodeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftNodeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaCraftNodeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs new file mode 100644 index 0000000..7c59484 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcel.cs @@ -0,0 +1,60 @@ +// +// 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 GachaCraftNodeGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftNodeGroupExcel GetRootAsGachaCraftNodeGroupExcel(ByteBuffer _bb) { return GetRootAsGachaCraftNodeGroupExcel(_bb, new GachaCraftNodeGroupExcel()); } + public static GachaCraftNodeGroupExcel GetRootAsGachaCraftNodeGroupExcel(ByteBuffer _bb, GachaCraftNodeGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftNodeGroupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long NodeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GachaGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ProbWeight { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateGachaCraftNodeGroupExcel(FlatBufferBuilder builder, + long NodeId = 0, + long GachaGroupId = 0, + long ProbWeight = 0) { + builder.StartTable(3); + GachaCraftNodeGroupExcel.AddProbWeight(builder, ProbWeight); + GachaCraftNodeGroupExcel.AddGachaGroupId(builder, GachaGroupId); + GachaCraftNodeGroupExcel.AddNodeId(builder, NodeId); + return GachaCraftNodeGroupExcel.EndGachaCraftNodeGroupExcel(builder); + } + + public static void StartGachaCraftNodeGroupExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddNodeId(FlatBufferBuilder builder, long nodeId) { builder.AddLong(0, nodeId, 0); } + public static void AddGachaGroupId(FlatBufferBuilder builder, long gachaGroupId) { builder.AddLong(1, gachaGroupId, 0); } + public static void AddProbWeight(FlatBufferBuilder builder, long probWeight) { builder.AddLong(2, probWeight, 0); } + public static Offset EndGachaCraftNodeGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftNodeGroupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*NodeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*GachaGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ProbWeight*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs new file mode 100644 index 0000000..729b0de --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftNodeGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaCraftNodeGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftNodeGroupExcelTable GetRootAsGachaCraftNodeGroupExcelTable(ByteBuffer _bb) { return GetRootAsGachaCraftNodeGroupExcelTable(_bb, new GachaCraftNodeGroupExcelTable()); } + public static GachaCraftNodeGroupExcelTable GetRootAsGachaCraftNodeGroupExcelTable(ByteBuffer _bb, GachaCraftNodeGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftNodeGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaCraftNodeGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaCraftNodeGroupExcel?)(new SCHALE.Common.FlatData.GachaCraftNodeGroupExcel()).__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 CreateGachaCraftNodeGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaCraftNodeGroupExcelTable.AddDataList(builder, DataListOffset); + return GachaCraftNodeGroupExcelTable.EndGachaCraftNodeGroupExcelTable(builder); + } + + public static void StartGachaCraftNodeGroupExcelTable(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 EndGachaCraftNodeGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftNodeGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaCraftNodeGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs b/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs new file mode 100644 index 0000000..ace0c5e --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftOpenTagExcel.cs @@ -0,0 +1,67 @@ +// +// 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 GachaCraftOpenTagExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftOpenTagExcel GetRootAsGachaCraftOpenTagExcel(ByteBuffer _bb) { return GetRootAsGachaCraftOpenTagExcel(_bb, new GachaCraftOpenTagExcel()); } + public static GachaCraftOpenTagExcel GetRootAsGachaCraftOpenTagExcel(ByteBuffer _bb, GachaCraftOpenTagExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftOpenTagExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.CraftNodeTier NodeTier { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CraftNodeTier)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CraftNodeTier.Base; } } + public SCHALE.Common.FlatData.Tag Tag_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int Tag_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTag_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetTag_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTag_Array() { int o = __p.__offset(6); 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 static Offset CreateGachaCraftOpenTagExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.CraftNodeTier NodeTier = SCHALE.Common.FlatData.CraftNodeTier.Base, + VectorOffset Tag_Offset = default(VectorOffset)) { + builder.StartTable(2); + GachaCraftOpenTagExcel.AddTag_(builder, Tag_Offset); + GachaCraftOpenTagExcel.AddNodeTier(builder, NodeTier); + return GachaCraftOpenTagExcel.EndGachaCraftOpenTagExcel(builder); + } + + public static void StartGachaCraftOpenTagExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddNodeTier(FlatBufferBuilder builder, SCHALE.Common.FlatData.CraftNodeTier nodeTier) { builder.AddInt(0, (int)nodeTier, 0); } + public static void AddTag_(FlatBufferBuilder builder, VectorOffset tag_Offset) { builder.AddOffset(1, tag_Offset.Value, 0); } + public static VectorOffset CreateTag_Vector(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 CreateTag_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTag_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTag_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTag_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndGachaCraftOpenTagExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftOpenTagExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*NodeTier*/, 4 /*SCHALE.Common.FlatData.CraftNodeTier*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Tag_*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs b/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs new file mode 100644 index 0000000..b1c01ef --- /dev/null +++ b/SCHALE.Common/FlatData/GachaCraftOpenTagExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaCraftOpenTagExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaCraftOpenTagExcelTable GetRootAsGachaCraftOpenTagExcelTable(ByteBuffer _bb) { return GetRootAsGachaCraftOpenTagExcelTable(_bb, new GachaCraftOpenTagExcelTable()); } + public static GachaCraftOpenTagExcelTable GetRootAsGachaCraftOpenTagExcelTable(ByteBuffer _bb, GachaCraftOpenTagExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaCraftOpenTagExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaCraftOpenTagExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaCraftOpenTagExcel?)(new SCHALE.Common.FlatData.GachaCraftOpenTagExcel()).__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 CreateGachaCraftOpenTagExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaCraftOpenTagExcelTable.AddDataList(builder, DataListOffset); + return GachaCraftOpenTagExcelTable.EndGachaCraftOpenTagExcelTable(builder); + } + + public static void StartGachaCraftOpenTagExcelTable(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 EndGachaCraftOpenTagExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaCraftOpenTagExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaCraftOpenTagExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaDisplayTag.cs b/SCHALE.Common/FlatData/GachaDisplayTag.cs new file mode 100644 index 0000000..e89566d --- /dev/null +++ b/SCHALE.Common/FlatData/GachaDisplayTag.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GachaDisplayTag : int +{ + None = 0, + Limited = 1, + TwoStar = 2, + ThreeStar = 3, + Free = 4, + New = 5, + Fes = 6, + SelectRecruit = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/GachaElementExcel.cs b/SCHALE.Common/FlatData/GachaElementExcel.cs new file mode 100644 index 0000000..a72debf --- /dev/null +++ b/SCHALE.Common/FlatData/GachaElementExcel.cs @@ -0,0 +1,90 @@ +// +// 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 GachaElementExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaElementExcel GetRootAsGachaElementExcel(ByteBuffer _bb) { return GetRootAsGachaElementExcel(_bb, new GachaElementExcel()); } + public static GachaElementExcel GetRootAsGachaElementExcel(ByteBuffer _bb, GachaElementExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaElementExcel __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 GachaGroupID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public int ParcelAmountMin { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ParcelAmountMax { 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 int State { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateGachaElementExcel(FlatBufferBuilder builder, + long ID = 0, + long GachaGroupID = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelID = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + int ParcelAmountMin = 0, + int ParcelAmountMax = 0, + int Prob = 0, + int State = 0) { + builder.StartTable(9); + GachaElementExcel.AddParcelID(builder, ParcelID); + GachaElementExcel.AddGachaGroupID(builder, GachaGroupID); + GachaElementExcel.AddID(builder, ID); + GachaElementExcel.AddState(builder, State); + GachaElementExcel.AddProb(builder, Prob); + GachaElementExcel.AddParcelAmountMax(builder, ParcelAmountMax); + GachaElementExcel.AddParcelAmountMin(builder, ParcelAmountMin); + GachaElementExcel.AddRarity(builder, Rarity); + GachaElementExcel.AddParcelType(builder, ParcelType); + return GachaElementExcel.EndGachaElementExcel(builder); + } + + public static void StartGachaElementExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddGachaGroupID(FlatBufferBuilder builder, long gachaGroupID) { builder.AddLong(1, gachaGroupID, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(2, (int)parcelType, 0); } + public static void AddParcelID(FlatBufferBuilder builder, long parcelID) { builder.AddLong(3, parcelID, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(4, (int)rarity, 0); } + public static void AddParcelAmountMin(FlatBufferBuilder builder, int parcelAmountMin) { builder.AddInt(5, parcelAmountMin, 0); } + public static void AddParcelAmountMax(FlatBufferBuilder builder, int parcelAmountMax) { builder.AddInt(6, parcelAmountMax, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(7, prob, 0); } + public static void AddState(FlatBufferBuilder builder, int state) { builder.AddInt(8, state, 0); } + public static Offset EndGachaElementExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaElementExcelVerify +{ + 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 /*GachaGroupID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ParcelID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ParcelAmountMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*ParcelAmountMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*State*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaElementExcelTable.cs b/SCHALE.Common/FlatData/GachaElementExcelTable.cs new file mode 100644 index 0000000..b3218d1 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaElementExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaElementExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaElementExcelTable GetRootAsGachaElementExcelTable(ByteBuffer _bb) { return GetRootAsGachaElementExcelTable(_bb, new GachaElementExcelTable()); } + public static GachaElementExcelTable GetRootAsGachaElementExcelTable(ByteBuffer _bb, GachaElementExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaElementExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaElementExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaElementExcel?)(new SCHALE.Common.FlatData.GachaElementExcel()).__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 CreateGachaElementExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaElementExcelTable.AddDataList(builder, DataListOffset); + return GachaElementExcelTable.EndGachaElementExcelTable(builder); + } + + public static void StartGachaElementExcelTable(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 EndGachaElementExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaElementExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaElementExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs new file mode 100644 index 0000000..8de54db --- /dev/null +++ b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs @@ -0,0 +1,85 @@ +// +// 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 GachaElementRecursiveExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaElementRecursiveExcel GetRootAsGachaElementRecursiveExcel(ByteBuffer _bb) { return GetRootAsGachaElementRecursiveExcel(_bb, new GachaElementRecursiveExcel()); } + public static GachaElementRecursiveExcel GetRootAsGachaElementRecursiveExcel(ByteBuffer _bb, GachaElementRecursiveExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaElementRecursiveExcel __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 GachaGroupID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ParcelAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ParcelAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Prob { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int State { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateGachaElementRecursiveExcel(FlatBufferBuilder builder, + long ID = 0, + long GachaGroupID = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelID = 0, + int ParcelAmountMin = 0, + int ParcelAmountMax = 0, + int Prob = 0, + int State = 0) { + builder.StartTable(8); + GachaElementRecursiveExcel.AddParcelID(builder, ParcelID); + GachaElementRecursiveExcel.AddGachaGroupID(builder, GachaGroupID); + GachaElementRecursiveExcel.AddID(builder, ID); + GachaElementRecursiveExcel.AddState(builder, State); + GachaElementRecursiveExcel.AddProb(builder, Prob); + GachaElementRecursiveExcel.AddParcelAmountMax(builder, ParcelAmountMax); + GachaElementRecursiveExcel.AddParcelAmountMin(builder, ParcelAmountMin); + GachaElementRecursiveExcel.AddParcelType(builder, ParcelType); + return GachaElementRecursiveExcel.EndGachaElementRecursiveExcel(builder); + } + + public static void StartGachaElementRecursiveExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddGachaGroupID(FlatBufferBuilder builder, long gachaGroupID) { builder.AddLong(1, gachaGroupID, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(2, (int)parcelType, 0); } + public static void AddParcelID(FlatBufferBuilder builder, long parcelID) { builder.AddLong(3, parcelID, 0); } + public static void AddParcelAmountMin(FlatBufferBuilder builder, int parcelAmountMin) { builder.AddInt(4, parcelAmountMin, 0); } + public static void AddParcelAmountMax(FlatBufferBuilder builder, int parcelAmountMax) { builder.AddInt(5, parcelAmountMax, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(6, prob, 0); } + public static void AddState(FlatBufferBuilder builder, int state) { builder.AddInt(7, state, 0); } + public static Offset EndGachaElementRecursiveExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaElementRecursiveExcelVerify +{ + 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 /*GachaGroupID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ParcelID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ParcelAmountMin*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ParcelAmountMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*State*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs b/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs new file mode 100644 index 0000000..5039e53 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaElementRecursiveExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaElementRecursiveExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaElementRecursiveExcelTable GetRootAsGachaElementRecursiveExcelTable(ByteBuffer _bb) { return GetRootAsGachaElementRecursiveExcelTable(_bb, new GachaElementRecursiveExcelTable()); } + public static GachaElementRecursiveExcelTable GetRootAsGachaElementRecursiveExcelTable(ByteBuffer _bb, GachaElementRecursiveExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaElementRecursiveExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaElementRecursiveExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaElementRecursiveExcel?)(new SCHALE.Common.FlatData.GachaElementRecursiveExcel()).__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 CreateGachaElementRecursiveExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaElementRecursiveExcelTable.AddDataList(builder, DataListOffset); + return GachaElementRecursiveExcelTable.EndGachaElementRecursiveExcelTable(builder); + } + + public static void StartGachaElementRecursiveExcelTable(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 EndGachaElementRecursiveExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaElementRecursiveExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaElementRecursiveExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaGroupExcel.cs b/SCHALE.Common/FlatData/GachaGroupExcel.cs new file mode 100644 index 0000000..8c6718e --- /dev/null +++ b/SCHALE.Common/FlatData/GachaGroupExcel.cs @@ -0,0 +1,71 @@ +// +// 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 GachaGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaGroupExcel GetRootAsGachaGroupExcel(ByteBuffer _bb) { return GetRootAsGachaGroupExcel(_bb, new GachaGroupExcel()); } + public static GachaGroupExcel GetRootAsGachaGroupExcel(ByteBuffer _bb, GachaGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaGroupExcel __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 string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } + public bool IsRecursive { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.GachaGroupType GroupType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.GachaGroupType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaGroupType.None; } } + + public static Offset CreateGachaGroupExcel(FlatBufferBuilder builder, + long ID = 0, + StringOffset NameKrOffset = default(StringOffset), + bool IsRecursive = false, + SCHALE.Common.FlatData.GachaGroupType GroupType = SCHALE.Common.FlatData.GachaGroupType.None) { + builder.StartTable(4); + GachaGroupExcel.AddID(builder, ID); + GachaGroupExcel.AddGroupType(builder, GroupType); + GachaGroupExcel.AddNameKr(builder, NameKrOffset); + GachaGroupExcel.AddIsRecursive(builder, IsRecursive); + return GachaGroupExcel.EndGachaGroupExcel(builder); + } + + public static void StartGachaGroupExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); } + public static void AddIsRecursive(FlatBufferBuilder builder, bool isRecursive) { builder.AddBool(2, isRecursive, false); } + public static void AddGroupType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GachaGroupType groupType) { builder.AddInt(3, (int)groupType, 0); } + public static Offset EndGachaGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaGroupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*NameKr*/, false) + && verifier.VerifyField(tablePos, 8 /*IsRecursive*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*GroupType*/, 4 /*SCHALE.Common.FlatData.GachaGroupType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaGroupExcelTable.cs b/SCHALE.Common/FlatData/GachaGroupExcelTable.cs new file mode 100644 index 0000000..8d8bd8f --- /dev/null +++ b/SCHALE.Common/FlatData/GachaGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GachaGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GachaGroupExcelTable GetRootAsGachaGroupExcelTable(ByteBuffer _bb) { return GetRootAsGachaGroupExcelTable(_bb, new GachaGroupExcelTable()); } + public static GachaGroupExcelTable GetRootAsGachaGroupExcelTable(ByteBuffer _bb, GachaGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GachaGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GachaGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GachaGroupExcel?)(new SCHALE.Common.FlatData.GachaGroupExcel()).__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 CreateGachaGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GachaGroupExcelTable.AddDataList(builder, DataListOffset); + return GachaGroupExcelTable.EndGachaGroupExcelTable(builder); + } + + public static void StartGachaGroupExcelTable(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 EndGachaGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GachaGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GachaGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GachaGroupType.cs b/SCHALE.Common/FlatData/GachaGroupType.cs new file mode 100644 index 0000000..c88beef --- /dev/null +++ b/SCHALE.Common/FlatData/GachaGroupType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GachaGroupType : int +{ + None = 0, + Reward_General = 1, + System_Craft = 2, + Reward_Pack = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/GachaRewardType.cs b/SCHALE.Common/FlatData/GachaRewardType.cs new file mode 100644 index 0000000..2896198 --- /dev/null +++ b/SCHALE.Common/FlatData/GachaRewardType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GachaRewardType : int +{ + None = 0, + Eligma = 1, + Eleph = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/GachaTicketType.cs b/SCHALE.Common/FlatData/GachaTicketType.cs new file mode 100644 index 0000000..6c2dabf --- /dev/null +++ b/SCHALE.Common/FlatData/GachaTicketType.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GachaTicketType : int +{ + None = 0, + PackageThreeStar = 1, + ThreeStar = 2, + TwoStar = 3, + Normal = 4, + NormalOnce = 5, + SelectRecruit = 6, + PackagePropertyThreeStar = 7, + Temp_1 = 8, + PackageAcademyThreeStar = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/Geas.cs b/SCHALE.Common/FlatData/Geas.cs new file mode 100644 index 0000000..91245b4 --- /dev/null +++ b/SCHALE.Common/FlatData/Geas.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Geas : int +{ + ForwardProjectile = 0, + DiagonalProjectile = 1, + SideProjectile = 2, + Pierce = 3, + Reflect = 4, + Burn = 5, + Chill = 6, + AttackPower = 7, + AttackSpeed = 8, + Critical = 9, + Heal = 10, +}; + + +} diff --git a/SCHALE.Common/FlatData/GetStickerConditionType.cs b/SCHALE.Common/FlatData/GetStickerConditionType.cs new file mode 100644 index 0000000..b0e20cd --- /dev/null +++ b/SCHALE.Common/FlatData/GetStickerConditionType.cs @@ -0,0 +1,89 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GetStickerConditionType : int +{ + None = 0, + Reset_StikcerGetCondition_AccountLevel = 1, + Reset_StickerGetCondition_ScenarioModeId = 2, + Reset_StickerGetCondition_EnemyKillCount = 3, + Reset_StickerGetCondition_GetItemCount = 4, + Reset_StickerGetCondition_BuyItemCount = 5, + Reset_StickerGetCondition_ScheduleRank = 6, + Reset_StickerGetCondition_Change_LobbyCharacter = 7, + Reset_StickerGetCondition_Cafe_Character_Visit_Count = 8, + Reset_StickerGetCondition_Cafe_Chracter_Invite_Count = 9, + Reset_StickerGetCondition_GetChracterCount = 10, + Reset_StickerGetCondition_Cafe_Furniture_Interaction = 11, + Reset_StickerGetCondition_GetFurniture = 12, + Reset_StickerGetCondition_SetFurniture = 13, + Reset_StickerGetCondition_GivePresentChracterCount = 14, + Reset_StickerGetCondition_GivePresentCount = 15, + Reset_StickerGetCondition_MomotalkStudentCount = 16, + Reset_StickerGetCondition_CombatwithCharacterCount = 17, + Reset_StickerGetCondition_GachaCharacterCount = 18, + Reset_StickerGetCondition_TouchLobbyCharacter = 19, + Reset_StickerGetCondition_UseCircleEmoticonCount = 20, + Reset_StickerGetCondition_CraftCount = 21, + Reset_StickerGetCondition_NormalStageClear = 22, + Reset_StickerGetCondition_NormalStageClear3Star = 23, + Reset_StickerGetCondition_HardStageClear = 24, + Reset_StickerGetCondition_HardStageClear3Star = 25, + Achieve_StikcerGetCondition_AccountLevel = 26, + Achieve_StickerGetCondition_ClearStageId = 27, + Achieve_StickerGetCondition_ScenarioModeId = 28, + Achieve_StickerGetCondition_EnemyKillCount = 29, + Achieve_StickerGetCondition_GetItemCount = 30, + Achieve_StickerGetCondition_BuyItemCount = 31, + Achieve_StickerGetCondition_ScheduleRank = 32, + Achieve_StickerGetCondition_Change_LobbyCharacter = 33, + Achieve_StickerGetCondition_Cafe_Character_Visit_Count = 34, + Achieve_StickerGetCondition_Cafe_Chracter_Invite_Count = 35, + Achieve_StickerGetCondition_GetChracterCount = 36, + Achieve_StickerGetCondition_Cafe_Furniture_Interaction = 37, + Achieve_StickerGetCondition_GetFurniture = 38, + Achieve_StickerGetCondition_SetFurniture = 39, + Achieve_StickerGetCondition_GivePresentChracterCount = 40, + Achieve_StickerGetCondition_GivePresentCount = 41, + Achieve_StickerGetCondition_MomotalkStudentCount = 42, + Achieve_StickerGetCondition_CombatwithCharacterCount = 43, + Achieve_StickerGetCondition_GachaCharacterCount = 44, + Achieve_StickerGetCondition_TouchLobbyCharacter = 45, + Achieve_StickerGetCondition_UseCircleEmoticonCount = 46, + Achieve_StickerGetCondition_CraftCount = 47, + Achieve_StickerGetCondition_NormalStageClear = 48, + Achieve_StickerGetCondition_NormalStageClear3Star = 49, + Achieve_StickerGetCondition_HardStageClear = 50, + Achieve_StickerGetCondition_HardStageClear3Star = 51, + Reset_StickerGetCondition_EnemyKillCountbyTag = 52, + Reset_StickerGetCondition_GetItemCountbyTag = 53, + Reset_StickerGetCondition_ClearCampaignOrEventStageCount = 54, + Reset_StickerGetCondition_CompleteCampaignStageMinimumTurn = 55, + Reset_StickerGetCondition_ClearCampaignStageDifficultyNormal = 56, + Reset_StickerGetCondition_ClearCampaignStageDifficultyHard = 57, + Reset_StickerGetCondition_EventClearCampaignStageCount = 58, + Reset_StickerGetCondition_EventClearSpecificCampaignStageCount = 59, + Reset_StickerGetCondition_EventCompleteCampaignStageMinimumTurn = 60, + Reset_StickerGetCondition_EventClearCampaignStageDifficultyNormal = 61, + Reset_StickerGetCondition_EventClearCampaignStageDifficultyHard = 62, + Reset_StickerGetCondition_ClearSpecificCampaignStageCount = 63, + Reset_StickerGetCondition_ClearCampaignStageTimeLimitFromSecond = 64, + Reset_StickerGetCondition_ClearEventStageTimeLimitFromSecond = 65, + Reset_StickerGetCondition_ClearStageRhythm = 66, + Reset_StickerGetCondition_ClearSpecificStageShooting = 67, + Reset_StickerGetCondition_CompleteStage = 68, + Achieve_StickerGetCondition_ClearCampaignStageCount = 69, + Achieve_StickerGetCondition_ClearChaserDungeonCount = 70, + Reset_StickerGetCondition_ClearSpecificChaserDungeonCount = 71, + Achieve_StickerGetCondition_ClearSchoolDungeonCount = 72, + Reset_StickerGetCondition_ClearSpecificSchoolDungeonCount = 73, + Reset_StickerGetCondition_ClearSpecificWeekDungeonCount = 74, + Achieve_StickerGetCondition_ClearFindGiftAndBloodDungeonCount = 75, +}; + + +} diff --git a/SCHALE.Common/FlatData/GoodsExcel.cs b/SCHALE.Common/FlatData/GoodsExcel.cs new file mode 100644 index 0000000..715bfa3 --- /dev/null +++ b/SCHALE.Common/FlatData/GoodsExcel.cs @@ -0,0 +1,249 @@ +// +// 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 GoodsExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GoodsExcel GetRootAsGoodsExcel(ByteBuffer _bb) { return GetRootAsGoodsExcel(_bb, new GoodsExcel()); } + public static GoodsExcel GetRootAsGoodsExcel(ByteBuffer _bb, GoodsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GoodsExcel __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 int Type { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public string IconPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.ParcelType ConsumeParcelType(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ConsumeParcelTypeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeParcelTypeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetConsumeParcelTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetConsumeParcelTypeArray() { int o = __p.__offset(12); 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 ConsumeParcelId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConsumeParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetConsumeParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetConsumeParcelIdArray() { return __p.__vector_as_array(14); } + public long ConsumeParcelAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConsumeParcelAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeParcelAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetConsumeParcelAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetConsumeParcelAmountArray() { return __p.__vector_as_array(16); } + public SCHALE.Common.FlatData.ConsumeCondition ConsumeCondition_(int j) { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ConsumeCondition)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ConsumeCondition)0; } + public int ConsumeCondition_Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeCondition_Bytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetConsumeCondition_Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.ConsumeCondition[] GetConsumeCondition_Array() { int o = __p.__offset(18); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConsumeCondition[] a = new SCHALE.Common.FlatData.ConsumeCondition[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConsumeCondition)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None; } } + public long ConsumeGachaTicketTypeAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ProductIdAOS { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ProductIdiOS { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ConsumeExtraStep(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConsumeExtraStepLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeExtraStepBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetConsumeExtraStepBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetConsumeExtraStepArray() { return __p.__vector_as_array(28); } + public long ConsumeExtraAmount(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConsumeExtraAmountLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConsumeExtraAmountBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetConsumeExtraAmountBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetConsumeExtraAmountArray() { return __p.__vector_as_array(30); } + public int State { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ParcelType_Length { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(34); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { int o = __p.__offset(34); 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 ParcelId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(36); } + public long ParcelAmount(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelAmountLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelAmountBytes() { return __p.__vector_as_span(38, 8); } +#else + public ArraySegment? GetParcelAmountBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public long[] GetParcelAmountArray() { return __p.__vector_as_array(38); } + + public static Offset CreateGoodsExcel(FlatBufferBuilder builder, + long Id = 0, + int Type = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + StringOffset IconPathOffset = default(StringOffset), + VectorOffset ConsumeParcelTypeOffset = default(VectorOffset), + VectorOffset ConsumeParcelIdOffset = default(VectorOffset), + VectorOffset ConsumeParcelAmountOffset = default(VectorOffset), + VectorOffset ConsumeCondition_Offset = default(VectorOffset), + SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None, + long ConsumeGachaTicketTypeAmount = 0, + long ProductIdAOS = 0, + long ProductIdiOS = 0, + VectorOffset ConsumeExtraStepOffset = default(VectorOffset), + VectorOffset ConsumeExtraAmountOffset = default(VectorOffset), + int State = 0, + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(18); + GoodsExcel.AddProductIdiOS(builder, ProductIdiOS); + GoodsExcel.AddProductIdAOS(builder, ProductIdAOS); + GoodsExcel.AddConsumeGachaTicketTypeAmount(builder, ConsumeGachaTicketTypeAmount); + GoodsExcel.AddId(builder, Id); + GoodsExcel.AddParcelAmount(builder, ParcelAmountOffset); + GoodsExcel.AddParcelId(builder, ParcelIdOffset); + GoodsExcel.AddParcelType_(builder, ParcelType_Offset); + GoodsExcel.AddState(builder, State); + GoodsExcel.AddConsumeExtraAmount(builder, ConsumeExtraAmountOffset); + GoodsExcel.AddConsumeExtraStep(builder, ConsumeExtraStepOffset); + GoodsExcel.AddConsumeGachaTicketType(builder, ConsumeGachaTicketType); + GoodsExcel.AddConsumeCondition_(builder, ConsumeCondition_Offset); + GoodsExcel.AddConsumeParcelAmount(builder, ConsumeParcelAmountOffset); + GoodsExcel.AddConsumeParcelId(builder, ConsumeParcelIdOffset); + GoodsExcel.AddConsumeParcelType(builder, ConsumeParcelTypeOffset); + GoodsExcel.AddIconPath(builder, IconPathOffset); + GoodsExcel.AddRarity(builder, Rarity); + GoodsExcel.AddType(builder, Type); + return GoodsExcel.EndGoodsExcel(builder); + } + + public static void StartGoodsExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddType(FlatBufferBuilder builder, int type) { builder.AddInt(1, type, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(3, iconPathOffset.Value, 0); } + public static void AddConsumeParcelType(FlatBufferBuilder builder, VectorOffset consumeParcelTypeOffset) { builder.AddOffset(4, consumeParcelTypeOffset.Value, 0); } + public static VectorOffset CreateConsumeParcelTypeVector(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 CreateConsumeParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConsumeParcelId(FlatBufferBuilder builder, VectorOffset consumeParcelIdOffset) { builder.AddOffset(5, consumeParcelIdOffset.Value, 0); } + public static VectorOffset CreateConsumeParcelIdVector(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 CreateConsumeParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConsumeParcelAmount(FlatBufferBuilder builder, VectorOffset consumeParcelAmountOffset) { builder.AddOffset(6, consumeParcelAmountOffset.Value, 0); } + public static VectorOffset CreateConsumeParcelAmountVector(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 CreateConsumeParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConsumeCondition_(FlatBufferBuilder builder, VectorOffset consumeCondition_Offset) { builder.AddOffset(7, consumeCondition_Offset.Value, 0); } + public static VectorOffset CreateConsumeCondition_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConsumeCondition[] 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 CreateConsumeCondition_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ConsumeCondition[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeCondition_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeCondition_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeCondition_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddConsumeGachaTicketType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GachaTicketType consumeGachaTicketType) { builder.AddInt(8, (int)consumeGachaTicketType, 0); } + public static void AddConsumeGachaTicketTypeAmount(FlatBufferBuilder builder, long consumeGachaTicketTypeAmount) { builder.AddLong(9, consumeGachaTicketTypeAmount, 0); } + public static void AddProductIdAOS(FlatBufferBuilder builder, long productIdAOS) { builder.AddLong(10, productIdAOS, 0); } + public static void AddProductIdiOS(FlatBufferBuilder builder, long productIdiOS) { builder.AddLong(11, productIdiOS, 0); } + public static void AddConsumeExtraStep(FlatBufferBuilder builder, VectorOffset consumeExtraStepOffset) { builder.AddOffset(12, consumeExtraStepOffset.Value, 0); } + public static VectorOffset CreateConsumeExtraStepVector(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 CreateConsumeExtraStepVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeExtraStepVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeExtraStepVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeExtraStepVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConsumeExtraAmount(FlatBufferBuilder builder, VectorOffset consumeExtraAmountOffset) { builder.AddOffset(13, consumeExtraAmountOffset.Value, 0); } + public static VectorOffset CreateConsumeExtraAmountVector(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 CreateConsumeExtraAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeExtraAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConsumeExtraAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConsumeExtraAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddState(FlatBufferBuilder builder, int state) { builder.AddInt(14, state, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(15, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(16, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddParcelAmount(FlatBufferBuilder builder, VectorOffset parcelAmountOffset) { builder.AddOffset(17, parcelAmountOffset.Value, 0); } + public static VectorOffset CreateParcelAmountVector(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 CreateParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndGoodsExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GoodsExcelVerify +{ + 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 /*Type*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*IconPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ConsumeParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ConsumeParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ConsumeParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ConsumeCondition_*/, 4 /*SCHALE.Common.FlatData.ConsumeCondition*/, false) + && verifier.VerifyField(tablePos, 20 /*ConsumeGachaTicketType*/, 4 /*SCHALE.Common.FlatData.GachaTicketType*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*ConsumeGachaTicketTypeAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*ProductIdAOS*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*ProductIdiOS*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*ConsumeExtraStep*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*ConsumeExtraAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 32 /*State*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*ParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GoodsExcelTable.cs b/SCHALE.Common/FlatData/GoodsExcelTable.cs new file mode 100644 index 0000000..44bb5d4 --- /dev/null +++ b/SCHALE.Common/FlatData/GoodsExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GoodsExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GoodsExcelTable GetRootAsGoodsExcelTable(ByteBuffer _bb) { return GetRootAsGoodsExcelTable(_bb, new GoodsExcelTable()); } + public static GoodsExcelTable GetRootAsGoodsExcelTable(ByteBuffer _bb, GoodsExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GoodsExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GoodsExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GoodsExcel?)(new SCHALE.Common.FlatData.GoodsExcel()).__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 CreateGoodsExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GoodsExcelTable.AddDataList(builder, DataListOffset); + return GoodsExcelTable.EndGoodsExcelTable(builder); + } + + public static void StartGoodsExcelTable(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 EndGoodsExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GoodsExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GoodsExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundExcel.cs b/SCHALE.Common/FlatData/GroundExcel.cs new file mode 100644 index 0000000..6353cef --- /dev/null +++ b/SCHALE.Common/FlatData/GroundExcel.cs @@ -0,0 +1,375 @@ +// +// 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 GroundExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundExcel GetRootAsGroundExcel(ByteBuffer _bb) { return GetRootAsGroundExcel(_bb, new GroundExcel()); } + public static GroundExcel GetRootAsGroundExcel(ByteBuffer _bb, GroundExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundExcel __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 string StageFileName(int j) { int o = __p.__offset(6); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int StageFileNameLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public string GroundSceneName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroundSceneNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetGroundSceneNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetGroundSceneNameArray() { return __p.__vector_as_array(8); } + public long FormationGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public SCHALE.Common.FlatData.BulletType EnemyBulletType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } + public SCHALE.Common.FlatData.ArmorType EnemyArmorType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ArmorType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArmorType.LightArmor; } } + public long LevelNPC { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LevelMinion { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LevelElite { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LevelChampion { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LevelBoss { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ObstacleLevel { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GradeNPC { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GradeMinion { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GradeElite { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GradeChampion { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GradeBoss { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerSightPointAdd { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerSightPointRate { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerAttackRangeAdd { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerAttackRangeRate { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemySightPointAdd { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemySightPointRate { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemyAttackRangeAdd { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemyAttackRangeRate { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerSkillRangeAdd { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerSkillRangeRate { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemySkillRangeAdd { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemySkillRangeRate { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayerMinimumPositionGapRate { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnemyMinimumPositionGapRate { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool PlayerSightRangeMax { get { int o = __p.__offset(68); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool EnemySightRangeMax { get { int o = __p.__offset(70); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long TSSAirUnitHeight { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsPhaseBGM { get { int o = __p.__offset(74); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BGMId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool WarningUI { get { int o = __p.__offset(78); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool TSSHatchOpen { get { int o = __p.__offset(80); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed { get { int o = __p.__offset(82); return o != 0 ? (SCHALE.Common.FlatData.TacticSpeed)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSpeed.None; } } + public SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse { get { int o = __p.__offset(84); return o != 0 ? (SCHALE.Common.FlatData.TacticSkillUse)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSkillUse.None; } } + public SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn { get { int o = __p.__offset(86); return o != 0 ? (SCHALE.Common.FlatData.ShowSkillCutIn)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShowSkillCutIn.None; } } + public bool ImmuneHitBeforeTimeOutEnd { get { int o = __p.__offset(88); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UIBattleHideFromScratch { get { int o = __p.__offset(90); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string BattleReadyTimelinePath { get { int o = __p.__offset(92); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePathBytes() { return __p.__vector_as_span(92, 1); } +#else + public ArraySegment? GetBattleReadyTimelinePathBytes() { return __p.__vector_as_arraysegment(92); } +#endif + public byte[] GetBattleReadyTimelinePathArray() { return __p.__vector_as_array(92); } + public string BeforeVictoryTimelinePath { get { int o = __p.__offset(94); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforeVictoryTimelinePathBytes() { return __p.__vector_as_span(94, 1); } +#else + public ArraySegment? GetBeforeVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(94); } +#endif + public byte[] GetBeforeVictoryTimelinePathArray() { return __p.__vector_as_array(94); } + public bool HideNPCWhenBattleEnd { get { int o = __p.__offset(96); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float UIHpScale { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float UIEmojiScale { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float UISkillMainLogScale { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string AllyPassiveSkillId(int j) { int o = __p.__offset(104); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int AllyPassiveSkillIdLength { get { int o = __p.__offset(104); return o != 0 ? __p.__vector_len(o) : 0; } } + public int AllyPassiveSkillLevel(int j) { int o = __p.__offset(106); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int AllyPassiveSkillLevelLength { get { int o = __p.__offset(106); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_span(106, 4); } +#else + public ArraySegment? GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(106); } +#endif + public int[] GetAllyPassiveSkillLevelArray() { return __p.__vector_as_array(106); } + public string EnemyPassiveSkillId(int j) { int o = __p.__offset(108); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int EnemyPassiveSkillIdLength { get { int o = __p.__offset(108); return o != 0 ? __p.__vector_len(o) : 0; } } + public int EnemyPassiveSkillLevel(int j) { int o = __p.__offset(110); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int EnemyPassiveSkillLevelLength { get { int o = __p.__offset(110); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_span(110, 4); } +#else + public ArraySegment? GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(110); } +#endif + public int[] GetEnemyPassiveSkillLevelArray() { return __p.__vector_as_array(110); } + + public static Offset CreateGroundExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset StageFileNameOffset = default(VectorOffset), + StringOffset GroundSceneNameOffset = default(StringOffset), + long FormationGroupId = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + SCHALE.Common.FlatData.BulletType EnemyBulletType = SCHALE.Common.FlatData.BulletType.Normal, + SCHALE.Common.FlatData.ArmorType EnemyArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor, + long LevelNPC = 0, + long LevelMinion = 0, + long LevelElite = 0, + long LevelChampion = 0, + long LevelBoss = 0, + long ObstacleLevel = 0, + long GradeNPC = 0, + long GradeMinion = 0, + long GradeElite = 0, + long GradeChampion = 0, + long GradeBoss = 0, + long PlayerSightPointAdd = 0, + long PlayerSightPointRate = 0, + long PlayerAttackRangeAdd = 0, + long PlayerAttackRangeRate = 0, + long EnemySightPointAdd = 0, + long EnemySightPointRate = 0, + long EnemyAttackRangeAdd = 0, + long EnemyAttackRangeRate = 0, + long PlayerSkillRangeAdd = 0, + long PlayerSkillRangeRate = 0, + long EnemySkillRangeAdd = 0, + long EnemySkillRangeRate = 0, + long PlayerMinimumPositionGapRate = 0, + long EnemyMinimumPositionGapRate = 0, + bool PlayerSightRangeMax = false, + bool EnemySightRangeMax = false, + long TSSAirUnitHeight = 0, + bool IsPhaseBGM = false, + long BGMId = 0, + bool WarningUI = false, + bool TSSHatchOpen = false, + SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None, + SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None, + SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None, + bool ImmuneHitBeforeTimeOutEnd = false, + bool UIBattleHideFromScratch = false, + StringOffset BattleReadyTimelinePathOffset = default(StringOffset), + StringOffset BeforeVictoryTimelinePathOffset = default(StringOffset), + bool HideNPCWhenBattleEnd = false, + float UIHpScale = 0.0f, + float UIEmojiScale = 0.0f, + float UISkillMainLogScale = 0.0f, + VectorOffset AllyPassiveSkillIdOffset = default(VectorOffset), + VectorOffset AllyPassiveSkillLevelOffset = default(VectorOffset), + VectorOffset EnemyPassiveSkillIdOffset = default(VectorOffset), + VectorOffset EnemyPassiveSkillLevelOffset = default(VectorOffset)) { + builder.StartTable(54); + GroundExcel.AddBGMId(builder, BGMId); + GroundExcel.AddTSSAirUnitHeight(builder, TSSAirUnitHeight); + GroundExcel.AddEnemyMinimumPositionGapRate(builder, EnemyMinimumPositionGapRate); + GroundExcel.AddPlayerMinimumPositionGapRate(builder, PlayerMinimumPositionGapRate); + GroundExcel.AddEnemySkillRangeRate(builder, EnemySkillRangeRate); + GroundExcel.AddEnemySkillRangeAdd(builder, EnemySkillRangeAdd); + GroundExcel.AddPlayerSkillRangeRate(builder, PlayerSkillRangeRate); + GroundExcel.AddPlayerSkillRangeAdd(builder, PlayerSkillRangeAdd); + GroundExcel.AddEnemyAttackRangeRate(builder, EnemyAttackRangeRate); + GroundExcel.AddEnemyAttackRangeAdd(builder, EnemyAttackRangeAdd); + GroundExcel.AddEnemySightPointRate(builder, EnemySightPointRate); + GroundExcel.AddEnemySightPointAdd(builder, EnemySightPointAdd); + GroundExcel.AddPlayerAttackRangeRate(builder, PlayerAttackRangeRate); + GroundExcel.AddPlayerAttackRangeAdd(builder, PlayerAttackRangeAdd); + GroundExcel.AddPlayerSightPointRate(builder, PlayerSightPointRate); + GroundExcel.AddPlayerSightPointAdd(builder, PlayerSightPointAdd); + GroundExcel.AddGradeBoss(builder, GradeBoss); + GroundExcel.AddGradeChampion(builder, GradeChampion); + GroundExcel.AddGradeElite(builder, GradeElite); + GroundExcel.AddGradeMinion(builder, GradeMinion); + GroundExcel.AddGradeNPC(builder, GradeNPC); + GroundExcel.AddObstacleLevel(builder, ObstacleLevel); + GroundExcel.AddLevelBoss(builder, LevelBoss); + GroundExcel.AddLevelChampion(builder, LevelChampion); + GroundExcel.AddLevelElite(builder, LevelElite); + GroundExcel.AddLevelMinion(builder, LevelMinion); + GroundExcel.AddLevelNPC(builder, LevelNPC); + GroundExcel.AddFormationGroupId(builder, FormationGroupId); + GroundExcel.AddId(builder, Id); + GroundExcel.AddEnemyPassiveSkillLevel(builder, EnemyPassiveSkillLevelOffset); + GroundExcel.AddEnemyPassiveSkillId(builder, EnemyPassiveSkillIdOffset); + GroundExcel.AddAllyPassiveSkillLevel(builder, AllyPassiveSkillLevelOffset); + GroundExcel.AddAllyPassiveSkillId(builder, AllyPassiveSkillIdOffset); + GroundExcel.AddUISkillMainLogScale(builder, UISkillMainLogScale); + GroundExcel.AddUIEmojiScale(builder, UIEmojiScale); + GroundExcel.AddUIHpScale(builder, UIHpScale); + GroundExcel.AddBeforeVictoryTimelinePath(builder, BeforeVictoryTimelinePathOffset); + GroundExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); + GroundExcel.AddShowNPCSkillCutIn(builder, ShowNPCSkillCutIn); + GroundExcel.AddForcedSkillUse(builder, ForcedSkillUse); + GroundExcel.AddForcedTacticSpeed(builder, ForcedTacticSpeed); + GroundExcel.AddEnemyArmorType(builder, EnemyArmorType); + GroundExcel.AddEnemyBulletType(builder, EnemyBulletType); + GroundExcel.AddStageTopography(builder, StageTopography); + GroundExcel.AddGroundSceneName(builder, GroundSceneNameOffset); + GroundExcel.AddStageFileName(builder, StageFileNameOffset); + GroundExcel.AddHideNPCWhenBattleEnd(builder, HideNPCWhenBattleEnd); + GroundExcel.AddUIBattleHideFromScratch(builder, UIBattleHideFromScratch); + GroundExcel.AddImmuneHitBeforeTimeOutEnd(builder, ImmuneHitBeforeTimeOutEnd); + GroundExcel.AddTSSHatchOpen(builder, TSSHatchOpen); + GroundExcel.AddWarningUI(builder, WarningUI); + GroundExcel.AddIsPhaseBGM(builder, IsPhaseBGM); + GroundExcel.AddEnemySightRangeMax(builder, EnemySightRangeMax); + GroundExcel.AddPlayerSightRangeMax(builder, PlayerSightRangeMax); + return GroundExcel.EndGroundExcel(builder); + } + + public static void StartGroundExcel(FlatBufferBuilder builder) { builder.StartTable(54); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStageFileName(FlatBufferBuilder builder, VectorOffset stageFileNameOffset) { builder.AddOffset(1, stageFileNameOffset.Value, 0); } + public static VectorOffset CreateStageFileNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateStageFileNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageFileNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageFileNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageFileNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddGroundSceneName(FlatBufferBuilder builder, StringOffset groundSceneNameOffset) { builder.AddOffset(2, groundSceneNameOffset.Value, 0); } + public static void AddFormationGroupId(FlatBufferBuilder builder, long formationGroupId) { builder.AddLong(3, formationGroupId, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(4, (int)stageTopography, 0); } + public static void AddEnemyBulletType(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType enemyBulletType) { builder.AddInt(5, (int)enemyBulletType, 0); } + public static void AddEnemyArmorType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArmorType enemyArmorType) { builder.AddInt(6, (int)enemyArmorType, 0); } + public static void AddLevelNPC(FlatBufferBuilder builder, long levelNPC) { builder.AddLong(7, levelNPC, 0); } + public static void AddLevelMinion(FlatBufferBuilder builder, long levelMinion) { builder.AddLong(8, levelMinion, 0); } + public static void AddLevelElite(FlatBufferBuilder builder, long levelElite) { builder.AddLong(9, levelElite, 0); } + public static void AddLevelChampion(FlatBufferBuilder builder, long levelChampion) { builder.AddLong(10, levelChampion, 0); } + public static void AddLevelBoss(FlatBufferBuilder builder, long levelBoss) { builder.AddLong(11, levelBoss, 0); } + public static void AddObstacleLevel(FlatBufferBuilder builder, long obstacleLevel) { builder.AddLong(12, obstacleLevel, 0); } + public static void AddGradeNPC(FlatBufferBuilder builder, long gradeNPC) { builder.AddLong(13, gradeNPC, 0); } + public static void AddGradeMinion(FlatBufferBuilder builder, long gradeMinion) { builder.AddLong(14, gradeMinion, 0); } + public static void AddGradeElite(FlatBufferBuilder builder, long gradeElite) { builder.AddLong(15, gradeElite, 0); } + public static void AddGradeChampion(FlatBufferBuilder builder, long gradeChampion) { builder.AddLong(16, gradeChampion, 0); } + public static void AddGradeBoss(FlatBufferBuilder builder, long gradeBoss) { builder.AddLong(17, gradeBoss, 0); } + public static void AddPlayerSightPointAdd(FlatBufferBuilder builder, long playerSightPointAdd) { builder.AddLong(18, playerSightPointAdd, 0); } + public static void AddPlayerSightPointRate(FlatBufferBuilder builder, long playerSightPointRate) { builder.AddLong(19, playerSightPointRate, 0); } + public static void AddPlayerAttackRangeAdd(FlatBufferBuilder builder, long playerAttackRangeAdd) { builder.AddLong(20, playerAttackRangeAdd, 0); } + public static void AddPlayerAttackRangeRate(FlatBufferBuilder builder, long playerAttackRangeRate) { builder.AddLong(21, playerAttackRangeRate, 0); } + public static void AddEnemySightPointAdd(FlatBufferBuilder builder, long enemySightPointAdd) { builder.AddLong(22, enemySightPointAdd, 0); } + public static void AddEnemySightPointRate(FlatBufferBuilder builder, long enemySightPointRate) { builder.AddLong(23, enemySightPointRate, 0); } + public static void AddEnemyAttackRangeAdd(FlatBufferBuilder builder, long enemyAttackRangeAdd) { builder.AddLong(24, enemyAttackRangeAdd, 0); } + public static void AddEnemyAttackRangeRate(FlatBufferBuilder builder, long enemyAttackRangeRate) { builder.AddLong(25, enemyAttackRangeRate, 0); } + public static void AddPlayerSkillRangeAdd(FlatBufferBuilder builder, long playerSkillRangeAdd) { builder.AddLong(26, playerSkillRangeAdd, 0); } + public static void AddPlayerSkillRangeRate(FlatBufferBuilder builder, long playerSkillRangeRate) { builder.AddLong(27, playerSkillRangeRate, 0); } + public static void AddEnemySkillRangeAdd(FlatBufferBuilder builder, long enemySkillRangeAdd) { builder.AddLong(28, enemySkillRangeAdd, 0); } + public static void AddEnemySkillRangeRate(FlatBufferBuilder builder, long enemySkillRangeRate) { builder.AddLong(29, enemySkillRangeRate, 0); } + public static void AddPlayerMinimumPositionGapRate(FlatBufferBuilder builder, long playerMinimumPositionGapRate) { builder.AddLong(30, playerMinimumPositionGapRate, 0); } + public static void AddEnemyMinimumPositionGapRate(FlatBufferBuilder builder, long enemyMinimumPositionGapRate) { builder.AddLong(31, enemyMinimumPositionGapRate, 0); } + public static void AddPlayerSightRangeMax(FlatBufferBuilder builder, bool playerSightRangeMax) { builder.AddBool(32, playerSightRangeMax, false); } + public static void AddEnemySightRangeMax(FlatBufferBuilder builder, bool enemySightRangeMax) { builder.AddBool(33, enemySightRangeMax, false); } + public static void AddTSSAirUnitHeight(FlatBufferBuilder builder, long tSSAirUnitHeight) { builder.AddLong(34, tSSAirUnitHeight, 0); } + public static void AddIsPhaseBGM(FlatBufferBuilder builder, bool isPhaseBGM) { builder.AddBool(35, isPhaseBGM, false); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(36, bGMId, 0); } + public static void AddWarningUI(FlatBufferBuilder builder, bool warningUI) { builder.AddBool(37, warningUI, false); } + public static void AddTSSHatchOpen(FlatBufferBuilder builder, bool tSSHatchOpen) { builder.AddBool(38, tSSHatchOpen, false); } + public static void AddForcedTacticSpeed(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticSpeed forcedTacticSpeed) { builder.AddInt(39, (int)forcedTacticSpeed, 0); } + public static void AddForcedSkillUse(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticSkillUse forcedSkillUse) { builder.AddInt(40, (int)forcedSkillUse, 0); } + public static void AddShowNPCSkillCutIn(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShowSkillCutIn showNPCSkillCutIn) { builder.AddInt(41, (int)showNPCSkillCutIn, 0); } + public static void AddImmuneHitBeforeTimeOutEnd(FlatBufferBuilder builder, bool immuneHitBeforeTimeOutEnd) { builder.AddBool(42, immuneHitBeforeTimeOutEnd, false); } + public static void AddUIBattleHideFromScratch(FlatBufferBuilder builder, bool uIBattleHideFromScratch) { builder.AddBool(43, uIBattleHideFromScratch, false); } + public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, StringOffset battleReadyTimelinePathOffset) { builder.AddOffset(44, battleReadyTimelinePathOffset.Value, 0); } + public static void AddBeforeVictoryTimelinePath(FlatBufferBuilder builder, StringOffset beforeVictoryTimelinePathOffset) { builder.AddOffset(45, beforeVictoryTimelinePathOffset.Value, 0); } + public static void AddHideNPCWhenBattleEnd(FlatBufferBuilder builder, bool hideNPCWhenBattleEnd) { builder.AddBool(46, hideNPCWhenBattleEnd, false); } + public static void AddUIHpScale(FlatBufferBuilder builder, float uIHpScale) { builder.AddFloat(47, uIHpScale, 0.0f); } + public static void AddUIEmojiScale(FlatBufferBuilder builder, float uIEmojiScale) { builder.AddFloat(48, uIEmojiScale, 0.0f); } + public static void AddUISkillMainLogScale(FlatBufferBuilder builder, float uISkillMainLogScale) { builder.AddFloat(49, uISkillMainLogScale, 0.0f); } + public static void AddAllyPassiveSkillId(FlatBufferBuilder builder, VectorOffset allyPassiveSkillIdOffset) { builder.AddOffset(50, allyPassiveSkillIdOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddAllyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset allyPassiveSkillLevelOffset) { builder.AddOffset(51, allyPassiveSkillLevelOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillLevelVector(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 CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPassiveSkillId(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillIdOffset) { builder.AddOffset(52, enemyPassiveSkillIdOffset.Value, 0); } + public static VectorOffset CreateEnemyPassiveSkillIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillLevelOffset) { builder.AddOffset(53, enemyPassiveSkillLevelOffset.Value, 0); } + public static VectorOffset CreateEnemyPassiveSkillLevelVector(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 CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndGroundExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 6 /*StageFileName*/, false) + && verifier.VerifyString(tablePos, 8 /*GroundSceneName*/, false) + && verifier.VerifyField(tablePos, 10 /*FormationGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*EnemyBulletType*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*EnemyArmorType*/, 4 /*SCHALE.Common.FlatData.ArmorType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*LevelNPC*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*LevelMinion*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*LevelElite*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*LevelChampion*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*LevelBoss*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ObstacleLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*GradeNPC*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*GradeMinion*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*GradeElite*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*GradeChampion*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*GradeBoss*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*PlayerSightPointAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*PlayerSightPointRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*PlayerAttackRangeAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*PlayerAttackRangeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*EnemySightPointAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*EnemySightPointRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*EnemyAttackRangeAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*EnemyAttackRangeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*PlayerSkillRangeAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*PlayerSkillRangeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*EnemySkillRangeAdd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*EnemySkillRangeRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*PlayerMinimumPositionGapRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*EnemyMinimumPositionGapRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*PlayerSightRangeMax*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 70 /*EnemySightRangeMax*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 72 /*TSSAirUnitHeight*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 74 /*IsPhaseBGM*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 76 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 78 /*WarningUI*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 80 /*TSSHatchOpen*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 82 /*ForcedTacticSpeed*/, 4 /*SCHALE.Common.FlatData.TacticSpeed*/, 4, false) + && verifier.VerifyField(tablePos, 84 /*ForcedSkillUse*/, 4 /*SCHALE.Common.FlatData.TacticSkillUse*/, 4, false) + && verifier.VerifyField(tablePos, 86 /*ShowNPCSkillCutIn*/, 4 /*SCHALE.Common.FlatData.ShowSkillCutIn*/, 4, false) + && verifier.VerifyField(tablePos, 88 /*ImmuneHitBeforeTimeOutEnd*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 90 /*UIBattleHideFromScratch*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 92 /*BattleReadyTimelinePath*/, false) + && verifier.VerifyString(tablePos, 94 /*BeforeVictoryTimelinePath*/, false) + && verifier.VerifyField(tablePos, 96 /*HideNPCWhenBattleEnd*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 98 /*UIHpScale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 100 /*UIEmojiScale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 102 /*UISkillMainLogScale*/, 4 /*float*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 104 /*AllyPassiveSkillId*/, false) + && verifier.VerifyVectorOfData(tablePos, 106 /*AllyPassiveSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 108 /*EnemyPassiveSkillId*/, false) + && verifier.VerifyVectorOfData(tablePos, 110 /*EnemyPassiveSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundExcelTable.cs b/SCHALE.Common/FlatData/GroundExcelTable.cs new file mode 100644 index 0000000..07a302a --- /dev/null +++ b/SCHALE.Common/FlatData/GroundExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GroundExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundExcelTable GetRootAsGroundExcelTable(ByteBuffer _bb) { return GetRootAsGroundExcelTable(_bb, new GroundExcelTable()); } + public static GroundExcelTable GetRootAsGroundExcelTable(ByteBuffer _bb, GroundExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GroundExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GroundExcel?)(new SCHALE.Common.FlatData.GroundExcel()).__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 CreateGroundExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GroundExcelTable.AddDataList(builder, DataListOffset); + return GroundExcelTable.EndGroundExcelTable(builder); + } + + public static void StartGroundExcelTable(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 EndGroundExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GroundExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundGridFlat.cs b/SCHALE.Common/FlatData/GroundGridFlat.cs new file mode 100644 index 0000000..284c7cd --- /dev/null +++ b/SCHALE.Common/FlatData/GroundGridFlat.cs @@ -0,0 +1,92 @@ +// +// 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 GroundGridFlat : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundGridFlat GetRootAsGroundGridFlat(ByteBuffer _bb) { return GetRootAsGroundGridFlat(_bb, new GroundGridFlat()); } + public static GroundGridFlat GetRootAsGroundGridFlat(ByteBuffer _bb, GroundGridFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundGridFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float StartX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float StartY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Gap { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public SCHALE.Common.FlatData.GroundNodeFlat? Nodes(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeFlat?)(new SCHALE.Common.FlatData.GroundNodeFlat()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int NodesLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public string Version { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVersionBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetVersionBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetVersionArray() { return __p.__vector_as_array(16); } + + public static Offset CreateGroundGridFlat(FlatBufferBuilder builder, + int X = 0, + int Y = 0, + float StartX = 0.0f, + float StartY = 0.0f, + float Gap = 0.0f, + VectorOffset NodesOffset = default(VectorOffset), + StringOffset VersionOffset = default(StringOffset)) { + builder.StartTable(7); + GroundGridFlat.AddVersion(builder, VersionOffset); + GroundGridFlat.AddNodes(builder, NodesOffset); + GroundGridFlat.AddGap(builder, Gap); + GroundGridFlat.AddStartY(builder, StartY); + GroundGridFlat.AddStartX(builder, StartX); + GroundGridFlat.AddY(builder, Y); + GroundGridFlat.AddX(builder, X); + return GroundGridFlat.EndGroundGridFlat(builder); + } + + public static void StartGroundGridFlat(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddY(FlatBufferBuilder builder, int y) { builder.AddInt(1, y, 0); } + public static void AddStartX(FlatBufferBuilder builder, float startX) { builder.AddFloat(2, startX, 0.0f); } + public static void AddStartY(FlatBufferBuilder builder, float startY) { builder.AddFloat(3, startY, 0.0f); } + public static void AddGap(FlatBufferBuilder builder, float gap) { builder.AddFloat(4, gap, 0.0f); } + public static void AddNodes(FlatBufferBuilder builder, VectorOffset nodesOffset) { builder.AddOffset(5, nodesOffset.Value, 0); } + public static VectorOffset CreateNodesVector(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 CreateNodesVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNodesVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNodesVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNodesVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVersion(FlatBufferBuilder builder, StringOffset versionOffset) { builder.AddOffset(6, versionOffset.Value, 0); } + public static Offset EndGroundGridFlat(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundGridFlatVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*StartX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*StartY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Gap*/, 4 /*float*/, 4, false) + && verifier.VerifyVectorOfTables(tablePos, 14 /*Nodes*/, SCHALE.Common.FlatData.GroundNodeFlatVerify.Verify, false) + && verifier.VerifyString(tablePos, 16 /*Version*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs new file mode 100644 index 0000000..08a2147 --- /dev/null +++ b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs @@ -0,0 +1,86 @@ +// +// 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 GroundModuleRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundModuleRewardExcel GetRootAsGroundModuleRewardExcel(ByteBuffer _bb) { return GetRootAsGroundModuleRewardExcel(_bb, new GroundModuleRewardExcel()); } + public static GroundModuleRewardExcel GetRootAsGroundModuleRewardExcel(ByteBuffer _bb, GroundModuleRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundModuleRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(6); 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(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelProbability { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDisplayed { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string DropItemModelPrefabPath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDropItemModelPrefabPathBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetDropItemModelPrefabPathBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetDropItemModelPrefabPathArray() { return __p.__vector_as_array(16); } + + public static Offset CreateGroundModuleRewardExcel(FlatBufferBuilder builder, + uint GroupId = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0, + long RewardParcelProbability = 0, + bool IsDisplayed = false, + StringOffset DropItemModelPrefabPathOffset = default(StringOffset)) { + builder.StartTable(7); + GroundModuleRewardExcel.AddRewardParcelProbability(builder, RewardParcelProbability); + GroundModuleRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + GroundModuleRewardExcel.AddRewardParcelId(builder, RewardParcelId); + GroundModuleRewardExcel.AddDropItemModelPrefabPath(builder, DropItemModelPrefabPathOffset); + GroundModuleRewardExcel.AddRewardParcelType(builder, RewardParcelType); + GroundModuleRewardExcel.AddGroupId(builder, GroupId); + GroundModuleRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return GroundModuleRewardExcel.EndGroundModuleRewardExcel(builder); + } + + public static void StartGroundModuleRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, uint groupId) { builder.AddUint(0, groupId, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(1, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(2, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(3, rewardParcelAmount, 0); } + public static void AddRewardParcelProbability(FlatBufferBuilder builder, long rewardParcelProbability) { builder.AddLong(4, rewardParcelProbability, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(5, isDisplayed, false); } + public static void AddDropItemModelPrefabPath(FlatBufferBuilder builder, StringOffset dropItemModelPrefabPathOffset) { builder.AddOffset(6, dropItemModelPrefabPathOffset.Value, 0); } + public static Offset EndGroundModuleRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundModuleRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelProbability*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 16 /*DropItemModelPrefabPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs new file mode 100644 index 0000000..f30a101 --- /dev/null +++ b/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GroundModuleRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundModuleRewardExcelTable GetRootAsGroundModuleRewardExcelTable(ByteBuffer _bb) { return GetRootAsGroundModuleRewardExcelTable(_bb, new GroundModuleRewardExcelTable()); } + public static GroundModuleRewardExcelTable GetRootAsGroundModuleRewardExcelTable(ByteBuffer _bb, GroundModuleRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundModuleRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GroundModuleRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GroundModuleRewardExcel?)(new SCHALE.Common.FlatData.GroundModuleRewardExcel()).__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 CreateGroundModuleRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GroundModuleRewardExcelTable.AddDataList(builder, DataListOffset); + return GroundModuleRewardExcelTable.EndGroundModuleRewardExcelTable(builder); + } + + public static void StartGroundModuleRewardExcelTable(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 EndGroundModuleRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundModuleRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GroundModuleRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundNodeFlat.cs b/SCHALE.Common/FlatData/GroundNodeFlat.cs new file mode 100644 index 0000000..b583baa --- /dev/null +++ b/SCHALE.Common/FlatData/GroundNodeFlat.cs @@ -0,0 +1,75 @@ +// +// 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 GroundNodeFlat : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundNodeFlat GetRootAsGroundNodeFlat(ByteBuffer _bb) { return GetRootAsGroundNodeFlat(_bb, new GroundNodeFlat()); } + public static GroundNodeFlat GetRootAsGroundNodeFlat(ByteBuffer _bb, GroundNodeFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundNodeFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsCanNotUseSkill { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.GroundVector3? Position { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.GroundVector3?)(new SCHALE.Common.FlatData.GroundVector3()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } + public SCHALE.Common.FlatData.GroundNodeType NodeType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None; } } + public SCHALE.Common.FlatData.GroundNodeType OriginalNodeType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None; } } + + public static Offset CreateGroundNodeFlat(FlatBufferBuilder builder, + int X = 0, + int Y = 0, + bool IsCanNotUseSkill = false, + Offset PositionOffset = default(Offset), + SCHALE.Common.FlatData.GroundNodeType NodeType = SCHALE.Common.FlatData.GroundNodeType.None, + SCHALE.Common.FlatData.GroundNodeType OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None) { + builder.StartTable(6); + GroundNodeFlat.AddOriginalNodeType(builder, OriginalNodeType); + GroundNodeFlat.AddNodeType(builder, NodeType); + GroundNodeFlat.AddPosition(builder, PositionOffset); + GroundNodeFlat.AddY(builder, Y); + GroundNodeFlat.AddX(builder, X); + GroundNodeFlat.AddIsCanNotUseSkill(builder, IsCanNotUseSkill); + return GroundNodeFlat.EndGroundNodeFlat(builder); + } + + public static void StartGroundNodeFlat(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddX(FlatBufferBuilder builder, int x) { builder.AddInt(0, x, 0); } + public static void AddY(FlatBufferBuilder builder, int y) { builder.AddInt(1, y, 0); } + public static void AddIsCanNotUseSkill(FlatBufferBuilder builder, bool isCanNotUseSkill) { builder.AddBool(2, isCanNotUseSkill, false); } + public static void AddPosition(FlatBufferBuilder builder, Offset positionOffset) { builder.AddOffset(3, positionOffset.Value, 0); } + public static void AddNodeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GroundNodeType nodeType) { builder.AddInt(4, (int)nodeType, 0); } + public static void AddOriginalNodeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GroundNodeType originalNodeType) { builder.AddInt(5, (int)originalNodeType, 0); } + public static Offset EndGroundNodeFlat(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundNodeFlatVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*IsCanNotUseSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyTable(tablePos, 10 /*Position*/, SCHALE.Common.FlatData.GroundVector3Verify.Verify, false) + && verifier.VerifyField(tablePos, 12 /*NodeType*/, 4 /*SCHALE.Common.FlatData.GroundNodeType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*OriginalNodeType*/, 4 /*SCHALE.Common.FlatData.GroundNodeType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs b/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs new file mode 100644 index 0000000..bd06b58 --- /dev/null +++ b/SCHALE.Common/FlatData/GroundNodeLayerFlat.cs @@ -0,0 +1,40 @@ +// +// 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 GroundNodeLayerFlat : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundNodeLayerFlat GetRootAsGroundNodeLayerFlat(ByteBuffer _bb) { return GetRootAsGroundNodeLayerFlat(_bb, new GroundNodeLayerFlat()); } + public static GroundNodeLayerFlat GetRootAsGroundNodeLayerFlat(ByteBuffer _bb, GroundNodeLayerFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundNodeLayerFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + + public static void StartGroundNodeLayerFlat(FlatBufferBuilder builder) { builder.StartTable(0); } + public static Offset EndGroundNodeLayerFlat(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundNodeLayerFlatVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GroundNodeType.cs b/SCHALE.Common/FlatData/GroundNodeType.cs new file mode 100644 index 0000000..8621847 --- /dev/null +++ b/SCHALE.Common/FlatData/GroundNodeType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GroundNodeType : int +{ + None = 0, + WalkAble = 1, + JumpAble = 2, + TSSOnly = 3, + NotWalkAble = 2147483647, +}; + + +} diff --git a/SCHALE.Common/FlatData/GroundVector3.cs b/SCHALE.Common/FlatData/GroundVector3.cs new file mode 100644 index 0000000..57633af --- /dev/null +++ b/SCHALE.Common/FlatData/GroundVector3.cs @@ -0,0 +1,60 @@ +// +// 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 GroundVector3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GroundVector3 GetRootAsGroundVector3(ByteBuffer _bb) { return GetRootAsGroundVector3(_bb, new GroundVector3()); } + public static GroundVector3 GetRootAsGroundVector3(ByteBuffer _bb, GroundVector3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GroundVector3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateGroundVector3(FlatBufferBuilder builder, + float X = 0.0f, + float Y = 0.0f, + float Z = 0.0f) { + builder.StartTable(3); + GroundVector3.AddZ(builder, Z); + GroundVector3.AddY(builder, Y); + GroundVector3.AddX(builder, X); + return GroundVector3.EndGroundVector3(builder); + } + + public static void StartGroundVector3(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(1, y, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(2, z, 0.0f); } + public static Offset EndGroundVector3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GroundVector3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GrowthCategory.cs b/SCHALE.Common/FlatData/GrowthCategory.cs new file mode 100644 index 0000000..ae59f55 --- /dev/null +++ b/SCHALE.Common/FlatData/GrowthCategory.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GrowthCategory : int +{ + None = 0, + LevelUp = 1, + Transcend = 2, + SkillLevelUp = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/GuideMissionExcel.cs b/SCHALE.Common/FlatData/GuideMissionExcel.cs new file mode 100644 index 0000000..8115e1c --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionExcel.cs @@ -0,0 +1,225 @@ +// +// 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 GuideMissionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionExcel GetRootAsGuideMissionExcel(ByteBuffer _bb) { return GetRootAsGuideMissionExcel(_bb, new GuideMissionExcel()); } + public static GuideMissionExcel GetRootAsGuideMissionExcel(ByteBuffer _bb, GuideMissionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } + public bool IsLegacy { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long TabNumber { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreMissionId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PreMissionIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPreMissionIdBytes() { return __p.__vector_as_span(14, 8); } +#else + 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 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 + public Span GetToastImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetToastImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetToastImagePathArray() { return __p.__vector_as_array(20); } + public string ShortcutUI(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUILength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public long CompleteConditionCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CompleteConditionParameter(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CompleteConditionParameterLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetCompleteConditionParameterBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetCompleteConditionParameterArray() { return __p.__vector_as_array(28); } + public SCHALE.Common.FlatData.Tag CompleteConditionParameterTag(int j) { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CompleteConditionParameterTagLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterTagBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetCompleteConditionParameterTagBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public SCHALE.Common.FlatData.Tag[] GetCompleteConditionParameterTagArray() { int o = __p.__offset(30); 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 bool IsAutoClearForScenario { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType MissionRewardParcelType(int j) { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int MissionRewardParcelTypeLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelTypeBytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetMissionRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetMissionRewardParcelTypeArray() { int o = __p.__offset(34); 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 MissionRewardParcelId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MissionRewardParcelIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelIdBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetMissionRewardParcelIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetMissionRewardParcelIdArray() { return __p.__vector_as_array(36); } + public int MissionRewardAmount(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MissionRewardAmountLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardAmountBytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetMissionRewardAmountBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public int[] GetMissionRewardAmountArray() { return __p.__vector_as_array(38); } + + public static Offset CreateGuideMissionExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long Id = 0, + SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, + bool IsLegacy = false, + long TabNumber = 0, + VectorOffset PreMissionIdOffset = default(VectorOffset), + StringOffset DescriptionOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, + StringOffset ToastImagePathOffset = default(StringOffset), + VectorOffset ShortcutUIOffset = default(VectorOffset), + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + long CompleteConditionCount = 0, + VectorOffset CompleteConditionParameterOffset = default(VectorOffset), + VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), + bool IsAutoClearForScenario = false, + VectorOffset MissionRewardParcelTypeOffset = default(VectorOffset), + VectorOffset MissionRewardParcelIdOffset = default(VectorOffset), + VectorOffset MissionRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(18); + GuideMissionExcel.AddCompleteConditionCount(builder, CompleteConditionCount); + GuideMissionExcel.AddTabNumber(builder, TabNumber); + GuideMissionExcel.AddId(builder, Id); + GuideMissionExcel.AddSeasonId(builder, SeasonId); + GuideMissionExcel.AddMissionRewardAmount(builder, MissionRewardAmountOffset); + GuideMissionExcel.AddMissionRewardParcelId(builder, MissionRewardParcelIdOffset); + GuideMissionExcel.AddMissionRewardParcelType(builder, MissionRewardParcelTypeOffset); + GuideMissionExcel.AddCompleteConditionParameterTag(builder, CompleteConditionParameterTagOffset); + GuideMissionExcel.AddCompleteConditionParameter(builder, CompleteConditionParameterOffset); + GuideMissionExcel.AddCompleteConditionType(builder, CompleteConditionType); + GuideMissionExcel.AddShortcutUI(builder, ShortcutUIOffset); + GuideMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); + GuideMissionExcel.AddToastDisplayType(builder, ToastDisplayType); + GuideMissionExcel.AddDescription(builder, DescriptionOffset); + GuideMissionExcel.AddPreMissionId(builder, PreMissionIdOffset); + GuideMissionExcel.AddCategory(builder, Category); + GuideMissionExcel.AddIsAutoClearForScenario(builder, IsAutoClearForScenario); + GuideMissionExcel.AddIsLegacy(builder, IsLegacy); + return GuideMissionExcel.EndGuideMissionExcel(builder); + } + + public static void StartGuideMissionExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCategory category) { builder.AddInt(2, (int)category, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(3, isLegacy, false); } + public static void AddTabNumber(FlatBufferBuilder builder, long tabNumber) { builder.AddLong(4, tabNumber, 0); } + public static void AddPreMissionId(FlatBufferBuilder builder, VectorOffset preMissionIdOffset) { builder.AddOffset(5, preMissionIdOffset.Value, 0); } + public static VectorOffset CreatePreMissionIdVector(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 CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + 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 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); } + public static VectorOffset CreateShortcutUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCompleteConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCompleteConditionType completeConditionType) { builder.AddInt(10, (int)completeConditionType, 0); } + public static void AddCompleteConditionCount(FlatBufferBuilder builder, long completeConditionCount) { builder.AddLong(11, completeConditionCount, 0); } + public static void AddCompleteConditionParameter(FlatBufferBuilder builder, VectorOffset completeConditionParameterOffset) { builder.AddOffset(12, completeConditionParameterOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterVector(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 CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCompleteConditionParameterTag(FlatBufferBuilder builder, VectorOffset completeConditionParameterTagOffset) { builder.AddOffset(13, completeConditionParameterTagOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterTagVector(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 CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIsAutoClearForScenario(FlatBufferBuilder builder, bool isAutoClearForScenario) { builder.AddBool(14, isAutoClearForScenario, false); } + public static void AddMissionRewardParcelType(FlatBufferBuilder builder, VectorOffset missionRewardParcelTypeOffset) { builder.AddOffset(15, missionRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelTypeVector(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 CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMissionRewardParcelId(FlatBufferBuilder builder, VectorOffset missionRewardParcelIdOffset) { builder.AddOffset(16, missionRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelIdVector(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 CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMissionRewardAmount(FlatBufferBuilder builder, VectorOffset missionRewardAmountOffset) { builder.AddOffset(17, missionRewardAmountOffset.Value, 0); } + public static VectorOffset CreateMissionRewardAmountVector(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 CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndGuideMissionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Category*/, 4 /*SCHALE.Common.FlatData.MissionCategory*/, 4, false) + && 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, 18 /*ToastDisplayType*/, 4 /*SCHALE.Common.FlatData.MissionToastDisplayConditionType*/, 4, false) + && verifier.VerifyString(tablePos, 20 /*ToastImagePath*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*ShortcutUI*/, false) + && verifier.VerifyField(tablePos, 24 /*CompleteConditionType*/, 4 /*SCHALE.Common.FlatData.MissionCompleteConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*CompleteConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*CompleteConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*CompleteConditionParameterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 32 /*IsAutoClearForScenario*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*MissionRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*MissionRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*MissionRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionExcelTable.cs new file mode 100644 index 0000000..023825f --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GuideMissionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionExcelTable GetRootAsGuideMissionExcelTable(ByteBuffer _bb) { return GetRootAsGuideMissionExcelTable(_bb, new GuideMissionExcelTable()); } + public static GuideMissionExcelTable GetRootAsGuideMissionExcelTable(ByteBuffer _bb, GuideMissionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GuideMissionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionExcel?)(new SCHALE.Common.FlatData.GuideMissionExcel()).__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 CreateGuideMissionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GuideMissionExcelTable.AddDataList(builder, DataListOffset); + return GuideMissionExcelTable.EndGuideMissionExcelTable(builder); + } + + public static void StartGuideMissionExcelTable(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 EndGuideMissionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GuideMissionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.cs new file mode 100644 index 0000000..4df6d10 --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcel.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::Google.FlatBuffers; + +public struct GuideMissionOpenStageConditionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb) { return GetRootAsGuideMissionOpenStageConditionExcel(_bb, new GuideMissionOpenStageConditionExcel()); } + public static GuideMissionOpenStageConditionExcel GetRootAsGuideMissionOpenStageConditionExcel(ByteBuffer _bb, GuideMissionOpenStageConditionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionOpenStageConditionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OrderNumber { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TabLocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTabLocalizeCodeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetTabLocalizeCodeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetTabLocalizeCodeArray() { return __p.__vector_as_array(8); } + public long ClearScenarioModeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string LockScenarioTextLocailzeCode { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetLockScenarioTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetLockScenarioTextLocailzeCodeArray() { return __p.__vector_as_array(12); } + public string ShortcutScenarioUI { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShortcutScenarioUIBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetShortcutScenarioUIBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetShortcutScenarioUIArray() { return __p.__vector_as_array(14); } + public long ClearStageId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string LockStageTextLocailzeCode { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetLockStageTextLocailzeCodeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetLockStageTextLocailzeCodeArray() { return __p.__vector_as_array(18); } + public string ShortcutStageUI { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShortcutStageUIBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetShortcutStageUIBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetShortcutStageUIArray() { return __p.__vector_as_array(20); } + + public static Offset CreateGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long OrderNumber = 0, + StringOffset TabLocalizeCodeOffset = default(StringOffset), + long ClearScenarioModeId = 0, + StringOffset LockScenarioTextLocailzeCodeOffset = default(StringOffset), + StringOffset ShortcutScenarioUIOffset = default(StringOffset), + long ClearStageId = 0, + StringOffset LockStageTextLocailzeCodeOffset = default(StringOffset), + StringOffset ShortcutStageUIOffset = default(StringOffset)) { + builder.StartTable(9); + GuideMissionOpenStageConditionExcel.AddClearStageId(builder, ClearStageId); + GuideMissionOpenStageConditionExcel.AddClearScenarioModeId(builder, ClearScenarioModeId); + GuideMissionOpenStageConditionExcel.AddOrderNumber(builder, OrderNumber); + GuideMissionOpenStageConditionExcel.AddSeasonId(builder, SeasonId); + GuideMissionOpenStageConditionExcel.AddShortcutStageUI(builder, ShortcutStageUIOffset); + GuideMissionOpenStageConditionExcel.AddLockStageTextLocailzeCode(builder, LockStageTextLocailzeCodeOffset); + GuideMissionOpenStageConditionExcel.AddShortcutScenarioUI(builder, ShortcutScenarioUIOffset); + GuideMissionOpenStageConditionExcel.AddLockScenarioTextLocailzeCode(builder, LockScenarioTextLocailzeCodeOffset); + GuideMissionOpenStageConditionExcel.AddTabLocalizeCode(builder, TabLocalizeCodeOffset); + return GuideMissionOpenStageConditionExcel.EndGuideMissionOpenStageConditionExcel(builder); + } + + public static void StartGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddOrderNumber(FlatBufferBuilder builder, long orderNumber) { builder.AddLong(1, orderNumber, 0); } + public static void AddTabLocalizeCode(FlatBufferBuilder builder, StringOffset tabLocalizeCodeOffset) { builder.AddOffset(2, tabLocalizeCodeOffset.Value, 0); } + public static void AddClearScenarioModeId(FlatBufferBuilder builder, long clearScenarioModeId) { builder.AddLong(3, clearScenarioModeId, 0); } + public static void AddLockScenarioTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockScenarioTextLocailzeCodeOffset) { builder.AddOffset(4, lockScenarioTextLocailzeCodeOffset.Value, 0); } + public static void AddShortcutScenarioUI(FlatBufferBuilder builder, StringOffset shortcutScenarioUIOffset) { builder.AddOffset(5, shortcutScenarioUIOffset.Value, 0); } + public static void AddClearStageId(FlatBufferBuilder builder, long clearStageId) { builder.AddLong(6, clearStageId, 0); } + public static void AddLockStageTextLocailzeCode(FlatBufferBuilder builder, StringOffset lockStageTextLocailzeCodeOffset) { builder.AddOffset(7, lockStageTextLocailzeCodeOffset.Value, 0); } + public static void AddShortcutStageUI(FlatBufferBuilder builder, StringOffset shortcutStageUIOffset) { builder.AddOffset(8, shortcutStageUIOffset.Value, 0); } + public static Offset EndGuideMissionOpenStageConditionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionOpenStageConditionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*OrderNumber*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*TabLocalizeCode*/, false) + && verifier.VerifyField(tablePos, 10 /*ClearScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*LockScenarioTextLocailzeCode*/, false) + && verifier.VerifyString(tablePos, 14 /*ShortcutScenarioUI*/, false) + && verifier.VerifyField(tablePos, 16 /*ClearStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*LockStageTextLocailzeCode*/, false) + && verifier.VerifyString(tablePos, 20 /*ShortcutStageUI*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs new file mode 100644 index 0000000..daeaacf --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionOpenStageConditionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GuideMissionOpenStageConditionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionOpenStageConditionExcelTable GetRootAsGuideMissionOpenStageConditionExcelTable(ByteBuffer _bb) { return GetRootAsGuideMissionOpenStageConditionExcelTable(_bb, new GuideMissionOpenStageConditionExcelTable()); } + public static GuideMissionOpenStageConditionExcelTable GetRootAsGuideMissionOpenStageConditionExcelTable(ByteBuffer _bb, GuideMissionOpenStageConditionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionOpenStageConditionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel?)(new SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcel()).__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 CreateGuideMissionOpenStageConditionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GuideMissionOpenStageConditionExcelTable.AddDataList(builder, DataListOffset); + return GuideMissionOpenStageConditionExcelTable.EndGuideMissionOpenStageConditionExcelTable(builder); + } + + public static void StartGuideMissionOpenStageConditionExcelTable(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 EndGuideMissionOpenStageConditionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionOpenStageConditionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GuideMissionOpenStageConditionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs new file mode 100644 index 0000000..85801d3 --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs @@ -0,0 +1,242 @@ +// +// 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 GuideMissionSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionSeasonExcel GetRootAsGuideMissionSeasonExcel(ByteBuffer _bb) { return GetRootAsGuideMissionSeasonExcel(_bb, new GuideMissionSeasonExcel()); } + public static GuideMissionSeasonExcel GetRootAsGuideMissionSeasonExcel(ByteBuffer _bb, GuideMissionSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionSeasonExcel __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 string TitleLocalizeCode { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleLocalizeCodeBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetTitleLocalizeCodeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetTitleLocalizeCodeArray() { return __p.__vector_as_array(6); } + public string PermanentInfomationLocalizeCode { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPermanentInfomationLocalizeCodeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPermanentInfomationLocalizeCodeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPermanentInfomationLocalizeCodeArray() { return __p.__vector_as_array(8); } + public string InfomationLocalizeCode { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInfomationLocalizeCodeBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetInfomationLocalizeCodeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetInfomationLocalizeCodeArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } + public bool Enabled { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string BannerOpenDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBannerOpenDateBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetBannerOpenDateBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetBannerOpenDateArray() { return __p.__vector_as_array(16); } + public string StartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(18); } + public string StartableEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartableEndDateBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetStartableEndDateBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetStartableEndDateArray() { return __p.__vector_as_array(20); } + public string EndDate { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(22); } + public bool CloseBannerAfterCompletion { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long MaximumLoginCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExpiryDate { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SpineCharacterId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RequirementParcelImage { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRequirementParcelImageBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetRequirementParcelImageBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetRequirementParcelImageArray() { return __p.__vector_as_array(32); } + public string RewardImage { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardImageBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetRewardImageBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetRewardImageArray() { return __p.__vector_as_array(34); } + public string LobbyBannerImage { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLobbyBannerImageBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetLobbyBannerImageBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetLobbyBannerImageArray() { return __p.__vector_as_array(36); } + public string BackgroundImage { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBackgroundImageBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetBackgroundImageBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetBackgroundImageArray() { return __p.__vector_as_array(38); } + public string TitleImage { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleImageBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetTitleImageBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetTitleImageArray() { return __p.__vector_as_array(40); } + public SCHALE.Common.FlatData.ParcelType RequirementParcelType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RequirementParcelId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RequirementParcelAmount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.GuideMissionTabType TabType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionTabType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GuideMissionTabType.None; } } + public bool IsPermanent { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long PreSeasonId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateGuideMissionSeasonExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset TitleLocalizeCodeOffset = default(StringOffset), + StringOffset PermanentInfomationLocalizeCodeOffset = default(StringOffset), + StringOffset InfomationLocalizeCodeOffset = default(StringOffset), + SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, + bool Enabled = false, + StringOffset BannerOpenDateOffset = default(StringOffset), + StringOffset StartDateOffset = default(StringOffset), + StringOffset StartableEndDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + bool CloseBannerAfterCompletion = false, + long MaximumLoginCount = 0, + long ExpiryDate = 0, + long SpineCharacterId = 0, + StringOffset RequirementParcelImageOffset = default(StringOffset), + StringOffset RewardImageOffset = default(StringOffset), + StringOffset LobbyBannerImageOffset = default(StringOffset), + StringOffset BackgroundImageOffset = default(StringOffset), + StringOffset TitleImageOffset = default(StringOffset), + SCHALE.Common.FlatData.ParcelType RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RequirementParcelId = 0, + int RequirementParcelAmount = 0, + SCHALE.Common.FlatData.GuideMissionTabType TabType = SCHALE.Common.FlatData.GuideMissionTabType.None, + bool IsPermanent = false, + long PreSeasonId = 0) { + builder.StartTable(25); + GuideMissionSeasonExcel.AddPreSeasonId(builder, PreSeasonId); + GuideMissionSeasonExcel.AddRequirementParcelId(builder, RequirementParcelId); + GuideMissionSeasonExcel.AddSpineCharacterId(builder, SpineCharacterId); + GuideMissionSeasonExcel.AddExpiryDate(builder, ExpiryDate); + GuideMissionSeasonExcel.AddMaximumLoginCount(builder, MaximumLoginCount); + GuideMissionSeasonExcel.AddId(builder, Id); + GuideMissionSeasonExcel.AddTabType(builder, TabType); + GuideMissionSeasonExcel.AddRequirementParcelAmount(builder, RequirementParcelAmount); + GuideMissionSeasonExcel.AddRequirementParcelType(builder, RequirementParcelType); + GuideMissionSeasonExcel.AddTitleImage(builder, TitleImageOffset); + GuideMissionSeasonExcel.AddBackgroundImage(builder, BackgroundImageOffset); + GuideMissionSeasonExcel.AddLobbyBannerImage(builder, LobbyBannerImageOffset); + GuideMissionSeasonExcel.AddRewardImage(builder, RewardImageOffset); + GuideMissionSeasonExcel.AddRequirementParcelImage(builder, RequirementParcelImageOffset); + GuideMissionSeasonExcel.AddEndDate(builder, EndDateOffset); + GuideMissionSeasonExcel.AddStartableEndDate(builder, StartableEndDateOffset); + GuideMissionSeasonExcel.AddStartDate(builder, StartDateOffset); + GuideMissionSeasonExcel.AddBannerOpenDate(builder, BannerOpenDateOffset); + GuideMissionSeasonExcel.AddAccountType(builder, AccountType); + GuideMissionSeasonExcel.AddInfomationLocalizeCode(builder, InfomationLocalizeCodeOffset); + GuideMissionSeasonExcel.AddPermanentInfomationLocalizeCode(builder, PermanentInfomationLocalizeCodeOffset); + GuideMissionSeasonExcel.AddTitleLocalizeCode(builder, TitleLocalizeCodeOffset); + GuideMissionSeasonExcel.AddIsPermanent(builder, IsPermanent); + GuideMissionSeasonExcel.AddCloseBannerAfterCompletion(builder, CloseBannerAfterCompletion); + GuideMissionSeasonExcel.AddEnabled(builder, Enabled); + return GuideMissionSeasonExcel.EndGuideMissionSeasonExcel(builder); + } + + public static void StartGuideMissionSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(25); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTitleLocalizeCode(FlatBufferBuilder builder, StringOffset titleLocalizeCodeOffset) { builder.AddOffset(1, titleLocalizeCodeOffset.Value, 0); } + public static void AddPermanentInfomationLocalizeCode(FlatBufferBuilder builder, StringOffset permanentInfomationLocalizeCodeOffset) { builder.AddOffset(2, permanentInfomationLocalizeCodeOffset.Value, 0); } + public static void AddInfomationLocalizeCode(FlatBufferBuilder builder, StringOffset infomationLocalizeCodeOffset) { builder.AddOffset(3, infomationLocalizeCodeOffset.Value, 0); } + public static void AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(4, (int)accountType, 0); } + public static void AddEnabled(FlatBufferBuilder builder, bool enabled) { builder.AddBool(5, enabled, false); } + public static void AddBannerOpenDate(FlatBufferBuilder builder, StringOffset bannerOpenDateOffset) { builder.AddOffset(6, bannerOpenDateOffset.Value, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(7, startDateOffset.Value, 0); } + public static void AddStartableEndDate(FlatBufferBuilder builder, StringOffset startableEndDateOffset) { builder.AddOffset(8, startableEndDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(9, endDateOffset.Value, 0); } + public static void AddCloseBannerAfterCompletion(FlatBufferBuilder builder, bool closeBannerAfterCompletion) { builder.AddBool(10, closeBannerAfterCompletion, false); } + public static void AddMaximumLoginCount(FlatBufferBuilder builder, long maximumLoginCount) { builder.AddLong(11, maximumLoginCount, 0); } + public static void AddExpiryDate(FlatBufferBuilder builder, long expiryDate) { builder.AddLong(12, expiryDate, 0); } + public static void AddSpineCharacterId(FlatBufferBuilder builder, long spineCharacterId) { builder.AddLong(13, spineCharacterId, 0); } + public static void AddRequirementParcelImage(FlatBufferBuilder builder, StringOffset requirementParcelImageOffset) { builder.AddOffset(14, requirementParcelImageOffset.Value, 0); } + public static void AddRewardImage(FlatBufferBuilder builder, StringOffset rewardImageOffset) { builder.AddOffset(15, rewardImageOffset.Value, 0); } + public static void AddLobbyBannerImage(FlatBufferBuilder builder, StringOffset lobbyBannerImageOffset) { builder.AddOffset(16, lobbyBannerImageOffset.Value, 0); } + public static void AddBackgroundImage(FlatBufferBuilder builder, StringOffset backgroundImageOffset) { builder.AddOffset(17, backgroundImageOffset.Value, 0); } + public static void AddTitleImage(FlatBufferBuilder builder, StringOffset titleImageOffset) { builder.AddOffset(18, titleImageOffset.Value, 0); } + public static void AddRequirementParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType requirementParcelType) { builder.AddInt(19, (int)requirementParcelType, 0); } + public static void AddRequirementParcelId(FlatBufferBuilder builder, long requirementParcelId) { builder.AddLong(20, requirementParcelId, 0); } + public static void AddRequirementParcelAmount(FlatBufferBuilder builder, int requirementParcelAmount) { builder.AddInt(21, requirementParcelAmount, 0); } + public static void AddTabType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GuideMissionTabType tabType) { builder.AddInt(22, (int)tabType, 0); } + public static void AddIsPermanent(FlatBufferBuilder builder, bool isPermanent) { builder.AddBool(23, isPermanent, false); } + public static void AddPreSeasonId(FlatBufferBuilder builder, long preSeasonId) { builder.AddLong(24, preSeasonId, 0); } + public static Offset EndGuideMissionSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionSeasonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*TitleLocalizeCode*/, false) + && verifier.VerifyString(tablePos, 8 /*PermanentInfomationLocalizeCode*/, false) + && verifier.VerifyString(tablePos, 10 /*InfomationLocalizeCode*/, false) + && verifier.VerifyField(tablePos, 12 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*Enabled*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 16 /*BannerOpenDate*/, false) + && verifier.VerifyString(tablePos, 18 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 20 /*StartableEndDate*/, false) + && verifier.VerifyString(tablePos, 22 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 24 /*CloseBannerAfterCompletion*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 26 /*MaximumLoginCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ExpiryDate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*SpineCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 32 /*RequirementParcelImage*/, false) + && verifier.VerifyString(tablePos, 34 /*RewardImage*/, false) + && verifier.VerifyString(tablePos, 36 /*LobbyBannerImage*/, false) + && verifier.VerifyString(tablePos, 38 /*BackgroundImage*/, false) + && verifier.VerifyString(tablePos, 40 /*TitleImage*/, false) + && verifier.VerifyField(tablePos, 42 /*RequirementParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*RequirementParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*RequirementParcelAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*TabType*/, 4 /*SCHALE.Common.FlatData.GuideMissionTabType*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*IsPermanent*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 52 /*PreSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs b/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs new file mode 100644 index 0000000..d5e21c1 --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 GuideMissionSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static GuideMissionSeasonExcelTable GetRootAsGuideMissionSeasonExcelTable(ByteBuffer _bb) { return GetRootAsGuideMissionSeasonExcelTable(_bb, new GuideMissionSeasonExcelTable()); } + public static GuideMissionSeasonExcelTable GetRootAsGuideMissionSeasonExcelTable(ByteBuffer _bb, GuideMissionSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public GuideMissionSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.GuideMissionSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionSeasonExcel?)(new SCHALE.Common.FlatData.GuideMissionSeasonExcel()).__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 CreateGuideMissionSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + GuideMissionSeasonExcelTable.AddDataList(builder, DataListOffset); + return GuideMissionSeasonExcelTable.EndGuideMissionSeasonExcelTable(builder); + } + + public static void StartGuideMissionSeasonExcelTable(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 EndGuideMissionSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class GuideMissionSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GuideMissionSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/GuideMissionTabType.cs b/SCHALE.Common/FlatData/GuideMissionTabType.cs new file mode 100644 index 0000000..bcfa8ce --- /dev/null +++ b/SCHALE.Common/FlatData/GuideMissionTabType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum GuideMissionTabType : int +{ + None = 0, + Daily = 1, + StageClear = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/HexaUnitGrade.cs b/SCHALE.Common/FlatData/HexaUnitGrade.cs new file mode 100644 index 0000000..892e98c --- /dev/null +++ b/SCHALE.Common/FlatData/HexaUnitGrade.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum HexaUnitGrade : int +{ + Grade1 = 0, + Grade2 = 1, + Grade3 = 2, + Boss = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/HitEffectPosition.cs b/SCHALE.Common/FlatData/HitEffectPosition.cs new file mode 100644 index 0000000..c11588b --- /dev/null +++ b/SCHALE.Common/FlatData/HitEffectPosition.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum HitEffectPosition : int +{ + Position = 0, + HeadBone = 1, + BodyBone = 2, + Follow = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs b/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs new file mode 100644 index 0000000..3e9390c --- /dev/null +++ b/SCHALE.Common/FlatData/HpBarAbbreviationExcel.cs @@ -0,0 +1,60 @@ +// +// 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 HpBarAbbreviationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static HpBarAbbreviationExcel GetRootAsHpBarAbbreviationExcel(ByteBuffer _bb) { return GetRootAsHpBarAbbreviationExcel(_bb, new HpBarAbbreviationExcel()); } + public static HpBarAbbreviationExcel GetRootAsHpBarAbbreviationExcel(ByteBuffer _bb, HpBarAbbreviationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public HpBarAbbreviationExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int MonsterLv { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StandardHpBar { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RaidBossHpBar { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateHpBarAbbreviationExcel(FlatBufferBuilder builder, + int MonsterLv = 0, + int StandardHpBar = 0, + int RaidBossHpBar = 0) { + builder.StartTable(3); + HpBarAbbreviationExcel.AddRaidBossHpBar(builder, RaidBossHpBar); + HpBarAbbreviationExcel.AddStandardHpBar(builder, StandardHpBar); + HpBarAbbreviationExcel.AddMonsterLv(builder, MonsterLv); + return HpBarAbbreviationExcel.EndHpBarAbbreviationExcel(builder); + } + + public static void StartHpBarAbbreviationExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddMonsterLv(FlatBufferBuilder builder, int monsterLv) { builder.AddInt(0, monsterLv, 0); } + public static void AddStandardHpBar(FlatBufferBuilder builder, int standardHpBar) { builder.AddInt(1, standardHpBar, 0); } + public static void AddRaidBossHpBar(FlatBufferBuilder builder, int raidBossHpBar) { builder.AddInt(2, raidBossHpBar, 0); } + public static Offset EndHpBarAbbreviationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class HpBarAbbreviationExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MonsterLv*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*StandardHpBar*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RaidBossHpBar*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs b/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs new file mode 100644 index 0000000..bccb8a1 --- /dev/null +++ b/SCHALE.Common/FlatData/HpBarAbbreviationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 HpBarAbbreviationExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static HpBarAbbreviationExcelTable GetRootAsHpBarAbbreviationExcelTable(ByteBuffer _bb) { return GetRootAsHpBarAbbreviationExcelTable(_bb, new HpBarAbbreviationExcelTable()); } + public static HpBarAbbreviationExcelTable GetRootAsHpBarAbbreviationExcelTable(ByteBuffer _bb, HpBarAbbreviationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public HpBarAbbreviationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.HpBarAbbreviationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.HpBarAbbreviationExcel?)(new SCHALE.Common.FlatData.HpBarAbbreviationExcel()).__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 CreateHpBarAbbreviationExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + HpBarAbbreviationExcelTable.AddDataList(builder, DataListOffset); + return HpBarAbbreviationExcelTable.EndHpBarAbbreviationExcelTable(builder); + } + + public static void StartHpBarAbbreviationExcelTable(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 EndHpBarAbbreviationExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class HpBarAbbreviationExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.HpBarAbbreviationExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs b/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs new file mode 100644 index 0000000..2221fe9 --- /dev/null +++ b/SCHALE.Common/FlatData/IdCardBackgroundExcel.cs @@ -0,0 +1,97 @@ +// +// 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 IdCardBackgroundExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static IdCardBackgroundExcel GetRootAsIdCardBackgroundExcel(ByteBuffer _bb) { return GetRootAsIdCardBackgroundExcel(_bb, new IdCardBackgroundExcel()); } + public static IdCardBackgroundExcel GetRootAsIdCardBackgroundExcel(ByteBuffer _bb, IdCardBackgroundExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public IdCardBackgroundExcel __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 SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public long DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool CollectionVisible { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsDefault { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string BgPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetBgPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetBgPathArray() { return __p.__vector_as_array(14); } + public uint LocalizeEtcId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Icon { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(18); } + + public static Offset CreateIdCardBackgroundExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + long DisplayOrder = 0, + bool CollectionVisible = false, + bool IsDefault = false, + StringOffset BgPathOffset = default(StringOffset), + uint LocalizeEtcId = 0, + StringOffset IconOffset = default(StringOffset)) { + builder.StartTable(8); + IdCardBackgroundExcel.AddDisplayOrder(builder, DisplayOrder); + IdCardBackgroundExcel.AddId(builder, Id); + IdCardBackgroundExcel.AddIcon(builder, IconOffset); + IdCardBackgroundExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + IdCardBackgroundExcel.AddBgPath(builder, BgPathOffset); + IdCardBackgroundExcel.AddRarity(builder, Rarity); + IdCardBackgroundExcel.AddIsDefault(builder, IsDefault); + IdCardBackgroundExcel.AddCollectionVisible(builder, CollectionVisible); + return IdCardBackgroundExcel.EndIdCardBackgroundExcel(builder); + } + + public static void StartIdCardBackgroundExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(1, (int)rarity, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(3, collectionVisible, false); } + public static void AddIsDefault(FlatBufferBuilder builder, bool isDefault) { builder.AddBool(4, isDefault, false); } + public static void AddBgPath(FlatBufferBuilder builder, StringOffset bgPathOffset) { builder.AddOffset(5, bgPathOffset.Value, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(6, localizeEtcId, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(7, iconOffset.Value, 0); } + public static Offset EndIdCardBackgroundExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class IdCardBackgroundExcelVerify +{ + 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 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*IsDefault*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 14 /*BgPath*/, false) + && verifier.VerifyField(tablePos, 16 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*Icon*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs b/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs new file mode 100644 index 0000000..727ad6c --- /dev/null +++ b/SCHALE.Common/FlatData/IdCardBackgroundExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 IdCardBackgroundExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static IdCardBackgroundExcelTable GetRootAsIdCardBackgroundExcelTable(ByteBuffer _bb) { return GetRootAsIdCardBackgroundExcelTable(_bb, new IdCardBackgroundExcelTable()); } + public static IdCardBackgroundExcelTable GetRootAsIdCardBackgroundExcelTable(ByteBuffer _bb, IdCardBackgroundExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public IdCardBackgroundExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.IdCardBackgroundExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.IdCardBackgroundExcel?)(new SCHALE.Common.FlatData.IdCardBackgroundExcel()).__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 CreateIdCardBackgroundExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + IdCardBackgroundExcelTable.AddDataList(builder, DataListOffset); + return IdCardBackgroundExcelTable.EndIdCardBackgroundExcelTable(builder); + } + + public static void StartIdCardBackgroundExcelTable(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 EndIdCardBackgroundExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class IdCardBackgroundExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.IdCardBackgroundExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/InformationExcel.cs b/SCHALE.Common/FlatData/InformationExcel.cs new file mode 100644 index 0000000..1cffcb3 --- /dev/null +++ b/SCHALE.Common/FlatData/InformationExcel.cs @@ -0,0 +1,94 @@ +// +// 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 InformationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static InformationExcel GetRootAsInformationExcel(ByteBuffer _bb) { return GetRootAsInformationExcel(_bb, new InformationExcel()); } + public static InformationExcel GetRootAsInformationExcel(ByteBuffer _bb, InformationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public InformationExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PageName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPageNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetPageNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetPageNameArray() { return __p.__vector_as_array(6); } + public string LocalizeCodeId { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCodeIdBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetLocalizeCodeIdArray() { return __p.__vector_as_array(8); } + public string TutorialParentName(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int TutorialParentNameLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public string UIName(int j) { int o = __p.__offset(12); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int UINameLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateInformationExcel(FlatBufferBuilder builder, + long GroupID = 0, + StringOffset PageNameOffset = default(StringOffset), + StringOffset LocalizeCodeIdOffset = default(StringOffset), + VectorOffset TutorialParentNameOffset = default(VectorOffset), + VectorOffset UINameOffset = default(VectorOffset)) { + builder.StartTable(5); + InformationExcel.AddGroupID(builder, GroupID); + InformationExcel.AddUIName(builder, UINameOffset); + InformationExcel.AddTutorialParentName(builder, TutorialParentNameOffset); + InformationExcel.AddLocalizeCodeId(builder, LocalizeCodeIdOffset); + InformationExcel.AddPageName(builder, PageNameOffset); + return InformationExcel.EndInformationExcel(builder); + } + + public static void StartInformationExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddGroupID(FlatBufferBuilder builder, long groupID) { builder.AddLong(0, groupID, 0); } + public static void AddPageName(FlatBufferBuilder builder, StringOffset pageNameOffset) { builder.AddOffset(1, pageNameOffset.Value, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, StringOffset localizeCodeIdOffset) { builder.AddOffset(2, localizeCodeIdOffset.Value, 0); } + public static void AddTutorialParentName(FlatBufferBuilder builder, VectorOffset tutorialParentNameOffset) { builder.AddOffset(3, tutorialParentNameOffset.Value, 0); } + public static VectorOffset CreateTutorialParentNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTutorialParentNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddUIName(FlatBufferBuilder builder, VectorOffset uINameOffset) { builder.AddOffset(4, uINameOffset.Value, 0); } + public static VectorOffset CreateUINameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndInformationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class InformationExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*PageName*/, false) + && verifier.VerifyString(tablePos, 8 /*LocalizeCodeId*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*TutorialParentName*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 12 /*UIName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/InformationExcelTable.cs b/SCHALE.Common/FlatData/InformationExcelTable.cs new file mode 100644 index 0000000..bef6bfa --- /dev/null +++ b/SCHALE.Common/FlatData/InformationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..d84fede --- /dev/null +++ b/SCHALE.Common/FlatData/InformationStrategyObjectExcel.cs @@ -0,0 +1,77 @@ +// +// 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 InformationStrategyObjectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static InformationStrategyObjectExcel GetRootAsInformationStrategyObjectExcel(ByteBuffer _bb) { return GetRootAsInformationStrategyObjectExcel(_bb, new InformationStrategyObjectExcel()); } + public static InformationStrategyObjectExcel GetRootAsInformationStrategyObjectExcel(ByteBuffer _bb, InformationStrategyObjectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public InformationStrategyObjectExcel __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 StageId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PageName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPageNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPageNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPageNameArray() { return __p.__vector_as_array(8); } + public string LocalizeCodeId { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeCodeIdBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetLocalizeCodeIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetLocalizeCodeIdArray() { return __p.__vector_as_array(10); } + + public static Offset CreateInformationStrategyObjectExcel(FlatBufferBuilder builder, + long Id = 0, + long StageId = 0, + StringOffset PageNameOffset = default(StringOffset), + StringOffset LocalizeCodeIdOffset = default(StringOffset)) { + builder.StartTable(4); + InformationStrategyObjectExcel.AddStageId(builder, StageId); + InformationStrategyObjectExcel.AddId(builder, Id); + InformationStrategyObjectExcel.AddLocalizeCodeId(builder, LocalizeCodeIdOffset); + InformationStrategyObjectExcel.AddPageName(builder, PageNameOffset); + return InformationStrategyObjectExcel.EndInformationStrategyObjectExcel(builder); + } + + public static void StartInformationStrategyObjectExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(1, stageId, 0); } + public static void AddPageName(FlatBufferBuilder builder, StringOffset pageNameOffset) { builder.AddOffset(2, pageNameOffset.Value, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, StringOffset localizeCodeIdOffset) { builder.AddOffset(3, localizeCodeIdOffset.Value, 0); } + public static Offset EndInformationStrategyObjectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class InformationStrategyObjectExcelVerify +{ + 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 /*StageId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*PageName*/, false) + && verifier.VerifyString(tablePos, 10 /*LocalizeCodeId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs b/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs new file mode 100644 index 0000000..0e2c8a0 --- /dev/null +++ b/SCHALE.Common/FlatData/InformationStrategyObjectExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 InformationStrategyObjectExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static InformationStrategyObjectExcelTable GetRootAsInformationStrategyObjectExcelTable(ByteBuffer _bb) { return GetRootAsInformationStrategyObjectExcelTable(_bb, new InformationStrategyObjectExcelTable()); } + public static InformationStrategyObjectExcelTable GetRootAsInformationStrategyObjectExcelTable(ByteBuffer _bb, InformationStrategyObjectExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public InformationStrategyObjectExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.InformationStrategyObjectExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.InformationStrategyObjectExcel?)(new SCHALE.Common.FlatData.InformationStrategyObjectExcel()).__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 CreateInformationStrategyObjectExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + InformationStrategyObjectExcelTable.AddDataList(builder, DataListOffset); + return InformationStrategyObjectExcelTable.EndInformationStrategyObjectExcelTable(builder); + } + + public static void StartInformationStrategyObjectExcelTable(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 EndInformationStrategyObjectExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class InformationStrategyObjectExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.InformationStrategyObjectExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ItemCategory.cs b/SCHALE.Common/FlatData/ItemCategory.cs new file mode 100644 index 0000000..e526008 --- /dev/null +++ b/SCHALE.Common/FlatData/ItemCategory.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ItemCategory : int +{ + Coin = 0, + CharacterExpGrowth = 1, + SecretStone = 2, + Material = 3, + Consumable = 4, + Collectible = 5, + Favor = 6, + RecruitCoin = 7, + InvisibleToken = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/ItemExcel.cs b/SCHALE.Common/FlatData/ItemExcel.cs new file mode 100644 index 0000000..b646445 --- /dev/null +++ b/SCHALE.Common/FlatData/ItemExcel.cs @@ -0,0 +1,247 @@ +// +// 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 ItemExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ItemExcel GetRootAsItemExcel(ByteBuffer _bb) { return GetRootAsItemExcel(_bb, new ItemExcel()); } + public static ItemExcel GetRootAsItemExcel(ByteBuffer _bb, ItemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ItemExcel __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 GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public uint LocalizeEtcId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ItemCategory ItemCategory { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ItemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ItemCategory.Coin; } } + public long Quality { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Icon { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(18); } + public string SpriteName { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpriteNameBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetSpriteNameBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetSpriteNameArray() { return __p.__vector_as_array(20); } + public int StackableMax { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StackableFunction { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool ImmediateUse { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType UsingResultParcelType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long UsingResultId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UsingResultAmount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MailType MailType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MailType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MailType.System; } } + public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ExpiryChangeId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExpiryChangeAmount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool CanTierUpgrade { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long TierUpgradeRecipeCraftId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetTagsBytes() { return __p.__vector_as_span(46, 4); } +#else + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(46); 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 CraftQualityTier0 { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier1 { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftQualityTier2 { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShiftingCraftQuality { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxGiftTags { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ShopCategoryType ShopCategory(int j) { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ShopCategoryType)0; } + public int ShopCategoryLength { get { int o = __p.__offset(58); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetShopCategoryBytes() { return __p.__vector_as_span(58, 4); } +#else + public ArraySegment? GetShopCategoryBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public SCHALE.Common.FlatData.ShopCategoryType[] GetShopCategoryArray() { int o = __p.__offset(58); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ShopCategoryType[] a = new SCHALE.Common.FlatData.ShopCategoryType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(p + i * 4); } return a; } + public string ExpirationDateTime { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExpirationDateTimeBytes() { return __p.__vector_as_span(60, 1); } +#else + public ArraySegment? GetExpirationDateTimeBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public byte[] GetExpirationDateTimeArray() { return __p.__vector_as_array(60); } + public int ExpirationNotifyDateIn { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long ShortcutTypeId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.GachaTicketType GachaTicket { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None; } } + + public static Offset CreateItemExcel(FlatBufferBuilder builder, + long Id = 0, + long GroupId = 0, + SCHALE.Common.FlatData.Rarity Rarity = SCHALE.Common.FlatData.Rarity.N, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.ItemCategory ItemCategory = SCHALE.Common.FlatData.ItemCategory.Coin, + long Quality = 0, + StringOffset IconOffset = default(StringOffset), + StringOffset SpriteNameOffset = default(StringOffset), + int StackableMax = 0, + int StackableFunction = 0, + bool ImmediateUse = false, + SCHALE.Common.FlatData.ParcelType UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None, + long UsingResultId = 0, + long UsingResultAmount = 0, + SCHALE.Common.FlatData.MailType MailType = SCHALE.Common.FlatData.MailType.System, + SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ExpiryChangeId = 0, + long ExpiryChangeAmount = 0, + bool CanTierUpgrade = false, + long TierUpgradeRecipeCraftId = 0, + VectorOffset TagsOffset = default(VectorOffset), + long CraftQualityTier0 = 0, + long CraftQualityTier1 = 0, + long CraftQualityTier2 = 0, + long ShiftingCraftQuality = 0, + int MaxGiftTags = 0, + VectorOffset ShopCategoryOffset = default(VectorOffset), + StringOffset ExpirationDateTimeOffset = default(StringOffset), + int ExpirationNotifyDateIn = 0, + long ShortcutTypeId = 0, + SCHALE.Common.FlatData.GachaTicketType GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None) { + builder.StartTable(32); + ItemExcel.AddShortcutTypeId(builder, ShortcutTypeId); + ItemExcel.AddShiftingCraftQuality(builder, ShiftingCraftQuality); + ItemExcel.AddCraftQualityTier2(builder, CraftQualityTier2); + ItemExcel.AddCraftQualityTier1(builder, CraftQualityTier1); + ItemExcel.AddCraftQualityTier0(builder, CraftQualityTier0); + ItemExcel.AddTierUpgradeRecipeCraftId(builder, TierUpgradeRecipeCraftId); + ItemExcel.AddExpiryChangeAmount(builder, ExpiryChangeAmount); + ItemExcel.AddExpiryChangeId(builder, ExpiryChangeId); + ItemExcel.AddUsingResultAmount(builder, UsingResultAmount); + ItemExcel.AddUsingResultId(builder, UsingResultId); + ItemExcel.AddQuality(builder, Quality); + ItemExcel.AddGroupId(builder, GroupId); + ItemExcel.AddId(builder, Id); + ItemExcel.AddGachaTicket(builder, GachaTicket); + ItemExcel.AddExpirationNotifyDateIn(builder, ExpirationNotifyDateIn); + ItemExcel.AddExpirationDateTime(builder, ExpirationDateTimeOffset); + ItemExcel.AddShopCategory(builder, ShopCategoryOffset); + ItemExcel.AddMaxGiftTags(builder, MaxGiftTags); + ItemExcel.AddTags(builder, TagsOffset); + ItemExcel.AddExpiryChangeParcelType(builder, ExpiryChangeParcelType); + ItemExcel.AddMailType(builder, MailType); + ItemExcel.AddUsingResultParcelType(builder, UsingResultParcelType); + ItemExcel.AddStackableFunction(builder, StackableFunction); + ItemExcel.AddStackableMax(builder, StackableMax); + ItemExcel.AddSpriteName(builder, SpriteNameOffset); + ItemExcel.AddIcon(builder, IconOffset); + ItemExcel.AddItemCategory(builder, ItemCategory); + ItemExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + ItemExcel.AddProductionStep(builder, ProductionStep); + ItemExcel.AddRarity(builder, Rarity); + ItemExcel.AddCanTierUpgrade(builder, CanTierUpgrade); + ItemExcel.AddImmediateUse(builder, ImmediateUse); + return ItemExcel.EndItemExcel(builder); + } + + public static void StartItemExcel(FlatBufferBuilder builder) { builder.StartTable(32); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(1, groupId, 0); } + public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(2, (int)rarity, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(4, localizeEtcId, 0); } + public static void AddItemCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.ItemCategory itemCategory) { builder.AddInt(5, (int)itemCategory, 0); } + public static void AddQuality(FlatBufferBuilder builder, long quality) { builder.AddLong(6, quality, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(7, iconOffset.Value, 0); } + public static void AddSpriteName(FlatBufferBuilder builder, StringOffset spriteNameOffset) { builder.AddOffset(8, spriteNameOffset.Value, 0); } + public static void AddStackableMax(FlatBufferBuilder builder, int stackableMax) { builder.AddInt(9, stackableMax, 0); } + public static void AddStackableFunction(FlatBufferBuilder builder, int stackableFunction) { builder.AddInt(10, stackableFunction, 0); } + public static void AddImmediateUse(FlatBufferBuilder builder, bool immediateUse) { builder.AddBool(11, immediateUse, false); } + public static void AddUsingResultParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType usingResultParcelType) { builder.AddInt(12, (int)usingResultParcelType, 0); } + public static void AddUsingResultId(FlatBufferBuilder builder, long usingResultId) { builder.AddLong(13, usingResultId, 0); } + public static void AddUsingResultAmount(FlatBufferBuilder builder, long usingResultAmount) { builder.AddLong(14, usingResultAmount, 0); } + public static void AddMailType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MailType mailType) { builder.AddInt(15, (int)mailType, 0); } + public static void AddExpiryChangeParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType expiryChangeParcelType) { builder.AddInt(16, (int)expiryChangeParcelType, 0); } + public static void AddExpiryChangeId(FlatBufferBuilder builder, long expiryChangeId) { builder.AddLong(17, expiryChangeId, 0); } + public static void AddExpiryChangeAmount(FlatBufferBuilder builder, long expiryChangeAmount) { builder.AddLong(18, expiryChangeAmount, 0); } + public static void AddCanTierUpgrade(FlatBufferBuilder builder, bool canTierUpgrade) { builder.AddBool(19, canTierUpgrade, false); } + public static void AddTierUpgradeRecipeCraftId(FlatBufferBuilder builder, long tierUpgradeRecipeCraftId) { builder.AddLong(20, tierUpgradeRecipeCraftId, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(21, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(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 CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCraftQualityTier0(FlatBufferBuilder builder, long craftQualityTier0) { builder.AddLong(22, craftQualityTier0, 0); } + public static void AddCraftQualityTier1(FlatBufferBuilder builder, long craftQualityTier1) { builder.AddLong(23, craftQualityTier1, 0); } + public static void AddCraftQualityTier2(FlatBufferBuilder builder, long craftQualityTier2) { builder.AddLong(24, craftQualityTier2, 0); } + public static void AddShiftingCraftQuality(FlatBufferBuilder builder, long shiftingCraftQuality) { builder.AddLong(25, shiftingCraftQuality, 0); } + public static void AddMaxGiftTags(FlatBufferBuilder builder, int maxGiftTags) { builder.AddInt(26, maxGiftTags, 0); } + public static void AddShopCategory(FlatBufferBuilder builder, VectorOffset shopCategoryOffset) { builder.AddOffset(27, shopCategoryOffset.Value, 0); } + public static VectorOffset CreateShopCategoryVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType[] 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 CreateShopCategoryVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopCategoryVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopCategoryVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShopCategoryVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExpirationDateTime(FlatBufferBuilder builder, StringOffset expirationDateTimeOffset) { builder.AddOffset(28, expirationDateTimeOffset.Value, 0); } + public static void AddExpirationNotifyDateIn(FlatBufferBuilder builder, int expirationNotifyDateIn) { builder.AddInt(29, expirationNotifyDateIn, 0); } + public static void AddShortcutTypeId(FlatBufferBuilder builder, long shortcutTypeId) { builder.AddLong(30, shortcutTypeId, 0); } + public static void AddGachaTicket(FlatBufferBuilder builder, SCHALE.Common.FlatData.GachaTicketType gachaTicket) { builder.AddInt(31, (int)gachaTicket, 0); } + public static Offset EndItemExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ItemExcelVerify +{ + 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 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ItemCategory*/, 4 /*SCHALE.Common.FlatData.ItemCategory*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Quality*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*Icon*/, false) + && verifier.VerifyString(tablePos, 20 /*SpriteName*/, false) + && verifier.VerifyField(tablePos, 22 /*StackableMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*StackableFunction*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*ImmediateUse*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 28 /*UsingResultParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*UsingResultId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*UsingResultAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*MailType*/, 4 /*SCHALE.Common.FlatData.MailType*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*ExpiryChangeParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*ExpiryChangeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*ExpiryChangeAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*CanTierUpgrade*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 44 /*TierUpgradeRecipeCraftId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 48 /*CraftQualityTier0*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*CraftQualityTier1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*CraftQualityTier2*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*ShiftingCraftQuality*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 56 /*MaxGiftTags*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 58 /*ShopCategory*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, false) + && verifier.VerifyString(tablePos, 60 /*ExpirationDateTime*/, false) + && verifier.VerifyField(tablePos, 62 /*ExpirationNotifyDateIn*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 64 /*ShortcutTypeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*GachaTicket*/, 4 /*SCHALE.Common.FlatData.GachaTicketType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ItemExcelTable.cs b/SCHALE.Common/FlatData/ItemExcelTable.cs new file mode 100644 index 0000000..835fa32 --- /dev/null +++ b/SCHALE.Common/FlatData/ItemExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ItemExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ItemExcelTable GetRootAsItemExcelTable(ByteBuffer _bb) { return GetRootAsItemExcelTable(_bb, new ItemExcelTable()); } + public static ItemExcelTable GetRootAsItemExcelTable(ByteBuffer _bb, ItemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ItemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ItemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ItemExcel?)(new SCHALE.Common.FlatData.ItemExcel()).__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 CreateItemExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ItemExcelTable.AddDataList(builder, DataListOffset); + return ItemExcelTable.EndItemExcelTable(builder); + } + + public static void StartItemExcelTable(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 EndItemExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ItemExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ItemExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/JudgeGrade.cs b/SCHALE.Common/FlatData/JudgeGrade.cs new file mode 100644 index 0000000..971886f --- /dev/null +++ b/SCHALE.Common/FlatData/JudgeGrade.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum JudgeGrade : int +{ + None = 0, + Miss = 1, + Attack = 2, + Critical = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/KnockBackExcel.cs b/SCHALE.Common/FlatData/KnockBackExcel.cs new file mode 100644 index 0000000..0bf2f47 --- /dev/null +++ b/SCHALE.Common/FlatData/KnockBackExcel.cs @@ -0,0 +1,60 @@ +// +// 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 KnockBackExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static KnockBackExcel GetRootAsKnockBackExcel(ByteBuffer _bb) { return GetRootAsKnockBackExcel(_bb, new KnockBackExcel()); } + public static KnockBackExcel GetRootAsKnockBackExcel(ByteBuffer _bb, KnockBackExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KnockBackExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Index { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float Dist { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Speed { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateKnockBackExcel(FlatBufferBuilder builder, + long Index = 0, + float Dist = 0.0f, + float Speed = 0.0f) { + builder.StartTable(3); + KnockBackExcel.AddIndex(builder, Index); + KnockBackExcel.AddSpeed(builder, Speed); + KnockBackExcel.AddDist(builder, Dist); + return KnockBackExcel.EndKnockBackExcel(builder); + } + + public static void StartKnockBackExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddIndex(FlatBufferBuilder builder, long index) { builder.AddLong(0, index, 0); } + public static void AddDist(FlatBufferBuilder builder, float dist) { builder.AddFloat(1, dist, 0.0f); } + public static void AddSpeed(FlatBufferBuilder builder, float speed) { builder.AddFloat(2, speed, 0.0f); } + public static Offset EndKnockBackExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KnockBackExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Index*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Dist*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Speed*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/KnockBackExcelTable.cs b/SCHALE.Common/FlatData/KnockBackExcelTable.cs new file mode 100644 index 0000000..eec581c --- /dev/null +++ b/SCHALE.Common/FlatData/KnockBackExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 KnockBackExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static KnockBackExcelTable GetRootAsKnockBackExcelTable(ByteBuffer _bb) { return GetRootAsKnockBackExcelTable(_bb, new KnockBackExcelTable()); } + public static KnockBackExcelTable GetRootAsKnockBackExcelTable(ByteBuffer _bb, KnockBackExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public KnockBackExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.KnockBackExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.KnockBackExcel?)(new SCHALE.Common.FlatData.KnockBackExcel()).__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 CreateKnockBackExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + KnockBackExcelTable.AddDataList(builder, DataListOffset); + return KnockBackExcelTable.EndKnockBackExcelTable(builder); + } + + public static void StartKnockBackExcelTable(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 EndKnockBackExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class KnockBackExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.KnockBackExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/KnockbackDirection.cs b/SCHALE.Common/FlatData/KnockbackDirection.cs new file mode 100644 index 0000000..1a1d212 --- /dev/null +++ b/SCHALE.Common/FlatData/KnockbackDirection.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum KnockbackDirection : int +{ + TargetToCaster = 0, + CasterToTarget = 1, + TargetToHitPosition = 2, + HitPositionToTarget = 3, + CasterToHitPosition = 4, + HitPositionToCaster = 5, + Caster = 6, + Target = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/Language.cs b/SCHALE.Common/FlatData/Language.cs new file mode 100644 index 0000000..a158eef --- /dev/null +++ b/SCHALE.Common/FlatData/Language.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Language : int +{ + Kr = 0, + Jp = 1, + Th = 2, + Tw = 3, + En = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/LimitedStageExcel.cs b/SCHALE.Common/FlatData/LimitedStageExcel.cs new file mode 100644 index 0000000..35ad211 --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageExcel.cs @@ -0,0 +1,259 @@ +// +// 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 LimitedStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageExcel GetRootAsLimitedStageExcel(ByteBuffer _bb) { return GetRootAsLimitedStageExcel(_bb, new LimitedStageExcel()); } + public static LimitedStageExcel GetRootAsLimitedStageExcel(ByteBuffer _bb, LimitedStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public long SeasonId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public string StageNumber { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStageNumberBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetStageNumberBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetStageNumberArray() { return __p.__vector_as_array(12); } + public int StageDisplay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + 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 BattleDuration { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); 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(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StageEnterCostAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StageEnterEchelonCount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StarConditionTacticRankSCount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StarConditionTurnCount { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnterScenarioGroupId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int EnterScenarioGroupIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnterScenarioGroupIdBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetEnterScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetEnterScenarioGroupIdArray() { return __p.__vector_as_array(36); } + public long ClearScenarioGroupId(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ClearScenarioGroupIdLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetClearScenarioGroupIdBytes() { return __p.__vector_as_span(38, 8); } +#else + public ArraySegment? GetClearScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(38); } + public string StrategyMap { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetStrategyMapArray() { return __p.__vector_as_array(40); } + public string StrategyMapBG { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(42); } + public long StageRewardId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxTurn { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(48); 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(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string BgmId { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgmIdBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetBgmIdArray() { return __p.__vector_as_array(52); } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(54); 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(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(58); 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(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool InstantClear { get { int o = __p.__offset(62); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BuffContentId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ChallengeDisplay { get { int o = __p.__offset(66); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateLimitedStageExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset), + long SeasonId = 0, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + StringOffset StageNumberOffset = default(StringOffset), + int StageDisplay = 0, + long PrevStageId = 0, + long OpenDate = 0, + long OpenEventPoint = 0, + long BattleDuration = 0, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + long StageEnterCostId = 0, + int StageEnterCostAmount = 0, + int StageEnterEchelonCount = 0, + long StarConditionTacticRankSCount = 0, + long StarConditionTurnCount = 0, + VectorOffset EnterScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), + StringOffset StrategyMapOffset = default(StringOffset), + StringOffset StrategyMapBGOffset = default(StringOffset), + long StageRewardId = 0, + int MaxTurn = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + int RecommandLevel = 0, + StringOffset BgmIdOffset = default(StringOffset), + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, + long GroundID = 0, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long BGMId = 0, + bool InstantClear = false, + long BuffContentId = 0, + bool ChallengeDisplay = false) { + builder.StartTable(32); + LimitedStageExcel.AddBuffContentId(builder, BuffContentId); + LimitedStageExcel.AddBGMId(builder, BGMId); + LimitedStageExcel.AddGroundID(builder, GroundID); + LimitedStageExcel.AddStageRewardId(builder, StageRewardId); + LimitedStageExcel.AddStarConditionTurnCount(builder, StarConditionTurnCount); + LimitedStageExcel.AddStarConditionTacticRankSCount(builder, StarConditionTacticRankSCount); + LimitedStageExcel.AddStageEnterCostId(builder, StageEnterCostId); + LimitedStageExcel.AddBattleDuration(builder, BattleDuration); + LimitedStageExcel.AddOpenEventPoint(builder, OpenEventPoint); + LimitedStageExcel.AddOpenDate(builder, OpenDate); + LimitedStageExcel.AddPrevStageId(builder, PrevStageId); + LimitedStageExcel.AddSeasonId(builder, SeasonId); + LimitedStageExcel.AddId(builder, Id); + LimitedStageExcel.AddContentType(builder, ContentType); + LimitedStageExcel.AddStrategyEnvironment(builder, StrategyEnvironment); + LimitedStageExcel.AddBgmId(builder, BgmIdOffset); + LimitedStageExcel.AddRecommandLevel(builder, RecommandLevel); + LimitedStageExcel.AddStageTopography(builder, StageTopography); + LimitedStageExcel.AddMaxTurn(builder, MaxTurn); + LimitedStageExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); + LimitedStageExcel.AddStrategyMap(builder, StrategyMapOffset); + LimitedStageExcel.AddClearScenarioGroupId(builder, ClearScenarioGroupIdOffset); + LimitedStageExcel.AddEnterScenarioGroupId(builder, EnterScenarioGroupIdOffset); + LimitedStageExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); + LimitedStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmount); + LimitedStageExcel.AddStageEnterCostType(builder, StageEnterCostType); + LimitedStageExcel.AddStageDisplay(builder, StageDisplay); + LimitedStageExcel.AddStageNumber(builder, StageNumberOffset); + LimitedStageExcel.AddStageDifficulty(builder, StageDifficulty); + LimitedStageExcel.AddName(builder, NameOffset); + LimitedStageExcel.AddChallengeDisplay(builder, ChallengeDisplay); + LimitedStageExcel.AddInstantClear(builder, InstantClear); + return LimitedStageExcel.EndLimitedStageExcel(builder); + } + + public static void StartLimitedStageExcel(FlatBufferBuilder builder) { builder.StartTable(32); } + 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 AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(2, seasonId, 0); } + public static void AddStageDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty stageDifficulty) { builder.AddInt(3, (int)stageDifficulty, 0); } + public static void AddStageNumber(FlatBufferBuilder builder, StringOffset stageNumberOffset) { builder.AddOffset(4, stageNumberOffset.Value, 0); } + public static void AddStageDisplay(FlatBufferBuilder builder, int stageDisplay) { builder.AddInt(5, stageDisplay, 0); } + 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 AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(9, battleDuration, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType stageEnterCostType) { builder.AddInt(10, (int)stageEnterCostType, 0); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, long stageEnterCostId) { builder.AddLong(11, stageEnterCostId, 0); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, int stageEnterCostAmount) { builder.AddInt(12, stageEnterCostAmount, 0); } + public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(13, stageEnterEchelonCount, 0); } + public static void AddStarConditionTacticRankSCount(FlatBufferBuilder builder, long starConditionTacticRankSCount) { builder.AddLong(14, starConditionTacticRankSCount, 0); } + public static void AddStarConditionTurnCount(FlatBufferBuilder builder, long starConditionTurnCount) { builder.AddLong(15, starConditionTurnCount, 0); } + public static void AddEnterScenarioGroupId(FlatBufferBuilder builder, VectorOffset enterScenarioGroupIdOffset) { builder.AddOffset(16, 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(17, 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(18, strategyMapOffset.Value, 0); } + public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(19, strategyMapBGOffset.Value, 0); } + public static void AddStageRewardId(FlatBufferBuilder builder, long stageRewardId) { builder.AddLong(20, stageRewardId, 0); } + public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(21, maxTurn, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(22, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(23, recommandLevel, 0); } + public static void AddBgmId(FlatBufferBuilder builder, StringOffset bgmIdOffset) { builder.AddOffset(24, bgmIdOffset.Value, 0); } + public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(25, (int)strategyEnvironment, 0); } + public static void AddGroundID(FlatBufferBuilder builder, long groundID) { builder.AddLong(26, groundID, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(27, (int)contentType, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(28, bGMId, 0); } + public static void AddInstantClear(FlatBufferBuilder builder, bool instantClear) { builder.AddBool(29, instantClear, false); } + public static void AddBuffContentId(FlatBufferBuilder builder, long buffContentId) { builder.AddLong(30, buffContentId, 0); } + public static void AddChallengeDisplay(FlatBufferBuilder builder, bool challengeDisplay) { builder.AddBool(31, challengeDisplay, false); } + public static Offset EndLimitedStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StageDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*StageNumber*/, false) + && verifier.VerifyField(tablePos, 14 /*StageDisplay*/, 4 /*int*/, 4, false) + && 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 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*StageEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*StageEnterCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*StarConditionTacticRankSCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*StarConditionTurnCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*EnterScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*ClearScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 40 /*StrategyMap*/, false) + && verifier.VerifyString(tablePos, 42 /*StrategyMapBG*/, false) + && verifier.VerifyField(tablePos, 44 /*StageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*MaxTurn*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 52 /*BgmId*/, false) + && verifier.VerifyField(tablePos, 54 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*GroundID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 62 /*InstantClear*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 64 /*BuffContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*ChallengeDisplay*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LimitedStageExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageExcelTable.cs new file mode 100644 index 0000000..912c1c1 --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LimitedStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageExcelTable GetRootAsLimitedStageExcelTable(ByteBuffer _bb) { return GetRootAsLimitedStageExcelTable(_bb, new LimitedStageExcelTable()); } + public static LimitedStageExcelTable GetRootAsLimitedStageExcelTable(ByteBuffer _bb, LimitedStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LimitedStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LimitedStageExcel?)(new SCHALE.Common.FlatData.LimitedStageExcel()).__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 CreateLimitedStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LimitedStageExcelTable.AddDataList(builder, DataListOffset); + return LimitedStageExcelTable.EndLimitedStageExcelTable(builder); + } + + public static void StartLimitedStageExcelTable(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 EndLimitedStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LimitedStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs new file mode 100644 index 0000000..72fc5df --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 LimitedStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageRewardExcel GetRootAsLimitedStageRewardExcel(ByteBuffer _bb) { return GetRootAsLimitedStageRewardExcel(_bb, new LimitedStageRewardExcel()); } + public static LimitedStageRewardExcel GetRootAsLimitedStageRewardExcel(ByteBuffer _bb, LimitedStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateLimitedStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardId = 0, + int RewardAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + LimitedStageRewardExcel.AddRewardId(builder, RewardId); + LimitedStageRewardExcel.AddGroupId(builder, GroupId); + LimitedStageRewardExcel.AddRewardAmount(builder, RewardAmount); + LimitedStageRewardExcel.AddRewardParcelType(builder, RewardParcelType); + LimitedStageRewardExcel.AddRewardProb(builder, RewardProb); + LimitedStageRewardExcel.AddRewardTag(builder, RewardTag); + LimitedStageRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return LimitedStageRewardExcel.EndLimitedStageRewardExcel(builder); + } + + public static void StartLimitedStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(2, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(4, rewardId, 0); } + public static void AddRewardAmount(FlatBufferBuilder builder, int rewardAmount) { builder.AddInt(5, rewardAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndLimitedStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs new file mode 100644 index 0000000..748529e --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LimitedStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageRewardExcelTable GetRootAsLimitedStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsLimitedStageRewardExcelTable(_bb, new LimitedStageRewardExcelTable()); } + public static LimitedStageRewardExcelTable GetRootAsLimitedStageRewardExcelTable(ByteBuffer _bb, LimitedStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LimitedStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LimitedStageRewardExcel?)(new SCHALE.Common.FlatData.LimitedStageRewardExcel()).__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 CreateLimitedStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LimitedStageRewardExcelTable.AddDataList(builder, DataListOffset); + return LimitedStageRewardExcelTable.EndLimitedStageRewardExcelTable(builder); + } + + public static void StartLimitedStageRewardExcelTable(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 EndLimitedStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LimitedStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs b/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs new file mode 100644 index 0000000..316666c --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageSeasonExcel.cs @@ -0,0 +1,87 @@ +// +// 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 LimitedStageSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageSeasonExcel GetRootAsLimitedStageSeasonExcel(ByteBuffer _bb) { return GetRootAsLimitedStageSeasonExcel(_bb, new LimitedStageSeasonExcel()); } + public static LimitedStageSeasonExcel GetRootAsLimitedStageSeasonExcel(ByteBuffer _bb, LimitedStageSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageSeasonExcel __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 string StartDate { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(6); } + public string EndDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(8); } + public long TypeACount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TypeBCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TypeCCount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateLimitedStageSeasonExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long TypeACount = 0, + long TypeBCount = 0, + long TypeCCount = 0) { + builder.StartTable(6); + LimitedStageSeasonExcel.AddTypeCCount(builder, TypeCCount); + LimitedStageSeasonExcel.AddTypeBCount(builder, TypeBCount); + LimitedStageSeasonExcel.AddTypeACount(builder, TypeACount); + LimitedStageSeasonExcel.AddId(builder, Id); + LimitedStageSeasonExcel.AddEndDate(builder, EndDateOffset); + LimitedStageSeasonExcel.AddStartDate(builder, StartDateOffset); + return LimitedStageSeasonExcel.EndLimitedStageSeasonExcel(builder); + } + + public static void StartLimitedStageSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(1, startDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(2, endDateOffset.Value, 0); } + public static void AddTypeACount(FlatBufferBuilder builder, long typeACount) { builder.AddLong(3, typeACount, 0); } + public static void AddTypeBCount(FlatBufferBuilder builder, long typeBCount) { builder.AddLong(4, typeBCount, 0); } + public static void AddTypeCCount(FlatBufferBuilder builder, long typeCCount) { builder.AddLong(5, typeCCount, 0); } + public static Offset EndLimitedStageSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageSeasonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 8 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 10 /*TypeACount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*TypeBCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*TypeCCount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs b/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs new file mode 100644 index 0000000..45cad31 --- /dev/null +++ b/SCHALE.Common/FlatData/LimitedStageSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LimitedStageSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LimitedStageSeasonExcelTable GetRootAsLimitedStageSeasonExcelTable(ByteBuffer _bb) { return GetRootAsLimitedStageSeasonExcelTable(_bb, new LimitedStageSeasonExcelTable()); } + public static LimitedStageSeasonExcelTable GetRootAsLimitedStageSeasonExcelTable(ByteBuffer _bb, LimitedStageSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LimitedStageSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LimitedStageSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LimitedStageSeasonExcel?)(new SCHALE.Common.FlatData.LimitedStageSeasonExcel()).__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 CreateLimitedStageSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LimitedStageSeasonExcelTable.AddDataList(builder, DataListOffset); + return LimitedStageSeasonExcelTable.EndLimitedStageSeasonExcelTable(builder); + } + + public static void StartLimitedStageSeasonExcelTable(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 EndLimitedStageSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LimitedStageSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LimitedStageSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LoadingImageExcel.cs b/SCHALE.Common/FlatData/LoadingImageExcel.cs new file mode 100644 index 0000000..d677531 --- /dev/null +++ b/SCHALE.Common/FlatData/LoadingImageExcel.cs @@ -0,0 +1,77 @@ +// +// 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 LoadingImageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LoadingImageExcel GetRootAsLoadingImageExcel(ByteBuffer _bb) { return GetRootAsLoadingImageExcel(_bb, new LoadingImageExcel()); } + public static LoadingImageExcel GetRootAsLoadingImageExcel(ByteBuffer _bb, LoadingImageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LoadingImageExcel __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 string ImagePathKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetImagePathKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetImagePathKrArray() { return __p.__vector_as_array(6); } + public string ImagePathJp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetImagePathJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetImagePathJpArray() { return __p.__vector_as_array(8); } + public int DisplayWeight { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateLoadingImageExcel(FlatBufferBuilder builder, + long ID = 0, + StringOffset ImagePathKrOffset = default(StringOffset), + StringOffset ImagePathJpOffset = default(StringOffset), + int DisplayWeight = 0) { + builder.StartTable(4); + LoadingImageExcel.AddID(builder, ID); + LoadingImageExcel.AddDisplayWeight(builder, DisplayWeight); + LoadingImageExcel.AddImagePathJp(builder, ImagePathJpOffset); + LoadingImageExcel.AddImagePathKr(builder, ImagePathKrOffset); + return LoadingImageExcel.EndLoadingImageExcel(builder); + } + + public static void StartLoadingImageExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddImagePathKr(FlatBufferBuilder builder, StringOffset imagePathKrOffset) { builder.AddOffset(1, imagePathKrOffset.Value, 0); } + public static void AddImagePathJp(FlatBufferBuilder builder, StringOffset imagePathJpOffset) { builder.AddOffset(2, imagePathJpOffset.Value, 0); } + public static void AddDisplayWeight(FlatBufferBuilder builder, int displayWeight) { builder.AddInt(3, displayWeight, 0); } + public static Offset EndLoadingImageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LoadingImageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*ImagePathKr*/, false) + && verifier.VerifyString(tablePos, 8 /*ImagePathJp*/, false) + && verifier.VerifyField(tablePos, 10 /*DisplayWeight*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs new file mode 100644 index 0000000..0513d15 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs @@ -0,0 +1,457 @@ +// +// 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 LocalizeCharProfileExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeCharProfileExcel GetRootAsLocalizeCharProfileExcel(ByteBuffer _bb) { return GetRootAsLocalizeCharProfileExcel(_bb, new LocalizeCharProfileExcel()); } + public static LocalizeCharProfileExcel GetRootAsLocalizeCharProfileExcel(ByteBuffer _bb, LocalizeCharProfileExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeCharProfileExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StatusMessageKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStatusMessageKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetStatusMessageKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetStatusMessageKrArray() { return __p.__vector_as_array(6); } + public string StatusMessageJp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStatusMessageJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetStatusMessageJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetStatusMessageJpArray() { return __p.__vector_as_array(8); } + public string FullNameKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFullNameKrBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetFullNameKrBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetFullNameKrArray() { return __p.__vector_as_array(10); } + public string FullNameJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFullNameJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetFullNameJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetFullNameJpArray() { return __p.__vector_as_array(12); } + public string FamilyNameKr { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFamilyNameKrBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetFamilyNameKrBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetFamilyNameKrArray() { return __p.__vector_as_array(14); } + public string FamilyNameRubyKr { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFamilyNameRubyKrBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetFamilyNameRubyKrBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetFamilyNameRubyKrArray() { return __p.__vector_as_array(16); } + public string PersonalNameKr { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPersonalNameKrBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetPersonalNameKrBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetPersonalNameKrArray() { return __p.__vector_as_array(18); } + public string PersonalNameRubyKr { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPersonalNameRubyKrBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetPersonalNameRubyKrBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetPersonalNameRubyKrArray() { return __p.__vector_as_array(20); } + public string FamilyNameJp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFamilyNameJpBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetFamilyNameJpBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetFamilyNameJpArray() { return __p.__vector_as_array(22); } + public string FamilyNameRubyJp { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFamilyNameRubyJpBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetFamilyNameRubyJpBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetFamilyNameRubyJpArray() { return __p.__vector_as_array(24); } + public string PersonalNameJp { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPersonalNameJpBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetPersonalNameJpBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetPersonalNameJpArray() { return __p.__vector_as_array(26); } + public string PersonalNameRubyJp { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPersonalNameRubyJpBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetPersonalNameRubyJpBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetPersonalNameRubyJpArray() { return __p.__vector_as_array(28); } + public string SchoolYearKr { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSchoolYearKrBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetSchoolYearKrBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetSchoolYearKrArray() { return __p.__vector_as_array(30); } + public string SchoolYearJp { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSchoolYearJpBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetSchoolYearJpBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetSchoolYearJpArray() { return __p.__vector_as_array(32); } + public string CharacterAgeKr { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterAgeKrBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetCharacterAgeKrBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetCharacterAgeKrArray() { return __p.__vector_as_array(34); } + public string CharacterAgeJp { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterAgeJpBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetCharacterAgeJpBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetCharacterAgeJpArray() { return __p.__vector_as_array(36); } + public string BirthDay { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBirthDayBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetBirthDayBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetBirthDayArray() { return __p.__vector_as_array(38); } + public string BirthdayKr { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBirthdayKrBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetBirthdayKrBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetBirthdayKrArray() { return __p.__vector_as_array(40); } + public string BirthdayJp { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBirthdayJpBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetBirthdayJpBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetBirthdayJpArray() { return __p.__vector_as_array(42); } + public string CharHeightKr { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharHeightKrBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetCharHeightKrBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetCharHeightKrArray() { return __p.__vector_as_array(44); } + public string CharHeightJp { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharHeightJpBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetCharHeightJpBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetCharHeightJpArray() { return __p.__vector_as_array(46); } + public string DesignerNameKr { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDesignerNameKrBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetDesignerNameKrBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetDesignerNameKrArray() { return __p.__vector_as_array(48); } + public string DesignerNameJp { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDesignerNameJpBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetDesignerNameJpBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetDesignerNameJpArray() { return __p.__vector_as_array(50); } + public string IllustratorNameKr { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIllustratorNameKrBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetIllustratorNameKrBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetIllustratorNameKrArray() { return __p.__vector_as_array(52); } + public string IllustratorNameJp { get { int o = __p.__offset(54); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIllustratorNameJpBytes() { return __p.__vector_as_span(54, 1); } +#else + public ArraySegment? GetIllustratorNameJpBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public byte[] GetIllustratorNameJpArray() { return __p.__vector_as_array(54); } + public string CharacterVoiceKr { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterVoiceKrBytes() { return __p.__vector_as_span(56, 1); } +#else + public ArraySegment? GetCharacterVoiceKrBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public byte[] GetCharacterVoiceKrArray() { return __p.__vector_as_array(56); } + public string CharacterVoiceJp { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterVoiceJpBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetCharacterVoiceJpBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetCharacterVoiceJpArray() { return __p.__vector_as_array(58); } + public string HobbyKr { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetHobbyKrBytes() { return __p.__vector_as_span(60, 1); } +#else + public ArraySegment? GetHobbyKrBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public byte[] GetHobbyKrArray() { return __p.__vector_as_array(60); } + public string HobbyJp { get { int o = __p.__offset(62); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetHobbyJpBytes() { return __p.__vector_as_span(62, 1); } +#else + public ArraySegment? GetHobbyJpBytes() { return __p.__vector_as_arraysegment(62); } +#endif + public byte[] GetHobbyJpArray() { return __p.__vector_as_array(62); } + public string WeaponNameKr { get { int o = __p.__offset(64); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWeaponNameKrBytes() { return __p.__vector_as_span(64, 1); } +#else + public ArraySegment? GetWeaponNameKrBytes() { return __p.__vector_as_arraysegment(64); } +#endif + public byte[] GetWeaponNameKrArray() { return __p.__vector_as_array(64); } + public string WeaponDescKr { get { int o = __p.__offset(66); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWeaponDescKrBytes() { return __p.__vector_as_span(66, 1); } +#else + public ArraySegment? GetWeaponDescKrBytes() { return __p.__vector_as_arraysegment(66); } +#endif + public byte[] GetWeaponDescKrArray() { return __p.__vector_as_array(66); } + public string WeaponNameJp { get { int o = __p.__offset(68); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWeaponNameJpBytes() { return __p.__vector_as_span(68, 1); } +#else + public ArraySegment? GetWeaponNameJpBytes() { return __p.__vector_as_arraysegment(68); } +#endif + public byte[] GetWeaponNameJpArray() { return __p.__vector_as_array(68); } + public string WeaponDescJp { get { int o = __p.__offset(70); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWeaponDescJpBytes() { return __p.__vector_as_span(70, 1); } +#else + public ArraySegment? GetWeaponDescJpBytes() { return __p.__vector_as_arraysegment(70); } +#endif + public byte[] GetWeaponDescJpArray() { return __p.__vector_as_array(70); } + public string ProfileIntroductionKr { get { int o = __p.__offset(72); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProfileIntroductionKrBytes() { return __p.__vector_as_span(72, 1); } +#else + public ArraySegment? GetProfileIntroductionKrBytes() { return __p.__vector_as_arraysegment(72); } +#endif + public byte[] GetProfileIntroductionKrArray() { return __p.__vector_as_array(72); } + public string ProfileIntroductionJp { get { int o = __p.__offset(74); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProfileIntroductionJpBytes() { return __p.__vector_as_span(74, 1); } +#else + public ArraySegment? GetProfileIntroductionJpBytes() { return __p.__vector_as_arraysegment(74); } +#endif + public byte[] GetProfileIntroductionJpArray() { return __p.__vector_as_array(74); } + public string CharacterSSRNewKr { get { int o = __p.__offset(76); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterSSRNewKrBytes() { return __p.__vector_as_span(76, 1); } +#else + public ArraySegment? GetCharacterSSRNewKrBytes() { return __p.__vector_as_arraysegment(76); } +#endif + public byte[] GetCharacterSSRNewKrArray() { return __p.__vector_as_array(76); } + public string CharacterSSRNewJp { get { int o = __p.__offset(78); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCharacterSSRNewJpBytes() { return __p.__vector_as_span(78, 1); } +#else + public ArraySegment? GetCharacterSSRNewJpBytes() { return __p.__vector_as_arraysegment(78); } +#endif + public byte[] GetCharacterSSRNewJpArray() { return __p.__vector_as_array(78); } + + public static Offset CreateLocalizeCharProfileExcel(FlatBufferBuilder builder, + long CharacterId = 0, + StringOffset StatusMessageKrOffset = default(StringOffset), + StringOffset StatusMessageJpOffset = default(StringOffset), + StringOffset FullNameKrOffset = default(StringOffset), + StringOffset FullNameJpOffset = default(StringOffset), + StringOffset FamilyNameKrOffset = default(StringOffset), + StringOffset FamilyNameRubyKrOffset = default(StringOffset), + StringOffset PersonalNameKrOffset = default(StringOffset), + StringOffset PersonalNameRubyKrOffset = default(StringOffset), + StringOffset FamilyNameJpOffset = default(StringOffset), + StringOffset FamilyNameRubyJpOffset = default(StringOffset), + StringOffset PersonalNameJpOffset = default(StringOffset), + StringOffset PersonalNameRubyJpOffset = default(StringOffset), + StringOffset SchoolYearKrOffset = default(StringOffset), + StringOffset SchoolYearJpOffset = default(StringOffset), + StringOffset CharacterAgeKrOffset = default(StringOffset), + StringOffset CharacterAgeJpOffset = default(StringOffset), + StringOffset BirthDayOffset = default(StringOffset), + StringOffset BirthdayKrOffset = default(StringOffset), + StringOffset BirthdayJpOffset = default(StringOffset), + StringOffset CharHeightKrOffset = default(StringOffset), + StringOffset CharHeightJpOffset = default(StringOffset), + StringOffset DesignerNameKrOffset = default(StringOffset), + StringOffset DesignerNameJpOffset = default(StringOffset), + StringOffset IllustratorNameKrOffset = default(StringOffset), + StringOffset IllustratorNameJpOffset = default(StringOffset), + StringOffset CharacterVoiceKrOffset = default(StringOffset), + StringOffset CharacterVoiceJpOffset = default(StringOffset), + StringOffset HobbyKrOffset = default(StringOffset), + StringOffset HobbyJpOffset = default(StringOffset), + StringOffset WeaponNameKrOffset = default(StringOffset), + StringOffset WeaponDescKrOffset = default(StringOffset), + StringOffset WeaponNameJpOffset = default(StringOffset), + StringOffset WeaponDescJpOffset = default(StringOffset), + StringOffset ProfileIntroductionKrOffset = default(StringOffset), + StringOffset ProfileIntroductionJpOffset = default(StringOffset), + StringOffset CharacterSSRNewKrOffset = default(StringOffset), + StringOffset CharacterSSRNewJpOffset = default(StringOffset)) { + builder.StartTable(38); + LocalizeCharProfileExcel.AddCharacterId(builder, CharacterId); + LocalizeCharProfileExcel.AddCharacterSSRNewJp(builder, CharacterSSRNewJpOffset); + LocalizeCharProfileExcel.AddCharacterSSRNewKr(builder, CharacterSSRNewKrOffset); + LocalizeCharProfileExcel.AddProfileIntroductionJp(builder, ProfileIntroductionJpOffset); + LocalizeCharProfileExcel.AddProfileIntroductionKr(builder, ProfileIntroductionKrOffset); + LocalizeCharProfileExcel.AddWeaponDescJp(builder, WeaponDescJpOffset); + LocalizeCharProfileExcel.AddWeaponNameJp(builder, WeaponNameJpOffset); + LocalizeCharProfileExcel.AddWeaponDescKr(builder, WeaponDescKrOffset); + LocalizeCharProfileExcel.AddWeaponNameKr(builder, WeaponNameKrOffset); + LocalizeCharProfileExcel.AddHobbyJp(builder, HobbyJpOffset); + LocalizeCharProfileExcel.AddHobbyKr(builder, HobbyKrOffset); + LocalizeCharProfileExcel.AddCharacterVoiceJp(builder, CharacterVoiceJpOffset); + LocalizeCharProfileExcel.AddCharacterVoiceKr(builder, CharacterVoiceKrOffset); + LocalizeCharProfileExcel.AddIllustratorNameJp(builder, IllustratorNameJpOffset); + LocalizeCharProfileExcel.AddIllustratorNameKr(builder, IllustratorNameKrOffset); + LocalizeCharProfileExcel.AddDesignerNameJp(builder, DesignerNameJpOffset); + LocalizeCharProfileExcel.AddDesignerNameKr(builder, DesignerNameKrOffset); + LocalizeCharProfileExcel.AddCharHeightJp(builder, CharHeightJpOffset); + LocalizeCharProfileExcel.AddCharHeightKr(builder, CharHeightKrOffset); + LocalizeCharProfileExcel.AddBirthdayJp(builder, BirthdayJpOffset); + LocalizeCharProfileExcel.AddBirthdayKr(builder, BirthdayKrOffset); + LocalizeCharProfileExcel.AddBirthDay(builder, BirthDayOffset); + LocalizeCharProfileExcel.AddCharacterAgeJp(builder, CharacterAgeJpOffset); + LocalizeCharProfileExcel.AddCharacterAgeKr(builder, CharacterAgeKrOffset); + LocalizeCharProfileExcel.AddSchoolYearJp(builder, SchoolYearJpOffset); + LocalizeCharProfileExcel.AddSchoolYearKr(builder, SchoolYearKrOffset); + LocalizeCharProfileExcel.AddPersonalNameRubyJp(builder, PersonalNameRubyJpOffset); + LocalizeCharProfileExcel.AddPersonalNameJp(builder, PersonalNameJpOffset); + LocalizeCharProfileExcel.AddFamilyNameRubyJp(builder, FamilyNameRubyJpOffset); + LocalizeCharProfileExcel.AddFamilyNameJp(builder, FamilyNameJpOffset); + LocalizeCharProfileExcel.AddPersonalNameRubyKr(builder, PersonalNameRubyKrOffset); + LocalizeCharProfileExcel.AddPersonalNameKr(builder, PersonalNameKrOffset); + LocalizeCharProfileExcel.AddFamilyNameRubyKr(builder, FamilyNameRubyKrOffset); + LocalizeCharProfileExcel.AddFamilyNameKr(builder, FamilyNameKrOffset); + LocalizeCharProfileExcel.AddFullNameJp(builder, FullNameJpOffset); + LocalizeCharProfileExcel.AddFullNameKr(builder, FullNameKrOffset); + LocalizeCharProfileExcel.AddStatusMessageJp(builder, StatusMessageJpOffset); + LocalizeCharProfileExcel.AddStatusMessageKr(builder, StatusMessageKrOffset); + return LocalizeCharProfileExcel.EndLocalizeCharProfileExcel(builder); + } + + public static void StartLocalizeCharProfileExcel(FlatBufferBuilder builder) { builder.StartTable(38); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddStatusMessageKr(FlatBufferBuilder builder, StringOffset statusMessageKrOffset) { builder.AddOffset(1, statusMessageKrOffset.Value, 0); } + public static void AddStatusMessageJp(FlatBufferBuilder builder, StringOffset statusMessageJpOffset) { builder.AddOffset(2, statusMessageJpOffset.Value, 0); } + public static void AddFullNameKr(FlatBufferBuilder builder, StringOffset fullNameKrOffset) { builder.AddOffset(3, fullNameKrOffset.Value, 0); } + public static void AddFullNameJp(FlatBufferBuilder builder, StringOffset fullNameJpOffset) { builder.AddOffset(4, fullNameJpOffset.Value, 0); } + public static void AddFamilyNameKr(FlatBufferBuilder builder, StringOffset familyNameKrOffset) { builder.AddOffset(5, familyNameKrOffset.Value, 0); } + public static void AddFamilyNameRubyKr(FlatBufferBuilder builder, StringOffset familyNameRubyKrOffset) { builder.AddOffset(6, familyNameRubyKrOffset.Value, 0); } + public static void AddPersonalNameKr(FlatBufferBuilder builder, StringOffset personalNameKrOffset) { builder.AddOffset(7, personalNameKrOffset.Value, 0); } + public static void AddPersonalNameRubyKr(FlatBufferBuilder builder, StringOffset personalNameRubyKrOffset) { builder.AddOffset(8, personalNameRubyKrOffset.Value, 0); } + public static void AddFamilyNameJp(FlatBufferBuilder builder, StringOffset familyNameJpOffset) { builder.AddOffset(9, familyNameJpOffset.Value, 0); } + public static void AddFamilyNameRubyJp(FlatBufferBuilder builder, StringOffset familyNameRubyJpOffset) { builder.AddOffset(10, familyNameRubyJpOffset.Value, 0); } + public static void AddPersonalNameJp(FlatBufferBuilder builder, StringOffset personalNameJpOffset) { builder.AddOffset(11, personalNameJpOffset.Value, 0); } + public static void AddPersonalNameRubyJp(FlatBufferBuilder builder, StringOffset personalNameRubyJpOffset) { builder.AddOffset(12, personalNameRubyJpOffset.Value, 0); } + public static void AddSchoolYearKr(FlatBufferBuilder builder, StringOffset schoolYearKrOffset) { builder.AddOffset(13, schoolYearKrOffset.Value, 0); } + public static void AddSchoolYearJp(FlatBufferBuilder builder, StringOffset schoolYearJpOffset) { builder.AddOffset(14, schoolYearJpOffset.Value, 0); } + public static void AddCharacterAgeKr(FlatBufferBuilder builder, StringOffset characterAgeKrOffset) { builder.AddOffset(15, characterAgeKrOffset.Value, 0); } + public static void AddCharacterAgeJp(FlatBufferBuilder builder, StringOffset characterAgeJpOffset) { builder.AddOffset(16, characterAgeJpOffset.Value, 0); } + public static void AddBirthDay(FlatBufferBuilder builder, StringOffset birthDayOffset) { builder.AddOffset(17, birthDayOffset.Value, 0); } + public static void AddBirthdayKr(FlatBufferBuilder builder, StringOffset birthdayKrOffset) { builder.AddOffset(18, birthdayKrOffset.Value, 0); } + public static void AddBirthdayJp(FlatBufferBuilder builder, StringOffset birthdayJpOffset) { builder.AddOffset(19, birthdayJpOffset.Value, 0); } + public static void AddCharHeightKr(FlatBufferBuilder builder, StringOffset charHeightKrOffset) { builder.AddOffset(20, charHeightKrOffset.Value, 0); } + public static void AddCharHeightJp(FlatBufferBuilder builder, StringOffset charHeightJpOffset) { builder.AddOffset(21, charHeightJpOffset.Value, 0); } + public static void AddDesignerNameKr(FlatBufferBuilder builder, StringOffset designerNameKrOffset) { builder.AddOffset(22, designerNameKrOffset.Value, 0); } + public static void AddDesignerNameJp(FlatBufferBuilder builder, StringOffset designerNameJpOffset) { builder.AddOffset(23, designerNameJpOffset.Value, 0); } + public static void AddIllustratorNameKr(FlatBufferBuilder builder, StringOffset illustratorNameKrOffset) { builder.AddOffset(24, illustratorNameKrOffset.Value, 0); } + public static void AddIllustratorNameJp(FlatBufferBuilder builder, StringOffset illustratorNameJpOffset) { builder.AddOffset(25, illustratorNameJpOffset.Value, 0); } + public static void AddCharacterVoiceKr(FlatBufferBuilder builder, StringOffset characterVoiceKrOffset) { builder.AddOffset(26, characterVoiceKrOffset.Value, 0); } + public static void AddCharacterVoiceJp(FlatBufferBuilder builder, StringOffset characterVoiceJpOffset) { builder.AddOffset(27, characterVoiceJpOffset.Value, 0); } + public static void AddHobbyKr(FlatBufferBuilder builder, StringOffset hobbyKrOffset) { builder.AddOffset(28, hobbyKrOffset.Value, 0); } + public static void AddHobbyJp(FlatBufferBuilder builder, StringOffset hobbyJpOffset) { builder.AddOffset(29, hobbyJpOffset.Value, 0); } + public static void AddWeaponNameKr(FlatBufferBuilder builder, StringOffset weaponNameKrOffset) { builder.AddOffset(30, weaponNameKrOffset.Value, 0); } + public static void AddWeaponDescKr(FlatBufferBuilder builder, StringOffset weaponDescKrOffset) { builder.AddOffset(31, weaponDescKrOffset.Value, 0); } + public static void AddWeaponNameJp(FlatBufferBuilder builder, StringOffset weaponNameJpOffset) { builder.AddOffset(32, weaponNameJpOffset.Value, 0); } + public static void AddWeaponDescJp(FlatBufferBuilder builder, StringOffset weaponDescJpOffset) { builder.AddOffset(33, weaponDescJpOffset.Value, 0); } + public static void AddProfileIntroductionKr(FlatBufferBuilder builder, StringOffset profileIntroductionKrOffset) { builder.AddOffset(34, profileIntroductionKrOffset.Value, 0); } + public static void AddProfileIntroductionJp(FlatBufferBuilder builder, StringOffset profileIntroductionJpOffset) { builder.AddOffset(35, profileIntroductionJpOffset.Value, 0); } + public static void AddCharacterSSRNewKr(FlatBufferBuilder builder, StringOffset characterSSRNewKrOffset) { builder.AddOffset(36, characterSSRNewKrOffset.Value, 0); } + public static void AddCharacterSSRNewJp(FlatBufferBuilder builder, StringOffset characterSSRNewJpOffset) { builder.AddOffset(37, characterSSRNewJpOffset.Value, 0); } + public static Offset EndLocalizeCharProfileExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeCharProfileExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*StatusMessageKr*/, false) + && verifier.VerifyString(tablePos, 8 /*StatusMessageJp*/, false) + && verifier.VerifyString(tablePos, 10 /*FullNameKr*/, false) + && verifier.VerifyString(tablePos, 12 /*FullNameJp*/, false) + && verifier.VerifyString(tablePos, 14 /*FamilyNameKr*/, false) + && verifier.VerifyString(tablePos, 16 /*FamilyNameRubyKr*/, false) + && verifier.VerifyString(tablePos, 18 /*PersonalNameKr*/, false) + && verifier.VerifyString(tablePos, 20 /*PersonalNameRubyKr*/, false) + && verifier.VerifyString(tablePos, 22 /*FamilyNameJp*/, false) + && verifier.VerifyString(tablePos, 24 /*FamilyNameRubyJp*/, false) + && verifier.VerifyString(tablePos, 26 /*PersonalNameJp*/, false) + && verifier.VerifyString(tablePos, 28 /*PersonalNameRubyJp*/, false) + && verifier.VerifyString(tablePos, 30 /*SchoolYearKr*/, false) + && verifier.VerifyString(tablePos, 32 /*SchoolYearJp*/, false) + && verifier.VerifyString(tablePos, 34 /*CharacterAgeKr*/, false) + && verifier.VerifyString(tablePos, 36 /*CharacterAgeJp*/, false) + && verifier.VerifyString(tablePos, 38 /*BirthDay*/, false) + && verifier.VerifyString(tablePos, 40 /*BirthdayKr*/, false) + && verifier.VerifyString(tablePos, 42 /*BirthdayJp*/, false) + && verifier.VerifyString(tablePos, 44 /*CharHeightKr*/, false) + && verifier.VerifyString(tablePos, 46 /*CharHeightJp*/, false) + && verifier.VerifyString(tablePos, 48 /*DesignerNameKr*/, false) + && verifier.VerifyString(tablePos, 50 /*DesignerNameJp*/, false) + && verifier.VerifyString(tablePos, 52 /*IllustratorNameKr*/, false) + && verifier.VerifyString(tablePos, 54 /*IllustratorNameJp*/, false) + && verifier.VerifyString(tablePos, 56 /*CharacterVoiceKr*/, false) + && verifier.VerifyString(tablePos, 58 /*CharacterVoiceJp*/, false) + && verifier.VerifyString(tablePos, 60 /*HobbyKr*/, false) + && verifier.VerifyString(tablePos, 62 /*HobbyJp*/, false) + && verifier.VerifyString(tablePos, 64 /*WeaponNameKr*/, false) + && verifier.VerifyString(tablePos, 66 /*WeaponDescKr*/, false) + && verifier.VerifyString(tablePos, 68 /*WeaponNameJp*/, false) + && verifier.VerifyString(tablePos, 70 /*WeaponDescJp*/, false) + && verifier.VerifyString(tablePos, 72 /*ProfileIntroductionKr*/, false) + && verifier.VerifyString(tablePos, 74 /*ProfileIntroductionJp*/, false) + && verifier.VerifyString(tablePos, 76 /*CharacterSSRNewKr*/, false) + && verifier.VerifyString(tablePos, 78 /*CharacterSSRNewJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs new file mode 100644 index 0000000..66171b2 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LocalizeCharProfileExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeCharProfileExcelTable GetRootAsLocalizeCharProfileExcelTable(ByteBuffer _bb) { return GetRootAsLocalizeCharProfileExcelTable(_bb, new LocalizeCharProfileExcelTable()); } + public static LocalizeCharProfileExcelTable GetRootAsLocalizeCharProfileExcelTable(ByteBuffer _bb, LocalizeCharProfileExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeCharProfileExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LocalizeCharProfileExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LocalizeCharProfileExcel?)(new SCHALE.Common.FlatData.LocalizeCharProfileExcel()).__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 CreateLocalizeCharProfileExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LocalizeCharProfileExcelTable.AddDataList(builder, DataListOffset); + return LocalizeCharProfileExcelTable.EndLocalizeCharProfileExcelTable(builder); + } + + public static void StartLocalizeCharProfileExcelTable(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 EndLocalizeCharProfileExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeCharProfileExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LocalizeCharProfileExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs new file mode 100644 index 0000000..aa5b42d --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcel.cs @@ -0,0 +1,72 @@ +// +// 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 LocalizeCodeInBuildExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeCodeInBuildExcel GetRootAsLocalizeCodeInBuildExcel(ByteBuffer _bb) { return GetRootAsLocalizeCodeInBuildExcel(_bb, new LocalizeCodeInBuildExcel()); } + public static LocalizeCodeInBuildExcel GetRootAsLocalizeCodeInBuildExcel(ByteBuffer _bb, LocalizeCodeInBuildExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeCodeInBuildExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Kr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetKrArray() { return __p.__vector_as_array(6); } + public string Jp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetJpArray() { return __p.__vector_as_array(8); } + + public static Offset CreateLocalizeCodeInBuildExcel(FlatBufferBuilder builder, + uint Key = 0, + StringOffset KrOffset = default(StringOffset), + StringOffset JpOffset = default(StringOffset)) { + builder.StartTable(3); + LocalizeCodeInBuildExcel.AddJp(builder, JpOffset); + LocalizeCodeInBuildExcel.AddKr(builder, KrOffset); + LocalizeCodeInBuildExcel.AddKey(builder, Key); + return LocalizeCodeInBuildExcel.EndLocalizeCodeInBuildExcel(builder); + } + + public static void StartLocalizeCodeInBuildExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddKr(FlatBufferBuilder builder, StringOffset krOffset) { builder.AddOffset(1, krOffset.Value, 0); } + public static void AddJp(FlatBufferBuilder builder, StringOffset jpOffset) { builder.AddOffset(2, jpOffset.Value, 0); } + public static Offset EndLocalizeCodeInBuildExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeCodeInBuildExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Kr*/, false) + && verifier.VerifyString(tablePos, 8 /*Jp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs new file mode 100644 index 0000000..5b0b5a6 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeCodeInBuildExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LocalizeCodeInBuildExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeCodeInBuildExcelTable GetRootAsLocalizeCodeInBuildExcelTable(ByteBuffer _bb) { return GetRootAsLocalizeCodeInBuildExcelTable(_bb, new LocalizeCodeInBuildExcelTable()); } + public static LocalizeCodeInBuildExcelTable GetRootAsLocalizeCodeInBuildExcelTable(ByteBuffer _bb, LocalizeCodeInBuildExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeCodeInBuildExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LocalizeCodeInBuildExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LocalizeCodeInBuildExcel?)(new SCHALE.Common.FlatData.LocalizeCodeInBuildExcel()).__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 CreateLocalizeCodeInBuildExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LocalizeCodeInBuildExcelTable.AddDataList(builder, DataListOffset); + return LocalizeCodeInBuildExcelTable.EndLocalizeCodeInBuildExcelTable(builder); + } + + public static void StartLocalizeCodeInBuildExcelTable(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 EndLocalizeCodeInBuildExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeCodeInBuildExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LocalizeCodeInBuildExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeErrorExcel.cs b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs new file mode 100644 index 0000000..be44e2b --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs @@ -0,0 +1,77 @@ +// +// 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 LocalizeErrorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeErrorExcel GetRootAsLocalizeErrorExcel(ByteBuffer _bb) { return GetRootAsLocalizeErrorExcel(_bb, new LocalizeErrorExcel()); } + public static LocalizeErrorExcel GetRootAsLocalizeErrorExcel(ByteBuffer _bb, LocalizeErrorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeErrorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WebAPIErrorLevel)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WebAPIErrorLevel.None; } } + public string Kr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKrBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetKrBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetKrArray() { return __p.__vector_as_array(8); } + public string Jp { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetJpBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetJpBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetJpArray() { return __p.__vector_as_array(10); } + + public static Offset CreateLocalizeErrorExcel(FlatBufferBuilder builder, + uint Key = 0, + SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None, + StringOffset KrOffset = default(StringOffset), + StringOffset JpOffset = default(StringOffset)) { + builder.StartTable(4); + LocalizeErrorExcel.AddJp(builder, JpOffset); + LocalizeErrorExcel.AddKr(builder, KrOffset); + LocalizeErrorExcel.AddErrorLevel(builder, ErrorLevel); + LocalizeErrorExcel.AddKey(builder, Key); + return LocalizeErrorExcel.EndLocalizeErrorExcel(builder); + } + + public static void StartLocalizeErrorExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddErrorLevel(FlatBufferBuilder builder, SCHALE.Common.FlatData.WebAPIErrorLevel errorLevel) { builder.AddInt(1, (int)errorLevel, 0); } + public static void AddKr(FlatBufferBuilder builder, StringOffset krOffset) { builder.AddOffset(2, krOffset.Value, 0); } + public static void AddJp(FlatBufferBuilder builder, StringOffset jpOffset) { builder.AddOffset(3, jpOffset.Value, 0); } + public static Offset EndLocalizeErrorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeErrorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ErrorLevel*/, 4 /*SCHALE.Common.FlatData.WebAPIErrorLevel*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Kr*/, false) + && verifier.VerifyString(tablePos, 10 /*Jp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeEtcExcel.cs b/SCHALE.Common/FlatData/LocalizeEtcExcel.cs new file mode 100644 index 0000000..454fb7d --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeEtcExcel.cs @@ -0,0 +1,94 @@ +// +// 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 LocalizeEtcExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb) { return GetRootAsLocalizeEtcExcel(_bb, new LocalizeEtcExcel()); } + public static LocalizeEtcExcel GetRootAsLocalizeEtcExcel(ByteBuffer _bb, LocalizeEtcExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeEtcExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } + public string DescriptionKr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionKrBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescriptionKrBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescriptionKrArray() { return __p.__vector_as_array(8); } + public string NameJp { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameJpBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetNameJpBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetNameJpArray() { return __p.__vector_as_array(10); } + public string DescriptionJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetDescriptionJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetDescriptionJpArray() { return __p.__vector_as_array(12); } + + public static Offset CreateLocalizeEtcExcel(FlatBufferBuilder builder, + uint Key = 0, + StringOffset NameKrOffset = default(StringOffset), + StringOffset DescriptionKrOffset = default(StringOffset), + StringOffset NameJpOffset = default(StringOffset), + StringOffset DescriptionJpOffset = default(StringOffset)) { + builder.StartTable(5); + LocalizeEtcExcel.AddDescriptionJp(builder, DescriptionJpOffset); + LocalizeEtcExcel.AddNameJp(builder, NameJpOffset); + LocalizeEtcExcel.AddDescriptionKr(builder, DescriptionKrOffset); + LocalizeEtcExcel.AddNameKr(builder, NameKrOffset); + LocalizeEtcExcel.AddKey(builder, Key); + return LocalizeEtcExcel.EndLocalizeEtcExcel(builder); + } + + public static void StartLocalizeEtcExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); } + public static void AddDescriptionKr(FlatBufferBuilder builder, StringOffset descriptionKrOffset) { builder.AddOffset(2, descriptionKrOffset.Value, 0); } + public static void AddNameJp(FlatBufferBuilder builder, StringOffset nameJpOffset) { builder.AddOffset(3, nameJpOffset.Value, 0); } + public static void AddDescriptionJp(FlatBufferBuilder builder, StringOffset descriptionJpOffset) { builder.AddOffset(4, descriptionJpOffset.Value, 0); } + public static Offset EndLocalizeEtcExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeEtcExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NameKr*/, false) + && verifier.VerifyString(tablePos, 8 /*DescriptionKr*/, false) + && verifier.VerifyString(tablePos, 10 /*NameJp*/, false) + && verifier.VerifyString(tablePos, 12 /*DescriptionJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs b/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs new file mode 100644 index 0000000..28aaba9 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeEtcExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LocalizeEtcExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeEtcExcelTable GetRootAsLocalizeEtcExcelTable(ByteBuffer _bb) { return GetRootAsLocalizeEtcExcelTable(_bb, new LocalizeEtcExcelTable()); } + public static LocalizeEtcExcelTable GetRootAsLocalizeEtcExcelTable(ByteBuffer _bb, LocalizeEtcExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeEtcExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LocalizeEtcExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LocalizeEtcExcel?)(new SCHALE.Common.FlatData.LocalizeEtcExcel()).__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 CreateLocalizeEtcExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LocalizeEtcExcelTable.AddDataList(builder, DataListOffset); + return LocalizeEtcExcelTable.EndLocalizeEtcExcelTable(builder); + } + + public static void StartLocalizeEtcExcelTable(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 EndLocalizeEtcExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeEtcExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LocalizeEtcExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeExcel.cs b/SCHALE.Common/FlatData/LocalizeExcel.cs new file mode 100644 index 0000000..4be5559 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeExcel.cs @@ -0,0 +1,72 @@ +// +// 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 LocalizeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeExcel GetRootAsLocalizeExcel(ByteBuffer _bb) { return GetRootAsLocalizeExcel(_bb, new LocalizeExcel()); } + public static LocalizeExcel GetRootAsLocalizeExcel(ByteBuffer _bb, LocalizeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Kr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetKrArray() { return __p.__vector_as_array(6); } + public string Jp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetJpArray() { return __p.__vector_as_array(8); } + + public static Offset CreateLocalizeExcel(FlatBufferBuilder builder, + uint Key = 0, + StringOffset KrOffset = default(StringOffset), + StringOffset JpOffset = default(StringOffset)) { + builder.StartTable(3); + LocalizeExcel.AddJp(builder, JpOffset); + LocalizeExcel.AddKr(builder, KrOffset); + LocalizeExcel.AddKey(builder, Key); + return LocalizeExcel.EndLocalizeExcel(builder); + } + + public static void StartLocalizeExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddKr(FlatBufferBuilder builder, StringOffset krOffset) { builder.AddOffset(1, krOffset.Value, 0); } + public static void AddJp(FlatBufferBuilder builder, StringOffset jpOffset) { builder.AddOffset(2, jpOffset.Value, 0); } + public static Offset EndLocalizeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Kr*/, false) + && verifier.VerifyString(tablePos, 8 /*Jp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeFieldExcel.cs b/SCHALE.Common/FlatData/LocalizeFieldExcel.cs new file mode 100644 index 0000000..f22d30a --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeFieldExcel.cs @@ -0,0 +1,72 @@ +// +// 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 LocalizeFieldExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeFieldExcel GetRootAsLocalizeFieldExcel(ByteBuffer _bb) { return GetRootAsLocalizeFieldExcel(_bb, new LocalizeFieldExcel()); } + public static LocalizeFieldExcel GetRootAsLocalizeFieldExcel(ByteBuffer _bb, LocalizeFieldExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeFieldExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Kr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetKrArray() { return __p.__vector_as_array(6); } + public string Jp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetJpArray() { return __p.__vector_as_array(8); } + + public static Offset CreateLocalizeFieldExcel(FlatBufferBuilder builder, + uint Key = 0, + StringOffset KrOffset = default(StringOffset), + StringOffset JpOffset = default(StringOffset)) { + builder.StartTable(3); + LocalizeFieldExcel.AddJp(builder, JpOffset); + LocalizeFieldExcel.AddKr(builder, KrOffset); + LocalizeFieldExcel.AddKey(builder, Key); + return LocalizeFieldExcel.EndLocalizeFieldExcel(builder); + } + + public static void StartLocalizeFieldExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddKr(FlatBufferBuilder builder, StringOffset krOffset) { builder.AddOffset(1, krOffset.Value, 0); } + public static void AddJp(FlatBufferBuilder builder, StringOffset jpOffset) { builder.AddOffset(2, jpOffset.Value, 0); } + public static Offset EndLocalizeFieldExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeFieldExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Kr*/, false) + && verifier.VerifyString(tablePos, 8 /*Jp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs b/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs new file mode 100644 index 0000000..5b78edd --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeFieldExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LocalizeFieldExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeFieldExcelTable GetRootAsLocalizeFieldExcelTable(ByteBuffer _bb) { return GetRootAsLocalizeFieldExcelTable(_bb, new LocalizeFieldExcelTable()); } + public static LocalizeFieldExcelTable GetRootAsLocalizeFieldExcelTable(ByteBuffer _bb, LocalizeFieldExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeFieldExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LocalizeFieldExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LocalizeFieldExcel?)(new SCHALE.Common.FlatData.LocalizeFieldExcel()).__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 CreateLocalizeFieldExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LocalizeFieldExcelTable.AddDataList(builder, DataListOffset); + return LocalizeFieldExcelTable.EndLocalizeFieldExcelTable(builder); + } + + public static void StartLocalizeFieldExcelTable(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 EndLocalizeFieldExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeFieldExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LocalizeFieldExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs b/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs new file mode 100644 index 0000000..607ecfe --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeGachaShopExcel.cs @@ -0,0 +1,138 @@ +// +// 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 LocalizeGachaShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeGachaShopExcel GetRootAsLocalizeGachaShopExcel(ByteBuffer _bb) { return GetRootAsLocalizeGachaShopExcel(_bb, new LocalizeGachaShopExcel()); } + public static LocalizeGachaShopExcel GetRootAsLocalizeGachaShopExcel(ByteBuffer _bb, LocalizeGachaShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeGachaShopExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GachaShopId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TabNameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTabNameKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetTabNameKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetTabNameKrArray() { return __p.__vector_as_array(6); } + public string TabNameJp { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTabNameJpBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetTabNameJpBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetTabNameJpArray() { return __p.__vector_as_array(8); } + public string TitleNameKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleNameKrBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetTitleNameKrBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetTitleNameKrArray() { return __p.__vector_as_array(10); } + public string TitleNameJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTitleNameJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetTitleNameJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetTitleNameJpArray() { return __p.__vector_as_array(12); } + public string SubTitleKr { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubTitleKrBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSubTitleKrBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSubTitleKrArray() { return __p.__vector_as_array(14); } + public string SubTitleJp { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSubTitleJpBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetSubTitleJpBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetSubTitleJpArray() { return __p.__vector_as_array(16); } + public string GachaDescriptionKr { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGachaDescriptionKrBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetGachaDescriptionKrBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetGachaDescriptionKrArray() { return __p.__vector_as_array(18); } + public string GachaDescriptionJp { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGachaDescriptionJpBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetGachaDescriptionJpBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetGachaDescriptionJpArray() { return __p.__vector_as_array(20); } + + public static Offset CreateLocalizeGachaShopExcel(FlatBufferBuilder builder, + long GachaShopId = 0, + StringOffset TabNameKrOffset = default(StringOffset), + StringOffset TabNameJpOffset = default(StringOffset), + StringOffset TitleNameKrOffset = default(StringOffset), + StringOffset TitleNameJpOffset = default(StringOffset), + StringOffset SubTitleKrOffset = default(StringOffset), + StringOffset SubTitleJpOffset = default(StringOffset), + StringOffset GachaDescriptionKrOffset = default(StringOffset), + StringOffset GachaDescriptionJpOffset = default(StringOffset)) { + builder.StartTable(9); + LocalizeGachaShopExcel.AddGachaShopId(builder, GachaShopId); + LocalizeGachaShopExcel.AddGachaDescriptionJp(builder, GachaDescriptionJpOffset); + LocalizeGachaShopExcel.AddGachaDescriptionKr(builder, GachaDescriptionKrOffset); + LocalizeGachaShopExcel.AddSubTitleJp(builder, SubTitleJpOffset); + LocalizeGachaShopExcel.AddSubTitleKr(builder, SubTitleKrOffset); + LocalizeGachaShopExcel.AddTitleNameJp(builder, TitleNameJpOffset); + LocalizeGachaShopExcel.AddTitleNameKr(builder, TitleNameKrOffset); + LocalizeGachaShopExcel.AddTabNameJp(builder, TabNameJpOffset); + LocalizeGachaShopExcel.AddTabNameKr(builder, TabNameKrOffset); + return LocalizeGachaShopExcel.EndLocalizeGachaShopExcel(builder); + } + + public static void StartLocalizeGachaShopExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddGachaShopId(FlatBufferBuilder builder, long gachaShopId) { builder.AddLong(0, gachaShopId, 0); } + public static void AddTabNameKr(FlatBufferBuilder builder, StringOffset tabNameKrOffset) { builder.AddOffset(1, tabNameKrOffset.Value, 0); } + public static void AddTabNameJp(FlatBufferBuilder builder, StringOffset tabNameJpOffset) { builder.AddOffset(2, tabNameJpOffset.Value, 0); } + public static void AddTitleNameKr(FlatBufferBuilder builder, StringOffset titleNameKrOffset) { builder.AddOffset(3, titleNameKrOffset.Value, 0); } + public static void AddTitleNameJp(FlatBufferBuilder builder, StringOffset titleNameJpOffset) { builder.AddOffset(4, titleNameJpOffset.Value, 0); } + public static void AddSubTitleKr(FlatBufferBuilder builder, StringOffset subTitleKrOffset) { builder.AddOffset(5, subTitleKrOffset.Value, 0); } + public static void AddSubTitleJp(FlatBufferBuilder builder, StringOffset subTitleJpOffset) { builder.AddOffset(6, subTitleJpOffset.Value, 0); } + public static void AddGachaDescriptionKr(FlatBufferBuilder builder, StringOffset gachaDescriptionKrOffset) { builder.AddOffset(7, gachaDescriptionKrOffset.Value, 0); } + public static void AddGachaDescriptionJp(FlatBufferBuilder builder, StringOffset gachaDescriptionJpOffset) { builder.AddOffset(8, gachaDescriptionJpOffset.Value, 0); } + public static Offset EndLocalizeGachaShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeGachaShopExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GachaShopId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*TabNameKr*/, false) + && verifier.VerifyString(tablePos, 8 /*TabNameJp*/, false) + && verifier.VerifyString(tablePos, 10 /*TitleNameKr*/, false) + && verifier.VerifyString(tablePos, 12 /*TitleNameJp*/, false) + && verifier.VerifyString(tablePos, 14 /*SubTitleKr*/, false) + && verifier.VerifyString(tablePos, 16 /*SubTitleJp*/, false) + && verifier.VerifyString(tablePos, 18 /*GachaDescriptionKr*/, false) + && verifier.VerifyString(tablePos, 20 /*GachaDescriptionJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs b/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs new file mode 100644 index 0000000..e0dbf36 --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeGachaShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LocalizeGachaShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeGachaShopExcelTable GetRootAsLocalizeGachaShopExcelTable(ByteBuffer _bb) { return GetRootAsLocalizeGachaShopExcelTable(_bb, new LocalizeGachaShopExcelTable()); } + public static LocalizeGachaShopExcelTable GetRootAsLocalizeGachaShopExcelTable(ByteBuffer _bb, LocalizeGachaShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeGachaShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LocalizeGachaShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LocalizeGachaShopExcel?)(new SCHALE.Common.FlatData.LocalizeGachaShopExcel()).__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 CreateLocalizeGachaShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LocalizeGachaShopExcelTable.AddDataList(builder, DataListOffset); + return LocalizeGachaShopExcelTable.EndLocalizeGachaShopExcelTable(builder); + } + + public static void StartLocalizeGachaShopExcelTable(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 EndLocalizeGachaShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeGachaShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LocalizeGachaShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LocalizeSkillExcel.cs b/SCHALE.Common/FlatData/LocalizeSkillExcel.cs new file mode 100644 index 0000000..b4eb5db --- /dev/null +++ b/SCHALE.Common/FlatData/LocalizeSkillExcel.cs @@ -0,0 +1,116 @@ +// +// 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 LocalizeSkillExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LocalizeSkillExcel GetRootAsLocalizeSkillExcel(ByteBuffer _bb) { return GetRootAsLocalizeSkillExcel(_bb, new LocalizeSkillExcel()); } + public static LocalizeSkillExcel GetRootAsLocalizeSkillExcel(ByteBuffer _bb, LocalizeSkillExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LocalizeSkillExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string NameKr { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameKrBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameKrBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } + public string DescriptionKr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionKrBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetDescriptionKrBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetDescriptionKrArray() { return __p.__vector_as_array(8); } + public string SkillInvokeLocalizeKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillInvokeLocalizeKrBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSkillInvokeLocalizeKrBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSkillInvokeLocalizeKrArray() { return __p.__vector_as_array(10); } + public string NameJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetNameJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetNameJpArray() { return __p.__vector_as_array(12); } + public string DescriptionJp { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDescriptionJpBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetDescriptionJpBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetDescriptionJpArray() { return __p.__vector_as_array(14); } + public string SkillInvokeLocalizeJp { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillInvokeLocalizeJpBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetSkillInvokeLocalizeJpBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetSkillInvokeLocalizeJpArray() { return __p.__vector_as_array(16); } + + public static Offset CreateLocalizeSkillExcel(FlatBufferBuilder builder, + uint Key = 0, + StringOffset NameKrOffset = default(StringOffset), + StringOffset DescriptionKrOffset = default(StringOffset), + StringOffset SkillInvokeLocalizeKrOffset = default(StringOffset), + StringOffset NameJpOffset = default(StringOffset), + StringOffset DescriptionJpOffset = default(StringOffset), + StringOffset SkillInvokeLocalizeJpOffset = default(StringOffset)) { + builder.StartTable(7); + LocalizeSkillExcel.AddSkillInvokeLocalizeJp(builder, SkillInvokeLocalizeJpOffset); + LocalizeSkillExcel.AddDescriptionJp(builder, DescriptionJpOffset); + LocalizeSkillExcel.AddNameJp(builder, NameJpOffset); + LocalizeSkillExcel.AddSkillInvokeLocalizeKr(builder, SkillInvokeLocalizeKrOffset); + LocalizeSkillExcel.AddDescriptionKr(builder, DescriptionKrOffset); + LocalizeSkillExcel.AddNameKr(builder, NameKrOffset); + LocalizeSkillExcel.AddKey(builder, Key); + return LocalizeSkillExcel.EndLocalizeSkillExcel(builder); + } + + public static void StartLocalizeSkillExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddKey(FlatBufferBuilder builder, uint key) { builder.AddUint(0, key, 0); } + public static void AddNameKr(FlatBufferBuilder builder, StringOffset nameKrOffset) { builder.AddOffset(1, nameKrOffset.Value, 0); } + public static void AddDescriptionKr(FlatBufferBuilder builder, StringOffset descriptionKrOffset) { builder.AddOffset(2, descriptionKrOffset.Value, 0); } + public static void AddSkillInvokeLocalizeKr(FlatBufferBuilder builder, StringOffset skillInvokeLocalizeKrOffset) { builder.AddOffset(3, skillInvokeLocalizeKrOffset.Value, 0); } + public static void AddNameJp(FlatBufferBuilder builder, StringOffset nameJpOffset) { builder.AddOffset(4, nameJpOffset.Value, 0); } + public static void AddDescriptionJp(FlatBufferBuilder builder, StringOffset descriptionJpOffset) { builder.AddOffset(5, descriptionJpOffset.Value, 0); } + public static void AddSkillInvokeLocalizeJp(FlatBufferBuilder builder, StringOffset skillInvokeLocalizeJpOffset) { builder.AddOffset(6, skillInvokeLocalizeJpOffset.Value, 0); } + public static Offset EndLocalizeSkillExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LocalizeSkillExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Key*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*NameKr*/, false) + && verifier.VerifyString(tablePos, 8 /*DescriptionKr*/, false) + && verifier.VerifyString(tablePos, 10 /*SkillInvokeLocalizeKr*/, false) + && verifier.VerifyString(tablePos, 12 /*NameJp*/, false) + && verifier.VerifyString(tablePos, 14 /*DescriptionJp*/, false) + && verifier.VerifyString(tablePos, 16 /*SkillInvokeLocalizeJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LogicEffectCategory.cs b/SCHALE.Common/FlatData/LogicEffectCategory.cs new file mode 100644 index 0000000..3f3900f --- /dev/null +++ b/SCHALE.Common/FlatData/LogicEffectCategory.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum LogicEffectCategory : int +{ + None = 0, + Attack = 1, + Heal = 2, + Buff = 3, + Debuff = 4, + CrowdControl = 5, + Boss = 6, + Dummy = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs new file mode 100644 index 0000000..4d64e41 --- /dev/null +++ b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs @@ -0,0 +1,158 @@ +// +// 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 LogicEffectCommonVisualExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LogicEffectCommonVisualExcel GetRootAsLogicEffectCommonVisualExcel(ByteBuffer _bb) { return GetRootAsLogicEffectCommonVisualExcel(_bb, new LogicEffectCommonVisualExcel()); } + public static LogicEffectCommonVisualExcel GetRootAsLogicEffectCommonVisualExcel(ByteBuffer _bb, LogicEffectCommonVisualExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LogicEffectCommonVisualExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint StringID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconSpriteName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconSpriteNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetIconSpriteNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetIconSpriteNameArray() { return __p.__vector_as_array(6); } + public float IconDispelColor(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int IconDispelColorLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIconDispelColorBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetIconDispelColorBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public float[] GetIconDispelColorArray() { return __p.__vector_as_array(8); } + public string ParticleEnterPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParticleEnterPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetParticleEnterPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetParticleEnterPathArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.EffectBone ParticleEnterSocket { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public string ParticleLoopPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParticleLoopPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetParticleLoopPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetParticleLoopPathArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.EffectBone ParticleLoopSocket { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public string ParticleEndPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParticleEndPathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetParticleEndPathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetParticleEndPathArray() { return __p.__vector_as_array(18); } + public SCHALE.Common.FlatData.EffectBone ParticleEndSocket { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public string ParticleApplyPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParticleApplyPathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetParticleApplyPathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetParticleApplyPathArray() { return __p.__vector_as_array(22); } + public SCHALE.Common.FlatData.EffectBone ParticleApplySocket { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public string ParticleRemovedPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetParticleRemovedPathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetParticleRemovedPathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetParticleRemovedPathArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + + public static Offset CreateLogicEffectCommonVisualExcel(FlatBufferBuilder builder, + uint StringID = 0, + StringOffset IconSpriteNameOffset = default(StringOffset), + VectorOffset IconDispelColorOffset = default(VectorOffset), + StringOffset ParticleEnterPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EffectBone ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None, + StringOffset ParticleLoopPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EffectBone ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None, + StringOffset ParticleEndPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EffectBone ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None, + StringOffset ParticleApplyPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EffectBone ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None, + StringOffset ParticleRemovedPathOffset = default(StringOffset), + SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None) { + builder.StartTable(13); + LogicEffectCommonVisualExcel.AddParticleRemovedSocket(builder, ParticleRemovedSocket); + LogicEffectCommonVisualExcel.AddParticleRemovedPath(builder, ParticleRemovedPathOffset); + LogicEffectCommonVisualExcel.AddParticleApplySocket(builder, ParticleApplySocket); + LogicEffectCommonVisualExcel.AddParticleApplyPath(builder, ParticleApplyPathOffset); + LogicEffectCommonVisualExcel.AddParticleEndSocket(builder, ParticleEndSocket); + LogicEffectCommonVisualExcel.AddParticleEndPath(builder, ParticleEndPathOffset); + LogicEffectCommonVisualExcel.AddParticleLoopSocket(builder, ParticleLoopSocket); + LogicEffectCommonVisualExcel.AddParticleLoopPath(builder, ParticleLoopPathOffset); + LogicEffectCommonVisualExcel.AddParticleEnterSocket(builder, ParticleEnterSocket); + LogicEffectCommonVisualExcel.AddParticleEnterPath(builder, ParticleEnterPathOffset); + LogicEffectCommonVisualExcel.AddIconDispelColor(builder, IconDispelColorOffset); + LogicEffectCommonVisualExcel.AddIconSpriteName(builder, IconSpriteNameOffset); + LogicEffectCommonVisualExcel.AddStringID(builder, StringID); + return LogicEffectCommonVisualExcel.EndLogicEffectCommonVisualExcel(builder); + } + + public static void StartLogicEffectCommonVisualExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddStringID(FlatBufferBuilder builder, uint stringID) { builder.AddUint(0, stringID, 0); } + public static void AddIconSpriteName(FlatBufferBuilder builder, StringOffset iconSpriteNameOffset) { builder.AddOffset(1, iconSpriteNameOffset.Value, 0); } + public static void AddIconDispelColor(FlatBufferBuilder builder, VectorOffset iconDispelColorOffset) { builder.AddOffset(2, iconDispelColorOffset.Value, 0); } + public static VectorOffset CreateIconDispelColorVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIconDispelColorVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIconDispelColorVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParticleEnterPath(FlatBufferBuilder builder, StringOffset particleEnterPathOffset) { builder.AddOffset(3, particleEnterPathOffset.Value, 0); } + public static void AddParticleEnterSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleEnterSocket) { builder.AddInt(4, (int)particleEnterSocket, 0); } + public static void AddParticleLoopPath(FlatBufferBuilder builder, StringOffset particleLoopPathOffset) { builder.AddOffset(5, particleLoopPathOffset.Value, 0); } + public static void AddParticleLoopSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleLoopSocket) { builder.AddInt(6, (int)particleLoopSocket, 0); } + public static void AddParticleEndPath(FlatBufferBuilder builder, StringOffset particleEndPathOffset) { builder.AddOffset(7, particleEndPathOffset.Value, 0); } + public static void AddParticleEndSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleEndSocket) { builder.AddInt(8, (int)particleEndSocket, 0); } + public static void AddParticleApplyPath(FlatBufferBuilder builder, StringOffset particleApplyPathOffset) { builder.AddOffset(9, particleApplyPathOffset.Value, 0); } + public static void AddParticleApplySocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleApplySocket) { builder.AddInt(10, (int)particleApplySocket, 0); } + public static void AddParticleRemovedPath(FlatBufferBuilder builder, StringOffset particleRemovedPathOffset) { builder.AddOffset(11, particleRemovedPathOffset.Value, 0); } + public static void AddParticleRemovedSocket(FlatBufferBuilder builder, SCHALE.Common.FlatData.EffectBone particleRemovedSocket) { builder.AddInt(12, (int)particleRemovedSocket, 0); } + public static Offset EndLogicEffectCommonVisualExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LogicEffectCommonVisualExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StringID*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*IconSpriteName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*IconDispelColor*/, 4 /*float*/, false) + && verifier.VerifyString(tablePos, 10 /*ParticleEnterPath*/, false) + && verifier.VerifyField(tablePos, 12 /*ParticleEnterSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) + && verifier.VerifyString(tablePos, 14 /*ParticleLoopPath*/, false) + && verifier.VerifyField(tablePos, 16 /*ParticleLoopSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*ParticleEndPath*/, false) + && verifier.VerifyField(tablePos, 20 /*ParticleEndSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) + && verifier.VerifyString(tablePos, 22 /*ParticleApplyPath*/, false) + && verifier.VerifyField(tablePos, 24 /*ParticleApplySocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*ParticleRemovedPath*/, false) + && verifier.VerifyField(tablePos, 28 /*ParticleRemovedSocket*/, 4 /*SCHALE.Common.FlatData.EffectBone*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs new file mode 100644 index 0000000..7c12672 --- /dev/null +++ b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 LogicEffectCommonVisualExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static LogicEffectCommonVisualExcelTable GetRootAsLogicEffectCommonVisualExcelTable(ByteBuffer _bb) { return GetRootAsLogicEffectCommonVisualExcelTable(_bb, new LogicEffectCommonVisualExcelTable()); } + public static LogicEffectCommonVisualExcelTable GetRootAsLogicEffectCommonVisualExcelTable(ByteBuffer _bb, LogicEffectCommonVisualExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public LogicEffectCommonVisualExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.LogicEffectCommonVisualExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.LogicEffectCommonVisualExcel?)(new SCHALE.Common.FlatData.LogicEffectCommonVisualExcel()).__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 CreateLogicEffectCommonVisualExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + LogicEffectCommonVisualExcelTable.AddDataList(builder, DataListOffset); + return LogicEffectCommonVisualExcelTable.EndLogicEffectCommonVisualExcelTable(builder); + } + + public static void StartLogicEffectCommonVisualExcelTable(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 EndLogicEffectCommonVisualExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class LogicEffectCommonVisualExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.LogicEffectCommonVisualExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/LogicEffectSound.cs b/SCHALE.Common/FlatData/LogicEffectSound.cs new file mode 100644 index 0000000..eb6fd7f --- /dev/null +++ b/SCHALE.Common/FlatData/LogicEffectSound.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum LogicEffectSound : int +{ + None = 0, + Damage = 1, + Heal = 2, + Knockback = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/MailType.cs b/SCHALE.Common/FlatData/MailType.cs new file mode 100644 index 0000000..2427aed --- /dev/null +++ b/SCHALE.Common/FlatData/MailType.cs @@ -0,0 +1,36 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MailType : int +{ + System = 0, + Attendance = 1, + Event = 2, + MassTrade = 3, + InventoryFull = 4, + ArenaDefenseVictory = 5, + CouponUsageReward = 6, + ArenaSeasonClose = 7, + ProductReward = 8, + MonthlyProductReward = 9, + ExpiryChangeItem = 10, + ClanAttendance = 11, + AccountLink = 12, + NewUserBonus = 13, + LeftClanAssistReward = 14, + AttendanceImmediately = 15, + WeeklyProductReward = 16, + BiweeklyProductReward = 17, + Temp_1 = 18, + Temp_2 = 19, + Temp_3 = 20, + CouponCompleteReward = 21, + BirthdayMail = 22, +}; + + +} diff --git a/SCHALE.Common/FlatData/MeetupConditionPrintType.cs b/SCHALE.Common/FlatData/MeetupConditionPrintType.cs new file mode 100644 index 0000000..a156fde --- /dev/null +++ b/SCHALE.Common/FlatData/MeetupConditionPrintType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MeetupConditionPrintType : int +{ + None = 0, + Lock = 1, + Hide = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/MeetupConditionType.cs b/SCHALE.Common/FlatData/MeetupConditionType.cs new file mode 100644 index 0000000..0394e1e --- /dev/null +++ b/SCHALE.Common/FlatData/MeetupConditionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MeetupConditionType : int +{ + None = 0, + EventContentStageClear = 1, + ScenarioClear = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/MemoryLobbyCategory.cs b/SCHALE.Common/FlatData/MemoryLobbyCategory.cs new file mode 100644 index 0000000..0661a28 --- /dev/null +++ b/SCHALE.Common/FlatData/MemoryLobbyCategory.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MemoryLobbyCategory : int +{ + None = 0, + UILobbySpecial = 1, + UILobbySpecial2 = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcel.cs b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs new file mode 100644 index 0000000..9de7fba --- /dev/null +++ b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs @@ -0,0 +1,130 @@ +// +// 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 MemoryLobbyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MemoryLobbyExcel GetRootAsMemoryLobbyExcel(ByteBuffer _bb) { return GetRootAsMemoryLobbyExcel(_bb, new MemoryLobbyExcel()); } + public static MemoryLobbyExcel GetRootAsMemoryLobbyExcel(ByteBuffer _bb, MemoryLobbyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MemoryLobbyExcel __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 SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long CharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PrefabName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MemoryLobbyCategory.None; } } + public string SlotTextureName { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSlotTextureNameBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetSlotTextureNameBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetSlotTextureNameArray() { return __p.__vector_as_array(16); } + public string RewardTextureName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardTextureNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetRewardTextureNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetRewardTextureNameArray() { return __p.__vector_as_array(18); } + public long BGMId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AudioClipJp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAudioClipJpBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetAudioClipJpBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetAudioClipJpArray() { return __p.__vector_as_array(22); } + public string AudioClipKr { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAudioClipKrBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetAudioClipKrBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetAudioClipKrArray() { return __p.__vector_as_array(24); } + + public static Offset CreateMemoryLobbyExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + uint LocalizeEtcId = 0, + long CharacterId = 0, + StringOffset PrefabNameOffset = default(StringOffset), + SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None, + StringOffset SlotTextureNameOffset = default(StringOffset), + StringOffset RewardTextureNameOffset = default(StringOffset), + long BGMId = 0, + StringOffset AudioClipJpOffset = default(StringOffset), + StringOffset AudioClipKrOffset = default(StringOffset)) { + builder.StartTable(11); + MemoryLobbyExcel.AddBGMId(builder, BGMId); + MemoryLobbyExcel.AddCharacterId(builder, CharacterId); + MemoryLobbyExcel.AddId(builder, Id); + MemoryLobbyExcel.AddAudioClipKr(builder, AudioClipKrOffset); + MemoryLobbyExcel.AddAudioClipJp(builder, AudioClipJpOffset); + MemoryLobbyExcel.AddRewardTextureName(builder, RewardTextureNameOffset); + MemoryLobbyExcel.AddSlotTextureName(builder, SlotTextureNameOffset); + MemoryLobbyExcel.AddMemoryLobbyCategory(builder, MemoryLobbyCategory); + MemoryLobbyExcel.AddPrefabName(builder, PrefabNameOffset); + MemoryLobbyExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + MemoryLobbyExcel.AddProductionStep(builder, ProductionStep); + return MemoryLobbyExcel.EndMemoryLobbyExcel(builder); + } + + public static void StartMemoryLobbyExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(1, (int)productionStep, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(3, characterId, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(4, prefabNameOffset.Value, 0); } + public static void AddMemoryLobbyCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MemoryLobbyCategory memoryLobbyCategory) { builder.AddInt(5, (int)memoryLobbyCategory, 0); } + public static void AddSlotTextureName(FlatBufferBuilder builder, StringOffset slotTextureNameOffset) { builder.AddOffset(6, slotTextureNameOffset.Value, 0); } + public static void AddRewardTextureName(FlatBufferBuilder builder, StringOffset rewardTextureNameOffset) { builder.AddOffset(7, rewardTextureNameOffset.Value, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(8, bGMId, 0); } + public static void AddAudioClipJp(FlatBufferBuilder builder, StringOffset audioClipJpOffset) { builder.AddOffset(9, audioClipJpOffset.Value, 0); } + public static void AddAudioClipKr(FlatBufferBuilder builder, StringOffset audioClipKrOffset) { builder.AddOffset(10, audioClipKrOffset.Value, 0); } + public static Offset EndMemoryLobbyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MemoryLobbyExcelVerify +{ + 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 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 14 /*MemoryLobbyCategory*/, 4 /*SCHALE.Common.FlatData.MemoryLobbyCategory*/, 4, false) + && verifier.VerifyString(tablePos, 16 /*SlotTextureName*/, false) + && verifier.VerifyString(tablePos, 18 /*RewardTextureName*/, false) + && verifier.VerifyField(tablePos, 20 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 22 /*AudioClipJp*/, false) + && verifier.VerifyString(tablePos, 24 /*AudioClipKr*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs b/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs new file mode 100644 index 0000000..f637043 --- /dev/null +++ b/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MemoryLobbyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MemoryLobbyExcelTable GetRootAsMemoryLobbyExcelTable(ByteBuffer _bb) { return GetRootAsMemoryLobbyExcelTable(_bb, new MemoryLobbyExcelTable()); } + public static MemoryLobbyExcelTable GetRootAsMemoryLobbyExcelTable(ByteBuffer _bb, MemoryLobbyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MemoryLobbyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MemoryLobbyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyExcel?)(new SCHALE.Common.FlatData.MemoryLobbyExcel()).__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 CreateMemoryLobbyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MemoryLobbyExcelTable.AddDataList(builder, DataListOffset); + return MemoryLobbyExcelTable.EndMemoryLobbyExcelTable(builder); + } + + public static void StartMemoryLobbyExcelTable(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 EndMemoryLobbyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MemoryLobbyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MemoryLobbyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MessagePopupButtonType.cs b/SCHALE.Common/FlatData/MessagePopupButtonType.cs new file mode 100644 index 0000000..12fbda3 --- /dev/null +++ b/SCHALE.Common/FlatData/MessagePopupButtonType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MessagePopupButtonType : int +{ + Accept = 0, + Cancel = 1, + Command = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/MessagePopupExcel.cs b/SCHALE.Common/FlatData/MessagePopupExcel.cs new file mode 100644 index 0000000..ccce1a9 --- /dev/null +++ b/SCHALE.Common/FlatData/MessagePopupExcel.cs @@ -0,0 +1,164 @@ +// +// 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 MessagePopupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MessagePopupExcel GetRootAsMessagePopupExcel(ByteBuffer _bb) { return GetRootAsMessagePopupExcel(_bb, new MessagePopupExcel()); } + public static MessagePopupExcel GetRootAsMessagePopupExcel(ByteBuffer _bb, MessagePopupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MessagePopupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint StringId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.MessagePopupLayout MessagePopupLayout { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.MessagePopupLayout)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MessagePopupLayout.TextOnly; } } + public SCHALE.Common.FlatData.MessagePopupImagePositionType OrderType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.MessagePopupImagePositionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MessagePopupImagePositionType.ImageFirst; } } + public string Image { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImageBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImageBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImageArray() { return __p.__vector_as_array(10); } + public uint TitleText { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint SubTitleText { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint MessageText { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint ConditionText(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int ConditionTextLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionTextBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetConditionTextBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public uint[] GetConditionTextArray() { return __p.__vector_as_array(18); } + public bool DisplayXButton { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.MessagePopupButtonType Button(int j) { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.MessagePopupButtonType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.MessagePopupButtonType)0; } + public int ButtonLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetButtonBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetButtonBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.MessagePopupButtonType[] GetButtonArray() { int o = __p.__offset(22); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.MessagePopupButtonType[] a = new SCHALE.Common.FlatData.MessagePopupButtonType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.MessagePopupButtonType)__p.bb.GetInt(p + i * 4); } return a; } + public uint ButtonText(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int ButtonTextLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetButtonTextBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetButtonTextBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public uint[] GetButtonTextArray() { return __p.__vector_as_array(24); } + public string ButtonCommand(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ButtonCommandLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } + public string ButtonParameter(int j) { int o = __p.__offset(28); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ButtonParameterLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateMessagePopupExcel(FlatBufferBuilder builder, + uint StringId = 0, + SCHALE.Common.FlatData.MessagePopupLayout MessagePopupLayout = SCHALE.Common.FlatData.MessagePopupLayout.TextOnly, + SCHALE.Common.FlatData.MessagePopupImagePositionType OrderType = SCHALE.Common.FlatData.MessagePopupImagePositionType.ImageFirst, + StringOffset ImageOffset = default(StringOffset), + uint TitleText = 0, + uint SubTitleText = 0, + uint MessageText = 0, + VectorOffset ConditionTextOffset = default(VectorOffset), + bool DisplayXButton = false, + VectorOffset ButtonOffset = default(VectorOffset), + VectorOffset ButtonTextOffset = default(VectorOffset), + VectorOffset ButtonCommandOffset = default(VectorOffset), + VectorOffset ButtonParameterOffset = default(VectorOffset)) { + builder.StartTable(13); + MessagePopupExcel.AddButtonParameter(builder, ButtonParameterOffset); + MessagePopupExcel.AddButtonCommand(builder, ButtonCommandOffset); + MessagePopupExcel.AddButtonText(builder, ButtonTextOffset); + MessagePopupExcel.AddButton(builder, ButtonOffset); + MessagePopupExcel.AddConditionText(builder, ConditionTextOffset); + MessagePopupExcel.AddMessageText(builder, MessageText); + MessagePopupExcel.AddSubTitleText(builder, SubTitleText); + MessagePopupExcel.AddTitleText(builder, TitleText); + MessagePopupExcel.AddImage(builder, ImageOffset); + MessagePopupExcel.AddOrderType(builder, OrderType); + MessagePopupExcel.AddMessagePopupLayout(builder, MessagePopupLayout); + MessagePopupExcel.AddStringId(builder, StringId); + MessagePopupExcel.AddDisplayXButton(builder, DisplayXButton); + return MessagePopupExcel.EndMessagePopupExcel(builder); + } + + public static void StartMessagePopupExcel(FlatBufferBuilder builder) { builder.StartTable(13); } + public static void AddStringId(FlatBufferBuilder builder, uint stringId) { builder.AddUint(0, stringId, 0); } + public static void AddMessagePopupLayout(FlatBufferBuilder builder, SCHALE.Common.FlatData.MessagePopupLayout messagePopupLayout) { builder.AddInt(1, (int)messagePopupLayout, 0); } + public static void AddOrderType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MessagePopupImagePositionType orderType) { builder.AddInt(2, (int)orderType, 0); } + public static void AddImage(FlatBufferBuilder builder, StringOffset imageOffset) { builder.AddOffset(3, imageOffset.Value, 0); } + public static void AddTitleText(FlatBufferBuilder builder, uint titleText) { builder.AddUint(4, titleText, 0); } + public static void AddSubTitleText(FlatBufferBuilder builder, uint subTitleText) { builder.AddUint(5, subTitleText, 0); } + public static void AddMessageText(FlatBufferBuilder builder, uint messageText) { builder.AddUint(6, messageText, 0); } + public static void AddConditionText(FlatBufferBuilder builder, VectorOffset conditionTextOffset) { builder.AddOffset(7, conditionTextOffset.Value, 0); } + public static VectorOffset CreateConditionTextVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateConditionTextVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTextVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionTextVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionTextVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddDisplayXButton(FlatBufferBuilder builder, bool displayXButton) { builder.AddBool(8, displayXButton, false); } + public static void AddButton(FlatBufferBuilder builder, VectorOffset buttonOffset) { builder.AddOffset(9, buttonOffset.Value, 0); } + public static VectorOffset CreateButtonVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.MessagePopupButtonType[] 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 CreateButtonVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.MessagePopupButtonType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartButtonVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddButtonText(FlatBufferBuilder builder, VectorOffset buttonTextOffset) { builder.AddOffset(10, buttonTextOffset.Value, 0); } + public static VectorOffset CreateButtonTextVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateButtonTextVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonTextVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonTextVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartButtonTextVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddButtonCommand(FlatBufferBuilder builder, VectorOffset buttonCommandOffset) { builder.AddOffset(11, buttonCommandOffset.Value, 0); } + public static VectorOffset CreateButtonCommandVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateButtonCommandVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonCommandVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonCommandVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartButtonCommandVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddButtonParameter(FlatBufferBuilder builder, VectorOffset buttonParameterOffset) { builder.AddOffset(12, buttonParameterOffset.Value, 0); } + public static VectorOffset CreateButtonParameterVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateButtonParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateButtonParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartButtonParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMessagePopupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MessagePopupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StringId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*MessagePopupLayout*/, 4 /*SCHALE.Common.FlatData.MessagePopupLayout*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*OrderType*/, 4 /*SCHALE.Common.FlatData.MessagePopupImagePositionType*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*Image*/, false) + && verifier.VerifyField(tablePos, 12 /*TitleText*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*SubTitleText*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*MessageText*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ConditionText*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 20 /*DisplayXButton*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*Button*/, 4 /*SCHALE.Common.FlatData.MessagePopupButtonType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*ButtonText*/, 4 /*uint*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 26 /*ButtonCommand*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 28 /*ButtonParameter*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MessagePopupExcelTable.cs b/SCHALE.Common/FlatData/MessagePopupExcelTable.cs new file mode 100644 index 0000000..12a610c --- /dev/null +++ b/SCHALE.Common/FlatData/MessagePopupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/MessagePopupImagePositionType.cs b/SCHALE.Common/FlatData/MessagePopupImagePositionType.cs new file mode 100644 index 0000000..953f2e9 --- /dev/null +++ b/SCHALE.Common/FlatData/MessagePopupImagePositionType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MessagePopupImagePositionType : int +{ + ImageFirst = 0, + TextFirst = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/MessagePopupLayout.cs b/SCHALE.Common/FlatData/MessagePopupLayout.cs new file mode 100644 index 0000000..5ca1f8b --- /dev/null +++ b/SCHALE.Common/FlatData/MessagePopupLayout.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MessagePopupLayout : int +{ + TextOnly = 0, + ImageBig = 1, + ImageSmall = 2, + UnlockCondition = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs new file mode 100644 index 0000000..6b31c86 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcel.cs @@ -0,0 +1,130 @@ +// +// 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 MiniGameAudioAnimatorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameAudioAnimatorExcel GetRootAsMiniGameAudioAnimatorExcel(ByteBuffer _bb) { return GetRootAsMiniGameAudioAnimatorExcel(_bb, new MiniGameAudioAnimatorExcel()); } + public static MiniGameAudioAnimatorExcel GetRootAsMiniGameAudioAnimatorExcel(ByteBuffer _bb, MiniGameAudioAnimatorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameAudioAnimatorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint ControllerNameHash { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string VoiceNamePrefix { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVoiceNamePrefixBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetVoiceNamePrefixBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetVoiceNamePrefixArray() { return __p.__vector_as_array(6); } + public uint StateNameHash { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string StateName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStateNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetStateNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetStateNameArray() { return __p.__vector_as_array(10); } + public bool IgnoreInterruptDelay { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IgnoreInterruptPlay { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float Volume { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Delay { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int AudioPriority { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string AudioClipPath(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int AudioClipPathLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + public uint VoiceHash(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceHashLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceHashBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetVoiceHashBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public uint[] GetVoiceHashArray() { return __p.__vector_as_array(24); } + + public static Offset CreateMiniGameAudioAnimatorExcel(FlatBufferBuilder builder, + uint ControllerNameHash = 0, + StringOffset VoiceNamePrefixOffset = default(StringOffset), + uint StateNameHash = 0, + StringOffset StateNameOffset = default(StringOffset), + bool IgnoreInterruptDelay = false, + bool IgnoreInterruptPlay = false, + float Volume = 0.0f, + float Delay = 0.0f, + int AudioPriority = 0, + VectorOffset AudioClipPathOffset = default(VectorOffset), + VectorOffset VoiceHashOffset = default(VectorOffset)) { + builder.StartTable(11); + MiniGameAudioAnimatorExcel.AddVoiceHash(builder, VoiceHashOffset); + MiniGameAudioAnimatorExcel.AddAudioClipPath(builder, AudioClipPathOffset); + MiniGameAudioAnimatorExcel.AddAudioPriority(builder, AudioPriority); + MiniGameAudioAnimatorExcel.AddDelay(builder, Delay); + MiniGameAudioAnimatorExcel.AddVolume(builder, Volume); + MiniGameAudioAnimatorExcel.AddStateName(builder, StateNameOffset); + MiniGameAudioAnimatorExcel.AddStateNameHash(builder, StateNameHash); + MiniGameAudioAnimatorExcel.AddVoiceNamePrefix(builder, VoiceNamePrefixOffset); + MiniGameAudioAnimatorExcel.AddControllerNameHash(builder, ControllerNameHash); + MiniGameAudioAnimatorExcel.AddIgnoreInterruptPlay(builder, IgnoreInterruptPlay); + MiniGameAudioAnimatorExcel.AddIgnoreInterruptDelay(builder, IgnoreInterruptDelay); + return MiniGameAudioAnimatorExcel.EndMiniGameAudioAnimatorExcel(builder); + } + + public static void StartMiniGameAudioAnimatorExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddControllerNameHash(FlatBufferBuilder builder, uint controllerNameHash) { builder.AddUint(0, controllerNameHash, 0); } + public static void AddVoiceNamePrefix(FlatBufferBuilder builder, StringOffset voiceNamePrefixOffset) { builder.AddOffset(1, voiceNamePrefixOffset.Value, 0); } + public static void AddStateNameHash(FlatBufferBuilder builder, uint stateNameHash) { builder.AddUint(2, stateNameHash, 0); } + public static void AddStateName(FlatBufferBuilder builder, StringOffset stateNameOffset) { builder.AddOffset(3, stateNameOffset.Value, 0); } + public static void AddIgnoreInterruptDelay(FlatBufferBuilder builder, bool ignoreInterruptDelay) { builder.AddBool(4, ignoreInterruptDelay, false); } + public static void AddIgnoreInterruptPlay(FlatBufferBuilder builder, bool ignoreInterruptPlay) { builder.AddBool(5, ignoreInterruptPlay, false); } + public static void AddVolume(FlatBufferBuilder builder, float volume) { builder.AddFloat(6, volume, 0.0f); } + public static void AddDelay(FlatBufferBuilder builder, float delay) { builder.AddFloat(7, delay, 0.0f); } + public static void AddAudioPriority(FlatBufferBuilder builder, int audioPriority) { builder.AddInt(8, audioPriority, 0); } + public static void AddAudioClipPath(FlatBufferBuilder builder, VectorOffset audioClipPathOffset) { builder.AddOffset(9, audioClipPathOffset.Value, 0); } + public static VectorOffset CreateAudioClipPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAudioClipPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAudioClipPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVoiceHash(FlatBufferBuilder builder, VectorOffset voiceHashOffset) { builder.AddOffset(10, voiceHashOffset.Value, 0); } + public static VectorOffset CreateVoiceHashVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceHashVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMiniGameAudioAnimatorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameAudioAnimatorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ControllerNameHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*VoiceNamePrefix*/, false) + && verifier.VerifyField(tablePos, 8 /*StateNameHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*StateName*/, false) + && verifier.VerifyField(tablePos, 12 /*IgnoreInterruptDelay*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*IgnoreInterruptPlay*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*Volume*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Delay*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*AudioPriority*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*AudioClipPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*VoiceHash*/, 4 /*uint*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs new file mode 100644 index 0000000..de64632 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameAudioAnimatorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameAudioAnimatorExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameAudioAnimatorExcelTable GetRootAsMiniGameAudioAnimatorExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameAudioAnimatorExcelTable(_bb, new MiniGameAudioAnimatorExcelTable()); } + public static MiniGameAudioAnimatorExcelTable GetRootAsMiniGameAudioAnimatorExcelTable(ByteBuffer _bb, MiniGameAudioAnimatorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameAudioAnimatorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameAudioAnimatorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameAudioAnimatorExcel?)(new SCHALE.Common.FlatData.MiniGameAudioAnimatorExcel()).__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 CreateMiniGameAudioAnimatorExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameAudioAnimatorExcelTable.AddDataList(builder, DataListOffset); + return MiniGameAudioAnimatorExcelTable.EndMiniGameAudioAnimatorExcelTable(builder); + } + + public static void StartMiniGameAudioAnimatorExcelTable(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 EndMiniGameAudioAnimatorExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameAudioAnimatorExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameAudioAnimatorExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameMissionExcel.cs b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs new file mode 100644 index 0000000..ae29379 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs @@ -0,0 +1,267 @@ +// +// 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 MiniGameMissionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameMissionExcel GetRootAsMiniGameMissionExcel(ByteBuffer _bb) { return GetRootAsMiniGameMissionExcel(_bb, new MiniGameMissionExcel()); } + public static MiniGameMissionExcel GetRootAsMiniGameMissionExcel(ByteBuffer _bb, MiniGameMissionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameMissionExcel __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 string GroupName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroupNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetGroupNameBytes() { return __p.__vector_as_arraysegment(10); } +#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 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; } } +#if ENABLE_SPAN_T + public Span GetToastImagePathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetToastImagePathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetToastImagePathArray() { return __p.__vector_as_array(20); } + public bool ViewFlag { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long DisplayOrder { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreMissionId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PreMissionIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPreMissionIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetPreMissionIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetPreMissionIdArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } + public long AccountLevel { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShortcutUI(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUILength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public bool IsCompleteExtensionTime { get { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long CompleteConditionCount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CompleteConditionParameter(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CompleteConditionParameterLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterBytes() { return __p.__vector_as_span(40, 8); } +#else + public ArraySegment? GetCompleteConditionParameterBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public long[] GetCompleteConditionParameterArray() { return __p.__vector_as_array(40); } + public SCHALE.Common.FlatData.Tag CompleteConditionParameterTag(int j) { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CompleteConditionParameterTagLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterTagBytes() { return __p.__vector_as_span(42, 4); } +#else + public ArraySegment? GetCompleteConditionParameterTagBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public SCHALE.Common.FlatData.Tag[] GetCompleteConditionParameterTagArray() { int o = __p.__offset(42); 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 string RewardIcon { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardIconBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetRewardIconBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetRewardIconArray() { return __p.__vector_as_array(44); } + public SCHALE.Common.FlatData.ParcelType MissionRewardParcelType(int j) { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int MissionRewardParcelTypeLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelTypeBytes() { return __p.__vector_as_span(46, 4); } +#else + public ArraySegment? GetMissionRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetMissionRewardParcelTypeArray() { int o = __p.__offset(46); 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 MissionRewardParcelId(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MissionRewardParcelIdLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelIdBytes() { return __p.__vector_as_span(48, 8); } +#else + public ArraySegment? GetMissionRewardParcelIdBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public long[] GetMissionRewardParcelIdArray() { return __p.__vector_as_array(48); } + public int MissionRewardAmount(int j) { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MissionRewardAmountLength { get { int o = __p.__offset(50); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardAmountBytes() { return __p.__vector_as_span(50, 4); } +#else + public ArraySegment? GetMissionRewardAmountBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public int[] GetMissionRewardAmountArray() { return __p.__vector_as_array(50); } + + public static Offset CreateMiniGameMissionExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + long GroupId = 0, + StringOffset GroupNameOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, + StringOffset DescriptionOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, + StringOffset ToastImagePathOffset = default(StringOffset), + bool ViewFlag = false, + long DisplayOrder = 0, + VectorOffset PreMissionIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, + long AccountLevel = 0, + VectorOffset ShortcutUIOffset = default(VectorOffset), + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + bool IsCompleteExtensionTime = false, + long CompleteConditionCount = 0, + VectorOffset CompleteConditionParameterOffset = default(VectorOffset), + VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), + StringOffset RewardIconOffset = default(StringOffset), + VectorOffset MissionRewardParcelTypeOffset = default(VectorOffset), + VectorOffset MissionRewardParcelIdOffset = default(VectorOffset), + VectorOffset MissionRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(24); + MiniGameMissionExcel.AddCompleteConditionCount(builder, CompleteConditionCount); + MiniGameMissionExcel.AddAccountLevel(builder, AccountLevel); + MiniGameMissionExcel.AddDisplayOrder(builder, DisplayOrder); + MiniGameMissionExcel.AddGroupId(builder, GroupId); + MiniGameMissionExcel.AddEventContentId(builder, EventContentId); + MiniGameMissionExcel.AddId(builder, Id); + MiniGameMissionExcel.AddMissionRewardAmount(builder, MissionRewardAmountOffset); + MiniGameMissionExcel.AddMissionRewardParcelId(builder, MissionRewardParcelIdOffset); + MiniGameMissionExcel.AddMissionRewardParcelType(builder, MissionRewardParcelTypeOffset); + MiniGameMissionExcel.AddRewardIcon(builder, RewardIconOffset); + MiniGameMissionExcel.AddCompleteConditionParameterTag(builder, CompleteConditionParameterTagOffset); + MiniGameMissionExcel.AddCompleteConditionParameter(builder, CompleteConditionParameterOffset); + MiniGameMissionExcel.AddCompleteConditionType(builder, CompleteConditionType); + MiniGameMissionExcel.AddShortcutUI(builder, ShortcutUIOffset); + MiniGameMissionExcel.AddAccountType(builder, AccountType); + MiniGameMissionExcel.AddPreMissionId(builder, PreMissionIdOffset); + MiniGameMissionExcel.AddToastImagePath(builder, ToastImagePathOffset); + MiniGameMissionExcel.AddToastDisplayType(builder, ToastDisplayType); + MiniGameMissionExcel.AddResetType(builder, ResetType); + MiniGameMissionExcel.AddDescription(builder, DescriptionOffset); + MiniGameMissionExcel.AddCategory(builder, Category); + MiniGameMissionExcel.AddGroupName(builder, GroupNameOffset); + MiniGameMissionExcel.AddIsCompleteExtensionTime(builder, IsCompleteExtensionTime); + MiniGameMissionExcel.AddViewFlag(builder, ViewFlag); + return MiniGameMissionExcel.EndMiniGameMissionExcel(builder); + } + + public static void StartMiniGameMissionExcel(FlatBufferBuilder builder) { builder.StartTable(24); } + 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 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 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); } + public static void AddViewFlag(FlatBufferBuilder builder, bool viewFlag) { builder.AddBool(9, viewFlag, false); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(10, displayOrder, 0); } + public static void AddPreMissionId(FlatBufferBuilder builder, VectorOffset preMissionIdOffset) { builder.AddOffset(11, preMissionIdOffset.Value, 0); } + public static VectorOffset CreatePreMissionIdVector(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 CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + 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 AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(12, (int)accountType, 0); } + public static void AddAccountLevel(FlatBufferBuilder builder, long accountLevel) { builder.AddLong(13, accountLevel, 0); } + public static void AddShortcutUI(FlatBufferBuilder builder, VectorOffset shortcutUIOffset) { builder.AddOffset(14, shortcutUIOffset.Value, 0); } + public static VectorOffset CreateShortcutUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCompleteConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCompleteConditionType completeConditionType) { builder.AddInt(15, (int)completeConditionType, 0); } + public static void AddIsCompleteExtensionTime(FlatBufferBuilder builder, bool isCompleteExtensionTime) { builder.AddBool(16, isCompleteExtensionTime, false); } + public static void AddCompleteConditionCount(FlatBufferBuilder builder, long completeConditionCount) { builder.AddLong(17, completeConditionCount, 0); } + public static void AddCompleteConditionParameter(FlatBufferBuilder builder, VectorOffset completeConditionParameterOffset) { builder.AddOffset(18, completeConditionParameterOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterVector(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 CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCompleteConditionParameterTag(FlatBufferBuilder builder, VectorOffset completeConditionParameterTagOffset) { builder.AddOffset(19, completeConditionParameterTagOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterTagVector(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 CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardIcon(FlatBufferBuilder builder, StringOffset rewardIconOffset) { builder.AddOffset(20, rewardIconOffset.Value, 0); } + public static void AddMissionRewardParcelType(FlatBufferBuilder builder, VectorOffset missionRewardParcelTypeOffset) { builder.AddOffset(21, missionRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelTypeVector(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 CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMissionRewardParcelId(FlatBufferBuilder builder, VectorOffset missionRewardParcelIdOffset) { builder.AddOffset(22, missionRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelIdVector(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 CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMissionRewardAmount(FlatBufferBuilder builder, VectorOffset missionRewardAmountOffset) { builder.AddOffset(23, missionRewardAmountOffset.Value, 0); } + public static VectorOffset CreateMissionRewardAmountVector(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 CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMiniGameMissionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameMissionExcelVerify +{ + 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.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, 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) + && verifier.VerifyField(tablePos, 22 /*ViewFlag*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*PreMissionId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 28 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*AccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 32 /*ShortcutUI*/, false) + && verifier.VerifyField(tablePos, 34 /*CompleteConditionType*/, 4 /*SCHALE.Common.FlatData.MissionCompleteConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*IsCompleteExtensionTime*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 38 /*CompleteConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*CompleteConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*CompleteConditionParameterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyString(tablePos, 44 /*RewardIcon*/, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*MissionRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*MissionRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 50 /*MissionRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs b/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs new file mode 100644 index 0000000..2af8f19 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameMissionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameMissionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameMissionExcelTable GetRootAsMiniGameMissionExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameMissionExcelTable(_bb, new MiniGameMissionExcelTable()); } + public static MiniGameMissionExcelTable GetRootAsMiniGameMissionExcelTable(ByteBuffer _bb, MiniGameMissionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameMissionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameMissionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameMissionExcel?)(new SCHALE.Common.FlatData.MiniGameMissionExcel()).__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 CreateMiniGameMissionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameMissionExcelTable.AddDataList(builder, DataListOffset); + return MiniGameMissionExcelTable.EndMiniGameMissionExcelTable(builder); + } + + public static void StartMiniGameMissionExcelTable(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 EndMiniGameMissionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameMissionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameMissionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs b/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs new file mode 100644 index 0000000..86744e0 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGamePlayGuideExcel.cs @@ -0,0 +1,93 @@ +// +// 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 MiniGamePlayGuideExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGamePlayGuideExcel GetRootAsMiniGamePlayGuideExcel(ByteBuffer _bb) { return GetRootAsMiniGamePlayGuideExcel(_bb, new MiniGamePlayGuideExcel()); } + public static MiniGamePlayGuideExcel GetRootAsMiniGamePlayGuideExcel(ByteBuffer _bb, MiniGamePlayGuideExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGamePlayGuideExcel __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 int DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string GuideTitle { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTitleBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetGuideTitleBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetGuideTitleArray() { return __p.__vector_as_array(10); } + public string GuideImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetGuideImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetGuideImagePathArray() { return __p.__vector_as_array(12); } + public string GuideText { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGuideTextBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGuideTextBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGuideTextArray() { return __p.__vector_as_array(14); } + + public static Offset CreateMiniGamePlayGuideExcel(FlatBufferBuilder builder, + long Id = 0, + long EventContentId = 0, + int DisplayOrder = 0, + StringOffset GuideTitleOffset = default(StringOffset), + StringOffset GuideImagePathOffset = default(StringOffset), + StringOffset GuideTextOffset = default(StringOffset)) { + builder.StartTable(6); + MiniGamePlayGuideExcel.AddEventContentId(builder, EventContentId); + MiniGamePlayGuideExcel.AddId(builder, Id); + MiniGamePlayGuideExcel.AddGuideText(builder, GuideTextOffset); + MiniGamePlayGuideExcel.AddGuideImagePath(builder, GuideImagePathOffset); + MiniGamePlayGuideExcel.AddGuideTitle(builder, GuideTitleOffset); + MiniGamePlayGuideExcel.AddDisplayOrder(builder, DisplayOrder); + return MiniGamePlayGuideExcel.EndMiniGamePlayGuideExcel(builder); + } + + public static void StartMiniGamePlayGuideExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + 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 AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(2, displayOrder, 0); } + public static void AddGuideTitle(FlatBufferBuilder builder, StringOffset guideTitleOffset) { builder.AddOffset(3, guideTitleOffset.Value, 0); } + public static void AddGuideImagePath(FlatBufferBuilder builder, StringOffset guideImagePathOffset) { builder.AddOffset(4, guideImagePathOffset.Value, 0); } + public static void AddGuideText(FlatBufferBuilder builder, StringOffset guideTextOffset) { builder.AddOffset(5, guideTextOffset.Value, 0); } + public static Offset EndMiniGamePlayGuideExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGamePlayGuideExcelVerify +{ + 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 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*GuideTitle*/, false) + && verifier.VerifyString(tablePos, 12 /*GuideImagePath*/, false) + && verifier.VerifyString(tablePos, 14 /*GuideText*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs b/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs new file mode 100644 index 0000000..281d3c8 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGamePlayGuideExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGamePlayGuideExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGamePlayGuideExcelTable GetRootAsMiniGamePlayGuideExcelTable(ByteBuffer _bb) { return GetRootAsMiniGamePlayGuideExcelTable(_bb, new MiniGamePlayGuideExcelTable()); } + public static MiniGamePlayGuideExcelTable GetRootAsMiniGamePlayGuideExcelTable(ByteBuffer _bb, MiniGamePlayGuideExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGamePlayGuideExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGamePlayGuideExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGamePlayGuideExcel?)(new SCHALE.Common.FlatData.MiniGamePlayGuideExcel()).__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 CreateMiniGamePlayGuideExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGamePlayGuideExcelTable.AddDataList(builder, DataListOffset); + return MiniGamePlayGuideExcelTable.EndMiniGamePlayGuideExcelTable(builder); + } + + public static void StartMiniGamePlayGuideExcelTable(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 EndMiniGamePlayGuideExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGamePlayGuideExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGamePlayGuideExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs new file mode 100644 index 0000000..6addd51 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcel.cs @@ -0,0 +1,119 @@ +// +// 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 MiniGameRhythmBgmExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameRhythmBgmExcel GetRootAsMiniGameRhythmBgmExcel(ByteBuffer _bb) { return GetRootAsMiniGameRhythmBgmExcel(_bb, new MiniGameRhythmBgmExcel()); } + public static MiniGameRhythmBgmExcel GetRootAsMiniGameRhythmBgmExcel(ByteBuffer _bb, MiniGameRhythmBgmExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameRhythmBgmExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long RhythmBgmId { 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 string StageSelectImagePath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStageSelectImagePathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetStageSelectImagePathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetStageSelectImagePathArray() { return __p.__vector_as_array(8); } + public long Bpm { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Bgm { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BgmNameText { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgmNameTextBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetBgmNameTextBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetBgmNameTextArray() { return __p.__vector_as_array(14); } + public string BgmArtistText { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgmArtistTextBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetBgmArtistTextBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetBgmArtistTextArray() { return __p.__vector_as_array(16); } + public bool HasLyricist { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string BgmComposerText { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBgmComposerTextBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetBgmComposerTextBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetBgmComposerTextArray() { return __p.__vector_as_array(20); } + public int BgmLength { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateMiniGameRhythmBgmExcel(FlatBufferBuilder builder, + long RhythmBgmId = 0, + long EventContentId = 0, + StringOffset StageSelectImagePathOffset = default(StringOffset), + long Bpm = 0, + long Bgm = 0, + StringOffset BgmNameTextOffset = default(StringOffset), + StringOffset BgmArtistTextOffset = default(StringOffset), + bool HasLyricist = false, + StringOffset BgmComposerTextOffset = default(StringOffset), + int BgmLength = 0) { + builder.StartTable(10); + MiniGameRhythmBgmExcel.AddBgm(builder, Bgm); + MiniGameRhythmBgmExcel.AddBpm(builder, Bpm); + MiniGameRhythmBgmExcel.AddEventContentId(builder, EventContentId); + MiniGameRhythmBgmExcel.AddRhythmBgmId(builder, RhythmBgmId); + MiniGameRhythmBgmExcel.AddBgmLength(builder, BgmLength); + MiniGameRhythmBgmExcel.AddBgmComposerText(builder, BgmComposerTextOffset); + MiniGameRhythmBgmExcel.AddBgmArtistText(builder, BgmArtistTextOffset); + MiniGameRhythmBgmExcel.AddBgmNameText(builder, BgmNameTextOffset); + MiniGameRhythmBgmExcel.AddStageSelectImagePath(builder, StageSelectImagePathOffset); + MiniGameRhythmBgmExcel.AddHasLyricist(builder, HasLyricist); + return MiniGameRhythmBgmExcel.EndMiniGameRhythmBgmExcel(builder); + } + + public static void StartMiniGameRhythmBgmExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddRhythmBgmId(FlatBufferBuilder builder, long rhythmBgmId) { builder.AddLong(0, rhythmBgmId, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddStageSelectImagePath(FlatBufferBuilder builder, StringOffset stageSelectImagePathOffset) { builder.AddOffset(2, stageSelectImagePathOffset.Value, 0); } + public static void AddBpm(FlatBufferBuilder builder, long bpm) { builder.AddLong(3, bpm, 0); } + public static void AddBgm(FlatBufferBuilder builder, long bgm) { builder.AddLong(4, bgm, 0); } + public static void AddBgmNameText(FlatBufferBuilder builder, StringOffset bgmNameTextOffset) { builder.AddOffset(5, bgmNameTextOffset.Value, 0); } + public static void AddBgmArtistText(FlatBufferBuilder builder, StringOffset bgmArtistTextOffset) { builder.AddOffset(6, bgmArtistTextOffset.Value, 0); } + public static void AddHasLyricist(FlatBufferBuilder builder, bool hasLyricist) { builder.AddBool(7, hasLyricist, false); } + public static void AddBgmComposerText(FlatBufferBuilder builder, StringOffset bgmComposerTextOffset) { builder.AddOffset(8, bgmComposerTextOffset.Value, 0); } + public static void AddBgmLength(FlatBufferBuilder builder, int bgmLength) { builder.AddInt(9, bgmLength, 0); } + public static Offset EndMiniGameRhythmBgmExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameRhythmBgmExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RhythmBgmId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*StageSelectImagePath*/, false) + && verifier.VerifyField(tablePos, 10 /*Bpm*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*Bgm*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*BgmNameText*/, false) + && verifier.VerifyString(tablePos, 16 /*BgmArtistText*/, false) + && verifier.VerifyField(tablePos, 18 /*HasLyricist*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 20 /*BgmComposerText*/, false) + && verifier.VerifyField(tablePos, 22 /*BgmLength*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs new file mode 100644 index 0000000..d09bfad --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameRhythmBgmExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameRhythmBgmExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameRhythmBgmExcelTable GetRootAsMiniGameRhythmBgmExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameRhythmBgmExcelTable(_bb, new MiniGameRhythmBgmExcelTable()); } + public static MiniGameRhythmBgmExcelTable GetRootAsMiniGameRhythmBgmExcelTable(ByteBuffer _bb, MiniGameRhythmBgmExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameRhythmBgmExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameRhythmBgmExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameRhythmBgmExcel?)(new SCHALE.Common.FlatData.MiniGameRhythmBgmExcel()).__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 CreateMiniGameRhythmBgmExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameRhythmBgmExcelTable.AddDataList(builder, DataListOffset); + return MiniGameRhythmBgmExcelTable.EndMiniGameRhythmBgmExcelTable(builder); + } + + public static void StartMiniGameRhythmBgmExcelTable(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 EndMiniGameRhythmBgmExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameRhythmBgmExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameRhythmBgmExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs b/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs new file mode 100644 index 0000000..d8ef093 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameRhythmExcel.cs @@ -0,0 +1,169 @@ +// +// 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 MiniGameRhythmExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameRhythmExcel GetRootAsMiniGameRhythmExcel(ByteBuffer _bb) { return GetRootAsMiniGameRhythmExcel(_bb, new MiniGameRhythmExcel()); } + public static MiniGameRhythmExcel GetRootAsMiniGameRhythmExcel(ByteBuffer _bb, MiniGameRhythmExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameRhythmExcel __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 RhythmBgmId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PresetName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPresetNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPresetNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPresetNameArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.Difficulty StageDifficulty { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.Difficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Difficulty.Normal; } } + public bool IsSpecial { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long OpenStageScoreAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHp { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MissDamage { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CriticalHPRestoreValue { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxScore { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FeverScoreRate { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long NoteScoreRate { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ComboScoreRate { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackScoreRate { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float FeverCriticalRate { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float FeverAttackRate { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long MaxHpScore { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RhythmFileName { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRhythmFileNameBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetRhythmFileNameBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetRhythmFileNameArray() { return __p.__vector_as_array(38); } + public string ArtLevelSceneName { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetArtLevelSceneNameBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetArtLevelSceneNameBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetArtLevelSceneNameArray() { return __p.__vector_as_array(40); } + public string ComboImagePath { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetComboImagePathBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetComboImagePathBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetComboImagePathArray() { return __p.__vector_as_array(42); } + + public static Offset CreateMiniGameRhythmExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long RhythmBgmId = 0, + StringOffset PresetNameOffset = default(StringOffset), + SCHALE.Common.FlatData.Difficulty StageDifficulty = SCHALE.Common.FlatData.Difficulty.Normal, + bool IsSpecial = false, + long OpenStageScoreAmount = 0, + long MaxHp = 0, + long MissDamage = 0, + long CriticalHPRestoreValue = 0, + long MaxScore = 0, + long FeverScoreRate = 0, + long NoteScoreRate = 0, + long ComboScoreRate = 0, + long AttackScoreRate = 0, + float FeverCriticalRate = 0.0f, + float FeverAttackRate = 0.0f, + long MaxHpScore = 0, + StringOffset RhythmFileNameOffset = default(StringOffset), + StringOffset ArtLevelSceneNameOffset = default(StringOffset), + StringOffset ComboImagePathOffset = default(StringOffset)) { + builder.StartTable(20); + MiniGameRhythmExcel.AddMaxHpScore(builder, MaxHpScore); + MiniGameRhythmExcel.AddAttackScoreRate(builder, AttackScoreRate); + MiniGameRhythmExcel.AddComboScoreRate(builder, ComboScoreRate); + MiniGameRhythmExcel.AddNoteScoreRate(builder, NoteScoreRate); + MiniGameRhythmExcel.AddFeverScoreRate(builder, FeverScoreRate); + MiniGameRhythmExcel.AddMaxScore(builder, MaxScore); + MiniGameRhythmExcel.AddCriticalHPRestoreValue(builder, CriticalHPRestoreValue); + MiniGameRhythmExcel.AddMissDamage(builder, MissDamage); + MiniGameRhythmExcel.AddMaxHp(builder, MaxHp); + MiniGameRhythmExcel.AddOpenStageScoreAmount(builder, OpenStageScoreAmount); + MiniGameRhythmExcel.AddRhythmBgmId(builder, RhythmBgmId); + MiniGameRhythmExcel.AddUniqueId(builder, UniqueId); + MiniGameRhythmExcel.AddComboImagePath(builder, ComboImagePathOffset); + MiniGameRhythmExcel.AddArtLevelSceneName(builder, ArtLevelSceneNameOffset); + MiniGameRhythmExcel.AddRhythmFileName(builder, RhythmFileNameOffset); + MiniGameRhythmExcel.AddFeverAttackRate(builder, FeverAttackRate); + MiniGameRhythmExcel.AddFeverCriticalRate(builder, FeverCriticalRate); + MiniGameRhythmExcel.AddStageDifficulty(builder, StageDifficulty); + MiniGameRhythmExcel.AddPresetName(builder, PresetNameOffset); + MiniGameRhythmExcel.AddIsSpecial(builder, IsSpecial); + return MiniGameRhythmExcel.EndMiniGameRhythmExcel(builder); + } + + public static void StartMiniGameRhythmExcel(FlatBufferBuilder builder) { builder.StartTable(20); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddRhythmBgmId(FlatBufferBuilder builder, long rhythmBgmId) { builder.AddLong(1, rhythmBgmId, 0); } + public static void AddPresetName(FlatBufferBuilder builder, StringOffset presetNameOffset) { builder.AddOffset(2, presetNameOffset.Value, 0); } + public static void AddStageDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.Difficulty stageDifficulty) { builder.AddInt(3, (int)stageDifficulty, 0); } + public static void AddIsSpecial(FlatBufferBuilder builder, bool isSpecial) { builder.AddBool(4, isSpecial, false); } + public static void AddOpenStageScoreAmount(FlatBufferBuilder builder, long openStageScoreAmount) { builder.AddLong(5, openStageScoreAmount, 0); } + public static void AddMaxHp(FlatBufferBuilder builder, long maxHp) { builder.AddLong(6, maxHp, 0); } + public static void AddMissDamage(FlatBufferBuilder builder, long missDamage) { builder.AddLong(7, missDamage, 0); } + public static void AddCriticalHPRestoreValue(FlatBufferBuilder builder, long criticalHPRestoreValue) { builder.AddLong(8, criticalHPRestoreValue, 0); } + public static void AddMaxScore(FlatBufferBuilder builder, long maxScore) { builder.AddLong(9, maxScore, 0); } + public static void AddFeverScoreRate(FlatBufferBuilder builder, long feverScoreRate) { builder.AddLong(10, feverScoreRate, 0); } + public static void AddNoteScoreRate(FlatBufferBuilder builder, long noteScoreRate) { builder.AddLong(11, noteScoreRate, 0); } + public static void AddComboScoreRate(FlatBufferBuilder builder, long comboScoreRate) { builder.AddLong(12, comboScoreRate, 0); } + public static void AddAttackScoreRate(FlatBufferBuilder builder, long attackScoreRate) { builder.AddLong(13, attackScoreRate, 0); } + public static void AddFeverCriticalRate(FlatBufferBuilder builder, float feverCriticalRate) { builder.AddFloat(14, feverCriticalRate, 0.0f); } + public static void AddFeverAttackRate(FlatBufferBuilder builder, float feverAttackRate) { builder.AddFloat(15, feverAttackRate, 0.0f); } + public static void AddMaxHpScore(FlatBufferBuilder builder, long maxHpScore) { builder.AddLong(16, maxHpScore, 0); } + public static void AddRhythmFileName(FlatBufferBuilder builder, StringOffset rhythmFileNameOffset) { builder.AddOffset(17, rhythmFileNameOffset.Value, 0); } + public static void AddArtLevelSceneName(FlatBufferBuilder builder, StringOffset artLevelSceneNameOffset) { builder.AddOffset(18, artLevelSceneNameOffset.Value, 0); } + public static void AddComboImagePath(FlatBufferBuilder builder, StringOffset comboImagePathOffset) { builder.AddOffset(19, comboImagePathOffset.Value, 0); } + public static Offset EndMiniGameRhythmExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameRhythmExcelVerify +{ + 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 /*RhythmBgmId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*PresetName*/, false) + && verifier.VerifyField(tablePos, 10 /*StageDifficulty*/, 4 /*SCHALE.Common.FlatData.Difficulty*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*IsSpecial*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 14 /*OpenStageScoreAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*MaxHp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*MissDamage*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*CriticalHPRestoreValue*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*MaxScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*FeverScoreRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*NoteScoreRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ComboScoreRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*AttackScoreRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*FeverCriticalRate*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*FeverAttackRate*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*MaxHpScore*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 38 /*RhythmFileName*/, false) + && verifier.VerifyString(tablePos, 40 /*ArtLevelSceneName*/, false) + && verifier.VerifyString(tablePos, 42 /*ComboImagePath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs b/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs new file mode 100644 index 0000000..96f497c --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameRhythmExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameRhythmExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameRhythmExcelTable GetRootAsMiniGameRhythmExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameRhythmExcelTable(_bb, new MiniGameRhythmExcelTable()); } + public static MiniGameRhythmExcelTable GetRootAsMiniGameRhythmExcelTable(ByteBuffer _bb, MiniGameRhythmExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameRhythmExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameRhythmExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameRhythmExcel?)(new SCHALE.Common.FlatData.MiniGameRhythmExcel()).__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 CreateMiniGameRhythmExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameRhythmExcelTable.AddDataList(builder, DataListOffset); + return MiniGameRhythmExcelTable.EndMiniGameRhythmExcelTable(builder); + } + + public static void StartMiniGameRhythmExcelTable(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 EndMiniGameRhythmExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameRhythmExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameRhythmExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs new file mode 100644 index 0000000..3c8c04f --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcel.cs @@ -0,0 +1,159 @@ +// +// 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 MiniGameShootingCharacterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingCharacterExcel GetRootAsMiniGameShootingCharacterExcel(ByteBuffer _bb) { return GetRootAsMiniGameShootingCharacterExcel(_bb, new MiniGameShootingCharacterExcel()); } + public static MiniGameShootingCharacterExcel GetRootAsMiniGameShootingCharacterExcel(ByteBuffer _bb, MiniGameShootingCharacterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingCharacterExcel __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 string SpineResourceName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpineResourceNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSpineResourceNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSpineResourceNameArray() { return __p.__vector_as_array(6); } + public float BodyRadius { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public string ModelPrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetModelPrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetModelPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetModelPrefabNameArray() { return __p.__vector_as_array(10); } + public string NormalAttackSkillData { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNormalAttackSkillDataBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetNormalAttackSkillDataBytes() { return __p.__vector_as_arraysegment(12); } +#endif + 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 static Offset CreateMiniGameShootingCharacterExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset SpineResourceNameOffset = default(StringOffset), + float BodyRadius = 0.0f, + StringOffset ModelPrefabNameOffset = default(StringOffset), + StringOffset NormalAttackSkillDataOffset = default(StringOffset), + VectorOffset PublicSkillDataOffset = default(VectorOffset), + long MaxHP = 0, + long AttackPower = 0, + long DefensePower = 0, + long CriticalRate = 0, + long CriticalDamageRate = 0, + long AttackRange = 0, + long MoveSpeed = 0, + long ShotTime = 0, + bool IsBoss = false, + float Scale = 0.0f, + bool IgnoreObstacleCheck = false, + long CharacterVoiceGroupId = 0) { + builder.StartTable(18); + MiniGameShootingCharacterExcel.AddCharacterVoiceGroupId(builder, CharacterVoiceGroupId); + MiniGameShootingCharacterExcel.AddShotTime(builder, ShotTime); + MiniGameShootingCharacterExcel.AddMoveSpeed(builder, MoveSpeed); + MiniGameShootingCharacterExcel.AddAttackRange(builder, AttackRange); + MiniGameShootingCharacterExcel.AddCriticalDamageRate(builder, CriticalDamageRate); + MiniGameShootingCharacterExcel.AddCriticalRate(builder, CriticalRate); + MiniGameShootingCharacterExcel.AddDefensePower(builder, DefensePower); + MiniGameShootingCharacterExcel.AddAttackPower(builder, AttackPower); + MiniGameShootingCharacterExcel.AddMaxHP(builder, MaxHP); + MiniGameShootingCharacterExcel.AddUniqueId(builder, UniqueId); + MiniGameShootingCharacterExcel.AddScale(builder, Scale); + MiniGameShootingCharacterExcel.AddPublicSkillData(builder, PublicSkillDataOffset); + MiniGameShootingCharacterExcel.AddNormalAttackSkillData(builder, NormalAttackSkillDataOffset); + MiniGameShootingCharacterExcel.AddModelPrefabName(builder, ModelPrefabNameOffset); + MiniGameShootingCharacterExcel.AddBodyRadius(builder, BodyRadius); + MiniGameShootingCharacterExcel.AddSpineResourceName(builder, SpineResourceNameOffset); + MiniGameShootingCharacterExcel.AddIgnoreObstacleCheck(builder, IgnoreObstacleCheck); + MiniGameShootingCharacterExcel.AddIsBoss(builder, IsBoss); + return MiniGameShootingCharacterExcel.EndMiniGameShootingCharacterExcel(builder); + } + + public static void StartMiniGameShootingCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + 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); } + public static void AddModelPrefabName(FlatBufferBuilder builder, StringOffset modelPrefabNameOffset) { builder.AddOffset(3, modelPrefabNameOffset.Value, 0); } + public static void AddNormalAttackSkillData(FlatBufferBuilder builder, StringOffset normalAttackSkillDataOffset) { builder.AddOffset(4, normalAttackSkillDataOffset.Value, 0); } + public static void AddPublicSkillData(FlatBufferBuilder builder, VectorOffset publicSkillDataOffset) { builder.AddOffset(5, publicSkillDataOffset.Value, 0); } + public static VectorOffset CreatePublicSkillDataVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePublicSkillDataVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + 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 Offset EndMiniGameShootingCharacterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingCharacterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*SpineResourceName*/, false) + && verifier.VerifyField(tablePos, 8 /*BodyRadius*/, 4 /*float*/, 4, false) + && 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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs new file mode 100644 index 0000000..49ead1c --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingCharacterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameShootingCharacterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingCharacterExcelTable GetRootAsMiniGameShootingCharacterExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameShootingCharacterExcelTable(_bb, new MiniGameShootingCharacterExcelTable()); } + public static MiniGameShootingCharacterExcelTable GetRootAsMiniGameShootingCharacterExcelTable(ByteBuffer _bb, MiniGameShootingCharacterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingCharacterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameShootingCharacterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameShootingCharacterExcel?)(new SCHALE.Common.FlatData.MiniGameShootingCharacterExcel()).__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 CreateMiniGameShootingCharacterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameShootingCharacterExcelTable.AddDataList(builder, DataListOffset); + return MiniGameShootingCharacterExcelTable.EndMiniGameShootingCharacterExcelTable(builder); + } + + public static void StartMiniGameShootingCharacterExcelTable(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 EndMiniGameShootingCharacterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingCharacterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameShootingCharacterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs new file mode 100644 index 0000000..9b51789 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingGeasExcel.cs @@ -0,0 +1,97 @@ +// +// 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 MiniGameShootingGeasExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingGeasExcel GetRootAsMiniGameShootingGeasExcel(ByteBuffer _bb) { return GetRootAsMiniGameShootingGeasExcel(_bb, new MiniGameShootingGeasExcel()); } + public static MiniGameShootingGeasExcel GetRootAsMiniGameShootingGeasExcel(ByteBuffer _bb, MiniGameShootingGeasExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingGeasExcel __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 SCHALE.Common.FlatData.Geas GeasType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Geas)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Geas.ForwardProjectile; } } + public string Icon { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(8); } + public long Probability { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxOverlapCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string GeasData { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGeasDataBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGeasDataBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGeasDataArray() { return __p.__vector_as_array(14); } + public long NeedGeasId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool HideInPausePopup { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateMiniGameShootingGeasExcel(FlatBufferBuilder builder, + long UniqueId = 0, + SCHALE.Common.FlatData.Geas GeasType = SCHALE.Common.FlatData.Geas.ForwardProjectile, + StringOffset IconOffset = default(StringOffset), + long Probability = 0, + int MaxOverlapCount = 0, + StringOffset GeasDataOffset = default(StringOffset), + long NeedGeasId = 0, + bool HideInPausePopup = false) { + builder.StartTable(8); + MiniGameShootingGeasExcel.AddNeedGeasId(builder, NeedGeasId); + MiniGameShootingGeasExcel.AddProbability(builder, Probability); + MiniGameShootingGeasExcel.AddUniqueId(builder, UniqueId); + MiniGameShootingGeasExcel.AddGeasData(builder, GeasDataOffset); + MiniGameShootingGeasExcel.AddMaxOverlapCount(builder, MaxOverlapCount); + MiniGameShootingGeasExcel.AddIcon(builder, IconOffset); + MiniGameShootingGeasExcel.AddGeasType(builder, GeasType); + MiniGameShootingGeasExcel.AddHideInPausePopup(builder, HideInPausePopup); + return MiniGameShootingGeasExcel.EndMiniGameShootingGeasExcel(builder); + } + + public static void StartMiniGameShootingGeasExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddGeasType(FlatBufferBuilder builder, SCHALE.Common.FlatData.Geas geasType) { builder.AddInt(1, (int)geasType, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(2, iconOffset.Value, 0); } + public static void AddProbability(FlatBufferBuilder builder, long probability) { builder.AddLong(3, probability, 0); } + public static void AddMaxOverlapCount(FlatBufferBuilder builder, int maxOverlapCount) { builder.AddInt(4, maxOverlapCount, 0); } + public static void AddGeasData(FlatBufferBuilder builder, StringOffset geasDataOffset) { builder.AddOffset(5, geasDataOffset.Value, 0); } + public static void AddNeedGeasId(FlatBufferBuilder builder, long needGeasId) { builder.AddLong(6, needGeasId, 0); } + public static void AddHideInPausePopup(FlatBufferBuilder builder, bool hideInPausePopup) { builder.AddBool(7, hideInPausePopup, false); } + public static Offset EndMiniGameShootingGeasExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingGeasExcelVerify +{ + 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 /*GeasType*/, 4 /*SCHALE.Common.FlatData.Geas*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Icon*/, false) + && verifier.VerifyField(tablePos, 10 /*Probability*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*MaxOverlapCount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 14 /*GeasData*/, false) + && verifier.VerifyField(tablePos, 16 /*NeedGeasId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*HideInPausePopup*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs new file mode 100644 index 0000000..5cc2ec4 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingGeasExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameShootingGeasExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingGeasExcelTable GetRootAsMiniGameShootingGeasExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameShootingGeasExcelTable(_bb, new MiniGameShootingGeasExcelTable()); } + public static MiniGameShootingGeasExcelTable GetRootAsMiniGameShootingGeasExcelTable(ByteBuffer _bb, MiniGameShootingGeasExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingGeasExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameShootingGeasExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameShootingGeasExcel?)(new SCHALE.Common.FlatData.MiniGameShootingGeasExcel()).__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 CreateMiniGameShootingGeasExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameShootingGeasExcelTable.AddDataList(builder, DataListOffset); + return MiniGameShootingGeasExcelTable.EndMiniGameShootingGeasExcelTable(builder); + } + + public static void StartMiniGameShootingGeasExcelTable(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 EndMiniGameShootingGeasExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingGeasExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameShootingGeasExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs new file mode 100644 index 0000000..30090af --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingStageExcel.cs @@ -0,0 +1,118 @@ +// +// 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 MiniGameShootingStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingStageExcel GetRootAsMiniGameShootingStageExcel(ByteBuffer _bb) { return GetRootAsMiniGameShootingStageExcel(_bb, new MiniGameShootingStageExcel()); } + public static MiniGameShootingStageExcel GetRootAsMiniGameShootingStageExcel(ByteBuffer _bb, MiniGameShootingStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingStageExcel __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 BgmId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CostGoodsId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Difficulty Difficulty { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.Difficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Difficulty.Normal; } } + public string DesignLevel { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDesignLevelBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetDesignLevelBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetDesignLevelArray() { return __p.__vector_as_array(12); } + public string ArtLevel { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetArtLevelBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetArtLevelBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetArtLevelArray() { return __p.__vector_as_array(14); } + public long StartBattleDuration { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefaultBattleDuration { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DefaultLogicEffect { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDefaultLogicEffectBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetDefaultLogicEffectBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetDefaultLogicEffectArray() { return __p.__vector_as_array(20); } + public float CameraSizeRate { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long EventContentStageRewardId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMiniGameShootingStageExcel(FlatBufferBuilder builder, + long UniqueId = 0, + long BgmId = 0, + long CostGoodsId = 0, + SCHALE.Common.FlatData.Difficulty Difficulty = SCHALE.Common.FlatData.Difficulty.Normal, + StringOffset DesignLevelOffset = default(StringOffset), + StringOffset ArtLevelOffset = default(StringOffset), + long StartBattleDuration = 0, + long DefaultBattleDuration = 0, + StringOffset DefaultLogicEffectOffset = default(StringOffset), + float CameraSizeRate = 0.0f, + long EventContentStageRewardId = 0) { + builder.StartTable(11); + MiniGameShootingStageExcel.AddEventContentStageRewardId(builder, EventContentStageRewardId); + MiniGameShootingStageExcel.AddDefaultBattleDuration(builder, DefaultBattleDuration); + MiniGameShootingStageExcel.AddStartBattleDuration(builder, StartBattleDuration); + MiniGameShootingStageExcel.AddCostGoodsId(builder, CostGoodsId); + MiniGameShootingStageExcel.AddBgmId(builder, BgmId); + MiniGameShootingStageExcel.AddUniqueId(builder, UniqueId); + MiniGameShootingStageExcel.AddCameraSizeRate(builder, CameraSizeRate); + MiniGameShootingStageExcel.AddDefaultLogicEffect(builder, DefaultLogicEffectOffset); + MiniGameShootingStageExcel.AddArtLevel(builder, ArtLevelOffset); + MiniGameShootingStageExcel.AddDesignLevel(builder, DesignLevelOffset); + MiniGameShootingStageExcel.AddDifficulty(builder, Difficulty); + return MiniGameShootingStageExcel.EndMiniGameShootingStageExcel(builder); + } + + public static void StartMiniGameShootingStageExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddBgmId(FlatBufferBuilder builder, long bgmId) { builder.AddLong(1, bgmId, 0); } + public static void AddCostGoodsId(FlatBufferBuilder builder, long costGoodsId) { builder.AddLong(2, costGoodsId, 0); } + public static void AddDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.Difficulty difficulty) { builder.AddInt(3, (int)difficulty, 0); } + public static void AddDesignLevel(FlatBufferBuilder builder, StringOffset designLevelOffset) { builder.AddOffset(4, designLevelOffset.Value, 0); } + public static void AddArtLevel(FlatBufferBuilder builder, StringOffset artLevelOffset) { builder.AddOffset(5, artLevelOffset.Value, 0); } + public static void AddStartBattleDuration(FlatBufferBuilder builder, long startBattleDuration) { builder.AddLong(6, startBattleDuration, 0); } + public static void AddDefaultBattleDuration(FlatBufferBuilder builder, long defaultBattleDuration) { builder.AddLong(7, defaultBattleDuration, 0); } + public static void AddDefaultLogicEffect(FlatBufferBuilder builder, StringOffset defaultLogicEffectOffset) { builder.AddOffset(8, defaultLogicEffectOffset.Value, 0); } + public static void AddCameraSizeRate(FlatBufferBuilder builder, float cameraSizeRate) { builder.AddFloat(9, cameraSizeRate, 0.0f); } + public static void AddEventContentStageRewardId(FlatBufferBuilder builder, long eventContentStageRewardId) { builder.AddLong(10, eventContentStageRewardId, 0); } + public static Offset EndMiniGameShootingStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingStageExcelVerify +{ + 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 /*BgmId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*CostGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Difficulty*/, 4 /*SCHALE.Common.FlatData.Difficulty*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*DesignLevel*/, false) + && verifier.VerifyString(tablePos, 14 /*ArtLevel*/, false) + && verifier.VerifyField(tablePos, 16 /*StartBattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*DefaultBattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*DefaultLogicEffect*/, false) + && verifier.VerifyField(tablePos, 22 /*CameraSizeRate*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*EventContentStageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs new file mode 100644 index 0000000..66771cf --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameShootingStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingStageExcelTable GetRootAsMiniGameShootingStageExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameShootingStageExcelTable(_bb, new MiniGameShootingStageExcelTable()); } + public static MiniGameShootingStageExcelTable GetRootAsMiniGameShootingStageExcelTable(ByteBuffer _bb, MiniGameShootingStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameShootingStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameShootingStageExcel?)(new SCHALE.Common.FlatData.MiniGameShootingStageExcel()).__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 CreateMiniGameShootingStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameShootingStageExcelTable.AddDataList(builder, DataListOffset); + return MiniGameShootingStageExcelTable.EndMiniGameShootingStageExcelTable(builder); + } + + public static void StartMiniGameShootingStageExcelTable(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 EndMiniGameShootingStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameShootingStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs new file mode 100644 index 0000000..e73afc5 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcel.cs @@ -0,0 +1,111 @@ +// +// 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 MiniGameShootingStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingStageRewardExcel GetRootAsMiniGameShootingStageRewardExcel(ByteBuffer _bb) { return GetRootAsMiniGameShootingStageRewardExcel(_bb, new MiniGameShootingStageRewardExcel()); } + public static MiniGameShootingStageRewardExcel GetRootAsMiniGameShootingStageRewardExcel(ByteBuffer _bb, MiniGameShootingStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearSection { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(10); 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(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(10); 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(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(12); } + public int RewardParcelAmount(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public int[] GetRewardParcelAmountArray() { return __p.__vector_as_array(14); } + + public static Offset CreateMiniGameShootingStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + long RewardId = 0, + long ClearSection = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(6); + MiniGameShootingStageRewardExcel.AddClearSection(builder, ClearSection); + MiniGameShootingStageRewardExcel.AddRewardId(builder, RewardId); + MiniGameShootingStageRewardExcel.AddGroupId(builder, GroupId); + MiniGameShootingStageRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + MiniGameShootingStageRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + MiniGameShootingStageRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + return MiniGameShootingStageRewardExcel.EndMiniGameShootingStageRewardExcel(builder); + } + + public static void StartMiniGameShootingStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddRewardId(FlatBufferBuilder builder, long rewardId) { builder.AddLong(1, rewardId, 0); } + public static void AddClearSection(FlatBufferBuilder builder, long clearSection) { builder.AddLong(2, clearSection, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(3, 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(4, 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(5, rewardParcelAmountOffset.Value, 0); } + public static VectorOffset CreateRewardParcelAmountVector(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 CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); 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(4, numElems, 4); } + public static Offset EndMiniGameShootingStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ClearSection*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs new file mode 100644 index 0000000..8c06a15 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameShootingStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameShootingStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameShootingStageRewardExcelTable GetRootAsMiniGameShootingStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameShootingStageRewardExcelTable(_bb, new MiniGameShootingStageRewardExcelTable()); } + public static MiniGameShootingStageRewardExcelTable GetRootAsMiniGameShootingStageRewardExcelTable(ByteBuffer _bb, MiniGameShootingStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameShootingStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameShootingStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameShootingStageRewardExcel?)(new SCHALE.Common.FlatData.MiniGameShootingStageRewardExcel()).__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 CreateMiniGameShootingStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameShootingStageRewardExcelTable.AddDataList(builder, DataListOffset); + return MiniGameShootingStageRewardExcelTable.EndMiniGameShootingStageRewardExcelTable(builder); + } + + public static void StartMiniGameShootingStageRewardExcelTable(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 EndMiniGameShootingStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameShootingStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameShootingStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs new file mode 100644 index 0000000..04cee34 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcel.cs @@ -0,0 +1,121 @@ +// +// 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 MiniGameTBGThemaRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameTBGThemaRewardExcel GetRootAsMiniGameTBGThemaRewardExcel(ByteBuffer _bb) { return GetRootAsMiniGameTBGThemaRewardExcel(_bb, new MiniGameTBGThemaRewardExcel()); } + public static MiniGameTBGThemaRewardExcel GetRootAsMiniGameTBGThemaRewardExcel(ByteBuffer _bb, MiniGameTBGThemaRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameTBGThemaRewardExcel __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 int ThemaRound { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ThemaUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsLoop { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.MiniGameTBGThemaRewardType MiniGameTBGThemaRewardType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MiniGameTBGThemaRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MiniGameTBGThemaRewardType.TreasureReward; } } + 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 int RewardParcelAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)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, 4); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetRewardParcelAmountArray() { return __p.__vector_as_array(18); } + + public static Offset CreateMiniGameTBGThemaRewardExcel(FlatBufferBuilder builder, + long EventContentId = 0, + int ThemaRound = 0, + int ThemaUniqueId = 0, + bool IsLoop = false, + SCHALE.Common.FlatData.MiniGameTBGThemaRewardType MiniGameTBGThemaRewardType = SCHALE.Common.FlatData.MiniGameTBGThemaRewardType.TreasureReward, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(8); + MiniGameTBGThemaRewardExcel.AddEventContentId(builder, EventContentId); + MiniGameTBGThemaRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + MiniGameTBGThemaRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + MiniGameTBGThemaRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + MiniGameTBGThemaRewardExcel.AddMiniGameTBGThemaRewardType(builder, MiniGameTBGThemaRewardType); + MiniGameTBGThemaRewardExcel.AddThemaUniqueId(builder, ThemaUniqueId); + MiniGameTBGThemaRewardExcel.AddThemaRound(builder, ThemaRound); + MiniGameTBGThemaRewardExcel.AddIsLoop(builder, IsLoop); + return MiniGameTBGThemaRewardExcel.EndMiniGameTBGThemaRewardExcel(builder); + } + + public static void StartMiniGameTBGThemaRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddThemaRound(FlatBufferBuilder builder, int themaRound) { builder.AddInt(1, themaRound, 0); } + public static void AddThemaUniqueId(FlatBufferBuilder builder, int themaUniqueId) { builder.AddInt(2, themaUniqueId, 0); } + public static void AddIsLoop(FlatBufferBuilder builder, bool isLoop) { builder.AddBool(3, isLoop, false); } + public static void AddMiniGameTBGThemaRewardType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MiniGameTBGThemaRewardType miniGameTBGThemaRewardType) { builder.AddInt(4, (int)miniGameTBGThemaRewardType, 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, 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 CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); 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(4, numElems, 4); } + public static Offset EndMiniGameTBGThemaRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameTBGThemaRewardExcelVerify +{ + 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 /*ThemaRound*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ThemaUniqueId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IsLoop*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*MiniGameTBGThemaRewardType*/, 4 /*SCHALE.Common.FlatData.MiniGameTBGThemaRewardType*/, 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*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs new file mode 100644 index 0000000..e1c87e2 --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MiniGameTBGThemaRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MiniGameTBGThemaRewardExcelTable GetRootAsMiniGameTBGThemaRewardExcelTable(ByteBuffer _bb) { return GetRootAsMiniGameTBGThemaRewardExcelTable(_bb, new MiniGameTBGThemaRewardExcelTable()); } + public static MiniGameTBGThemaRewardExcelTable GetRootAsMiniGameTBGThemaRewardExcelTable(ByteBuffer _bb, MiniGameTBGThemaRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MiniGameTBGThemaRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MiniGameTBGThemaRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MiniGameTBGThemaRewardExcel?)(new SCHALE.Common.FlatData.MiniGameTBGThemaRewardExcel()).__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 CreateMiniGameTBGThemaRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MiniGameTBGThemaRewardExcelTable.AddDataList(builder, DataListOffset); + return MiniGameTBGThemaRewardExcelTable.EndMiniGameTBGThemaRewardExcelTable(builder); + } + + public static void StartMiniGameTBGThemaRewardExcelTable(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 EndMiniGameTBGThemaRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MiniGameTBGThemaRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MiniGameTBGThemaRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MiniGameTBGThemaRewardType.cs b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardType.cs new file mode 100644 index 0000000..118819a --- /dev/null +++ b/SCHALE.Common/FlatData/MiniGameTBGThemaRewardType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MiniGameTBGThemaRewardType : int +{ + TreasureReward = 0, + EmptyTreasureReward = 1, + HiddenThemaTreasureReward = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs b/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs new file mode 100644 index 0000000..e456dcf --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGDiceExcel.cs @@ -0,0 +1,121 @@ +// +// 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 MinigameTBGDiceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGDiceExcel GetRootAsMinigameTBGDiceExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGDiceExcel(_bb, new MinigameTBGDiceExcel()); } + public static MinigameTBGDiceExcel GetRootAsMinigameTBGDiceExcel(ByteBuffer _bb, MinigameTBGDiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGDiceExcel __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 int DiceGroup { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DiceResult { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)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.TBGProbModifyCondition ProbModifyCondition(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.TBGProbModifyCondition)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.TBGProbModifyCondition)0; } + public int ProbModifyConditionLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetProbModifyConditionBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetProbModifyConditionBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.TBGProbModifyCondition[] GetProbModifyConditionArray() { int o = __p.__offset(14); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.TBGProbModifyCondition[] a = new SCHALE.Common.FlatData.TBGProbModifyCondition[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.TBGProbModifyCondition)__p.bb.GetInt(p + i * 4); } return a; } + public int ProbModifyValue(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ProbModifyValueLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetProbModifyValueBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetProbModifyValueBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public int[] GetProbModifyValueArray() { return __p.__vector_as_array(16); } + public int ProbModifyLimit(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ProbModifyLimitLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetProbModifyLimitBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetProbModifyLimitBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetProbModifyLimitArray() { return __p.__vector_as_array(18); } + + public static Offset CreateMinigameTBGDiceExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long UniqueId = 0, + int DiceGroup = 0, + int DiceResult = 0, + int Prob = 0, + VectorOffset ProbModifyConditionOffset = default(VectorOffset), + VectorOffset ProbModifyValueOffset = default(VectorOffset), + VectorOffset ProbModifyLimitOffset = default(VectorOffset)) { + builder.StartTable(8); + MinigameTBGDiceExcel.AddUniqueId(builder, UniqueId); + MinigameTBGDiceExcel.AddEventContentId(builder, EventContentId); + MinigameTBGDiceExcel.AddProbModifyLimit(builder, ProbModifyLimitOffset); + MinigameTBGDiceExcel.AddProbModifyValue(builder, ProbModifyValueOffset); + MinigameTBGDiceExcel.AddProbModifyCondition(builder, ProbModifyConditionOffset); + MinigameTBGDiceExcel.AddProb(builder, Prob); + MinigameTBGDiceExcel.AddDiceResult(builder, DiceResult); + MinigameTBGDiceExcel.AddDiceGroup(builder, DiceGroup); + return MinigameTBGDiceExcel.EndMinigameTBGDiceExcel(builder); + } + + public static void StartMinigameTBGDiceExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + 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 AddDiceGroup(FlatBufferBuilder builder, int diceGroup) { builder.AddInt(2, diceGroup, 0); } + public static void AddDiceResult(FlatBufferBuilder builder, int diceResult) { builder.AddInt(3, diceResult, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(4, prob, 0); } + public static void AddProbModifyCondition(FlatBufferBuilder builder, VectorOffset probModifyConditionOffset) { builder.AddOffset(5, probModifyConditionOffset.Value, 0); } + public static VectorOffset CreateProbModifyConditionVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGProbModifyCondition[] 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 CreateProbModifyConditionVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGProbModifyCondition[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyConditionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyConditionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartProbModifyConditionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddProbModifyValue(FlatBufferBuilder builder, VectorOffset probModifyValueOffset) { builder.AddOffset(6, probModifyValueOffset.Value, 0); } + public static VectorOffset CreateProbModifyValueVector(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 CreateProbModifyValueVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartProbModifyValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddProbModifyLimit(FlatBufferBuilder builder, VectorOffset probModifyLimitOffset) { builder.AddOffset(7, probModifyLimitOffset.Value, 0); } + public static VectorOffset CreateProbModifyLimitVector(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 CreateProbModifyLimitVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyLimitVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateProbModifyLimitVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartProbModifyLimitVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMinigameTBGDiceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGDiceExcelVerify +{ + 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 /*DiceGroup*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DiceResult*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ProbModifyCondition*/, 4 /*SCHALE.Common.FlatData.TBGProbModifyCondition*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ProbModifyValue*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ProbModifyLimit*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs new file mode 100644 index 0000000..b539879 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGDiceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGDiceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGDiceExcelTable GetRootAsMinigameTBGDiceExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGDiceExcelTable(_bb, new MinigameTBGDiceExcelTable()); } + public static MinigameTBGDiceExcelTable GetRootAsMinigameTBGDiceExcelTable(ByteBuffer _bb, MinigameTBGDiceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGDiceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGDiceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGDiceExcel?)(new SCHALE.Common.FlatData.MinigameTBGDiceExcel()).__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 CreateMinigameTBGDiceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGDiceExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGDiceExcelTable.EndMinigameTBGDiceExcelTable(builder); + } + + public static void StartMinigameTBGDiceExcelTable(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 EndMinigameTBGDiceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGDiceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGDiceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs new file mode 100644 index 0000000..fbc2be2 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs @@ -0,0 +1,250 @@ +// +// 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 MinigameTBGEncounterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterExcel GetRootAsMinigameTBGEncounterExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterExcel(_bb, new MinigameTBGEncounterExcel()); } + public static MinigameTBGEncounterExcel GetRootAsMinigameTBGEncounterExcel(ByteBuffer _bb, MinigameTBGEncounterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterExcel __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 bool AllThema { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int ThemaIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None; } } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None; } } + public string EnemyImagePath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnemyImagePathBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetEnemyImagePathBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetEnemyImagePathArray() { return __p.__vector_as_array(16); } + public string EnemyPrefabName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnemyPrefabNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetEnemyPrefabNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetEnemyPrefabNameArray() { return __p.__vector_as_array(18); } + public string EnemyNameLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnemyNameLocalizeBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetEnemyNameLocalizeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetEnemyNameLocalizeArray() { return __p.__vector_as_array(20); } + public long OptionGroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool RewardHide { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string EncounterTitleLocalize { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEncounterTitleLocalizeBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetEncounterTitleLocalizeBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetEncounterTitleLocalizeArray() { return __p.__vector_as_array(26); } + public string StoryImagePath { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStoryImagePathBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetStoryImagePathBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetStoryImagePathArray() { return __p.__vector_as_array(28); } + public string BeforeStoryLocalize { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforeStoryLocalizeBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetBeforeStoryLocalizeBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetBeforeStoryLocalizeArray() { return __p.__vector_as_array(30); } + public string BeforeStoryOption1Localize { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforeStoryOption1LocalizeBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetBeforeStoryOption1LocalizeBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetBeforeStoryOption1LocalizeArray() { return __p.__vector_as_array(32); } + public string BeforeStoryOption2Localize { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforeStoryOption2LocalizeBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetBeforeStoryOption2LocalizeBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetBeforeStoryOption2LocalizeArray() { return __p.__vector_as_array(34); } + public string BeforeStoryOption3Localize { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBeforeStoryOption3LocalizeBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetBeforeStoryOption3LocalizeBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetBeforeStoryOption3LocalizeArray() { return __p.__vector_as_array(36); } + public string AllyAttackLocalize { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAllyAttackLocalizeBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetAllyAttackLocalizeBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetAllyAttackLocalizeArray() { return __p.__vector_as_array(38); } + public string EnemyAttackLocalize { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnemyAttackLocalizeBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetEnemyAttackLocalizeBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetEnemyAttackLocalizeArray() { return __p.__vector_as_array(40); } + public string AttackDefenceLocalize { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAttackDefenceLocalizeBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetAttackDefenceLocalizeBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetAttackDefenceLocalizeArray() { return __p.__vector_as_array(42); } + public string ClearStoryLocalize { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetClearStoryLocalizeBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetClearStoryLocalizeBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetClearStoryLocalizeArray() { return __p.__vector_as_array(44); } + public string DefeatStoryLocalize { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDefeatStoryLocalizeBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetDefeatStoryLocalizeBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetDefeatStoryLocalizeArray() { return __p.__vector_as_array(46); } + public string RunawayStoryLocalize { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRunawayStoryLocalizeBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetRunawayStoryLocalizeBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetRunawayStoryLocalizeArray() { return __p.__vector_as_array(48); } + + public static Offset CreateMinigameTBGEncounterExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long UniqueId = 0, + bool AllThema = false, + int ThemaIndex = 0, + SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None, + SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None, + StringOffset EnemyImagePathOffset = default(StringOffset), + StringOffset EnemyPrefabNameOffset = default(StringOffset), + StringOffset EnemyNameLocalizeOffset = default(StringOffset), + long OptionGroupId = 0, + bool RewardHide = false, + StringOffset EncounterTitleLocalizeOffset = default(StringOffset), + StringOffset StoryImagePathOffset = default(StringOffset), + StringOffset BeforeStoryLocalizeOffset = default(StringOffset), + StringOffset BeforeStoryOption1LocalizeOffset = default(StringOffset), + StringOffset BeforeStoryOption2LocalizeOffset = default(StringOffset), + StringOffset BeforeStoryOption3LocalizeOffset = default(StringOffset), + StringOffset AllyAttackLocalizeOffset = default(StringOffset), + StringOffset EnemyAttackLocalizeOffset = default(StringOffset), + StringOffset AttackDefenceLocalizeOffset = default(StringOffset), + StringOffset ClearStoryLocalizeOffset = default(StringOffset), + StringOffset DefeatStoryLocalizeOffset = default(StringOffset), + StringOffset RunawayStoryLocalizeOffset = default(StringOffset)) { + builder.StartTable(23); + MinigameTBGEncounterExcel.AddOptionGroupId(builder, OptionGroupId); + MinigameTBGEncounterExcel.AddUniqueId(builder, UniqueId); + MinigameTBGEncounterExcel.AddEventContentId(builder, EventContentId); + MinigameTBGEncounterExcel.AddRunawayStoryLocalize(builder, RunawayStoryLocalizeOffset); + MinigameTBGEncounterExcel.AddDefeatStoryLocalize(builder, DefeatStoryLocalizeOffset); + MinigameTBGEncounterExcel.AddClearStoryLocalize(builder, ClearStoryLocalizeOffset); + MinigameTBGEncounterExcel.AddAttackDefenceLocalize(builder, AttackDefenceLocalizeOffset); + MinigameTBGEncounterExcel.AddEnemyAttackLocalize(builder, EnemyAttackLocalizeOffset); + MinigameTBGEncounterExcel.AddAllyAttackLocalize(builder, AllyAttackLocalizeOffset); + MinigameTBGEncounterExcel.AddBeforeStoryOption3Localize(builder, BeforeStoryOption3LocalizeOffset); + MinigameTBGEncounterExcel.AddBeforeStoryOption2Localize(builder, BeforeStoryOption2LocalizeOffset); + MinigameTBGEncounterExcel.AddBeforeStoryOption1Localize(builder, BeforeStoryOption1LocalizeOffset); + MinigameTBGEncounterExcel.AddBeforeStoryLocalize(builder, BeforeStoryLocalizeOffset); + MinigameTBGEncounterExcel.AddStoryImagePath(builder, StoryImagePathOffset); + MinigameTBGEncounterExcel.AddEncounterTitleLocalize(builder, EncounterTitleLocalizeOffset); + MinigameTBGEncounterExcel.AddEnemyNameLocalize(builder, EnemyNameLocalizeOffset); + MinigameTBGEncounterExcel.AddEnemyPrefabName(builder, EnemyPrefabNameOffset); + MinigameTBGEncounterExcel.AddEnemyImagePath(builder, EnemyImagePathOffset); + MinigameTBGEncounterExcel.AddObjectType(builder, ObjectType); + MinigameTBGEncounterExcel.AddThemaType(builder, ThemaType); + MinigameTBGEncounterExcel.AddThemaIndex(builder, ThemaIndex); + MinigameTBGEncounterExcel.AddRewardHide(builder, RewardHide); + MinigameTBGEncounterExcel.AddAllThema(builder, AllThema); + return MinigameTBGEncounterExcel.EndMinigameTBGEncounterExcel(builder); + } + + public static void StartMinigameTBGEncounterExcel(FlatBufferBuilder builder) { builder.StartTable(23); } + 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 AddAllThema(FlatBufferBuilder builder, bool allThema) { builder.AddBool(2, allThema, false); } + public static void AddThemaIndex(FlatBufferBuilder builder, int themaIndex) { builder.AddInt(3, themaIndex, 0); } + public static void AddThemaType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGThemaType themaType) { builder.AddInt(4, (int)themaType, 0); } + public static void AddObjectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGObjectType objectType) { builder.AddInt(5, (int)objectType, 0); } + public static void AddEnemyImagePath(FlatBufferBuilder builder, StringOffset enemyImagePathOffset) { builder.AddOffset(6, enemyImagePathOffset.Value, 0); } + public static void AddEnemyPrefabName(FlatBufferBuilder builder, StringOffset enemyPrefabNameOffset) { builder.AddOffset(7, enemyPrefabNameOffset.Value, 0); } + public static void AddEnemyNameLocalize(FlatBufferBuilder builder, StringOffset enemyNameLocalizeOffset) { builder.AddOffset(8, enemyNameLocalizeOffset.Value, 0); } + public static void AddOptionGroupId(FlatBufferBuilder builder, long optionGroupId) { builder.AddLong(9, optionGroupId, 0); } + public static void AddRewardHide(FlatBufferBuilder builder, bool rewardHide) { builder.AddBool(10, rewardHide, false); } + public static void AddEncounterTitleLocalize(FlatBufferBuilder builder, StringOffset encounterTitleLocalizeOffset) { builder.AddOffset(11, encounterTitleLocalizeOffset.Value, 0); } + public static void AddStoryImagePath(FlatBufferBuilder builder, StringOffset storyImagePathOffset) { builder.AddOffset(12, storyImagePathOffset.Value, 0); } + public static void AddBeforeStoryLocalize(FlatBufferBuilder builder, StringOffset beforeStoryLocalizeOffset) { builder.AddOffset(13, beforeStoryLocalizeOffset.Value, 0); } + public static void AddBeforeStoryOption1Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption1LocalizeOffset) { builder.AddOffset(14, beforeStoryOption1LocalizeOffset.Value, 0); } + public static void AddBeforeStoryOption2Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption2LocalizeOffset) { builder.AddOffset(15, beforeStoryOption2LocalizeOffset.Value, 0); } + public static void AddBeforeStoryOption3Localize(FlatBufferBuilder builder, StringOffset beforeStoryOption3LocalizeOffset) { builder.AddOffset(16, beforeStoryOption3LocalizeOffset.Value, 0); } + public static void AddAllyAttackLocalize(FlatBufferBuilder builder, StringOffset allyAttackLocalizeOffset) { builder.AddOffset(17, allyAttackLocalizeOffset.Value, 0); } + public static void AddEnemyAttackLocalize(FlatBufferBuilder builder, StringOffset enemyAttackLocalizeOffset) { builder.AddOffset(18, enemyAttackLocalizeOffset.Value, 0); } + public static void AddAttackDefenceLocalize(FlatBufferBuilder builder, StringOffset attackDefenceLocalizeOffset) { builder.AddOffset(19, attackDefenceLocalizeOffset.Value, 0); } + public static void AddClearStoryLocalize(FlatBufferBuilder builder, StringOffset clearStoryLocalizeOffset) { builder.AddOffset(20, clearStoryLocalizeOffset.Value, 0); } + public static void AddDefeatStoryLocalize(FlatBufferBuilder builder, StringOffset defeatStoryLocalizeOffset) { builder.AddOffset(21, defeatStoryLocalizeOffset.Value, 0); } + public static void AddRunawayStoryLocalize(FlatBufferBuilder builder, StringOffset runawayStoryLocalizeOffset) { builder.AddOffset(22, runawayStoryLocalizeOffset.Value, 0); } + public static Offset EndMinigameTBGEncounterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterExcelVerify +{ + 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 /*AllThema*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*ThemaIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ThemaType*/, 4 /*SCHALE.Common.FlatData.TBGThemaType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ObjectType*/, 4 /*SCHALE.Common.FlatData.TBGObjectType*/, 4, false) + && verifier.VerifyString(tablePos, 16 /*EnemyImagePath*/, false) + && verifier.VerifyString(tablePos, 18 /*EnemyPrefabName*/, false) + && verifier.VerifyString(tablePos, 20 /*EnemyNameLocalize*/, false) + && verifier.VerifyField(tablePos, 22 /*OptionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*RewardHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 26 /*EncounterTitleLocalize*/, false) + && verifier.VerifyString(tablePos, 28 /*StoryImagePath*/, false) + && verifier.VerifyString(tablePos, 30 /*BeforeStoryLocalize*/, false) + && verifier.VerifyString(tablePos, 32 /*BeforeStoryOption1Localize*/, false) + && verifier.VerifyString(tablePos, 34 /*BeforeStoryOption2Localize*/, false) + && verifier.VerifyString(tablePos, 36 /*BeforeStoryOption3Localize*/, false) + && verifier.VerifyString(tablePos, 38 /*AllyAttackLocalize*/, false) + && verifier.VerifyString(tablePos, 40 /*EnemyAttackLocalize*/, false) + && verifier.VerifyString(tablePos, 42 /*AttackDefenceLocalize*/, false) + && verifier.VerifyString(tablePos, 44 /*ClearStoryLocalize*/, false) + && verifier.VerifyString(tablePos, 46 /*DefeatStoryLocalize*/, false) + && verifier.VerifyString(tablePos, 48 /*RunawayStoryLocalize*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs new file mode 100644 index 0000000..29c6d41 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGEncounterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterExcelTable GetRootAsMinigameTBGEncounterExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterExcelTable(_bb, new MinigameTBGEncounterExcelTable()); } + public static MinigameTBGEncounterExcelTable GetRootAsMinigameTBGEncounterExcelTable(ByteBuffer _bb, MinigameTBGEncounterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGEncounterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGEncounterExcel?)(new SCHALE.Common.FlatData.MinigameTBGEncounterExcel()).__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 CreateMinigameTBGEncounterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGEncounterExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGEncounterExcelTable.EndMinigameTBGEncounterExcelTable(builder); + } + + public static void StartMinigameTBGEncounterExcelTable(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 EndMinigameTBGEncounterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGEncounterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs new file mode 100644 index 0000000..1aa0e10 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcel.cs @@ -0,0 +1,123 @@ +// +// 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 MinigameTBGEncounterOptionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterOptionExcel GetRootAsMinigameTBGEncounterOptionExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterOptionExcel(_bb, new MinigameTBGEncounterOptionExcel()); } + public static MinigameTBGEncounterOptionExcel GetRootAsMinigameTBGEncounterOptionExcel(ByteBuffer _bb, MinigameTBGEncounterOptionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterOptionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long OptionGroupId { 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 int SlotIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string OptionTitleLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOptionTitleLocalizeBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetOptionTitleLocalizeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetOptionTitleLocalizeArray() { return __p.__vector_as_array(10); } + public string OptionSuccessLocalize { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOptionSuccessLocalizeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetOptionSuccessLocalizeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetOptionSuccessLocalizeArray() { return __p.__vector_as_array(12); } + public long OptionSuccessRewardGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int OptionSuccessOrHigherDiceCount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int OptionGreatSuccessOrHigherDiceCount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string OptionFailLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOptionFailLocalizeBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetOptionFailLocalizeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetOptionFailLocalizeArray() { return __p.__vector_as_array(20); } + public int OptionFailLessDiceCount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RunawayOrHigherDiceCount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool RewardHide { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateMinigameTBGEncounterOptionExcel(FlatBufferBuilder builder, + long OptionGroupId = 0, + long UniqueId = 0, + int SlotIndex = 0, + StringOffset OptionTitleLocalizeOffset = default(StringOffset), + StringOffset OptionSuccessLocalizeOffset = default(StringOffset), + long OptionSuccessRewardGroupId = 0, + int OptionSuccessOrHigherDiceCount = 0, + int OptionGreatSuccessOrHigherDiceCount = 0, + StringOffset OptionFailLocalizeOffset = default(StringOffset), + int OptionFailLessDiceCount = 0, + int RunawayOrHigherDiceCount = 0, + bool RewardHide = false) { + builder.StartTable(12); + MinigameTBGEncounterOptionExcel.AddOptionSuccessRewardGroupId(builder, OptionSuccessRewardGroupId); + MinigameTBGEncounterOptionExcel.AddUniqueId(builder, UniqueId); + MinigameTBGEncounterOptionExcel.AddOptionGroupId(builder, OptionGroupId); + MinigameTBGEncounterOptionExcel.AddRunawayOrHigherDiceCount(builder, RunawayOrHigherDiceCount); + MinigameTBGEncounterOptionExcel.AddOptionFailLessDiceCount(builder, OptionFailLessDiceCount); + MinigameTBGEncounterOptionExcel.AddOptionFailLocalize(builder, OptionFailLocalizeOffset); + MinigameTBGEncounterOptionExcel.AddOptionGreatSuccessOrHigherDiceCount(builder, OptionGreatSuccessOrHigherDiceCount); + MinigameTBGEncounterOptionExcel.AddOptionSuccessOrHigherDiceCount(builder, OptionSuccessOrHigherDiceCount); + MinigameTBGEncounterOptionExcel.AddOptionSuccessLocalize(builder, OptionSuccessLocalizeOffset); + MinigameTBGEncounterOptionExcel.AddOptionTitleLocalize(builder, OptionTitleLocalizeOffset); + MinigameTBGEncounterOptionExcel.AddSlotIndex(builder, SlotIndex); + MinigameTBGEncounterOptionExcel.AddRewardHide(builder, RewardHide); + return MinigameTBGEncounterOptionExcel.EndMinigameTBGEncounterOptionExcel(builder); + } + + public static void StartMinigameTBGEncounterOptionExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddOptionGroupId(FlatBufferBuilder builder, long optionGroupId) { builder.AddLong(0, optionGroupId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } + public static void AddSlotIndex(FlatBufferBuilder builder, int slotIndex) { builder.AddInt(2, slotIndex, 0); } + public static void AddOptionTitleLocalize(FlatBufferBuilder builder, StringOffset optionTitleLocalizeOffset) { builder.AddOffset(3, optionTitleLocalizeOffset.Value, 0); } + public static void AddOptionSuccessLocalize(FlatBufferBuilder builder, StringOffset optionSuccessLocalizeOffset) { builder.AddOffset(4, optionSuccessLocalizeOffset.Value, 0); } + public static void AddOptionSuccessRewardGroupId(FlatBufferBuilder builder, long optionSuccessRewardGroupId) { builder.AddLong(5, optionSuccessRewardGroupId, 0); } + public static void AddOptionSuccessOrHigherDiceCount(FlatBufferBuilder builder, int optionSuccessOrHigherDiceCount) { builder.AddInt(6, optionSuccessOrHigherDiceCount, 0); } + public static void AddOptionGreatSuccessOrHigherDiceCount(FlatBufferBuilder builder, int optionGreatSuccessOrHigherDiceCount) { builder.AddInt(7, optionGreatSuccessOrHigherDiceCount, 0); } + public static void AddOptionFailLocalize(FlatBufferBuilder builder, StringOffset optionFailLocalizeOffset) { builder.AddOffset(8, optionFailLocalizeOffset.Value, 0); } + public static void AddOptionFailLessDiceCount(FlatBufferBuilder builder, int optionFailLessDiceCount) { builder.AddInt(9, optionFailLessDiceCount, 0); } + public static void AddRunawayOrHigherDiceCount(FlatBufferBuilder builder, int runawayOrHigherDiceCount) { builder.AddInt(10, runawayOrHigherDiceCount, 0); } + public static void AddRewardHide(FlatBufferBuilder builder, bool rewardHide) { builder.AddBool(11, rewardHide, false); } + public static Offset EndMinigameTBGEncounterOptionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterOptionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*OptionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*SlotIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*OptionTitleLocalize*/, false) + && verifier.VerifyString(tablePos, 12 /*OptionSuccessLocalize*/, false) + && verifier.VerifyField(tablePos, 14 /*OptionSuccessRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*OptionSuccessOrHigherDiceCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*OptionGreatSuccessOrHigherDiceCount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 20 /*OptionFailLocalize*/, false) + && verifier.VerifyField(tablePos, 22 /*OptionFailLessDiceCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*RunawayOrHigherDiceCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*RewardHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs new file mode 100644 index 0000000..31b8404 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterOptionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGEncounterOptionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterOptionExcelTable GetRootAsMinigameTBGEncounterOptionExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterOptionExcelTable(_bb, new MinigameTBGEncounterOptionExcelTable()); } + public static MinigameTBGEncounterOptionExcelTable GetRootAsMinigameTBGEncounterOptionExcelTable(ByteBuffer _bb, MinigameTBGEncounterOptionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterOptionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGEncounterOptionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGEncounterOptionExcel?)(new SCHALE.Common.FlatData.MinigameTBGEncounterOptionExcel()).__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 CreateMinigameTBGEncounterOptionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGEncounterOptionExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGEncounterOptionExcelTable.EndMinigameTBGEncounterOptionExcelTable(builder); + } + + public static void StartMinigameTBGEncounterOptionExcelTable(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 EndMinigameTBGEncounterOptionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterOptionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGEncounterOptionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs new file mode 100644 index 0000000..6f1c704 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs @@ -0,0 +1,85 @@ +// +// 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 MinigameTBGEncounterRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterRewardExcel GetRootAsMinigameTBGEncounterRewardExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterRewardExcel(_bb, new MinigameTBGEncounterRewardExcel()); } + public static MinigameTBGEncounterRewardExcel GetRootAsMinigameTBGEncounterRewardExcel(ByteBuffer _bb, MinigameTBGEncounterRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { 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.TBGOptionSuccessType TBGOptionSuccessType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGOptionSuccessType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGOptionSuccessType.None; } } + public long Paremeter { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Amount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Prob { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateMinigameTBGEncounterRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + long UniqueId = 0, + SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType = SCHALE.Common.FlatData.TBGOptionSuccessType.None, + long Paremeter = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelId = 0, + long Amount = 0, + int Prob = 0) { + builder.StartTable(8); + MinigameTBGEncounterRewardExcel.AddAmount(builder, Amount); + MinigameTBGEncounterRewardExcel.AddParcelId(builder, ParcelId); + MinigameTBGEncounterRewardExcel.AddParemeter(builder, Paremeter); + MinigameTBGEncounterRewardExcel.AddUniqueId(builder, UniqueId); + MinigameTBGEncounterRewardExcel.AddGroupId(builder, GroupId); + MinigameTBGEncounterRewardExcel.AddProb(builder, Prob); + MinigameTBGEncounterRewardExcel.AddParcelType(builder, ParcelType); + MinigameTBGEncounterRewardExcel.AddTBGOptionSuccessType(builder, TBGOptionSuccessType); + return MinigameTBGEncounterRewardExcel.EndMinigameTBGEncounterRewardExcel(builder); + } + + public static void StartMinigameTBGEncounterRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } + public static void AddTBGOptionSuccessType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGOptionSuccessType tBGOptionSuccessType) { builder.AddInt(2, (int)tBGOptionSuccessType, 0); } + public static void AddParemeter(FlatBufferBuilder builder, long paremeter) { builder.AddLong(3, paremeter, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(4, (int)parcelType, 0); } + public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(5, parcelId, 0); } + public static void AddAmount(FlatBufferBuilder builder, long amount) { builder.AddLong(6, amount, 0); } + public static void AddProb(FlatBufferBuilder builder, int prob) { builder.AddInt(7, prob, 0); } + public static Offset EndMinigameTBGEncounterRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*TBGOptionSuccessType*/, 4 /*SCHALE.Common.FlatData.TBGOptionSuccessType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Paremeter*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*Amount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*Prob*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs new file mode 100644 index 0000000..6d11a1b --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGEncounterRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGEncounterRewardExcelTable GetRootAsMinigameTBGEncounterRewardExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGEncounterRewardExcelTable(_bb, new MinigameTBGEncounterRewardExcelTable()); } + public static MinigameTBGEncounterRewardExcelTable GetRootAsMinigameTBGEncounterRewardExcelTable(ByteBuffer _bb, MinigameTBGEncounterRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGEncounterRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGEncounterRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGEncounterRewardExcel?)(new SCHALE.Common.FlatData.MinigameTBGEncounterRewardExcel()).__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 CreateMinigameTBGEncounterRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGEncounterRewardExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGEncounterRewardExcelTable.EndMinigameTBGEncounterRewardExcelTable(builder); + } + + public static void StartMinigameTBGEncounterRewardExcelTable(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 EndMinigameTBGEncounterRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGEncounterRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGEncounterRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs new file mode 100644 index 0000000..40f34ed --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs @@ -0,0 +1,114 @@ +// +// 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 MinigameTBGItemExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGItemExcel GetRootAsMinigameTBGItemExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGItemExcel(_bb, new MinigameTBGItemExcel()); } + public static MinigameTBGItemExcel GetRootAsMinigameTBGItemExcel(ByteBuffer _bb, MinigameTBGItemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGItemExcel __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 SCHALE.Common.FlatData.TBGItemType ItemType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TBGItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemType.None; } } + public SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGItemEffectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemEffectType.None; } } + public int ItemParameter { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string LocalizeETCId { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeETCIdBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetLocalizeETCIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetLocalizeETCIdArray() { return __p.__vector_as_array(12); } + public string Icon { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetIconBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetIconArray() { return __p.__vector_as_array(14); } + public string BuffIcon { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuffIconBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetBuffIconBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetBuffIconArray() { return __p.__vector_as_array(16); } + public int EncounterCount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string DiceEffectAniClip { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDiceEffectAniClipBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetDiceEffectAniClipBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetDiceEffectAniClipArray() { return __p.__vector_as_array(20); } + + public static Offset CreateMinigameTBGItemExcel(FlatBufferBuilder builder, + long UniqueId = 0, + SCHALE.Common.FlatData.TBGItemType ItemType = SCHALE.Common.FlatData.TBGItemType.None, + SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType = SCHALE.Common.FlatData.TBGItemEffectType.None, + int ItemParameter = 0, + StringOffset LocalizeETCIdOffset = default(StringOffset), + StringOffset IconOffset = default(StringOffset), + StringOffset BuffIconOffset = default(StringOffset), + int EncounterCount = 0, + StringOffset DiceEffectAniClipOffset = default(StringOffset)) { + builder.StartTable(9); + MinigameTBGItemExcel.AddUniqueId(builder, UniqueId); + MinigameTBGItemExcel.AddDiceEffectAniClip(builder, DiceEffectAniClipOffset); + MinigameTBGItemExcel.AddEncounterCount(builder, EncounterCount); + MinigameTBGItemExcel.AddBuffIcon(builder, BuffIconOffset); + MinigameTBGItemExcel.AddIcon(builder, IconOffset); + MinigameTBGItemExcel.AddLocalizeETCId(builder, LocalizeETCIdOffset); + MinigameTBGItemExcel.AddItemParameter(builder, ItemParameter); + MinigameTBGItemExcel.AddTBGItemEffectType(builder, TBGItemEffectType); + MinigameTBGItemExcel.AddItemType(builder, ItemType); + return MinigameTBGItemExcel.EndMinigameTBGItemExcel(builder); + } + + public static void StartMinigameTBGItemExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddItemType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGItemType itemType) { builder.AddInt(1, (int)itemType, 0); } + public static void AddTBGItemEffectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGItemEffectType tBGItemEffectType) { builder.AddInt(2, (int)tBGItemEffectType, 0); } + public static void AddItemParameter(FlatBufferBuilder builder, int itemParameter) { builder.AddInt(3, itemParameter, 0); } + public static void AddLocalizeETCId(FlatBufferBuilder builder, StringOffset localizeETCIdOffset) { builder.AddOffset(4, localizeETCIdOffset.Value, 0); } + public static void AddIcon(FlatBufferBuilder builder, StringOffset iconOffset) { builder.AddOffset(5, iconOffset.Value, 0); } + public static void AddBuffIcon(FlatBufferBuilder builder, StringOffset buffIconOffset) { builder.AddOffset(6, buffIconOffset.Value, 0); } + public static void AddEncounterCount(FlatBufferBuilder builder, int encounterCount) { builder.AddInt(7, encounterCount, 0); } + public static void AddDiceEffectAniClip(FlatBufferBuilder builder, StringOffset diceEffectAniClipOffset) { builder.AddOffset(8, diceEffectAniClipOffset.Value, 0); } + public static Offset EndMinigameTBGItemExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGItemExcelVerify +{ + 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 /*ItemType*/, 4 /*SCHALE.Common.FlatData.TBGItemType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*TBGItemEffectType*/, 4 /*SCHALE.Common.FlatData.TBGItemEffectType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ItemParameter*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*LocalizeETCId*/, false) + && verifier.VerifyString(tablePos, 14 /*Icon*/, false) + && verifier.VerifyString(tablePos, 16 /*BuffIcon*/, false) + && verifier.VerifyField(tablePos, 18 /*EncounterCount*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 20 /*DiceEffectAniClip*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs new file mode 100644 index 0000000..63943d4 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGItemExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGItemExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGItemExcelTable GetRootAsMinigameTBGItemExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGItemExcelTable(_bb, new MinigameTBGItemExcelTable()); } + public static MinigameTBGItemExcelTable GetRootAsMinigameTBGItemExcelTable(ByteBuffer _bb, MinigameTBGItemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGItemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGItemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGItemExcel?)(new SCHALE.Common.FlatData.MinigameTBGItemExcel()).__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 CreateMinigameTBGItemExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGItemExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGItemExcelTable.EndMinigameTBGItemExcelTable(builder); + } + + public static void StartMinigameTBGItemExcelTable(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 EndMinigameTBGItemExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGItemExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGItemExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs new file mode 100644 index 0000000..152851e --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.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::Google.FlatBuffers; + +public struct MinigameTBGObjectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGObjectExcel GetRootAsMinigameTBGObjectExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGObjectExcel(_bb, new MinigameTBGObjectExcel()); } + public static MinigameTBGObjectExcel GetRootAsMinigameTBGObjectExcel(ByteBuffer _bb, MinigameTBGObjectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGObjectExcel __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 string Key { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeyBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetKeyBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetKeyArray() { return __p.__vector_as_array(6); } + public string PrefabName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None; } } + public SCHALE.Common.FlatData.ParcelType ObjectCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ObjectCostId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ObjectCostAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool Disposable { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ReEncounterCost { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateMinigameTBGObjectExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset KeyOffset = default(StringOffset), + StringOffset PrefabNameOffset = default(StringOffset), + SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None, + SCHALE.Common.FlatData.ParcelType ObjectCostType = SCHALE.Common.FlatData.ParcelType.None, + long ObjectCostId = 0, + int ObjectCostAmount = 0, + bool Disposable = false, + bool ReEncounterCost = false) { + builder.StartTable(9); + MinigameTBGObjectExcel.AddObjectCostId(builder, ObjectCostId); + MinigameTBGObjectExcel.AddUniqueId(builder, UniqueId); + MinigameTBGObjectExcel.AddObjectCostAmount(builder, ObjectCostAmount); + MinigameTBGObjectExcel.AddObjectCostType(builder, ObjectCostType); + MinigameTBGObjectExcel.AddObjectType(builder, ObjectType); + MinigameTBGObjectExcel.AddPrefabName(builder, PrefabNameOffset); + MinigameTBGObjectExcel.AddKey(builder, KeyOffset); + MinigameTBGObjectExcel.AddReEncounterCost(builder, ReEncounterCost); + MinigameTBGObjectExcel.AddDisposable(builder, Disposable); + return MinigameTBGObjectExcel.EndMinigameTBGObjectExcel(builder); + } + + public static void StartMinigameTBGObjectExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddKey(FlatBufferBuilder builder, StringOffset keyOffset) { builder.AddOffset(1, keyOffset.Value, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(2, prefabNameOffset.Value, 0); } + public static void AddObjectType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGObjectType objectType) { builder.AddInt(3, (int)objectType, 0); } + public static void AddObjectCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType objectCostType) { builder.AddInt(4, (int)objectCostType, 0); } + public static void AddObjectCostId(FlatBufferBuilder builder, long objectCostId) { builder.AddLong(5, objectCostId, 0); } + public static void AddObjectCostAmount(FlatBufferBuilder builder, int objectCostAmount) { builder.AddInt(6, objectCostAmount, 0); } + public static void AddDisposable(FlatBufferBuilder builder, bool disposable) { builder.AddBool(7, disposable, false); } + public static void AddReEncounterCost(FlatBufferBuilder builder, bool reEncounterCost) { builder.AddBool(8, reEncounterCost, false); } + public static Offset EndMinigameTBGObjectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGObjectExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Key*/, false) + && verifier.VerifyString(tablePos, 8 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 10 /*ObjectType*/, 4 /*SCHALE.Common.FlatData.TBGObjectType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ObjectCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*ObjectCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*ObjectCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Disposable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 20 /*ReEncounterCost*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs new file mode 100644 index 0000000..6f4f1b6 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGObjectExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGObjectExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGObjectExcelTable GetRootAsMinigameTBGObjectExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGObjectExcelTable(_bb, new MinigameTBGObjectExcelTable()); } + public static MinigameTBGObjectExcelTable GetRootAsMinigameTBGObjectExcelTable(ByteBuffer _bb, MinigameTBGObjectExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGObjectExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGObjectExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGObjectExcel?)(new SCHALE.Common.FlatData.MinigameTBGObjectExcel()).__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 CreateMinigameTBGObjectExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGObjectExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGObjectExcelTable.EndMinigameTBGObjectExcelTable(builder); + } + + public static void StartMinigameTBGObjectExcelTable(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 EndMinigameTBGObjectExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGObjectExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGObjectExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs new file mode 100644 index 0000000..cf09fd9 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs @@ -0,0 +1,211 @@ +// +// 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 MinigameTBGSeasonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGSeasonExcel GetRootAsMinigameTBGSeasonExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGSeasonExcel(_bb, new MinigameTBGSeasonExcel()); } + public static MinigameTBGSeasonExcel GetRootAsMinigameTBGSeasonExcel(ByteBuffer _bb, MinigameTBGSeasonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGSeasonExcel __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 int ItemSlot { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DefaultEchelonHp { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long DefaultItemDiceId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EchelonSlot1CharacterId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EchelonSlot2CharacterId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EchelonSlot3CharacterId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EchelonSlot4CharacterId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string EchelonSlot1Portrait { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonSlot1PortraitBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetEchelonSlot1PortraitBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetEchelonSlot1PortraitArray() { return __p.__vector_as_array(20); } + public string EchelonSlot2Portrait { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonSlot2PortraitBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetEchelonSlot2PortraitBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetEchelonSlot2PortraitArray() { return __p.__vector_as_array(22); } + public string EchelonSlot3Portrait { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonSlot3PortraitBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetEchelonSlot3PortraitBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetEchelonSlot3PortraitArray() { return __p.__vector_as_array(24); } + public string EchelonSlot4Portrait { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEchelonSlot4PortraitBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetEchelonSlot4PortraitBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetEchelonSlot4PortraitArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.ParcelType EventUseCostType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long EventUseCostId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long EchelonRevivalCostId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int EchelonRevivalCostAmount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnemyBossHP { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnemyMinionHP { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AttackDamage { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CriticalAttackDamage { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RoundItemSelectLimit { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int InstantClearRound { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxHp { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string MapImagePath { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMapImagePathBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetMapImagePathBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetMapImagePathArray() { return __p.__vector_as_array(52); } + public string MapNameLocalize { get { int o = __p.__offset(54); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMapNameLocalizeBytes() { return __p.__vector_as_span(54, 1); } +#else + public ArraySegment? GetMapNameLocalizeBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public byte[] GetMapNameLocalizeArray() { return __p.__vector_as_array(54); } + + public static Offset CreateMinigameTBGSeasonExcel(FlatBufferBuilder builder, + long EventContentId = 0, + int ItemSlot = 0, + int DefaultEchelonHp = 0, + long DefaultItemDiceId = 0, + long EchelonSlot1CharacterId = 0, + long EchelonSlot2CharacterId = 0, + long EchelonSlot3CharacterId = 0, + long EchelonSlot4CharacterId = 0, + StringOffset EchelonSlot1PortraitOffset = default(StringOffset), + StringOffset EchelonSlot2PortraitOffset = default(StringOffset), + StringOffset EchelonSlot3PortraitOffset = default(StringOffset), + StringOffset EchelonSlot4PortraitOffset = default(StringOffset), + SCHALE.Common.FlatData.ParcelType EventUseCostType = SCHALE.Common.FlatData.ParcelType.None, + long EventUseCostId = 0, + SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None, + long EchelonRevivalCostId = 0, + int EchelonRevivalCostAmount = 0, + int EnemyBossHP = 0, + int EnemyMinionHP = 0, + int AttackDamage = 0, + int CriticalAttackDamage = 0, + int RoundItemSelectLimit = 0, + int InstantClearRound = 0, + int MaxHp = 0, + StringOffset MapImagePathOffset = default(StringOffset), + StringOffset MapNameLocalizeOffset = default(StringOffset)) { + builder.StartTable(26); + MinigameTBGSeasonExcel.AddEchelonRevivalCostId(builder, EchelonRevivalCostId); + MinigameTBGSeasonExcel.AddEventUseCostId(builder, EventUseCostId); + MinigameTBGSeasonExcel.AddEchelonSlot4CharacterId(builder, EchelonSlot4CharacterId); + MinigameTBGSeasonExcel.AddEchelonSlot3CharacterId(builder, EchelonSlot3CharacterId); + MinigameTBGSeasonExcel.AddEchelonSlot2CharacterId(builder, EchelonSlot2CharacterId); + MinigameTBGSeasonExcel.AddEchelonSlot1CharacterId(builder, EchelonSlot1CharacterId); + MinigameTBGSeasonExcel.AddDefaultItemDiceId(builder, DefaultItemDiceId); + MinigameTBGSeasonExcel.AddEventContentId(builder, EventContentId); + MinigameTBGSeasonExcel.AddMapNameLocalize(builder, MapNameLocalizeOffset); + MinigameTBGSeasonExcel.AddMapImagePath(builder, MapImagePathOffset); + MinigameTBGSeasonExcel.AddMaxHp(builder, MaxHp); + MinigameTBGSeasonExcel.AddInstantClearRound(builder, InstantClearRound); + MinigameTBGSeasonExcel.AddRoundItemSelectLimit(builder, RoundItemSelectLimit); + MinigameTBGSeasonExcel.AddCriticalAttackDamage(builder, CriticalAttackDamage); + MinigameTBGSeasonExcel.AddAttackDamage(builder, AttackDamage); + MinigameTBGSeasonExcel.AddEnemyMinionHP(builder, EnemyMinionHP); + MinigameTBGSeasonExcel.AddEnemyBossHP(builder, EnemyBossHP); + MinigameTBGSeasonExcel.AddEchelonRevivalCostAmount(builder, EchelonRevivalCostAmount); + MinigameTBGSeasonExcel.AddEchelonRevivalCostType(builder, EchelonRevivalCostType); + MinigameTBGSeasonExcel.AddEventUseCostType(builder, EventUseCostType); + MinigameTBGSeasonExcel.AddEchelonSlot4Portrait(builder, EchelonSlot4PortraitOffset); + MinigameTBGSeasonExcel.AddEchelonSlot3Portrait(builder, EchelonSlot3PortraitOffset); + MinigameTBGSeasonExcel.AddEchelonSlot2Portrait(builder, EchelonSlot2PortraitOffset); + MinigameTBGSeasonExcel.AddEchelonSlot1Portrait(builder, EchelonSlot1PortraitOffset); + MinigameTBGSeasonExcel.AddDefaultEchelonHp(builder, DefaultEchelonHp); + MinigameTBGSeasonExcel.AddItemSlot(builder, ItemSlot); + return MinigameTBGSeasonExcel.EndMinigameTBGSeasonExcel(builder); + } + + public static void StartMinigameTBGSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(26); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(0, eventContentId, 0); } + public static void AddItemSlot(FlatBufferBuilder builder, int itemSlot) { builder.AddInt(1, itemSlot, 0); } + public static void AddDefaultEchelonHp(FlatBufferBuilder builder, int defaultEchelonHp) { builder.AddInt(2, defaultEchelonHp, 0); } + public static void AddDefaultItemDiceId(FlatBufferBuilder builder, long defaultItemDiceId) { builder.AddLong(3, defaultItemDiceId, 0); } + public static void AddEchelonSlot1CharacterId(FlatBufferBuilder builder, long echelonSlot1CharacterId) { builder.AddLong(4, echelonSlot1CharacterId, 0); } + public static void AddEchelonSlot2CharacterId(FlatBufferBuilder builder, long echelonSlot2CharacterId) { builder.AddLong(5, echelonSlot2CharacterId, 0); } + public static void AddEchelonSlot3CharacterId(FlatBufferBuilder builder, long echelonSlot3CharacterId) { builder.AddLong(6, echelonSlot3CharacterId, 0); } + public static void AddEchelonSlot4CharacterId(FlatBufferBuilder builder, long echelonSlot4CharacterId) { builder.AddLong(7, echelonSlot4CharacterId, 0); } + public static void AddEchelonSlot1Portrait(FlatBufferBuilder builder, StringOffset echelonSlot1PortraitOffset) { builder.AddOffset(8, echelonSlot1PortraitOffset.Value, 0); } + public static void AddEchelonSlot2Portrait(FlatBufferBuilder builder, StringOffset echelonSlot2PortraitOffset) { builder.AddOffset(9, echelonSlot2PortraitOffset.Value, 0); } + public static void AddEchelonSlot3Portrait(FlatBufferBuilder builder, StringOffset echelonSlot3PortraitOffset) { builder.AddOffset(10, echelonSlot3PortraitOffset.Value, 0); } + public static void AddEchelonSlot4Portrait(FlatBufferBuilder builder, StringOffset echelonSlot4PortraitOffset) { builder.AddOffset(11, echelonSlot4PortraitOffset.Value, 0); } + public static void AddEventUseCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType eventUseCostType) { builder.AddInt(12, (int)eventUseCostType, 0); } + public static void AddEventUseCostId(FlatBufferBuilder builder, long eventUseCostId) { builder.AddLong(13, eventUseCostId, 0); } + public static void AddEchelonRevivalCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType echelonRevivalCostType) { builder.AddInt(14, (int)echelonRevivalCostType, 0); } + public static void AddEchelonRevivalCostId(FlatBufferBuilder builder, long echelonRevivalCostId) { builder.AddLong(15, echelonRevivalCostId, 0); } + public static void AddEchelonRevivalCostAmount(FlatBufferBuilder builder, int echelonRevivalCostAmount) { builder.AddInt(16, echelonRevivalCostAmount, 0); } + public static void AddEnemyBossHP(FlatBufferBuilder builder, int enemyBossHP) { builder.AddInt(17, enemyBossHP, 0); } + public static void AddEnemyMinionHP(FlatBufferBuilder builder, int enemyMinionHP) { builder.AddInt(18, enemyMinionHP, 0); } + public static void AddAttackDamage(FlatBufferBuilder builder, int attackDamage) { builder.AddInt(19, attackDamage, 0); } + public static void AddCriticalAttackDamage(FlatBufferBuilder builder, int criticalAttackDamage) { builder.AddInt(20, criticalAttackDamage, 0); } + public static void AddRoundItemSelectLimit(FlatBufferBuilder builder, int roundItemSelectLimit) { builder.AddInt(21, roundItemSelectLimit, 0); } + public static void AddInstantClearRound(FlatBufferBuilder builder, int instantClearRound) { builder.AddInt(22, instantClearRound, 0); } + public static void AddMaxHp(FlatBufferBuilder builder, int maxHp) { builder.AddInt(23, maxHp, 0); } + public static void AddMapImagePath(FlatBufferBuilder builder, StringOffset mapImagePathOffset) { builder.AddOffset(24, mapImagePathOffset.Value, 0); } + public static void AddMapNameLocalize(FlatBufferBuilder builder, StringOffset mapNameLocalizeOffset) { builder.AddOffset(25, mapNameLocalizeOffset.Value, 0); } + public static Offset EndMinigameTBGSeasonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGSeasonExcelVerify +{ + 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 /*ItemSlot*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*DefaultEchelonHp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*DefaultItemDiceId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*EchelonSlot1CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*EchelonSlot2CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*EchelonSlot3CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*EchelonSlot4CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*EchelonSlot1Portrait*/, false) + && verifier.VerifyString(tablePos, 22 /*EchelonSlot2Portrait*/, false) + && verifier.VerifyString(tablePos, 24 /*EchelonSlot3Portrait*/, false) + && verifier.VerifyString(tablePos, 26 /*EchelonSlot4Portrait*/, false) + && verifier.VerifyField(tablePos, 28 /*EventUseCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*EventUseCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*EchelonRevivalCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*EchelonRevivalCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*EchelonRevivalCostAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*EnemyBossHP*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*EnemyMinionHP*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*AttackDamage*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*CriticalAttackDamage*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*RoundItemSelectLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*InstantClearRound*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*MaxHp*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 52 /*MapImagePath*/, false) + && verifier.VerifyString(tablePos, 54 /*MapNameLocalize*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs new file mode 100644 index 0000000..5264e28 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGSeasonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGSeasonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGSeasonExcelTable GetRootAsMinigameTBGSeasonExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGSeasonExcelTable(_bb, new MinigameTBGSeasonExcelTable()); } + public static MinigameTBGSeasonExcelTable GetRootAsMinigameTBGSeasonExcelTable(ByteBuffer _bb, MinigameTBGSeasonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGSeasonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGSeasonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGSeasonExcel?)(new SCHALE.Common.FlatData.MinigameTBGSeasonExcel()).__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 CreateMinigameTBGSeasonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGSeasonExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGSeasonExcelTable.EndMinigameTBGSeasonExcelTable(builder); + } + + public static void StartMinigameTBGSeasonExcelTable(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 EndMinigameTBGSeasonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGSeasonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGSeasonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs new file mode 100644 index 0000000..9d7b588 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs @@ -0,0 +1,169 @@ +// +// 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 MinigameTBGThemaExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGThemaExcel GetRootAsMinigameTBGThemaExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGThemaExcel(_bb, new MinigameTBGThemaExcel()); } + public static MinigameTBGThemaExcel GetRootAsMinigameTBGThemaExcel(ByteBuffer _bb, MinigameTBGThemaExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGThemaExcel __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 int ThemaIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None; } } + public string ThemaMap { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaMapBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetThemaMapBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetThemaMapArray() { return __p.__vector_as_array(12); } + public string ThemaMapBG { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaMapBGBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetThemaMapBGBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetThemaMapBGArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.TBGPortalCondition PortalCondition(int j) { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.TBGPortalCondition)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.TBGPortalCondition)0; } + public int PortalConditionLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPortalConditionBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetPortalConditionBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public SCHALE.Common.FlatData.TBGPortalCondition[] GetPortalConditionArray() { int o = __p.__offset(16); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.TBGPortalCondition[] a = new SCHALE.Common.FlatData.TBGPortalCondition[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.TBGPortalCondition)__p.bb.GetInt(p + i * 4); } return a; } + public string PortalConditionParameter(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PortalConditionParameterLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public string ThemaNameLocalize { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaNameLocalizeBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetThemaNameLocalizeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetThemaNameLocalizeArray() { return __p.__vector_as_array(20); } + public string ThemaLoadingImage { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaLoadingImageBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetThemaLoadingImageBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetThemaLoadingImageArray() { return __p.__vector_as_array(22); } + public string ThemaPlayerPrefab { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaPlayerPrefabBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetThemaPlayerPrefabBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetThemaPlayerPrefabArray() { return __p.__vector_as_array(24); } + public long ThemaLeaderId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ThemaGoalLocalize { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetThemaGoalLocalizeBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetThemaGoalLocalizeBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetThemaGoalLocalizeArray() { return __p.__vector_as_array(28); } + public long InstantClearCostAmount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMinigameTBGThemaExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long UniqueId = 0, + int ThemaIndex = 0, + SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None, + StringOffset ThemaMapOffset = default(StringOffset), + StringOffset ThemaMapBGOffset = default(StringOffset), + VectorOffset PortalConditionOffset = default(VectorOffset), + VectorOffset PortalConditionParameterOffset = default(VectorOffset), + StringOffset ThemaNameLocalizeOffset = default(StringOffset), + StringOffset ThemaLoadingImageOffset = default(StringOffset), + StringOffset ThemaPlayerPrefabOffset = default(StringOffset), + long ThemaLeaderId = 0, + StringOffset ThemaGoalLocalizeOffset = default(StringOffset), + long InstantClearCostAmount = 0) { + builder.StartTable(14); + MinigameTBGThemaExcel.AddInstantClearCostAmount(builder, InstantClearCostAmount); + MinigameTBGThemaExcel.AddThemaLeaderId(builder, ThemaLeaderId); + MinigameTBGThemaExcel.AddUniqueId(builder, UniqueId); + MinigameTBGThemaExcel.AddEventContentId(builder, EventContentId); + MinigameTBGThemaExcel.AddThemaGoalLocalize(builder, ThemaGoalLocalizeOffset); + MinigameTBGThemaExcel.AddThemaPlayerPrefab(builder, ThemaPlayerPrefabOffset); + MinigameTBGThemaExcel.AddThemaLoadingImage(builder, ThemaLoadingImageOffset); + MinigameTBGThemaExcel.AddThemaNameLocalize(builder, ThemaNameLocalizeOffset); + MinigameTBGThemaExcel.AddPortalConditionParameter(builder, PortalConditionParameterOffset); + MinigameTBGThemaExcel.AddPortalCondition(builder, PortalConditionOffset); + MinigameTBGThemaExcel.AddThemaMapBG(builder, ThemaMapBGOffset); + MinigameTBGThemaExcel.AddThemaMap(builder, ThemaMapOffset); + MinigameTBGThemaExcel.AddThemaType(builder, ThemaType); + MinigameTBGThemaExcel.AddThemaIndex(builder, ThemaIndex); + return MinigameTBGThemaExcel.EndMinigameTBGThemaExcel(builder); + } + + public static void StartMinigameTBGThemaExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + 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 AddThemaIndex(FlatBufferBuilder builder, int themaIndex) { builder.AddInt(2, themaIndex, 0); } + public static void AddThemaType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGThemaType themaType) { builder.AddInt(3, (int)themaType, 0); } + public static void AddThemaMap(FlatBufferBuilder builder, StringOffset themaMapOffset) { builder.AddOffset(4, themaMapOffset.Value, 0); } + public static void AddThemaMapBG(FlatBufferBuilder builder, StringOffset themaMapBGOffset) { builder.AddOffset(5, themaMapBGOffset.Value, 0); } + public static void AddPortalCondition(FlatBufferBuilder builder, VectorOffset portalConditionOffset) { builder.AddOffset(6, portalConditionOffset.Value, 0); } + public static VectorOffset CreatePortalConditionVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGPortalCondition[] 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 CreatePortalConditionVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.TBGPortalCondition[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePortalConditionVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePortalConditionVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPortalConditionVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPortalConditionParameter(FlatBufferBuilder builder, VectorOffset portalConditionParameterOffset) { builder.AddOffset(7, portalConditionParameterOffset.Value, 0); } + public static VectorOffset CreatePortalConditionParameterVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePortalConditionParameterVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePortalConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePortalConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPortalConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddThemaNameLocalize(FlatBufferBuilder builder, StringOffset themaNameLocalizeOffset) { builder.AddOffset(8, themaNameLocalizeOffset.Value, 0); } + public static void AddThemaLoadingImage(FlatBufferBuilder builder, StringOffset themaLoadingImageOffset) { builder.AddOffset(9, themaLoadingImageOffset.Value, 0); } + public static void AddThemaPlayerPrefab(FlatBufferBuilder builder, StringOffset themaPlayerPrefabOffset) { builder.AddOffset(10, themaPlayerPrefabOffset.Value, 0); } + public static void AddThemaLeaderId(FlatBufferBuilder builder, long themaLeaderId) { builder.AddLong(11, themaLeaderId, 0); } + public static void AddThemaGoalLocalize(FlatBufferBuilder builder, StringOffset themaGoalLocalizeOffset) { builder.AddOffset(12, themaGoalLocalizeOffset.Value, 0); } + public static void AddInstantClearCostAmount(FlatBufferBuilder builder, long instantClearCostAmount) { builder.AddLong(13, instantClearCostAmount, 0); } + public static Offset EndMinigameTBGThemaExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGThemaExcelVerify +{ + 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 /*ThemaIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ThemaType*/, 4 /*SCHALE.Common.FlatData.TBGThemaType*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*ThemaMap*/, false) + && verifier.VerifyString(tablePos, 14 /*ThemaMapBG*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*PortalCondition*/, 4 /*SCHALE.Common.FlatData.TBGPortalCondition*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*PortalConditionParameter*/, false) + && verifier.VerifyString(tablePos, 20 /*ThemaNameLocalize*/, false) + && verifier.VerifyString(tablePos, 22 /*ThemaLoadingImage*/, false) + && verifier.VerifyString(tablePos, 24 /*ThemaPlayerPrefab*/, false) + && verifier.VerifyField(tablePos, 26 /*ThemaLeaderId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 28 /*ThemaGoalLocalize*/, false) + && verifier.VerifyField(tablePos, 30 /*InstantClearCostAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs new file mode 100644 index 0000000..a19486c --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGThemaExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGThemaExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGThemaExcelTable GetRootAsMinigameTBGThemaExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGThemaExcelTable(_bb, new MinigameTBGThemaExcelTable()); } + public static MinigameTBGThemaExcelTable GetRootAsMinigameTBGThemaExcelTable(ByteBuffer _bb, MinigameTBGThemaExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGThemaExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGThemaExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGThemaExcel?)(new SCHALE.Common.FlatData.MinigameTBGThemaExcel()).__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 CreateMinigameTBGThemaExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGThemaExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGThemaExcelTable.EndMinigameTBGThemaExcelTable(builder); + } + + public static void StartMinigameTBGThemaExcelTable(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 EndMinigameTBGThemaExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGThemaExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGThemaExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs new file mode 100644 index 0000000..080b373 --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs @@ -0,0 +1,65 @@ +// +// 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 MinigameTBGVoiceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGVoiceExcel GetRootAsMinigameTBGVoiceExcel(ByteBuffer _bb) { return GetRootAsMinigameTBGVoiceExcel(_bb, new MinigameTBGVoiceExcel()); } + public static MinigameTBGVoiceExcel GetRootAsMinigameTBGVoiceExcel(ByteBuffer _bb, MinigameTBGVoiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGVoiceExcel __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.TBGVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGVoiceCondition.None; } } + public uint VoiceId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateMinigameTBGVoiceExcel(FlatBufferBuilder builder, + long EventContentId = 0, + long UniqueId = 0, + SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None, + uint VoiceId = 0) { + builder.StartTable(4); + MinigameTBGVoiceExcel.AddUniqueId(builder, UniqueId); + MinigameTBGVoiceExcel.AddEventContentId(builder, EventContentId); + MinigameTBGVoiceExcel.AddVoiceId(builder, VoiceId); + MinigameTBGVoiceExcel.AddVoiceCondition(builder, VoiceCondition); + return MinigameTBGVoiceExcel.EndMinigameTBGVoiceExcel(builder); + } + + public static void StartMinigameTBGVoiceExcel(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.TBGVoiceCondition voiceCondition) { builder.AddInt(2, (int)voiceCondition, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(3, voiceId, 0); } + public static Offset EndMinigameTBGVoiceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGVoiceExcelVerify +{ + 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.TBGVoiceCondition*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*VoiceId*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs b/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs new file mode 100644 index 0000000..d3da83d --- /dev/null +++ b/SCHALE.Common/FlatData/MinigameTBGVoiceExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MinigameTBGVoiceExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MinigameTBGVoiceExcelTable GetRootAsMinigameTBGVoiceExcelTable(ByteBuffer _bb) { return GetRootAsMinigameTBGVoiceExcelTable(_bb, new MinigameTBGVoiceExcelTable()); } + public static MinigameTBGVoiceExcelTable GetRootAsMinigameTBGVoiceExcelTable(ByteBuffer _bb, MinigameTBGVoiceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MinigameTBGVoiceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MinigameTBGVoiceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MinigameTBGVoiceExcel?)(new SCHALE.Common.FlatData.MinigameTBGVoiceExcel()).__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 CreateMinigameTBGVoiceExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MinigameTBGVoiceExcelTable.AddDataList(builder, DataListOffset); + return MinigameTBGVoiceExcelTable.EndMinigameTBGVoiceExcelTable(builder); + } + + public static void StartMinigameTBGVoiceExcelTable(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 EndMinigameTBGVoiceExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MinigameTBGVoiceExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MinigameTBGVoiceExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MissionCategory.cs b/SCHALE.Common/FlatData/MissionCategory.cs new file mode 100644 index 0000000..3220908 --- /dev/null +++ b/SCHALE.Common/FlatData/MissionCategory.cs @@ -0,0 +1,25 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MissionCategory : int +{ + Challenge = 0, + Daily = 1, + Weekly = 2, + Achievement = 3, + GuideMission = 4, + All = 5, + MiniGameScore = 6, + MiniGameEvent = 7, + EventAchievement = 8, + DailySudden = 9, + DailyFixed = 10, + EventFixed = 11, +}; + + +} diff --git a/SCHALE.Common/FlatData/MissionCompleteConditionType.cs b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs new file mode 100644 index 0000000..02534df --- /dev/null +++ b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs @@ -0,0 +1,172 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MissionCompleteConditionType : int +{ + None = 0, + Reset_DailyLogin = 1, + Reset_DailyLoginCount = 2, + Reset_CompleteMission = 3, + Achieve_EquipmentLevelUpCount = 4, + Achieve_EquipmentTierUpCount = 5, + Achieve_CharacterLevelUpCount = 6, + Reset_CharacterTranscendenceCount = 7, + Reset_ClearTaticBattleCount = 8, + Achieve_ClearCampaignStageCount = 9, + Reset_KillSpecificEnemyCount = 10, + Reset_KillEnemyWithTagCount = 11, + Reset_GetCharacterCount = 12, + Reset_GetCharacterWithTagCount = 13, + Reset_GetSpecificCharacterCount = 14, + Reset_AccountLevelUp = 15, + Reset_GetEquipmentCount = 16, + Reset_GachaCount = 17, + Reset_UseGem = 18, + Reset_GetGem = 19, + Reset_GetGemPaid = 20, + Achieve_GetGold = 21, + Achieve_GetItem = 22, + Reset_GetFavorLevel = 23, + Reset___Deprecated_EquipmentAtSpecificLevelCount = 24, + Reset_EquipmentAtSpecificTierUpCount = 25, + Reset_CharacterAtSpecificLevelCount = 26, + Reset_CharacterAtSpecificTranscendenceCount = 27, + Achieve_CharacterSkillLevelUpCount = 28, + Reset_CharacterAtSpecificSkillLevelCount = 29, + Reset_CompleteScheduleCount = 30, + Reset_CompleteScheduleGroupCount = 31, + Reset_AcademyLocationRankSum = 32, + Reset_CraftCount = 33, + Achieve_GetComfortPoint = 34, + Achieve_GetWeaponCount = 35, + Reset_EquipWeaponCount_Obsolete = 36, + Reset_CompleteScheduleWithSpecificCharacter = 37, + Reset_CafeInteractionCount = 38, + Reset_SpecificCharacterAtSpecificLevel = 39, + Reset_SpecificCharacterAtSpecificTranscendence = 40, + Reset_LobbyInteraction = 41, + Achieve_ClearFindGiftAndBloodDungeonCount = 42, + Reset_ClearSpecificFindGiftAndBloodDungeonCount = 43, + Achieve_JoinRaidCount = 44, + Reset_JoinSpecificRaidCount = 45, + Achieve_JoinArenaCount = 46, + Reset_ArenaVictoryCount = 47, + Reset_RaidDamageAmountOnOneBattle = 48, + Reset_ClearEventStageCount = 49, + Reset_UseSpecificCharacterCount = 50, + Achieve_UseGold = 51, + Reset_UseTiket = 52, + Reset_ShopBuyCount = 53, + Reset_ShopBuyActionPointCount = 54, + Reset_SpecificCharacterAtSpecificFavorRank = 55, + Reset_ClearSpecificScenario = 56, + Reset_GetSpecificItemCount = 57, + Achieve_TotalGetClearStarCount = 58, + Reset_CompleteCampaignStageMinimumTurn = 59, + Achieve_TotalLoginCount = 60, + Reset_LoginAtSpecificTime = 61, + Reset_CompleteFavorSchedule = 62, + Reset_CompleteFavorScheduleAtSpecificCharacter = 63, + Reset_GetMemoryLobbyCount = 64, + Reset_GetFurnitureGroupCount = 65, + Reset_AcademyLocationAtSpecificRank = 66, + Reset_ClearCampaignStageDifficultyNormal = 67, + Reset_ClearCampaignStageDifficultyHard = 68, + Achieve_ClearChaserDungeonCount = 69, + Reset_ClearSpecificChaserDungeonCount = 70, + Reset_GetCafeRank = 71, + Reset_SpecificStarCharacterCount = 72, + Reset_EventClearCampaignStageCount = 73, + Reset_EventClearSpecificCampaignStageCount = 74, + Reset_EventCompleteCampaignStageMinimumTurn = 75, + Reset_EventClearCampaignStageDifficultyNormal = 76, + Reset_EventClearCampaignStageDifficultyHard = 77, + Reset_ClearSpecificCampaignStageCount = 78, + Reset_GetItemWithTagCount = 79, + Reset_GetFurnitureWithTagCount = 80, + Reset_GetEquipmentWithTagCount = 81, + Reset_ClearCampaignStageTimeLimitFromSecond = 82, + Reset_ClearEventStageTimeLimitFromSecond = 83, + Reset_ClearRaidTimeLimitFromSecond = 84, + Reset_ClearBattleWithTagCount = 85, + Reset_ClearFindGiftAndBloodDungeonTimeLimitFromSecond = 86, + Reset_CompleteScheduleWithTagCount = 87, + Reset_ClearChaserDungeonTimeLimitFromSecond = 88, + Reset_GetTotalScoreRhythm = 89, + Reset_GetBestScoreRhythm = 90, + Reset_GetSpecificScoreRhythm = 91, + Reset_ClearStageRhythm = 92, + Reset_GetComboCountRhythm = 93, + Reset_GetFullComboRhythm = 94, + Reset_GetFeverCountRhythm = 95, + Reset_UseActionPoint = 96, + Achieve_ClearSchoolDungeonCount = 97, + Reset_ClearSchoolDungeonTimeLimitFromSecond = 98, + Reset_ClearSpecificSchoolDungeonCount = 99, + Reset_GetCriticalCountRhythm = 100, + Achieve_WeaponTranscendenceCount = 101, + Achieve_WeaponLevelUpCount = 102, + Reset_WeaponAtSpecificTranscendenceCount = 103, + Reset_WeaponAtSpecificLevelUpCount = 104, + Reset_BuyShopGoods = 105, + Reset_ClanLogin = 106, + Reset_AssistCharacterSetting = 107, + Reset_DailyMissionFulfill = 108, + Reset_SelectedMissionFulfill = 109, + Reset_TotalDamageToWorldRaid = 110, + Reset_JoinWorldRaidTypeNumber = 111, + Reset_JoinWorldRaidBattleWithTagCount = 112, + Reset_ClearWorldRaidTimeLimitFromSecond = 113, + Achieve_KillEnemyWithDecagrammatonSPOTagCount = 114, + Reset_ConquerTileCount = 115, + Reset_ConquerSpecificStepTileCount = 116, + Reset_ConquerSpecificStepTileAll = 117, + Reset_UpgradeConquestBaseTileCount = 118, + Reset_KillConquestBoss = 119, + Reset_ClearEventConquestTileTimeLimitFromSecond = 120, + Reset_DiceRaceUseDiceCount = 121, + Reset_DiceRaceFinishLapCount = 122, + Reset_FortuneGachaCount = 123, + Reset_FortuneGachaCountByGrade = 124, + Reset_ClearCountShooting = 125, + Reset_ClearSpecificStageShooting = 126, + Reset_ClearSpecificCharacterShooting = 127, + Reset_ClearSpecificSectionShooting = 128, + Achieve_JoinEliminateRaidCount = 129, + Reset_TBGCompleteRoundCount = 130, + Reset_CompleteStage = 131, + Reset_TBGClearSpecificThema = 132, + Reset_ClearGeneralChaserDungeonCount = 133, + Reset_ClearGeneralFindGiftAndBloodDungeonCount = 134, + Reset_ClearGeneralSchoolDungeonCount = 135, + Reset_JoinArenaCount = 136, + Reset_GetCafe2ndRank = 137, + Achieve_GetComfort2ndPoint = 138, + Reset_ClearSpecificTimeAttackDungeonCount = 139, + Reset_GetScoreTimeAttackDungeon = 140, + Reset_GetTotalScoreTimeAttackDungeon = 141, + Reset_JoinRaidCount = 142, + Reset_ClearTimeAttackDungeonCount = 143, + Reset_JoinEliminateRaidCount = 144, + Reset_FieldClearSpecificDate = 145, + Reset_FieldGetEvidenceCount = 146, + Reset_FieldMasteryLevel = 147, + Reset_TreasureCheckedCellCount = 148, + Reset_TreasureGetTreasureCount = 149, + Reset_TreasureRoundRefreshCount = 150, + Achieve_UseTicketCount = 151, + Reset_ClearMultiFloorRaidStage = 152, + Achieve_CharacterPotentialUpCount = 153, + Reset_CharacterPotentialUpCount = 154, + Reset_CharacterAtSpecificPotentialCount = 155, + Reset_PotentialAttackPowerAtSpecificLevel = 156, + Reset_PotentialMaxHPAtSpecificLevel = 157, + Reset_PotentialHealPowerAtSpecificLevel = 158, +}; + + +} diff --git a/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs b/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs new file mode 100644 index 0000000..deb84d2 --- /dev/null +++ b/SCHALE.Common/FlatData/MissionEmergencyCompleteExcel.cs @@ -0,0 +1,55 @@ +// +// 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 MissionEmergencyCompleteExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MissionEmergencyCompleteExcel GetRootAsMissionEmergencyCompleteExcel(ByteBuffer _bb) { return GetRootAsMissionEmergencyCompleteExcel(_bb, new MissionEmergencyCompleteExcel()); } + public static MissionEmergencyCompleteExcel GetRootAsMissionEmergencyCompleteExcel(ByteBuffer _bb, MissionEmergencyCompleteExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MissionEmergencyCompleteExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long MissionId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool EmergencyComplete { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateMissionEmergencyCompleteExcel(FlatBufferBuilder builder, + long MissionId = 0, + bool EmergencyComplete = false) { + builder.StartTable(2); + MissionEmergencyCompleteExcel.AddMissionId(builder, MissionId); + MissionEmergencyCompleteExcel.AddEmergencyComplete(builder, EmergencyComplete); + return MissionEmergencyCompleteExcel.EndMissionEmergencyCompleteExcel(builder); + } + + public static void StartMissionEmergencyCompleteExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddMissionId(FlatBufferBuilder builder, long missionId) { builder.AddLong(0, missionId, 0); } + public static void AddEmergencyComplete(FlatBufferBuilder builder, bool emergencyComplete) { builder.AddBool(1, emergencyComplete, false); } + public static Offset EndMissionEmergencyCompleteExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MissionEmergencyCompleteExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MissionId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EmergencyComplete*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MissionExcel.cs b/SCHALE.Common/FlatData/MissionExcel.cs new file mode 100644 index 0000000..7be5d9e --- /dev/null +++ b/SCHALE.Common/FlatData/MissionExcel.cs @@ -0,0 +1,311 @@ +// +// 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 MissionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MissionExcel GetRootAsMissionExcel(ByteBuffer _bb) { return GetRootAsMissionExcel(_bb, new MissionExcel()); } + public static MissionExcel GetRootAsMissionExcel(ByteBuffer _bb, MissionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MissionExcel __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 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 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; } } +#if ENABLE_SPAN_T + public Span GetToastImagePathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetToastImagePathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetToastImagePathArray() { return __p.__vector_as_array(14); } + public bool ViewFlag { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool Limit { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string StartDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(20); } + public string EndDate { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(22); } + public long EndDay { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StartableEndDate { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartableEndDateBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetStartableEndDateBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetStartableEndDateArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.ContentType DateAutoRefer { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public long DisplayOrder { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PreMissionId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PreMissionIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPreMissionIdBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetPreMissionIdBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetPreMissionIdArray() { return __p.__vector_as_array(32); } + public SCHALE.Common.FlatData.AccountState AccountType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.AccountState)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AccountState.WaitingSignIn; } } + public long AccountLevel { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.SuddenMissionContentType ContentTags(int j) { int o = __p.__offset(38); return o != 0 ? (SCHALE.Common.FlatData.SuddenMissionContentType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.SuddenMissionContentType)0; } + public int ContentTagsLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetContentTagsBytes() { return __p.__vector_as_span(38, 4); } +#else + public ArraySegment? GetContentTagsBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public SCHALE.Common.FlatData.SuddenMissionContentType[] GetContentTagsArray() { int o = __p.__offset(38); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.SuddenMissionContentType[] a = new SCHALE.Common.FlatData.SuddenMissionContentType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.SuddenMissionContentType)__p.bb.GetInt(p + i * 4); } return a; } + public string ShortcutUI(int j) { int o = __p.__offset(40); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUILength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } + public long ChallengeStageShortcut { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public long CompleteConditionCount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CompleteConditionParameter(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CompleteConditionParameterLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterBytes() { return __p.__vector_as_span(48, 8); } +#else + public ArraySegment? GetCompleteConditionParameterBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public long[] GetCompleteConditionParameterArray() { return __p.__vector_as_array(48); } + public SCHALE.Common.FlatData.Tag CompleteConditionParameterTag(int j) { int o = __p.__offset(50); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CompleteConditionParameterTagLength { get { int o = __p.__offset(50); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCompleteConditionParameterTagBytes() { return __p.__vector_as_span(50, 4); } +#else + public ArraySegment? GetCompleteConditionParameterTagBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public SCHALE.Common.FlatData.Tag[] GetCompleteConditionParameterTagArray() { int o = __p.__offset(50); 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 string RewardIcon { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardIconBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetRewardIconBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetRewardIconArray() { return __p.__vector_as_array(52); } + public SCHALE.Common.FlatData.ParcelType MissionRewardParcelType(int j) { int o = __p.__offset(54); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int MissionRewardParcelTypeLength { get { int o = __p.__offset(54); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelTypeBytes() { return __p.__vector_as_span(54, 4); } +#else + public ArraySegment? GetMissionRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetMissionRewardParcelTypeArray() { int o = __p.__offset(54); 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 MissionRewardParcelId(int j) { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int MissionRewardParcelIdLength { get { int o = __p.__offset(56); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardParcelIdBytes() { return __p.__vector_as_span(56, 8); } +#else + public ArraySegment? GetMissionRewardParcelIdBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public long[] GetMissionRewardParcelIdArray() { return __p.__vector_as_array(56); } + public int MissionRewardAmount(int j) { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int MissionRewardAmountLength { get { int o = __p.__offset(58); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetMissionRewardAmountBytes() { return __p.__vector_as_span(58, 4); } +#else + public ArraySegment? GetMissionRewardAmountBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public int[] GetMissionRewardAmountArray() { return __p.__vector_as_array(58); } + + public static Offset CreateMissionExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, + StringOffset DescriptionOffset = default(StringOffset), + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, + StringOffset ToastImagePathOffset = default(StringOffset), + bool ViewFlag = false, + bool Limit = false, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long EndDay = 0, + StringOffset StartableEndDateOffset = default(StringOffset), + SCHALE.Common.FlatData.ContentType DateAutoRefer = SCHALE.Common.FlatData.ContentType.None, + long DisplayOrder = 0, + VectorOffset PreMissionIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, + long AccountLevel = 0, + VectorOffset ContentTagsOffset = default(VectorOffset), + VectorOffset ShortcutUIOffset = default(VectorOffset), + long ChallengeStageShortcut = 0, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + long CompleteConditionCount = 0, + VectorOffset CompleteConditionParameterOffset = default(VectorOffset), + VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), + StringOffset RewardIconOffset = default(StringOffset), + VectorOffset MissionRewardParcelTypeOffset = default(VectorOffset), + VectorOffset MissionRewardParcelIdOffset = default(VectorOffset), + VectorOffset MissionRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(28); + MissionExcel.AddCompleteConditionCount(builder, CompleteConditionCount); + MissionExcel.AddChallengeStageShortcut(builder, ChallengeStageShortcut); + MissionExcel.AddAccountLevel(builder, AccountLevel); + MissionExcel.AddDisplayOrder(builder, DisplayOrder); + MissionExcel.AddEndDay(builder, EndDay); + MissionExcel.AddId(builder, Id); + MissionExcel.AddMissionRewardAmount(builder, MissionRewardAmountOffset); + MissionExcel.AddMissionRewardParcelId(builder, MissionRewardParcelIdOffset); + MissionExcel.AddMissionRewardParcelType(builder, MissionRewardParcelTypeOffset); + MissionExcel.AddRewardIcon(builder, RewardIconOffset); + MissionExcel.AddCompleteConditionParameterTag(builder, CompleteConditionParameterTagOffset); + MissionExcel.AddCompleteConditionParameter(builder, CompleteConditionParameterOffset); + MissionExcel.AddCompleteConditionType(builder, CompleteConditionType); + MissionExcel.AddShortcutUI(builder, ShortcutUIOffset); + MissionExcel.AddContentTags(builder, ContentTagsOffset); + MissionExcel.AddAccountType(builder, AccountType); + MissionExcel.AddPreMissionId(builder, PreMissionIdOffset); + MissionExcel.AddDateAutoRefer(builder, DateAutoRefer); + MissionExcel.AddStartableEndDate(builder, StartableEndDateOffset); + MissionExcel.AddEndDate(builder, EndDateOffset); + MissionExcel.AddStartDate(builder, StartDateOffset); + MissionExcel.AddToastImagePath(builder, ToastImagePathOffset); + MissionExcel.AddToastDisplayType(builder, ToastDisplayType); + MissionExcel.AddResetType(builder, ResetType); + MissionExcel.AddDescription(builder, DescriptionOffset); + MissionExcel.AddCategory(builder, Category); + MissionExcel.AddLimit(builder, Limit); + MissionExcel.AddViewFlag(builder, ViewFlag); + return MissionExcel.EndMissionExcel(builder); + } + + 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 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); } + public static void AddViewFlag(FlatBufferBuilder builder, bool viewFlag) { builder.AddBool(6, viewFlag, false); } + public static void AddLimit(FlatBufferBuilder builder, bool limit) { builder.AddBool(7, limit, false); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(8, startDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(9, endDateOffset.Value, 0); } + public static void AddEndDay(FlatBufferBuilder builder, long endDay) { builder.AddLong(10, endDay, 0); } + public static void AddStartableEndDate(FlatBufferBuilder builder, StringOffset startableEndDateOffset) { builder.AddOffset(11, startableEndDateOffset.Value, 0); } + public static void AddDateAutoRefer(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType dateAutoRefer) { builder.AddInt(12, (int)dateAutoRefer, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(13, displayOrder, 0); } + public static void AddPreMissionId(FlatBufferBuilder builder, VectorOffset preMissionIdOffset) { builder.AddOffset(14, preMissionIdOffset.Value, 0); } + public static VectorOffset CreatePreMissionIdVector(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 CreatePreMissionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + 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 AddAccountType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AccountState accountType) { builder.AddInt(15, (int)accountType, 0); } + public static void AddAccountLevel(FlatBufferBuilder builder, long accountLevel) { builder.AddLong(16, accountLevel, 0); } + public static void AddContentTags(FlatBufferBuilder builder, VectorOffset contentTagsOffset) { builder.AddOffset(17, contentTagsOffset.Value, 0); } + public static VectorOffset CreateContentTagsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.SuddenMissionContentType[] 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 CreateContentTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.SuddenMissionContentType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateContentTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateContentTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartContentTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddShortcutUI(FlatBufferBuilder builder, VectorOffset shortcutUIOffset) { builder.AddOffset(18, shortcutUIOffset.Value, 0); } + public static VectorOffset CreateShortcutUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddChallengeStageShortcut(FlatBufferBuilder builder, long challengeStageShortcut) { builder.AddLong(19, challengeStageShortcut, 0); } + public static void AddCompleteConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MissionCompleteConditionType completeConditionType) { builder.AddInt(20, (int)completeConditionType, 0); } + public static void AddCompleteConditionCount(FlatBufferBuilder builder, long completeConditionCount) { builder.AddLong(21, completeConditionCount, 0); } + public static void AddCompleteConditionParameter(FlatBufferBuilder builder, VectorOffset completeConditionParameterOffset) { builder.AddOffset(22, completeConditionParameterOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterVector(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 CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCompleteConditionParameterTag(FlatBufferBuilder builder, VectorOffset completeConditionParameterTagOffset) { builder.AddOffset(23, completeConditionParameterTagOffset.Value, 0); } + public static VectorOffset CreateCompleteConditionParameterTagVector(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 CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCompleteConditionParameterTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCompleteConditionParameterTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardIcon(FlatBufferBuilder builder, StringOffset rewardIconOffset) { builder.AddOffset(24, rewardIconOffset.Value, 0); } + public static void AddMissionRewardParcelType(FlatBufferBuilder builder, VectorOffset missionRewardParcelTypeOffset) { builder.AddOffset(25, missionRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelTypeVector(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 CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMissionRewardParcelId(FlatBufferBuilder builder, VectorOffset missionRewardParcelIdOffset) { builder.AddOffset(26, missionRewardParcelIdOffset.Value, 0); } + public static VectorOffset CreateMissionRewardParcelIdVector(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 CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMissionRewardAmount(FlatBufferBuilder builder, VectorOffset missionRewardAmountOffset) { builder.AddOffset(27, missionRewardAmountOffset.Value, 0); } + public static VectorOffset CreateMissionRewardAmountVector(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 CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateMissionRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartMissionRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMissionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MissionExcelVerify +{ + 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 /*Category*/, 4 /*SCHALE.Common.FlatData.MissionCategory*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Description*/, 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) + && verifier.VerifyField(tablePos, 16 /*ViewFlag*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*Limit*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 20 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 22 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 24 /*EndDay*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 26 /*StartableEndDate*/, false) + && verifier.VerifyField(tablePos, 28 /*DateAutoRefer*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*PreMissionId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 34 /*AccountType*/, 4 /*SCHALE.Common.FlatData.AccountState*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*AccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*ContentTags*/, 4 /*SCHALE.Common.FlatData.SuddenMissionContentType*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 40 /*ShortcutUI*/, false) + && verifier.VerifyField(tablePos, 42 /*ChallengeStageShortcut*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*CompleteConditionType*/, 4 /*SCHALE.Common.FlatData.MissionCompleteConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*CompleteConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*CompleteConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 50 /*CompleteConditionParameterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyString(tablePos, 52 /*RewardIcon*/, false) + && verifier.VerifyVectorOfData(tablePos, 54 /*MissionRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 56 /*MissionRewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 58 /*MissionRewardAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MissionExcelTable.cs b/SCHALE.Common/FlatData/MissionExcelTable.cs new file mode 100644 index 0000000..433d9cc --- /dev/null +++ b/SCHALE.Common/FlatData/MissionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 MissionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MissionExcelTable GetRootAsMissionExcelTable(ByteBuffer _bb) { return GetRootAsMissionExcelTable(_bb, new MissionExcelTable()); } + public static MissionExcelTable GetRootAsMissionExcelTable(ByteBuffer _bb, MissionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MissionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MissionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MissionExcel?)(new SCHALE.Common.FlatData.MissionExcel()).__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 CreateMissionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + MissionExcelTable.AddDataList(builder, DataListOffset); + return MissionExcelTable.EndMissionExcelTable(builder); + } + + public static void StartMissionExcelTable(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 EndMissionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MissionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MissionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MissionResetType.cs b/SCHALE.Common/FlatData/MissionResetType.cs new file mode 100644 index 0000000..4be47bc --- /dev/null +++ b/SCHALE.Common/FlatData/MissionResetType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MissionResetType : int +{ + None = 0, + Daily = 1, + Weekly = 2, + Limit = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/MissionToastDisplayConditionType.cs b/SCHALE.Common/FlatData/MissionToastDisplayConditionType.cs new file mode 100644 index 0000000..bb7ef00 --- /dev/null +++ b/SCHALE.Common/FlatData/MissionToastDisplayConditionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MissionToastDisplayConditionType : int +{ + Always = 0, + Complete = 1, + Never = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/Motion.cs b/SCHALE.Common/FlatData/Motion.cs new file mode 100644 index 0000000..1efde0c --- /dev/null +++ b/SCHALE.Common/FlatData/Motion.cs @@ -0,0 +1,67 @@ +// +// 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 Motion : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static Motion GetRootAsMotion(ByteBuffer _bb) { return GetRootAsMotion(_bb, new Motion()); } + public static Motion GetRootAsMotion(ByteBuffer _bb, Motion obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public Motion __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Name { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(4); } + public SCHALE.Common.FlatData.Position? Positions(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Position?)(new SCHALE.Common.FlatData.Position()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int PositionsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateMotion(FlatBufferBuilder builder, + StringOffset NameOffset = default(StringOffset), + VectorOffset PositionsOffset = default(VectorOffset)) { + builder.StartTable(2); + Motion.AddPositions(builder, PositionsOffset); + Motion.AddName(builder, NameOffset); + return Motion.EndMotion(builder); + } + + public static void StartMotion(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(0, nameOffset.Value, 0); } + public static void AddPositions(FlatBufferBuilder builder, VectorOffset positionsOffset) { builder.AddOffset(1, positionsOffset.Value, 0); } + public static VectorOffset CreatePositionsVector(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 CreatePositionsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePositionsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePositionsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPositionsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndMotion(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MotionVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Name*/, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*Positions*/, SCHALE.Common.FlatData.PositionVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MoveEnd.cs b/SCHALE.Common/FlatData/MoveEnd.cs new file mode 100644 index 0000000..66007b9 --- /dev/null +++ b/SCHALE.Common/FlatData/MoveEnd.cs @@ -0,0 +1,60 @@ +// +// 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 MoveEnd : 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 void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MoveEnd __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, + 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); + } + + 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) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MoveEndTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyTable(tablePos, 4 /*Normal*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTable(tablePos, 6 /*Stand*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTable(tablePos, 8 /*Kneel*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs new file mode 100644 index 0000000..983d8bf --- /dev/null +++ b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs @@ -0,0 +1,70 @@ +// +// 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 MultiFloorRaidRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MultiFloorRaidRewardExcel GetRootAsMultiFloorRaidRewardExcel(ByteBuffer _bb) { return GetRootAsMultiFloorRaidRewardExcel(_bb, new MultiFloorRaidRewardExcel()); } + public static MultiFloorRaidRewardExcel GetRootAsMultiFloorRaidRewardExcel(ByteBuffer _bb, MultiFloorRaidRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MultiFloorRaidRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long RewardGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearStageRewardProb { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearStageRewardAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateMultiFloorRaidRewardExcel(FlatBufferBuilder builder, + long RewardGroupId = 0, + long ClearStageRewardProb = 0, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ClearStageRewardParcelUniqueID = 0, + long ClearStageRewardAmount = 0) { + builder.StartTable(5); + MultiFloorRaidRewardExcel.AddClearStageRewardAmount(builder, ClearStageRewardAmount); + MultiFloorRaidRewardExcel.AddClearStageRewardParcelUniqueID(builder, ClearStageRewardParcelUniqueID); + MultiFloorRaidRewardExcel.AddClearStageRewardProb(builder, ClearStageRewardProb); + MultiFloorRaidRewardExcel.AddRewardGroupId(builder, RewardGroupId); + MultiFloorRaidRewardExcel.AddClearStageRewardParcelType(builder, ClearStageRewardParcelType); + return MultiFloorRaidRewardExcel.EndMultiFloorRaidRewardExcel(builder); + } + + public static void StartMultiFloorRaidRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddRewardGroupId(FlatBufferBuilder builder, long rewardGroupId) { builder.AddLong(0, rewardGroupId, 0); } + public static void AddClearStageRewardProb(FlatBufferBuilder builder, long clearStageRewardProb) { builder.AddLong(1, clearStageRewardProb, 0); } + public static void AddClearStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType clearStageRewardParcelType) { builder.AddInt(2, (int)clearStageRewardParcelType, 0); } + public static void AddClearStageRewardParcelUniqueID(FlatBufferBuilder builder, long clearStageRewardParcelUniqueID) { builder.AddLong(3, clearStageRewardParcelUniqueID, 0); } + public static void AddClearStageRewardAmount(FlatBufferBuilder builder, long clearStageRewardAmount) { builder.AddLong(4, clearStageRewardAmount, 0); } + public static Offset EndMultiFloorRaidRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MultiFloorRaidRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ClearStageRewardProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ClearStageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ClearStageRewardParcelUniqueID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ClearStageRewardAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs new file mode 100644 index 0000000..6e28b82 --- /dev/null +++ b/SCHALE.Common/FlatData/MultiFloorRaidSeasonManageExcel.cs @@ -0,0 +1,131 @@ +// +// 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 MultiFloorRaidSeasonManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MultiFloorRaidSeasonManageExcel GetRootAsMultiFloorRaidSeasonManageExcel(ByteBuffer _bb) { return GetRootAsMultiFloorRaidSeasonManageExcel(_bb, new MultiFloorRaidSeasonManageExcel()); } + public static MultiFloorRaidSeasonManageExcel GetRootAsMultiFloorRaidSeasonManageExcel(ByteBuffer _bb, MultiFloorRaidSeasonManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MultiFloorRaidSeasonManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LobbyEnterScenario { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool ShowLobbyBanner { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string SeasonStartDate { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonStartDateBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSeasonStartDateBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSeasonStartDateArray() { return __p.__vector_as_array(10); } + public string SeasonEndDate { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonEndDateBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSeasonEndDateBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSeasonEndDateArray() { return __p.__vector_as_array(12); } + public string SettlementEndDate { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSettlementEndDateBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSettlementEndDateBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSettlementEndDateArray() { return __p.__vector_as_array(14); } + public string OpenRaidBossGroupId { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenRaidBossGroupIdBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetOpenRaidBossGroupIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetOpenRaidBossGroupIdArray() { return __p.__vector_as_array(16); } + public uint EnterScenarioKey { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string LobbyImgPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLobbyImgPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetLobbyImgPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetLobbyImgPathArray() { return __p.__vector_as_array(20); } + public string LevelImgPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLevelImgPathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetLevelImgPathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetLevelImgPathArray() { return __p.__vector_as_array(22); } + + public static Offset CreateMultiFloorRaidSeasonManageExcel(FlatBufferBuilder builder, + long SeasonId = 0, + uint LobbyEnterScenario = 0, + bool ShowLobbyBanner = false, + StringOffset SeasonStartDateOffset = default(StringOffset), + StringOffset SeasonEndDateOffset = default(StringOffset), + StringOffset SettlementEndDateOffset = default(StringOffset), + StringOffset OpenRaidBossGroupIdOffset = default(StringOffset), + uint EnterScenarioKey = 0, + StringOffset LobbyImgPathOffset = default(StringOffset), + StringOffset LevelImgPathOffset = default(StringOffset)) { + builder.StartTable(10); + MultiFloorRaidSeasonManageExcel.AddSeasonId(builder, SeasonId); + MultiFloorRaidSeasonManageExcel.AddLevelImgPath(builder, LevelImgPathOffset); + MultiFloorRaidSeasonManageExcel.AddLobbyImgPath(builder, LobbyImgPathOffset); + MultiFloorRaidSeasonManageExcel.AddEnterScenarioKey(builder, EnterScenarioKey); + MultiFloorRaidSeasonManageExcel.AddOpenRaidBossGroupId(builder, OpenRaidBossGroupIdOffset); + MultiFloorRaidSeasonManageExcel.AddSettlementEndDate(builder, SettlementEndDateOffset); + MultiFloorRaidSeasonManageExcel.AddSeasonEndDate(builder, SeasonEndDateOffset); + MultiFloorRaidSeasonManageExcel.AddSeasonStartDate(builder, SeasonStartDateOffset); + MultiFloorRaidSeasonManageExcel.AddLobbyEnterScenario(builder, LobbyEnterScenario); + MultiFloorRaidSeasonManageExcel.AddShowLobbyBanner(builder, ShowLobbyBanner); + return MultiFloorRaidSeasonManageExcel.EndMultiFloorRaidSeasonManageExcel(builder); + } + + public static void StartMultiFloorRaidSeasonManageExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddLobbyEnterScenario(FlatBufferBuilder builder, uint lobbyEnterScenario) { builder.AddUint(1, lobbyEnterScenario, 0); } + public static void AddShowLobbyBanner(FlatBufferBuilder builder, bool showLobbyBanner) { builder.AddBool(2, showLobbyBanner, false); } + public static void AddSeasonStartDate(FlatBufferBuilder builder, StringOffset seasonStartDateOffset) { builder.AddOffset(3, seasonStartDateOffset.Value, 0); } + public static void AddSeasonEndDate(FlatBufferBuilder builder, StringOffset seasonEndDateOffset) { builder.AddOffset(4, seasonEndDateOffset.Value, 0); } + public static void AddSettlementEndDate(FlatBufferBuilder builder, StringOffset settlementEndDateOffset) { builder.AddOffset(5, settlementEndDateOffset.Value, 0); } + public static void AddOpenRaidBossGroupId(FlatBufferBuilder builder, StringOffset openRaidBossGroupIdOffset) { builder.AddOffset(6, openRaidBossGroupIdOffset.Value, 0); } + public static void AddEnterScenarioKey(FlatBufferBuilder builder, uint enterScenarioKey) { builder.AddUint(7, enterScenarioKey, 0); } + public static void AddLobbyImgPath(FlatBufferBuilder builder, StringOffset lobbyImgPathOffset) { builder.AddOffset(8, lobbyImgPathOffset.Value, 0); } + public static void AddLevelImgPath(FlatBufferBuilder builder, StringOffset levelImgPathOffset) { builder.AddOffset(9, levelImgPathOffset.Value, 0); } + public static Offset EndMultiFloorRaidSeasonManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MultiFloorRaidSeasonManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*LobbyEnterScenario*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ShowLobbyBanner*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*SeasonStartDate*/, false) + && verifier.VerifyString(tablePos, 12 /*SeasonEndDate*/, false) + && verifier.VerifyString(tablePos, 14 /*SettlementEndDate*/, false) + && verifier.VerifyString(tablePos, 16 /*OpenRaidBossGroupId*/, false) + && verifier.VerifyField(tablePos, 18 /*EnterScenarioKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 20 /*LobbyImgPath*/, false) + && verifier.VerifyString(tablePos, 22 /*LevelImgPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs new file mode 100644 index 0000000..84d8727 --- /dev/null +++ b/SCHALE.Common/FlatData/MultiFloorRaidStageExcel.cs @@ -0,0 +1,248 @@ +// +// 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 MultiFloorRaidStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MultiFloorRaidStageExcel GetRootAsMultiFloorRaidStageExcel(ByteBuffer _bb) { return GetRootAsMultiFloorRaidStageExcel(_bb, new MultiFloorRaidStageExcel()); } + public static MultiFloorRaidStageExcel GetRootAsMultiFloorRaidStageExcel(ByteBuffer _bb, MultiFloorRaidStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MultiFloorRaidStageExcel __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 SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + public string BossGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBossGroupIdBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetBossGroupIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetBossGroupIdArray() { return __p.__vector_as_array(8); } + public int AssistSlot { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StageOpenCondition { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool FloorListSection { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long FloorListSectionOpenCondition { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint FloorListSectionLabel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int Difficulty { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool UseBossIndex { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseBossAIPhaseSync { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string FloorListImgPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFloorListImgPathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetFloorListImgPathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetFloorListImgPathArray() { return __p.__vector_as_array(26); } + public string FloorImgPath { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFloorImgPathBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetFloorImgPathBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetFloorImgPathArray() { return __p.__vector_as_array(28); } + public long RaidCharacterId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BossCharacterId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BossCharacterIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBossCharacterIdBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetBossCharacterIdBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(32); } + public long StatChangeId(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatChangeIdLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatChangeIdBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetStatChangeIdBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetStatChangeIdArray() { return __p.__vector_as_array(34); } + public long BattleDuration { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecommendLevel { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardGroupId { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BattleReadyTimelinePath(int j) { int o = __p.__offset(44); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int BattleReadyTimelinePathLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } + public int BattleReadyTimelinePhaseStart(int j) { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseStartLength { get { int o = __p.__offset(46); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_span(46, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public int[] GetBattleReadyTimelinePhaseStartArray() { return __p.__vector_as_array(46); } + public int BattleReadyTimelinePhaseEnd(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseEndLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_span(48, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public int[] GetBattleReadyTimelinePhaseEndArray() { return __p.__vector_as_array(48); } + public string VictoryTimelinePath { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(50); } + public bool ShowSkillCard { get { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateMultiFloorRaidStageExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base, + StringOffset BossGroupIdOffset = default(StringOffset), + int AssistSlot = 0, + long StageOpenCondition = 0, + bool FloorListSection = false, + long FloorListSectionOpenCondition = 0, + uint FloorListSectionLabel = 0, + int Difficulty = 0, + bool UseBossIndex = false, + bool UseBossAIPhaseSync = false, + StringOffset FloorListImgPathOffset = default(StringOffset), + StringOffset FloorImgPathOffset = default(StringOffset), + long RaidCharacterId = 0, + VectorOffset BossCharacterIdOffset = default(VectorOffset), + VectorOffset StatChangeIdOffset = default(VectorOffset), + long BattleDuration = 0, + long GroundId = 0, + long RecommendLevel = 0, + long RewardGroupId = 0, + VectorOffset BattleReadyTimelinePathOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseStartOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseEndOffset = default(VectorOffset), + StringOffset VictoryTimelinePathOffset = default(StringOffset), + bool ShowSkillCard = false) { + builder.StartTable(25); + MultiFloorRaidStageExcel.AddRewardGroupId(builder, RewardGroupId); + MultiFloorRaidStageExcel.AddRecommendLevel(builder, RecommendLevel); + MultiFloorRaidStageExcel.AddGroundId(builder, GroundId); + MultiFloorRaidStageExcel.AddBattleDuration(builder, BattleDuration); + MultiFloorRaidStageExcel.AddRaidCharacterId(builder, RaidCharacterId); + MultiFloorRaidStageExcel.AddFloorListSectionOpenCondition(builder, FloorListSectionOpenCondition); + MultiFloorRaidStageExcel.AddStageOpenCondition(builder, StageOpenCondition); + MultiFloorRaidStageExcel.AddId(builder, Id); + MultiFloorRaidStageExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); + MultiFloorRaidStageExcel.AddBattleReadyTimelinePhaseEnd(builder, BattleReadyTimelinePhaseEndOffset); + MultiFloorRaidStageExcel.AddBattleReadyTimelinePhaseStart(builder, BattleReadyTimelinePhaseStartOffset); + MultiFloorRaidStageExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); + MultiFloorRaidStageExcel.AddStatChangeId(builder, StatChangeIdOffset); + MultiFloorRaidStageExcel.AddBossCharacterId(builder, BossCharacterIdOffset); + MultiFloorRaidStageExcel.AddFloorImgPath(builder, FloorImgPathOffset); + MultiFloorRaidStageExcel.AddFloorListImgPath(builder, FloorListImgPathOffset); + MultiFloorRaidStageExcel.AddDifficulty(builder, Difficulty); + MultiFloorRaidStageExcel.AddFloorListSectionLabel(builder, FloorListSectionLabel); + MultiFloorRaidStageExcel.AddAssistSlot(builder, AssistSlot); + MultiFloorRaidStageExcel.AddBossGroupId(builder, BossGroupIdOffset); + MultiFloorRaidStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + MultiFloorRaidStageExcel.AddShowSkillCard(builder, ShowSkillCard); + MultiFloorRaidStageExcel.AddUseBossAIPhaseSync(builder, UseBossAIPhaseSync); + MultiFloorRaidStageExcel.AddUseBossIndex(builder, UseBossIndex); + MultiFloorRaidStageExcel.AddFloorListSection(builder, FloorListSection); + return MultiFloorRaidStageExcel.EndMultiFloorRaidStageExcel(builder); + } + + public static void StartMultiFloorRaidStageExcel(FlatBufferBuilder builder) { builder.StartTable(25); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(1, (int)echelonExtensionType, 0); } + public static void AddBossGroupId(FlatBufferBuilder builder, StringOffset bossGroupIdOffset) { builder.AddOffset(2, bossGroupIdOffset.Value, 0); } + public static void AddAssistSlot(FlatBufferBuilder builder, int assistSlot) { builder.AddInt(3, assistSlot, 0); } + public static void AddStageOpenCondition(FlatBufferBuilder builder, long stageOpenCondition) { builder.AddLong(4, stageOpenCondition, 0); } + public static void AddFloorListSection(FlatBufferBuilder builder, bool floorListSection) { builder.AddBool(5, floorListSection, false); } + public static void AddFloorListSectionOpenCondition(FlatBufferBuilder builder, long floorListSectionOpenCondition) { builder.AddLong(6, floorListSectionOpenCondition, 0); } + public static void AddFloorListSectionLabel(FlatBufferBuilder builder, uint floorListSectionLabel) { builder.AddUint(7, floorListSectionLabel, 0); } + public static void AddDifficulty(FlatBufferBuilder builder, int difficulty) { builder.AddInt(8, difficulty, 0); } + public static void AddUseBossIndex(FlatBufferBuilder builder, bool useBossIndex) { builder.AddBool(9, useBossIndex, false); } + public static void AddUseBossAIPhaseSync(FlatBufferBuilder builder, bool useBossAIPhaseSync) { builder.AddBool(10, useBossAIPhaseSync, false); } + public static void AddFloorListImgPath(FlatBufferBuilder builder, StringOffset floorListImgPathOffset) { builder.AddOffset(11, floorListImgPathOffset.Value, 0); } + public static void AddFloorImgPath(FlatBufferBuilder builder, StringOffset floorImgPathOffset) { builder.AddOffset(12, floorImgPathOffset.Value, 0); } + public static void AddRaidCharacterId(FlatBufferBuilder builder, long raidCharacterId) { builder.AddLong(13, raidCharacterId, 0); } + public static void AddBossCharacterId(FlatBufferBuilder builder, VectorOffset bossCharacterIdOffset) { builder.AddOffset(14, bossCharacterIdOffset.Value, 0); } + public static VectorOffset CreateBossCharacterIdVector(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 CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBossCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStatChangeId(FlatBufferBuilder builder, VectorOffset statChangeIdOffset) { builder.AddOffset(15, statChangeIdOffset.Value, 0); } + public static VectorOffset CreateStatChangeIdVector(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 CreateStatChangeIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatChangeIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatChangeIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatChangeIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(16, battleDuration, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(17, groundId, 0); } + public static void AddRecommendLevel(FlatBufferBuilder builder, long recommendLevel) { builder.AddLong(18, recommendLevel, 0); } + public static void AddRewardGroupId(FlatBufferBuilder builder, long rewardGroupId) { builder.AddLong(19, rewardGroupId, 0); } + public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePathOffset) { builder.AddOffset(20, battleReadyTimelinePathOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseStart(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseStartOffset) { builder.AddOffset(21, battleReadyTimelinePhaseStartOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVector(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 CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseEnd(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseEndOffset) { builder.AddOffset(22, battleReadyTimelinePhaseEndOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVector(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 CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(23, victoryTimelinePathOffset.Value, 0); } + public static void AddShowSkillCard(FlatBufferBuilder builder, bool showSkillCard) { builder.AddBool(24, showSkillCard, false); } + public static Offset EndMultiFloorRaidStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MultiFloorRaidStageExcelVerify +{ + 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 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*BossGroupId*/, false) + && verifier.VerifyField(tablePos, 10 /*AssistSlot*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*StageOpenCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*FloorListSection*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*FloorListSectionOpenCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*FloorListSectionLabel*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*Difficulty*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*UseBossIndex*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*UseBossAIPhaseSync*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 26 /*FloorListImgPath*/, false) + && verifier.VerifyString(tablePos, 28 /*FloorImgPath*/, false) + && verifier.VerifyField(tablePos, 30 /*RaidCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*BossCharacterId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*StatChangeId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 36 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*RecommendLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*RewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 44 /*BattleReadyTimelinePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 46 /*BattleReadyTimelinePhaseStart*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 48 /*BattleReadyTimelinePhaseEnd*/, 4 /*int*/, false) + && verifier.VerifyString(tablePos, 50 /*VictoryTimelinePath*/, false) + && verifier.VerifyField(tablePos, 52 /*ShowSkillCard*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs new file mode 100644 index 0000000..913f760 --- /dev/null +++ b/SCHALE.Common/FlatData/MultiFloorRaidStatChangeExcel.cs @@ -0,0 +1,118 @@ +// +// 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 MultiFloorRaidStatChangeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static MultiFloorRaidStatChangeExcel GetRootAsMultiFloorRaidStatChangeExcel(ByteBuffer _bb) { return GetRootAsMultiFloorRaidStatChangeExcel(_bb, new MultiFloorRaidStatChangeExcel()); } + public static MultiFloorRaidStatChangeExcel GetRootAsMultiFloorRaidStatChangeExcel(ByteBuffer _bb, MultiFloorRaidStatChangeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public MultiFloorRaidStatChangeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StatChangeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StatType StatType_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StatType)0; } + public int StatType_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatType_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetStatType_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.StatType[] GetStatType_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.StatType[] a = new SCHALE.Common.FlatData.StatType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(p + i * 4); } return a; } + public long StatAdd(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatAddLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatAddBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetStatAddBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetStatAddArray() { return __p.__vector_as_array(8); } + public long StatMultiply(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatMultiplyLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatMultiplyBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetStatMultiplyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetStatMultiplyArray() { return __p.__vector_as_array(10); } + public long ApplyCharacterId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ApplyCharacterIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetApplyCharacterIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetApplyCharacterIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetApplyCharacterIdArray() { return __p.__vector_as_array(12); } + + public static Offset CreateMultiFloorRaidStatChangeExcel(FlatBufferBuilder builder, + long StatChangeId = 0, + VectorOffset StatType_Offset = default(VectorOffset), + VectorOffset StatAddOffset = default(VectorOffset), + VectorOffset StatMultiplyOffset = default(VectorOffset), + VectorOffset ApplyCharacterIdOffset = default(VectorOffset)) { + builder.StartTable(5); + MultiFloorRaidStatChangeExcel.AddStatChangeId(builder, StatChangeId); + MultiFloorRaidStatChangeExcel.AddApplyCharacterId(builder, ApplyCharacterIdOffset); + MultiFloorRaidStatChangeExcel.AddStatMultiply(builder, StatMultiplyOffset); + MultiFloorRaidStatChangeExcel.AddStatAdd(builder, StatAddOffset); + MultiFloorRaidStatChangeExcel.AddStatType_(builder, StatType_Offset); + return MultiFloorRaidStatChangeExcel.EndMultiFloorRaidStatChangeExcel(builder); + } + + public static void StartMultiFloorRaidStatChangeExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddStatChangeId(FlatBufferBuilder builder, long statChangeId) { builder.AddLong(0, statChangeId, 0); } + public static void AddStatType_(FlatBufferBuilder builder, VectorOffset statType_Offset) { builder.AddOffset(1, statType_Offset.Value, 0); } + public static VectorOffset CreateStatType_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] 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 CreateStatType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStatAdd(FlatBufferBuilder builder, VectorOffset statAddOffset) { builder.AddOffset(2, statAddOffset.Value, 0); } + public static VectorOffset CreateStatAddVector(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 CreateStatAddVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatAddVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatAddVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatAddVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStatMultiply(FlatBufferBuilder builder, VectorOffset statMultiplyOffset) { builder.AddOffset(3, statMultiplyOffset.Value, 0); } + public static VectorOffset CreateStatMultiplyVector(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 CreateStatMultiplyVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatMultiplyVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatMultiplyVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatMultiplyVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddApplyCharacterId(FlatBufferBuilder builder, VectorOffset applyCharacterIdOffset) { builder.AddOffset(4, applyCharacterIdOffset.Value, 0); } + public static VectorOffset CreateApplyCharacterIdVector(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 CreateApplyCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateApplyCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateApplyCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartApplyCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndMultiFloorRaidStatChangeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class MultiFloorRaidStatChangeExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StatChangeId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*StatType_*/, 4 /*SCHALE.Common.FlatData.StatType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*StatAdd*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*StatMultiply*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ApplyCharacterId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/MultipleConditionCheckType.cs b/SCHALE.Common/FlatData/MultipleConditionCheckType.cs new file mode 100644 index 0000000..93d0f94 --- /dev/null +++ b/SCHALE.Common/FlatData/MultipleConditionCheckType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum MultipleConditionCheckType : int +{ + And = 0, + Or = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/Nation.cs b/SCHALE.Common/FlatData/Nation.cs new file mode 100644 index 0000000..7308189 --- /dev/null +++ b/SCHALE.Common/FlatData/Nation.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Nation : int +{ + None = 0, + All = 1, + JP = 2, + GL = 3, + KR = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs b/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs new file mode 100644 index 0000000..99c5d2f --- /dev/null +++ b/SCHALE.Common/FlatData/NormalSkillTemplateExcel.cs @@ -0,0 +1,65 @@ +// +// 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 NormalSkillTemplateExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static NormalSkillTemplateExcel GetRootAsNormalSkillTemplateExcel(ByteBuffer _bb) { return GetRootAsNormalSkillTemplateExcel(_bb, new NormalSkillTemplateExcel()); } + public static NormalSkillTemplateExcel GetRootAsNormalSkillTemplateExcel(ByteBuffer _bb, NormalSkillTemplateExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public NormalSkillTemplateExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Index { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float FirstCoolTime { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float CoolTime { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public bool MultiAni { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateNormalSkillTemplateExcel(FlatBufferBuilder builder, + long Index = 0, + float FirstCoolTime = 0.0f, + float CoolTime = 0.0f, + bool MultiAni = false) { + builder.StartTable(4); + NormalSkillTemplateExcel.AddIndex(builder, Index); + NormalSkillTemplateExcel.AddCoolTime(builder, CoolTime); + NormalSkillTemplateExcel.AddFirstCoolTime(builder, FirstCoolTime); + NormalSkillTemplateExcel.AddMultiAni(builder, MultiAni); + return NormalSkillTemplateExcel.EndNormalSkillTemplateExcel(builder); + } + + public static void StartNormalSkillTemplateExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddIndex(FlatBufferBuilder builder, long index) { builder.AddLong(0, index, 0); } + public static void AddFirstCoolTime(FlatBufferBuilder builder, float firstCoolTime) { builder.AddFloat(1, firstCoolTime, 0.0f); } + public static void AddCoolTime(FlatBufferBuilder builder, float coolTime) { builder.AddFloat(2, coolTime, 0.0f); } + public static void AddMultiAni(FlatBufferBuilder builder, bool multiAni) { builder.AddBool(3, multiAni, false); } + public static Offset EndNormalSkillTemplateExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class NormalSkillTemplateExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Index*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FirstCoolTime*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CoolTime*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*MultiAni*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs b/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs new file mode 100644 index 0000000..8a0836e --- /dev/null +++ b/SCHALE.Common/FlatData/NormalSkillTemplateExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 NormalSkillTemplateExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static NormalSkillTemplateExcelTable GetRootAsNormalSkillTemplateExcelTable(ByteBuffer _bb) { return GetRootAsNormalSkillTemplateExcelTable(_bb, new NormalSkillTemplateExcelTable()); } + public static NormalSkillTemplateExcelTable GetRootAsNormalSkillTemplateExcelTable(ByteBuffer _bb, NormalSkillTemplateExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public NormalSkillTemplateExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.NormalSkillTemplateExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.NormalSkillTemplateExcel?)(new SCHALE.Common.FlatData.NormalSkillTemplateExcel()).__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 CreateNormalSkillTemplateExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + NormalSkillTemplateExcelTable.AddDataList(builder, DataListOffset); + return NormalSkillTemplateExcelTable.EndNormalSkillTemplateExcelTable(builder); + } + + public static void StartNormalSkillTemplateExcelTable(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 EndNormalSkillTemplateExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class NormalSkillTemplateExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.NormalSkillTemplateExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/NoticeType.cs b/SCHALE.Common/FlatData/NoticeType.cs new file mode 100644 index 0000000..49d6003 --- /dev/null +++ b/SCHALE.Common/FlatData/NoticeType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum NoticeType : int +{ + None = 0, + Notice = 1, + Event = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/NotificationEventReddot.cs b/SCHALE.Common/FlatData/NotificationEventReddot.cs new file mode 100644 index 0000000..9b82908 --- /dev/null +++ b/SCHALE.Common/FlatData/NotificationEventReddot.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum NotificationEventReddot : int +{ + StagePointReward = 0, + MissionComplete = 1, + MiniGameMissionComplete = 2, + WorldRaidReward = 3, + ConquestCalculateReward = 4, + DiceRaceLapReward = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/ObstacleClass.cs b/SCHALE.Common/FlatData/ObstacleClass.cs new file mode 100644 index 0000000..3324299 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleClass.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ObstacleClass : int +{ + MAIN = 0, + SUB = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ObstacleCoverType.cs b/SCHALE.Common/FlatData/ObstacleCoverType.cs new file mode 100644 index 0000000..ce23d88 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleCoverType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ObstacleCoverType : int +{ + None = 0, + Cover = 1, + Shelter = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ObstacleDestroyType.cs b/SCHALE.Common/FlatData/ObstacleDestroyType.cs new file mode 100644 index 0000000..a605c34 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleDestroyType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ObstacleDestroyType : int +{ + Remain = 0, + Remove = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ObstacleExcel.cs b/SCHALE.Common/FlatData/ObstacleExcel.cs new file mode 100644 index 0000000..76fa6df --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleExcel.cs @@ -0,0 +1,203 @@ +// +// 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 ObstacleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleExcel GetRootAsObstacleExcel(ByteBuffer _bb) { return GetRootAsObstacleExcel(_bb, new ObstacleExcel()); } + public static ObstacleExcel GetRootAsObstacleExcel(ByteBuffer _bb, ObstacleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Index { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PrefabName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(6); } + public bool JumpAble { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float SubOffset(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int SubOffsetLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSubOffsetBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetSubOffsetBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public float[] GetSubOffsetArray() { return __p.__vector_as_array(10); } + public float X { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long Hp { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHp { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int BlockRate { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EvasionRate { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ObstacleDestroyType DestroyType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ObstacleDestroyType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ObstacleDestroyType.Remain; } } + public float Point1Offeset(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int Point1OffesetLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPoint1OffesetBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetPoint1OffesetBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public float[] GetPoint1OffesetArray() { return __p.__vector_as_array(26); } + public float EnemyPoint1Osset(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int EnemyPoint1OssetLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnemyPoint1OssetBytes() { return __p.__vector_as_span(28, 4); } +#else + public ArraySegment? GetEnemyPoint1OssetBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public float[] GetEnemyPoint1OssetArray() { return __p.__vector_as_array(28); } + public float Point2Offeset(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int Point2OffesetLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPoint2OffesetBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetPoint2OffesetBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public float[] GetPoint2OffesetArray() { return __p.__vector_as_array(30); } + public float EnemyPoint2Osset(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int EnemyPoint2OssetLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnemyPoint2OssetBytes() { return __p.__vector_as_span(32, 4); } +#else + public ArraySegment? GetEnemyPoint2OssetBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public float[] GetEnemyPoint2OssetArray() { return __p.__vector_as_array(32); } + public long SubObstacleID(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SubObstacleIDLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSubObstacleIDBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetSubObstacleIDBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetSubObstacleIDArray() { return __p.__vector_as_array(34); } + + public static Offset CreateObstacleExcel(FlatBufferBuilder builder, + long Index = 0, + StringOffset PrefabNameOffset = default(StringOffset), + bool JumpAble = false, + VectorOffset SubOffsetOffset = default(VectorOffset), + float X = 0.0f, + float Z = 0.0f, + long Hp = 0, + long MaxHp = 0, + int BlockRate = 0, + int EvasionRate = 0, + SCHALE.Common.FlatData.ObstacleDestroyType DestroyType = SCHALE.Common.FlatData.ObstacleDestroyType.Remain, + VectorOffset Point1OffesetOffset = default(VectorOffset), + VectorOffset EnemyPoint1OssetOffset = default(VectorOffset), + VectorOffset Point2OffesetOffset = default(VectorOffset), + VectorOffset EnemyPoint2OssetOffset = default(VectorOffset), + VectorOffset SubObstacleIDOffset = default(VectorOffset)) { + builder.StartTable(16); + ObstacleExcel.AddMaxHp(builder, MaxHp); + ObstacleExcel.AddHp(builder, Hp); + ObstacleExcel.AddIndex(builder, Index); + ObstacleExcel.AddSubObstacleID(builder, SubObstacleIDOffset); + ObstacleExcel.AddEnemyPoint2Osset(builder, EnemyPoint2OssetOffset); + ObstacleExcel.AddPoint2Offeset(builder, Point2OffesetOffset); + ObstacleExcel.AddEnemyPoint1Osset(builder, EnemyPoint1OssetOffset); + ObstacleExcel.AddPoint1Offeset(builder, Point1OffesetOffset); + ObstacleExcel.AddDestroyType(builder, DestroyType); + ObstacleExcel.AddEvasionRate(builder, EvasionRate); + ObstacleExcel.AddBlockRate(builder, BlockRate); + ObstacleExcel.AddZ(builder, Z); + ObstacleExcel.AddX(builder, X); + ObstacleExcel.AddSubOffset(builder, SubOffsetOffset); + ObstacleExcel.AddPrefabName(builder, PrefabNameOffset); + ObstacleExcel.AddJumpAble(builder, JumpAble); + return ObstacleExcel.EndObstacleExcel(builder); + } + + public static void StartObstacleExcel(FlatBufferBuilder builder) { builder.StartTable(16); } + public static void AddIndex(FlatBufferBuilder builder, long index) { builder.AddLong(0, index, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(1, prefabNameOffset.Value, 0); } + public static void AddJumpAble(FlatBufferBuilder builder, bool jumpAble) { builder.AddBool(2, jumpAble, false); } + public static void AddSubOffset(FlatBufferBuilder builder, VectorOffset subOffsetOffset) { builder.AddOffset(3, subOffsetOffset.Value, 0); } + public static VectorOffset CreateSubOffsetVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateSubOffsetVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSubOffsetVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSubOffsetVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSubOffsetVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(4, x, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(5, z, 0.0f); } + public static void AddHp(FlatBufferBuilder builder, long hp) { builder.AddLong(6, hp, 0); } + public static void AddMaxHp(FlatBufferBuilder builder, long maxHp) { builder.AddLong(7, maxHp, 0); } + public static void AddBlockRate(FlatBufferBuilder builder, int blockRate) { builder.AddInt(8, blockRate, 0); } + public static void AddEvasionRate(FlatBufferBuilder builder, int evasionRate) { builder.AddInt(9, evasionRate, 0); } + public static void AddDestroyType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ObstacleDestroyType destroyType) { builder.AddInt(10, (int)destroyType, 0); } + public static void AddPoint1Offeset(FlatBufferBuilder builder, VectorOffset point1OffesetOffset) { builder.AddOffset(11, point1OffesetOffset.Value, 0); } + public static VectorOffset CreatePoint1OffesetVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreatePoint1OffesetVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePoint1OffesetVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePoint1OffesetVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPoint1OffesetVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPoint1Osset(FlatBufferBuilder builder, VectorOffset enemyPoint1OssetOffset) { builder.AddOffset(12, enemyPoint1OssetOffset.Value, 0); } + public static VectorOffset CreateEnemyPoint1OssetVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint1OssetVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint1OssetVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint1OssetVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPoint1OssetVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPoint2Offeset(FlatBufferBuilder builder, VectorOffset point2OffesetOffset) { builder.AddOffset(13, point2OffesetOffset.Value, 0); } + public static VectorOffset CreatePoint2OffesetVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreatePoint2OffesetVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePoint2OffesetVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePoint2OffesetVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPoint2OffesetVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPoint2Osset(FlatBufferBuilder builder, VectorOffset enemyPoint2OssetOffset) { builder.AddOffset(14, enemyPoint2OssetOffset.Value, 0); } + public static VectorOffset CreateEnemyPoint2OssetVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint2OssetVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint2OssetVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPoint2OssetVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPoint2OssetVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSubObstacleID(FlatBufferBuilder builder, VectorOffset subObstacleIDOffset) { builder.AddOffset(15, subObstacleIDOffset.Value, 0); } + public static VectorOffset CreateSubObstacleIDVector(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 CreateSubObstacleIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSubObstacleIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSubObstacleIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSubObstacleIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndObstacleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Index*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 8 /*JumpAble*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*SubOffset*/, 4 /*float*/, false) + && verifier.VerifyField(tablePos, 12 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Hp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*MaxHp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*BlockRate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*EvasionRate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*DestroyType*/, 4 /*SCHALE.Common.FlatData.ObstacleDestroyType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*Point1Offeset*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*EnemyPoint1Osset*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*Point2Offeset*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*EnemyPoint2Osset*/, 4 /*float*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*SubObstacleID*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ObstacleExcelTable.cs b/SCHALE.Common/FlatData/ObstacleExcelTable.cs new file mode 100644 index 0000000..8f2060d --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ObstacleExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleExcelTable GetRootAsObstacleExcelTable(ByteBuffer _bb) { return GetRootAsObstacleExcelTable(_bb, new ObstacleExcelTable()); } + public static ObstacleExcelTable GetRootAsObstacleExcelTable(ByteBuffer _bb, ObstacleExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ObstacleExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ObstacleExcel?)(new SCHALE.Common.FlatData.ObstacleExcel()).__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 CreateObstacleExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ObstacleExcelTable.AddDataList(builder, DataListOffset); + return ObstacleExcelTable.EndObstacleExcelTable(builder); + } + + public static void StartObstacleExcelTable(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 EndObstacleExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ObstacleExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs new file mode 100644 index 0000000..1dcf462 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcel.cs @@ -0,0 +1,65 @@ +// +// 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 ObstacleFireLineCheckExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleFireLineCheckExcel GetRootAsObstacleFireLineCheckExcel(ByteBuffer _bb) { return GetRootAsObstacleFireLineCheckExcel(_bb, new ObstacleFireLineCheckExcel()); } + public static ObstacleFireLineCheckExcel GetRootAsObstacleFireLineCheckExcel(ByteBuffer _bb, ObstacleFireLineCheckExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleFireLineCheckExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public bool MyObstacleFireLineCheck { get { int o = __p.__offset(4); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool AllyObstacleFireLineCheck { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool EnemyObstacleFireLineCheck { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool EmptyObstacleFireLineCheck { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateObstacleFireLineCheckExcel(FlatBufferBuilder builder, + bool MyObstacleFireLineCheck = false, + bool AllyObstacleFireLineCheck = false, + bool EnemyObstacleFireLineCheck = false, + bool EmptyObstacleFireLineCheck = false) { + builder.StartTable(4); + ObstacleFireLineCheckExcel.AddEmptyObstacleFireLineCheck(builder, EmptyObstacleFireLineCheck); + ObstacleFireLineCheckExcel.AddEnemyObstacleFireLineCheck(builder, EnemyObstacleFireLineCheck); + ObstacleFireLineCheckExcel.AddAllyObstacleFireLineCheck(builder, AllyObstacleFireLineCheck); + ObstacleFireLineCheckExcel.AddMyObstacleFireLineCheck(builder, MyObstacleFireLineCheck); + return ObstacleFireLineCheckExcel.EndObstacleFireLineCheckExcel(builder); + } + + public static void StartObstacleFireLineCheckExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddMyObstacleFireLineCheck(FlatBufferBuilder builder, bool myObstacleFireLineCheck) { builder.AddBool(0, myObstacleFireLineCheck, false); } + public static void AddAllyObstacleFireLineCheck(FlatBufferBuilder builder, bool allyObstacleFireLineCheck) { builder.AddBool(1, allyObstacleFireLineCheck, false); } + public static void AddEnemyObstacleFireLineCheck(FlatBufferBuilder builder, bool enemyObstacleFireLineCheck) { builder.AddBool(2, enemyObstacleFireLineCheck, false); } + public static void AddEmptyObstacleFireLineCheck(FlatBufferBuilder builder, bool emptyObstacleFireLineCheck) { builder.AddBool(3, emptyObstacleFireLineCheck, false); } + public static Offset EndObstacleFireLineCheckExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleFireLineCheckExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MyObstacleFireLineCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 6 /*AllyObstacleFireLineCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*EnemyObstacleFireLineCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*EmptyObstacleFireLineCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs new file mode 100644 index 0000000..85d3edb --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleFireLineCheckExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ObstacleFireLineCheckExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleFireLineCheckExcelTable GetRootAsObstacleFireLineCheckExcelTable(ByteBuffer _bb) { return GetRootAsObstacleFireLineCheckExcelTable(_bb, new ObstacleFireLineCheckExcelTable()); } + public static ObstacleFireLineCheckExcelTable GetRootAsObstacleFireLineCheckExcelTable(ByteBuffer _bb, ObstacleFireLineCheckExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleFireLineCheckExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ObstacleFireLineCheckExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ObstacleFireLineCheckExcel?)(new SCHALE.Common.FlatData.ObstacleFireLineCheckExcel()).__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 CreateObstacleFireLineCheckExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ObstacleFireLineCheckExcelTable.AddDataList(builder, DataListOffset); + return ObstacleFireLineCheckExcelTable.EndObstacleFireLineCheckExcelTable(builder); + } + + public static void StartObstacleFireLineCheckExcelTable(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 EndObstacleFireLineCheckExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleFireLineCheckExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ObstacleFireLineCheckExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ObstacleHeightType.cs b/SCHALE.Common/FlatData/ObstacleHeightType.cs new file mode 100644 index 0000000..aea2c42 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleHeightType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ObstacleHeightType : int +{ + Low = 0, + Middle = 1, + High = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ObstacleStatExcel.cs b/SCHALE.Common/FlatData/ObstacleStatExcel.cs new file mode 100644 index 0000000..f3d0f32 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleStatExcel.cs @@ -0,0 +1,91 @@ +// +// 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 ObstacleStatExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleStatExcel GetRootAsObstacleStatExcel(ByteBuffer _bb) { return GetRootAsObstacleStatExcel(_bb, new ObstacleStatExcel()); } + public static ObstacleStatExcel GetRootAsObstacleStatExcel(ByteBuffer _bb, ObstacleStatExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleStatExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint StringID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public long MaxHP1 { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaxHP100 { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BlockRate { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Dodge { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CanNotStandRange { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public float HighlightFloaterHeight { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreateObstacleStatExcel(FlatBufferBuilder builder, + uint StringID = 0, + StringOffset NameOffset = default(StringOffset), + long MaxHP1 = 0, + long MaxHP100 = 0, + long BlockRate = 0, + long Dodge = 0, + long CanNotStandRange = 0, + float HighlightFloaterHeight = 0.0f) { + builder.StartTable(8); + ObstacleStatExcel.AddCanNotStandRange(builder, CanNotStandRange); + ObstacleStatExcel.AddDodge(builder, Dodge); + ObstacleStatExcel.AddBlockRate(builder, BlockRate); + ObstacleStatExcel.AddMaxHP100(builder, MaxHP100); + ObstacleStatExcel.AddMaxHP1(builder, MaxHP1); + ObstacleStatExcel.AddHighlightFloaterHeight(builder, HighlightFloaterHeight); + ObstacleStatExcel.AddName(builder, NameOffset); + ObstacleStatExcel.AddStringID(builder, StringID); + return ObstacleStatExcel.EndObstacleStatExcel(builder); + } + + public static void StartObstacleStatExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddStringID(FlatBufferBuilder builder, uint stringID) { builder.AddUint(0, stringID, 0); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(1, nameOffset.Value, 0); } + public static void AddMaxHP1(FlatBufferBuilder builder, long maxHP1) { builder.AddLong(2, maxHP1, 0); } + public static void AddMaxHP100(FlatBufferBuilder builder, long maxHP100) { builder.AddLong(3, maxHP100, 0); } + public static void AddBlockRate(FlatBufferBuilder builder, long blockRate) { builder.AddLong(4, blockRate, 0); } + public static void AddDodge(FlatBufferBuilder builder, long dodge) { builder.AddLong(5, dodge, 0); } + public static void AddCanNotStandRange(FlatBufferBuilder builder, long canNotStandRange) { builder.AddLong(6, canNotStandRange, 0); } + public static void AddHighlightFloaterHeight(FlatBufferBuilder builder, float highlightFloaterHeight) { builder.AddFloat(7, highlightFloaterHeight, 0.0f); } + public static Offset EndObstacleStatExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleStatExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StringID*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyField(tablePos, 8 /*MaxHP1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*MaxHP100*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*BlockRate*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*Dodge*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*CanNotStandRange*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*HighlightFloaterHeight*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs b/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs new file mode 100644 index 0000000..4df9158 --- /dev/null +++ b/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ObstacleStatExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ObstacleStatExcelTable GetRootAsObstacleStatExcelTable(ByteBuffer _bb) { return GetRootAsObstacleStatExcelTable(_bb, new ObstacleStatExcelTable()); } + public static ObstacleStatExcelTable GetRootAsObstacleStatExcelTable(ByteBuffer _bb, ObstacleStatExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ObstacleStatExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ObstacleStatExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ObstacleStatExcel?)(new SCHALE.Common.FlatData.ObstacleStatExcel()).__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 CreateObstacleStatExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ObstacleStatExcelTable.AddDataList(builder, DataListOffset); + return ObstacleStatExcelTable.EndObstacleStatExcelTable(builder); + } + + public static void StartObstacleStatExcelTable(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 EndObstacleStatExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ObstacleStatExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ObstacleStatExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/OpenCondition.cs b/SCHALE.Common/FlatData/OpenCondition.cs new file mode 100644 index 0000000..c9a2a4d --- /dev/null +++ b/SCHALE.Common/FlatData/OpenCondition.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum OpenCondition : int +{ + Hide = 0, + Lock = 1, + Open = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/OpenConditionContent.cs b/SCHALE.Common/FlatData/OpenConditionContent.cs new file mode 100644 index 0000000..fb19a49 --- /dev/null +++ b/SCHALE.Common/FlatData/OpenConditionContent.cs @@ -0,0 +1,67 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum OpenConditionContent : int +{ + Shop = 0, + Gacha = 1, + LobbyIllust = 2, + Raid = 3, + Cafe = 4, + Unit_Growth_Skill = 5, + Unit_Growth_LevelUp = 6, + Unit_Growth_Transcendence = 7, + Arena = 8, + Academy = 9, + Equip = 10, + Item = 11, + Favor = 12, + Prologue = 13, + Mission = 14, + WeekDungeon_Chase = 15, + __Deprecated_WeekDungeon_FindGift = 16, + __Deprecated_WeekDungeon_Blood = 17, + Story_Sub = 18, + Story_Replay = 19, + WeekDungeon = 20, + None = 21, + Shop_Gem = 22, + Craft = 23, + Student = 24, + GuideMission = 25, + Clan = 26, + Echelon = 27, + Campaign = 28, + EventContent = 29, + Guild = 30, + EventStage_1 = 31, + EventStage_2 = 32, + Talk = 33, + Billing = 34, + Schedule = 35, + Story = 36, + Tactic_Speed = 37, + Cafe_Invite = 38, + EventMiniGame_1 = 39, + SchoolDungeon = 40, + TimeAttackDungeon = 41, + ShiftingCraft = 42, + WorldRaid = 43, + Tactic_Skip = 44, + Mulligan = 45, + EventPermanent = 46, + Main_L_1_2 = 47, + Main_L_1_3 = 48, + Main_L_1_4 = 49, + EliminateRaid = 50, + Cafe_2 = 51, + Cafe_Invite_2 = 52, + MultiFloorRaid = 53, +}; + + +} diff --git a/SCHALE.Common/FlatData/OpenConditionExcel.cs b/SCHALE.Common/FlatData/OpenConditionExcel.cs new file mode 100644 index 0000000..f2a057c --- /dev/null +++ b/SCHALE.Common/FlatData/OpenConditionExcel.cs @@ -0,0 +1,169 @@ +// +// 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 OpenConditionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static OpenConditionExcel GetRootAsOpenConditionExcel(ByteBuffer _bb) { return GetRootAsOpenConditionExcel(_bb, new OpenConditionExcel()); } + public static OpenConditionExcel GetRootAsOpenConditionExcel(ByteBuffer _bb, OpenConditionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public OpenConditionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContentType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } + public string LockUI(int j) { int o = __p.__offset(6); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int LockUILength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public long ShortcutPopupPriority { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ShortcutUIName(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ShortcutUINameLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public int ShortcutParam { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string Scene { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSceneBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSceneBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSceneArray() { return __p.__vector_as_array(14); } + public bool HideWhenLocked { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AccountLevel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioModeId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CampaignStageId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.MultipleConditionCheckType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MultipleConditionCheckType.And; } } + public SCHALE.Common.FlatData.WeekDay OpenDayOfWeek { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.WeekDay)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDay.Sunday; } } + public long OpenHour { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.WeekDay CloseDayOfWeek { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.WeekDay)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDay.Sunday; } } + public long CloseHour { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long OpenedCafeId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CafeIdforCafeRank { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CafeRank { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ContentsOpenShow { get { int o = __p.__offset(40); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string ContentsOpenShortcutUI { get { int o = __p.__offset(42); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetContentsOpenShortcutUIBytes() { return __p.__vector_as_span(42, 1); } +#else + public ArraySegment? GetContentsOpenShortcutUIBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public byte[] GetContentsOpenShortcutUIArray() { return __p.__vector_as_array(42); } + + public static Offset CreateOpenConditionExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.OpenConditionContent OpenConditionContentType = SCHALE.Common.FlatData.OpenConditionContent.Shop, + VectorOffset LockUIOffset = default(VectorOffset), + long ShortcutPopupPriority = 0, + VectorOffset ShortcutUINameOffset = default(VectorOffset), + int ShortcutParam = 0, + StringOffset SceneOffset = default(StringOffset), + bool HideWhenLocked = false, + long AccountLevel = 0, + long ScenarioModeId = 0, + long CampaignStageId = 0, + SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And, + SCHALE.Common.FlatData.WeekDay OpenDayOfWeek = SCHALE.Common.FlatData.WeekDay.Sunday, + long OpenHour = 0, + SCHALE.Common.FlatData.WeekDay CloseDayOfWeek = SCHALE.Common.FlatData.WeekDay.Sunday, + long CloseHour = 0, + long OpenedCafeId = 0, + long CafeIdforCafeRank = 0, + long CafeRank = 0, + bool ContentsOpenShow = false, + StringOffset ContentsOpenShortcutUIOffset = default(StringOffset)) { + builder.StartTable(20); + OpenConditionExcel.AddCafeRank(builder, CafeRank); + OpenConditionExcel.AddCafeIdforCafeRank(builder, CafeIdforCafeRank); + OpenConditionExcel.AddOpenedCafeId(builder, OpenedCafeId); + OpenConditionExcel.AddCloseHour(builder, CloseHour); + OpenConditionExcel.AddOpenHour(builder, OpenHour); + OpenConditionExcel.AddCampaignStageId(builder, CampaignStageId); + OpenConditionExcel.AddScenarioModeId(builder, ScenarioModeId); + OpenConditionExcel.AddAccountLevel(builder, AccountLevel); + OpenConditionExcel.AddShortcutPopupPriority(builder, ShortcutPopupPriority); + OpenConditionExcel.AddContentsOpenShortcutUI(builder, ContentsOpenShortcutUIOffset); + OpenConditionExcel.AddCloseDayOfWeek(builder, CloseDayOfWeek); + OpenConditionExcel.AddOpenDayOfWeek(builder, OpenDayOfWeek); + OpenConditionExcel.AddMultipleConditionCheckType(builder, MultipleConditionCheckType); + OpenConditionExcel.AddScene(builder, SceneOffset); + OpenConditionExcel.AddShortcutParam(builder, ShortcutParam); + OpenConditionExcel.AddShortcutUIName(builder, ShortcutUINameOffset); + OpenConditionExcel.AddLockUI(builder, LockUIOffset); + OpenConditionExcel.AddOpenConditionContentType(builder, OpenConditionContentType); + OpenConditionExcel.AddContentsOpenShow(builder, ContentsOpenShow); + OpenConditionExcel.AddHideWhenLocked(builder, HideWhenLocked); + return OpenConditionExcel.EndOpenConditionExcel(builder); + } + + public static void StartOpenConditionExcel(FlatBufferBuilder builder) { builder.StartTable(20); } + public static void AddOpenConditionContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.OpenConditionContent openConditionContentType) { builder.AddInt(0, (int)openConditionContentType, 0); } + public static void AddLockUI(FlatBufferBuilder builder, VectorOffset lockUIOffset) { builder.AddOffset(1, lockUIOffset.Value, 0); } + public static VectorOffset CreateLockUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLockUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddShortcutPopupPriority(FlatBufferBuilder builder, long shortcutPopupPriority) { builder.AddLong(2, shortcutPopupPriority, 0); } + public static void AddShortcutUIName(FlatBufferBuilder builder, VectorOffset shortcutUINameOffset) { builder.AddOffset(3, shortcutUINameOffset.Value, 0); } + public static VectorOffset CreateShortcutUINameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShortcutUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShortcutUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddShortcutParam(FlatBufferBuilder builder, int shortcutParam) { builder.AddInt(4, shortcutParam, 0); } + public static void AddScene(FlatBufferBuilder builder, StringOffset sceneOffset) { builder.AddOffset(5, sceneOffset.Value, 0); } + public static void AddHideWhenLocked(FlatBufferBuilder builder, bool hideWhenLocked) { builder.AddBool(6, hideWhenLocked, false); } + public static void AddAccountLevel(FlatBufferBuilder builder, long accountLevel) { builder.AddLong(7, accountLevel, 0); } + public static void AddScenarioModeId(FlatBufferBuilder builder, long scenarioModeId) { builder.AddLong(8, scenarioModeId, 0); } + public static void AddCampaignStageId(FlatBufferBuilder builder, long campaignStageId) { builder.AddLong(9, campaignStageId, 0); } + public static void AddMultipleConditionCheckType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MultipleConditionCheckType multipleConditionCheckType) { builder.AddInt(10, (int)multipleConditionCheckType, 0); } + public static void AddOpenDayOfWeek(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDay openDayOfWeek) { builder.AddInt(11, (int)openDayOfWeek, 0); } + public static void AddOpenHour(FlatBufferBuilder builder, long openHour) { builder.AddLong(12, openHour, 0); } + public static void AddCloseDayOfWeek(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDay closeDayOfWeek) { builder.AddInt(13, (int)closeDayOfWeek, 0); } + public static void AddCloseHour(FlatBufferBuilder builder, long closeHour) { builder.AddLong(14, closeHour, 0); } + public static void AddOpenedCafeId(FlatBufferBuilder builder, long openedCafeId) { builder.AddLong(15, openedCafeId, 0); } + public static void AddCafeIdforCafeRank(FlatBufferBuilder builder, long cafeIdforCafeRank) { builder.AddLong(16, cafeIdforCafeRank, 0); } + public static void AddCafeRank(FlatBufferBuilder builder, long cafeRank) { builder.AddLong(17, cafeRank, 0); } + public static void AddContentsOpenShow(FlatBufferBuilder builder, bool contentsOpenShow) { builder.AddBool(18, contentsOpenShow, false); } + public static void AddContentsOpenShortcutUI(FlatBufferBuilder builder, StringOffset contentsOpenShortcutUIOffset) { builder.AddOffset(19, contentsOpenShortcutUIOffset.Value, 0); } + public static Offset EndOpenConditionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class OpenConditionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*OpenConditionContentType*/, 4 /*SCHALE.Common.FlatData.OpenConditionContent*/, 4, false) + && verifier.VerifyVectorOfStrings(tablePos, 6 /*LockUI*/, false) + && verifier.VerifyField(tablePos, 8 /*ShortcutPopupPriority*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*ShortcutUIName*/, false) + && verifier.VerifyField(tablePos, 12 /*ShortcutParam*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 14 /*Scene*/, false) + && verifier.VerifyField(tablePos, 16 /*HideWhenLocked*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*AccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*CampaignStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*MultipleConditionCheckType*/, 4 /*SCHALE.Common.FlatData.MultipleConditionCheckType*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*OpenDayOfWeek*/, 4 /*SCHALE.Common.FlatData.WeekDay*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*OpenHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*CloseDayOfWeek*/, 4 /*SCHALE.Common.FlatData.WeekDay*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*CloseHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*OpenedCafeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*CafeIdforCafeRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*CafeRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*ContentsOpenShow*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 42 /*ContentsOpenShortcutUI*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/OpenConditionExcelTable.cs b/SCHALE.Common/FlatData/OpenConditionExcelTable.cs new file mode 100644 index 0000000..02f5357 --- /dev/null +++ b/SCHALE.Common/FlatData/OpenConditionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 OpenConditionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static OpenConditionExcelTable GetRootAsOpenConditionExcelTable(ByteBuffer _bb) { return GetRootAsOpenConditionExcelTable(_bb, new OpenConditionExcelTable()); } + public static OpenConditionExcelTable GetRootAsOpenConditionExcelTable(ByteBuffer _bb, OpenConditionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public OpenConditionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.OpenConditionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionExcel?)(new SCHALE.Common.FlatData.OpenConditionExcel()).__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 CreateOpenConditionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + OpenConditionExcelTable.AddDataList(builder, DataListOffset); + return OpenConditionExcelTable.EndOpenConditionExcelTable(builder); + } + + public static void StartOpenConditionExcelTable(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 EndOpenConditionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class OpenConditionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.OpenConditionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/OperatorCondition.cs b/SCHALE.Common/FlatData/OperatorCondition.cs new file mode 100644 index 0000000..06b069f --- /dev/null +++ b/SCHALE.Common/FlatData/OperatorCondition.cs @@ -0,0 +1,41 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum OperatorCondition : int +{ + None = 0, + StrategyStart = 1, + StrategyVictory = 2, + StrategyDefeat = 3, + AdventureCombatStart = 4, + AdventureCombatVictory = 5, + AdventureCombatDefeat = 6, + ArenaCombatStart = 7, + ArenaCombatVictory = 8, + ArenaCombatDefeat = 9, + WeekDungeonCombatStart = 10, + WeekDungeonCombatVictory = 11, + WeekDungeonCombatDefeat = 12, + SchoolDungeonCombatStart = 13, + SchoolDungeonCombatVictory = 14, + SchoolDungeonCombatDefeat = 15, + StrategyWarpUnitFromHideTile = 16, + TimeAttackDungeonStart = 17, + TimeAttackDungeonVictory = 18, + TimeAttackDungeonDefeat = 19, + WorldRaidBossSpawn = 20, + WorldRaidBossKill = 21, + WorldRaidBossDamaged = 22, + WorldRaidScenarioBattle = 23, + MinigameTBGThemaOpen = 24, + MinigameTBGThemaComeback = 25, + MinigameTBGAllyRevive = 26, + MinigameTBGItemUse = 27, +}; + + +} diff --git a/SCHALE.Common/FlatData/OperatorExcel.cs b/SCHALE.Common/FlatData/OperatorExcel.cs new file mode 100644 index 0000000..6005ad4 --- /dev/null +++ b/SCHALE.Common/FlatData/OperatorExcel.cs @@ -0,0 +1,135 @@ +// +// 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 OperatorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static OperatorExcel GetRootAsOperatorExcel(ByteBuffer _bb) { return GetRootAsOperatorExcel(_bb, new OperatorExcel()); } + public static OperatorExcel GetRootAsOperatorExcel(ByteBuffer _bb, OperatorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public OperatorExcel __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 string GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroupIdBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetGroupIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetGroupIdArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.OperatorCondition OperatorCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.OperatorCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OperatorCondition.None; } } + public int OutputSequence { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RandomWeight { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int OutputDelay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Duration { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int OperatorOutputPriority { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string PortraitPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPortraitPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetPortraitPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetPortraitPathArray() { return __p.__vector_as_array(20); } + public string TextLocalizeKey { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextLocalizeKeyBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetTextLocalizeKeyBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetTextLocalizeKeyArray() { return __p.__vector_as_array(22); } + public uint VoiceId(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceIdBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetVoiceIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public uint[] GetVoiceIdArray() { return __p.__vector_as_array(24); } + public bool OperatorWaitQueue { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateOperatorExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset GroupIdOffset = default(StringOffset), + SCHALE.Common.FlatData.OperatorCondition OperatorCondition = SCHALE.Common.FlatData.OperatorCondition.None, + int OutputSequence = 0, + int RandomWeight = 0, + int OutputDelay = 0, + int Duration = 0, + int OperatorOutputPriority = 0, + StringOffset PortraitPathOffset = default(StringOffset), + StringOffset TextLocalizeKeyOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + bool OperatorWaitQueue = false) { + builder.StartTable(12); + OperatorExcel.AddUniqueId(builder, UniqueId); + OperatorExcel.AddVoiceId(builder, VoiceIdOffset); + OperatorExcel.AddTextLocalizeKey(builder, TextLocalizeKeyOffset); + OperatorExcel.AddPortraitPath(builder, PortraitPathOffset); + OperatorExcel.AddOperatorOutputPriority(builder, OperatorOutputPriority); + OperatorExcel.AddDuration(builder, Duration); + OperatorExcel.AddOutputDelay(builder, OutputDelay); + OperatorExcel.AddRandomWeight(builder, RandomWeight); + OperatorExcel.AddOutputSequence(builder, OutputSequence); + OperatorExcel.AddOperatorCondition(builder, OperatorCondition); + OperatorExcel.AddGroupId(builder, GroupIdOffset); + OperatorExcel.AddOperatorWaitQueue(builder, OperatorWaitQueue); + return OperatorExcel.EndOperatorExcel(builder); + } + + public static void StartOperatorExcel(FlatBufferBuilder builder) { builder.StartTable(12); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, StringOffset groupIdOffset) { builder.AddOffset(1, groupIdOffset.Value, 0); } + public static void AddOperatorCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.OperatorCondition operatorCondition) { builder.AddInt(2, (int)operatorCondition, 0); } + public static void AddOutputSequence(FlatBufferBuilder builder, int outputSequence) { builder.AddInt(3, outputSequence, 0); } + public static void AddRandomWeight(FlatBufferBuilder builder, int randomWeight) { builder.AddInt(4, randomWeight, 0); } + public static void AddOutputDelay(FlatBufferBuilder builder, int outputDelay) { builder.AddInt(5, outputDelay, 0); } + public static void AddDuration(FlatBufferBuilder builder, int duration) { builder.AddInt(6, duration, 0); } + public static void AddOperatorOutputPriority(FlatBufferBuilder builder, int operatorOutputPriority) { builder.AddInt(7, operatorOutputPriority, 0); } + public static void AddPortraitPath(FlatBufferBuilder builder, StringOffset portraitPathOffset) { builder.AddOffset(8, portraitPathOffset.Value, 0); } + public static void AddTextLocalizeKey(FlatBufferBuilder builder, StringOffset textLocalizeKeyOffset) { builder.AddOffset(9, textLocalizeKeyOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(10, voiceIdOffset.Value, 0); } + public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddOperatorWaitQueue(FlatBufferBuilder builder, bool operatorWaitQueue) { builder.AddBool(11, operatorWaitQueue, false); } + public static Offset EndOperatorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class OperatorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*GroupId*/, false) + && verifier.VerifyField(tablePos, 8 /*OperatorCondition*/, 4 /*SCHALE.Common.FlatData.OperatorCondition*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*OutputSequence*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RandomWeight*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*OutputDelay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Duration*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*OperatorOutputPriority*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 20 /*PortraitPath*/, false) + && verifier.VerifyString(tablePos, 22 /*TextLocalizeKey*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*VoiceId*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 26 /*OperatorWaitQueue*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/OperatorExcelTable.cs b/SCHALE.Common/FlatData/OperatorExcelTable.cs new file mode 100644 index 0000000..fe67c9e --- /dev/null +++ b/SCHALE.Common/FlatData/OperatorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..0932170 --- /dev/null +++ b/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs @@ -0,0 +1,90 @@ +// +// 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 ParcelAutoSynthExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ParcelAutoSynthExcel GetRootAsParcelAutoSynthExcel(ByteBuffer _bb) { return GetRootAsParcelAutoSynthExcel(_bb, new ParcelAutoSynthExcel()); } + public static ParcelAutoSynthExcel GetRootAsParcelAutoSynthExcel(ByteBuffer _bb, ParcelAutoSynthExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ParcelAutoSynthExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ParcelType RequireParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long RequireParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RequireParcelAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SynthStartAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SynthEndAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool SynthMaxItem { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType ResultParcelType { 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 ResultParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ResultParcelAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateParcelAutoSynthExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ParcelType RequireParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RequireParcelId = 0, + long RequireParcelAmount = 0, + long SynthStartAmount = 0, + long SynthEndAmount = 0, + bool SynthMaxItem = false, + SCHALE.Common.FlatData.ParcelType ResultParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ResultParcelId = 0, + long ResultParcelAmount = 0) { + builder.StartTable(9); + ParcelAutoSynthExcel.AddResultParcelAmount(builder, ResultParcelAmount); + ParcelAutoSynthExcel.AddResultParcelId(builder, ResultParcelId); + ParcelAutoSynthExcel.AddSynthEndAmount(builder, SynthEndAmount); + ParcelAutoSynthExcel.AddSynthStartAmount(builder, SynthStartAmount); + ParcelAutoSynthExcel.AddRequireParcelAmount(builder, RequireParcelAmount); + ParcelAutoSynthExcel.AddRequireParcelId(builder, RequireParcelId); + ParcelAutoSynthExcel.AddResultParcelType(builder, ResultParcelType); + ParcelAutoSynthExcel.AddRequireParcelType(builder, RequireParcelType); + ParcelAutoSynthExcel.AddSynthMaxItem(builder, SynthMaxItem); + return ParcelAutoSynthExcel.EndParcelAutoSynthExcel(builder); + } + + public static void StartParcelAutoSynthExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddRequireParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType requireParcelType) { builder.AddInt(0, (int)requireParcelType, 0); } + public static void AddRequireParcelId(FlatBufferBuilder builder, long requireParcelId) { builder.AddLong(1, requireParcelId, 0); } + public static void AddRequireParcelAmount(FlatBufferBuilder builder, long requireParcelAmount) { builder.AddLong(2, requireParcelAmount, 0); } + public static void AddSynthStartAmount(FlatBufferBuilder builder, long synthStartAmount) { builder.AddLong(3, synthStartAmount, 0); } + public static void AddSynthEndAmount(FlatBufferBuilder builder, long synthEndAmount) { builder.AddLong(4, synthEndAmount, 0); } + public static void AddSynthMaxItem(FlatBufferBuilder builder, bool synthMaxItem) { builder.AddBool(5, synthMaxItem, false); } + public static void AddResultParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType resultParcelType) { builder.AddInt(6, (int)resultParcelType, 0); } + public static void AddResultParcelId(FlatBufferBuilder builder, long resultParcelId) { builder.AddLong(7, resultParcelId, 0); } + public static void AddResultParcelAmount(FlatBufferBuilder builder, long resultParcelAmount) { builder.AddLong(8, resultParcelAmount, 0); } + public static Offset EndParcelAutoSynthExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ParcelAutoSynthExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RequireParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*RequireParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RequireParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*SynthStartAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*SynthEndAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*SynthMaxItem*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 16 /*ResultParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ResultParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*ResultParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs b/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs new file mode 100644 index 0000000..401a249 --- /dev/null +++ b/SCHALE.Common/FlatData/ParcelAutoSynthExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ParcelAutoSynthExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ParcelAutoSynthExcelTable GetRootAsParcelAutoSynthExcelTable(ByteBuffer _bb) { return GetRootAsParcelAutoSynthExcelTable(_bb, new ParcelAutoSynthExcelTable()); } + public static ParcelAutoSynthExcelTable GetRootAsParcelAutoSynthExcelTable(ByteBuffer _bb, ParcelAutoSynthExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ParcelAutoSynthExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ParcelAutoSynthExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelAutoSynthExcel?)(new SCHALE.Common.FlatData.ParcelAutoSynthExcel()).__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 CreateParcelAutoSynthExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ParcelAutoSynthExcelTable.AddDataList(builder, DataListOffset); + return ParcelAutoSynthExcelTable.EndParcelAutoSynthExcelTable(builder); + } + + public static void StartParcelAutoSynthExcelTable(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 EndParcelAutoSynthExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ParcelAutoSynthExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ParcelAutoSynthExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ParcelChangeReason.cs b/SCHALE.Common/FlatData/ParcelChangeReason.cs new file mode 100644 index 0000000..d395667 --- /dev/null +++ b/SCHALE.Common/FlatData/ParcelChangeReason.cs @@ -0,0 +1,186 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ParcelChangeReason : int +{ + None = 0, + Acquire_NewAccount = 1, + Acquire_PlayReward = 2, + Acquire_ChapterReward = 3, + Acquire_LoginReward = 4, + Acquire_EventReward = 5, + Acquire_GMPush = 6, + Acquire_ShopBuy = 7, + Acquire_GachaBuy = 8, + Acquire_CurrencyBuy = 9, + Equipment_Equip = 10, + Equipment_Unequip = 11, + Equipment_Levelup = 12, + Equipment_LimitBreak = 13, + Equipment_Transcendence = 14, + Equipment_Enchant = 15, + Item_Use = 16, + Item_Lock = 17, + Item_CharacterGrowthMaterial = 18, + Item_Change = 19, + Item_Delete = 20, + Item_Consume = 21, + Item_SelectTicket = 22, + Character_ExpGrowth = 23, + Character_Transcendence = 24, + Character_SkillLevelUp = 25, + Character_FavorGrowth = 26, + Furniture_CafeSet = 27, + Furniture_CafeRecall = 28, + Academy_AttendSchedule = 29, + Academy_MessageList = 30, + Adventure_EnterMainStage = 31, + Adventure_EnterSubStage = 32, + Adventure_MainStageBattleResult = 33, + Adventure_SubStageBattleResult = 34, + Adventure_ChapterClearReward = 35, + Adventure_Retreat = 36, + Adventure_PurchasePlayCountHardStage = 37, + Adventure_TutorialStage = 38, + Adventure_TutorialStageBattleResult = 39, + ContentSweep_Sweep = 40, + Arena_TimeReward = 41, + Arena_DailyReward = 42, + Arena_EnterBattle = 43, + Arena_BattleResult = 44, + Cafe_Interact = 45, + Cafe_Production = 46, + Cafe_RankUp = 47, + Cafe_GiveGift = 48, + WeekDungeon_BattleResult = 49, + WeekDungeon_EnterBattle = 50, + WeekDungeon_Retreat = 51, + Mission_Clear = 52, + Shop_Refresh = 53, + Shop_BuyEligma = 54, + Shop_BuyMerchandise = 55, + Shop_BuyGacha = 56, + Scenario_Clear = 57, + Recipe_Craft = 58, + Raid_Failed = 59, + Raid_Reward = 60, + Raid_SeasonReward = 61, + Raid_CreateBattle = 62, + CumulativeTimeReward_Reward = 63, + Mail_Receive = 64, + MomoTalk_FavorSchedule = 65, + WeekDungeon_EnterBlood = 66, + WeekDungeon_EnterGift = 67, + Acquire_ActionPoint = 68, + Acquire_ArenaTicket = 69, + EventContent_TotalReward = 70, + Craft_UpdateNode = 71, + Craft_CompleteProcess = 72, + Craft_Reward = 73, + EventContent_BattleResult = 74, + Adventure_Sweep = 75, + EventContent_Sweep = 76, + WeekDungeon_Sweep = 77, + Acquire_MonthlyProduct = 78, + Acquire_DailyReward = 79, + Billing_PurchaseProduct = 80, + EventContent_EnterMainStage = 81, + EventContent_EnterSubStage = 82, + EventContent_MainStageResult = 83, + EventContent_SubStageResult = 84, + EventContent_Retreat = 85, + WeekDungeon_BloodResult = 86, + WeekDungeon_GiftResult = 87, + WeekDungeon_EnterChaserA = 88, + WeekDungeon_EnterChaserB = 89, + WeekDungeon_EnterChaserC = 90, + WeekDungeon_ChaserAResult = 91, + WeekDungeon_ChaserBResult = 92, + WeekDungeon_ChaserCResult = 93, + EventContent_BoxGacha = 94, + Raid_Sweep = 95, + Clan_AssistReward = 96, + EventContent_CardShop = 97, + CharacterWeapon_ExpGrowth = 98, + CharacterWeapon_Transcendence = 99, + MiniGameMission_Clear = 100, + SchoolDungeon_EnterSchoolA = 101, + SchoolDungeon_EnterSchoolB = 102, + SchoolDungeon_EnterSchoolC = 103, + SchoolDungeon_SchoolAResult = 104, + SchoolDungeon_SchoolBResult = 105, + SchoolDungeon_SchoolCResult = 106, + TimeAttackDungeon_CreateBattle = 107, + TimeAttackDungeon_EndBattle = 108, + TimeAttackDungeon_Reward = 109, + Clan_Create = 110, + Arena_SeasonReward = 111, + Arena_OverallReward = 112, + EventContent_AttendSchedule = 113, + EventContent_BuyFortuneGacha = 114, + Equipment_BatchGrowth = 115, + EventContent_EnterStoryStage = 116, + EventContent_StoryStageResult = 117, + WorldRaid_EndBattle = 118, + WorldRaid_Reward = 119, + Conquest_EnterBattle = 120, + Conquest_EnterUnExpectBattle = 121, + Conquest_BattleResult = 122, + Conquest_UnExpectBattleResult = 123, + Conquest_UpgradeBase = 124, + Conquest_ManageBase = 125, + Conquest_CalculatedReward = 126, + Conquest_TakeEventBoxObject = 127, + Conquest_ConquerNormalTile = 128, + Item_SelectRecruit = 129, + Adventure_EnterExtraStage = 130, + Adventure_ExtraStageBattleResult = 131, + Scenario_EnterMainStage = 132, + Scenario_MainStageResult = 133, + Scenario_RetreatMainStage = 134, + EventContent_DiceRaceRollReward = 135, + EventContent_DiceRaceLapReward = 136, + ShiftingCraft_BeginProcess = 137, + ShiftingCraft_CompleteProcess = 138, + ShiftingCraft_Reward = 139, + MiniGame_ShootingBattleResult = 140, + MiniGame_ShootingSweep = 141, + EliminateRaid_Failed = 142, + EliminateRaid_Reward = 143, + EliminateRaid_SeasonReward = 144, + EliminateRaid_CreateBattle = 145, + EliminateRaid_Sweep = 146, + Item_AutoSynth = 147, + ContentSweep_MultiSweep = 148, + Emblem_Acquire = 149, + MiniGame_TBGMove = 150, + MiniGame_TBGEncounterInput = 151, + MiniGame_TBGResurrect = 152, + MiniGame_TBGSweep = 153, + Shop_BeforehandGacha = 154, + EliminateRaid_LimitedReward = 155, + Craft_AutoBeginProcess = 156, + Craft_CompleteProcessAll = 157, + Craft_RewardAll = 158, + ShiftingCraft_CompleteProcessAll = 159, + ShiftingCraft_RewardAll = 160, + Temp_1 = 161, + Temp_2 = 162, + Temp_3 = 163, + Temp_4 = 164, + EventContent_Treasure = 165, + Field_EnterStage = 166, + Field_StageResult = 167, + Field_Interaction = 168, + Field_Quest = 169, + Character_PotentialGrowth = 170, + MultiFloorRaid_EndBattle = 171, + MultiFloorRaid_Reward = 172, +}; + + +} diff --git a/SCHALE.Common/FlatData/ParcelType.cs b/SCHALE.Common/FlatData/ParcelType.cs new file mode 100644 index 0000000..5abce02 --- /dev/null +++ b/SCHALE.Common/FlatData/ParcelType.cs @@ -0,0 +1,36 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ParcelType : int +{ + None = 0, + Character = 1, + Currency = 2, + Equipment = 3, + Item = 4, + GachaGroup = 5, + Product = 6, + Shop = 7, + MemoryLobby = 8, + AccountExp = 9, + CharacterExp = 10, + FavorExp = 11, + TSS = 12, + Furniture = 13, + ShopRefresh = 14, + LocationExp = 15, + Recipe = 16, + CharacterWeapon = 17, + CharacterGear = 18, + IdCardBackground = 19, + Emblem = 20, + Sticker = 21, + Costume = 22, +}; + + +} diff --git a/SCHALE.Common/FlatData/PersonalityExcel.cs b/SCHALE.Common/FlatData/PersonalityExcel.cs new file mode 100644 index 0000000..a491a19 --- /dev/null +++ b/SCHALE.Common/FlatData/PersonalityExcel.cs @@ -0,0 +1,61 @@ +// +// 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 PersonalityExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PersonalityExcel GetRootAsPersonalityExcel(ByteBuffer _bb) { return GetRootAsPersonalityExcel(_bb, new PersonalityExcel()); } + public static PersonalityExcel GetRootAsPersonalityExcel(ByteBuffer _bb, PersonalityExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PersonalityExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + + public static Offset CreatePersonalityExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset)) { + builder.StartTable(2); + PersonalityExcel.AddId(builder, Id); + PersonalityExcel.AddName(builder, NameOffset); + return PersonalityExcel.EndPersonalityExcel(builder); + } + + public static void StartPersonalityExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + 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 Offset EndPersonalityExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PersonalityExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PersonalityExcelTable.cs b/SCHALE.Common/FlatData/PersonalityExcelTable.cs new file mode 100644 index 0000000..e23851f --- /dev/null +++ b/SCHALE.Common/FlatData/PersonalityExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 PersonalityExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PersonalityExcelTable GetRootAsPersonalityExcelTable(ByteBuffer _bb) { return GetRootAsPersonalityExcelTable(_bb, new PersonalityExcelTable()); } + public static PersonalityExcelTable GetRootAsPersonalityExcelTable(ByteBuffer _bb, PersonalityExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PersonalityExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PersonalityExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PersonalityExcel?)(new SCHALE.Common.FlatData.PersonalityExcel()).__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 CreatePersonalityExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + PersonalityExcelTable.AddDataList(builder, DataListOffset); + return PersonalityExcelTable.EndPersonalityExcelTable(builder); + } + + public static void StartPersonalityExcelTable(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 EndPersonalityExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PersonalityExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.PersonalityExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs new file mode 100644 index 0000000..836cac8 --- /dev/null +++ b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs @@ -0,0 +1,80 @@ +// +// 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 PickupDuplicateBonusExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PickupDuplicateBonusExcel GetRootAsPickupDuplicateBonusExcel(ByteBuffer _bb) { return GetRootAsPickupDuplicateBonusExcel(_bb, new PickupDuplicateBonusExcel()); } + public static PickupDuplicateBonusExcel GetRootAsPickupDuplicateBonusExcel(ByteBuffer _bb, PickupDuplicateBonusExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PickupDuplicateBonusExcel __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 SCHALE.Common.FlatData.ShopCategoryType ShopCategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public long ShopId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PickupCharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreatePickupDuplicateBonusExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ShopCategoryType ShopCategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + long ShopId = 0, + long PickupCharacterId = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0) { + builder.StartTable(7); + PickupDuplicateBonusExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + PickupDuplicateBonusExcel.AddRewardParcelId(builder, RewardParcelId); + PickupDuplicateBonusExcel.AddPickupCharacterId(builder, PickupCharacterId); + PickupDuplicateBonusExcel.AddShopId(builder, ShopId); + PickupDuplicateBonusExcel.AddId(builder, Id); + PickupDuplicateBonusExcel.AddRewardParcelType(builder, RewardParcelType); + PickupDuplicateBonusExcel.AddShopCategoryType(builder, ShopCategoryType); + return PickupDuplicateBonusExcel.EndPickupDuplicateBonusExcel(builder); + } + + public static void StartPickupDuplicateBonusExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddShopCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType shopCategoryType) { builder.AddInt(1, (int)shopCategoryType, 0); } + public static void AddShopId(FlatBufferBuilder builder, long shopId) { builder.AddLong(2, shopId, 0); } + public static void AddPickupCharacterId(FlatBufferBuilder builder, long pickupCharacterId) { builder.AddLong(3, pickupCharacterId, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(4, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(5, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(6, rewardParcelAmount, 0); } + public static Offset EndPickupDuplicateBonusExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PickupDuplicateBonusExcelVerify +{ + 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 /*ShopCategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ShopId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*PickupCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs b/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs new file mode 100644 index 0000000..a772b85 --- /dev/null +++ b/SCHALE.Common/FlatData/PickupDuplicateBonusExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 PickupDuplicateBonusExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PickupDuplicateBonusExcelTable GetRootAsPickupDuplicateBonusExcelTable(ByteBuffer _bb) { return GetRootAsPickupDuplicateBonusExcelTable(_bb, new PickupDuplicateBonusExcelTable()); } + public static PickupDuplicateBonusExcelTable GetRootAsPickupDuplicateBonusExcelTable(ByteBuffer _bb, PickupDuplicateBonusExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PickupDuplicateBonusExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PickupDuplicateBonusExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PickupDuplicateBonusExcel?)(new SCHALE.Common.FlatData.PickupDuplicateBonusExcel()).__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 CreatePickupDuplicateBonusExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + PickupDuplicateBonusExcelTable.AddDataList(builder, DataListOffset); + return PickupDuplicateBonusExcelTable.EndPickupDuplicateBonusExcelTable(builder); + } + + public static void StartPickupDuplicateBonusExcelTable(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 EndPickupDuplicateBonusExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PickupDuplicateBonusExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.PickupDuplicateBonusExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/Position.cs b/SCHALE.Common/FlatData/Position.cs new file mode 100644 index 0000000..170c830 --- /dev/null +++ b/SCHALE.Common/FlatData/Position.cs @@ -0,0 +1,55 @@ +// +// 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 Position : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static Position GetRootAsPosition(ByteBuffer _bb) { return GetRootAsPosition(_bb, new Position()); } + public static Position GetRootAsPosition(ByteBuffer _bb, Position obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public Position __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreatePosition(FlatBufferBuilder builder, + float X = 0.0f, + float Z = 0.0f) { + builder.StartTable(2); + Position.AddZ(builder, Z); + Position.AddX(builder, X); + return Position.EndPosition(builder); + } + + public static void StartPosition(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(1, z, 0.0f); } + public static Offset EndPosition(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PositionVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PositioningType.cs b/SCHALE.Common/FlatData/PositioningType.cs new file mode 100644 index 0000000..a30bbb2 --- /dev/null +++ b/SCHALE.Common/FlatData/PositioningType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PositioningType : int +{ + CloseToObstacle = 0, + CloseToTarget = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs b/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs new file mode 100644 index 0000000..e75bd9d --- /dev/null +++ b/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PotentialStatBonusRateType : int +{ + None = 0, + MaxHP = 1, + AttackPower = 2, + HealPower = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs new file mode 100644 index 0000000..5ae74b8 --- /dev/null +++ b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs @@ -0,0 +1,216 @@ +// +// 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 PresetCharacterGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetCharacterGroupExcel GetRootAsPresetCharacterGroupExcel(ByteBuffer _bb) { return GetRootAsPresetCharacterGroupExcel(_bb, new PresetCharacterGroupExcel()); } + public static PresetCharacterGroupExcel GetRootAsPresetCharacterGroupExcel(ByteBuffer _bb, PresetCharacterGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetCharacterGroupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long PresetCharacterGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GetPresetType { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGetPresetTypeBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetGetPresetTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetGetPresetTypeArray() { return __p.__vector_as_array(6); } + public int Level { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Exp { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FavorExp { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FavorRank { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int StarGrade { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExSkillLevel { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PassiveSkillLevel { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraPassiveSkillLevel { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CommonSkillLevel { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int LeaderSkillLevel { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool EquipSlot01 { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int EquipSlotTier01 { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipSlotLevel01 { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool EquipSlot02 { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int EquipSlotTier02 { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipSlotLevel02 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool EquipSlot03 { get { int o = __p.__offset(40); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int EquipSlotTier03 { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipSlotLevel03 { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool EquipCharacterWeapon { get { int o = __p.__offset(46); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int EquipCharacterWeaponTier { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipCharacterWeaponLevel { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + 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 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 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 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, + long PresetCharacterGroupId = 0, + StringOffset GetPresetTypeOffset = default(StringOffset), + int Level = 0, + int Exp = 0, + int FavorExp = 0, + int FavorRank = 0, + int StarGrade = 0, + int ExSkillLevel = 0, + int PassiveSkillLevel = 0, + int ExtraPassiveSkillLevel = 0, + int CommonSkillLevel = 0, + int LeaderSkillLevel = 0, + bool EquipSlot01 = false, + int EquipSlotTier01 = 0, + int EquipSlotLevel01 = 0, + bool EquipSlot02 = false, + int EquipSlotTier02 = 0, + int EquipSlotLevel02 = 0, + bool EquipSlot03 = false, + int EquipSlotTier03 = 0, + int EquipSlotLevel03 = 0, + bool EquipCharacterWeapon = false, + int EquipCharacterWeaponTier = 0, + int EquipCharacterWeaponLevel = 0, + bool EquipCharacterGear = false, + int EquipCharacterGearTier = 0, + int EquipCharacterGearLevel = 0, + SCHALE.Common.FlatData.StatType PotentialType01 = SCHALE.Common.FlatData.StatType.None, + int PotentialLevel01 = 0, + SCHALE.Common.FlatData.StatType PotentialType02 = SCHALE.Common.FlatData.StatType.None, + int PotentialLevel02 = 0, + SCHALE.Common.FlatData.StatType PotentialType03 = SCHALE.Common.FlatData.StatType.None, + int PotentialLevel03 = 0) { + builder.StartTable(33); + PresetCharacterGroupExcel.AddPresetCharacterGroupId(builder, PresetCharacterGroupId); + PresetCharacterGroupExcel.AddPotentialLevel03(builder, PotentialLevel03); + PresetCharacterGroupExcel.AddPotentialType03(builder, PotentialType03); + PresetCharacterGroupExcel.AddPotentialLevel02(builder, PotentialLevel02); + PresetCharacterGroupExcel.AddPotentialType02(builder, PotentialType02); + PresetCharacterGroupExcel.AddPotentialLevel01(builder, PotentialLevel01); + PresetCharacterGroupExcel.AddPotentialType01(builder, PotentialType01); + PresetCharacterGroupExcel.AddEquipCharacterGearLevel(builder, EquipCharacterGearLevel); + PresetCharacterGroupExcel.AddEquipCharacterGearTier(builder, EquipCharacterGearTier); + PresetCharacterGroupExcel.AddEquipCharacterWeaponLevel(builder, EquipCharacterWeaponLevel); + PresetCharacterGroupExcel.AddEquipCharacterWeaponTier(builder, EquipCharacterWeaponTier); + PresetCharacterGroupExcel.AddEquipSlotLevel03(builder, EquipSlotLevel03); + PresetCharacterGroupExcel.AddEquipSlotTier03(builder, EquipSlotTier03); + PresetCharacterGroupExcel.AddEquipSlotLevel02(builder, EquipSlotLevel02); + PresetCharacterGroupExcel.AddEquipSlotTier02(builder, EquipSlotTier02); + PresetCharacterGroupExcel.AddEquipSlotLevel01(builder, EquipSlotLevel01); + PresetCharacterGroupExcel.AddEquipSlotTier01(builder, EquipSlotTier01); + PresetCharacterGroupExcel.AddLeaderSkillLevel(builder, LeaderSkillLevel); + PresetCharacterGroupExcel.AddCommonSkillLevel(builder, CommonSkillLevel); + PresetCharacterGroupExcel.AddExtraPassiveSkillLevel(builder, ExtraPassiveSkillLevel); + PresetCharacterGroupExcel.AddPassiveSkillLevel(builder, PassiveSkillLevel); + PresetCharacterGroupExcel.AddExSkillLevel(builder, ExSkillLevel); + PresetCharacterGroupExcel.AddStarGrade(builder, StarGrade); + PresetCharacterGroupExcel.AddFavorRank(builder, FavorRank); + PresetCharacterGroupExcel.AddFavorExp(builder, FavorExp); + PresetCharacterGroupExcel.AddExp(builder, Exp); + PresetCharacterGroupExcel.AddLevel(builder, Level); + PresetCharacterGroupExcel.AddGetPresetType(builder, GetPresetTypeOffset); + PresetCharacterGroupExcel.AddEquipCharacterGear(builder, EquipCharacterGear); + PresetCharacterGroupExcel.AddEquipCharacterWeapon(builder, EquipCharacterWeapon); + PresetCharacterGroupExcel.AddEquipSlot03(builder, EquipSlot03); + PresetCharacterGroupExcel.AddEquipSlot02(builder, EquipSlot02); + PresetCharacterGroupExcel.AddEquipSlot01(builder, EquipSlot01); + return PresetCharacterGroupExcel.EndPresetCharacterGroupExcel(builder); + } + + public static void StartPresetCharacterGroupExcel(FlatBufferBuilder builder) { builder.StartTable(33); } + public static void AddPresetCharacterGroupId(FlatBufferBuilder builder, long presetCharacterGroupId) { builder.AddLong(0, presetCharacterGroupId, 0); } + public static void AddGetPresetType(FlatBufferBuilder builder, StringOffset getPresetTypeOffset) { builder.AddOffset(1, getPresetTypeOffset.Value, 0); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(2, level, 0); } + public static void AddExp(FlatBufferBuilder builder, int exp) { builder.AddInt(3, exp, 0); } + public static void AddFavorExp(FlatBufferBuilder builder, int favorExp) { builder.AddInt(4, favorExp, 0); } + public static void AddFavorRank(FlatBufferBuilder builder, int favorRank) { builder.AddInt(5, favorRank, 0); } + public static void AddStarGrade(FlatBufferBuilder builder, int starGrade) { builder.AddInt(6, starGrade, 0); } + public static void AddExSkillLevel(FlatBufferBuilder builder, int exSkillLevel) { builder.AddInt(7, exSkillLevel, 0); } + public static void AddPassiveSkillLevel(FlatBufferBuilder builder, int passiveSkillLevel) { builder.AddInt(8, passiveSkillLevel, 0); } + public static void AddExtraPassiveSkillLevel(FlatBufferBuilder builder, int extraPassiveSkillLevel) { builder.AddInt(9, extraPassiveSkillLevel, 0); } + public static void AddCommonSkillLevel(FlatBufferBuilder builder, int commonSkillLevel) { builder.AddInt(10, commonSkillLevel, 0); } + public static void AddLeaderSkillLevel(FlatBufferBuilder builder, int leaderSkillLevel) { builder.AddInt(11, leaderSkillLevel, 0); } + public static void AddEquipSlot01(FlatBufferBuilder builder, bool equipSlot01) { builder.AddBool(12, equipSlot01, false); } + public static void AddEquipSlotTier01(FlatBufferBuilder builder, int equipSlotTier01) { builder.AddInt(13, equipSlotTier01, 0); } + public static void AddEquipSlotLevel01(FlatBufferBuilder builder, int equipSlotLevel01) { builder.AddInt(14, equipSlotLevel01, 0); } + public static void AddEquipSlot02(FlatBufferBuilder builder, bool equipSlot02) { builder.AddBool(15, equipSlot02, false); } + public static void AddEquipSlotTier02(FlatBufferBuilder builder, int equipSlotTier02) { builder.AddInt(16, equipSlotTier02, 0); } + public static void AddEquipSlotLevel02(FlatBufferBuilder builder, int equipSlotLevel02) { builder.AddInt(17, equipSlotLevel02, 0); } + public static void AddEquipSlot03(FlatBufferBuilder builder, bool equipSlot03) { builder.AddBool(18, equipSlot03, false); } + public static void AddEquipSlotTier03(FlatBufferBuilder builder, int equipSlotTier03) { builder.AddInt(19, equipSlotTier03, 0); } + public static void AddEquipSlotLevel03(FlatBufferBuilder builder, int equipSlotLevel03) { builder.AddInt(20, equipSlotLevel03, 0); } + public static void AddEquipCharacterWeapon(FlatBufferBuilder builder, bool equipCharacterWeapon) { builder.AddBool(21, equipCharacterWeapon, false); } + public static void AddEquipCharacterWeaponTier(FlatBufferBuilder builder, int equipCharacterWeaponTier) { builder.AddInt(22, equipCharacterWeaponTier, 0); } + public static void AddEquipCharacterWeaponLevel(FlatBufferBuilder builder, int equipCharacterWeaponLevel) { builder.AddInt(23, equipCharacterWeaponLevel, 0); } + 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 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 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 AddPotentialLevel03(FlatBufferBuilder builder, int potentialLevel03) { builder.AddInt(32, potentialLevel03, 0); } + public static Offset EndPresetCharacterGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetCharacterGroupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*PresetCharacterGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*GetPresetType*/, false) + && verifier.VerifyField(tablePos, 8 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Exp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*FavorExp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*FavorRank*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*StarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ExSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*PassiveSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*ExtraPassiveSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*CommonSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*LeaderSkillLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*EquipSlot01*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*EquipSlotTier01*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*EquipSlotLevel01*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*EquipSlot02*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 36 /*EquipSlotTier02*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*EquipSlotLevel02*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*EquipSlot03*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 42 /*EquipSlotTier03*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*EquipSlotLevel03*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*EquipCharacterWeapon*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 48 /*EquipCharacterWeaponTier*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*EquipCharacterWeaponLevel*/, 4 /*int*/, 4, false) + && 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, 60 /*PotentialLevel01*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*PotentialType02*/, 4 /*SCHALE.Common.FlatData.StatType*/, 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, 68 /*PotentialLevel03*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs b/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs new file mode 100644 index 0000000..93bb635 --- /dev/null +++ b/SCHALE.Common/FlatData/PresetCharacterGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 PresetCharacterGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetCharacterGroupExcelTable GetRootAsPresetCharacterGroupExcelTable(ByteBuffer _bb) { return GetRootAsPresetCharacterGroupExcelTable(_bb, new PresetCharacterGroupExcelTable()); } + public static PresetCharacterGroupExcelTable GetRootAsPresetCharacterGroupExcelTable(ByteBuffer _bb, PresetCharacterGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetCharacterGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PresetCharacterGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PresetCharacterGroupExcel?)(new SCHALE.Common.FlatData.PresetCharacterGroupExcel()).__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 CreatePresetCharacterGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + PresetCharacterGroupExcelTable.AddDataList(builder, DataListOffset); + return PresetCharacterGroupExcelTable.EndPresetCharacterGroupExcelTable(builder); + } + + public static void StartPresetCharacterGroupExcelTable(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 EndPresetCharacterGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetCharacterGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.PresetCharacterGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs new file mode 100644 index 0000000..6dfb997 --- /dev/null +++ b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcel.cs @@ -0,0 +1,66 @@ +// +// 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 PresetCharacterGroupSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetCharacterGroupSettingExcel GetRootAsPresetCharacterGroupSettingExcel(ByteBuffer _bb) { return GetRootAsPresetCharacterGroupSettingExcel(_bb, new PresetCharacterGroupSettingExcel()); } + public static PresetCharacterGroupSettingExcel GetRootAsPresetCharacterGroupSettingExcel(ByteBuffer _bb, PresetCharacterGroupSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetCharacterGroupSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ArenaSimulatorFixed { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string PresetType(int j) { int o = __p.__offset(8); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PresetTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreatePresetCharacterGroupSettingExcel(FlatBufferBuilder builder, + long CharacterId = 0, + bool ArenaSimulatorFixed = false, + VectorOffset PresetTypeOffset = default(VectorOffset)) { + builder.StartTable(3); + PresetCharacterGroupSettingExcel.AddCharacterId(builder, CharacterId); + PresetCharacterGroupSettingExcel.AddPresetType(builder, PresetTypeOffset); + PresetCharacterGroupSettingExcel.AddArenaSimulatorFixed(builder, ArenaSimulatorFixed); + return PresetCharacterGroupSettingExcel.EndPresetCharacterGroupSettingExcel(builder); + } + + public static void StartPresetCharacterGroupSettingExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } + public static void AddArenaSimulatorFixed(FlatBufferBuilder builder, bool arenaSimulatorFixed) { builder.AddBool(1, arenaSimulatorFixed, false); } + public static void AddPresetType(FlatBufferBuilder builder, VectorOffset presetTypeOffset) { builder.AddOffset(2, presetTypeOffset.Value, 0); } + public static VectorOffset CreatePresetTypeVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePresetTypeVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePresetTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePresetTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPresetTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndPresetCharacterGroupSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetCharacterGroupSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ArenaSimulatorFixed*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfStrings(tablePos, 8 /*PresetType*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs new file mode 100644 index 0000000..4b8c3ad --- /dev/null +++ b/SCHALE.Common/FlatData/PresetCharacterGroupSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 PresetCharacterGroupSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetCharacterGroupSettingExcelTable GetRootAsPresetCharacterGroupSettingExcelTable(ByteBuffer _bb) { return GetRootAsPresetCharacterGroupSettingExcelTable(_bb, new PresetCharacterGroupSettingExcelTable()); } + public static PresetCharacterGroupSettingExcelTable GetRootAsPresetCharacterGroupSettingExcelTable(ByteBuffer _bb, PresetCharacterGroupSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetCharacterGroupSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PresetCharacterGroupSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PresetCharacterGroupSettingExcel?)(new SCHALE.Common.FlatData.PresetCharacterGroupSettingExcel()).__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 CreatePresetCharacterGroupSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + PresetCharacterGroupSettingExcelTable.AddDataList(builder, DataListOffset); + return PresetCharacterGroupSettingExcelTable.EndPresetCharacterGroupSettingExcelTable(builder); + } + + public static void StartPresetCharacterGroupSettingExcelTable(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 EndPresetCharacterGroupSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetCharacterGroupSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.PresetCharacterGroupSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PresetParcelsExcel.cs b/SCHALE.Common/FlatData/PresetParcelsExcel.cs new file mode 100644 index 0000000..e57ec39 --- /dev/null +++ b/SCHALE.Common/FlatData/PresetParcelsExcel.cs @@ -0,0 +1,65 @@ +// +// 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 PresetParcelsExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetParcelsExcel GetRootAsPresetParcelsExcel(ByteBuffer _bb) { return GetRootAsPresetParcelsExcel(_bb, new PresetParcelsExcel()); } + public static PresetParcelsExcel GetRootAsPresetParcelsExcel(ByteBuffer _bb, PresetParcelsExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetParcelsExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PresetGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreatePresetParcelsExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelId = 0, + long PresetGroupId = 0, + long ParcelAmount = 0) { + builder.StartTable(4); + PresetParcelsExcel.AddParcelAmount(builder, ParcelAmount); + PresetParcelsExcel.AddPresetGroupId(builder, PresetGroupId); + PresetParcelsExcel.AddParcelId(builder, ParcelId); + PresetParcelsExcel.AddParcelType(builder, ParcelType); + return PresetParcelsExcel.EndPresetParcelsExcel(builder); + } + + public static void StartPresetParcelsExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(0, (int)parcelType, 0); } + public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(1, parcelId, 0); } + public static void AddPresetGroupId(FlatBufferBuilder builder, long presetGroupId) { builder.AddLong(2, presetGroupId, 0); } + public static void AddParcelAmount(FlatBufferBuilder builder, long parcelAmount) { builder.AddLong(3, parcelAmount, 0); } + public static Offset EndPresetParcelsExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetParcelsExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*PresetGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs b/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs new file mode 100644 index 0000000..1c31941 --- /dev/null +++ b/SCHALE.Common/FlatData/PresetParcelsExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 PresetParcelsExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PresetParcelsExcelTable GetRootAsPresetParcelsExcelTable(ByteBuffer _bb) { return GetRootAsPresetParcelsExcelTable(_bb, new PresetParcelsExcelTable()); } + public static PresetParcelsExcelTable GetRootAsPresetParcelsExcelTable(ByteBuffer _bb, PresetParcelsExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PresetParcelsExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PresetParcelsExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PresetParcelsExcel?)(new SCHALE.Common.FlatData.PresetParcelsExcel()).__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 CreatePresetParcelsExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + PresetParcelsExcelTable.AddDataList(builder, DataListOffset); + return PresetParcelsExcelTable.EndPresetParcelsExcelTable(builder); + } + + public static void StartPresetParcelsExcelTable(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 EndPresetParcelsExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PresetParcelsExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.PresetParcelsExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProductCategory.cs b/SCHALE.Common/FlatData/ProductCategory.cs new file mode 100644 index 0000000..d7c69fb --- /dev/null +++ b/SCHALE.Common/FlatData/ProductCategory.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProductCategory : int +{ + None = 0, + Gem = 1, + Monthly = 2, + Package = 3, + GachaDirect = 4, + TimeLimit = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/ProductDisplayTag.cs b/SCHALE.Common/FlatData/ProductDisplayTag.cs new file mode 100644 index 0000000..a0b5bde --- /dev/null +++ b/SCHALE.Common/FlatData/ProductDisplayTag.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProductDisplayTag : int +{ + None = 0, + New = 1, + Hot = 2, + Sale = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ProductExcel.cs b/SCHALE.Common/FlatData/ProductExcel.cs new file mode 100644 index 0000000..2cc0803 --- /dev/null +++ b/SCHALE.Common/FlatData/ProductExcel.cs @@ -0,0 +1,143 @@ +// +// 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 ProductExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProductExcel GetRootAsProductExcel(ByteBuffer _bb) { return GetRootAsProductExcel(_bb, new ProductExcel()); } + public static ProductExcel GetRootAsProductExcel(ByteBuffer _bb, ProductExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProductExcel __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 string ProductId { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProductIdBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetProductIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetProductIdArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.StoreType StoreType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None; } } + public long Price { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PriceReference { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPriceReferenceBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPriceReferenceBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPriceReferenceArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.PurchasePeriodType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchasePeriodType.None; } } + public long PurchasePeriodLimit { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ParcelType_Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { int o = __p.__offset(18); 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 ParcelId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(20); } + public long ParcelAmount(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelAmountLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelAmountBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetParcelAmountBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetParcelAmountArray() { return __p.__vector_as_array(22); } + + public static Offset CreateProductExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset ProductIdOffset = default(StringOffset), + SCHALE.Common.FlatData.StoreType StoreType = SCHALE.Common.FlatData.StoreType.None, + long Price = 0, + StringOffset PriceReferenceOffset = default(StringOffset), + SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType = SCHALE.Common.FlatData.PurchasePeriodType.None, + long PurchasePeriodLimit = 0, + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(10); + ProductExcel.AddPurchasePeriodLimit(builder, PurchasePeriodLimit); + ProductExcel.AddPrice(builder, Price); + ProductExcel.AddId(builder, Id); + ProductExcel.AddParcelAmount(builder, ParcelAmountOffset); + ProductExcel.AddParcelId(builder, ParcelIdOffset); + ProductExcel.AddParcelType_(builder, ParcelType_Offset); + ProductExcel.AddPurchasePeriodType(builder, PurchasePeriodType); + ProductExcel.AddPriceReference(builder, PriceReferenceOffset); + ProductExcel.AddStoreType(builder, StoreType); + ProductExcel.AddProductId(builder, ProductIdOffset); + return ProductExcel.EndProductExcel(builder); + } + + public static void StartProductExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddProductId(FlatBufferBuilder builder, StringOffset productIdOffset) { builder.AddOffset(1, productIdOffset.Value, 0); } + public static void AddStoreType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StoreType storeType) { builder.AddInt(2, (int)storeType, 0); } + public static void AddPrice(FlatBufferBuilder builder, long price) { builder.AddLong(3, price, 0); } + public static void AddPriceReference(FlatBufferBuilder builder, StringOffset priceReferenceOffset) { builder.AddOffset(4, priceReferenceOffset.Value, 0); } + public static void AddPurchasePeriodType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchasePeriodType purchasePeriodType) { builder.AddInt(5, (int)purchasePeriodType, 0); } + public static void AddPurchasePeriodLimit(FlatBufferBuilder builder, long purchasePeriodLimit) { builder.AddLong(6, purchasePeriodLimit, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(7, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(8, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddParcelAmount(FlatBufferBuilder builder, VectorOffset parcelAmountOffset) { builder.AddOffset(9, parcelAmountOffset.Value, 0); } + public static VectorOffset CreateParcelAmountVector(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 CreateParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndProductExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProductExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*ProductId*/, false) + && verifier.VerifyField(tablePos, 8 /*StoreType*/, 4 /*SCHALE.Common.FlatData.StoreType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Price*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*PriceReference*/, false) + && verifier.VerifyField(tablePos, 14 /*PurchasePeriodType*/, 4 /*SCHALE.Common.FlatData.PurchasePeriodType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*PurchasePeriodLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*ParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProductExcelTable.cs b/SCHALE.Common/FlatData/ProductExcelTable.cs new file mode 100644 index 0000000..3d28864 --- /dev/null +++ b/SCHALE.Common/FlatData/ProductExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ProductExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProductExcelTable GetRootAsProductExcelTable(ByteBuffer _bb) { return GetRootAsProductExcelTable(_bb, new ProductExcelTable()); } + public static ProductExcelTable GetRootAsProductExcelTable(ByteBuffer _bb, ProductExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProductExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ProductExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ProductExcel?)(new SCHALE.Common.FlatData.ProductExcel()).__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 CreateProductExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ProductExcelTable.AddDataList(builder, DataListOffset); + return ProductExcelTable.EndProductExcelTable(builder); + } + + public static void StartProductExcelTable(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 EndProductExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProductExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ProductExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProductMonthlyExcel.cs b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs new file mode 100644 index 0000000..5a63f35 --- /dev/null +++ b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs @@ -0,0 +1,199 @@ +// +// 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 ProductMonthlyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProductMonthlyExcel GetRootAsProductMonthlyExcel(ByteBuffer _bb) { return GetRootAsProductMonthlyExcel(_bb, new ProductMonthlyExcel()); } + public static ProductMonthlyExcel GetRootAsProductMonthlyExcel(ByteBuffer _bb, ProductMonthlyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProductMonthlyExcel __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 string ProductId { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProductIdBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetProductIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetProductIdArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.StoreType StoreType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None; } } + public long Price { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PriceReference { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPriceReferenceBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPriceReferenceBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPriceReferenceArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.ProductTagType ProductTagType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ProductTagType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductTagType.Monthly; } } + public long MonthlyDays { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ParcelType_Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { int o = __p.__offset(18); 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 ParcelId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(20); } + public long ParcelAmount(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelAmountLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelAmountBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetParcelAmountBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetParcelAmountArray() { return __p.__vector_as_array(22); } + public long EnterCostReduceGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType DailyParcelType(int j) { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int DailyParcelTypeLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDailyParcelTypeBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetDailyParcelTypeBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetDailyParcelTypeArray() { int o = __p.__offset(26); 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 DailyParcelId(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int DailyParcelIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDailyParcelIdBytes() { return __p.__vector_as_span(28, 8); } +#else + public ArraySegment? GetDailyParcelIdBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public long[] GetDailyParcelIdArray() { return __p.__vector_as_array(28); } + public long DailyParcelAmount(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int DailyParcelAmountLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDailyParcelAmountBytes() { return __p.__vector_as_span(30, 8); } +#else + public ArraySegment? GetDailyParcelAmountBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public long[] GetDailyParcelAmountArray() { return __p.__vector_as_array(30); } + + public static Offset CreateProductMonthlyExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset ProductIdOffset = default(StringOffset), + SCHALE.Common.FlatData.StoreType StoreType = SCHALE.Common.FlatData.StoreType.None, + long Price = 0, + StringOffset PriceReferenceOffset = default(StringOffset), + SCHALE.Common.FlatData.ProductTagType ProductTagType = SCHALE.Common.FlatData.ProductTagType.Monthly, + long MonthlyDays = 0, + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ParcelAmountOffset = default(VectorOffset), + long EnterCostReduceGroupId = 0, + VectorOffset DailyParcelTypeOffset = default(VectorOffset), + VectorOffset DailyParcelIdOffset = default(VectorOffset), + VectorOffset DailyParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(14); + ProductMonthlyExcel.AddEnterCostReduceGroupId(builder, EnterCostReduceGroupId); + ProductMonthlyExcel.AddMonthlyDays(builder, MonthlyDays); + ProductMonthlyExcel.AddPrice(builder, Price); + ProductMonthlyExcel.AddId(builder, Id); + ProductMonthlyExcel.AddDailyParcelAmount(builder, DailyParcelAmountOffset); + ProductMonthlyExcel.AddDailyParcelId(builder, DailyParcelIdOffset); + ProductMonthlyExcel.AddDailyParcelType(builder, DailyParcelTypeOffset); + ProductMonthlyExcel.AddParcelAmount(builder, ParcelAmountOffset); + ProductMonthlyExcel.AddParcelId(builder, ParcelIdOffset); + ProductMonthlyExcel.AddParcelType_(builder, ParcelType_Offset); + ProductMonthlyExcel.AddProductTagType(builder, ProductTagType); + ProductMonthlyExcel.AddPriceReference(builder, PriceReferenceOffset); + ProductMonthlyExcel.AddStoreType(builder, StoreType); + ProductMonthlyExcel.AddProductId(builder, ProductIdOffset); + return ProductMonthlyExcel.EndProductMonthlyExcel(builder); + } + + public static void StartProductMonthlyExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddProductId(FlatBufferBuilder builder, StringOffset productIdOffset) { builder.AddOffset(1, productIdOffset.Value, 0); } + public static void AddStoreType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StoreType storeType) { builder.AddInt(2, (int)storeType, 0); } + public static void AddPrice(FlatBufferBuilder builder, long price) { builder.AddLong(3, price, 0); } + public static void AddPriceReference(FlatBufferBuilder builder, StringOffset priceReferenceOffset) { builder.AddOffset(4, priceReferenceOffset.Value, 0); } + public static void AddProductTagType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductTagType productTagType) { builder.AddInt(5, (int)productTagType, 0); } + public static void AddMonthlyDays(FlatBufferBuilder builder, long monthlyDays) { builder.AddLong(6, monthlyDays, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(7, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(8, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddParcelAmount(FlatBufferBuilder builder, VectorOffset parcelAmountOffset) { builder.AddOffset(9, parcelAmountOffset.Value, 0); } + public static VectorOffset CreateParcelAmountVector(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 CreateParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddEnterCostReduceGroupId(FlatBufferBuilder builder, long enterCostReduceGroupId) { builder.AddLong(10, enterCostReduceGroupId, 0); } + public static void AddDailyParcelType(FlatBufferBuilder builder, VectorOffset dailyParcelTypeOffset) { builder.AddOffset(11, dailyParcelTypeOffset.Value, 0); } + public static VectorOffset CreateDailyParcelTypeVector(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 CreateDailyParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDailyParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddDailyParcelId(FlatBufferBuilder builder, VectorOffset dailyParcelIdOffset) { builder.AddOffset(12, dailyParcelIdOffset.Value, 0); } + public static VectorOffset CreateDailyParcelIdVector(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 CreateDailyParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDailyParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDailyParcelAmount(FlatBufferBuilder builder, VectorOffset dailyParcelAmountOffset) { builder.AddOffset(13, dailyParcelAmountOffset.Value, 0); } + public static VectorOffset CreateDailyParcelAmountVector(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 CreateDailyParcelAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDailyParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDailyParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndProductMonthlyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProductMonthlyExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*ProductId*/, false) + && verifier.VerifyField(tablePos, 8 /*StoreType*/, 4 /*SCHALE.Common.FlatData.StoreType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Price*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*PriceReference*/, false) + && verifier.VerifyField(tablePos, 14 /*ProductTagType*/, 4 /*SCHALE.Common.FlatData.ProductTagType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*MonthlyDays*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*ParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 24 /*EnterCostReduceGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*DailyParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 28 /*DailyParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*DailyParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs b/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs new file mode 100644 index 0000000..23f7cab --- /dev/null +++ b/SCHALE.Common/FlatData/ProductMonthlyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ProductMonthlyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProductMonthlyExcelTable GetRootAsProductMonthlyExcelTable(ByteBuffer _bb) { return GetRootAsProductMonthlyExcelTable(_bb, new ProductMonthlyExcelTable()); } + public static ProductMonthlyExcelTable GetRootAsProductMonthlyExcelTable(ByteBuffer _bb, ProductMonthlyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProductMonthlyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ProductMonthlyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ProductMonthlyExcel?)(new SCHALE.Common.FlatData.ProductMonthlyExcel()).__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 CreateProductMonthlyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ProductMonthlyExcelTable.AddDataList(builder, DataListOffset); + return ProductMonthlyExcelTable.EndProductMonthlyExcelTable(builder); + } + + public static void StartProductMonthlyExcelTable(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 EndProductMonthlyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProductMonthlyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ProductMonthlyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProductTagType.cs b/SCHALE.Common/FlatData/ProductTagType.cs new file mode 100644 index 0000000..f1e4dcc --- /dev/null +++ b/SCHALE.Common/FlatData/ProductTagType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProductTagType : int +{ + Monthly = 0, + Weekly = 1, + Biweekly = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ProductionStep.cs b/SCHALE.Common/FlatData/ProductionStep.cs new file mode 100644 index 0000000..eb7bb26 --- /dev/null +++ b/SCHALE.Common/FlatData/ProductionStep.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProductionStep : int +{ + ToDo = 0, + Doing = 1, + Complete = 2, + Release = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ProjectileAction.cs b/SCHALE.Common/FlatData/ProjectileAction.cs new file mode 100644 index 0000000..40c6d4e --- /dev/null +++ b/SCHALE.Common/FlatData/ProjectileAction.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProjectileAction : int +{ + None = 0, + Damage = 1, + Heal = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ProjectileType.cs b/SCHALE.Common/FlatData/ProjectileType.cs new file mode 100644 index 0000000..caeb865 --- /dev/null +++ b/SCHALE.Common/FlatData/ProjectileType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ProjectileType : int +{ + Guided = 0, + Ground = 1, + GuidedExplosion = 2, + GroundConstDistance = 3, + AirConstDistance = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/PropMotion.cs b/SCHALE.Common/FlatData/PropMotion.cs new file mode 100644 index 0000000..0c1e87d --- /dev/null +++ b/SCHALE.Common/FlatData/PropMotion.cs @@ -0,0 +1,78 @@ +// +// 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 PropMotion : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PropMotion GetRootAsPropMotion(ByteBuffer _bb) { return GetRootAsPropMotion(_bb, new PropMotion()); } + public static PropMotion GetRootAsPropMotion(ByteBuffer _bb, PropMotion obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PropMotion __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Name { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(4); } + public SCHALE.Common.FlatData.PropVector3? Positions(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.PropVector3?)(new SCHALE.Common.FlatData.PropVector3()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int PositionsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.PropVector3? Rotations(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PropVector3?)(new SCHALE.Common.FlatData.PropVector3()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int RotationsLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreatePropMotion(FlatBufferBuilder builder, + StringOffset NameOffset = default(StringOffset), + VectorOffset PositionsOffset = default(VectorOffset), + VectorOffset RotationsOffset = default(VectorOffset)) { + builder.StartTable(3); + PropMotion.AddRotations(builder, RotationsOffset); + PropMotion.AddPositions(builder, PositionsOffset); + PropMotion.AddName(builder, NameOffset); + return PropMotion.EndPropMotion(builder); + } + + public static void StartPropMotion(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddName(FlatBufferBuilder builder, StringOffset nameOffset) { builder.AddOffset(0, nameOffset.Value, 0); } + public static void AddPositions(FlatBufferBuilder builder, VectorOffset positionsOffset) { builder.AddOffset(1, positionsOffset.Value, 0); } + public static VectorOffset CreatePositionsVector(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 CreatePositionsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePositionsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePositionsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPositionsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRotations(FlatBufferBuilder builder, VectorOffset rotationsOffset) { builder.AddOffset(2, rotationsOffset.Value, 0); } + public static VectorOffset CreateRotationsVector(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 CreateRotationsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRotationsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRotationsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRotationsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndPropMotion(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PropMotionVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Name*/, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*Positions*/, SCHALE.Common.FlatData.PropVector3Verify.Verify, false) + && verifier.VerifyVectorOfTables(tablePos, 8 /*Rotations*/, SCHALE.Common.FlatData.PropVector3Verify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PropRootMotionFlat.cs b/SCHALE.Common/FlatData/PropRootMotionFlat.cs new file mode 100644 index 0000000..57565df --- /dev/null +++ b/SCHALE.Common/FlatData/PropRootMotionFlat.cs @@ -0,0 +1,56 @@ +// +// 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 PropRootMotionFlat : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PropRootMotionFlat GetRootAsPropRootMotionFlat(ByteBuffer _bb) { return GetRootAsPropRootMotionFlat(_bb, new PropRootMotionFlat()); } + public static PropRootMotionFlat GetRootAsPropRootMotionFlat(ByteBuffer _bb, PropRootMotionFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PropRootMotionFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.PropMotion? RootMotions(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.PropMotion?)(new SCHALE.Common.FlatData.PropMotion()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int RootMotionsLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreatePropRootMotionFlat(FlatBufferBuilder builder, + VectorOffset RootMotionsOffset = default(VectorOffset)) { + builder.StartTable(1); + PropRootMotionFlat.AddRootMotions(builder, RootMotionsOffset); + return PropRootMotionFlat.EndPropRootMotionFlat(builder); + } + + public static void StartPropRootMotionFlat(FlatBufferBuilder builder) { builder.StartTable(1); } + public static void AddRootMotions(FlatBufferBuilder builder, VectorOffset rootMotionsOffset) { builder.AddOffset(0, rootMotionsOffset.Value, 0); } + public static VectorOffset CreateRootMotionsVector(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 CreateRootMotionsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRootMotionsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRootMotionsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRootMotionsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndPropRootMotionFlat(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PropRootMotionFlatVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*RootMotions*/, SCHALE.Common.FlatData.PropMotionVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PropVector3.cs b/SCHALE.Common/FlatData/PropVector3.cs new file mode 100644 index 0000000..f99afe5 --- /dev/null +++ b/SCHALE.Common/FlatData/PropVector3.cs @@ -0,0 +1,60 @@ +// +// 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 PropVector3 : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static PropVector3 GetRootAsPropVector3(ByteBuffer _bb) { return GetRootAsPropVector3(_bb, new PropVector3()); } + public static PropVector3 GetRootAsPropVector3(ByteBuffer _bb, PropVector3 obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public PropVector3 __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public float X { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float Z { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + + public static Offset CreatePropVector3(FlatBufferBuilder builder, + float X = 0.0f, + float Y = 0.0f, + float Z = 0.0f) { + builder.StartTable(3); + PropVector3.AddZ(builder, Z); + PropVector3.AddY(builder, Y); + PropVector3.AddX(builder, X); + return PropVector3.EndPropVector3(builder); + } + + public static void StartPropVector3(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddX(FlatBufferBuilder builder, float x) { builder.AddFloat(0, x, 0.0f); } + public static void AddY(FlatBufferBuilder builder, float y) { builder.AddFloat(1, y, 0.0f); } + public static void AddZ(FlatBufferBuilder builder, float z) { builder.AddFloat(2, z, 0.0f); } + public static Offset EndPropVector3(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class PropVector3Verify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*X*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Y*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Z*/, 4 /*float*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProtocolSettingExcel.cs b/SCHALE.Common/FlatData/ProtocolSettingExcel.cs new file mode 100644 index 0000000..fce3a13 --- /dev/null +++ b/SCHALE.Common/FlatData/ProtocolSettingExcel.cs @@ -0,0 +1,76 @@ +// +// 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 ProtocolSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProtocolSettingExcel GetRootAsProtocolSettingExcel(ByteBuffer _bb) { return GetRootAsProtocolSettingExcel(_bb, new ProtocolSettingExcel()); } + public static ProtocolSettingExcel GetRootAsProtocolSettingExcel(ByteBuffer _bb, ProtocolSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProtocolSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string Protocol { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetProtocolBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetProtocolBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetProtocolArray() { return __p.__vector_as_array(4); } + public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } + public bool Currency { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool Inventory { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool Mail { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateProtocolSettingExcel(FlatBufferBuilder builder, + StringOffset ProtocolOffset = default(StringOffset), + SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent = SCHALE.Common.FlatData.OpenConditionContent.Shop, + bool Currency = false, + bool Inventory = false, + bool Mail = false) { + builder.StartTable(5); + ProtocolSettingExcel.AddOpenConditionContent(builder, OpenConditionContent); + ProtocolSettingExcel.AddProtocol(builder, ProtocolOffset); + ProtocolSettingExcel.AddMail(builder, Mail); + ProtocolSettingExcel.AddInventory(builder, Inventory); + ProtocolSettingExcel.AddCurrency(builder, Currency); + return ProtocolSettingExcel.EndProtocolSettingExcel(builder); + } + + public static void StartProtocolSettingExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddProtocol(FlatBufferBuilder builder, StringOffset protocolOffset) { builder.AddOffset(0, protocolOffset.Value, 0); } + public static void AddOpenConditionContent(FlatBufferBuilder builder, SCHALE.Common.FlatData.OpenConditionContent openConditionContent) { builder.AddInt(1, (int)openConditionContent, 0); } + public static void AddCurrency(FlatBufferBuilder builder, bool currency) { builder.AddBool(2, currency, false); } + public static void AddInventory(FlatBufferBuilder builder, bool inventory) { builder.AddBool(3, inventory, false); } + public static void AddMail(FlatBufferBuilder builder, bool mail) { builder.AddBool(4, mail, false); } + public static Offset EndProtocolSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProtocolSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*Protocol*/, false) + && verifier.VerifyField(tablePos, 6 /*OpenConditionContent*/, 4 /*SCHALE.Common.FlatData.OpenConditionContent*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Currency*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*Inventory*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*Mail*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs b/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs new file mode 100644 index 0000000..977ce1d --- /dev/null +++ b/SCHALE.Common/FlatData/ProtocolSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ProtocolSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ProtocolSettingExcelTable GetRootAsProtocolSettingExcelTable(ByteBuffer _bb) { return GetRootAsProtocolSettingExcelTable(_bb, new ProtocolSettingExcelTable()); } + public static ProtocolSettingExcelTable GetRootAsProtocolSettingExcelTable(ByteBuffer _bb, ProtocolSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ProtocolSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ProtocolSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ProtocolSettingExcel?)(new SCHALE.Common.FlatData.ProtocolSettingExcel()).__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 CreateProtocolSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ProtocolSettingExcelTable.AddDataList(builder, DataListOffset); + return ProtocolSettingExcelTable.EndProtocolSettingExcelTable(builder); + } + + public static void StartProtocolSettingExcelTable(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 EndProtocolSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ProtocolSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ProtocolSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/PurchaseCountResetType.cs b/SCHALE.Common/FlatData/PurchaseCountResetType.cs new file mode 100644 index 0000000..bf7fed6 --- /dev/null +++ b/SCHALE.Common/FlatData/PurchaseCountResetType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PurchaseCountResetType : int +{ + None = 0, + Day = 1, + Week = 2, + Month = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/PurchasePeriodType.cs b/SCHALE.Common/FlatData/PurchasePeriodType.cs new file mode 100644 index 0000000..740a7e7 --- /dev/null +++ b/SCHALE.Common/FlatData/PurchasePeriodType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PurchasePeriodType : int +{ + None = 0, + Day = 1, + Week = 2, + Month = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/PurchaseServerTag.cs b/SCHALE.Common/FlatData/PurchaseServerTag.cs new file mode 100644 index 0000000..6a9a4be --- /dev/null +++ b/SCHALE.Common/FlatData/PurchaseServerTag.cs @@ -0,0 +1,24 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PurchaseServerTag : int +{ + Audit = 0, + PreAudit = 1, + Production = 2, + Hotfix = 3, + Standby2 = 4, + Standby1 = 5, + Major = 6, + Minor = 7, + Temp = 8, + Test = 9, + TestIn = 10, +}; + + +} diff --git a/SCHALE.Common/FlatData/PurchaseSourceType.cs b/SCHALE.Common/FlatData/PurchaseSourceType.cs new file mode 100644 index 0000000..55c70e9 --- /dev/null +++ b/SCHALE.Common/FlatData/PurchaseSourceType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PurchaseSourceType : int +{ + None = 0, + Product = 1, + ProductMonthly = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/PurchaseStatusCode.cs b/SCHALE.Common/FlatData/PurchaseStatusCode.cs new file mode 100644 index 0000000..a4c5ac2 --- /dev/null +++ b/SCHALE.Common/FlatData/PurchaseStatusCode.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum PurchaseStatusCode : int +{ + None = 0, + Start = 1, + PublishSuccess = 2, + End = 3, + Error = 4, + DuplicateOrder = 5, + Refund = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs b/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs new file mode 100644 index 0000000..d4c560e --- /dev/null +++ b/SCHALE.Common/FlatData/RaidRankingRewardExcel.cs @@ -0,0 +1,142 @@ +// +// 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 RaidRankingRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidRankingRewardExcel GetRootAsRaidRankingRewardExcel(ByteBuffer _bb) { return GetRootAsRaidRankingRewardExcel(_bb, new RaidRankingRewardExcel()); } + public static RaidRankingRewardExcel GetRootAsRaidRankingRewardExcel(ByteBuffer _bb, RaidRankingRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidRankingRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long RankingRewardGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankStart { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RankEnd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PercentRankStart { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PercentRankEnd { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Tier { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(18); 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(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(18); 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 RewardParcelUniqueId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelUniqueIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelUniqueIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetRewardParcelUniqueIdArray() { return __p.__vector_as_array(20); } + public string RewardParcelUniqueName(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int RewardParcelUniqueNameLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } + public long RewardParcelAmount(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(24); } + + public static Offset CreateRaidRankingRewardExcel(FlatBufferBuilder builder, + long RankingRewardGroupId = 0, + long Id = 0, + long RankStart = 0, + long RankEnd = 0, + long PercentRankStart = 0, + long PercentRankEnd = 0, + int Tier = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset RewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(11); + RaidRankingRewardExcel.AddPercentRankEnd(builder, PercentRankEnd); + RaidRankingRewardExcel.AddPercentRankStart(builder, PercentRankStart); + RaidRankingRewardExcel.AddRankEnd(builder, RankEnd); + RaidRankingRewardExcel.AddRankStart(builder, RankStart); + RaidRankingRewardExcel.AddId(builder, Id); + RaidRankingRewardExcel.AddRankingRewardGroupId(builder, RankingRewardGroupId); + RaidRankingRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + RaidRankingRewardExcel.AddRewardParcelUniqueName(builder, RewardParcelUniqueNameOffset); + RaidRankingRewardExcel.AddRewardParcelUniqueId(builder, RewardParcelUniqueIdOffset); + RaidRankingRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + RaidRankingRewardExcel.AddTier(builder, Tier); + return RaidRankingRewardExcel.EndRaidRankingRewardExcel(builder); + } + + public static void StartRaidRankingRewardExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddRankingRewardGroupId(FlatBufferBuilder builder, long rankingRewardGroupId) { builder.AddLong(0, rankingRewardGroupId, 0); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(1, id, 0); } + public static void AddRankStart(FlatBufferBuilder builder, long rankStart) { builder.AddLong(2, rankStart, 0); } + public static void AddRankEnd(FlatBufferBuilder builder, long rankEnd) { builder.AddLong(3, rankEnd, 0); } + public static void AddPercentRankStart(FlatBufferBuilder builder, long percentRankStart) { builder.AddLong(4, percentRankStart, 0); } + public static void AddPercentRankEnd(FlatBufferBuilder builder, long percentRankEnd) { builder.AddLong(5, percentRankEnd, 0); } + public static void AddTier(FlatBufferBuilder builder, int tier) { builder.AddInt(6, tier, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(7, 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 AddRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueIdOffset) { builder.AddOffset(8, rewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueIdVector(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 CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset rewardParcelUniqueNameOffset) { builder.AddOffset(9, rewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, VectorOffset rewardParcelAmountOffset) { builder.AddOffset(10, 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 EndRaidRankingRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidRankingRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RankingRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*RankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*RankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*PercentRankStart*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PercentRankEnd*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*Tier*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*RewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 22 /*RewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs new file mode 100644 index 0000000..fa7c7d7 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidRankingRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RaidRankingRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidRankingRewardExcelTable GetRootAsRaidRankingRewardExcelTable(ByteBuffer _bb) { return GetRootAsRaidRankingRewardExcelTable(_bb, new RaidRankingRewardExcelTable()); } + public static RaidRankingRewardExcelTable GetRootAsRaidRankingRewardExcelTable(ByteBuffer _bb, RaidRankingRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidRankingRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RaidRankingRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RaidRankingRewardExcel?)(new SCHALE.Common.FlatData.RaidRankingRewardExcel()).__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 CreateRaidRankingRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RaidRankingRewardExcelTable.AddDataList(builder, DataListOffset); + return RaidRankingRewardExcelTable.EndRaidRankingRewardExcelTable(builder); + } + + public static void StartRaidRankingRewardExcelTable(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 EndRaidRankingRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidRankingRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RaidRankingRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs new file mode 100644 index 0000000..1103a9c --- /dev/null +++ b/SCHALE.Common/FlatData/RaidSeasonManageExcel.cs @@ -0,0 +1,143 @@ +// +// 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 RaidSeasonManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidSeasonManageExcel GetRootAsRaidSeasonManageExcel(ByteBuffer _bb) { return GetRootAsRaidSeasonManageExcel(_bb, new RaidSeasonManageExcel()); } + public static RaidSeasonManageExcel GetRootAsRaidSeasonManageExcel(ByteBuffer _bb, RaidSeasonManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidSeasonManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SeasonDisplay { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SeasonStartData { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonStartDataBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSeasonStartDataBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSeasonStartDataArray() { return __p.__vector_as_array(8); } + public string SeasonEndData { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSeasonEndDataBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSeasonEndDataBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSeasonEndDataArray() { return __p.__vector_as_array(10); } + public string SettlementEndDate { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSettlementEndDateBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSettlementEndDateBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSettlementEndDateArray() { return __p.__vector_as_array(12); } + public string OpenRaidBossGroup(int j) { int o = __p.__offset(14); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int OpenRaidBossGroupLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public long RankingRewardGroupId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MaxSeasonRewardGauage { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long StackedSeasonRewardGauge(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StackedSeasonRewardGaugeLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStackedSeasonRewardGaugeBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetStackedSeasonRewardGaugeBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetStackedSeasonRewardGaugeArray() { return __p.__vector_as_array(20); } + public long SeasonRewardId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardIdBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetSeasonRewardIdBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetSeasonRewardIdArray() { return __p.__vector_as_array(22); } + + public static Offset CreateRaidSeasonManageExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long SeasonDisplay = 0, + StringOffset SeasonStartDataOffset = default(StringOffset), + StringOffset SeasonEndDataOffset = default(StringOffset), + StringOffset SettlementEndDateOffset = default(StringOffset), + VectorOffset OpenRaidBossGroupOffset = default(VectorOffset), + long RankingRewardGroupId = 0, + int MaxSeasonRewardGauage = 0, + VectorOffset StackedSeasonRewardGaugeOffset = default(VectorOffset), + VectorOffset SeasonRewardIdOffset = default(VectorOffset)) { + builder.StartTable(10); + RaidSeasonManageExcel.AddRankingRewardGroupId(builder, RankingRewardGroupId); + RaidSeasonManageExcel.AddSeasonDisplay(builder, SeasonDisplay); + RaidSeasonManageExcel.AddSeasonId(builder, SeasonId); + RaidSeasonManageExcel.AddSeasonRewardId(builder, SeasonRewardIdOffset); + RaidSeasonManageExcel.AddStackedSeasonRewardGauge(builder, StackedSeasonRewardGaugeOffset); + RaidSeasonManageExcel.AddMaxSeasonRewardGauage(builder, MaxSeasonRewardGauage); + RaidSeasonManageExcel.AddOpenRaidBossGroup(builder, OpenRaidBossGroupOffset); + RaidSeasonManageExcel.AddSettlementEndDate(builder, SettlementEndDateOffset); + RaidSeasonManageExcel.AddSeasonEndData(builder, SeasonEndDataOffset); + RaidSeasonManageExcel.AddSeasonStartData(builder, SeasonStartDataOffset); + return RaidSeasonManageExcel.EndRaidSeasonManageExcel(builder); + } + + public static void StartRaidSeasonManageExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddSeasonDisplay(FlatBufferBuilder builder, long seasonDisplay) { builder.AddLong(1, seasonDisplay, 0); } + public static void AddSeasonStartData(FlatBufferBuilder builder, StringOffset seasonStartDataOffset) { builder.AddOffset(2, seasonStartDataOffset.Value, 0); } + public static void AddSeasonEndData(FlatBufferBuilder builder, StringOffset seasonEndDataOffset) { builder.AddOffset(3, seasonEndDataOffset.Value, 0); } + public static void AddSettlementEndDate(FlatBufferBuilder builder, StringOffset settlementEndDateOffset) { builder.AddOffset(4, settlementEndDateOffset.Value, 0); } + public static void AddOpenRaidBossGroup(FlatBufferBuilder builder, VectorOffset openRaidBossGroupOffset) { builder.AddOffset(5, openRaidBossGroupOffset.Value, 0); } + public static VectorOffset CreateOpenRaidBossGroupVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateOpenRaidBossGroupVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenRaidBossGroupVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenRaidBossGroupVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOpenRaidBossGroupVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRankingRewardGroupId(FlatBufferBuilder builder, long rankingRewardGroupId) { builder.AddLong(6, rankingRewardGroupId, 0); } + public static void AddMaxSeasonRewardGauage(FlatBufferBuilder builder, int maxSeasonRewardGauage) { builder.AddInt(7, maxSeasonRewardGauage, 0); } + public static void AddStackedSeasonRewardGauge(FlatBufferBuilder builder, VectorOffset stackedSeasonRewardGaugeOffset) { builder.AddOffset(8, stackedSeasonRewardGaugeOffset.Value, 0); } + public static VectorOffset CreateStackedSeasonRewardGaugeVector(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 CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStackedSeasonRewardGaugeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStackedSeasonRewardGaugeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSeasonRewardId(FlatBufferBuilder builder, VectorOffset seasonRewardIdOffset) { builder.AddOffset(9, seasonRewardIdOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardIdVector(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 CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndRaidSeasonManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidSeasonManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SeasonDisplay*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*SeasonStartData*/, false) + && verifier.VerifyString(tablePos, 10 /*SeasonEndData*/, false) + && verifier.VerifyString(tablePos, 12 /*SettlementEndDate*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 14 /*OpenRaidBossGroup*/, false) + && verifier.VerifyField(tablePos, 16 /*RankingRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*MaxSeasonRewardGauage*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*StackedSeasonRewardGauge*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*SeasonRewardId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs new file mode 100644 index 0000000..cdd327e --- /dev/null +++ b/SCHALE.Common/FlatData/RaidSeasonManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RaidSeasonManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidSeasonManageExcelTable GetRootAsRaidSeasonManageExcelTable(ByteBuffer _bb) { return GetRootAsRaidSeasonManageExcelTable(_bb, new RaidSeasonManageExcelTable()); } + public static RaidSeasonManageExcelTable GetRootAsRaidSeasonManageExcelTable(ByteBuffer _bb, RaidSeasonManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidSeasonManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RaidSeasonManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RaidSeasonManageExcel?)(new SCHALE.Common.FlatData.RaidSeasonManageExcel()).__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 CreateRaidSeasonManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RaidSeasonManageExcelTable.AddDataList(builder, DataListOffset); + return RaidSeasonManageExcelTable.EndRaidSeasonManageExcelTable(builder); + } + + public static void StartRaidSeasonManageExcelTable(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 EndRaidSeasonManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidSeasonManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RaidSeasonManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidSeasonType.cs b/SCHALE.Common/FlatData/RaidSeasonType.cs new file mode 100644 index 0000000..dbe2d49 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidSeasonType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum RaidSeasonType : int +{ + None = 0, + Open = 1, + Close = 2, + Settlement = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/RaidStageExcel.cs b/SCHALE.Common/FlatData/RaidStageExcel.cs new file mode 100644 index 0000000..8b5b9c7 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageExcel.cs @@ -0,0 +1,304 @@ +// +// 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 RaidStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageExcel GetRootAsRaidStageExcel(ByteBuffer _bb) { return GetRootAsRaidStageExcel(_bb, new RaidStageExcel()); } + public static RaidStageExcel GetRootAsRaidStageExcel(ByteBuffer _bb, RaidStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageExcel __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 UseBossIndex { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseBossAIPhaseSync { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string RaidBossGroup { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRaidBossGroupBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetRaidBossGroupBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetRaidBossGroupArray() { return __p.__vector_as_array(10); } + public string PortraitPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPortraitPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPortraitPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPortraitPathArray() { return __p.__vector_as_array(12); } + public string BGPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBGPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetBGPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetBGPathArray() { return __p.__vector_as_array(14); } + public long RaidCharacterId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BossCharacterId(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BossCharacterIdLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBossCharacterIdBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetBossCharacterIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(18); } + public SCHALE.Common.FlatData.Difficulty Difficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.Difficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Difficulty.Normal; } } + public bool DifficultyOpenCondition { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long MaxPlayerCount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RaidRoomLifeTime { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BattleDuration { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GroundDevName { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroundDevNameBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetGroundDevNameBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetGroundDevNameArray() { return __p.__vector_as_array(32); } + public string EnterTimeLine { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEnterTimeLineBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetEnterTimeLineBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetEnterTimeLineArray() { return __p.__vector_as_array(34); } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public long DefaultClearScore { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaximumScore { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PerSecondMinusScore { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long HPPercentScore { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MinimumAcquisitionScore { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MaximumAcquisitionScore { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidRewardGroupId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BattleReadyTimelinePath(int j) { int o = __p.__offset(52); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int BattleReadyTimelinePathLength { get { int o = __p.__offset(52); return o != 0 ? __p.__vector_len(o) : 0; } } + public int BattleReadyTimelinePhaseStart(int j) { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseStartLength { get { int o = __p.__offset(54); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_span(54, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_arraysegment(54); } +#endif + public int[] GetBattleReadyTimelinePhaseStartArray() { return __p.__vector_as_array(54); } + public int BattleReadyTimelinePhaseEnd(int j) { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseEndLength { get { int o = __p.__offset(56); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_span(56, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_arraysegment(56); } +#endif + public int[] GetBattleReadyTimelinePhaseEndArray() { return __p.__vector_as_array(56); } + public string VictoryTimelinePath { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(58); } + public string PhaseChangeTimelinePath { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_span(60, 1); } +#else + public ArraySegment? GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public byte[] GetPhaseChangeTimelinePathArray() { return __p.__vector_as_array(60); } + public long TimeLinePhase { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint EnterScenarioKey { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint ClearScenarioKey { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool ShowSkillCard { get { int o = __p.__offset(68); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint BossBGInfoKey { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(72); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateRaidStageExcel(FlatBufferBuilder builder, + long Id = 0, + bool UseBossIndex = false, + bool UseBossAIPhaseSync = false, + StringOffset RaidBossGroupOffset = default(StringOffset), + StringOffset PortraitPathOffset = default(StringOffset), + StringOffset BGPathOffset = default(StringOffset), + long RaidCharacterId = 0, + VectorOffset BossCharacterIdOffset = default(VectorOffset), + SCHALE.Common.FlatData.Difficulty Difficulty = SCHALE.Common.FlatData.Difficulty.Normal, + bool DifficultyOpenCondition = false, + long MaxPlayerCount = 0, + int RaidRoomLifeTime = 0, + long BattleDuration = 0, + long GroundId = 0, + StringOffset GroundDevNameOffset = default(StringOffset), + StringOffset EnterTimeLineOffset = default(StringOffset), + SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment = SCHALE.Common.FlatData.TacticEnvironment.None, + long DefaultClearScore = 0, + long MaximumScore = 0, + long PerSecondMinusScore = 0, + long HPPercentScore = 0, + long MinimumAcquisitionScore = 0, + long MaximumAcquisitionScore = 0, + long RaidRewardGroupId = 0, + VectorOffset BattleReadyTimelinePathOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseStartOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseEndOffset = default(VectorOffset), + StringOffset VictoryTimelinePathOffset = default(StringOffset), + StringOffset PhaseChangeTimelinePathOffset = default(StringOffset), + long TimeLinePhase = 0, + uint EnterScenarioKey = 0, + uint ClearScenarioKey = 0, + bool ShowSkillCard = false, + uint BossBGInfoKey = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(35); + RaidStageExcel.AddTimeLinePhase(builder, TimeLinePhase); + RaidStageExcel.AddRaidRewardGroupId(builder, RaidRewardGroupId); + RaidStageExcel.AddMaximumAcquisitionScore(builder, MaximumAcquisitionScore); + RaidStageExcel.AddMinimumAcquisitionScore(builder, MinimumAcquisitionScore); + RaidStageExcel.AddHPPercentScore(builder, HPPercentScore); + RaidStageExcel.AddPerSecondMinusScore(builder, PerSecondMinusScore); + RaidStageExcel.AddMaximumScore(builder, MaximumScore); + RaidStageExcel.AddDefaultClearScore(builder, DefaultClearScore); + RaidStageExcel.AddGroundId(builder, GroundId); + RaidStageExcel.AddBattleDuration(builder, BattleDuration); + RaidStageExcel.AddMaxPlayerCount(builder, MaxPlayerCount); + RaidStageExcel.AddRaidCharacterId(builder, RaidCharacterId); + RaidStageExcel.AddId(builder, Id); + RaidStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + RaidStageExcel.AddBossBGInfoKey(builder, BossBGInfoKey); + RaidStageExcel.AddClearScenarioKey(builder, ClearScenarioKey); + RaidStageExcel.AddEnterScenarioKey(builder, EnterScenarioKey); + RaidStageExcel.AddPhaseChangeTimelinePath(builder, PhaseChangeTimelinePathOffset); + RaidStageExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); + RaidStageExcel.AddBattleReadyTimelinePhaseEnd(builder, BattleReadyTimelinePhaseEndOffset); + RaidStageExcel.AddBattleReadyTimelinePhaseStart(builder, BattleReadyTimelinePhaseStartOffset); + RaidStageExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); + RaidStageExcel.AddTacticEnvironment(builder, TacticEnvironment); + RaidStageExcel.AddEnterTimeLine(builder, EnterTimeLineOffset); + RaidStageExcel.AddGroundDevName(builder, GroundDevNameOffset); + RaidStageExcel.AddRaidRoomLifeTime(builder, RaidRoomLifeTime); + RaidStageExcel.AddDifficulty(builder, Difficulty); + RaidStageExcel.AddBossCharacterId(builder, BossCharacterIdOffset); + RaidStageExcel.AddBGPath(builder, BGPathOffset); + RaidStageExcel.AddPortraitPath(builder, PortraitPathOffset); + RaidStageExcel.AddRaidBossGroup(builder, RaidBossGroupOffset); + RaidStageExcel.AddShowSkillCard(builder, ShowSkillCard); + RaidStageExcel.AddDifficultyOpenCondition(builder, DifficultyOpenCondition); + RaidStageExcel.AddUseBossAIPhaseSync(builder, UseBossAIPhaseSync); + RaidStageExcel.AddUseBossIndex(builder, UseBossIndex); + return RaidStageExcel.EndRaidStageExcel(builder); + } + + public static void StartRaidStageExcel(FlatBufferBuilder builder) { builder.StartTable(35); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddUseBossIndex(FlatBufferBuilder builder, bool useBossIndex) { builder.AddBool(1, useBossIndex, false); } + public static void AddUseBossAIPhaseSync(FlatBufferBuilder builder, bool useBossAIPhaseSync) { builder.AddBool(2, useBossAIPhaseSync, false); } + public static void AddRaidBossGroup(FlatBufferBuilder builder, StringOffset raidBossGroupOffset) { builder.AddOffset(3, raidBossGroupOffset.Value, 0); } + public static void AddPortraitPath(FlatBufferBuilder builder, StringOffset portraitPathOffset) { builder.AddOffset(4, portraitPathOffset.Value, 0); } + public static void AddBGPath(FlatBufferBuilder builder, StringOffset bGPathOffset) { builder.AddOffset(5, bGPathOffset.Value, 0); } + public static void AddRaidCharacterId(FlatBufferBuilder builder, long raidCharacterId) { builder.AddLong(6, raidCharacterId, 0); } + public static void AddBossCharacterId(FlatBufferBuilder builder, VectorOffset bossCharacterIdOffset) { builder.AddOffset(7, bossCharacterIdOffset.Value, 0); } + public static VectorOffset CreateBossCharacterIdVector(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 CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBossCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.Difficulty difficulty) { builder.AddInt(8, (int)difficulty, 0); } + public static void AddDifficultyOpenCondition(FlatBufferBuilder builder, bool difficultyOpenCondition) { builder.AddBool(9, difficultyOpenCondition, false); } + public static void AddMaxPlayerCount(FlatBufferBuilder builder, long maxPlayerCount) { builder.AddLong(10, maxPlayerCount, 0); } + public static void AddRaidRoomLifeTime(FlatBufferBuilder builder, int raidRoomLifeTime) { builder.AddInt(11, raidRoomLifeTime, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(12, battleDuration, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(13, groundId, 0); } + public static void AddGroundDevName(FlatBufferBuilder builder, StringOffset groundDevNameOffset) { builder.AddOffset(14, groundDevNameOffset.Value, 0); } + public static void AddEnterTimeLine(FlatBufferBuilder builder, StringOffset enterTimeLineOffset) { builder.AddOffset(15, enterTimeLineOffset.Value, 0); } + public static void AddTacticEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEnvironment tacticEnvironment) { builder.AddInt(16, (int)tacticEnvironment, 0); } + public static void AddDefaultClearScore(FlatBufferBuilder builder, long defaultClearScore) { builder.AddLong(17, defaultClearScore, 0); } + public static void AddMaximumScore(FlatBufferBuilder builder, long maximumScore) { builder.AddLong(18, maximumScore, 0); } + public static void AddPerSecondMinusScore(FlatBufferBuilder builder, long perSecondMinusScore) { builder.AddLong(19, perSecondMinusScore, 0); } + public static void AddHPPercentScore(FlatBufferBuilder builder, long hPPercentScore) { builder.AddLong(20, hPPercentScore, 0); } + public static void AddMinimumAcquisitionScore(FlatBufferBuilder builder, long minimumAcquisitionScore) { builder.AddLong(21, minimumAcquisitionScore, 0); } + public static void AddMaximumAcquisitionScore(FlatBufferBuilder builder, long maximumAcquisitionScore) { builder.AddLong(22, maximumAcquisitionScore, 0); } + public static void AddRaidRewardGroupId(FlatBufferBuilder builder, long raidRewardGroupId) { builder.AddLong(23, raidRewardGroupId, 0); } + public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePathOffset) { builder.AddOffset(24, battleReadyTimelinePathOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseStart(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseStartOffset) { builder.AddOffset(25, battleReadyTimelinePhaseStartOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVector(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 CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseEnd(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseEndOffset) { builder.AddOffset(26, battleReadyTimelinePhaseEndOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVector(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 CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(27, victoryTimelinePathOffset.Value, 0); } + public static void AddPhaseChangeTimelinePath(FlatBufferBuilder builder, StringOffset phaseChangeTimelinePathOffset) { builder.AddOffset(28, phaseChangeTimelinePathOffset.Value, 0); } + public static void AddTimeLinePhase(FlatBufferBuilder builder, long timeLinePhase) { builder.AddLong(29, timeLinePhase, 0); } + public static void AddEnterScenarioKey(FlatBufferBuilder builder, uint enterScenarioKey) { builder.AddUint(30, enterScenarioKey, 0); } + public static void AddClearScenarioKey(FlatBufferBuilder builder, uint clearScenarioKey) { builder.AddUint(31, clearScenarioKey, 0); } + public static void AddShowSkillCard(FlatBufferBuilder builder, bool showSkillCard) { builder.AddBool(32, showSkillCard, false); } + public static void AddBossBGInfoKey(FlatBufferBuilder builder, uint bossBGInfoKey) { builder.AddUint(33, bossBGInfoKey, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(34, (int)echelonExtensionType, 0); } + public static Offset EndRaidStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageExcelVerify +{ + 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 /*UseBossIndex*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*UseBossAIPhaseSync*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 10 /*RaidBossGroup*/, false) + && verifier.VerifyString(tablePos, 12 /*PortraitPath*/, false) + && verifier.VerifyString(tablePos, 14 /*BGPath*/, false) + && verifier.VerifyField(tablePos, 16 /*RaidCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*BossCharacterId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 20 /*Difficulty*/, 4 /*SCHALE.Common.FlatData.Difficulty*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*DifficultyOpenCondition*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*MaxPlayerCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*RaidRoomLifeTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 32 /*GroundDevName*/, false) + && verifier.VerifyString(tablePos, 34 /*EnterTimeLine*/, false) + && verifier.VerifyField(tablePos, 36 /*TacticEnvironment*/, 4 /*SCHALE.Common.FlatData.TacticEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*DefaultClearScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*MaximumScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 42 /*PerSecondMinusScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*HPPercentScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*MinimumAcquisitionScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*MaximumAcquisitionScore*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*RaidRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 52 /*BattleReadyTimelinePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 54 /*BattleReadyTimelinePhaseStart*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 56 /*BattleReadyTimelinePhaseEnd*/, 4 /*int*/, false) + && verifier.VerifyString(tablePos, 58 /*VictoryTimelinePath*/, false) + && verifier.VerifyString(tablePos, 60 /*PhaseChangeTimelinePath*/, false) + && verifier.VerifyField(tablePos, 62 /*TimeLinePhase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 64 /*EnterScenarioKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 66 /*ClearScenarioKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 68 /*ShowSkillCard*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 70 /*BossBGInfoKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 72 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStageExcelTable.cs b/SCHALE.Common/FlatData/RaidStageExcelTable.cs new file mode 100644 index 0000000..7bd9c80 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RaidStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageExcelTable GetRootAsRaidStageExcelTable(ByteBuffer _bb) { return GetRootAsRaidStageExcelTable(_bb, new RaidStageExcelTable()); } + public static RaidStageExcelTable GetRootAsRaidStageExcelTable(ByteBuffer _bb, RaidStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RaidStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RaidStageExcel?)(new SCHALE.Common.FlatData.RaidStageExcel()).__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 CreateRaidStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RaidStageExcelTable.AddDataList(builder, DataListOffset); + return RaidStageExcelTable.EndRaidStageExcelTable(builder); + } + + public static void StartRaidStageExcelTable(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 EndRaidStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RaidStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStageRewardExcel.cs b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs new file mode 100644 index 0000000..59fb043 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs @@ -0,0 +1,86 @@ +// +// 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 RaidStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageRewardExcel GetRootAsRaidStageRewardExcel(ByteBuffer _bb) { return GetRootAsRaidStageRewardExcel(_bb, new RaidStageRewardExcel()); } + public static RaidStageRewardExcel GetRootAsRaidStageRewardExcel(ByteBuffer _bb, RaidStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetClearStageRewardParcelUniqueNameArray() { return __p.__vector_as_array(14); } + public long ClearStageRewardAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateRaidStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + bool IsClearStageRewardHideInfo = false, + long ClearStageRewardProb = 0, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ClearStageRewardParcelUniqueID = 0, + StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), + long ClearStageRewardAmount = 0) { + builder.StartTable(7); + RaidStageRewardExcel.AddClearStageRewardAmount(builder, ClearStageRewardAmount); + RaidStageRewardExcel.AddClearStageRewardParcelUniqueID(builder, ClearStageRewardParcelUniqueID); + RaidStageRewardExcel.AddClearStageRewardProb(builder, ClearStageRewardProb); + RaidStageRewardExcel.AddGroupId(builder, GroupId); + RaidStageRewardExcel.AddClearStageRewardParcelUniqueName(builder, ClearStageRewardParcelUniqueNameOffset); + RaidStageRewardExcel.AddClearStageRewardParcelType(builder, ClearStageRewardParcelType); + RaidStageRewardExcel.AddIsClearStageRewardHideInfo(builder, IsClearStageRewardHideInfo); + return RaidStageRewardExcel.EndRaidStageRewardExcel(builder); + } + + public static void StartRaidStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddIsClearStageRewardHideInfo(FlatBufferBuilder builder, bool isClearStageRewardHideInfo) { builder.AddBool(1, isClearStageRewardHideInfo, false); } + public static void AddClearStageRewardProb(FlatBufferBuilder builder, long clearStageRewardProb) { builder.AddLong(2, clearStageRewardProb, 0); } + public static void AddClearStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType clearStageRewardParcelType) { builder.AddInt(3, (int)clearStageRewardParcelType, 0); } + public static void AddClearStageRewardParcelUniqueID(FlatBufferBuilder builder, long clearStageRewardParcelUniqueID) { builder.AddLong(4, clearStageRewardParcelUniqueID, 0); } + public static void AddClearStageRewardParcelUniqueName(FlatBufferBuilder builder, StringOffset clearStageRewardParcelUniqueNameOffset) { builder.AddOffset(5, clearStageRewardParcelUniqueNameOffset.Value, 0); } + public static void AddClearStageRewardAmount(FlatBufferBuilder builder, long clearStageRewardAmount) { builder.AddLong(6, clearStageRewardAmount, 0); } + public static Offset EndRaidStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsClearStageRewardHideInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*ClearStageRewardProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ClearStageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ClearStageRewardParcelUniqueID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*ClearStageRewardParcelUniqueName*/, false) + && verifier.VerifyField(tablePos, 16 /*ClearStageRewardAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs new file mode 100644 index 0000000..f7f4afc --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RaidStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageRewardExcelTable GetRootAsRaidStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsRaidStageRewardExcelTable(_bb, new RaidStageRewardExcelTable()); } + public static RaidStageRewardExcelTable GetRootAsRaidStageRewardExcelTable(ByteBuffer _bb, RaidStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RaidStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RaidStageRewardExcel?)(new SCHALE.Common.FlatData.RaidStageRewardExcel()).__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 CreateRaidStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RaidStageRewardExcelTable.AddDataList(builder, DataListOffset); + return RaidStageRewardExcelTable.EndRaidStageRewardExcelTable(builder); + } + + public static void StartRaidStageRewardExcelTable(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 EndRaidStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RaidStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs new file mode 100644 index 0000000..5259138 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcel.cs @@ -0,0 +1,112 @@ +// +// 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 RaidStageSeasonRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageSeasonRewardExcel GetRootAsRaidStageSeasonRewardExcel(ByteBuffer _bb) { return GetRootAsRaidStageSeasonRewardExcel(_bb, new RaidStageSeasonRewardExcel()); } + public static RaidStageSeasonRewardExcel GetRootAsRaidStageSeasonRewardExcel(ByteBuffer _bb, RaidStageSeasonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageSeasonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType SeasonRewardParcelType(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int SeasonRewardParcelTypeLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetSeasonRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetSeasonRewardParcelTypeArray() { int o = __p.__offset(6); 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 SeasonRewardParcelUniqueId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardParcelUniqueIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetSeasonRewardParcelUniqueIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetSeasonRewardParcelUniqueIdArray() { return __p.__vector_as_array(8); } + public string SeasonRewardParcelUniqueName(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SeasonRewardParcelUniqueNameLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public long SeasonRewardAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int SeasonRewardAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSeasonRewardAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetSeasonRewardAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetSeasonRewardAmountArray() { return __p.__vector_as_array(12); } + + public static Offset CreateRaidStageSeasonRewardExcel(FlatBufferBuilder builder, + long SeasonRewardId = 0, + VectorOffset SeasonRewardParcelTypeOffset = default(VectorOffset), + VectorOffset SeasonRewardParcelUniqueIdOffset = default(VectorOffset), + VectorOffset SeasonRewardParcelUniqueNameOffset = default(VectorOffset), + VectorOffset SeasonRewardAmountOffset = default(VectorOffset)) { + builder.StartTable(5); + RaidStageSeasonRewardExcel.AddSeasonRewardId(builder, SeasonRewardId); + RaidStageSeasonRewardExcel.AddSeasonRewardAmount(builder, SeasonRewardAmountOffset); + RaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueName(builder, SeasonRewardParcelUniqueNameOffset); + RaidStageSeasonRewardExcel.AddSeasonRewardParcelUniqueId(builder, SeasonRewardParcelUniqueIdOffset); + RaidStageSeasonRewardExcel.AddSeasonRewardParcelType(builder, SeasonRewardParcelTypeOffset); + return RaidStageSeasonRewardExcel.EndRaidStageSeasonRewardExcel(builder); + } + + public static void StartRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddSeasonRewardId(FlatBufferBuilder builder, long seasonRewardId) { builder.AddLong(0, seasonRewardId, 0); } + public static void AddSeasonRewardParcelType(FlatBufferBuilder builder, VectorOffset seasonRewardParcelTypeOffset) { builder.AddOffset(1, seasonRewardParcelTypeOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelTypeVector(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 CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSeasonRewardParcelUniqueId(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueIdOffset) { builder.AddOffset(2, seasonRewardParcelUniqueIdOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVector(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 CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelUniqueIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSeasonRewardParcelUniqueName(FlatBufferBuilder builder, VectorOffset seasonRewardParcelUniqueNameOffset) { builder.AddOffset(3, seasonRewardParcelUniqueNameOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardParcelUniqueNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardParcelUniqueNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSeasonRewardAmount(FlatBufferBuilder builder, VectorOffset seasonRewardAmountOffset) { builder.AddOffset(4, seasonRewardAmountOffset.Value, 0); } + public static VectorOffset CreateSeasonRewardAmountVector(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 CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSeasonRewardAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSeasonRewardAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndRaidStageSeasonRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageSeasonRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*SeasonRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*SeasonRewardParcelUniqueId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*SeasonRewardParcelUniqueName*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*SeasonRewardAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs new file mode 100644 index 0000000..dbbe25c --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStageSeasonRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RaidStageSeasonRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RaidStageSeasonRewardExcelTable GetRootAsRaidStageSeasonRewardExcelTable(ByteBuffer _bb) { return GetRootAsRaidStageSeasonRewardExcelTable(_bb, new RaidStageSeasonRewardExcelTable()); } + public static RaidStageSeasonRewardExcelTable GetRootAsRaidStageSeasonRewardExcelTable(ByteBuffer _bb, RaidStageSeasonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RaidStageSeasonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RaidStageSeasonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RaidStageSeasonRewardExcel?)(new SCHALE.Common.FlatData.RaidStageSeasonRewardExcel()).__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 CreateRaidStageSeasonRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RaidStageSeasonRewardExcelTable.AddDataList(builder, DataListOffset); + return RaidStageSeasonRewardExcelTable.EndRaidStageSeasonRewardExcelTable(builder); + } + + public static void StartRaidStageSeasonRewardExcelTable(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 EndRaidStageSeasonRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RaidStageSeasonRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RaidStageSeasonRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RaidStatus.cs b/SCHALE.Common/FlatData/RaidStatus.cs new file mode 100644 index 0000000..18bd2d9 --- /dev/null +++ b/SCHALE.Common/FlatData/RaidStatus.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum RaidStatus : int +{ + None = 0, + Playing = 1, + Clear = 2, + Close = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/RankingSearchType.cs b/SCHALE.Common/FlatData/RankingSearchType.cs new file mode 100644 index 0000000..b8023bc --- /dev/null +++ b/SCHALE.Common/FlatData/RankingSearchType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum RankingSearchType : int +{ + None = 0, + Rank = 1, + Score = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/Rarity.cs b/SCHALE.Common/FlatData/Rarity.cs new file mode 100644 index 0000000..f93c5f9 --- /dev/null +++ b/SCHALE.Common/FlatData/Rarity.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Rarity : int +{ + N = 0, + R = 1, + SR = 2, + SSR = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ReArrangeTargetType.cs b/SCHALE.Common/FlatData/ReArrangeTargetType.cs new file mode 100644 index 0000000..4d21aab --- /dev/null +++ b/SCHALE.Common/FlatData/ReArrangeTargetType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ReArrangeTargetType : int +{ + AllySelf = 0, + AllyAll = 1, + AllyUnitType = 2, + AllyGroup = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/RecipeCraftExcel.cs b/SCHALE.Common/FlatData/RecipeCraftExcel.cs new file mode 100644 index 0000000..6060a12 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeCraftExcel.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::Google.FlatBuffers; + +public struct RecipeCraftExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeCraftExcel GetRootAsRecipeCraftExcel(ByteBuffer _bb) { return GetRootAsRecipeCraftExcel(_bb, new RecipeCraftExcel()); } + public static RecipeCraftExcel GetRootAsRecipeCraftExcel(ByteBuffer _bb, RecipeCraftExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeCraftExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.RecipeType RecipeType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public long RecipeIngredientId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string RecipeIngredientDevName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRecipeIngredientDevNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetRecipeIngredientDevNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetRecipeIngredientDevNameArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.ParcelType ParcelType_(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 ParcelType_Length { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { 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 ParcelId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(16); } + public string ParcelDevName(int j) { int o = __p.__offset(18); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int ParcelDevNameLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } + public long ResultAmountMin(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ResultAmountMinLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetResultAmountMinBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetResultAmountMinBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetResultAmountMinArray() { return __p.__vector_as_array(20); } + public long ResultAmountMax(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ResultAmountMaxLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetResultAmountMaxBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetResultAmountMaxBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetResultAmountMaxArray() { return __p.__vector_as_array(22); } + + public static Offset CreateRecipeCraftExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset DevNameOffset = default(StringOffset), + SCHALE.Common.FlatData.RecipeType RecipeType = SCHALE.Common.FlatData.RecipeType.None, + long RecipeIngredientId = 0, + StringOffset RecipeIngredientDevNameOffset = default(StringOffset), + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ParcelDevNameOffset = default(VectorOffset), + VectorOffset ResultAmountMinOffset = default(VectorOffset), + VectorOffset ResultAmountMaxOffset = default(VectorOffset)) { + builder.StartTable(10); + RecipeCraftExcel.AddRecipeIngredientId(builder, RecipeIngredientId); + RecipeCraftExcel.AddId(builder, Id); + RecipeCraftExcel.AddResultAmountMax(builder, ResultAmountMaxOffset); + RecipeCraftExcel.AddResultAmountMin(builder, ResultAmountMinOffset); + RecipeCraftExcel.AddParcelDevName(builder, ParcelDevNameOffset); + RecipeCraftExcel.AddParcelId(builder, ParcelIdOffset); + RecipeCraftExcel.AddParcelType_(builder, ParcelType_Offset); + RecipeCraftExcel.AddRecipeIngredientDevName(builder, RecipeIngredientDevNameOffset); + RecipeCraftExcel.AddRecipeType(builder, RecipeType); + RecipeCraftExcel.AddDevName(builder, DevNameOffset); + return RecipeCraftExcel.EndRecipeCraftExcel(builder); + } + + public static void StartRecipeCraftExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddRecipeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.RecipeType recipeType) { builder.AddInt(2, (int)recipeType, 0); } + public static void AddRecipeIngredientId(FlatBufferBuilder builder, long recipeIngredientId) { builder.AddLong(3, recipeIngredientId, 0); } + public static void AddRecipeIngredientDevName(FlatBufferBuilder builder, StringOffset recipeIngredientDevNameOffset) { builder.AddOffset(4, recipeIngredientDevNameOffset.Value, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(5, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(6, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddParcelDevName(FlatBufferBuilder builder, VectorOffset parcelDevNameOffset) { builder.AddOffset(7, parcelDevNameOffset.Value, 0); } + public static VectorOffset CreateParcelDevNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateParcelDevNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelDevNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelDevNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelDevNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddResultAmountMin(FlatBufferBuilder builder, VectorOffset resultAmountMinOffset) { builder.AddOffset(8, resultAmountMinOffset.Value, 0); } + public static VectorOffset CreateResultAmountMinVector(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 CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartResultAmountMinVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddResultAmountMax(FlatBufferBuilder builder, VectorOffset resultAmountMaxOffset) { builder.AddOffset(9, resultAmountMaxOffset.Value, 0); } + public static VectorOffset CreateResultAmountMaxVector(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 CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartResultAmountMaxVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndRecipeCraftExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeCraftExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*RecipeType*/, 4 /*SCHALE.Common.FlatData.RecipeType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RecipeIngredientId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*RecipeIngredientDevName*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 18 /*ParcelDevName*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*ResultAmountMin*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*ResultAmountMax*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs b/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs new file mode 100644 index 0000000..a043deb --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeCraftExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RecipeCraftExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeCraftExcelTable GetRootAsRecipeCraftExcelTable(ByteBuffer _bb) { return GetRootAsRecipeCraftExcelTable(_bb, new RecipeCraftExcelTable()); } + public static RecipeCraftExcelTable GetRootAsRecipeCraftExcelTable(ByteBuffer _bb, RecipeCraftExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeCraftExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RecipeCraftExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RecipeCraftExcel?)(new SCHALE.Common.FlatData.RecipeCraftExcel()).__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 CreateRecipeCraftExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RecipeCraftExcelTable.AddDataList(builder, DataListOffset); + return RecipeCraftExcelTable.EndRecipeCraftExcelTable(builder); + } + + public static void StartRecipeCraftExcelTable(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 EndRecipeCraftExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeCraftExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RecipeCraftExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeExcel.cs b/SCHALE.Common/FlatData/RecipeExcel.cs new file mode 100644 index 0000000..f352f10 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeExcel.cs @@ -0,0 +1,133 @@ +// +// 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 RecipeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeExcel GetRootAsRecipeExcel(ByteBuffer _bb) { return GetRootAsRecipeExcel(_bb, new RecipeExcel()); } + public static RecipeExcel GetRootAsRecipeExcel(ByteBuffer _bb, RecipeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeExcel __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 SCHALE.Common.FlatData.RecipeType RecipeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public long RecipeIngredientId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecipeSelectionGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ParcelType_Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { int o = __p.__offset(12); 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 ParcelId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(14); } + public long ResultAmountMin(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ResultAmountMinLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetResultAmountMinBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetResultAmountMinBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetResultAmountMinArray() { return __p.__vector_as_array(16); } + public long ResultAmountMax(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ResultAmountMaxLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetResultAmountMaxBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetResultAmountMaxBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetResultAmountMaxArray() { return __p.__vector_as_array(18); } + + public static Offset CreateRecipeExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.RecipeType RecipeType = SCHALE.Common.FlatData.RecipeType.None, + long RecipeIngredientId = 0, + long RecipeSelectionGroupId = 0, + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ResultAmountMinOffset = default(VectorOffset), + VectorOffset ResultAmountMaxOffset = default(VectorOffset)) { + builder.StartTable(8); + RecipeExcel.AddRecipeSelectionGroupId(builder, RecipeSelectionGroupId); + RecipeExcel.AddRecipeIngredientId(builder, RecipeIngredientId); + RecipeExcel.AddId(builder, Id); + RecipeExcel.AddResultAmountMax(builder, ResultAmountMaxOffset); + RecipeExcel.AddResultAmountMin(builder, ResultAmountMinOffset); + RecipeExcel.AddParcelId(builder, ParcelIdOffset); + RecipeExcel.AddParcelType_(builder, ParcelType_Offset); + RecipeExcel.AddRecipeType(builder, RecipeType); + return RecipeExcel.EndRecipeExcel(builder); + } + + public static void StartRecipeExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddRecipeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.RecipeType recipeType) { builder.AddInt(1, (int)recipeType, 0); } + public static void AddRecipeIngredientId(FlatBufferBuilder builder, long recipeIngredientId) { builder.AddLong(2, recipeIngredientId, 0); } + public static void AddRecipeSelectionGroupId(FlatBufferBuilder builder, long recipeSelectionGroupId) { builder.AddLong(3, recipeSelectionGroupId, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(4, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(5, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddResultAmountMin(FlatBufferBuilder builder, VectorOffset resultAmountMinOffset) { builder.AddOffset(6, resultAmountMinOffset.Value, 0); } + public static VectorOffset CreateResultAmountMinVector(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 CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMinVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartResultAmountMinVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddResultAmountMax(FlatBufferBuilder builder, VectorOffset resultAmountMaxOffset) { builder.AddOffset(7, resultAmountMaxOffset.Value, 0); } + public static VectorOffset CreateResultAmountMaxVector(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 CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateResultAmountMaxVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartResultAmountMaxVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndRecipeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeExcelVerify +{ + 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 /*RecipeType*/, 4 /*SCHALE.Common.FlatData.RecipeType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RecipeIngredientId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*RecipeSelectionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ResultAmountMin*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*ResultAmountMax*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeExcelTable.cs b/SCHALE.Common/FlatData/RecipeExcelTable.cs new file mode 100644 index 0000000..f8ebda7 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RecipeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeExcelTable GetRootAsRecipeExcelTable(ByteBuffer _bb) { return GetRootAsRecipeExcelTable(_bb, new RecipeExcelTable()); } + public static RecipeExcelTable GetRootAsRecipeExcelTable(ByteBuffer _bb, RecipeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RecipeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RecipeExcel?)(new SCHALE.Common.FlatData.RecipeExcel()).__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 CreateRecipeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RecipeExcelTable.AddDataList(builder, DataListOffset); + return RecipeExcelTable.EndRecipeExcelTable(builder); + } + + public static void StartRecipeExcelTable(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 EndRecipeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RecipeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeIngredientExcel.cs b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs new file mode 100644 index 0000000..af4c1e1 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs @@ -0,0 +1,162 @@ +// +// 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 RecipeIngredientExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeIngredientExcel GetRootAsRecipeIngredientExcel(ByteBuffer _bb) { return GetRootAsRecipeIngredientExcel(_bb, new RecipeIngredientExcel()); } + public static RecipeIngredientExcel GetRootAsRecipeIngredientExcel(ByteBuffer _bb, RecipeIngredientExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeIngredientExcel __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 SCHALE.Common.FlatData.RecipeType RecipeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public SCHALE.Common.FlatData.ParcelType CostParcelType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int CostParcelTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostParcelTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetCostParcelTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetCostParcelTypeArray() { int o = __p.__offset(8); 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 CostId(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CostIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetCostIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetCostIdArray() { return __p.__vector_as_array(10); } + public long CostAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CostAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetCostAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetCostAmountArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.ParcelType IngredientParcelType(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 IngredientParcelTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIngredientParcelTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetIngredientParcelTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetIngredientParcelTypeArray() { 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 IngredientId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int IngredientIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIngredientIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetIngredientIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetIngredientIdArray() { return __p.__vector_as_array(16); } + public long IngredientAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int IngredientAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIngredientAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetIngredientAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetIngredientAmountArray() { return __p.__vector_as_array(18); } + public long CostTimeInSecond { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateRecipeIngredientExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.RecipeType RecipeType = SCHALE.Common.FlatData.RecipeType.None, + VectorOffset CostParcelTypeOffset = default(VectorOffset), + VectorOffset CostIdOffset = default(VectorOffset), + VectorOffset CostAmountOffset = default(VectorOffset), + VectorOffset IngredientParcelTypeOffset = default(VectorOffset), + VectorOffset IngredientIdOffset = default(VectorOffset), + VectorOffset IngredientAmountOffset = default(VectorOffset), + long CostTimeInSecond = 0) { + builder.StartTable(9); + RecipeIngredientExcel.AddCostTimeInSecond(builder, CostTimeInSecond); + RecipeIngredientExcel.AddId(builder, Id); + RecipeIngredientExcel.AddIngredientAmount(builder, IngredientAmountOffset); + RecipeIngredientExcel.AddIngredientId(builder, IngredientIdOffset); + RecipeIngredientExcel.AddIngredientParcelType(builder, IngredientParcelTypeOffset); + RecipeIngredientExcel.AddCostAmount(builder, CostAmountOffset); + RecipeIngredientExcel.AddCostId(builder, CostIdOffset); + RecipeIngredientExcel.AddCostParcelType(builder, CostParcelTypeOffset); + RecipeIngredientExcel.AddRecipeType(builder, RecipeType); + return RecipeIngredientExcel.EndRecipeIngredientExcel(builder); + } + + public static void StartRecipeIngredientExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddRecipeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.RecipeType recipeType) { builder.AddInt(1, (int)recipeType, 0); } + public static void AddCostParcelType(FlatBufferBuilder builder, VectorOffset costParcelTypeOffset) { builder.AddOffset(2, costParcelTypeOffset.Value, 0); } + public static VectorOffset CreateCostParcelTypeVector(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 CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCostId(FlatBufferBuilder builder, VectorOffset costIdOffset) { builder.AddOffset(3, costIdOffset.Value, 0); } + public static VectorOffset CreateCostIdVector(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 CreateCostIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCostAmount(FlatBufferBuilder builder, VectorOffset costAmountOffset) { builder.AddOffset(4, costAmountOffset.Value, 0); } + public static VectorOffset CreateCostAmountVector(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 CreateCostAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIngredientParcelType(FlatBufferBuilder builder, VectorOffset ingredientParcelTypeOffset) { builder.AddOffset(5, ingredientParcelTypeOffset.Value, 0); } + public static VectorOffset CreateIngredientParcelTypeVector(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 CreateIngredientParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIngredientParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIngredientId(FlatBufferBuilder builder, VectorOffset ingredientIdOffset) { builder.AddOffset(6, ingredientIdOffset.Value, 0); } + public static VectorOffset CreateIngredientIdVector(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 CreateIngredientIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIngredientIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddIngredientAmount(FlatBufferBuilder builder, VectorOffset ingredientAmountOffset) { builder.AddOffset(7, ingredientAmountOffset.Value, 0); } + public static VectorOffset CreateIngredientAmountVector(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 CreateIngredientAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIngredientAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCostTimeInSecond(FlatBufferBuilder builder, long costTimeInSecond) { builder.AddLong(8, costTimeInSecond, 0); } + public static Offset EndRecipeIngredientExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeIngredientExcelVerify +{ + 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 /*RecipeType*/, 4 /*SCHALE.Common.FlatData.RecipeType*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*CostParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*CostId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*CostAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*IngredientParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*IngredientId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*IngredientAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 20 /*CostTimeInSecond*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs b/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs new file mode 100644 index 0000000..639e670 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeIngredientExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RecipeIngredientExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeIngredientExcelTable GetRootAsRecipeIngredientExcelTable(ByteBuffer _bb) { return GetRootAsRecipeIngredientExcelTable(_bb, new RecipeIngredientExcelTable()); } + public static RecipeIngredientExcelTable GetRootAsRecipeIngredientExcelTable(ByteBuffer _bb, RecipeIngredientExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeIngredientExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RecipeIngredientExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RecipeIngredientExcel?)(new SCHALE.Common.FlatData.RecipeIngredientExcel()).__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 CreateRecipeIngredientExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RecipeIngredientExcelTable.AddDataList(builder, DataListOffset); + return RecipeIngredientExcelTable.EndRecipeIngredientExcelTable(builder); + } + + public static void StartRecipeIngredientExcelTable(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 EndRecipeIngredientExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeIngredientExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RecipeIngredientExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs new file mode 100644 index 0000000..f14c212 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs @@ -0,0 +1,77 @@ +// +// 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 RecipeSelectionAutoUseExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeSelectionAutoUseExcel GetRootAsRecipeSelectionAutoUseExcel(ByteBuffer _bb) { return GetRootAsRecipeSelectionAutoUseExcel(_bb, new RecipeSelectionAutoUseExcel()); } + public static RecipeSelectionAutoUseExcel GetRootAsRecipeSelectionAutoUseExcel(ByteBuffer _bb, RecipeSelectionAutoUseExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeSelectionAutoUseExcel __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 SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long TargetItemId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Priority(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int PriorityLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetPriorityBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetPriorityBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetPriorityArray() { return __p.__vector_as_array(10); } + + public static Offset CreateRecipeSelectionAutoUseExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long TargetItemId = 0, + VectorOffset PriorityOffset = default(VectorOffset)) { + builder.StartTable(4); + RecipeSelectionAutoUseExcel.AddTargetItemId(builder, TargetItemId); + RecipeSelectionAutoUseExcel.AddId(builder, Id); + RecipeSelectionAutoUseExcel.AddPriority(builder, PriorityOffset); + RecipeSelectionAutoUseExcel.AddParcelType(builder, ParcelType); + return RecipeSelectionAutoUseExcel.EndRecipeSelectionAutoUseExcel(builder); + } + + public static void StartRecipeSelectionAutoUseExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(1, (int)parcelType, 0); } + public static void AddTargetItemId(FlatBufferBuilder builder, long targetItemId) { builder.AddLong(2, targetItemId, 0); } + public static void AddPriority(FlatBufferBuilder builder, VectorOffset priorityOffset) { builder.AddOffset(3, priorityOffset.Value, 0); } + public static VectorOffset CreatePriorityVector(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 CreatePriorityVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePriorityVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePriorityVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPriorityVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndRecipeSelectionAutoUseExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeSelectionAutoUseExcelVerify +{ + 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 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*TargetItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*Priority*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs new file mode 100644 index 0000000..9f5bec0 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RecipeSelectionAutoUseExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeSelectionAutoUseExcelTable GetRootAsRecipeSelectionAutoUseExcelTable(ByteBuffer _bb) { return GetRootAsRecipeSelectionAutoUseExcelTable(_bb, new RecipeSelectionAutoUseExcelTable()); } + public static RecipeSelectionAutoUseExcelTable GetRootAsRecipeSelectionAutoUseExcelTable(ByteBuffer _bb, RecipeSelectionAutoUseExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeSelectionAutoUseExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RecipeSelectionAutoUseExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RecipeSelectionAutoUseExcel?)(new SCHALE.Common.FlatData.RecipeSelectionAutoUseExcel()).__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 CreateRecipeSelectionAutoUseExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RecipeSelectionAutoUseExcelTable.AddDataList(builder, DataListOffset); + return RecipeSelectionAutoUseExcelTable.EndRecipeSelectionAutoUseExcelTable(builder); + } + + public static void StartRecipeSelectionAutoUseExcelTable(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 EndRecipeSelectionAutoUseExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeSelectionAutoUseExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RecipeSelectionAutoUseExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs new file mode 100644 index 0000000..6b8aa0f --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs @@ -0,0 +1,75 @@ +// +// 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 RecipeSelectionGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeSelectionGroupExcel GetRootAsRecipeSelectionGroupExcel(ByteBuffer _bb) { return GetRootAsRecipeSelectionGroupExcel(_bb, new RecipeSelectionGroupExcel()); } + public static RecipeSelectionGroupExcel GetRootAsRecipeSelectionGroupExcel(ByteBuffer _bb, RecipeSelectionGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeSelectionGroupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long RecipeSelectionGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecipeSelectionGroupComponentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ResultAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ResultAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateRecipeSelectionGroupExcel(FlatBufferBuilder builder, + long RecipeSelectionGroupId = 0, + long RecipeSelectionGroupComponentId = 0, + SCHALE.Common.FlatData.ParcelType ParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ParcelId = 0, + long ResultAmountMin = 0, + long ResultAmountMax = 0) { + builder.StartTable(6); + RecipeSelectionGroupExcel.AddResultAmountMax(builder, ResultAmountMax); + RecipeSelectionGroupExcel.AddResultAmountMin(builder, ResultAmountMin); + RecipeSelectionGroupExcel.AddParcelId(builder, ParcelId); + RecipeSelectionGroupExcel.AddRecipeSelectionGroupComponentId(builder, RecipeSelectionGroupComponentId); + RecipeSelectionGroupExcel.AddRecipeSelectionGroupId(builder, RecipeSelectionGroupId); + RecipeSelectionGroupExcel.AddParcelType(builder, ParcelType); + return RecipeSelectionGroupExcel.EndRecipeSelectionGroupExcel(builder); + } + + public static void StartRecipeSelectionGroupExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddRecipeSelectionGroupId(FlatBufferBuilder builder, long recipeSelectionGroupId) { builder.AddLong(0, recipeSelectionGroupId, 0); } + public static void AddRecipeSelectionGroupComponentId(FlatBufferBuilder builder, long recipeSelectionGroupComponentId) { builder.AddLong(1, recipeSelectionGroupComponentId, 0); } + public static void AddParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType parcelType) { builder.AddInt(2, (int)parcelType, 0); } + public static void AddParcelId(FlatBufferBuilder builder, long parcelId) { builder.AddLong(3, parcelId, 0); } + public static void AddResultAmountMin(FlatBufferBuilder builder, long resultAmountMin) { builder.AddLong(4, resultAmountMin, 0); } + public static void AddResultAmountMax(FlatBufferBuilder builder, long resultAmountMax) { builder.AddLong(5, resultAmountMax, 0); } + public static Offset EndRecipeSelectionGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeSelectionGroupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*RecipeSelectionGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RecipeSelectionGroupComponentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ResultAmountMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ResultAmountMax*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs b/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs new file mode 100644 index 0000000..3a0b61b --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeSelectionGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 RecipeSelectionGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RecipeSelectionGroupExcelTable GetRootAsRecipeSelectionGroupExcelTable(ByteBuffer _bb) { return GetRootAsRecipeSelectionGroupExcelTable(_bb, new RecipeSelectionGroupExcelTable()); } + public static RecipeSelectionGroupExcelTable GetRootAsRecipeSelectionGroupExcelTable(ByteBuffer _bb, RecipeSelectionGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RecipeSelectionGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.RecipeSelectionGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.RecipeSelectionGroupExcel?)(new SCHALE.Common.FlatData.RecipeSelectionGroupExcel()).__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 CreateRecipeSelectionGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + RecipeSelectionGroupExcelTable.AddDataList(builder, DataListOffset); + return RecipeSelectionGroupExcelTable.EndRecipeSelectionGroupExcelTable(builder); + } + + public static void StartRecipeSelectionGroupExcelTable(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 EndRecipeSelectionGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RecipeSelectionGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.RecipeSelectionGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/RecipeType.cs b/SCHALE.Common/FlatData/RecipeType.cs new file mode 100644 index 0000000..995eaf5 --- /dev/null +++ b/SCHALE.Common/FlatData/RecipeType.cs @@ -0,0 +1,23 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum RecipeType : int +{ + None = 0, + Craft = 1, + SkillLevelUp = 2, + CharacterTranscendence = 3, + EquipmentTierUp = 4, + CafeRankUp = 5, + SelectionItem = 6, + WeaponTranscendence = 7, + SelectRecruit = 8, + CharacterPotential = 9, +}; + + +} diff --git a/SCHALE.Common/FlatData/ResetContentType.cs b/SCHALE.Common/FlatData/ResetContentType.cs new file mode 100644 index 0000000..3171214 --- /dev/null +++ b/SCHALE.Common/FlatData/ResetContentType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ResetContentType : int +{ + None = 0, + HardStagePlay = 1, + StarategyMapHeal = 2, + ShopRefresh = 3, + ArenaDefenseVictoryReward = 4, + WeeklyMasterCoin = 5, + WorldRaidGemEnterCount = 6, + ConquestDailyErosionCheck = 7, + MiniEventToken = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/RewardTag.cs b/SCHALE.Common/FlatData/RewardTag.cs new file mode 100644 index 0000000..f687a5a --- /dev/null +++ b/SCHALE.Common/FlatData/RewardTag.cs @@ -0,0 +1,35 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum RewardTag : int +{ + Default = 0, + FirstClear = 1, + StrategyObject = 2, + Event = 3, + ThreeStar = 4, + ProductMonthly = 5, + Rare = 6, + EventBonus = 7, + TimeWeight = 8, + ProductWeekly = 9, + ProductBiweekly = 10, + EventPermanentReward = 11, + ConquestManageEvent = 12, + ConquestManageDefault = 13, + ConquestCalculateDefault = 14, + ConquestCalculateLevel2 = 15, + ConquestCalculateLevel3 = 16, + ConquestFootholdUpgrade2 = 17, + ConquestFootholdUpgrade3 = 18, + ConquestErosionPenalty = 19, + GemBonus = 20, + GemPaid = 21, +}; + + +} diff --git a/SCHALE.Common/FlatData/RootMotionFlat.cs b/SCHALE.Common/FlatData/RootMotionFlat.cs new file mode 100644 index 0000000..85a62f4 --- /dev/null +++ b/SCHALE.Common/FlatData/RootMotionFlat.cs @@ -0,0 +1,77 @@ +// +// 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 RootMotionFlat : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static RootMotionFlat GetRootAsRootMotionFlat(ByteBuffer _bb) { return GetRootAsRootMotionFlat(_bb, new RootMotionFlat()); } + public static RootMotionFlat GetRootAsRootMotionFlat(ByteBuffer _bb, RootMotionFlat obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public RootMotionFlat __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.Form? Forms(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Form?)(new SCHALE.Common.FlatData.Form()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int FormsLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.Motion? ExSkills(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Motion?)(new SCHALE.Common.FlatData.Motion()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } + public int ExSkillsLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.Motion? MoveLeft { 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 SCHALE.Common.FlatData.Motion? MoveRight { get { int o = __p.__offset(10); 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 CreateRootMotionFlat(FlatBufferBuilder builder, + VectorOffset FormsOffset = default(VectorOffset), + VectorOffset ExSkillsOffset = default(VectorOffset), + Offset MoveLeftOffset = default(Offset), + Offset MoveRightOffset = default(Offset)) { + builder.StartTable(4); + RootMotionFlat.AddMoveRight(builder, MoveRightOffset); + RootMotionFlat.AddMoveLeft(builder, MoveLeftOffset); + RootMotionFlat.AddExSkills(builder, ExSkillsOffset); + RootMotionFlat.AddForms(builder, FormsOffset); + return RootMotionFlat.EndRootMotionFlat(builder); + } + + public static void StartRootMotionFlat(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddForms(FlatBufferBuilder builder, VectorOffset formsOffset) { builder.AddOffset(0, formsOffset.Value, 0); } + public static VectorOffset CreateFormsVector(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 CreateFormsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFormsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFormsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFormsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddExSkills(FlatBufferBuilder builder, VectorOffset exSkillsOffset) { builder.AddOffset(1, exSkillsOffset.Value, 0); } + public static VectorOffset CreateExSkillsVector(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 CreateExSkillsVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillsVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateExSkillsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartExSkillsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddMoveLeft(FlatBufferBuilder builder, Offset moveLeftOffset) { builder.AddOffset(2, moveLeftOffset.Value, 0); } + public static void AddMoveRight(FlatBufferBuilder builder, Offset moveRightOffset) { builder.AddOffset(3, moveRightOffset.Value, 0); } + public static Offset EndRootMotionFlat(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class RootMotionFlatVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*Forms*/, SCHALE.Common.FlatData.FormVerify.Verify, false) + && verifier.VerifyVectorOfTables(tablePos, 6 /*ExSkills*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTable(tablePos, 8 /*MoveLeft*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTable(tablePos, 10 /*MoveRight*/, SCHALE.Common.FlatData.MotionVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs new file mode 100644 index 0000000..d2b1a88 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs @@ -0,0 +1,81 @@ +// +// 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 ScenarioBGEffectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioBGEffectExcel GetRootAsScenarioBGEffectExcel(ByteBuffer _bb) { return GetRootAsScenarioBGEffectExcel(_bb, new ScenarioBGEffectExcel()); } + public static ScenarioBGEffectExcel GetRootAsScenarioBGEffectExcel(ByteBuffer _bb, ScenarioBGEffectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioBGEffectExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Name { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Effect { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetEffectBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetEffectArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.ScenarioBGScroll Scroll { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGScroll)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGScroll.None; } } + public long ScrollTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScrollFrom { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScrollTo { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateScenarioBGEffectExcel(FlatBufferBuilder builder, + uint Name = 0, + StringOffset EffectOffset = default(StringOffset), + SCHALE.Common.FlatData.ScenarioBGScroll Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None, + long ScrollTime = 0, + long ScrollFrom = 0, + long ScrollTo = 0) { + builder.StartTable(6); + ScenarioBGEffectExcel.AddScrollTo(builder, ScrollTo); + ScenarioBGEffectExcel.AddScrollFrom(builder, ScrollFrom); + ScenarioBGEffectExcel.AddScrollTime(builder, ScrollTime); + ScenarioBGEffectExcel.AddScroll(builder, Scroll); + ScenarioBGEffectExcel.AddEffect(builder, EffectOffset); + ScenarioBGEffectExcel.AddName(builder, Name); + return ScenarioBGEffectExcel.EndScenarioBGEffectExcel(builder); + } + + public static void StartScenarioBGEffectExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(0, name, 0); } + public static void AddEffect(FlatBufferBuilder builder, StringOffset effectOffset) { builder.AddOffset(1, effectOffset.Value, 0); } + public static void AddScroll(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGScroll scroll) { builder.AddInt(2, (int)scroll, 0); } + public static void AddScrollTime(FlatBufferBuilder builder, long scrollTime) { builder.AddLong(3, scrollTime, 0); } + public static void AddScrollFrom(FlatBufferBuilder builder, long scrollFrom) { builder.AddLong(4, scrollFrom, 0); } + public static void AddScrollTo(FlatBufferBuilder builder, long scrollTo) { builder.AddLong(5, scrollTo, 0); } + public static Offset EndScenarioBGEffectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioBGEffectExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Effect*/, false) + && verifier.VerifyField(tablePos, 8 /*Scroll*/, 4 /*SCHALE.Common.FlatData.ScenarioBGScroll*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ScrollTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ScrollFrom*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ScrollTo*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs new file mode 100644 index 0000000..f97cecd --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs @@ -0,0 +1,108 @@ +// +// 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 ScenarioBGNameExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioBGNameExcel GetRootAsScenarioBGNameExcel(ByteBuffer _bb) { return GetRootAsScenarioBGNameExcel(_bb, new ScenarioBGNameExcel()); } + public static ScenarioBGNameExcel GetRootAsScenarioBGNameExcel(ByteBuffer _bb, ScenarioBGNameExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioBGNameExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Name { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public string BGFileName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBGFileNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetBGFileNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetBGFileNameArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.ScenarioBGType BGType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGType.None; } } + public string AnimationRoot { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationRootBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetAnimationRootBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetAnimationRootArray() { return __p.__vector_as_array(12); } + public string AnimationName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetAnimationNameArray() { return __p.__vector_as_array(14); } + public float SpineScale { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int SpineLocalPosX { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SpineLocalPosY { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateScenarioBGNameExcel(FlatBufferBuilder builder, + uint Name = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + StringOffset BGFileNameOffset = default(StringOffset), + SCHALE.Common.FlatData.ScenarioBGType BGType = SCHALE.Common.FlatData.ScenarioBGType.None, + StringOffset AnimationRootOffset = default(StringOffset), + StringOffset AnimationNameOffset = default(StringOffset), + float SpineScale = 0.0f, + int SpineLocalPosX = 0, + int SpineLocalPosY = 0) { + builder.StartTable(9); + ScenarioBGNameExcel.AddSpineLocalPosY(builder, SpineLocalPosY); + ScenarioBGNameExcel.AddSpineLocalPosX(builder, SpineLocalPosX); + ScenarioBGNameExcel.AddSpineScale(builder, SpineScale); + ScenarioBGNameExcel.AddAnimationName(builder, AnimationNameOffset); + ScenarioBGNameExcel.AddAnimationRoot(builder, AnimationRootOffset); + ScenarioBGNameExcel.AddBGType(builder, BGType); + ScenarioBGNameExcel.AddBGFileName(builder, BGFileNameOffset); + ScenarioBGNameExcel.AddProductionStep(builder, ProductionStep); + ScenarioBGNameExcel.AddName(builder, Name); + return ScenarioBGNameExcel.EndScenarioBGNameExcel(builder); + } + + public static void StartScenarioBGNameExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(0, name, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(1, (int)productionStep, 0); } + public static void AddBGFileName(FlatBufferBuilder builder, StringOffset bGFileNameOffset) { builder.AddOffset(2, bGFileNameOffset.Value, 0); } + public static void AddBGType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType bGType) { builder.AddInt(3, (int)bGType, 0); } + public static void AddAnimationRoot(FlatBufferBuilder builder, StringOffset animationRootOffset) { builder.AddOffset(4, animationRootOffset.Value, 0); } + public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(5, animationNameOffset.Value, 0); } + public static void AddSpineScale(FlatBufferBuilder builder, float spineScale) { builder.AddFloat(6, spineScale, 0.0f); } + public static void AddSpineLocalPosX(FlatBufferBuilder builder, int spineLocalPosX) { builder.AddInt(7, spineLocalPosX, 0); } + public static void AddSpineLocalPosY(FlatBufferBuilder builder, int spineLocalPosY) { builder.AddInt(8, spineLocalPosY, 0); } + public static Offset EndScenarioBGNameExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioBGNameExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*BGFileName*/, false) + && verifier.VerifyField(tablePos, 10 /*BGType*/, 4 /*SCHALE.Common.FlatData.ScenarioBGType*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*AnimationRoot*/, false) + && verifier.VerifyString(tablePos, 14 /*AnimationName*/, false) + && verifier.VerifyField(tablePos, 16 /*SpineScale*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*SpineLocalPosX*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*SpineLocalPosY*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioBGScroll.cs b/SCHALE.Common/FlatData/ScenarioBGScroll.cs new file mode 100644 index 0000000..36ecf24 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioBGScroll.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioBGScroll : int +{ + None = 0, + Vertical = 1, + Horizontal = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioBGType.cs b/SCHALE.Common/FlatData/ScenarioBGType.cs new file mode 100644 index 0000000..9a00c21 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioBGType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioBGType : int +{ + None = 0, + Image = 1, + BlurRT = 2, + Spine = 3, + Hide = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterAction.cs b/SCHALE.Common/FlatData/ScenarioCharacterAction.cs new file mode 100644 index 0000000..6fc4d16 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterAction.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioCharacterAction : int +{ + Idle = 0, + Shake = 1, + Greeting = 2, + FalldownLeft = 3, + FalldownRight = 4, + Stiff = 5, + Hophop = 6, + Jump = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs b/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs new file mode 100644 index 0000000..9e1d4b2 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioCharacterBehaviors : int +{ + None = 0, + Appear = 1, + Disappear = 2, + AppearToLeft = 3, + ApperToRight = 4, + DisappearToLeft = 5, + DisappearToRight = 6, + MoveToTarget = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs new file mode 100644 index 0000000..f5f419e --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterEmotionExcel.cs @@ -0,0 +1,61 @@ +// +// 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 ScenarioCharacterEmotionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioCharacterEmotionExcel GetRootAsScenarioCharacterEmotionExcel(ByteBuffer _bb) { return GetRootAsScenarioCharacterEmotionExcel(_bb, new ScenarioCharacterEmotionExcel()); } + public static ScenarioCharacterEmotionExcel GetRootAsScenarioCharacterEmotionExcel(ByteBuffer _bb, ScenarioCharacterEmotionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioCharacterEmotionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string EmoticonName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEmoticonNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetEmoticonNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetEmoticonNameArray() { return __p.__vector_as_array(4); } + public uint Name { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateScenarioCharacterEmotionExcel(FlatBufferBuilder builder, + StringOffset EmoticonNameOffset = default(StringOffset), + uint Name = 0) { + builder.StartTable(2); + ScenarioCharacterEmotionExcel.AddName(builder, Name); + ScenarioCharacterEmotionExcel.AddEmoticonName(builder, EmoticonNameOffset); + return ScenarioCharacterEmotionExcel.EndScenarioCharacterEmotionExcel(builder); + } + + public static void StartScenarioCharacterEmotionExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddEmoticonName(FlatBufferBuilder builder, StringOffset emoticonNameOffset) { builder.AddOffset(0, emoticonNameOffset.Value, 0); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(1, name, 0); } + public static Offset EndScenarioCharacterEmotionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioCharacterEmotionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*EmoticonName*/, false) + && verifier.VerifyField(tablePos, 6 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs new file mode 100644 index 0000000..0c9f042 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs @@ -0,0 +1,126 @@ +// +// 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 ScenarioCharacterNameExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioCharacterNameExcel GetRootAsScenarioCharacterNameExcel(ByteBuffer _bb) { return GetRootAsScenarioCharacterNameExcel(_bb, new ScenarioCharacterNameExcel()); } + public static ScenarioCharacterNameExcel GetRootAsScenarioCharacterNameExcel(ByteBuffer _bb, ScenarioCharacterNameExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioCharacterNameExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint CharacterName { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public string NameKR { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameKRBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetNameKRBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetNameKRArray() { return __p.__vector_as_array(8); } + public string NicknameKR { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNicknameKRBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetNicknameKRBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetNicknameKRArray() { return __p.__vector_as_array(10); } + public string NameJP { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameJPBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetNameJPBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetNameJPArray() { return __p.__vector_as_array(12); } + public string NicknameJP { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNicknameJPBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetNicknameJPBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetNicknameJPArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.ScenarioCharacterShapes Shape { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ScenarioCharacterShapes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioCharacterShapes.None; } } + public string SpinePrefabName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpinePrefabNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetSpinePrefabNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetSpinePrefabNameArray() { return __p.__vector_as_array(18); } + public string SmallPortrait { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSmallPortraitBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetSmallPortraitBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetSmallPortraitArray() { return __p.__vector_as_array(20); } + + public static Offset CreateScenarioCharacterNameExcel(FlatBufferBuilder builder, + uint CharacterName = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo, + StringOffset NameKROffset = default(StringOffset), + StringOffset NicknameKROffset = default(StringOffset), + StringOffset NameJPOffset = default(StringOffset), + StringOffset NicknameJPOffset = default(StringOffset), + SCHALE.Common.FlatData.ScenarioCharacterShapes Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None, + StringOffset SpinePrefabNameOffset = default(StringOffset), + StringOffset SmallPortraitOffset = default(StringOffset)) { + builder.StartTable(9); + ScenarioCharacterNameExcel.AddSmallPortrait(builder, SmallPortraitOffset); + ScenarioCharacterNameExcel.AddSpinePrefabName(builder, SpinePrefabNameOffset); + ScenarioCharacterNameExcel.AddShape(builder, Shape); + ScenarioCharacterNameExcel.AddNicknameJP(builder, NicknameJPOffset); + ScenarioCharacterNameExcel.AddNameJP(builder, NameJPOffset); + ScenarioCharacterNameExcel.AddNicknameKR(builder, NicknameKROffset); + ScenarioCharacterNameExcel.AddNameKR(builder, NameKROffset); + ScenarioCharacterNameExcel.AddProductionStep(builder, ProductionStep); + ScenarioCharacterNameExcel.AddCharacterName(builder, CharacterName); + return ScenarioCharacterNameExcel.EndScenarioCharacterNameExcel(builder); + } + + public static void StartScenarioCharacterNameExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddCharacterName(FlatBufferBuilder builder, uint characterName) { builder.AddUint(0, characterName, 0); } + public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(1, (int)productionStep, 0); } + public static void AddNameKR(FlatBufferBuilder builder, StringOffset nameKROffset) { builder.AddOffset(2, nameKROffset.Value, 0); } + public static void AddNicknameKR(FlatBufferBuilder builder, StringOffset nicknameKROffset) { builder.AddOffset(3, nicknameKROffset.Value, 0); } + public static void AddNameJP(FlatBufferBuilder builder, StringOffset nameJPOffset) { builder.AddOffset(4, nameJPOffset.Value, 0); } + public static void AddNicknameJP(FlatBufferBuilder builder, StringOffset nicknameJPOffset) { builder.AddOffset(5, nicknameJPOffset.Value, 0); } + public static void AddShape(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioCharacterShapes shape) { builder.AddInt(6, (int)shape, 0); } + public static void AddSpinePrefabName(FlatBufferBuilder builder, StringOffset spinePrefabNameOffset) { builder.AddOffset(7, spinePrefabNameOffset.Value, 0); } + public static void AddSmallPortrait(FlatBufferBuilder builder, StringOffset smallPortraitOffset) { builder.AddOffset(8, smallPortraitOffset.Value, 0); } + public static Offset EndScenarioCharacterNameExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioCharacterNameExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CharacterName*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*NameKR*/, false) + && verifier.VerifyString(tablePos, 10 /*NicknameKR*/, false) + && verifier.VerifyString(tablePos, 12 /*NameJP*/, false) + && verifier.VerifyString(tablePos, 14 /*NicknameJP*/, false) + && verifier.VerifyField(tablePos, 16 /*Shape*/, 4 /*SCHALE.Common.FlatData.ScenarioCharacterShapes*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*SpinePrefabName*/, false) + && verifier.VerifyString(tablePos, 20 /*SmallPortrait*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs b/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs new file mode 100644 index 0000000..2dc7138 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioCharacterShapes : int +{ + None = 0, + Signal = 1, + BlackSilhouette = 2, + Closeup = 4, + Highlight = 8, + WhiteSilhouette = 16, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs new file mode 100644 index 0000000..b64a252 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioCharacterSituationSetExcel.cs @@ -0,0 +1,104 @@ +// +// 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 ScenarioCharacterSituationSetExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioCharacterSituationSetExcel GetRootAsScenarioCharacterSituationSetExcel(ByteBuffer _bb) { return GetRootAsScenarioCharacterSituationSetExcel(_bb, new ScenarioCharacterSituationSetExcel()); } + public static ScenarioCharacterSituationSetExcel GetRootAsScenarioCharacterSituationSetExcel(ByteBuffer _bb, ScenarioCharacterSituationSetExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioCharacterSituationSetExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Name { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string Face { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFaceBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetFaceBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetFaceArray() { return __p.__vector_as_array(6); } + public string Behavior { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBehaviorBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetBehaviorBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetBehaviorArray() { return __p.__vector_as_array(8); } + public string Action { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetActionBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetActionBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetActionArray() { return __p.__vector_as_array(10); } + public string Shape { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShapeBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetShapeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetShapeArray() { return __p.__vector_as_array(12); } + public uint Effect { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint Emotion { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateScenarioCharacterSituationSetExcel(FlatBufferBuilder builder, + uint Name = 0, + StringOffset FaceOffset = default(StringOffset), + StringOffset BehaviorOffset = default(StringOffset), + StringOffset ActionOffset = default(StringOffset), + StringOffset ShapeOffset = default(StringOffset), + uint Effect = 0, + uint Emotion = 0) { + builder.StartTable(7); + ScenarioCharacterSituationSetExcel.AddEmotion(builder, Emotion); + ScenarioCharacterSituationSetExcel.AddEffect(builder, Effect); + ScenarioCharacterSituationSetExcel.AddShape(builder, ShapeOffset); + ScenarioCharacterSituationSetExcel.AddAction(builder, ActionOffset); + ScenarioCharacterSituationSetExcel.AddBehavior(builder, BehaviorOffset); + ScenarioCharacterSituationSetExcel.AddFace(builder, FaceOffset); + ScenarioCharacterSituationSetExcel.AddName(builder, Name); + return ScenarioCharacterSituationSetExcel.EndScenarioCharacterSituationSetExcel(builder); + } + + public static void StartScenarioCharacterSituationSetExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(0, name, 0); } + public static void AddFace(FlatBufferBuilder builder, StringOffset faceOffset) { builder.AddOffset(1, faceOffset.Value, 0); } + public static void AddBehavior(FlatBufferBuilder builder, StringOffset behaviorOffset) { builder.AddOffset(2, behaviorOffset.Value, 0); } + public static void AddAction(FlatBufferBuilder builder, StringOffset actionOffset) { builder.AddOffset(3, actionOffset.Value, 0); } + public static void AddShape(FlatBufferBuilder builder, StringOffset shapeOffset) { builder.AddOffset(4, shapeOffset.Value, 0); } + public static void AddEffect(FlatBufferBuilder builder, uint effect) { builder.AddUint(5, effect, 0); } + public static void AddEmotion(FlatBufferBuilder builder, uint emotion) { builder.AddUint(6, emotion, 0); } + public static Offset EndScenarioCharacterSituationSetExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioCharacterSituationSetExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*Face*/, false) + && verifier.VerifyString(tablePos, 8 /*Behavior*/, false) + && verifier.VerifyString(tablePos, 10 /*Action*/, false) + && verifier.VerifyString(tablePos, 12 /*Shape*/, false) + && verifier.VerifyField(tablePos, 14 /*Effect*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Emotion*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioContentType.cs b/SCHALE.Common/FlatData/ScenarioContentType.cs new file mode 100644 index 0000000..e787569 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioContentType.cs @@ -0,0 +1,30 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioContentType : int +{ + Prologue = 0, + WeekDungeon = 1, + Raid = 2, + Arena = 3, + Favor = 4, + Shop = 5, + EventContent = 6, + Craft = 7, + Chaser = 8, + EventContentMeetup = 9, + TimeAttack = 10, + Mission = 11, + EventContentPermanentPrologue = 12, + EventContentReturnSeason = 13, + MiniEvent = 14, + EliminateRaid = 15, + MultiFloorRaid = 16, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioEffectDepth.cs b/SCHALE.Common/FlatData/ScenarioEffectDepth.cs new file mode 100644 index 0000000..6a9a93e --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioEffectDepth.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioEffectDepth : int +{ + None = 0, + AboveBg = 1, + AboveCharacter = 2, + AboveAll = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioEffectExcel.cs b/SCHALE.Common/FlatData/ScenarioEffectExcel.cs new file mode 100644 index 0000000..65a2dec --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioEffectExcel.cs @@ -0,0 +1,61 @@ +// +// 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 ScenarioEffectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioEffectExcel GetRootAsScenarioEffectExcel(ByteBuffer _bb) { return GetRootAsScenarioEffectExcel(_bb, new ScenarioEffectExcel()); } + public static ScenarioEffectExcel GetRootAsScenarioEffectExcel(ByteBuffer _bb, ScenarioEffectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioEffectExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string EffectName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEffectNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetEffectNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetEffectNameArray() { return __p.__vector_as_array(4); } + public uint Name { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateScenarioEffectExcel(FlatBufferBuilder builder, + StringOffset EffectNameOffset = default(StringOffset), + uint Name = 0) { + builder.StartTable(2); + ScenarioEffectExcel.AddName(builder, Name); + ScenarioEffectExcel.AddEffectName(builder, EffectNameOffset); + return ScenarioEffectExcel.EndScenarioEffectExcel(builder); + } + + public static void StartScenarioEffectExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddEffectName(FlatBufferBuilder builder, StringOffset effectNameOffset) { builder.AddOffset(0, effectNameOffset.Value, 0); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(1, name, 0); } + public static Offset EndScenarioEffectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioEffectExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*EffectName*/, false) + && verifier.VerifyField(tablePos, 6 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioExcel.cs b/SCHALE.Common/FlatData/ScenarioExcel.cs new file mode 100644 index 0000000..9fdb341 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioExcel.cs @@ -0,0 +1,114 @@ +// +// 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 ScenarioExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioExcel GetRootAsScenarioExcel(ByteBuffer _bb) { return GetRootAsScenarioExcel(_bb, new ScenarioExcel()); } + public static ScenarioExcel GetRootAsScenarioExcel(ByteBuffer _bb, ScenarioExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioBGType None(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ScenarioBGType)0; } + public int NoneLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNoneBytes() { return __p.__vector_as_span(4, 4); } +#else + public ArraySegment? GetNoneBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public SCHALE.Common.FlatData.ScenarioBGType[] GetNoneArray() { int o = __p.__offset(4); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ScenarioBGType[] a = new SCHALE.Common.FlatData.ScenarioBGType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.ScenarioCharacterAction Idle(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ScenarioCharacterAction)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ScenarioCharacterAction)0; } + public int IdleLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIdleBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetIdleBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.ScenarioCharacterAction[] GetIdleArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ScenarioCharacterAction[] a = new SCHALE.Common.FlatData.ScenarioCharacterAction[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ScenarioCharacterAction)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.DialogCategory Cafe { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } + public SCHALE.Common.FlatData.DialogType Talk { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } + public SCHALE.Common.FlatData.StoryCondition Open { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StoryCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoryCondition.Open; } } + public SCHALE.Common.FlatData.EmojiEvent EnterConver { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.EmojiEvent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmojiEvent.EnterConver; } } + public SCHALE.Common.FlatData.ScenarioZoomAnchors Center { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ScenarioZoomAnchors)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioZoomAnchors.Center; } } + public SCHALE.Common.FlatData.ScenarioZoomType Instant { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ScenarioZoomType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioZoomType.Instant; } } + public SCHALE.Common.FlatData.ScenarioContentType Prologue { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ScenarioContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioContentType.Prologue; } } + + public static Offset CreateScenarioExcel(FlatBufferBuilder builder, + VectorOffset NoneOffset = default(VectorOffset), + VectorOffset IdleOffset = default(VectorOffset), + SCHALE.Common.FlatData.DialogCategory Cafe = SCHALE.Common.FlatData.DialogCategory.Cafe, + SCHALE.Common.FlatData.DialogType Talk = SCHALE.Common.FlatData.DialogType.Talk, + SCHALE.Common.FlatData.StoryCondition Open = SCHALE.Common.FlatData.StoryCondition.Open, + SCHALE.Common.FlatData.EmojiEvent EnterConver = SCHALE.Common.FlatData.EmojiEvent.EnterConver, + SCHALE.Common.FlatData.ScenarioZoomAnchors Center = SCHALE.Common.FlatData.ScenarioZoomAnchors.Center, + SCHALE.Common.FlatData.ScenarioZoomType Instant = SCHALE.Common.FlatData.ScenarioZoomType.Instant, + SCHALE.Common.FlatData.ScenarioContentType Prologue = SCHALE.Common.FlatData.ScenarioContentType.Prologue) { + builder.StartTable(9); + ScenarioExcel.AddPrologue(builder, Prologue); + ScenarioExcel.AddInstant(builder, Instant); + ScenarioExcel.AddCenter(builder, Center); + ScenarioExcel.AddEnterConver(builder, EnterConver); + ScenarioExcel.AddOpen(builder, Open); + ScenarioExcel.AddTalk(builder, Talk); + ScenarioExcel.AddCafe(builder, Cafe); + ScenarioExcel.AddIdle(builder, IdleOffset); + ScenarioExcel.AddNone(builder, NoneOffset); + return ScenarioExcel.EndScenarioExcel(builder); + } + + public static void StartScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddNone(FlatBufferBuilder builder, VectorOffset noneOffset) { builder.AddOffset(0, noneOffset.Value, 0); } + public static VectorOffset CreateNoneVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] 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 CreateNoneVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNoneVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNoneVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNoneVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIdle(FlatBufferBuilder builder, VectorOffset idleOffset) { builder.AddOffset(1, idleOffset.Value, 0); } + public static VectorOffset CreateIdleVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioCharacterAction[] 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 CreateIdleVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioCharacterAction[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIdleVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIdleVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIdleVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCafe(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory cafe) { builder.AddInt(2, (int)cafe, 0); } + public static void AddTalk(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType talk) { builder.AddInt(3, (int)talk, 0); } + public static void AddOpen(FlatBufferBuilder builder, SCHALE.Common.FlatData.StoryCondition open) { builder.AddInt(4, (int)open, 0); } + public static void AddEnterConver(FlatBufferBuilder builder, SCHALE.Common.FlatData.EmojiEvent enterConver) { builder.AddInt(5, (int)enterConver, 0); } + public static void AddCenter(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioZoomAnchors center) { builder.AddInt(6, (int)center, 0); } + public static void AddInstant(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioZoomType instant) { builder.AddInt(7, (int)instant, 0); } + public static void AddPrologue(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioContentType prologue) { builder.AddInt(8, (int)prologue, 0); } + public static Offset EndScenarioExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfData(tablePos, 4 /*None*/, 4 /*SCHALE.Common.FlatData.ScenarioBGType*/, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Idle*/, 4 /*SCHALE.Common.FlatData.ScenarioCharacterAction*/, false) + && verifier.VerifyField(tablePos, 8 /*Cafe*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*Talk*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*Open*/, 4 /*SCHALE.Common.FlatData.StoryCondition*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*EnterConver*/, 4 /*SCHALE.Common.FlatData.EmojiEvent*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Center*/, 4 /*SCHALE.Common.FlatData.ScenarioZoomAnchors*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*Instant*/, 4 /*SCHALE.Common.FlatData.ScenarioZoomType*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*Prologue*/, 4 /*SCHALE.Common.FlatData.ScenarioContentType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioExcelTable.cs b/SCHALE.Common/FlatData/ScenarioExcelTable.cs new file mode 100644 index 0000000..4d6c26e --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ScenarioExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioExcelTable GetRootAsScenarioExcelTable(ByteBuffer _bb) { return GetRootAsScenarioExcelTable(_bb, new ScenarioExcelTable()); } + public static ScenarioExcelTable GetRootAsScenarioExcelTable(ByteBuffer _bb, ScenarioExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioExcel?)(new SCHALE.Common.FlatData.ScenarioExcel()).__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 CreateScenarioExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ScenarioExcelTable.AddDataList(builder, DataListOffset); + return ScenarioExcelTable.EndScenarioExcelTable(builder); + } + + public static void StartScenarioExcelTable(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 EndScenarioExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeExcel.cs b/SCHALE.Common/FlatData/ScenarioModeExcel.cs new file mode 100644 index 0000000..6383776 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeExcel.cs @@ -0,0 +1,278 @@ +// +// 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 ScenarioModeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioModeExcel GetRootAsScenarioModeExcel(ByteBuffer _bb) { return GetRootAsScenarioModeExcel(_bb, new ScenarioModeExcel()); } + public static ScenarioModeExcel GetRootAsScenarioModeExcel(ByteBuffer _bb, ScenarioModeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioModeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ModeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ScenarioModeTypes ModeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeTypes.None; } } + public SCHALE.Common.FlatData.ScenarioModeSubTypes SubType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeSubTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeSubTypes.None; } } + public long VolumeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ChapterId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EpisodeId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool Hide { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool Open { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsContinue { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long EpisodeContinueModeId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FrontScenarioGroupId(int j) { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int FrontScenarioGroupIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFrontScenarioGroupIdBytes() { return __p.__vector_as_span(24, 8); } +#else + public ArraySegment? GetFrontScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public long[] GetFrontScenarioGroupIdArray() { return __p.__vector_as_array(24); } + public long StrategyId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDefeatBattle { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BattleDuration { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BackScenarioGroupId(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BackScenarioGroupIdLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBackScenarioGroupIdBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetBackScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetBackScenarioGroupIdArray() { return __p.__vector_as_array(34); } + public long ClearedModeId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ClearedModeIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetClearedModeIdBytes() { return __p.__vector_as_span(36, 8); } +#else + public ArraySegment? GetClearedModeIdBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public long[] GetClearedModeIdArray() { return __p.__vector_as_array(36); } + public long ScenarioModeRewardId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsScenarioSpecialReward { get { int o = __p.__offset(40); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AccountLevelLimit { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearedStageId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Club NeedClub { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } + public int NeedClubStudentCount { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long NeedTSS { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventContentId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EventContentType EventContentType { get { int o = __p.__offset(54); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } + public long EventContentCondition { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EventContentConditionGroup { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public int StepIndex { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RecommendLevel { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string EventIconParcelPath { get { int o = __p.__offset(66); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEventIconParcelPathBytes() { return __p.__vector_as_span(66, 1); } +#else + public ArraySegment? GetEventIconParcelPathBytes() { return __p.__vector_as_arraysegment(66); } +#endif + public byte[] GetEventIconParcelPathArray() { return __p.__vector_as_array(66); } + public bool Lof { get { int o = __p.__offset(68); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(70); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public long FixedEchelonId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string CompleteReportEventName { get { int o = __p.__offset(74); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCompleteReportEventNameBytes() { return __p.__vector_as_span(74, 1); } +#else + public ArraySegment? GetCompleteReportEventNameBytes() { return __p.__vector_as_arraysegment(74); } +#endif + public byte[] GetCompleteReportEventNameArray() { return __p.__vector_as_array(74); } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(76); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateScenarioModeExcel(FlatBufferBuilder builder, + long ModeId = 0, + SCHALE.Common.FlatData.ScenarioModeTypes ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None, + SCHALE.Common.FlatData.ScenarioModeSubTypes SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None, + long VolumeId = 0, + long ChapterId = 0, + long EpisodeId = 0, + bool Hide = false, + bool Open = false, + bool IsContinue = false, + long EpisodeContinueModeId = 0, + VectorOffset FrontScenarioGroupIdOffset = default(VectorOffset), + long StrategyId = 0, + long GroundId = 0, + bool IsDefeatBattle = false, + long BattleDuration = 0, + VectorOffset BackScenarioGroupIdOffset = default(VectorOffset), + VectorOffset ClearedModeIdOffset = default(VectorOffset), + long ScenarioModeRewardId = 0, + bool IsScenarioSpecialReward = false, + long AccountLevelLimit = 0, + long ClearedStageId = 0, + SCHALE.Common.FlatData.Club NeedClub = SCHALE.Common.FlatData.Club.None, + int NeedClubStudentCount = 0, + long NeedTSS = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.EventContentType EventContentType = SCHALE.Common.FlatData.EventContentType.Stage, + long EventContentCondition = 0, + long EventContentConditionGroup = 0, + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + int StepIndex = 0, + int RecommendLevel = 0, + StringOffset EventIconParcelPathOffset = default(StringOffset), + bool Lof = false, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + long FixedEchelonId = 0, + StringOffset CompleteReportEventNameOffset = default(StringOffset), + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(37); + ScenarioModeExcel.AddFixedEchelonId(builder, FixedEchelonId); + ScenarioModeExcel.AddEventContentConditionGroup(builder, EventContentConditionGroup); + ScenarioModeExcel.AddEventContentCondition(builder, EventContentCondition); + ScenarioModeExcel.AddEventContentId(builder, EventContentId); + ScenarioModeExcel.AddNeedTSS(builder, NeedTSS); + ScenarioModeExcel.AddClearedStageId(builder, ClearedStageId); + ScenarioModeExcel.AddAccountLevelLimit(builder, AccountLevelLimit); + ScenarioModeExcel.AddScenarioModeRewardId(builder, ScenarioModeRewardId); + ScenarioModeExcel.AddBattleDuration(builder, BattleDuration); + ScenarioModeExcel.AddGroundId(builder, GroundId); + ScenarioModeExcel.AddStrategyId(builder, StrategyId); + ScenarioModeExcel.AddEpisodeContinueModeId(builder, EpisodeContinueModeId); + ScenarioModeExcel.AddEpisodeId(builder, EpisodeId); + ScenarioModeExcel.AddChapterId(builder, ChapterId); + ScenarioModeExcel.AddVolumeId(builder, VolumeId); + ScenarioModeExcel.AddModeId(builder, ModeId); + ScenarioModeExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + ScenarioModeExcel.AddCompleteReportEventName(builder, CompleteReportEventNameOffset); + ScenarioModeExcel.AddStageTopography(builder, StageTopography); + ScenarioModeExcel.AddEventIconParcelPath(builder, EventIconParcelPathOffset); + ScenarioModeExcel.AddRecommendLevel(builder, RecommendLevel); + ScenarioModeExcel.AddStepIndex(builder, StepIndex); + ScenarioModeExcel.AddMapDifficulty(builder, MapDifficulty); + ScenarioModeExcel.AddEventContentType(builder, EventContentType); + ScenarioModeExcel.AddNeedClubStudentCount(builder, NeedClubStudentCount); + ScenarioModeExcel.AddNeedClub(builder, NeedClub); + ScenarioModeExcel.AddClearedModeId(builder, ClearedModeIdOffset); + ScenarioModeExcel.AddBackScenarioGroupId(builder, BackScenarioGroupIdOffset); + ScenarioModeExcel.AddFrontScenarioGroupId(builder, FrontScenarioGroupIdOffset); + ScenarioModeExcel.AddSubType(builder, SubType); + ScenarioModeExcel.AddModeType(builder, ModeType); + ScenarioModeExcel.AddLof(builder, Lof); + ScenarioModeExcel.AddIsScenarioSpecialReward(builder, IsScenarioSpecialReward); + ScenarioModeExcel.AddIsDefeatBattle(builder, IsDefeatBattle); + ScenarioModeExcel.AddIsContinue(builder, IsContinue); + ScenarioModeExcel.AddOpen(builder, Open); + ScenarioModeExcel.AddHide(builder, Hide); + return ScenarioModeExcel.EndScenarioModeExcel(builder); + } + + public static void StartScenarioModeExcel(FlatBufferBuilder builder) { builder.StartTable(37); } + public static void AddModeId(FlatBufferBuilder builder, long modeId) { builder.AddLong(0, modeId, 0); } + public static void AddModeType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioModeTypes modeType) { builder.AddInt(1, (int)modeType, 0); } + public static void AddSubType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioModeSubTypes subType) { builder.AddInt(2, (int)subType, 0); } + public static void AddVolumeId(FlatBufferBuilder builder, long volumeId) { builder.AddLong(3, volumeId, 0); } + public static void AddChapterId(FlatBufferBuilder builder, long chapterId) { builder.AddLong(4, chapterId, 0); } + public static void AddEpisodeId(FlatBufferBuilder builder, long episodeId) { builder.AddLong(5, episodeId, 0); } + public static void AddHide(FlatBufferBuilder builder, bool hide) { builder.AddBool(6, hide, false); } + public static void AddOpen(FlatBufferBuilder builder, bool open) { builder.AddBool(7, open, false); } + public static void AddIsContinue(FlatBufferBuilder builder, bool isContinue) { builder.AddBool(8, isContinue, false); } + public static void AddEpisodeContinueModeId(FlatBufferBuilder builder, long episodeContinueModeId) { builder.AddLong(9, episodeContinueModeId, 0); } + public static void AddFrontScenarioGroupId(FlatBufferBuilder builder, VectorOffset frontScenarioGroupIdOffset) { builder.AddOffset(10, frontScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateFrontScenarioGroupIdVector(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 CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFrontScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStrategyId(FlatBufferBuilder builder, long strategyId) { builder.AddLong(11, strategyId, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(12, groundId, 0); } + public static void AddIsDefeatBattle(FlatBufferBuilder builder, bool isDefeatBattle) { builder.AddBool(13, isDefeatBattle, false); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(14, battleDuration, 0); } + public static void AddBackScenarioGroupId(FlatBufferBuilder builder, VectorOffset backScenarioGroupIdOffset) { builder.AddOffset(15, backScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateBackScenarioGroupIdVector(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 CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBackScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddClearedModeId(FlatBufferBuilder builder, VectorOffset clearedModeIdOffset) { builder.AddOffset(16, clearedModeIdOffset.Value, 0); } + public static VectorOffset CreateClearedModeIdVector(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 CreateClearedModeIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateClearedModeIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateClearedModeIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartClearedModeIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddScenarioModeRewardId(FlatBufferBuilder builder, long scenarioModeRewardId) { builder.AddLong(17, scenarioModeRewardId, 0); } + public static void AddIsScenarioSpecialReward(FlatBufferBuilder builder, bool isScenarioSpecialReward) { builder.AddBool(18, isScenarioSpecialReward, false); } + public static void AddAccountLevelLimit(FlatBufferBuilder builder, long accountLevelLimit) { builder.AddLong(19, accountLevelLimit, 0); } + public static void AddClearedStageId(FlatBufferBuilder builder, long clearedStageId) { builder.AddLong(20, clearedStageId, 0); } + public static void AddNeedClub(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club needClub) { builder.AddInt(21, (int)needClub, 0); } + public static void AddNeedClubStudentCount(FlatBufferBuilder builder, int needClubStudentCount) { builder.AddInt(22, needClubStudentCount, 0); } + public static void AddNeedTSS(FlatBufferBuilder builder, long needTSS) { builder.AddLong(23, needTSS, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(24, eventContentId, 0); } + public static void AddEventContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EventContentType eventContentType) { builder.AddInt(25, (int)eventContentType, 0); } + public static void AddEventContentCondition(FlatBufferBuilder builder, long eventContentCondition) { builder.AddLong(26, eventContentCondition, 0); } + public static void AddEventContentConditionGroup(FlatBufferBuilder builder, long eventContentConditionGroup) { builder.AddLong(27, eventContentConditionGroup, 0); } + public static void AddMapDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageDifficulty mapDifficulty) { builder.AddInt(28, (int)mapDifficulty, 0); } + public static void AddStepIndex(FlatBufferBuilder builder, int stepIndex) { builder.AddInt(29, stepIndex, 0); } + public static void AddRecommendLevel(FlatBufferBuilder builder, int recommendLevel) { builder.AddInt(30, recommendLevel, 0); } + public static void AddEventIconParcelPath(FlatBufferBuilder builder, StringOffset eventIconParcelPathOffset) { builder.AddOffset(31, eventIconParcelPathOffset.Value, 0); } + public static void AddLof(FlatBufferBuilder builder, bool lof) { builder.AddBool(32, lof, false); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(33, (int)stageTopography, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(34, fixedEchelonId, 0); } + public static void AddCompleteReportEventName(FlatBufferBuilder builder, StringOffset completeReportEventNameOffset) { builder.AddOffset(35, completeReportEventNameOffset.Value, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(36, (int)echelonExtensionType, 0); } + public static Offset EndScenarioModeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioModeExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ModeType*/, 4 /*SCHALE.Common.FlatData.ScenarioModeTypes*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*SubType*/, 4 /*SCHALE.Common.FlatData.ScenarioModeSubTypes*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*VolumeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ChapterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*EpisodeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*Hide*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*Open*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 20 /*IsContinue*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 22 /*EpisodeContinueModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*FrontScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 26 /*StrategyId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*IsDefeatBattle*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*BackScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 36 /*ClearedModeId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 38 /*ScenarioModeRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*IsScenarioSpecialReward*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 42 /*AccountLevelLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*ClearedStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 46 /*NeedClub*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*NeedClubStudentCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*NeedTSS*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*EventContentType*/, 4 /*SCHALE.Common.FlatData.EventContentType*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*EventContentCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*EventContentConditionGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 60 /*MapDifficulty*/, 4 /*SCHALE.Common.FlatData.StageDifficulty*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*StepIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 64 /*RecommendLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 66 /*EventIconParcelPath*/, false) + && verifier.VerifyField(tablePos, 68 /*Lof*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 70 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 72 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 74 /*CompleteReportEventName*/, false) + && verifier.VerifyField(tablePos, 76 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs b/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs new file mode 100644 index 0000000..8de3078 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ScenarioModeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioModeExcelTable GetRootAsScenarioModeExcelTable(ByteBuffer _bb) { return GetRootAsScenarioModeExcelTable(_bb, new ScenarioModeExcelTable()); } + public static ScenarioModeExcelTable GetRootAsScenarioModeExcelTable(ByteBuffer _bb, ScenarioModeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioModeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioModeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeExcel?)(new SCHALE.Common.FlatData.ScenarioModeExcel()).__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 CreateScenarioModeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ScenarioModeExcelTable.AddDataList(builder, DataListOffset); + return ScenarioModeExcelTable.EndScenarioModeExcelTable(builder); + } + + public static void StartScenarioModeExcelTable(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 EndScenarioModeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioModeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioModeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs b/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs new file mode 100644 index 0000000..a9baf71 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioModeReplayTypes : int +{ + None = 0, + Event = 1, + Favor = 2, + Work = 3, + EventMeetup = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs new file mode 100644 index 0000000..a15b882 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs @@ -0,0 +1,80 @@ +// +// 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 ScenarioModeRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioModeRewardExcel GetRootAsScenarioModeRewardExcel(ByteBuffer _bb) { return GetRootAsScenarioModeRewardExcel(_bb, new ScenarioModeRewardExcel()); } + public static ScenarioModeRewardExcel GetRootAsScenarioModeRewardExcel(ByteBuffer _bb, ScenarioModeRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioModeRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ScenarioModeRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); 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(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int RewardParcelAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateScenarioModeRewardExcel(FlatBufferBuilder builder, + long ScenarioModeRewardId = 0, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + int RewardProb = 0, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + int RewardParcelAmount = 0, + bool IsDisplayed = false) { + builder.StartTable(7); + ScenarioModeRewardExcel.AddRewardParcelId(builder, RewardParcelId); + ScenarioModeRewardExcel.AddScenarioModeRewardId(builder, ScenarioModeRewardId); + ScenarioModeRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + ScenarioModeRewardExcel.AddRewardParcelType(builder, RewardParcelType); + ScenarioModeRewardExcel.AddRewardProb(builder, RewardProb); + ScenarioModeRewardExcel.AddRewardTag(builder, RewardTag); + ScenarioModeRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return ScenarioModeRewardExcel.EndScenarioModeRewardExcel(builder); + } + + public static void StartScenarioModeRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddScenarioModeRewardId(FlatBufferBuilder builder, long scenarioModeRewardId) { builder.AddLong(0, scenarioModeRewardId, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(1, (int)rewardTag, 0); } + public static void AddRewardProb(FlatBufferBuilder builder, int rewardProb) { builder.AddInt(2, rewardProb, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(4, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, int rewardParcelAmount) { builder.AddInt(5, rewardParcelAmount, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static Offset EndScenarioModeRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioModeRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ScenarioModeRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardProb*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardParcelAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs b/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs new file mode 100644 index 0000000..a83c229 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ScenarioModeRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioModeRewardExcelTable GetRootAsScenarioModeRewardExcelTable(ByteBuffer _bb) { return GetRootAsScenarioModeRewardExcelTable(_bb, new ScenarioModeRewardExcelTable()); } + public static ScenarioModeRewardExcelTable GetRootAsScenarioModeRewardExcelTable(ByteBuffer _bb, ScenarioModeRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioModeRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioModeRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeRewardExcel?)(new SCHALE.Common.FlatData.ScenarioModeRewardExcel()).__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 CreateScenarioModeRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ScenarioModeRewardExcelTable.AddDataList(builder, DataListOffset); + return ScenarioModeRewardExcelTable.EndScenarioModeRewardExcelTable(builder); + } + + public static void StartScenarioModeRewardExcelTable(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 EndScenarioModeRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioModeRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioModeRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs b/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs new file mode 100644 index 0000000..7641b7b --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioModeSubTypes : int +{ + None = 0, + Club = 1, + TSS = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioModeTypes.cs b/SCHALE.Common/FlatData/ScenarioModeTypes.cs new file mode 100644 index 0000000..c16f768 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioModeTypes.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioModeTypes : int +{ + None = 0, + Main = 1, + Sub = 2, + Replay = 3, + Mini = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioReplayExcel.cs b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs new file mode 100644 index 0000000..ebab40a --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs @@ -0,0 +1,114 @@ +// +// 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 ScenarioReplayExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioReplayExcel GetRootAsScenarioReplayExcel(ByteBuffer _bb) { return GetRootAsScenarioReplayExcel(_bb, new ScenarioReplayExcel()); } + public static ScenarioReplayExcel GetRootAsScenarioReplayExcel(ByteBuffer _bb, ScenarioReplayExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioReplayExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ModeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VolumeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeReplayTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeReplayTypes.None; } } + public long ChapterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EpisodeId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FrontScenarioGroupId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int FrontScenarioGroupIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFrontScenarioGroupIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetFrontScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetFrontScenarioGroupIdArray() { return __p.__vector_as_array(14); } + public long GroundId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BackScenarioGroupId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BackScenarioGroupIdLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBackScenarioGroupIdBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetBackScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetBackScenarioGroupIdArray() { return __p.__vector_as_array(20); } + + public static Offset CreateScenarioReplayExcel(FlatBufferBuilder builder, + long ModeId = 0, + long VolumeId = 0, + SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None, + long ChapterId = 0, + long EpisodeId = 0, + VectorOffset FrontScenarioGroupIdOffset = default(VectorOffset), + long GroundId = 0, + long BattleDuration = 0, + VectorOffset BackScenarioGroupIdOffset = default(VectorOffset)) { + builder.StartTable(9); + ScenarioReplayExcel.AddBattleDuration(builder, BattleDuration); + ScenarioReplayExcel.AddGroundId(builder, GroundId); + ScenarioReplayExcel.AddEpisodeId(builder, EpisodeId); + ScenarioReplayExcel.AddChapterId(builder, ChapterId); + ScenarioReplayExcel.AddVolumeId(builder, VolumeId); + ScenarioReplayExcel.AddModeId(builder, ModeId); + ScenarioReplayExcel.AddBackScenarioGroupId(builder, BackScenarioGroupIdOffset); + ScenarioReplayExcel.AddFrontScenarioGroupId(builder, FrontScenarioGroupIdOffset); + ScenarioReplayExcel.AddReplayType(builder, ReplayType); + return ScenarioReplayExcel.EndScenarioReplayExcel(builder); + } + + public static void StartScenarioReplayExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddModeId(FlatBufferBuilder builder, long modeId) { builder.AddLong(0, modeId, 0); } + public static void AddVolumeId(FlatBufferBuilder builder, long volumeId) { builder.AddLong(1, volumeId, 0); } + public static void AddReplayType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioModeReplayTypes replayType) { builder.AddInt(2, (int)replayType, 0); } + public static void AddChapterId(FlatBufferBuilder builder, long chapterId) { builder.AddLong(3, chapterId, 0); } + public static void AddEpisodeId(FlatBufferBuilder builder, long episodeId) { builder.AddLong(4, episodeId, 0); } + public static void AddFrontScenarioGroupId(FlatBufferBuilder builder, VectorOffset frontScenarioGroupIdOffset) { builder.AddOffset(5, frontScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateFrontScenarioGroupIdVector(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 CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFrontScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFrontScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(6, groundId, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(7, battleDuration, 0); } + public static void AddBackScenarioGroupId(FlatBufferBuilder builder, VectorOffset backScenarioGroupIdOffset) { builder.AddOffset(8, backScenarioGroupIdOffset.Value, 0); } + public static VectorOffset CreateBackScenarioGroupIdVector(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 CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBackScenarioGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBackScenarioGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndScenarioReplayExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioReplayExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*VolumeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*ReplayType*/, 4 /*SCHALE.Common.FlatData.ScenarioModeReplayTypes*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ChapterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*EpisodeId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*FrontScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*BackScenarioGroupId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs b/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs new file mode 100644 index 0000000..174507b --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioReplayExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ScenarioReplayExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioReplayExcelTable GetRootAsScenarioReplayExcelTable(ByteBuffer _bb) { return GetRootAsScenarioReplayExcelTable(_bb, new ScenarioReplayExcelTable()); } + public static ScenarioReplayExcelTable GetRootAsScenarioReplayExcelTable(ByteBuffer _bb, ScenarioReplayExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioReplayExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioReplayExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioReplayExcel?)(new SCHALE.Common.FlatData.ScenarioReplayExcel()).__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 CreateScenarioReplayExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ScenarioReplayExcelTable.AddDataList(builder, DataListOffset); + return ScenarioReplayExcelTable.EndScenarioReplayExcelTable(builder); + } + + public static void StartScenarioReplayExcelTable(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 EndScenarioReplayExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioReplayExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioReplayExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs b/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs new file mode 100644 index 0000000..31bb571 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioResourceInfoExcel.cs @@ -0,0 +1,119 @@ +// +// 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 ScenarioResourceInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioResourceInfoExcel GetRootAsScenarioResourceInfoExcel(ByteBuffer _bb) { return GetRootAsScenarioResourceInfoExcel(_bb, new ScenarioResourceInfoExcel()); } + public static ScenarioResourceInfoExcel GetRootAsScenarioResourceInfoExcel(ByteBuffer _bb, ScenarioResourceInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioResourceInfoExcel __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 ScenarioModeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long VideoId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BgmId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AudioName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAudioNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetAudioNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetAudioNameArray() { return __p.__vector_as_array(12); } + public string SpinePath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSpinePathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetSpinePathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetSpinePathArray() { return __p.__vector_as_array(14); } + public int Ratio { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string LobbyAniPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLobbyAniPathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetLobbyAniPathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetLobbyAniPathArray() { return __p.__vector_as_array(18); } + public string MovieCGPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetMovieCGPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetMovieCGPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetMovieCGPathArray() { return __p.__vector_as_array(20); } + public uint LocalizeId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateScenarioResourceInfoExcel(FlatBufferBuilder builder, + long Id = 0, + long ScenarioModeId = 0, + long VideoId = 0, + long BgmId = 0, + StringOffset AudioNameOffset = default(StringOffset), + StringOffset SpinePathOffset = default(StringOffset), + int Ratio = 0, + StringOffset LobbyAniPathOffset = default(StringOffset), + StringOffset MovieCGPathOffset = default(StringOffset), + uint LocalizeId = 0) { + builder.StartTable(10); + ScenarioResourceInfoExcel.AddBgmId(builder, BgmId); + ScenarioResourceInfoExcel.AddVideoId(builder, VideoId); + ScenarioResourceInfoExcel.AddScenarioModeId(builder, ScenarioModeId); + ScenarioResourceInfoExcel.AddId(builder, Id); + ScenarioResourceInfoExcel.AddLocalizeId(builder, LocalizeId); + ScenarioResourceInfoExcel.AddMovieCGPath(builder, MovieCGPathOffset); + ScenarioResourceInfoExcel.AddLobbyAniPath(builder, LobbyAniPathOffset); + ScenarioResourceInfoExcel.AddRatio(builder, Ratio); + ScenarioResourceInfoExcel.AddSpinePath(builder, SpinePathOffset); + ScenarioResourceInfoExcel.AddAudioName(builder, AudioNameOffset); + return ScenarioResourceInfoExcel.EndScenarioResourceInfoExcel(builder); + } + + public static void StartScenarioResourceInfoExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddScenarioModeId(FlatBufferBuilder builder, long scenarioModeId) { builder.AddLong(1, scenarioModeId, 0); } + public static void AddVideoId(FlatBufferBuilder builder, long videoId) { builder.AddLong(2, videoId, 0); } + public static void AddBgmId(FlatBufferBuilder builder, long bgmId) { builder.AddLong(3, bgmId, 0); } + public static void AddAudioName(FlatBufferBuilder builder, StringOffset audioNameOffset) { builder.AddOffset(4, audioNameOffset.Value, 0); } + public static void AddSpinePath(FlatBufferBuilder builder, StringOffset spinePathOffset) { builder.AddOffset(5, spinePathOffset.Value, 0); } + public static void AddRatio(FlatBufferBuilder builder, int ratio) { builder.AddInt(6, ratio, 0); } + public static void AddLobbyAniPath(FlatBufferBuilder builder, StringOffset lobbyAniPathOffset) { builder.AddOffset(7, lobbyAniPathOffset.Value, 0); } + public static void AddMovieCGPath(FlatBufferBuilder builder, StringOffset movieCGPathOffset) { builder.AddOffset(8, movieCGPathOffset.Value, 0); } + public static void AddLocalizeId(FlatBufferBuilder builder, uint localizeId) { builder.AddUint(9, localizeId, 0); } + public static Offset EndScenarioResourceInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioResourceInfoExcelVerify +{ + 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 /*ScenarioModeId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*VideoId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*BgmId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*AudioName*/, false) + && verifier.VerifyString(tablePos, 14 /*SpinePath*/, false) + && verifier.VerifyField(tablePos, 16 /*Ratio*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*LobbyAniPath*/, false) + && verifier.VerifyString(tablePos, 20 /*MovieCGPath*/, false) + && verifier.VerifyField(tablePos, 22 /*LocalizeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioScriptExcel.cs b/SCHALE.Common/FlatData/ScenarioScriptExcel.cs new file mode 100644 index 0000000..d2536ca --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioScriptExcel.cs @@ -0,0 +1,124 @@ +// +// 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 ScenarioScriptExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioScriptExcel GetRootAsScenarioScriptExcel(ByteBuffer _bb) { return GetRootAsScenarioScriptExcel(_bb, new ScenarioScriptExcel()); } + public static ScenarioScriptExcel GetRootAsScenarioScriptExcel(ByteBuffer _bb, ScenarioScriptExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioScriptExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SelectionGroup { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Sound { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSoundBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSoundBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSoundArray() { return __p.__vector_as_array(10); } + public uint Transition { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint BGName { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint BGEffect { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string PopupFileName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPopupFileNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetPopupFileNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetPopupFileNameArray() { return __p.__vector_as_array(18); } + public string ScriptKr { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetScriptKrBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetScriptKrBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetScriptKrArray() { return __p.__vector_as_array(20); } + public string TextJp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextJpBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetTextJpBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetTextJpArray() { return __p.__vector_as_array(22); } + public uint VoiceId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateScenarioScriptExcel(FlatBufferBuilder builder, + long GroupId = 0, + long SelectionGroup = 0, + long BGMId = 0, + StringOffset SoundOffset = default(StringOffset), + uint Transition = 0, + uint BGName = 0, + uint BGEffect = 0, + StringOffset PopupFileNameOffset = default(StringOffset), + StringOffset ScriptKrOffset = default(StringOffset), + StringOffset TextJpOffset = default(StringOffset), + uint VoiceId = 0) { + builder.StartTable(11); + ScenarioScriptExcel.AddBGMId(builder, BGMId); + ScenarioScriptExcel.AddSelectionGroup(builder, SelectionGroup); + ScenarioScriptExcel.AddGroupId(builder, GroupId); + ScenarioScriptExcel.AddVoiceId(builder, VoiceId); + ScenarioScriptExcel.AddTextJp(builder, TextJpOffset); + ScenarioScriptExcel.AddScriptKr(builder, ScriptKrOffset); + ScenarioScriptExcel.AddPopupFileName(builder, PopupFileNameOffset); + ScenarioScriptExcel.AddBGEffect(builder, BGEffect); + ScenarioScriptExcel.AddBGName(builder, BGName); + ScenarioScriptExcel.AddTransition(builder, Transition); + ScenarioScriptExcel.AddSound(builder, SoundOffset); + return ScenarioScriptExcel.EndScenarioScriptExcel(builder); + } + + public static void StartScenarioScriptExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddSelectionGroup(FlatBufferBuilder builder, long selectionGroup) { builder.AddLong(1, selectionGroup, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(2, bGMId, 0); } + public static void AddSound(FlatBufferBuilder builder, StringOffset soundOffset) { builder.AddOffset(3, soundOffset.Value, 0); } + public static void AddTransition(FlatBufferBuilder builder, uint transition) { builder.AddUint(4, transition, 0); } + public static void AddBGName(FlatBufferBuilder builder, uint bGName) { builder.AddUint(5, bGName, 0); } + public static void AddBGEffect(FlatBufferBuilder builder, uint bGEffect) { builder.AddUint(6, bGEffect, 0); } + public static void AddPopupFileName(FlatBufferBuilder builder, StringOffset popupFileNameOffset) { builder.AddOffset(7, popupFileNameOffset.Value, 0); } + public static void AddScriptKr(FlatBufferBuilder builder, StringOffset scriptKrOffset) { builder.AddOffset(8, scriptKrOffset.Value, 0); } + public static void AddTextJp(FlatBufferBuilder builder, StringOffset textJpOffset) { builder.AddOffset(9, textJpOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(10, voiceId, 0); } + public static Offset EndScenarioScriptExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioScriptExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SelectionGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*Sound*/, false) + && verifier.VerifyField(tablePos, 12 /*Transition*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*BGName*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*BGEffect*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*PopupFileName*/, false) + && verifier.VerifyString(tablePos, 20 /*ScriptKr*/, false) + && verifier.VerifyString(tablePos, 22 /*TextJp*/, false) + && verifier.VerifyField(tablePos, 24 /*VoiceId*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs b/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs new file mode 100644 index 0000000..063a0b7 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioScriptField1Excel.cs @@ -0,0 +1,130 @@ +// +// 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 ScenarioScriptField1Excel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioScriptField1Excel GetRootAsScenarioScriptField1Excel(ByteBuffer _bb) { return GetRootAsScenarioScriptField1Excel(_bb, new ScenarioScriptField1Excel()); } + public static ScenarioScriptField1Excel GetRootAsScenarioScriptField1Excel(ByteBuffer _bb, ScenarioScriptField1Excel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioScriptField1Excel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SelectionGroup { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BGMId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Sound { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSoundBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSoundBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSoundArray() { return __p.__vector_as_array(10); } + public uint Transition { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint BGName { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint BGEffect { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string PopupFileName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPopupFileNameBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetPopupFileNameBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetPopupFileNameArray() { return __p.__vector_as_array(18); } + public string ScriptKr { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetScriptKrBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetScriptKrBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetScriptKrArray() { return __p.__vector_as_array(20); } + public string TextJp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextJpBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetTextJpBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetTextJpArray() { return __p.__vector_as_array(22); } + public string VoiceJp { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVoiceJpBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetVoiceJpBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetVoiceJpArray() { return __p.__vector_as_array(24); } + + public static Offset CreateScenarioScriptField1Excel(FlatBufferBuilder builder, + long GroupId = 0, + long SelectionGroup = 0, + long BGMId = 0, + StringOffset SoundOffset = default(StringOffset), + uint Transition = 0, + uint BGName = 0, + uint BGEffect = 0, + StringOffset PopupFileNameOffset = default(StringOffset), + StringOffset ScriptKrOffset = default(StringOffset), + StringOffset TextJpOffset = default(StringOffset), + StringOffset VoiceJpOffset = default(StringOffset)) { + builder.StartTable(11); + ScenarioScriptField1Excel.AddBGMId(builder, BGMId); + ScenarioScriptField1Excel.AddSelectionGroup(builder, SelectionGroup); + ScenarioScriptField1Excel.AddGroupId(builder, GroupId); + ScenarioScriptField1Excel.AddVoiceJp(builder, VoiceJpOffset); + ScenarioScriptField1Excel.AddTextJp(builder, TextJpOffset); + ScenarioScriptField1Excel.AddScriptKr(builder, ScriptKrOffset); + ScenarioScriptField1Excel.AddPopupFileName(builder, PopupFileNameOffset); + ScenarioScriptField1Excel.AddBGEffect(builder, BGEffect); + ScenarioScriptField1Excel.AddBGName(builder, BGName); + ScenarioScriptField1Excel.AddTransition(builder, Transition); + ScenarioScriptField1Excel.AddSound(builder, SoundOffset); + return ScenarioScriptField1Excel.EndScenarioScriptField1Excel(builder); + } + + public static void StartScenarioScriptField1Excel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddSelectionGroup(FlatBufferBuilder builder, long selectionGroup) { builder.AddLong(1, selectionGroup, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(2, bGMId, 0); } + public static void AddSound(FlatBufferBuilder builder, StringOffset soundOffset) { builder.AddOffset(3, soundOffset.Value, 0); } + public static void AddTransition(FlatBufferBuilder builder, uint transition) { builder.AddUint(4, transition, 0); } + public static void AddBGName(FlatBufferBuilder builder, uint bGName) { builder.AddUint(5, bGName, 0); } + public static void AddBGEffect(FlatBufferBuilder builder, uint bGEffect) { builder.AddUint(6, bGEffect, 0); } + public static void AddPopupFileName(FlatBufferBuilder builder, StringOffset popupFileNameOffset) { builder.AddOffset(7, popupFileNameOffset.Value, 0); } + public static void AddScriptKr(FlatBufferBuilder builder, StringOffset scriptKrOffset) { builder.AddOffset(8, scriptKrOffset.Value, 0); } + public static void AddTextJp(FlatBufferBuilder builder, StringOffset textJpOffset) { builder.AddOffset(9, textJpOffset.Value, 0); } + public static void AddVoiceJp(FlatBufferBuilder builder, StringOffset voiceJpOffset) { builder.AddOffset(10, voiceJpOffset.Value, 0); } + public static Offset EndScenarioScriptField1Excel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioScriptField1ExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*SelectionGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*Sound*/, false) + && verifier.VerifyField(tablePos, 12 /*Transition*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*BGName*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*BGEffect*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*PopupFileName*/, false) + && verifier.VerifyString(tablePos, 20 /*ScriptKr*/, false) + && verifier.VerifyString(tablePos, 22 /*TextJp*/, false) + && verifier.VerifyString(tablePos, 24 /*VoiceJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs b/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs new file mode 100644 index 0000000..971b68b --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioScriptField1ExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ScenarioScriptField1ExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioScriptField1ExcelTable GetRootAsScenarioScriptField1ExcelTable(ByteBuffer _bb) { return GetRootAsScenarioScriptField1ExcelTable(_bb, new ScenarioScriptField1ExcelTable()); } + public static ScenarioScriptField1ExcelTable GetRootAsScenarioScriptField1ExcelTable(ByteBuffer _bb, ScenarioScriptField1ExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioScriptField1ExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ScenarioScriptField1Excel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioScriptField1Excel?)(new SCHALE.Common.FlatData.ScenarioScriptField1Excel()).__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 CreateScenarioScriptField1ExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ScenarioScriptField1ExcelTable.AddDataList(builder, DataListOffset); + return ScenarioScriptField1ExcelTable.EndScenarioScriptField1ExcelTable(builder); + } + + public static void StartScenarioScriptField1ExcelTable(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 EndScenarioScriptField1ExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioScriptField1ExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioScriptField1ExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs b/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs new file mode 100644 index 0000000..5ea0cdc --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioTransitionExcel.cs @@ -0,0 +1,104 @@ +// +// 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 ScenarioTransitionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ScenarioTransitionExcel GetRootAsScenarioTransitionExcel(ByteBuffer _bb) { return GetRootAsScenarioTransitionExcel(_bb, new ScenarioTransitionExcel()); } + public static ScenarioTransitionExcel GetRootAsScenarioTransitionExcel(ByteBuffer _bb, ScenarioTransitionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ScenarioTransitionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Name { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string TransitionOut { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTransitionOutBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetTransitionOutBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetTransitionOutArray() { return __p.__vector_as_array(6); } + public long TransitionOutDuration { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TransitionOutResource { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTransitionOutResourceBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetTransitionOutResourceBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetTransitionOutResourceArray() { return __p.__vector_as_array(10); } + public string TransitionIn { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTransitionInBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetTransitionInBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetTransitionInArray() { return __p.__vector_as_array(12); } + public long TransitionInDuration { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TransitionInResource { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTransitionInResourceBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetTransitionInResourceBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetTransitionInResourceArray() { return __p.__vector_as_array(16); } + + public static Offset CreateScenarioTransitionExcel(FlatBufferBuilder builder, + uint Name = 0, + StringOffset TransitionOutOffset = default(StringOffset), + long TransitionOutDuration = 0, + StringOffset TransitionOutResourceOffset = default(StringOffset), + StringOffset TransitionInOffset = default(StringOffset), + long TransitionInDuration = 0, + StringOffset TransitionInResourceOffset = default(StringOffset)) { + builder.StartTable(7); + ScenarioTransitionExcel.AddTransitionInDuration(builder, TransitionInDuration); + ScenarioTransitionExcel.AddTransitionOutDuration(builder, TransitionOutDuration); + ScenarioTransitionExcel.AddTransitionInResource(builder, TransitionInResourceOffset); + ScenarioTransitionExcel.AddTransitionIn(builder, TransitionInOffset); + ScenarioTransitionExcel.AddTransitionOutResource(builder, TransitionOutResourceOffset); + ScenarioTransitionExcel.AddTransitionOut(builder, TransitionOutOffset); + ScenarioTransitionExcel.AddName(builder, Name); + return ScenarioTransitionExcel.EndScenarioTransitionExcel(builder); + } + + public static void StartScenarioTransitionExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddName(FlatBufferBuilder builder, uint name) { builder.AddUint(0, name, 0); } + public static void AddTransitionOut(FlatBufferBuilder builder, StringOffset transitionOutOffset) { builder.AddOffset(1, transitionOutOffset.Value, 0); } + public static void AddTransitionOutDuration(FlatBufferBuilder builder, long transitionOutDuration) { builder.AddLong(2, transitionOutDuration, 0); } + public static void AddTransitionOutResource(FlatBufferBuilder builder, StringOffset transitionOutResourceOffset) { builder.AddOffset(3, transitionOutResourceOffset.Value, 0); } + public static void AddTransitionIn(FlatBufferBuilder builder, StringOffset transitionInOffset) { builder.AddOffset(4, transitionInOffset.Value, 0); } + public static void AddTransitionInDuration(FlatBufferBuilder builder, long transitionInDuration) { builder.AddLong(5, transitionInDuration, 0); } + public static void AddTransitionInResource(FlatBufferBuilder builder, StringOffset transitionInResourceOffset) { builder.AddOffset(6, transitionInResourceOffset.Value, 0); } + public static Offset EndScenarioTransitionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ScenarioTransitionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Name*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*TransitionOut*/, false) + && verifier.VerifyField(tablePos, 8 /*TransitionOutDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*TransitionOutResource*/, false) + && verifier.VerifyString(tablePos, 12 /*TransitionIn*/, false) + && verifier.VerifyField(tablePos, 14 /*TransitionInDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 16 /*TransitionInResource*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ScenarioType.cs b/SCHALE.Common/FlatData/ScenarioType.cs new file mode 100644 index 0000000..f520d6d --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioType : int +{ + None = 0, + Title = 1, + Place = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioTypes.cs b/SCHALE.Common/FlatData/ScenarioTypes.cs new file mode 100644 index 0000000..3c9aedf --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioTypes.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioTypes : int +{ + None = 0, + Title = 1, + Place = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioZoomAnchors.cs b/SCHALE.Common/FlatData/ScenarioZoomAnchors.cs new file mode 100644 index 0000000..4a68816 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioZoomAnchors.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioZoomAnchors : int +{ + Center = 0, + LeftTop = 1, + LeftBottom = 2, + RightTop = 3, + RightBottom = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ScenarioZoomType.cs b/SCHALE.Common/FlatData/ScenarioZoomType.cs new file mode 100644 index 0000000..5e662c7 --- /dev/null +++ b/SCHALE.Common/FlatData/ScenarioZoomType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ScenarioZoomType : int +{ + Instant = 0, + Slide = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/School.cs b/SCHALE.Common/FlatData/School.cs new file mode 100644 index 0000000..7b92ce4 --- /dev/null +++ b/SCHALE.Common/FlatData/School.cs @@ -0,0 +1,29 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum School : int +{ + None = 0, + Hyakkiyako = 1, + RedWinter = 2, + Trinity = 3, + Gehenna = 4, + Abydos = 5, + Millennium = 6, + Arius = 7, + Shanhaijing = 8, + Valkyrie = 9, + WildHunt = 10, + SRT = 11, + SCHALE = 12, + ETC = 13, + Tokiwadai = 14, + Sakugawa = 15, +}; + + +} diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs new file mode 100644 index 0000000..45b44dd --- /dev/null +++ b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs @@ -0,0 +1,85 @@ +// +// 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 SchoolDungeonRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SchoolDungeonRewardExcel GetRootAsSchoolDungeonRewardExcel(ByteBuffer _bb) { return GetRootAsSchoolDungeonRewardExcel(_bb, new SchoolDungeonRewardExcel()); } + public static SchoolDungeonRewardExcel GetRootAsSchoolDungeonRewardExcel(ByteBuffer _bb, SchoolDungeonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SchoolDungeonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.SchoolDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } + public SCHALE.Common.FlatData.RewardTag RewardTag { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); 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(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelProbability { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDisplayed { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateSchoolDungeonRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.SchoolDungeonType DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, + SCHALE.Common.FlatData.RewardTag RewardTag = SCHALE.Common.FlatData.RewardTag.Default, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0, + long RewardParcelProbability = 0, + bool IsDisplayed = false) { + builder.StartTable(8); + SchoolDungeonRewardExcel.AddRewardParcelProbability(builder, RewardParcelProbability); + SchoolDungeonRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + SchoolDungeonRewardExcel.AddRewardParcelId(builder, RewardParcelId); + SchoolDungeonRewardExcel.AddGroupId(builder, GroupId); + SchoolDungeonRewardExcel.AddRewardParcelType(builder, RewardParcelType); + SchoolDungeonRewardExcel.AddRewardTag(builder, RewardTag); + SchoolDungeonRewardExcel.AddDungeonType(builder, DungeonType); + SchoolDungeonRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return SchoolDungeonRewardExcel.EndSchoolDungeonRewardExcel(builder); + } + + public static void StartSchoolDungeonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SchoolDungeonType dungeonType) { builder.AddInt(1, (int)dungeonType, 0); } + public static void AddRewardTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.RewardTag rewardTag) { builder.AddInt(2, (int)rewardTag, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(3, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(4, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(5, rewardParcelAmount, 0); } + public static void AddRewardParcelProbability(FlatBufferBuilder builder, long rewardParcelProbability) { builder.AddLong(6, rewardParcelProbability, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(7, isDisplayed, false); } + public static Offset EndSchoolDungeonRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SchoolDungeonRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*DungeonType*/, 4 /*SCHALE.Common.FlatData.SchoolDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardTag*/, 4 /*SCHALE.Common.FlatData.RewardTag*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RewardParcelProbability*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs new file mode 100644 index 0000000..3cc30f4 --- /dev/null +++ b/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 SchoolDungeonRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SchoolDungeonRewardExcelTable GetRootAsSchoolDungeonRewardExcelTable(ByteBuffer _bb) { return GetRootAsSchoolDungeonRewardExcelTable(_bb, new SchoolDungeonRewardExcelTable()); } + public static SchoolDungeonRewardExcelTable GetRootAsSchoolDungeonRewardExcelTable(ByteBuffer _bb, SchoolDungeonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SchoolDungeonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.SchoolDungeonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonRewardExcel?)(new SCHALE.Common.FlatData.SchoolDungeonRewardExcel()).__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 CreateSchoolDungeonRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + SchoolDungeonRewardExcelTable.AddDataList(builder, DataListOffset); + return SchoolDungeonRewardExcelTable.EndSchoolDungeonRewardExcelTable(builder); + } + + public static void StartSchoolDungeonRewardExcelTable(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 EndSchoolDungeonRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SchoolDungeonRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SchoolDungeonRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs b/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs new file mode 100644 index 0000000..cbd75a3 --- /dev/null +++ b/SCHALE.Common/FlatData/SchoolDungeonStageExcel.cs @@ -0,0 +1,202 @@ +// +// 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 SchoolDungeonStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SchoolDungeonStageExcel GetRootAsSchoolDungeonStageExcel(ByteBuffer _bb) { return GetRootAsSchoolDungeonStageExcel(_bb, new SchoolDungeonStageExcel()); } + public static SchoolDungeonStageExcel GetRootAsSchoolDungeonStageExcel(ByteBuffer _bb, SchoolDungeonStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SchoolDungeonStageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StageId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.SchoolDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } + public int Difficulty { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrevStageId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType(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 StageEnterCostTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetStageEnterCostTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetStageEnterCostTypeArray() { 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 StageEnterCostId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StageEnterCostIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetStageEnterCostIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetStageEnterCostIdArray() { return __p.__vector_as_array(16); } + public long StageEnterCostAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StageEnterCostAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetStageEnterCostAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetStageEnterCostAmountArray() { return __p.__vector_as_array(18); } + public long StageEnterCostMinimumAmount(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StageEnterCostMinimumAmountLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostMinimumAmountBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetStageEnterCostMinimumAmountBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetStageEnterCostMinimumAmountArray() { return __p.__vector_as_array(20); } + public int GroundId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(24); 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(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(24); 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(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int StarGoalAmountLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(26); } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public long RecommandLevel { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageRewardId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayTimeLimitInSeconds { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateSchoolDungeonStageExcel(FlatBufferBuilder builder, + long StageId = 0, + SCHALE.Common.FlatData.SchoolDungeonType DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, + int Difficulty = 0, + long BattleDuration = 0, + long PrevStageId = 0, + VectorOffset StageEnterCostTypeOffset = default(VectorOffset), + VectorOffset StageEnterCostIdOffset = default(VectorOffset), + VectorOffset StageEnterCostAmountOffset = default(VectorOffset), + VectorOffset StageEnterCostMinimumAmountOffset = default(VectorOffset), + int GroundId = 0, + VectorOffset StarGoalOffset = default(VectorOffset), + VectorOffset StarGoalAmountOffset = default(VectorOffset), + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + long RecommandLevel = 0, + long StageRewardId = 0, + long PlayTimeLimitInSeconds = 0, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(17); + SchoolDungeonStageExcel.AddPlayTimeLimitInSeconds(builder, PlayTimeLimitInSeconds); + SchoolDungeonStageExcel.AddStageRewardId(builder, StageRewardId); + SchoolDungeonStageExcel.AddRecommandLevel(builder, RecommandLevel); + SchoolDungeonStageExcel.AddPrevStageId(builder, PrevStageId); + SchoolDungeonStageExcel.AddBattleDuration(builder, BattleDuration); + SchoolDungeonStageExcel.AddStageId(builder, StageId); + SchoolDungeonStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + SchoolDungeonStageExcel.AddStageTopography(builder, StageTopography); + SchoolDungeonStageExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); + SchoolDungeonStageExcel.AddStarGoal(builder, StarGoalOffset); + SchoolDungeonStageExcel.AddGroundId(builder, GroundId); + SchoolDungeonStageExcel.AddStageEnterCostMinimumAmount(builder, StageEnterCostMinimumAmountOffset); + SchoolDungeonStageExcel.AddStageEnterCostAmount(builder, StageEnterCostAmountOffset); + SchoolDungeonStageExcel.AddStageEnterCostId(builder, StageEnterCostIdOffset); + SchoolDungeonStageExcel.AddStageEnterCostType(builder, StageEnterCostTypeOffset); + SchoolDungeonStageExcel.AddDifficulty(builder, Difficulty); + SchoolDungeonStageExcel.AddDungeonType(builder, DungeonType); + return SchoolDungeonStageExcel.EndSchoolDungeonStageExcel(builder); + } + + public static void StartSchoolDungeonStageExcel(FlatBufferBuilder builder) { builder.StartTable(17); } + public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(0, stageId, 0); } + public static void AddDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SchoolDungeonType dungeonType) { builder.AddInt(1, (int)dungeonType, 0); } + public static void AddDifficulty(FlatBufferBuilder builder, int difficulty) { builder.AddInt(2, difficulty, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(3, battleDuration, 0); } + public static void AddPrevStageId(FlatBufferBuilder builder, long prevStageId) { builder.AddLong(4, prevStageId, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, VectorOffset stageEnterCostTypeOffset) { builder.AddOffset(5, stageEnterCostTypeOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostTypeVector(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 CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, VectorOffset stageEnterCostIdOffset) { builder.AddOffset(6, stageEnterCostIdOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostIdVector(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 CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, VectorOffset stageEnterCostAmountOffset) { builder.AddOffset(7, stageEnterCostAmountOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostAmountVector(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 CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStageEnterCostMinimumAmount(FlatBufferBuilder builder, VectorOffset stageEnterCostMinimumAmountOffset) { builder.AddOffset(8, stageEnterCostMinimumAmountOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostMinimumAmountVector(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 CreateStageEnterCostMinimumAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostMinimumAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostMinimumAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostMinimumAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddGroundId(FlatBufferBuilder builder, int groundId) { builder.AddInt(9, groundId, 0); } + public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(10, 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(11, 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 AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(12, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, long recommandLevel) { builder.AddLong(13, recommandLevel, 0); } + public static void AddStageRewardId(FlatBufferBuilder builder, long stageRewardId) { builder.AddLong(14, stageRewardId, 0); } + public static void AddPlayTimeLimitInSeconds(FlatBufferBuilder builder, long playTimeLimitInSeconds) { builder.AddLong(15, playTimeLimitInSeconds, 0); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(16, (int)echelonExtensionType, 0); } + public static Offset EndSchoolDungeonStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SchoolDungeonStageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*DungeonType*/, 4 /*SCHALE.Common.FlatData.SchoolDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Difficulty*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*PrevStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*StageEnterCostId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*StageEnterCostAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*StageEnterCostMinimumAmount*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 22 /*GroundId*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*StarGoalAmount*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 28 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*RecommandLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*StageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*PlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs new file mode 100644 index 0000000..4c54465 --- /dev/null +++ b/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 SchoolDungeonStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SchoolDungeonStageExcelTable GetRootAsSchoolDungeonStageExcelTable(ByteBuffer _bb) { return GetRootAsSchoolDungeonStageExcelTable(_bb, new SchoolDungeonStageExcelTable()); } + public static SchoolDungeonStageExcelTable GetRootAsSchoolDungeonStageExcelTable(ByteBuffer _bb, SchoolDungeonStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SchoolDungeonStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.SchoolDungeonStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonStageExcel?)(new SCHALE.Common.FlatData.SchoolDungeonStageExcel()).__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 CreateSchoolDungeonStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + SchoolDungeonStageExcelTable.AddDataList(builder, DataListOffset); + return SchoolDungeonStageExcelTable.EndSchoolDungeonStageExcelTable(builder); + } + + public static void StartSchoolDungeonStageExcelTable(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 EndSchoolDungeonStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SchoolDungeonStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SchoolDungeonStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SchoolDungeonType.cs b/SCHALE.Common/FlatData/SchoolDungeonType.cs new file mode 100644 index 0000000..6e959fd --- /dev/null +++ b/SCHALE.Common/FlatData/SchoolDungeonType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SchoolDungeonType : int +{ + SchoolA = 0, + SchoolB = 1, + SchoolC = 2, + None = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/ServiceActionExcel.cs b/SCHALE.Common/FlatData/ServiceActionExcel.cs new file mode 100644 index 0000000..6965ebf --- /dev/null +++ b/SCHALE.Common/FlatData/ServiceActionExcel.cs @@ -0,0 +1,60 @@ +// +// 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 ServiceActionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ServiceActionExcel GetRootAsServiceActionExcel(ByteBuffer _bb) { return GetRootAsServiceActionExcel(_bb, new ServiceActionExcel()); } + public static ServiceActionExcel GetRootAsServiceActionExcel(ByteBuffer _bb, ServiceActionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ServiceActionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ServiceActionType ServiceActionType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ServiceActionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ServiceActionType.ClanCreate; } } + public bool IsLegacy { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GoodsId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateServiceActionExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ServiceActionType ServiceActionType = SCHALE.Common.FlatData.ServiceActionType.ClanCreate, + bool IsLegacy = false, + long GoodsId = 0) { + builder.StartTable(3); + ServiceActionExcel.AddGoodsId(builder, GoodsId); + ServiceActionExcel.AddServiceActionType(builder, ServiceActionType); + ServiceActionExcel.AddIsLegacy(builder, IsLegacy); + return ServiceActionExcel.EndServiceActionExcel(builder); + } + + public static void StartServiceActionExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddServiceActionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ServiceActionType serviceActionType) { builder.AddInt(0, (int)serviceActionType, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(1, isLegacy, false); } + public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(2, goodsId, 0); } + public static Offset EndServiceActionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ServiceActionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ServiceActionType*/, 4 /*SCHALE.Common.FlatData.ServiceActionType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*GoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ServiceActionExcelTable.cs b/SCHALE.Common/FlatData/ServiceActionExcelTable.cs new file mode 100644 index 0000000..3279813 --- /dev/null +++ b/SCHALE.Common/FlatData/ServiceActionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ServiceActionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ServiceActionExcelTable GetRootAsServiceActionExcelTable(ByteBuffer _bb) { return GetRootAsServiceActionExcelTable(_bb, new ServiceActionExcelTable()); } + public static ServiceActionExcelTable GetRootAsServiceActionExcelTable(ByteBuffer _bb, ServiceActionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ServiceActionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ServiceActionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ServiceActionExcel?)(new SCHALE.Common.FlatData.ServiceActionExcel()).__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 CreateServiceActionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ServiceActionExcelTable.AddDataList(builder, DataListOffset); + return ServiceActionExcelTable.EndServiceActionExcelTable(builder); + } + + public static void StartServiceActionExcelTable(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 EndServiceActionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ServiceActionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ServiceActionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ServiceActionType.cs b/SCHALE.Common/FlatData/ServiceActionType.cs new file mode 100644 index 0000000..245a16f --- /dev/null +++ b/SCHALE.Common/FlatData/ServiceActionType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ServiceActionType : int +{ + ClanCreate = 0, + HardAdventurePlayCountRecover = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs new file mode 100644 index 0000000..4b8783f --- /dev/null +++ b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs @@ -0,0 +1,112 @@ +// +// 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 ShiftingCraftRecipeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShiftingCraftRecipeExcel GetRootAsShiftingCraftRecipeExcel(ByteBuffer _bb) { return GetRootAsShiftingCraftRecipeExcel(_bb, new ShiftingCraftRecipeExcel()); } + public static ShiftingCraftRecipeExcel GetRootAsShiftingCraftRecipeExcel(ByteBuffer _bb, ShiftingCraftRecipeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShiftingCraftRecipeExcel __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 DisplayOrder { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int NotificationId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType ResultParcel { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ResultId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ResultAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RequireItemId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RequireItemAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RequireGold { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag IngredientTag(int j) { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int IngredientTagLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetIngredientTagBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetIngredientTagBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.Tag[] GetIngredientTagArray() { int o = __p.__offset(22); 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 IngredientExp { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateShiftingCraftRecipeExcel(FlatBufferBuilder builder, + long Id = 0, + long DisplayOrder = 0, + int NotificationId = 0, + SCHALE.Common.FlatData.ParcelType ResultParcel = SCHALE.Common.FlatData.ParcelType.None, + long ResultId = 0, + long ResultAmount = 0, + long RequireItemId = 0, + long RequireItemAmount = 0, + long RequireGold = 0, + VectorOffset IngredientTagOffset = default(VectorOffset), + long IngredientExp = 0) { + builder.StartTable(11); + ShiftingCraftRecipeExcel.AddIngredientExp(builder, IngredientExp); + ShiftingCraftRecipeExcel.AddRequireGold(builder, RequireGold); + ShiftingCraftRecipeExcel.AddRequireItemAmount(builder, RequireItemAmount); + ShiftingCraftRecipeExcel.AddRequireItemId(builder, RequireItemId); + ShiftingCraftRecipeExcel.AddResultAmount(builder, ResultAmount); + ShiftingCraftRecipeExcel.AddResultId(builder, ResultId); + ShiftingCraftRecipeExcel.AddDisplayOrder(builder, DisplayOrder); + ShiftingCraftRecipeExcel.AddId(builder, Id); + ShiftingCraftRecipeExcel.AddIngredientTag(builder, IngredientTagOffset); + ShiftingCraftRecipeExcel.AddResultParcel(builder, ResultParcel); + ShiftingCraftRecipeExcel.AddNotificationId(builder, NotificationId); + return ShiftingCraftRecipeExcel.EndShiftingCraftRecipeExcel(builder); + } + + public static void StartShiftingCraftRecipeExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(1, displayOrder, 0); } + public static void AddNotificationId(FlatBufferBuilder builder, int notificationId) { builder.AddInt(2, notificationId, 0); } + public static void AddResultParcel(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType resultParcel) { builder.AddInt(3, (int)resultParcel, 0); } + public static void AddResultId(FlatBufferBuilder builder, long resultId) { builder.AddLong(4, resultId, 0); } + public static void AddResultAmount(FlatBufferBuilder builder, long resultAmount) { builder.AddLong(5, resultAmount, 0); } + public static void AddRequireItemId(FlatBufferBuilder builder, long requireItemId) { builder.AddLong(6, requireItemId, 0); } + public static void AddRequireItemAmount(FlatBufferBuilder builder, long requireItemAmount) { builder.AddLong(7, requireItemAmount, 0); } + public static void AddRequireGold(FlatBufferBuilder builder, long requireGold) { builder.AddLong(8, requireGold, 0); } + public static void AddIngredientTag(FlatBufferBuilder builder, VectorOffset ingredientTagOffset) { builder.AddOffset(9, ingredientTagOffset.Value, 0); } + public static VectorOffset CreateIngredientTagVector(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 CreateIngredientTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateIngredientTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartIngredientTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddIngredientExp(FlatBufferBuilder builder, long ingredientExp) { builder.AddLong(10, ingredientExp, 0); } + public static Offset EndShiftingCraftRecipeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShiftingCraftRecipeExcelVerify +{ + 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 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*NotificationId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ResultParcel*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ResultId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ResultAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RequireItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*RequireItemAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*RequireGold*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*IngredientTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 24 /*IngredientExp*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs new file mode 100644 index 0000000..06b15f9 --- /dev/null +++ b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShiftingCraftRecipeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShiftingCraftRecipeExcelTable GetRootAsShiftingCraftRecipeExcelTable(ByteBuffer _bb) { return GetRootAsShiftingCraftRecipeExcelTable(_bb, new ShiftingCraftRecipeExcelTable()); } + public static ShiftingCraftRecipeExcelTable GetRootAsShiftingCraftRecipeExcelTable(ByteBuffer _bb, ShiftingCraftRecipeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShiftingCraftRecipeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShiftingCraftRecipeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShiftingCraftRecipeExcel?)(new SCHALE.Common.FlatData.ShiftingCraftRecipeExcel()).__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 CreateShiftingCraftRecipeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShiftingCraftRecipeExcelTable.AddDataList(builder, DataListOffset); + return ShiftingCraftRecipeExcelTable.EndShiftingCraftRecipeExcelTable(builder); + } + + public static void StartShiftingCraftRecipeExcelTable(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 EndShiftingCraftRecipeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShiftingCraftRecipeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShiftingCraftRecipeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopCashExcel.cs b/SCHALE.Common/FlatData/ShopCashExcel.cs new file mode 100644 index 0000000..1c06771 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopCashExcel.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::Google.FlatBuffers; + +public struct ShopCashExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopCashExcel GetRootAsShopCashExcel(ByteBuffer _bb) { return GetRootAsShopCashExcel(_bb, new ShopCashExcel()); } + public static ShopCashExcel GetRootAsShopCashExcel(ByteBuffer _bb, ShopCashExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopCashExcel __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 CashProductId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.PurchaseSourceType PackageType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PurchaseSourceType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseSourceType.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 DisplayOrder { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RenewalDisplayOrder { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ProductCategory CategoryType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ProductCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductCategory.None; } } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public string SalePeriodFrom { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array(22); } + public string SalePeriodTo { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodToBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(24); } + public bool PeriodTag { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AccountLevelLimit { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool AccountLevelHide { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ClearMissionLimit { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ClearMissionHide { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string PurchaseReportEventName { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPurchaseReportEventNameBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetPurchaseReportEventNameBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetPurchaseReportEventNameArray() { return __p.__vector_as_array(36); } + + public static Offset CreateShopCashExcel(FlatBufferBuilder builder, + long Id = 0, + long CashProductId = 0, + SCHALE.Common.FlatData.PurchaseSourceType PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None, + uint LocalizeEtcId = 0, + StringOffset IconPathOffset = default(StringOffset), + long DisplayOrder = 0, + long RenewalDisplayOrder = 0, + SCHALE.Common.FlatData.ProductCategory CategoryType = SCHALE.Common.FlatData.ProductCategory.None, + SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None, + StringOffset SalePeriodFromOffset = default(StringOffset), + StringOffset SalePeriodToOffset = default(StringOffset), + bool PeriodTag = false, + long AccountLevelLimit = 0, + bool AccountLevelHide = false, + long ClearMissionLimit = 0, + bool ClearMissionHide = false, + StringOffset PurchaseReportEventNameOffset = default(StringOffset)) { + builder.StartTable(17); + ShopCashExcel.AddClearMissionLimit(builder, ClearMissionLimit); + ShopCashExcel.AddAccountLevelLimit(builder, AccountLevelLimit); + ShopCashExcel.AddRenewalDisplayOrder(builder, RenewalDisplayOrder); + ShopCashExcel.AddDisplayOrder(builder, DisplayOrder); + ShopCashExcel.AddCashProductId(builder, CashProductId); + ShopCashExcel.AddId(builder, Id); + ShopCashExcel.AddPurchaseReportEventName(builder, PurchaseReportEventNameOffset); + ShopCashExcel.AddSalePeriodTo(builder, SalePeriodToOffset); + ShopCashExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset); + ShopCashExcel.AddDisplayTag(builder, DisplayTag); + ShopCashExcel.AddCategoryType(builder, CategoryType); + ShopCashExcel.AddIconPath(builder, IconPathOffset); + ShopCashExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + ShopCashExcel.AddPackageType(builder, PackageType); + ShopCashExcel.AddClearMissionHide(builder, ClearMissionHide); + ShopCashExcel.AddAccountLevelHide(builder, AccountLevelHide); + ShopCashExcel.AddPeriodTag(builder, PeriodTag); + return ShopCashExcel.EndShopCashExcel(builder); + } + + public static void StartShopCashExcel(FlatBufferBuilder builder) { builder.StartTable(17); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCashProductId(FlatBufferBuilder builder, long cashProductId) { builder.AddLong(1, cashProductId, 0); } + public static void AddPackageType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseSourceType packageType) { builder.AddInt(2, (int)packageType, 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 AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(5, displayOrder, 0); } + public static void AddRenewalDisplayOrder(FlatBufferBuilder builder, long renewalDisplayOrder) { builder.AddLong(6, renewalDisplayOrder, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductCategory categoryType) { builder.AddInt(7, (int)categoryType, 0); } + public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(8, (int)displayTag, 0); } + public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(9, salePeriodFromOffset.Value, 0); } + public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(10, salePeriodToOffset.Value, 0); } + public static void AddPeriodTag(FlatBufferBuilder builder, bool periodTag) { builder.AddBool(11, periodTag, false); } + public static void AddAccountLevelLimit(FlatBufferBuilder builder, long accountLevelLimit) { builder.AddLong(12, accountLevelLimit, 0); } + public static void AddAccountLevelHide(FlatBufferBuilder builder, bool accountLevelHide) { builder.AddBool(13, accountLevelHide, false); } + public static void AddClearMissionLimit(FlatBufferBuilder builder, long clearMissionLimit) { builder.AddLong(14, clearMissionLimit, 0); } + public static void AddClearMissionHide(FlatBufferBuilder builder, bool clearMissionHide) { builder.AddBool(15, clearMissionHide, false); } + public static void AddPurchaseReportEventName(FlatBufferBuilder builder, StringOffset purchaseReportEventNameOffset) { builder.AddOffset(16, purchaseReportEventNameOffset.Value, 0); } + public static Offset EndShopCashExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopCashExcelVerify +{ + 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 /*CashProductId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*PackageType*/, 4 /*SCHALE.Common.FlatData.PurchaseSourceType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*IconPath*/, false) + && verifier.VerifyField(tablePos, 14 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RenewalDisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ProductCategory*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false) + && verifier.VerifyString(tablePos, 22 /*SalePeriodFrom*/, false) + && verifier.VerifyString(tablePos, 24 /*SalePeriodTo*/, false) + && verifier.VerifyField(tablePos, 26 /*PeriodTag*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 28 /*AccountLevelLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*AccountLevelHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*ClearMissionLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*ClearMissionHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 36 /*PurchaseReportEventName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopCashExcelTable.cs b/SCHALE.Common/FlatData/ShopCashExcelTable.cs new file mode 100644 index 0000000..e01d358 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopCashExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopCashExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopCashExcelTable GetRootAsShopCashExcelTable(ByteBuffer _bb) { return GetRootAsShopCashExcelTable(_bb, new ShopCashExcelTable()); } + public static ShopCashExcelTable GetRootAsShopCashExcelTable(ByteBuffer _bb, ShopCashExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopCashExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopCashExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopCashExcel?)(new SCHALE.Common.FlatData.ShopCashExcel()).__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 CreateShopCashExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopCashExcelTable.AddDataList(builder, DataListOffset); + return ShopCashExcelTable.EndShopCashExcelTable(builder); + } + + public static void StartShopCashExcelTable(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 EndShopCashExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopCashExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopCashExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs new file mode 100644 index 0000000..bdbfa04 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcel.cs @@ -0,0 +1,66 @@ +// +// 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 ShopCashScenarioResourceInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopCashScenarioResourceInfoExcel GetRootAsShopCashScenarioResourceInfoExcel(ByteBuffer _bb) { return GetRootAsShopCashScenarioResourceInfoExcel(_bb, new ShopCashScenarioResourceInfoExcel()); } + public static ShopCashScenarioResourceInfoExcel GetRootAsShopCashScenarioResourceInfoExcel(ByteBuffer _bb, ShopCashScenarioResourceInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopCashScenarioResourceInfoExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ScenarioResrouceInfoId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShopCashId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string IconPath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(8); } + + public static Offset CreateShopCashScenarioResourceInfoExcel(FlatBufferBuilder builder, + long ScenarioResrouceInfoId = 0, + long ShopCashId = 0, + StringOffset IconPathOffset = default(StringOffset)) { + builder.StartTable(3); + ShopCashScenarioResourceInfoExcel.AddShopCashId(builder, ShopCashId); + ShopCashScenarioResourceInfoExcel.AddScenarioResrouceInfoId(builder, ScenarioResrouceInfoId); + ShopCashScenarioResourceInfoExcel.AddIconPath(builder, IconPathOffset); + return ShopCashScenarioResourceInfoExcel.EndShopCashScenarioResourceInfoExcel(builder); + } + + public static void StartShopCashScenarioResourceInfoExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddScenarioResrouceInfoId(FlatBufferBuilder builder, long scenarioResrouceInfoId) { builder.AddLong(0, scenarioResrouceInfoId, 0); } + public static void AddShopCashId(FlatBufferBuilder builder, long shopCashId) { builder.AddLong(1, shopCashId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(2, iconPathOffset.Value, 0); } + public static Offset EndShopCashScenarioResourceInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopCashScenarioResourceInfoExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ScenarioResrouceInfoId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ShopCashId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*IconPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs new file mode 100644 index 0000000..8cda873 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopCashScenarioResourceInfoExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopCashScenarioResourceInfoExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopCashScenarioResourceInfoExcelTable GetRootAsShopCashScenarioResourceInfoExcelTable(ByteBuffer _bb) { return GetRootAsShopCashScenarioResourceInfoExcelTable(_bb, new ShopCashScenarioResourceInfoExcelTable()); } + public static ShopCashScenarioResourceInfoExcelTable GetRootAsShopCashScenarioResourceInfoExcelTable(ByteBuffer _bb, ShopCashScenarioResourceInfoExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopCashScenarioResourceInfoExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopCashScenarioResourceInfoExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopCashScenarioResourceInfoExcel?)(new SCHALE.Common.FlatData.ShopCashScenarioResourceInfoExcel()).__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 CreateShopCashScenarioResourceInfoExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopCashScenarioResourceInfoExcelTable.AddDataList(builder, DataListOffset); + return ShopCashScenarioResourceInfoExcelTable.EndShopCashScenarioResourceInfoExcelTable(builder); + } + + public static void StartShopCashScenarioResourceInfoExcelTable(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 EndShopCashScenarioResourceInfoExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopCashScenarioResourceInfoExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopCashScenarioResourceInfoExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopCategoryType.cs b/SCHALE.Common/FlatData/ShopCategoryType.cs new file mode 100644 index 0000000..d7d515f --- /dev/null +++ b/SCHALE.Common/FlatData/ShopCategoryType.cs @@ -0,0 +1,48 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ShopCategoryType : int +{ + General = 0, + SecretStone = 1, + Raid = 2, + Gold = 3, + Ap = 4, + PickupGacha = 5, + NormalGacha = 6, + PointGacha = 7, + EventGacha = 8, + ArenaTicket = 9, + Arena = 10, + TutoGacha = 11, + RecruitSellection = 12, + EventContent_0 = 13, + EventContent_1 = 14, + EventContent_2 = 15, + EventContent_3 = 16, + EventContent_4 = 17, + _Obsolete = 18, + LimitedGacha = 19, + MasterCoin = 20, + SecretStoneGrowth = 21, + TicketGacha = 22, + DirectPayGacha = 23, + FesGacha = 24, + TimeAttack = 25, + Chaser = 26, + ChaserTicket = 27, + SchoolDungeonTicket = 28, + AcademyTicket = 29, + Special = 30, + Care = 31, + BeforehandGacha = 32, + EliminateRaid = 33, + GlobalSpecialGacha = 34, +}; + + +} diff --git a/SCHALE.Common/FlatData/ShopExcel.cs b/SCHALE.Common/FlatData/ShopExcel.cs new file mode 100644 index 0000000..c0b7d18 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopExcel.cs @@ -0,0 +1,150 @@ +// +// 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 ShopExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopExcel GetRootAsShopExcel(ByteBuffer _bb) { return GetRootAsShopExcel(_bb, new ShopExcel()); } + public static ShopExcel GetRootAsShopExcel(ByteBuffer _bb, ShopExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopExcel __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 uint LocalizeEtcId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public bool IsLegacy { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GoodsId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GoodsIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGoodsIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetGoodsIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetGoodsIdArray() { return __p.__vector_as_array(12); } + public long DisplayOrder { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SalePeriodFrom { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array(16); } + public string SalePeriodTo { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodToBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(18); } + public long PurchaseCooltimeMin { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PurchaseCountLimit { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public string BuyReportEventName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(26); } + public bool RestrictBuyWhenInventoryFull { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public int ShopUpdateGroupId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateShopExcel(FlatBufferBuilder builder, + long Id = 0, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + bool IsLegacy = false, + VectorOffset GoodsIdOffset = default(VectorOffset), + long DisplayOrder = 0, + StringOffset SalePeriodFromOffset = default(StringOffset), + StringOffset SalePeriodToOffset = default(StringOffset), + long PurchaseCooltimeMin = 0, + long PurchaseCountLimit = 0, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None, + StringOffset BuyReportEventNameOffset = default(StringOffset), + bool RestrictBuyWhenInventoryFull = false, + SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None, + int ShopUpdateGroupId = 0) { + builder.StartTable(15); + ShopExcel.AddPurchaseCountLimit(builder, PurchaseCountLimit); + ShopExcel.AddPurchaseCooltimeMin(builder, PurchaseCooltimeMin); + ShopExcel.AddDisplayOrder(builder, DisplayOrder); + ShopExcel.AddId(builder, Id); + ShopExcel.AddShopUpdateGroupId(builder, ShopUpdateGroupId); + ShopExcel.AddDisplayTag(builder, DisplayTag); + ShopExcel.AddBuyReportEventName(builder, BuyReportEventNameOffset); + ShopExcel.AddPurchaseCountResetType(builder, PurchaseCountResetType); + ShopExcel.AddSalePeriodTo(builder, SalePeriodToOffset); + ShopExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset); + ShopExcel.AddGoodsId(builder, GoodsIdOffset); + ShopExcel.AddCategoryType(builder, CategoryType); + ShopExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + ShopExcel.AddRestrictBuyWhenInventoryFull(builder, RestrictBuyWhenInventoryFull); + ShopExcel.AddIsLegacy(builder, IsLegacy); + return ShopExcel.EndShopExcel(builder); + } + + public static void StartShopExcel(FlatBufferBuilder builder) { builder.StartTable(15); } + 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 AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(2, (int)categoryType, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(3, isLegacy, false); } + public static void AddGoodsId(FlatBufferBuilder builder, VectorOffset goodsIdOffset) { builder.AddOffset(4, goodsIdOffset.Value, 0); } + public static VectorOffset CreateGoodsIdVector(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 CreateGoodsIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGoodsIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(5, displayOrder, 0); } + public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(6, salePeriodFromOffset.Value, 0); } + public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(7, salePeriodToOffset.Value, 0); } + public static void AddPurchaseCooltimeMin(FlatBufferBuilder builder, long purchaseCooltimeMin) { builder.AddLong(8, purchaseCooltimeMin, 0); } + public static void AddPurchaseCountLimit(FlatBufferBuilder builder, long purchaseCountLimit) { builder.AddLong(9, purchaseCountLimit, 0); } + public static void AddPurchaseCountResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseCountResetType purchaseCountResetType) { builder.AddInt(10, (int)purchaseCountResetType, 0); } + public static void AddBuyReportEventName(FlatBufferBuilder builder, StringOffset buyReportEventNameOffset) { builder.AddOffset(11, buyReportEventNameOffset.Value, 0); } + public static void AddRestrictBuyWhenInventoryFull(FlatBufferBuilder builder, bool restrictBuyWhenInventoryFull) { builder.AddBool(12, restrictBuyWhenInventoryFull, false); } + public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductDisplayTag displayTag) { builder.AddInt(13, (int)displayTag, 0); } + public static void AddShopUpdateGroupId(FlatBufferBuilder builder, int shopUpdateGroupId) { builder.AddInt(14, shopUpdateGroupId, 0); } + public static Offset EndShopExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopExcelVerify +{ + 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 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*GoodsId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 16 /*SalePeriodFrom*/, false) + && verifier.VerifyString(tablePos, 18 /*SalePeriodTo*/, false) + && verifier.VerifyField(tablePos, 20 /*PurchaseCooltimeMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*PurchaseCountLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*PurchaseCountResetType*/, 4 /*SCHALE.Common.FlatData.PurchaseCountResetType*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*BuyReportEventName*/, false) + && verifier.VerifyField(tablePos, 28 /*RestrictBuyWhenInventoryFull*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.ProductDisplayTag*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*ShopUpdateGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopExcelTable.cs b/SCHALE.Common/FlatData/ShopExcelTable.cs new file mode 100644 index 0000000..a640f55 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopExcelTable GetRootAsShopExcelTable(ByteBuffer _bb) { return GetRootAsShopExcelTable(_bb, new ShopExcelTable()); } + public static ShopExcelTable GetRootAsShopExcelTable(ByteBuffer _bb, ShopExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopExcel?)(new SCHALE.Common.FlatData.ShopExcel()).__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 CreateShopExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopExcelTable.AddDataList(builder, DataListOffset); + return ShopExcelTable.EndShopExcelTable(builder); + } + + public static void StartShopExcelTable(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 EndShopExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs new file mode 100644 index 0000000..d7317c6 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs @@ -0,0 +1,75 @@ +// +// 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 ShopFilterClassifiedExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFilterClassifiedExcel GetRootAsShopFilterClassifiedExcel(ByteBuffer _bb) { return GetRootAsShopFilterClassifiedExcel(_bb, new ShopFilterClassifiedExcel()); } + public static ShopFilterClassifiedExcel GetRootAsShopFilterClassifiedExcel(ByteBuffer _bb, ShopFilterClassifiedExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFilterClassifiedExcel __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 SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public SCHALE.Common.FlatData.ParcelType ConsumeParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ConsumeParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ShopFilterType ShopFilterType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ShopFilterType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopFilterType.GachaTicket; } } + public long GoodsId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateShopFilterClassifiedExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + SCHALE.Common.FlatData.ParcelType ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ConsumeParcelId = 0, + SCHALE.Common.FlatData.ShopFilterType ShopFilterType = SCHALE.Common.FlatData.ShopFilterType.GachaTicket, + long GoodsId = 0) { + builder.StartTable(6); + ShopFilterClassifiedExcel.AddGoodsId(builder, GoodsId); + ShopFilterClassifiedExcel.AddConsumeParcelId(builder, ConsumeParcelId); + ShopFilterClassifiedExcel.AddId(builder, Id); + ShopFilterClassifiedExcel.AddShopFilterType(builder, ShopFilterType); + ShopFilterClassifiedExcel.AddConsumeParcelType(builder, ConsumeParcelType); + ShopFilterClassifiedExcel.AddCategoryType(builder, CategoryType); + return ShopFilterClassifiedExcel.EndShopFilterClassifiedExcel(builder); + } + + public static void StartShopFilterClassifiedExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(1, (int)categoryType, 0); } + public static void AddConsumeParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType consumeParcelType) { builder.AddInt(2, (int)consumeParcelType, 0); } + public static void AddConsumeParcelId(FlatBufferBuilder builder, long consumeParcelId) { builder.AddLong(3, consumeParcelId, 0); } + public static void AddShopFilterType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopFilterType shopFilterType) { builder.AddInt(4, (int)shopFilterType, 0); } + public static void AddGoodsId(FlatBufferBuilder builder, long goodsId) { builder.AddLong(5, goodsId, 0); } + public static Offset EndShopFilterClassifiedExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFilterClassifiedExcelVerify +{ + 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 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ConsumeParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ConsumeParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ShopFilterType*/, 4 /*SCHALE.Common.FlatData.ShopFilterType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*GoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs b/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs new file mode 100644 index 0000000..84f0ecc --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFilterClassifiedExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopFilterClassifiedExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFilterClassifiedExcelTable GetRootAsShopFilterClassifiedExcelTable(ByteBuffer _bb) { return GetRootAsShopFilterClassifiedExcelTable(_bb, new ShopFilterClassifiedExcelTable()); } + public static ShopFilterClassifiedExcelTable GetRootAsShopFilterClassifiedExcelTable(ByteBuffer _bb, ShopFilterClassifiedExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFilterClassifiedExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopFilterClassifiedExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopFilterClassifiedExcel?)(new SCHALE.Common.FlatData.ShopFilterClassifiedExcel()).__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 CreateShopFilterClassifiedExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopFilterClassifiedExcelTable.AddDataList(builder, DataListOffset); + return ShopFilterClassifiedExcelTable.EndShopFilterClassifiedExcelTable(builder); + } + + public static void StartShopFilterClassifiedExcelTable(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 EndShopFilterClassifiedExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFilterClassifiedExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopFilterClassifiedExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFilterType.cs b/SCHALE.Common/FlatData/ShopFilterType.cs new file mode 100644 index 0000000..d8d6dd7 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFilterType.cs @@ -0,0 +1,49 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ShopFilterType : int +{ + GachaTicket = 0, + SecretStone = 1, + SecretStone_1 = 2, + SkillBook_Ultimate = 3, + ExSkill = 4, + SkillBook = 5, + Craft = 6, + AP = 7, + CharacterExpItem = 8, + Equip = 9, + Material = 10, + Creddit = 11, + Furniture = 12, + SelectItem = 13, + Currency = 14, + Hyakkiyako = 15, + RedWinter = 16, + Trinity = 17, + Gehenna = 18, + Abydos = 19, + Millennium = 20, + Arius = 21, + Shanhaijing = 22, + Valkyrie = 23, + SRT = 24, + Event = 25, + ChaserTotalTicket = 26, + SchoolTotalTicket = 27, + ShopFilterDUMMY_1 = 28, + ShopFilterDUMMY_2 = 29, + ShopFilterDUMMY_3 = 30, + ShopFilterDUMMY_4 = 31, + ShopFilterDUMMY_5 = 32, + ShopFilterDUMMY_6 = 33, + ShopFilterDUMMY_7 = 34, + ETC = 35, +}; + + +} diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs new file mode 100644 index 0000000..5ff31ac --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs @@ -0,0 +1,105 @@ +// +// 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 ShopFreeRecruitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFreeRecruitExcel GetRootAsShopFreeRecruitExcel(ByteBuffer _bb) { return GetRootAsShopFreeRecruitExcel(_bb, new ShopFreeRecruitExcel()); } + public static ShopFreeRecruitExcel GetRootAsShopFreeRecruitExcel(ByteBuffer _bb, ShopFreeRecruitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFreeRecruitExcel __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 string FreeRecruitPeriodFrom { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFreeRecruitPeriodFromBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetFreeRecruitPeriodFromBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetFreeRecruitPeriodFromArray() { return __p.__vector_as_array(6); } + public string FreeRecruitPeriodTo { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFreeRecruitPeriodToBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetFreeRecruitPeriodToBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetFreeRecruitPeriodToArray() { return __p.__vector_as_array(8); } + public SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ShopFreeRecruitType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopFreeRecruitType.None; } } + public string FreeRecruitDecorationImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFreeRecruitDecorationImagePathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetFreeRecruitDecorationImagePathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetFreeRecruitDecorationImagePathArray() { return __p.__vector_as_array(12); } + public long ShopRecruitId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ShopRecruitIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetShopRecruitIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetShopRecruitIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetShopRecruitIdArray() { return __p.__vector_as_array(14); } + + public static Offset CreateShopFreeRecruitExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset FreeRecruitPeriodFromOffset = default(StringOffset), + StringOffset FreeRecruitPeriodToOffset = default(StringOffset), + SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None, + StringOffset FreeRecruitDecorationImagePathOffset = default(StringOffset), + VectorOffset ShopRecruitIdOffset = default(VectorOffset)) { + builder.StartTable(6); + ShopFreeRecruitExcel.AddId(builder, Id); + ShopFreeRecruitExcel.AddShopRecruitId(builder, ShopRecruitIdOffset); + ShopFreeRecruitExcel.AddFreeRecruitDecorationImagePath(builder, FreeRecruitDecorationImagePathOffset); + ShopFreeRecruitExcel.AddFreeRecruitType(builder, FreeRecruitType); + ShopFreeRecruitExcel.AddFreeRecruitPeriodTo(builder, FreeRecruitPeriodToOffset); + ShopFreeRecruitExcel.AddFreeRecruitPeriodFrom(builder, FreeRecruitPeriodFromOffset); + return ShopFreeRecruitExcel.EndShopFreeRecruitExcel(builder); + } + + public static void StartShopFreeRecruitExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddFreeRecruitPeriodFrom(FlatBufferBuilder builder, StringOffset freeRecruitPeriodFromOffset) { builder.AddOffset(1, freeRecruitPeriodFromOffset.Value, 0); } + public static void AddFreeRecruitPeriodTo(FlatBufferBuilder builder, StringOffset freeRecruitPeriodToOffset) { builder.AddOffset(2, freeRecruitPeriodToOffset.Value, 0); } + public static void AddFreeRecruitType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopFreeRecruitType freeRecruitType) { builder.AddInt(3, (int)freeRecruitType, 0); } + public static void AddFreeRecruitDecorationImagePath(FlatBufferBuilder builder, StringOffset freeRecruitDecorationImagePathOffset) { builder.AddOffset(4, freeRecruitDecorationImagePathOffset.Value, 0); } + public static void AddShopRecruitId(FlatBufferBuilder builder, VectorOffset shopRecruitIdOffset) { builder.AddOffset(5, shopRecruitIdOffset.Value, 0); } + public static VectorOffset CreateShopRecruitIdVector(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 CreateShopRecruitIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopRecruitIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateShopRecruitIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartShopRecruitIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndShopFreeRecruitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFreeRecruitExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*FreeRecruitPeriodFrom*/, false) + && verifier.VerifyString(tablePos, 8 /*FreeRecruitPeriodTo*/, false) + && verifier.VerifyField(tablePos, 10 /*FreeRecruitType*/, 4 /*SCHALE.Common.FlatData.ShopFreeRecruitType*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*FreeRecruitDecorationImagePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ShopRecruitId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs b/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs new file mode 100644 index 0000000..e3f38d0 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFreeRecruitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopFreeRecruitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFreeRecruitExcelTable GetRootAsShopFreeRecruitExcelTable(ByteBuffer _bb) { return GetRootAsShopFreeRecruitExcelTable(_bb, new ShopFreeRecruitExcelTable()); } + public static ShopFreeRecruitExcelTable GetRootAsShopFreeRecruitExcelTable(ByteBuffer _bb, ShopFreeRecruitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFreeRecruitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopFreeRecruitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopFreeRecruitExcel?)(new SCHALE.Common.FlatData.ShopFreeRecruitExcel()).__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 CreateShopFreeRecruitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopFreeRecruitExcelTable.AddDataList(builder, DataListOffset); + return ShopFreeRecruitExcelTable.EndShopFreeRecruitExcelTable(builder); + } + + public static void StartShopFreeRecruitExcelTable(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 EndShopFreeRecruitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFreeRecruitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopFreeRecruitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs new file mode 100644 index 0000000..012c355 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcel.cs @@ -0,0 +1,71 @@ +// +// 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 ShopFreeRecruitPeriodExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFreeRecruitPeriodExcel GetRootAsShopFreeRecruitPeriodExcel(ByteBuffer _bb) { return GetRootAsShopFreeRecruitPeriodExcel(_bb, new ShopFreeRecruitPeriodExcel()); } + public static ShopFreeRecruitPeriodExcel GetRootAsShopFreeRecruitPeriodExcel(ByteBuffer _bb, ShopFreeRecruitPeriodExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFreeRecruitPeriodExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long ShopFreeRecruitId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ShopFreeRecruitIntervalId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string IntervalDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIntervalDateBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetIntervalDateBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetIntervalDateArray() { return __p.__vector_as_array(8); } + public int FreeRecruitCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateShopFreeRecruitPeriodExcel(FlatBufferBuilder builder, + long ShopFreeRecruitId = 0, + long ShopFreeRecruitIntervalId = 0, + StringOffset IntervalDateOffset = default(StringOffset), + int FreeRecruitCount = 0) { + builder.StartTable(4); + ShopFreeRecruitPeriodExcel.AddShopFreeRecruitIntervalId(builder, ShopFreeRecruitIntervalId); + ShopFreeRecruitPeriodExcel.AddShopFreeRecruitId(builder, ShopFreeRecruitId); + ShopFreeRecruitPeriodExcel.AddFreeRecruitCount(builder, FreeRecruitCount); + ShopFreeRecruitPeriodExcel.AddIntervalDate(builder, IntervalDateOffset); + return ShopFreeRecruitPeriodExcel.EndShopFreeRecruitPeriodExcel(builder); + } + + public static void StartShopFreeRecruitPeriodExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddShopFreeRecruitId(FlatBufferBuilder builder, long shopFreeRecruitId) { builder.AddLong(0, shopFreeRecruitId, 0); } + public static void AddShopFreeRecruitIntervalId(FlatBufferBuilder builder, long shopFreeRecruitIntervalId) { builder.AddLong(1, shopFreeRecruitIntervalId, 0); } + public static void AddIntervalDate(FlatBufferBuilder builder, StringOffset intervalDateOffset) { builder.AddOffset(2, intervalDateOffset.Value, 0); } + public static void AddFreeRecruitCount(FlatBufferBuilder builder, int freeRecruitCount) { builder.AddInt(3, freeRecruitCount, 0); } + public static Offset EndShopFreeRecruitPeriodExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFreeRecruitPeriodExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ShopFreeRecruitId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ShopFreeRecruitIntervalId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*IntervalDate*/, false) + && verifier.VerifyField(tablePos, 10 /*FreeRecruitCount*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs new file mode 100644 index 0000000..184433b --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFreeRecruitPeriodExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopFreeRecruitPeriodExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopFreeRecruitPeriodExcelTable GetRootAsShopFreeRecruitPeriodExcelTable(ByteBuffer _bb) { return GetRootAsShopFreeRecruitPeriodExcelTable(_bb, new ShopFreeRecruitPeriodExcelTable()); } + public static ShopFreeRecruitPeriodExcelTable GetRootAsShopFreeRecruitPeriodExcelTable(ByteBuffer _bb, ShopFreeRecruitPeriodExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopFreeRecruitPeriodExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopFreeRecruitPeriodExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopFreeRecruitPeriodExcel?)(new SCHALE.Common.FlatData.ShopFreeRecruitPeriodExcel()).__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 CreateShopFreeRecruitPeriodExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopFreeRecruitPeriodExcelTable.AddDataList(builder, DataListOffset); + return ShopFreeRecruitPeriodExcelTable.EndShopFreeRecruitPeriodExcelTable(builder); + } + + public static void StartShopFreeRecruitPeriodExcelTable(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 EndShopFreeRecruitPeriodExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopFreeRecruitPeriodExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopFreeRecruitPeriodExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitType.cs b/SCHALE.Common/FlatData/ShopFreeRecruitType.cs new file mode 100644 index 0000000..cf017e6 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopFreeRecruitType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ShopFreeRecruitType : int +{ + None = 0, + Accumulation = 1, + Reset = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/ShopInfoExcel.cs b/SCHALE.Common/FlatData/ShopInfoExcel.cs new file mode 100644 index 0000000..8f89885 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopInfoExcel.cs @@ -0,0 +1,239 @@ +// +// 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 ShopInfoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopInfoExcel GetRootAsShopInfoExcel(ByteBuffer _bb) { return GetRootAsShopInfoExcel(_bb, new ShopInfoExcel()); } + public static ShopInfoExcel GetRootAsShopInfoExcel(ByteBuffer _bb, ShopInfoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopInfoExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public bool IsRefresh { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsSoldOutDimmed { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ParcelType CostParcelType(int j) { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int CostParcelTypeLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostParcelTypeBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetCostParcelTypeBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetCostParcelTypeArray() { int o = __p.__offset(10); 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 CostParcelId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CostParcelIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCostParcelIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetCostParcelIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetCostParcelIdArray() { return __p.__vector_as_array(12); } + public long AutoRefreshCoolTime { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RefreshAbleCount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GoodsId(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GoodsIdLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGoodsIdBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetGoodsIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetGoodsIdArray() { return __p.__vector_as_array(18); } + public string OpenPeriodFrom { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenPeriodFromBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetOpenPeriodFromBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetOpenPeriodFromArray() { return __p.__vector_as_array(20); } + public string OpenPeriodTo { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetOpenPeriodToBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetOpenPeriodToBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetOpenPeriodToArray() { return __p.__vector_as_array(22); } + public string ShopProductUpdateTime { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShopProductUpdateTimeBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetShopProductUpdateTimeBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetShopProductUpdateTimeArray() { return __p.__vector_as_array(24); } + public SCHALE.Common.FlatData.ParcelType DisplayParcelType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long DisplayParcelId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsShopVisible { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int DisplayOrder { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateDate { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId1 { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId2 { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId3 { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId4 { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId5 { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId6 { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId7 { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId8 { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId9 { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId10 { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId11 { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShopUpdateGroupId12 { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateShopInfoExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + bool IsRefresh = false, + bool IsSoldOutDimmed = false, + VectorOffset CostParcelTypeOffset = default(VectorOffset), + VectorOffset CostParcelIdOffset = default(VectorOffset), + long AutoRefreshCoolTime = 0, + long RefreshAbleCount = 0, + VectorOffset GoodsIdOffset = default(VectorOffset), + StringOffset OpenPeriodFromOffset = default(StringOffset), + StringOffset OpenPeriodToOffset = default(StringOffset), + StringOffset ShopProductUpdateTimeOffset = default(StringOffset), + SCHALE.Common.FlatData.ParcelType DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None, + long DisplayParcelId = 0, + bool IsShopVisible = false, + int DisplayOrder = 0, + int ShopUpdateDate = 0, + int ShopUpdateGroupId1 = 0, + int ShopUpdateGroupId2 = 0, + int ShopUpdateGroupId3 = 0, + int ShopUpdateGroupId4 = 0, + int ShopUpdateGroupId5 = 0, + int ShopUpdateGroupId6 = 0, + int ShopUpdateGroupId7 = 0, + int ShopUpdateGroupId8 = 0, + int ShopUpdateGroupId9 = 0, + int ShopUpdateGroupId10 = 0, + int ShopUpdateGroupId11 = 0, + int ShopUpdateGroupId12 = 0) { + builder.StartTable(28); + ShopInfoExcel.AddDisplayParcelId(builder, DisplayParcelId); + ShopInfoExcel.AddRefreshAbleCount(builder, RefreshAbleCount); + ShopInfoExcel.AddAutoRefreshCoolTime(builder, AutoRefreshCoolTime); + ShopInfoExcel.AddShopUpdateGroupId12(builder, ShopUpdateGroupId12); + ShopInfoExcel.AddShopUpdateGroupId11(builder, ShopUpdateGroupId11); + ShopInfoExcel.AddShopUpdateGroupId10(builder, ShopUpdateGroupId10); + ShopInfoExcel.AddShopUpdateGroupId9(builder, ShopUpdateGroupId9); + ShopInfoExcel.AddShopUpdateGroupId8(builder, ShopUpdateGroupId8); + ShopInfoExcel.AddShopUpdateGroupId7(builder, ShopUpdateGroupId7); + ShopInfoExcel.AddShopUpdateGroupId6(builder, ShopUpdateGroupId6); + ShopInfoExcel.AddShopUpdateGroupId5(builder, ShopUpdateGroupId5); + ShopInfoExcel.AddShopUpdateGroupId4(builder, ShopUpdateGroupId4); + ShopInfoExcel.AddShopUpdateGroupId3(builder, ShopUpdateGroupId3); + ShopInfoExcel.AddShopUpdateGroupId2(builder, ShopUpdateGroupId2); + ShopInfoExcel.AddShopUpdateGroupId1(builder, ShopUpdateGroupId1); + ShopInfoExcel.AddShopUpdateDate(builder, ShopUpdateDate); + ShopInfoExcel.AddDisplayOrder(builder, DisplayOrder); + ShopInfoExcel.AddDisplayParcelType(builder, DisplayParcelType); + ShopInfoExcel.AddShopProductUpdateTime(builder, ShopProductUpdateTimeOffset); + ShopInfoExcel.AddOpenPeriodTo(builder, OpenPeriodToOffset); + ShopInfoExcel.AddOpenPeriodFrom(builder, OpenPeriodFromOffset); + ShopInfoExcel.AddGoodsId(builder, GoodsIdOffset); + ShopInfoExcel.AddCostParcelId(builder, CostParcelIdOffset); + ShopInfoExcel.AddCostParcelType(builder, CostParcelTypeOffset); + ShopInfoExcel.AddCategoryType(builder, CategoryType); + ShopInfoExcel.AddIsShopVisible(builder, IsShopVisible); + ShopInfoExcel.AddIsSoldOutDimmed(builder, IsSoldOutDimmed); + ShopInfoExcel.AddIsRefresh(builder, IsRefresh); + return ShopInfoExcel.EndShopInfoExcel(builder); + } + + public static void StartShopInfoExcel(FlatBufferBuilder builder) { builder.StartTable(28); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(0, (int)categoryType, 0); } + public static void AddIsRefresh(FlatBufferBuilder builder, bool isRefresh) { builder.AddBool(1, isRefresh, false); } + public static void AddIsSoldOutDimmed(FlatBufferBuilder builder, bool isSoldOutDimmed) { builder.AddBool(2, isSoldOutDimmed, false); } + public static void AddCostParcelType(FlatBufferBuilder builder, VectorOffset costParcelTypeOffset) { builder.AddOffset(3, costParcelTypeOffset.Value, 0); } + public static VectorOffset CreateCostParcelTypeVector(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 CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostParcelTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddCostParcelId(FlatBufferBuilder builder, VectorOffset costParcelIdOffset) { builder.AddOffset(4, costParcelIdOffset.Value, 0); } + public static VectorOffset CreateCostParcelIdVector(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 CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCostParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCostParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddAutoRefreshCoolTime(FlatBufferBuilder builder, long autoRefreshCoolTime) { builder.AddLong(5, autoRefreshCoolTime, 0); } + public static void AddRefreshAbleCount(FlatBufferBuilder builder, long refreshAbleCount) { builder.AddLong(6, refreshAbleCount, 0); } + public static void AddGoodsId(FlatBufferBuilder builder, VectorOffset goodsIdOffset) { builder.AddOffset(7, goodsIdOffset.Value, 0); } + public static VectorOffset CreateGoodsIdVector(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 CreateGoodsIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGoodsIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGoodsIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddOpenPeriodFrom(FlatBufferBuilder builder, StringOffset openPeriodFromOffset) { builder.AddOffset(8, openPeriodFromOffset.Value, 0); } + public static void AddOpenPeriodTo(FlatBufferBuilder builder, StringOffset openPeriodToOffset) { builder.AddOffset(9, openPeriodToOffset.Value, 0); } + public static void AddShopProductUpdateTime(FlatBufferBuilder builder, StringOffset shopProductUpdateTimeOffset) { builder.AddOffset(10, shopProductUpdateTimeOffset.Value, 0); } + public static void AddDisplayParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType displayParcelType) { builder.AddInt(11, (int)displayParcelType, 0); } + public static void AddDisplayParcelId(FlatBufferBuilder builder, long displayParcelId) { builder.AddLong(12, displayParcelId, 0); } + public static void AddIsShopVisible(FlatBufferBuilder builder, bool isShopVisible) { builder.AddBool(13, isShopVisible, false); } + public static void AddDisplayOrder(FlatBufferBuilder builder, int displayOrder) { builder.AddInt(14, displayOrder, 0); } + public static void AddShopUpdateDate(FlatBufferBuilder builder, int shopUpdateDate) { builder.AddInt(15, shopUpdateDate, 0); } + public static void AddShopUpdateGroupId1(FlatBufferBuilder builder, int shopUpdateGroupId1) { builder.AddInt(16, shopUpdateGroupId1, 0); } + public static void AddShopUpdateGroupId2(FlatBufferBuilder builder, int shopUpdateGroupId2) { builder.AddInt(17, shopUpdateGroupId2, 0); } + public static void AddShopUpdateGroupId3(FlatBufferBuilder builder, int shopUpdateGroupId3) { builder.AddInt(18, shopUpdateGroupId3, 0); } + public static void AddShopUpdateGroupId4(FlatBufferBuilder builder, int shopUpdateGroupId4) { builder.AddInt(19, shopUpdateGroupId4, 0); } + public static void AddShopUpdateGroupId5(FlatBufferBuilder builder, int shopUpdateGroupId5) { builder.AddInt(20, shopUpdateGroupId5, 0); } + public static void AddShopUpdateGroupId6(FlatBufferBuilder builder, int shopUpdateGroupId6) { builder.AddInt(21, shopUpdateGroupId6, 0); } + public static void AddShopUpdateGroupId7(FlatBufferBuilder builder, int shopUpdateGroupId7) { builder.AddInt(22, shopUpdateGroupId7, 0); } + public static void AddShopUpdateGroupId8(FlatBufferBuilder builder, int shopUpdateGroupId8) { builder.AddInt(23, shopUpdateGroupId8, 0); } + public static void AddShopUpdateGroupId9(FlatBufferBuilder builder, int shopUpdateGroupId9) { builder.AddInt(24, shopUpdateGroupId9, 0); } + public static void AddShopUpdateGroupId10(FlatBufferBuilder builder, int shopUpdateGroupId10) { builder.AddInt(25, shopUpdateGroupId10, 0); } + public static void AddShopUpdateGroupId11(FlatBufferBuilder builder, int shopUpdateGroupId11) { builder.AddInt(26, shopUpdateGroupId11, 0); } + public static void AddShopUpdateGroupId12(FlatBufferBuilder builder, int shopUpdateGroupId12) { builder.AddInt(27, shopUpdateGroupId12, 0); } + public static Offset EndShopInfoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopInfoExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*IsRefresh*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*IsSoldOutDimmed*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*CostParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*CostParcelId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 14 /*AutoRefreshCoolTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*RefreshAbleCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*GoodsId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 20 /*OpenPeriodFrom*/, false) + && verifier.VerifyString(tablePos, 22 /*OpenPeriodTo*/, false) + && verifier.VerifyString(tablePos, 24 /*ShopProductUpdateTime*/, false) + && verifier.VerifyField(tablePos, 26 /*DisplayParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*DisplayParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*IsShopVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*DisplayOrder*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*ShopUpdateDate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*ShopUpdateGroupId1*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*ShopUpdateGroupId2*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*ShopUpdateGroupId3*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*ShopUpdateGroupId4*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*ShopUpdateGroupId5*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*ShopUpdateGroupId6*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*ShopUpdateGroupId7*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*ShopUpdateGroupId8*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*ShopUpdateGroupId9*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*ShopUpdateGroupId10*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*ShopUpdateGroupId11*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*ShopUpdateGroupId12*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopInfoExcelTable.cs b/SCHALE.Common/FlatData/ShopInfoExcelTable.cs new file mode 100644 index 0000000..7a5b863 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopInfoExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopInfoExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopInfoExcelTable GetRootAsShopInfoExcelTable(ByteBuffer _bb) { return GetRootAsShopInfoExcelTable(_bb, new ShopInfoExcelTable()); } + public static ShopInfoExcelTable GetRootAsShopInfoExcelTable(ByteBuffer _bb, ShopInfoExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopInfoExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopInfoExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopInfoExcel?)(new SCHALE.Common.FlatData.ShopInfoExcel()).__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 CreateShopInfoExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopInfoExcelTable.AddDataList(builder, DataListOffset); + return ShopInfoExcelTable.EndShopInfoExcelTable(builder); + } + + public static void StartShopInfoExcelTable(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 EndShopInfoExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopInfoExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopInfoExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopRecruitExcel.cs b/SCHALE.Common/FlatData/ShopRecruitExcel.cs new file mode 100644 index 0000000..3cc44d8 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopRecruitExcel.cs @@ -0,0 +1,213 @@ +// +// 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 ShopRecruitExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopRecruitExcel GetRootAsShopRecruitExcel(ByteBuffer _bb) { return GetRootAsShopRecruitExcel(_bb, new ShopRecruitExcel()); } + public static ShopRecruitExcel GetRootAsShopRecruitExcel(ByteBuffer _bb, ShopRecruitExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopRecruitExcel __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 SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public bool IsLegacy { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long OneGachaGoodsId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TenGachaGoodsId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GoodsDevName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGoodsDevNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetGoodsDevNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetGoodsDevNameArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GachaDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaDisplayTag.None; } } + public long DisplayOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GachaBannerPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGachaBannerPathBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetGachaBannerPathBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public byte[] GetGachaBannerPathArray() { return __p.__vector_as_array(20); } + public long VideoId(int j) { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int VideoIdLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVideoIdBytes() { return __p.__vector_as_span(22, 8); } +#else + public ArraySegment? GetVideoIdBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public long[] GetVideoIdArray() { return __p.__vector_as_array(22); } + public long LinkedRobbyBannerId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long InfoCharacterId(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int InfoCharacterIdLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetInfoCharacterIdBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetInfoCharacterIdBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetInfoCharacterIdArray() { return __p.__vector_as_array(26); } + public string SalePeriodFrom { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetSalePeriodFromBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetSalePeriodFromArray() { return __p.__vector_as_array(28); } + public string SalePeriodTo { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSalePeriodToBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetSalePeriodToBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(30); } + public long RecruitCoinId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RecruitSellectionShopId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PurchaseCooltimeMin { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PurchaseCountLimit { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public bool IsNewbie { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsSelectRecruit { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long DirectPayInvisibleTokenId { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DirectPayAndroidShopCashId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DirectPayAppleShopCashId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateShopRecruitExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, + bool IsLegacy = false, + long OneGachaGoodsId = 0, + long TenGachaGoodsId = 0, + StringOffset GoodsDevNameOffset = default(StringOffset), + SCHALE.Common.FlatData.GachaDisplayTag DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None, + long DisplayOrder = 0, + StringOffset GachaBannerPathOffset = default(StringOffset), + VectorOffset VideoIdOffset = default(VectorOffset), + long LinkedRobbyBannerId = 0, + VectorOffset InfoCharacterIdOffset = default(VectorOffset), + StringOffset SalePeriodFromOffset = default(StringOffset), + StringOffset SalePeriodToOffset = default(StringOffset), + long RecruitCoinId = 0, + long RecruitSellectionShopId = 0, + long PurchaseCooltimeMin = 0, + long PurchaseCountLimit = 0, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType = SCHALE.Common.FlatData.PurchaseCountResetType.None, + bool IsNewbie = false, + bool IsSelectRecruit = false, + long DirectPayInvisibleTokenId = 0, + long DirectPayAndroidShopCashId = 0, + long DirectPayAppleShopCashId = 0) { + builder.StartTable(24); + ShopRecruitExcel.AddDirectPayAppleShopCashId(builder, DirectPayAppleShopCashId); + ShopRecruitExcel.AddDirectPayAndroidShopCashId(builder, DirectPayAndroidShopCashId); + ShopRecruitExcel.AddDirectPayInvisibleTokenId(builder, DirectPayInvisibleTokenId); + ShopRecruitExcel.AddPurchaseCountLimit(builder, PurchaseCountLimit); + ShopRecruitExcel.AddPurchaseCooltimeMin(builder, PurchaseCooltimeMin); + ShopRecruitExcel.AddRecruitSellectionShopId(builder, RecruitSellectionShopId); + ShopRecruitExcel.AddRecruitCoinId(builder, RecruitCoinId); + ShopRecruitExcel.AddLinkedRobbyBannerId(builder, LinkedRobbyBannerId); + ShopRecruitExcel.AddDisplayOrder(builder, DisplayOrder); + ShopRecruitExcel.AddTenGachaGoodsId(builder, TenGachaGoodsId); + ShopRecruitExcel.AddOneGachaGoodsId(builder, OneGachaGoodsId); + ShopRecruitExcel.AddId(builder, Id); + ShopRecruitExcel.AddPurchaseCountResetType(builder, PurchaseCountResetType); + ShopRecruitExcel.AddSalePeriodTo(builder, SalePeriodToOffset); + ShopRecruitExcel.AddSalePeriodFrom(builder, SalePeriodFromOffset); + ShopRecruitExcel.AddInfoCharacterId(builder, InfoCharacterIdOffset); + ShopRecruitExcel.AddVideoId(builder, VideoIdOffset); + ShopRecruitExcel.AddGachaBannerPath(builder, GachaBannerPathOffset); + ShopRecruitExcel.AddDisplayTag(builder, DisplayTag); + ShopRecruitExcel.AddGoodsDevName(builder, GoodsDevNameOffset); + ShopRecruitExcel.AddCategoryType(builder, CategoryType); + ShopRecruitExcel.AddIsSelectRecruit(builder, IsSelectRecruit); + ShopRecruitExcel.AddIsNewbie(builder, IsNewbie); + ShopRecruitExcel.AddIsLegacy(builder, IsLegacy); + return ShopRecruitExcel.EndShopRecruitExcel(builder); + } + + public static void StartShopRecruitExcel(FlatBufferBuilder builder) { builder.StartTable(24); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType categoryType) { builder.AddInt(1, (int)categoryType, 0); } + public static void AddIsLegacy(FlatBufferBuilder builder, bool isLegacy) { builder.AddBool(2, isLegacy, false); } + public static void AddOneGachaGoodsId(FlatBufferBuilder builder, long oneGachaGoodsId) { builder.AddLong(3, oneGachaGoodsId, 0); } + public static void AddTenGachaGoodsId(FlatBufferBuilder builder, long tenGachaGoodsId) { builder.AddLong(4, tenGachaGoodsId, 0); } + public static void AddGoodsDevName(FlatBufferBuilder builder, StringOffset goodsDevNameOffset) { builder.AddOffset(5, goodsDevNameOffset.Value, 0); } + public static void AddDisplayTag(FlatBufferBuilder builder, SCHALE.Common.FlatData.GachaDisplayTag displayTag) { builder.AddInt(6, (int)displayTag, 0); } + public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(7, displayOrder, 0); } + public static void AddGachaBannerPath(FlatBufferBuilder builder, StringOffset gachaBannerPathOffset) { builder.AddOffset(8, gachaBannerPathOffset.Value, 0); } + public static void AddVideoId(FlatBufferBuilder builder, VectorOffset videoIdOffset) { builder.AddOffset(9, videoIdOffset.Value, 0); } + public static VectorOffset CreateVideoIdVector(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 CreateVideoIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVideoIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVideoIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVideoIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddLinkedRobbyBannerId(FlatBufferBuilder builder, long linkedRobbyBannerId) { builder.AddLong(10, linkedRobbyBannerId, 0); } + public static void AddInfoCharacterId(FlatBufferBuilder builder, VectorOffset infoCharacterIdOffset) { builder.AddOffset(11, infoCharacterIdOffset.Value, 0); } + public static VectorOffset CreateInfoCharacterIdVector(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 CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateInfoCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartInfoCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddSalePeriodFrom(FlatBufferBuilder builder, StringOffset salePeriodFromOffset) { builder.AddOffset(12, salePeriodFromOffset.Value, 0); } + public static void AddSalePeriodTo(FlatBufferBuilder builder, StringOffset salePeriodToOffset) { builder.AddOffset(13, salePeriodToOffset.Value, 0); } + public static void AddRecruitCoinId(FlatBufferBuilder builder, long recruitCoinId) { builder.AddLong(14, recruitCoinId, 0); } + public static void AddRecruitSellectionShopId(FlatBufferBuilder builder, long recruitSellectionShopId) { builder.AddLong(15, recruitSellectionShopId, 0); } + public static void AddPurchaseCooltimeMin(FlatBufferBuilder builder, long purchaseCooltimeMin) { builder.AddLong(16, purchaseCooltimeMin, 0); } + public static void AddPurchaseCountLimit(FlatBufferBuilder builder, long purchaseCountLimit) { builder.AddLong(17, purchaseCountLimit, 0); } + public static void AddPurchaseCountResetType(FlatBufferBuilder builder, SCHALE.Common.FlatData.PurchaseCountResetType purchaseCountResetType) { builder.AddInt(18, (int)purchaseCountResetType, 0); } + public static void AddIsNewbie(FlatBufferBuilder builder, bool isNewbie) { builder.AddBool(19, isNewbie, false); } + public static void AddIsSelectRecruit(FlatBufferBuilder builder, bool isSelectRecruit) { builder.AddBool(20, isSelectRecruit, false); } + public static void AddDirectPayInvisibleTokenId(FlatBufferBuilder builder, long directPayInvisibleTokenId) { builder.AddLong(21, directPayInvisibleTokenId, 0); } + public static void AddDirectPayAndroidShopCashId(FlatBufferBuilder builder, long directPayAndroidShopCashId) { builder.AddLong(22, directPayAndroidShopCashId, 0); } + public static void AddDirectPayAppleShopCashId(FlatBufferBuilder builder, long directPayAppleShopCashId) { builder.AddLong(23, directPayAppleShopCashId, 0); } + public static Offset EndShopRecruitExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopRecruitExcelVerify +{ + 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 /*CategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*IsLegacy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*OneGachaGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*TenGachaGoodsId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*GoodsDevName*/, false) + && verifier.VerifyField(tablePos, 16 /*DisplayTag*/, 4 /*SCHALE.Common.FlatData.GachaDisplayTag*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*DisplayOrder*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 20 /*GachaBannerPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*VideoId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 24 /*LinkedRobbyBannerId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*InfoCharacterId*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 28 /*SalePeriodFrom*/, false) + && verifier.VerifyString(tablePos, 30 /*SalePeriodTo*/, false) + && verifier.VerifyField(tablePos, 32 /*RecruitCoinId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*RecruitSellectionShopId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*PurchaseCooltimeMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 38 /*PurchaseCountLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 40 /*PurchaseCountResetType*/, 4 /*SCHALE.Common.FlatData.PurchaseCountResetType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*IsNewbie*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 44 /*IsSelectRecruit*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 46 /*DirectPayInvisibleTokenId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 48 /*DirectPayAndroidShopCashId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*DirectPayAppleShopCashId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs b/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs new file mode 100644 index 0000000..7d056bc --- /dev/null +++ b/SCHALE.Common/FlatData/ShopRecruitExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopRecruitExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopRecruitExcelTable GetRootAsShopRecruitExcelTable(ByteBuffer _bb) { return GetRootAsShopRecruitExcelTable(_bb, new ShopRecruitExcelTable()); } + public static ShopRecruitExcelTable GetRootAsShopRecruitExcelTable(ByteBuffer _bb, ShopRecruitExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopRecruitExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopRecruitExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopRecruitExcel?)(new SCHALE.Common.FlatData.ShopRecruitExcel()).__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 CreateShopRecruitExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopRecruitExcelTable.AddDataList(builder, DataListOffset); + return ShopRecruitExcelTable.EndShopRecruitExcelTable(builder); + } + + public static void StartShopRecruitExcelTable(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 EndShopRecruitExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopRecruitExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopRecruitExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopRefreshExcel.cs b/SCHALE.Common/FlatData/ShopRefreshExcel.cs new file mode 100644 index 0000000..01d51e5 --- /dev/null +++ b/SCHALE.Common/FlatData/ShopRefreshExcel.cs @@ -0,0 +1,101 @@ +// +// 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 ShopRefreshExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopRefreshExcel GetRootAsShopRefreshExcel(ByteBuffer _bb) { return GetRootAsShopRefreshExcel(_bb, new ShopRefreshExcel()); } + public static ShopRefreshExcel GetRootAsShopRefreshExcel(ByteBuffer _bb, ShopRefreshExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopRefreshExcel __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 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; } } +#if ENABLE_SPAN_T + public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(20, 1); } +#else + public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(20); } +#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 static Offset CreateShopRefreshExcel(FlatBufferBuilder builder, + long Id = 0, + uint LocalizeEtcId = 0, + bool IsLegacy = false, + long GoodsId = 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); + ShopRefreshExcel.AddDisplayOrder(builder, DisplayOrder); + ShopRefreshExcel.AddGoodsId(builder, GoodsId); + ShopRefreshExcel.AddId(builder, Id); + ShopRefreshExcel.AddDisplayTag(builder, DisplayTag); + ShopRefreshExcel.AddBuyReportEventName(builder, BuyReportEventNameOffset); + ShopRefreshExcel.AddProb(builder, Prob); + ShopRefreshExcel.AddRefreshGroup(builder, RefreshGroup); + ShopRefreshExcel.AddCategoryType(builder, CategoryType); + ShopRefreshExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + ShopRefreshExcel.AddIsLegacy(builder, IsLegacy); + return ShopRefreshExcel.EndShopRefreshExcel(builder); + } + + public static void StartShopRefreshExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + 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 Offset EndShopRefreshExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopRefreshExcelVerify +{ + 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 /*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.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs b/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs new file mode 100644 index 0000000..10d64cc --- /dev/null +++ b/SCHALE.Common/FlatData/ShopRefreshExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 ShopRefreshExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShopRefreshExcelTable GetRootAsShopRefreshExcelTable(ByteBuffer _bb) { return GetRootAsShopRefreshExcelTable(_bb, new ShopRefreshExcelTable()); } + public static ShopRefreshExcelTable GetRootAsShopRefreshExcelTable(ByteBuffer _bb, ShopRefreshExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShopRefreshExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.ShopRefreshExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ShopRefreshExcel?)(new SCHALE.Common.FlatData.ShopRefreshExcel()).__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 CreateShopRefreshExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + ShopRefreshExcelTable.AddDataList(builder, DataListOffset); + return ShopRefreshExcelTable.EndShopRefreshExcelTable(builder); + } + + public static void StartShopRefreshExcelTable(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 EndShopRefreshExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShopRefreshExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ShopRefreshExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShortcutContentType.cs b/SCHALE.Common/FlatData/ShortcutContentType.cs new file mode 100644 index 0000000..4a9894d --- /dev/null +++ b/SCHALE.Common/FlatData/ShortcutContentType.cs @@ -0,0 +1,27 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ShortcutContentType : int +{ + None = 0, + CampaignStage = 1, + EventStage = 2, + Blood = 3, + WeekDungeon = 4, + Arena = 5, + Raid = 6, + Shop = 7, + ItemInventory = 8, + Craft = 9, + SchoolDungeon = 10, + Academy = 11, + Mission = 12, + MultiFloorRaid = 13, +}; + + +} diff --git a/SCHALE.Common/FlatData/ShortcutTypeExcel.cs b/SCHALE.Common/FlatData/ShortcutTypeExcel.cs new file mode 100644 index 0000000..9d2b1ea --- /dev/null +++ b/SCHALE.Common/FlatData/ShortcutTypeExcel.cs @@ -0,0 +1,72 @@ +// +// 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 ShortcutTypeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ShortcutTypeExcel GetRootAsShortcutTypeExcel(ByteBuffer _bb) { return GetRootAsShortcutTypeExcel(_bb, new ShortcutTypeExcel()); } + public static ShortcutTypeExcel GetRootAsShortcutTypeExcel(ByteBuffer _bb, ShortcutTypeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ShortcutTypeExcel __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 IsAscending { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ShortcutContentType ContentType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ShortcutContentType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ShortcutContentType)0; } + public int ContentTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetContentTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetContentTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.ShortcutContentType[] GetContentTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ShortcutContentType[] a = new SCHALE.Common.FlatData.ShortcutContentType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ShortcutContentType)__p.bb.GetInt(p + i * 4); } return a; } + + public static Offset CreateShortcutTypeExcel(FlatBufferBuilder builder, + long Id = 0, + bool IsAscending = false, + VectorOffset ContentTypeOffset = default(VectorOffset)) { + builder.StartTable(3); + ShortcutTypeExcel.AddId(builder, Id); + ShortcutTypeExcel.AddContentType(builder, ContentTypeOffset); + ShortcutTypeExcel.AddIsAscending(builder, IsAscending); + return ShortcutTypeExcel.EndShortcutTypeExcel(builder); + } + + public static void StartShortcutTypeExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddIsAscending(FlatBufferBuilder builder, bool isAscending) { builder.AddBool(1, isAscending, false); } + public static void AddContentType(FlatBufferBuilder builder, VectorOffset contentTypeOffset) { builder.AddOffset(2, contentTypeOffset.Value, 0); } + public static VectorOffset CreateContentTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShortcutContentType[] 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 CreateContentTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShortcutContentType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateContentTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateContentTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartContentTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndShortcutTypeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ShortcutTypeExcelVerify +{ + 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 /*IsAscending*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ShortcutContentType*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs b/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs new file mode 100644 index 0000000..2b83b8c --- /dev/null +++ b/SCHALE.Common/FlatData/ShortcutTypeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/ShowSkillCutIn.cs b/SCHALE.Common/FlatData/ShowSkillCutIn.cs new file mode 100644 index 0000000..8cf36cc --- /dev/null +++ b/SCHALE.Common/FlatData/ShowSkillCutIn.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ShowSkillCutIn : int +{ + None = 0, + Once = 1, + Always = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs b/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs new file mode 100644 index 0000000..ea2ad3f --- /dev/null +++ b/SCHALE.Common/FlatData/SkillAdditionalTooltipExcel.cs @@ -0,0 +1,72 @@ +// +// 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 SkillAdditionalTooltipExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SkillAdditionalTooltipExcel GetRootAsSkillAdditionalTooltipExcel(ByteBuffer _bb) { return GetRootAsSkillAdditionalTooltipExcel(_bb, new SkillAdditionalTooltipExcel()); } + public static SkillAdditionalTooltipExcel GetRootAsSkillAdditionalTooltipExcel(ByteBuffer _bb, SkillAdditionalTooltipExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SkillAdditionalTooltipExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AdditionalSkillGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAdditionalSkillGroupIdBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetAdditionalSkillGroupIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetAdditionalSkillGroupIdArray() { return __p.__vector_as_array(6); } + public string ShowSkillSlot { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetShowSkillSlotBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetShowSkillSlotBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetShowSkillSlotArray() { return __p.__vector_as_array(8); } + + public static Offset CreateSkillAdditionalTooltipExcel(FlatBufferBuilder builder, + long GroupId = 0, + StringOffset AdditionalSkillGroupIdOffset = default(StringOffset), + StringOffset ShowSkillSlotOffset = default(StringOffset)) { + builder.StartTable(3); + SkillAdditionalTooltipExcel.AddGroupId(builder, GroupId); + SkillAdditionalTooltipExcel.AddShowSkillSlot(builder, ShowSkillSlotOffset); + SkillAdditionalTooltipExcel.AddAdditionalSkillGroupId(builder, AdditionalSkillGroupIdOffset); + return SkillAdditionalTooltipExcel.EndSkillAdditionalTooltipExcel(builder); + } + + public static void StartSkillAdditionalTooltipExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddAdditionalSkillGroupId(FlatBufferBuilder builder, StringOffset additionalSkillGroupIdOffset) { builder.AddOffset(1, additionalSkillGroupIdOffset.Value, 0); } + public static void AddShowSkillSlot(FlatBufferBuilder builder, StringOffset showSkillSlotOffset) { builder.AddOffset(2, showSkillSlotOffset.Value, 0); } + public static Offset EndSkillAdditionalTooltipExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SkillAdditionalTooltipExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*AdditionalSkillGroupId*/, false) + && verifier.VerifyString(tablePos, 8 /*ShowSkillSlot*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SkillCategory.cs b/SCHALE.Common/FlatData/SkillCategory.cs new file mode 100644 index 0000000..56549eb --- /dev/null +++ b/SCHALE.Common/FlatData/SkillCategory.cs @@ -0,0 +1,14 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SkillCategory : int +{ + None = 0, +}; + + +} diff --git a/SCHALE.Common/FlatData/SkillExcel.cs b/SCHALE.Common/FlatData/SkillExcel.cs new file mode 100644 index 0000000..f650b5b --- /dev/null +++ b/SCHALE.Common/FlatData/SkillExcel.cs @@ -0,0 +1,226 @@ +// +// 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 SkillExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SkillExcel GetRootAsSkillExcel(ByteBuffer _bb) { return GetRootAsSkillExcel(_bb, new SkillExcel()); } + public static SkillExcel GetRootAsSkillExcel(ByteBuffer _bb, SkillExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SkillExcel __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 uint LocalizeSkillId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string GroupId { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGroupIdBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetGroupIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetGroupIdArray() { return __p.__vector_as_array(8); } + public string SkillDataKey { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillDataKeyBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetSkillDataKeyBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetSkillDataKeyArray() { return __p.__vector_as_array(10); } + public string VisualDataKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVisualDataKeyBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetVisualDataKeyBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetVisualDataKeyArray() { return __p.__vector_as_array(12); } + public int Level { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int SkillCost { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraSkillCost { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnemySkillCost { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraEnemySkillCost { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NPCSkillCost { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraNPCSkillCost { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.BulletType BulletType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } + public int StartCoolTime { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CoolTime { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnemyStartCoolTime { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EnemyCoolTime { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NPCStartCoolTime { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NPCCoolTime { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int UseAtg { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RequireCharacterLevel { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long RequireLevelUpMaterial { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string IconName { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconNameBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetIconNameBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetIconNameArray() { return __p.__vector_as_array(48); } + public bool IsShowInfo { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsShowSpeechbubble { get { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int PublicSpeechDuration { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long AdditionalToolTipId { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TextureSkillCardForFormConversion { get { int o = __p.__offset(58); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTextureSkillCardForFormConversionBytes() { return __p.__vector_as_span(58, 1); } +#else + public ArraySegment? GetTextureSkillCardForFormConversionBytes() { return __p.__vector_as_arraysegment(58); } +#endif + public byte[] GetTextureSkillCardForFormConversionArray() { return __p.__vector_as_array(58); } + public string SkillCardLabelPath { get { int o = __p.__offset(60); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillCardLabelPathBytes() { return __p.__vector_as_span(60, 1); } +#else + public ArraySegment? GetSkillCardLabelPathBytes() { return __p.__vector_as_arraysegment(60); } +#endif + public byte[] GetSkillCardLabelPathArray() { return __p.__vector_as_array(60); } + + public static Offset CreateSkillExcel(FlatBufferBuilder builder, + long Id = 0, + uint LocalizeSkillId = 0, + StringOffset GroupIdOffset = default(StringOffset), + StringOffset SkillDataKeyOffset = default(StringOffset), + StringOffset VisualDataKeyOffset = default(StringOffset), + int Level = 0, + int SkillCost = 0, + int ExtraSkillCost = 0, + int EnemySkillCost = 0, + int ExtraEnemySkillCost = 0, + int NPCSkillCost = 0, + int ExtraNPCSkillCost = 0, + SCHALE.Common.FlatData.BulletType BulletType = SCHALE.Common.FlatData.BulletType.Normal, + int StartCoolTime = 0, + int CoolTime = 0, + int EnemyStartCoolTime = 0, + int EnemyCoolTime = 0, + int NPCStartCoolTime = 0, + int NPCCoolTime = 0, + int UseAtg = 0, + int RequireCharacterLevel = 0, + long RequireLevelUpMaterial = 0, + StringOffset IconNameOffset = default(StringOffset), + bool IsShowInfo = false, + bool IsShowSpeechbubble = false, + int PublicSpeechDuration = 0, + long AdditionalToolTipId = 0, + StringOffset TextureSkillCardForFormConversionOffset = default(StringOffset), + StringOffset SkillCardLabelPathOffset = default(StringOffset)) { + builder.StartTable(29); + SkillExcel.AddAdditionalToolTipId(builder, AdditionalToolTipId); + SkillExcel.AddRequireLevelUpMaterial(builder, RequireLevelUpMaterial); + SkillExcel.AddId(builder, Id); + SkillExcel.AddSkillCardLabelPath(builder, SkillCardLabelPathOffset); + SkillExcel.AddTextureSkillCardForFormConversion(builder, TextureSkillCardForFormConversionOffset); + SkillExcel.AddPublicSpeechDuration(builder, PublicSpeechDuration); + SkillExcel.AddIconName(builder, IconNameOffset); + SkillExcel.AddRequireCharacterLevel(builder, RequireCharacterLevel); + SkillExcel.AddUseAtg(builder, UseAtg); + SkillExcel.AddNPCCoolTime(builder, NPCCoolTime); + SkillExcel.AddNPCStartCoolTime(builder, NPCStartCoolTime); + SkillExcel.AddEnemyCoolTime(builder, EnemyCoolTime); + SkillExcel.AddEnemyStartCoolTime(builder, EnemyStartCoolTime); + SkillExcel.AddCoolTime(builder, CoolTime); + SkillExcel.AddStartCoolTime(builder, StartCoolTime); + SkillExcel.AddBulletType(builder, BulletType); + SkillExcel.AddExtraNPCSkillCost(builder, ExtraNPCSkillCost); + SkillExcel.AddNPCSkillCost(builder, NPCSkillCost); + SkillExcel.AddExtraEnemySkillCost(builder, ExtraEnemySkillCost); + SkillExcel.AddEnemySkillCost(builder, EnemySkillCost); + SkillExcel.AddExtraSkillCost(builder, ExtraSkillCost); + SkillExcel.AddSkillCost(builder, SkillCost); + SkillExcel.AddLevel(builder, Level); + SkillExcel.AddVisualDataKey(builder, VisualDataKeyOffset); + SkillExcel.AddSkillDataKey(builder, SkillDataKeyOffset); + SkillExcel.AddGroupId(builder, GroupIdOffset); + SkillExcel.AddLocalizeSkillId(builder, LocalizeSkillId); + SkillExcel.AddIsShowSpeechbubble(builder, IsShowSpeechbubble); + SkillExcel.AddIsShowInfo(builder, IsShowInfo); + return SkillExcel.EndSkillExcel(builder); + } + + public static void StartSkillExcel(FlatBufferBuilder builder) { builder.StartTable(29); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLocalizeSkillId(FlatBufferBuilder builder, uint localizeSkillId) { builder.AddUint(1, localizeSkillId, 0); } + public static void AddGroupId(FlatBufferBuilder builder, StringOffset groupIdOffset) { builder.AddOffset(2, groupIdOffset.Value, 0); } + public static void AddSkillDataKey(FlatBufferBuilder builder, StringOffset skillDataKeyOffset) { builder.AddOffset(3, skillDataKeyOffset.Value, 0); } + public static void AddVisualDataKey(FlatBufferBuilder builder, StringOffset visualDataKeyOffset) { builder.AddOffset(4, visualDataKeyOffset.Value, 0); } + public static void AddLevel(FlatBufferBuilder builder, int level) { builder.AddInt(5, level, 0); } + public static void AddSkillCost(FlatBufferBuilder builder, int skillCost) { builder.AddInt(6, skillCost, 0); } + public static void AddExtraSkillCost(FlatBufferBuilder builder, int extraSkillCost) { builder.AddInt(7, extraSkillCost, 0); } + public static void AddEnemySkillCost(FlatBufferBuilder builder, int enemySkillCost) { builder.AddInt(8, enemySkillCost, 0); } + public static void AddExtraEnemySkillCost(FlatBufferBuilder builder, int extraEnemySkillCost) { builder.AddInt(9, extraEnemySkillCost, 0); } + public static void AddNPCSkillCost(FlatBufferBuilder builder, int nPCSkillCost) { builder.AddInt(10, nPCSkillCost, 0); } + public static void AddExtraNPCSkillCost(FlatBufferBuilder builder, int extraNPCSkillCost) { builder.AddInt(11, extraNPCSkillCost, 0); } + public static void AddBulletType(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType bulletType) { builder.AddInt(12, (int)bulletType, 0); } + public static void AddStartCoolTime(FlatBufferBuilder builder, int startCoolTime) { builder.AddInt(13, startCoolTime, 0); } + public static void AddCoolTime(FlatBufferBuilder builder, int coolTime) { builder.AddInt(14, coolTime, 0); } + public static void AddEnemyStartCoolTime(FlatBufferBuilder builder, int enemyStartCoolTime) { builder.AddInt(15, enemyStartCoolTime, 0); } + public static void AddEnemyCoolTime(FlatBufferBuilder builder, int enemyCoolTime) { builder.AddInt(16, enemyCoolTime, 0); } + public static void AddNPCStartCoolTime(FlatBufferBuilder builder, int nPCStartCoolTime) { builder.AddInt(17, nPCStartCoolTime, 0); } + public static void AddNPCCoolTime(FlatBufferBuilder builder, int nPCCoolTime) { builder.AddInt(18, nPCCoolTime, 0); } + public static void AddUseAtg(FlatBufferBuilder builder, int useAtg) { builder.AddInt(19, useAtg, 0); } + public static void AddRequireCharacterLevel(FlatBufferBuilder builder, int requireCharacterLevel) { builder.AddInt(20, requireCharacterLevel, 0); } + public static void AddRequireLevelUpMaterial(FlatBufferBuilder builder, long requireLevelUpMaterial) { builder.AddLong(21, requireLevelUpMaterial, 0); } + public static void AddIconName(FlatBufferBuilder builder, StringOffset iconNameOffset) { builder.AddOffset(22, iconNameOffset.Value, 0); } + public static void AddIsShowInfo(FlatBufferBuilder builder, bool isShowInfo) { builder.AddBool(23, isShowInfo, false); } + public static void AddIsShowSpeechbubble(FlatBufferBuilder builder, bool isShowSpeechbubble) { builder.AddBool(24, isShowSpeechbubble, false); } + public static void AddPublicSpeechDuration(FlatBufferBuilder builder, int publicSpeechDuration) { builder.AddInt(25, publicSpeechDuration, 0); } + public static void AddAdditionalToolTipId(FlatBufferBuilder builder, long additionalToolTipId) { builder.AddLong(26, additionalToolTipId, 0); } + public static void AddTextureSkillCardForFormConversion(FlatBufferBuilder builder, StringOffset textureSkillCardForFormConversionOffset) { builder.AddOffset(27, textureSkillCardForFormConversionOffset.Value, 0); } + public static void AddSkillCardLabelPath(FlatBufferBuilder builder, StringOffset skillCardLabelPathOffset) { builder.AddOffset(28, skillCardLabelPathOffset.Value, 0); } + public static Offset EndSkillExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SkillExcelVerify +{ + 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 /*LocalizeSkillId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*GroupId*/, false) + && verifier.VerifyString(tablePos, 10 /*SkillDataKey*/, false) + && verifier.VerifyString(tablePos, 12 /*VisualDataKey*/, false) + && verifier.VerifyField(tablePos, 14 /*Level*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*SkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*ExtraSkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*EnemySkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*ExtraEnemySkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*NPCSkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*ExtraNPCSkillCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*BulletType*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*StartCoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*CoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*EnemyStartCoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 36 /*EnemyCoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*NPCStartCoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*NPCCoolTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*UseAtg*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*RequireCharacterLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*RequireLevelUpMaterial*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 48 /*IconName*/, false) + && verifier.VerifyField(tablePos, 50 /*IsShowInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 52 /*IsShowSpeechbubble*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 54 /*PublicSpeechDuration*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*AdditionalToolTipId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 58 /*TextureSkillCardForFormConversion*/, false) + && verifier.VerifyString(tablePos, 60 /*SkillCardLabelPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SkillExcelTable.cs b/SCHALE.Common/FlatData/SkillExcelTable.cs new file mode 100644 index 0000000..e525099 --- /dev/null +++ b/SCHALE.Common/FlatData/SkillExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 SkillExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SkillExcelTable GetRootAsSkillExcelTable(ByteBuffer _bb) { return GetRootAsSkillExcelTable(_bb, new SkillExcelTable()); } + public static SkillExcelTable GetRootAsSkillExcelTable(ByteBuffer _bb, SkillExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SkillExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.SkillExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SkillExcel?)(new SCHALE.Common.FlatData.SkillExcel()).__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 CreateSkillExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + SkillExcelTable.AddDataList(builder, DataListOffset); + return SkillExcelTable.EndSkillExcelTable(builder); + } + + public static void StartSkillExcelTable(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 EndSkillExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SkillExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SkillExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs b/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs new file mode 100644 index 0000000..065b6d2 --- /dev/null +++ b/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SkillPriorityCheckCondition : int +{ + None = 0, + HPRateUnder = 1, + DebuffCountOver = 2, + BuffCountOver = 3, + CrowdControlOver = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/SkillPriorityCheckTarget.cs b/SCHALE.Common/FlatData/SkillPriorityCheckTarget.cs new file mode 100644 index 0000000..c16408c --- /dev/null +++ b/SCHALE.Common/FlatData/SkillPriorityCheckTarget.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SkillPriorityCheckTarget : int +{ + Ally = 0, + Enemy = 1, + All = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/SocialMode.cs b/SCHALE.Common/FlatData/SocialMode.cs new file mode 100644 index 0000000..a7ff0d6 --- /dev/null +++ b/SCHALE.Common/FlatData/SocialMode.cs @@ -0,0 +1,29 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SocialMode : int +{ + TITLE = 0, + LOBBY = 1, + FORMATION = 2, + STAGE_SELECT = 3, + BATTLE = 4, + POPUP = 5, + BATTLE_RESULT = 6, + BATTLE_RESULT_VICTORY = 7, + BATTLE_RESULT_DEFEAT = 8, + INVALID = 9, + TACTIC = 10, + STRATEGY = 11, + ACCONT = 12, + CAMPAIGN_STORY = 13, + CAMPAIGN_STAGE = 14, + TACTICREADY = 15, +}; + + +} diff --git a/SCHALE.Common/FlatData/SortingTarget.cs b/SCHALE.Common/FlatData/SortingTarget.cs new file mode 100644 index 0000000..e434986 --- /dev/null +++ b/SCHALE.Common/FlatData/SortingTarget.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SortingTarget : int +{ + None = 0, + Rarity = 1, + Level = 2, + StarGrade = 3, + Tier = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/SoundType.cs b/SCHALE.Common/FlatData/SoundType.cs new file mode 100644 index 0000000..a311fc7 --- /dev/null +++ b/SCHALE.Common/FlatData/SoundType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SoundType : int +{ + UI = 0, + BGM = 1, + FX = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/SoundUIExcel.cs b/SCHALE.Common/FlatData/SoundUIExcel.cs new file mode 100644 index 0000000..940a97d --- /dev/null +++ b/SCHALE.Common/FlatData/SoundUIExcel.cs @@ -0,0 +1,72 @@ +// +// 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 SoundUIExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SoundUIExcel GetRootAsSoundUIExcel(ByteBuffer _bb) { return GetRootAsSoundUIExcel(_bb, new SoundUIExcel()); } + public static SoundUIExcel GetRootAsSoundUIExcel(ByteBuffer _bb, SoundUIExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SoundUIExcel __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 string SoundUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSoundUniqueIdBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSoundUniqueIdBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSoundUniqueIdArray() { return __p.__vector_as_array(6); } + public string Path { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetPathArray() { return __p.__vector_as_array(8); } + + public static Offset CreateSoundUIExcel(FlatBufferBuilder builder, + long ID = 0, + StringOffset SoundUniqueIdOffset = default(StringOffset), + StringOffset PathOffset = default(StringOffset)) { + builder.StartTable(3); + SoundUIExcel.AddID(builder, ID); + SoundUIExcel.AddPath(builder, PathOffset); + SoundUIExcel.AddSoundUniqueId(builder, SoundUniqueIdOffset); + return SoundUIExcel.EndSoundUIExcel(builder); + } + + public static void StartSoundUIExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddSoundUniqueId(FlatBufferBuilder builder, StringOffset soundUniqueIdOffset) { builder.AddOffset(1, soundUniqueIdOffset.Value, 0); } + public static void AddPath(FlatBufferBuilder builder, StringOffset pathOffset) { builder.AddOffset(2, pathOffset.Value, 0); } + public static Offset EndSoundUIExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SoundUIExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*SoundUniqueId*/, false) + && verifier.VerifyString(tablePos, 8 /*Path*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs b/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs new file mode 100644 index 0000000..d52944d --- /dev/null +++ b/SCHALE.Common/FlatData/SpecialLobbyIllustExcel.cs @@ -0,0 +1,99 @@ +// +// 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 SpecialLobbyIllustExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SpecialLobbyIllustExcel GetRootAsSpecialLobbyIllustExcel(ByteBuffer _bb) { return GetRootAsSpecialLobbyIllustExcel(_bb, new SpecialLobbyIllustExcel()); } + public static SpecialLobbyIllustExcel GetRootAsSpecialLobbyIllustExcel(ByteBuffer _bb, SpecialLobbyIllustExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SpecialLobbyIllustExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public long CharacterCostumeUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PrefabName { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPrefabNameBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); } + public string SlotTextureName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSlotTextureNameBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSlotTextureNameBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSlotTextureNameArray() { return __p.__vector_as_array(12); } + public string RewardTextureName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetRewardTextureNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetRewardTextureNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetRewardTextureNameArray() { return __p.__vector_as_array(14); } + + public static Offset CreateSpecialLobbyIllustExcel(FlatBufferBuilder builder, + long UniqueId = 0, + StringOffset DevNameOffset = default(StringOffset), + long CharacterCostumeUniqueId = 0, + StringOffset PrefabNameOffset = default(StringOffset), + StringOffset SlotTextureNameOffset = default(StringOffset), + StringOffset RewardTextureNameOffset = default(StringOffset)) { + builder.StartTable(6); + SpecialLobbyIllustExcel.AddCharacterCostumeUniqueId(builder, CharacterCostumeUniqueId); + SpecialLobbyIllustExcel.AddUniqueId(builder, UniqueId); + SpecialLobbyIllustExcel.AddRewardTextureName(builder, RewardTextureNameOffset); + SpecialLobbyIllustExcel.AddSlotTextureName(builder, SlotTextureNameOffset); + SpecialLobbyIllustExcel.AddPrefabName(builder, PrefabNameOffset); + SpecialLobbyIllustExcel.AddDevName(builder, DevNameOffset); + return SpecialLobbyIllustExcel.EndSpecialLobbyIllustExcel(builder); + } + + public static void StartSpecialLobbyIllustExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddCharacterCostumeUniqueId(FlatBufferBuilder builder, long characterCostumeUniqueId) { builder.AddLong(2, characterCostumeUniqueId, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(3, prefabNameOffset.Value, 0); } + public static void AddSlotTextureName(FlatBufferBuilder builder, StringOffset slotTextureNameOffset) { builder.AddOffset(4, slotTextureNameOffset.Value, 0); } + public static void AddRewardTextureName(FlatBufferBuilder builder, StringOffset rewardTextureNameOffset) { builder.AddOffset(5, rewardTextureNameOffset.Value, 0); } + public static Offset EndSpecialLobbyIllustExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SpecialLobbyIllustExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*CharacterCostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 10 /*PrefabName*/, false) + && verifier.VerifyString(tablePos, 12 /*SlotTextureName*/, false) + && verifier.VerifyString(tablePos, 14 /*RewardTextureName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs b/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs new file mode 100644 index 0000000..5742bb0 --- /dev/null +++ b/SCHALE.Common/FlatData/SpecialLobbyIllustExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 SpecialLobbyIllustExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SpecialLobbyIllustExcelTable GetRootAsSpecialLobbyIllustExcelTable(ByteBuffer _bb) { return GetRootAsSpecialLobbyIllustExcelTable(_bb, new SpecialLobbyIllustExcelTable()); } + public static SpecialLobbyIllustExcelTable GetRootAsSpecialLobbyIllustExcelTable(ByteBuffer _bb, SpecialLobbyIllustExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SpecialLobbyIllustExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.SpecialLobbyIllustExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SpecialLobbyIllustExcel?)(new SCHALE.Common.FlatData.SpecialLobbyIllustExcel()).__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 CreateSpecialLobbyIllustExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + SpecialLobbyIllustExcelTable.AddDataList(builder, DataListOffset); + return SpecialLobbyIllustExcelTable.EndSpecialLobbyIllustExcelTable(builder); + } + + public static void StartSpecialLobbyIllustExcelTable(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 EndSpecialLobbyIllustExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SpecialLobbyIllustExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SpecialLobbyIllustExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SpineLipsyncExcel.cs b/SCHALE.Common/FlatData/SpineLipsyncExcel.cs new file mode 100644 index 0000000..ed991ad --- /dev/null +++ b/SCHALE.Common/FlatData/SpineLipsyncExcel.cs @@ -0,0 +1,61 @@ +// +// 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 SpineLipsyncExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SpineLipsyncExcel GetRootAsSpineLipsyncExcel(ByteBuffer _bb) { return GetRootAsSpineLipsyncExcel(_bb, new SpineLipsyncExcel()); } + public static SpineLipsyncExcel GetRootAsSpineLipsyncExcel(ByteBuffer _bb, SpineLipsyncExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SpineLipsyncExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint VoiceId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string AnimJson { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimJsonBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetAnimJsonBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetAnimJsonArray() { return __p.__vector_as_array(6); } + + public static Offset CreateSpineLipsyncExcel(FlatBufferBuilder builder, + uint VoiceId = 0, + StringOffset AnimJsonOffset = default(StringOffset)) { + builder.StartTable(2); + SpineLipsyncExcel.AddAnimJson(builder, AnimJsonOffset); + SpineLipsyncExcel.AddVoiceId(builder, VoiceId); + return SpineLipsyncExcel.EndSpineLipsyncExcel(builder); + } + + public static void StartSpineLipsyncExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(0, voiceId, 0); } + public static void AddAnimJson(FlatBufferBuilder builder, StringOffset animJsonOffset) { builder.AddOffset(1, animJsonOffset.Value, 0); } + public static Offset EndSpineLipsyncExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SpineLipsyncExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*VoiceId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 6 /*AnimJson*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs b/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs new file mode 100644 index 0000000..410b8e4 --- /dev/null +++ b/SCHALE.Common/FlatData/SpineLipsyncExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/SquadType.cs b/SCHALE.Common/FlatData/SquadType.cs new file mode 100644 index 0000000..4daaf4c --- /dev/null +++ b/SCHALE.Common/FlatData/SquadType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SquadType : int +{ + None = 0, + Main = 1, + Support = 2, + TSS = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/StageDifficulty.cs b/SCHALE.Common/FlatData/StageDifficulty.cs new file mode 100644 index 0000000..5aa0c37 --- /dev/null +++ b/SCHALE.Common/FlatData/StageDifficulty.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StageDifficulty : int +{ + None = 0, + Normal = 1, + Hard = 2, + VeryHard = 3, + VeryHard_Ex = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs b/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs new file mode 100644 index 0000000..5514b30 --- /dev/null +++ b/SCHALE.Common/FlatData/StageFileRefreshSettingExcel.cs @@ -0,0 +1,55 @@ +// +// 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 StageFileRefreshSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StageFileRefreshSettingExcel GetRootAsStageFileRefreshSettingExcel(ByteBuffer _bb) { return GetRootAsStageFileRefreshSettingExcel(_bb, new StageFileRefreshSettingExcel()); } + public static StageFileRefreshSettingExcel GetRootAsStageFileRefreshSettingExcel(ByteBuffer _bb, StageFileRefreshSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StageFileRefreshSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroundId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ForceSave { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateStageFileRefreshSettingExcel(FlatBufferBuilder builder, + long GroundId = 0, + bool ForceSave = false) { + builder.StartTable(2); + StageFileRefreshSettingExcel.AddGroundId(builder, GroundId); + StageFileRefreshSettingExcel.AddForceSave(builder, ForceSave); + return StageFileRefreshSettingExcel.EndStageFileRefreshSettingExcel(builder); + } + + public static void StartStageFileRefreshSettingExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(0, groundId, 0); } + public static void AddForceSave(FlatBufferBuilder builder, bool forceSave) { builder.AddBool(1, forceSave, false); } + public static Offset EndStageFileRefreshSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StageFileRefreshSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*ForceSave*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StageTopography.cs b/SCHALE.Common/FlatData/StageTopography.cs new file mode 100644 index 0000000..c5cc98c --- /dev/null +++ b/SCHALE.Common/FlatData/StageTopography.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StageTopography : int +{ + Street = 0, + Outdoor = 1, + Indoor = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/StageType.cs b/SCHALE.Common/FlatData/StageType.cs new file mode 100644 index 0000000..d135f21 --- /dev/null +++ b/SCHALE.Common/FlatData/StageType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StageType : int +{ + Main = 0, + Sub = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/StarGoalType.cs b/SCHALE.Common/FlatData/StarGoalType.cs new file mode 100644 index 0000000..b3a2654 --- /dev/null +++ b/SCHALE.Common/FlatData/StarGoalType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StarGoalType : int +{ + None = 0, + AllAlive = 1, + Clear = 2, + GetBoxes = 3, + ClearTimeInSec = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs b/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs new file mode 100644 index 0000000..f5fc287 --- /dev/null +++ b/SCHALE.Common/FlatData/StatLevelInterpolationExcel.cs @@ -0,0 +1,67 @@ +// +// 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 StatLevelInterpolationExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StatLevelInterpolationExcel GetRootAsStatLevelInterpolationExcel(ByteBuffer _bb) { return GetRootAsStatLevelInterpolationExcel(_bb, new StatLevelInterpolationExcel()); } + public static StatLevelInterpolationExcel GetRootAsStatLevelInterpolationExcel(ByteBuffer _bb, StatLevelInterpolationExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StatLevelInterpolationExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Level { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StatTypeIndex(int j) { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StatTypeIndexLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStatTypeIndexBytes() { return __p.__vector_as_span(6, 8); } +#else + public ArraySegment? GetStatTypeIndexBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public long[] GetStatTypeIndexArray() { return __p.__vector_as_array(6); } + + public static Offset CreateStatLevelInterpolationExcel(FlatBufferBuilder builder, + long Level = 0, + VectorOffset StatTypeIndexOffset = default(VectorOffset)) { + builder.StartTable(2); + StatLevelInterpolationExcel.AddLevel(builder, Level); + StatLevelInterpolationExcel.AddStatTypeIndex(builder, StatTypeIndexOffset); + return StatLevelInterpolationExcel.EndStatLevelInterpolationExcel(builder); + } + + public static void StartStatLevelInterpolationExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddLevel(FlatBufferBuilder builder, long level) { builder.AddLong(0, level, 0); } + public static void AddStatTypeIndex(FlatBufferBuilder builder, VectorOffset statTypeIndexOffset) { builder.AddOffset(1, statTypeIndexOffset.Value, 0); } + public static VectorOffset CreateStatTypeIndexVector(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 CreateStatTypeIndexVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeIndexVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStatTypeIndexVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStatTypeIndexVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndStatLevelInterpolationExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StatLevelInterpolationExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Level*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*StatTypeIndex*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs b/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs new file mode 100644 index 0000000..a6d8c7d --- /dev/null +++ b/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StatLevelInterpolationExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StatLevelInterpolationExcelTable GetRootAsStatLevelInterpolationExcelTable(ByteBuffer _bb) { return GetRootAsStatLevelInterpolationExcelTable(_bb, new StatLevelInterpolationExcelTable()); } + public static StatLevelInterpolationExcelTable GetRootAsStatLevelInterpolationExcelTable(ByteBuffer _bb, StatLevelInterpolationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StatLevelInterpolationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StatLevelInterpolationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatLevelInterpolationExcel?)(new SCHALE.Common.FlatData.StatLevelInterpolationExcel()).__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 CreateStatLevelInterpolationExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StatLevelInterpolationExcelTable.AddDataList(builder, DataListOffset); + return StatLevelInterpolationExcelTable.EndStatLevelInterpolationExcelTable(builder); + } + + public static void StartStatLevelInterpolationExcelTable(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 EndStatLevelInterpolationExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StatLevelInterpolationExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StatLevelInterpolationExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StatLevelUpType.cs b/SCHALE.Common/FlatData/StatLevelUpType.cs new file mode 100644 index 0000000..83a70c0 --- /dev/null +++ b/SCHALE.Common/FlatData/StatLevelUpType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StatLevelUpType : int +{ + Standard = 0, + Premature = 1, + LateBloom = 2, + Obstacle = 3, + TimeAttack = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/StatTransType.cs b/SCHALE.Common/FlatData/StatTransType.cs new file mode 100644 index 0000000..af38ed3 --- /dev/null +++ b/SCHALE.Common/FlatData/StatTransType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StatTransType : int +{ + SpecialTransStat = 0, + TSATransStat = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/StatType.cs b/SCHALE.Common/FlatData/StatType.cs new file mode 100644 index 0000000..8634d6e --- /dev/null +++ b/SCHALE.Common/FlatData/StatType.cs @@ -0,0 +1,81 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StatType : int +{ + None = 0, + MaxHP = 1, + AttackPower = 2, + DefensePower = 3, + HealPower = 4, + AccuracyPoint = 5, + AccuracyRate = 6, + DodgePoint = 7, + DodgeRate = 8, + CriticalPoint = 9, + CriticalChanceRate = 10, + CriticalResistChanceRate = 11, + CriticalDamageRate = 12, + MoveSpeed = 13, + SightRange = 14, + ActiveGauge = 15, + StabilityPoint = 16, + StabilityRate = 17, + ReloadTime = 18, + MaxBulletCount = 19, + IgnoreDelayCount = 20, + WeaponRange = 21, + BlockRate = 22, + BodyRadius = 23, + ActionCount = 24, + StrategyMobility = 25, + StrategySightRange = 26, + StreetBattleAdaptation = 27, + OutdoorBattleAdaptation = 28, + IndoorBattleAdaptation = 29, + HealEffectivenessRate = 30, + CriticalChanceResistPoint = 31, + CriticalDamageResistRate = 32, + LifeRecoverOnHit = 33, + NormalAttackSpeed = 34, + AmmoCost = 35, + GroggyGauge = 36, + GroggyTime = 37, + DamageRatio = 38, + DamagedRatio = 39, + OppressionPower = 40, + OppressionResist = 41, + RegenCost = 42, + InitialWeaponRangeRate = 43, + DefensePenetration = 44, + DefensePenetrationResisit = 45, + ExtendBuffDuration = 46, + ExtendDebuffDuration = 47, + ExtendCrowdControlDuration = 48, + EnhanceExplosionRate = 49, + EnhancePierceRate = 50, + EnhanceMysticRate = 51, + EnhanceLightArmorRate = 52, + EnhanceHeavyArmorRate = 53, + EnhanceUnarmedRate = 54, + EnhanceSiegeRate = 55, + EnhanceNormalRate = 56, + EnhanceStructureRate = 57, + EnhanceNormalArmorRate = 58, + DamageRatio2Increase = 59, + DamageRatio2Decrease = 60, + DamagedRatio2Increase = 61, + DamagedRatio2Decrease = 62, + EnhanceSonicRate = 63, + EnhanceElasticArmorRate = 64, + ExDamagedRatioIncrease = 65, + ExDamagedRatioDecrease = 66, + Max = 67, +}; + + +} diff --git a/SCHALE.Common/FlatData/StickerCheckPassType.cs b/SCHALE.Common/FlatData/StickerCheckPassType.cs new file mode 100644 index 0000000..b544a09 --- /dev/null +++ b/SCHALE.Common/FlatData/StickerCheckPassType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StickerCheckPassType : int +{ + None = 0, + ClearScenarioModeId = 1, + ClearCampaignStageId = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/StickerGetConditionType.cs b/SCHALE.Common/FlatData/StickerGetConditionType.cs new file mode 100644 index 0000000..fb21d8f --- /dev/null +++ b/SCHALE.Common/FlatData/StickerGetConditionType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StickerGetConditionType : int +{ + None = 0, + StickerCheckPass = 1, + GetStickerCondition = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/StickerGroupExcel.cs b/SCHALE.Common/FlatData/StickerGroupExcel.cs new file mode 100644 index 0000000..62812d6 --- /dev/null +++ b/SCHALE.Common/FlatData/StickerGroupExcel.cs @@ -0,0 +1,124 @@ +// +// 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 StickerGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StickerGroupExcel GetRootAsStickerGroupExcel(ByteBuffer _bb) { return GetRootAsStickerGroupExcel(_bb, new StickerGroupExcel()); } + public static StickerGroupExcel GetRootAsStickerGroupExcel(ByteBuffer _bb, StickerGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StickerGroupExcel __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 string Layout { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLayoutBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetLayoutBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetLayoutArray() { return __p.__vector_as_array(6); } + public string UniqueLayoutPath { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetUniqueLayoutPathBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetUniqueLayoutPathBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetUniqueLayoutPathArray() { return __p.__vector_as_array(8); } + public string StickerGroupIconpath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStickerGroupIconpathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetStickerGroupIconpathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetStickerGroupIconpathArray() { return __p.__vector_as_array(10); } + public long PageCompleteSlot { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long PageCompleteRewardParcelId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int PageCompleteRewardAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint LocalizeTitle { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint LocalizeDescription { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string StickerGroupCoverpath { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStickerGroupCoverpathBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetStickerGroupCoverpathBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetStickerGroupCoverpathArray() { return __p.__vector_as_array(24); } + + public static Offset CreateStickerGroupExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset LayoutOffset = default(StringOffset), + StringOffset UniqueLayoutPathOffset = default(StringOffset), + StringOffset StickerGroupIconpathOffset = default(StringOffset), + long PageCompleteSlot = 0, + SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long PageCompleteRewardParcelId = 0, + int PageCompleteRewardAmount = 0, + uint LocalizeTitle = 0, + uint LocalizeDescription = 0, + StringOffset StickerGroupCoverpathOffset = default(StringOffset)) { + builder.StartTable(11); + StickerGroupExcel.AddPageCompleteRewardParcelId(builder, PageCompleteRewardParcelId); + StickerGroupExcel.AddPageCompleteSlot(builder, PageCompleteSlot); + StickerGroupExcel.AddId(builder, Id); + StickerGroupExcel.AddStickerGroupCoverpath(builder, StickerGroupCoverpathOffset); + StickerGroupExcel.AddLocalizeDescription(builder, LocalizeDescription); + StickerGroupExcel.AddLocalizeTitle(builder, LocalizeTitle); + StickerGroupExcel.AddPageCompleteRewardAmount(builder, PageCompleteRewardAmount); + StickerGroupExcel.AddPageCompleteRewardParcelType(builder, PageCompleteRewardParcelType); + StickerGroupExcel.AddStickerGroupIconpath(builder, StickerGroupIconpathOffset); + StickerGroupExcel.AddUniqueLayoutPath(builder, UniqueLayoutPathOffset); + StickerGroupExcel.AddLayout(builder, LayoutOffset); + return StickerGroupExcel.EndStickerGroupExcel(builder); + } + + public static void StartStickerGroupExcel(FlatBufferBuilder builder) { builder.StartTable(11); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLayout(FlatBufferBuilder builder, StringOffset layoutOffset) { builder.AddOffset(1, layoutOffset.Value, 0); } + public static void AddUniqueLayoutPath(FlatBufferBuilder builder, StringOffset uniqueLayoutPathOffset) { builder.AddOffset(2, uniqueLayoutPathOffset.Value, 0); } + public static void AddStickerGroupIconpath(FlatBufferBuilder builder, StringOffset stickerGroupIconpathOffset) { builder.AddOffset(3, stickerGroupIconpathOffset.Value, 0); } + public static void AddPageCompleteSlot(FlatBufferBuilder builder, long pageCompleteSlot) { builder.AddLong(4, pageCompleteSlot, 0); } + public static void AddPageCompleteRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType pageCompleteRewardParcelType) { builder.AddInt(5, (int)pageCompleteRewardParcelType, 0); } + public static void AddPageCompleteRewardParcelId(FlatBufferBuilder builder, long pageCompleteRewardParcelId) { builder.AddLong(6, pageCompleteRewardParcelId, 0); } + public static void AddPageCompleteRewardAmount(FlatBufferBuilder builder, int pageCompleteRewardAmount) { builder.AddInt(7, pageCompleteRewardAmount, 0); } + public static void AddLocalizeTitle(FlatBufferBuilder builder, uint localizeTitle) { builder.AddUint(8, localizeTitle, 0); } + public static void AddLocalizeDescription(FlatBufferBuilder builder, uint localizeDescription) { builder.AddUint(9, localizeDescription, 0); } + public static void AddStickerGroupCoverpath(FlatBufferBuilder builder, StringOffset stickerGroupCoverpathOffset) { builder.AddOffset(10, stickerGroupCoverpathOffset.Value, 0); } + public static Offset EndStickerGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StickerGroupExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Layout*/, false) + && verifier.VerifyString(tablePos, 8 /*UniqueLayoutPath*/, false) + && verifier.VerifyString(tablePos, 10 /*StickerGroupIconpath*/, false) + && verifier.VerifyField(tablePos, 12 /*PageCompleteSlot*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*PageCompleteRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*PageCompleteRewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*PageCompleteRewardAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*LocalizeTitle*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*LocalizeDescription*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 24 /*StickerGroupCoverpath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StickerGroupExcelTable.cs b/SCHALE.Common/FlatData/StickerGroupExcelTable.cs new file mode 100644 index 0000000..7e75e20 --- /dev/null +++ b/SCHALE.Common/FlatData/StickerGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StickerGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StickerGroupExcelTable GetRootAsStickerGroupExcelTable(ByteBuffer _bb) { return GetRootAsStickerGroupExcelTable(_bb, new StickerGroupExcelTable()); } + public static StickerGroupExcelTable GetRootAsStickerGroupExcelTable(ByteBuffer _bb, StickerGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StickerGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StickerGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StickerGroupExcel?)(new SCHALE.Common.FlatData.StickerGroupExcel()).__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 CreateStickerGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StickerGroupExcelTable.AddDataList(builder, DataListOffset); + return StickerGroupExcelTable.EndStickerGroupExcelTable(builder); + } + + public static void StartStickerGroupExcelTable(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 EndStickerGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StickerGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StickerGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StickerPageContentExcel.cs b/SCHALE.Common/FlatData/StickerPageContentExcel.cs new file mode 100644 index 0000000..0331dd1 --- /dev/null +++ b/SCHALE.Common/FlatData/StickerPageContentExcel.cs @@ -0,0 +1,157 @@ +// +// 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 StickerPageContentExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StickerPageContentExcel GetRootAsStickerPageContentExcel(ByteBuffer _bb) { return GetRootAsStickerPageContentExcel(_bb, new StickerPageContentExcel()); } + public static StickerPageContentExcel GetRootAsStickerPageContentExcel(ByteBuffer _bb, StickerPageContentExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StickerPageContentExcel __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 StickerGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StickerPageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StickerSlot { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StickerGetConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerGetConditionType.None; } } + public SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.StickerCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerCheckPassType.None; } } + public SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GetStickerConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GetStickerConditionType.None; } } + public long StickerGetConditionCount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StickerGetConditionParameter(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StickerGetConditionParameterLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStickerGetConditionParameterBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetStickerGetConditionParameterBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetStickerGetConditionParameterArray() { return __p.__vector_as_array(20); } + public SCHALE.Common.FlatData.Tag StickerGetConditionParameterTag(int j) { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int StickerGetConditionParameterTagLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStickerGetConditionParameterTagBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetStickerGetConditionParameterTagBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.Tag[] GetStickerGetConditionParameterTagArray() { int o = __p.__offset(22); 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 uint PackedStickerIconLocalizeEtcId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string PackedStickerIconPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPackedStickerIconPathBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetPackedStickerIconPathBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetPackedStickerIconPathArray() { return __p.__vector_as_array(26); } + public string IconPath { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(28, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(28); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(28); } + public string StickerDetailPath { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStickerDetailPathBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetStickerDetailPathBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetStickerDetailPathArray() { return __p.__vector_as_array(30); } + + public static Offset CreateStickerPageContentExcel(FlatBufferBuilder builder, + long Id = 0, + long StickerGroupId = 0, + long StickerPageId = 0, + long StickerSlot = 0, + SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType = SCHALE.Common.FlatData.StickerGetConditionType.None, + SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType = SCHALE.Common.FlatData.StickerCheckPassType.None, + SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType = SCHALE.Common.FlatData.GetStickerConditionType.None, + long StickerGetConditionCount = 0, + VectorOffset StickerGetConditionParameterOffset = default(VectorOffset), + VectorOffset StickerGetConditionParameterTagOffset = default(VectorOffset), + uint PackedStickerIconLocalizeEtcId = 0, + StringOffset PackedStickerIconPathOffset = default(StringOffset), + StringOffset IconPathOffset = default(StringOffset), + StringOffset StickerDetailPathOffset = default(StringOffset)) { + builder.StartTable(14); + StickerPageContentExcel.AddStickerGetConditionCount(builder, StickerGetConditionCount); + StickerPageContentExcel.AddStickerSlot(builder, StickerSlot); + StickerPageContentExcel.AddStickerPageId(builder, StickerPageId); + StickerPageContentExcel.AddStickerGroupId(builder, StickerGroupId); + StickerPageContentExcel.AddId(builder, Id); + StickerPageContentExcel.AddStickerDetailPath(builder, StickerDetailPathOffset); + StickerPageContentExcel.AddIconPath(builder, IconPathOffset); + StickerPageContentExcel.AddPackedStickerIconPath(builder, PackedStickerIconPathOffset); + StickerPageContentExcel.AddPackedStickerIconLocalizeEtcId(builder, PackedStickerIconLocalizeEtcId); + StickerPageContentExcel.AddStickerGetConditionParameterTag(builder, StickerGetConditionParameterTagOffset); + StickerPageContentExcel.AddStickerGetConditionParameter(builder, StickerGetConditionParameterOffset); + StickerPageContentExcel.AddGetStickerConditionType(builder, GetStickerConditionType); + StickerPageContentExcel.AddStickerCheckPassType(builder, StickerCheckPassType); + StickerPageContentExcel.AddStickerGetConditionType(builder, StickerGetConditionType); + return StickerPageContentExcel.EndStickerPageContentExcel(builder); + } + + public static void StartStickerPageContentExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStickerGroupId(FlatBufferBuilder builder, long stickerGroupId) { builder.AddLong(1, stickerGroupId, 0); } + public static void AddStickerPageId(FlatBufferBuilder builder, long stickerPageId) { builder.AddLong(2, stickerPageId, 0); } + public static void AddStickerSlot(FlatBufferBuilder builder, long stickerSlot) { builder.AddLong(3, stickerSlot, 0); } + public static void AddStickerGetConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StickerGetConditionType stickerGetConditionType) { builder.AddInt(4, (int)stickerGetConditionType, 0); } + public static void AddStickerCheckPassType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StickerCheckPassType stickerCheckPassType) { builder.AddInt(5, (int)stickerCheckPassType, 0); } + public static void AddGetStickerConditionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.GetStickerConditionType getStickerConditionType) { builder.AddInt(6, (int)getStickerConditionType, 0); } + public static void AddStickerGetConditionCount(FlatBufferBuilder builder, long stickerGetConditionCount) { builder.AddLong(7, stickerGetConditionCount, 0); } + public static void AddStickerGetConditionParameter(FlatBufferBuilder builder, VectorOffset stickerGetConditionParameterOffset) { builder.AddOffset(8, stickerGetConditionParameterOffset.Value, 0); } + public static VectorOffset CreateStickerGetConditionParameterVector(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 CreateStickerGetConditionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStickerGetConditionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStickerGetConditionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStickerGetConditionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStickerGetConditionParameterTag(FlatBufferBuilder builder, VectorOffset stickerGetConditionParameterTagOffset) { builder.AddOffset(9, stickerGetConditionParameterTagOffset.Value, 0); } + public static VectorOffset CreateStickerGetConditionParameterTagVector(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 CreateStickerGetConditionParameterTagVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStickerGetConditionParameterTagVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStickerGetConditionParameterTagVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStickerGetConditionParameterTagVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPackedStickerIconLocalizeEtcId(FlatBufferBuilder builder, uint packedStickerIconLocalizeEtcId) { builder.AddUint(10, packedStickerIconLocalizeEtcId, 0); } + public static void AddPackedStickerIconPath(FlatBufferBuilder builder, StringOffset packedStickerIconPathOffset) { builder.AddOffset(11, packedStickerIconPathOffset.Value, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(12, iconPathOffset.Value, 0); } + public static void AddStickerDetailPath(FlatBufferBuilder builder, StringOffset stickerDetailPathOffset) { builder.AddOffset(13, stickerDetailPathOffset.Value, 0); } + public static Offset EndStickerPageContentExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StickerPageContentExcelVerify +{ + 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 /*StickerGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*StickerPageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*StickerSlot*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StickerGetConditionType*/, 4 /*SCHALE.Common.FlatData.StickerGetConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*StickerCheckPassType*/, 4 /*SCHALE.Common.FlatData.StickerCheckPassType*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*GetStickerConditionType*/, 4 /*SCHALE.Common.FlatData.GetStickerConditionType*/, 4, false) + && verifier.VerifyField(tablePos, 18 /*StickerGetConditionCount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*StickerGetConditionParameter*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*StickerGetConditionParameterTag*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 24 /*PackedStickerIconLocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 26 /*PackedStickerIconPath*/, false) + && verifier.VerifyString(tablePos, 28 /*IconPath*/, false) + && verifier.VerifyString(tablePos, 30 /*StickerDetailPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs b/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs new file mode 100644 index 0000000..16fef98 --- /dev/null +++ b/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StickerPageContentExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StickerPageContentExcelTable GetRootAsStickerPageContentExcelTable(ByteBuffer _bb) { return GetRootAsStickerPageContentExcelTable(_bb, new StickerPageContentExcelTable()); } + public static StickerPageContentExcelTable GetRootAsStickerPageContentExcelTable(ByteBuffer _bb, StickerPageContentExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StickerPageContentExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StickerPageContentExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StickerPageContentExcel?)(new SCHALE.Common.FlatData.StickerPageContentExcel()).__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 CreateStickerPageContentExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StickerPageContentExcelTable.AddDataList(builder, DataListOffset); + return StickerPageContentExcelTable.EndStickerPageContentExcelTable(builder); + } + + public static void StartStickerPageContentExcelTable(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 EndStickerPageContentExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StickerPageContentExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StickerPageContentExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StoreType.cs b/SCHALE.Common/FlatData/StoreType.cs new file mode 100644 index 0000000..81ef88b --- /dev/null +++ b/SCHALE.Common/FlatData/StoreType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StoreType : int +{ + None = 0, + GooglePlay = 1, + AppStore = 2, + OneStore = 3, + MicrosoftStore = 4, + GalaxyStore = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/StoryCondition.cs b/SCHALE.Common/FlatData/StoryCondition.cs new file mode 100644 index 0000000..4d1308d --- /dev/null +++ b/SCHALE.Common/FlatData/StoryCondition.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StoryCondition : int +{ + Open = 0, + Locked = 1, + ComingSoon = 2, + Hide = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/StoryStrategyExcel.cs b/SCHALE.Common/FlatData/StoryStrategyExcel.cs new file mode 100644 index 0000000..b3e2064 --- /dev/null +++ b/SCHALE.Common/FlatData/StoryStrategyExcel.cs @@ -0,0 +1,145 @@ +// +// 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 StoryStrategyExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StoryStrategyExcel GetRootAsStoryStrategyExcel(ByteBuffer _bb) { return GetRootAsStoryStrategyExcel(_bb, new StoryStrategyExcel()); } + public static StoryStrategyExcel GetRootAsStoryStrategyExcel(ByteBuffer _bb, StoryStrategyExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StoryStrategyExcel __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 string Name { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetNameArray() { return __p.__vector_as_array(6); } + public string Localize { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetLocalizeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetLocalizeArray() { return __p.__vector_as_array(8); } + public int StageEnterEchelonCount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BattleDuration { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WhiteListId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string StrategyMap { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetStrategyMapBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetStrategyMapArray() { return __p.__vector_as_array(16); } + public string StrategyMapBG { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStrategyMapBGBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetStrategyMapBGBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(18); } + public int MaxTurn { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } + public SCHALE.Common.FlatData.ContentType ContentType { get { int o = __p.__offset(26); 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(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string FirstClearReportEventName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFirstClearReportEventNameBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetFirstClearReportEventNameBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetFirstClearReportEventNameArray() { return __p.__vector_as_array(30); } + + public static Offset CreateStoryStrategyExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset NameOffset = default(StringOffset), + StringOffset LocalizeOffset = default(StringOffset), + int StageEnterEchelonCount = 0, + long BattleDuration = 0, + long WhiteListId = 0, + StringOffset StrategyMapOffset = default(StringOffset), + StringOffset StrategyMapBGOffset = default(StringOffset), + int MaxTurn = 0, + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment = SCHALE.Common.FlatData.StrategyEnvironment.None, + SCHALE.Common.FlatData.ContentType ContentType = SCHALE.Common.FlatData.ContentType.None, + long BGMId = 0, + StringOffset FirstClearReportEventNameOffset = default(StringOffset)) { + builder.StartTable(14); + StoryStrategyExcel.AddBGMId(builder, BGMId); + StoryStrategyExcel.AddWhiteListId(builder, WhiteListId); + StoryStrategyExcel.AddBattleDuration(builder, BattleDuration); + StoryStrategyExcel.AddId(builder, Id); + StoryStrategyExcel.AddFirstClearReportEventName(builder, FirstClearReportEventNameOffset); + StoryStrategyExcel.AddContentType(builder, ContentType); + StoryStrategyExcel.AddStrategyEnvironment(builder, StrategyEnvironment); + StoryStrategyExcel.AddStageTopography(builder, StageTopography); + StoryStrategyExcel.AddMaxTurn(builder, MaxTurn); + StoryStrategyExcel.AddStrategyMapBG(builder, StrategyMapBGOffset); + StoryStrategyExcel.AddStrategyMap(builder, StrategyMapOffset); + StoryStrategyExcel.AddStageEnterEchelonCount(builder, StageEnterEchelonCount); + StoryStrategyExcel.AddLocalize(builder, LocalizeOffset); + StoryStrategyExcel.AddName(builder, NameOffset); + return StoryStrategyExcel.EndStoryStrategyExcel(builder); + } + + public static void StartStoryStrategyExcel(FlatBufferBuilder builder) { builder.StartTable(14); } + 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 AddLocalize(FlatBufferBuilder builder, StringOffset localizeOffset) { builder.AddOffset(2, localizeOffset.Value, 0); } + public static void AddStageEnterEchelonCount(FlatBufferBuilder builder, int stageEnterEchelonCount) { builder.AddInt(3, stageEnterEchelonCount, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(4, battleDuration, 0); } + public static void AddWhiteListId(FlatBufferBuilder builder, long whiteListId) { builder.AddLong(5, whiteListId, 0); } + public static void AddStrategyMap(FlatBufferBuilder builder, StringOffset strategyMapOffset) { builder.AddOffset(6, strategyMapOffset.Value, 0); } + public static void AddStrategyMapBG(FlatBufferBuilder builder, StringOffset strategyMapBGOffset) { builder.AddOffset(7, strategyMapBGOffset.Value, 0); } + public static void AddMaxTurn(FlatBufferBuilder builder, int maxTurn) { builder.AddInt(8, maxTurn, 0); } + public static void AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(9, (int)stageTopography, 0); } + public static void AddStrategyEnvironment(FlatBufferBuilder builder, SCHALE.Common.FlatData.StrategyEnvironment strategyEnvironment) { builder.AddInt(10, (int)strategyEnvironment, 0); } + public static void AddContentType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType) { builder.AddInt(11, (int)contentType, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(12, bGMId, 0); } + public static void AddFirstClearReportEventName(FlatBufferBuilder builder, StringOffset firstClearReportEventNameOffset) { builder.AddOffset(13, firstClearReportEventNameOffset.Value, 0); } + public static Offset EndStoryStrategyExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StoryStrategyExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*Name*/, false) + && verifier.VerifyString(tablePos, 8 /*Localize*/, false) + && verifier.VerifyField(tablePos, 10 /*StageEnterEchelonCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*WhiteListId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 16 /*StrategyMap*/, false) + && verifier.VerifyString(tablePos, 18 /*StrategyMapBG*/, false) + && verifier.VerifyField(tablePos, 20 /*MaxTurn*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*StrategyEnvironment*/, 4 /*SCHALE.Common.FlatData.StrategyEnvironment*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*ContentType*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 30 /*FirstClearReportEventName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs b/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs new file mode 100644 index 0000000..2cbdce6 --- /dev/null +++ b/SCHALE.Common/FlatData/StoryStrategyExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StoryStrategyExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StoryStrategyExcelTable GetRootAsStoryStrategyExcelTable(ByteBuffer _bb) { return GetRootAsStoryStrategyExcelTable(_bb, new StoryStrategyExcelTable()); } + public static StoryStrategyExcelTable GetRootAsStoryStrategyExcelTable(ByteBuffer _bb, StoryStrategyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StoryStrategyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StoryStrategyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StoryStrategyExcel?)(new SCHALE.Common.FlatData.StoryStrategyExcel()).__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 CreateStoryStrategyExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StoryStrategyExcelTable.AddDataList(builder, DataListOffset); + return StoryStrategyExcelTable.EndStoryStrategyExcelTable(builder); + } + + public static void StartStoryStrategyExcelTable(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 EndStoryStrategyExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StoryStrategyExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StoryStrategyExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StrategyAIType.cs b/SCHALE.Common/FlatData/StrategyAIType.cs new file mode 100644 index 0000000..54dd976 --- /dev/null +++ b/SCHALE.Common/FlatData/StrategyAIType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StrategyAIType : int +{ + None = 0, + Guard = 1, + Pursuit = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/StrategyEnvironment.cs b/SCHALE.Common/FlatData/StrategyEnvironment.cs new file mode 100644 index 0000000..b7688e1 --- /dev/null +++ b/SCHALE.Common/FlatData/StrategyEnvironment.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StrategyEnvironment : int +{ + None = 0, + MapFog = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs new file mode 100644 index 0000000..a1527a8 --- /dev/null +++ b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcel.cs @@ -0,0 +1,82 @@ +// +// 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 StrategyObjectBuffDefineExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StrategyObjectBuffDefineExcel GetRootAsStrategyObjectBuffDefineExcel(ByteBuffer _bb) { return GetRootAsStrategyObjectBuffDefineExcel(_bb, new StrategyObjectBuffDefineExcel()); } + public static StrategyObjectBuffDefineExcel GetRootAsStrategyObjectBuffDefineExcel(ByteBuffer _bb, StrategyObjectBuffDefineExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StrategyObjectBuffDefineExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StrategyObjectBuffID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int StrategyObjectTurn { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string SkillGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillGroupIdBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array(8); } + public uint LocalizeCodeId { 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 static Offset CreateStrategyObjectBuffDefineExcel(FlatBufferBuilder builder, + long StrategyObjectBuffID = 0, + int StrategyObjectTurn = 0, + StringOffset SkillGroupIdOffset = default(StringOffset), + uint LocalizeCodeId = 0, + StringOffset IconPathOffset = default(StringOffset)) { + builder.StartTable(5); + StrategyObjectBuffDefineExcel.AddStrategyObjectBuffID(builder, StrategyObjectBuffID); + StrategyObjectBuffDefineExcel.AddIconPath(builder, IconPathOffset); + StrategyObjectBuffDefineExcel.AddLocalizeCodeId(builder, LocalizeCodeId); + StrategyObjectBuffDefineExcel.AddSkillGroupId(builder, SkillGroupIdOffset); + StrategyObjectBuffDefineExcel.AddStrategyObjectTurn(builder, StrategyObjectTurn); + return StrategyObjectBuffDefineExcel.EndStrategyObjectBuffDefineExcel(builder); + } + + public static void StartStrategyObjectBuffDefineExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddStrategyObjectBuffID(FlatBufferBuilder builder, long strategyObjectBuffID) { builder.AddLong(0, strategyObjectBuffID, 0); } + public static void AddStrategyObjectTurn(FlatBufferBuilder builder, int strategyObjectTurn) { builder.AddInt(1, strategyObjectTurn, 0); } + public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(2, skillGroupIdOffset.Value, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, uint localizeCodeId) { builder.AddUint(3, localizeCodeId, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(4, iconPathOffset.Value, 0); } + public static Offset EndStrategyObjectBuffDefineExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StrategyObjectBuffDefineExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StrategyObjectBuffID*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*StrategyObjectTurn*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*SkillGroupId*/, false) + && verifier.VerifyField(tablePos, 10 /*LocalizeCodeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*IconPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs new file mode 100644 index 0000000..ee34771 --- /dev/null +++ b/SCHALE.Common/FlatData/StrategyObjectBuffDefineExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StrategyObjectBuffDefineExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StrategyObjectBuffDefineExcelTable GetRootAsStrategyObjectBuffDefineExcelTable(ByteBuffer _bb) { return GetRootAsStrategyObjectBuffDefineExcelTable(_bb, new StrategyObjectBuffDefineExcelTable()); } + public static StrategyObjectBuffDefineExcelTable GetRootAsStrategyObjectBuffDefineExcelTable(ByteBuffer _bb, StrategyObjectBuffDefineExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StrategyObjectBuffDefineExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel?)(new SCHALE.Common.FlatData.StrategyObjectBuffDefineExcel()).__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 CreateStrategyObjectBuffDefineExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StrategyObjectBuffDefineExcelTable.AddDataList(builder, DataListOffset); + return StrategyObjectBuffDefineExcelTable.EndStrategyObjectBuffDefineExcelTable(builder); + } + + public static void StartStrategyObjectBuffDefineExcelTable(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 EndStrategyObjectBuffDefineExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StrategyObjectBuffDefineExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StrategyObjectBuffDefineExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StrategyObjectType.cs b/SCHALE.Common/FlatData/StrategyObjectType.cs new file mode 100644 index 0000000..74a09cb --- /dev/null +++ b/SCHALE.Common/FlatData/StrategyObjectType.cs @@ -0,0 +1,34 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum StrategyObjectType : int +{ + None = 0, + Start = 1, + Heal = 2, + Skill = 3, + StatBuff = 4, + Parcel = 5, + ParcelOneTimePerAccount = 6, + Portal = 7, + PortalOneWayEnterance = 8, + PortalOneWayExit = 9, + Observatory = 10, + Beacon = 11, + BeaconOneTime = 12, + EnemySpawn = 13, + SwitchToggle = 14, + SwitchMovableWhenToggleOff = 15, + SwitchMovableWhenToggleOn = 16, + FixedStart01 = 17, + FixedStart02 = 18, + FixedStart03 = 19, + FixedStart04 = 20, +}; + + +} diff --git a/SCHALE.Common/FlatData/StringTestExcel.cs b/SCHALE.Common/FlatData/StringTestExcel.cs new file mode 100644 index 0000000..4f3759f --- /dev/null +++ b/SCHALE.Common/FlatData/StringTestExcel.cs @@ -0,0 +1,78 @@ +// +// 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 StringTestExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StringTestExcel GetRootAsStringTestExcel(ByteBuffer _bb) { return GetRootAsStringTestExcel(_bb, new StringTestExcel()); } + public static StringTestExcel GetRootAsStringTestExcel(ByteBuffer _bb, StringTestExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StringTestExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string String(int j) { int o = __p.__offset(4); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int StringLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + public string Sentence1 { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSentence1Bytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetSentence1Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetSentence1Array() { return __p.__vector_as_array(6); } + public string Script { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetScriptBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetScriptBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetScriptArray() { return __p.__vector_as_array(8); } + + public static Offset CreateStringTestExcel(FlatBufferBuilder builder, + VectorOffset StringOffset = default(VectorOffset), + StringOffset Sentence1Offset = default(StringOffset), + StringOffset ScriptOffset = default(StringOffset)) { + builder.StartTable(3); + StringTestExcel.AddScript(builder, ScriptOffset); + StringTestExcel.AddSentence1(builder, Sentence1Offset); + StringTestExcel.AddString(builder, StringOffset); + return StringTestExcel.EndStringTestExcel(builder); + } + + public static void StartStringTestExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddString(FlatBufferBuilder builder, VectorOffset stringOffset) { builder.AddOffset(0, stringOffset.Value, 0); } + public static VectorOffset CreateStringVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateStringVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStringVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStringVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStringVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSentence1(FlatBufferBuilder builder, StringOffset sentence1Offset) { builder.AddOffset(1, sentence1Offset.Value, 0); } + public static void AddScript(FlatBufferBuilder builder, StringOffset scriptOffset) { builder.AddOffset(2, scriptOffset.Value, 0); } + public static Offset EndStringTestExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StringTestExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfStrings(tablePos, 4 /*String*/, false) + && verifier.VerifyString(tablePos, 6 /*Sentence1*/, false) + && verifier.VerifyString(tablePos, 8 /*Script*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/StringTestExcelTable.cs b/SCHALE.Common/FlatData/StringTestExcelTable.cs new file mode 100644 index 0000000..77d9795 --- /dev/null +++ b/SCHALE.Common/FlatData/StringTestExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 StringTestExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static StringTestExcelTable GetRootAsStringTestExcelTable(ByteBuffer _bb) { return GetRootAsStringTestExcelTable(_bb, new StringTestExcelTable()); } + public static StringTestExcelTable GetRootAsStringTestExcelTable(ByteBuffer _bb, StringTestExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public StringTestExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StringTestExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StringTestExcel?)(new SCHALE.Common.FlatData.StringTestExcel()).__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 CreateStringTestExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + StringTestExcelTable.AddDataList(builder, DataListOffset); + return StringTestExcelTable.EndStringTestExcelTable(builder); + } + + public static void StartStringTestExcelTable(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 EndStringTestExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class StringTestExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StringTestExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SubEventType.cs b/SCHALE.Common/FlatData/SubEventType.cs new file mode 100644 index 0000000..519e57c --- /dev/null +++ b/SCHALE.Common/FlatData/SubEventType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SubEventType : int +{ + None = 0, + SubEvent = 1, + SubEventPermanent = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/SuddenMissionContentType.cs b/SCHALE.Common/FlatData/SuddenMissionContentType.cs new file mode 100644 index 0000000..27199d3 --- /dev/null +++ b/SCHALE.Common/FlatData/SuddenMissionContentType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum SuddenMissionContentType : int +{ + OrdinaryState = 0, + CampaignNormalStage = 1, + CampaignHardStage = 2, + EventStage = 3, + WeekDungeon = 4, + Chaser = 5, + SchoolDungeon = 6, + TimeAttackDungeon = 7, + Raid = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/SystemMailExcel.cs b/SCHALE.Common/FlatData/SystemMailExcel.cs new file mode 100644 index 0000000..e8df2d8 --- /dev/null +++ b/SCHALE.Common/FlatData/SystemMailExcel.cs @@ -0,0 +1,77 @@ +// +// 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 SystemMailExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SystemMailExcel GetRootAsSystemMailExcel(ByteBuffer _bb) { return GetRootAsSystemMailExcel(_bb, new SystemMailExcel()); } + public static SystemMailExcel GetRootAsSystemMailExcel(ByteBuffer _bb, SystemMailExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SystemMailExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.MailType MailType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MailType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MailType.System; } } + public long ExpiredDay { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string Sender { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSenderBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetSenderBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetSenderArray() { return __p.__vector_as_array(8); } + public string Comment { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCommentBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetCommentBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetCommentArray() { return __p.__vector_as_array(10); } + + public static Offset CreateSystemMailExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.MailType MailType = SCHALE.Common.FlatData.MailType.System, + long ExpiredDay = 0, + StringOffset SenderOffset = default(StringOffset), + StringOffset CommentOffset = default(StringOffset)) { + builder.StartTable(4); + SystemMailExcel.AddExpiredDay(builder, ExpiredDay); + SystemMailExcel.AddComment(builder, CommentOffset); + SystemMailExcel.AddSender(builder, SenderOffset); + SystemMailExcel.AddMailType(builder, MailType); + return SystemMailExcel.EndSystemMailExcel(builder); + } + + public static void StartSystemMailExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddMailType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MailType mailType) { builder.AddInt(0, (int)mailType, 0); } + public static void AddExpiredDay(FlatBufferBuilder builder, long expiredDay) { builder.AddLong(1, expiredDay, 0); } + public static void AddSender(FlatBufferBuilder builder, StringOffset senderOffset) { builder.AddOffset(2, senderOffset.Value, 0); } + public static void AddComment(FlatBufferBuilder builder, StringOffset commentOffset) { builder.AddOffset(3, commentOffset.Value, 0); } + public static Offset EndSystemMailExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SystemMailExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*MailType*/, 4 /*SCHALE.Common.FlatData.MailType*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ExpiredDay*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*Sender*/, false) + && verifier.VerifyString(tablePos, 10 /*Comment*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/SystemMailExcelTable.cs b/SCHALE.Common/FlatData/SystemMailExcelTable.cs new file mode 100644 index 0000000..ff6029c --- /dev/null +++ b/SCHALE.Common/FlatData/SystemMailExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 SystemMailExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static SystemMailExcelTable GetRootAsSystemMailExcelTable(ByteBuffer _bb) { return GetRootAsSystemMailExcelTable(_bb, new SystemMailExcelTable()); } + public static SystemMailExcelTable GetRootAsSystemMailExcelTable(ByteBuffer _bb, SystemMailExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public SystemMailExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.SystemMailExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SystemMailExcel?)(new SCHALE.Common.FlatData.SystemMailExcel()).__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 CreateSystemMailExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + SystemMailExcelTable.AddDataList(builder, DataListOffset); + return SystemMailExcelTable.EndSystemMailExcelTable(builder); + } + + public static void StartSystemMailExcelTable(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 EndSystemMailExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class SystemMailExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SystemMailExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TBGItemEffectType.cs b/SCHALE.Common/FlatData/TBGItemEffectType.cs new file mode 100644 index 0000000..179f25a --- /dev/null +++ b/SCHALE.Common/FlatData/TBGItemEffectType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGItemEffectType : int +{ + None = 0, + PermanentContinuity = 1, + TemporaryContinuation = 2, + Immediately = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGItemType.cs b/SCHALE.Common/FlatData/TBGItemType.cs new file mode 100644 index 0000000..286c3d8 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGItemType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGItemType : int +{ + None = 0, + Dice = 1, + Heal = 2, + HealExpansion = 3, + Defence = 4, + Guide = 5, + DiceResultValue = 6, + DefenceCritical = 7, + DiceResultConfirm = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGObjectType.cs b/SCHALE.Common/FlatData/TBGObjectType.cs new file mode 100644 index 0000000..51da459 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGObjectType.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGObjectType : int +{ + None = 0, + EnemyBoss = 1, + EnemyMinion = 2, + Random = 3, + Facility = 4, + TreasureBox = 5, + Start = 6, + Portal = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGOptionSuccessType.cs b/SCHALE.Common/FlatData/TBGOptionSuccessType.cs new file mode 100644 index 0000000..38ed854 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGOptionSuccessType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGOptionSuccessType : int +{ + None = 0, + TBGItemAcquire = 1, + ItemAcquire = 2, + TBGDiceAcquire = 3, + Portal = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGPortalCondition.cs b/SCHALE.Common/FlatData/TBGPortalCondition.cs new file mode 100644 index 0000000..0200853 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGPortalCondition.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGPortalCondition : int +{ + None = 0, + ObjectAllEncounter = 1, + Round = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGProbModifyCondition.cs b/SCHALE.Common/FlatData/TBGProbModifyCondition.cs new file mode 100644 index 0000000..fbeb4d9 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGProbModifyCondition.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGProbModifyCondition : int +{ + None = 0, + AllyRevive = 1, + DicePlayFail = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGThemaType.cs b/SCHALE.Common/FlatData/TBGThemaType.cs new file mode 100644 index 0000000..70331b7 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGThemaType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGThemaType : int +{ + None = 0, + Normal = 1, + Hidden = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGTileType.cs b/SCHALE.Common/FlatData/TBGTileType.cs new file mode 100644 index 0000000..3dcf5cb --- /dev/null +++ b/SCHALE.Common/FlatData/TBGTileType.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGTileType : int +{ + None = 0, + Start = 1, + Movable = 2, + UnMovable = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/TBGVoiceCondition.cs b/SCHALE.Common/FlatData/TBGVoiceCondition.cs new file mode 100644 index 0000000..d8d63a4 --- /dev/null +++ b/SCHALE.Common/FlatData/TBGVoiceCondition.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TBGVoiceCondition : int +{ + None = 0, + DiceResultSuccess = 1, + DiceResultFailBattle = 2, + DiceResultFailRandom = 3, + EnemyDie = 4, + TreasureBoxNormal = 5, + TreasureBoxSpecial = 6, + FacilityResult = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.cs new file mode 100644 index 0000000..9a109c0 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcel.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::Google.FlatBuffers; + +public struct TacticArenaSimulatorSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticArenaSimulatorSettingExcel GetRootAsTacticArenaSimulatorSettingExcel(ByteBuffer _bb) { return GetRootAsTacticArenaSimulatorSettingExcel(_bb, new TacticArenaSimulatorSettingExcel()); } + public static TacticArenaSimulatorSettingExcel GetRootAsTacticArenaSimulatorSettingExcel(ByteBuffer _bb, TacticArenaSimulatorSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticArenaSimulatorSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Order { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Repeat { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ArenaSimulatorServer AttackerFrom { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ArenaSimulatorServer)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArenaSimulatorServer.Preset; } } + public long AttackerUserArenaGroup { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackerUserArenaRank { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackerPresetGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackerStrikerNum { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackerSpecialNum { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ArenaSimulatorServer DefenderFrom { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ArenaSimulatorServer)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArenaSimulatorServer.Preset; } } + public long DefenderUserArenaGroup { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenderUserArenaRank { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenderPresetGroupId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenderStrikerNum { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefenderSpecialNum { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTacticArenaSimulatorSettingExcel(FlatBufferBuilder builder, + long Order = 0, + long Repeat = 0, + SCHALE.Common.FlatData.ArenaSimulatorServer AttackerFrom = SCHALE.Common.FlatData.ArenaSimulatorServer.Preset, + long AttackerUserArenaGroup = 0, + long AttackerUserArenaRank = 0, + long AttackerPresetGroupId = 0, + long AttackerStrikerNum = 0, + long AttackerSpecialNum = 0, + SCHALE.Common.FlatData.ArenaSimulatorServer DefenderFrom = SCHALE.Common.FlatData.ArenaSimulatorServer.Preset, + long DefenderUserArenaGroup = 0, + long DefenderUserArenaRank = 0, + long DefenderPresetGroupId = 0, + long DefenderStrikerNum = 0, + long DefenderSpecialNum = 0, + long GroundId = 0) { + builder.StartTable(15); + TacticArenaSimulatorSettingExcel.AddGroundId(builder, GroundId); + TacticArenaSimulatorSettingExcel.AddDefenderSpecialNum(builder, DefenderSpecialNum); + TacticArenaSimulatorSettingExcel.AddDefenderStrikerNum(builder, DefenderStrikerNum); + TacticArenaSimulatorSettingExcel.AddDefenderPresetGroupId(builder, DefenderPresetGroupId); + TacticArenaSimulatorSettingExcel.AddDefenderUserArenaRank(builder, DefenderUserArenaRank); + TacticArenaSimulatorSettingExcel.AddDefenderUserArenaGroup(builder, DefenderUserArenaGroup); + TacticArenaSimulatorSettingExcel.AddAttackerSpecialNum(builder, AttackerSpecialNum); + TacticArenaSimulatorSettingExcel.AddAttackerStrikerNum(builder, AttackerStrikerNum); + TacticArenaSimulatorSettingExcel.AddAttackerPresetGroupId(builder, AttackerPresetGroupId); + TacticArenaSimulatorSettingExcel.AddAttackerUserArenaRank(builder, AttackerUserArenaRank); + TacticArenaSimulatorSettingExcel.AddAttackerUserArenaGroup(builder, AttackerUserArenaGroup); + TacticArenaSimulatorSettingExcel.AddRepeat(builder, Repeat); + TacticArenaSimulatorSettingExcel.AddOrder(builder, Order); + TacticArenaSimulatorSettingExcel.AddDefenderFrom(builder, DefenderFrom); + TacticArenaSimulatorSettingExcel.AddAttackerFrom(builder, AttackerFrom); + return TacticArenaSimulatorSettingExcel.EndTacticArenaSimulatorSettingExcel(builder); + } + + public static void StartTacticArenaSimulatorSettingExcel(FlatBufferBuilder builder) { builder.StartTable(15); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(0, order, 0); } + public static void AddRepeat(FlatBufferBuilder builder, long repeat) { builder.AddLong(1, repeat, 0); } + public static void AddAttackerFrom(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArenaSimulatorServer attackerFrom) { builder.AddInt(2, (int)attackerFrom, 0); } + public static void AddAttackerUserArenaGroup(FlatBufferBuilder builder, long attackerUserArenaGroup) { builder.AddLong(3, attackerUserArenaGroup, 0); } + public static void AddAttackerUserArenaRank(FlatBufferBuilder builder, long attackerUserArenaRank) { builder.AddLong(4, attackerUserArenaRank, 0); } + public static void AddAttackerPresetGroupId(FlatBufferBuilder builder, long attackerPresetGroupId) { builder.AddLong(5, attackerPresetGroupId, 0); } + public static void AddAttackerStrikerNum(FlatBufferBuilder builder, long attackerStrikerNum) { builder.AddLong(6, attackerStrikerNum, 0); } + public static void AddAttackerSpecialNum(FlatBufferBuilder builder, long attackerSpecialNum) { builder.AddLong(7, attackerSpecialNum, 0); } + public static void AddDefenderFrom(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArenaSimulatorServer defenderFrom) { builder.AddInt(8, (int)defenderFrom, 0); } + public static void AddDefenderUserArenaGroup(FlatBufferBuilder builder, long defenderUserArenaGroup) { builder.AddLong(9, defenderUserArenaGroup, 0); } + public static void AddDefenderUserArenaRank(FlatBufferBuilder builder, long defenderUserArenaRank) { builder.AddLong(10, defenderUserArenaRank, 0); } + public static void AddDefenderPresetGroupId(FlatBufferBuilder builder, long defenderPresetGroupId) { builder.AddLong(11, defenderPresetGroupId, 0); } + public static void AddDefenderStrikerNum(FlatBufferBuilder builder, long defenderStrikerNum) { builder.AddLong(12, defenderStrikerNum, 0); } + public static void AddDefenderSpecialNum(FlatBufferBuilder builder, long defenderSpecialNum) { builder.AddLong(13, defenderSpecialNum, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(14, groundId, 0); } + public static Offset EndTacticArenaSimulatorSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticArenaSimulatorSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Repeat*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*AttackerFrom*/, 4 /*SCHALE.Common.FlatData.ArenaSimulatorServer*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*AttackerUserArenaGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AttackerUserArenaRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*AttackerPresetGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*AttackerStrikerNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*AttackerSpecialNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*DefenderFrom*/, 4 /*SCHALE.Common.FlatData.ArenaSimulatorServer*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*DefenderUserArenaGroup*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*DefenderUserArenaRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 26 /*DefenderPresetGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*DefenderStrikerNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*DefenderSpecialNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs new file mode 100644 index 0000000..ae668b6 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticArenaSimulatorSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticArenaSimulatorSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticArenaSimulatorSettingExcelTable GetRootAsTacticArenaSimulatorSettingExcelTable(ByteBuffer _bb) { return GetRootAsTacticArenaSimulatorSettingExcelTable(_bb, new TacticArenaSimulatorSettingExcelTable()); } + public static TacticArenaSimulatorSettingExcelTable GetRootAsTacticArenaSimulatorSettingExcelTable(ByteBuffer _bb, TacticArenaSimulatorSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticArenaSimulatorSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticArenaSimulatorSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticArenaSimulatorSettingExcel?)(new SCHALE.Common.FlatData.TacticArenaSimulatorSettingExcel()).__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 CreateTacticArenaSimulatorSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticArenaSimulatorSettingExcelTable.AddDataList(builder, DataListOffset); + return TacticArenaSimulatorSettingExcelTable.EndTacticArenaSimulatorSettingExcelTable(builder); + } + + public static void StartTacticArenaSimulatorSettingExcelTable(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 EndTacticArenaSimulatorSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticArenaSimulatorSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticArenaSimulatorSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs new file mode 100644 index 0000000..2365a8a --- /dev/null +++ b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcel.cs @@ -0,0 +1,132 @@ +// +// 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 TacticDamageSimulatorSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticDamageSimulatorSettingExcel GetRootAsTacticDamageSimulatorSettingExcel(ByteBuffer _bb) { return GetRootAsTacticDamageSimulatorSettingExcel(_bb, new TacticDamageSimulatorSettingExcel()); } + public static TacticDamageSimulatorSettingExcel GetRootAsTacticDamageSimulatorSettingExcel(ByteBuffer _bb, TacticDamageSimulatorSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticDamageSimulatorSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int Order { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int Repeat { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TestPreset { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TestBattleTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StrikerSquard { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SpecialSquard { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ReplaceCharacterCostRegen { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int ReplaceCostRegenValue { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool UseAutoSkill { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideStreetAdaptation { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideOutdoorAdaptation { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat OverrideIndoorAdaptation { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public bool ApplyOverrideAdaptation { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long GroundId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedCharacter(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int FixedCharacterLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFixedCharacterBytes() { return __p.__vector_as_span(32, 8); } +#else + public ArraySegment? GetFixedCharacterBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public long[] GetFixedCharacterArray() { return __p.__vector_as_array(32); } + + public static Offset CreateTacticDamageSimulatorSettingExcel(FlatBufferBuilder builder, + int Order = 0, + int Repeat = 0, + long TestPreset = 0, + long TestBattleTime = 0, + long StrikerSquard = 0, + long SpecialSquard = 0, + bool ReplaceCharacterCostRegen = false, + int ReplaceCostRegenValue = 0, + bool UseAutoSkill = false, + SCHALE.Common.FlatData.TerrainAdaptationStat OverrideStreetAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + SCHALE.Common.FlatData.TerrainAdaptationStat OverrideOutdoorAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + SCHALE.Common.FlatData.TerrainAdaptationStat OverrideIndoorAdaptation = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + bool ApplyOverrideAdaptation = false, + long GroundId = 0, + VectorOffset FixedCharacterOffset = default(VectorOffset)) { + builder.StartTable(15); + TacticDamageSimulatorSettingExcel.AddGroundId(builder, GroundId); + TacticDamageSimulatorSettingExcel.AddSpecialSquard(builder, SpecialSquard); + TacticDamageSimulatorSettingExcel.AddStrikerSquard(builder, StrikerSquard); + TacticDamageSimulatorSettingExcel.AddTestBattleTime(builder, TestBattleTime); + TacticDamageSimulatorSettingExcel.AddTestPreset(builder, TestPreset); + TacticDamageSimulatorSettingExcel.AddFixedCharacter(builder, FixedCharacterOffset); + TacticDamageSimulatorSettingExcel.AddOverrideIndoorAdaptation(builder, OverrideIndoorAdaptation); + TacticDamageSimulatorSettingExcel.AddOverrideOutdoorAdaptation(builder, OverrideOutdoorAdaptation); + TacticDamageSimulatorSettingExcel.AddOverrideStreetAdaptation(builder, OverrideStreetAdaptation); + TacticDamageSimulatorSettingExcel.AddReplaceCostRegenValue(builder, ReplaceCostRegenValue); + TacticDamageSimulatorSettingExcel.AddRepeat(builder, Repeat); + TacticDamageSimulatorSettingExcel.AddOrder(builder, Order); + TacticDamageSimulatorSettingExcel.AddApplyOverrideAdaptation(builder, ApplyOverrideAdaptation); + TacticDamageSimulatorSettingExcel.AddUseAutoSkill(builder, UseAutoSkill); + TacticDamageSimulatorSettingExcel.AddReplaceCharacterCostRegen(builder, ReplaceCharacterCostRegen); + return TacticDamageSimulatorSettingExcel.EndTacticDamageSimulatorSettingExcel(builder); + } + + public static void StartTacticDamageSimulatorSettingExcel(FlatBufferBuilder builder) { builder.StartTable(15); } + public static void AddOrder(FlatBufferBuilder builder, int order) { builder.AddInt(0, order, 0); } + public static void AddRepeat(FlatBufferBuilder builder, int repeat) { builder.AddInt(1, repeat, 0); } + public static void AddTestPreset(FlatBufferBuilder builder, long testPreset) { builder.AddLong(2, testPreset, 0); } + public static void AddTestBattleTime(FlatBufferBuilder builder, long testBattleTime) { builder.AddLong(3, testBattleTime, 0); } + public static void AddStrikerSquard(FlatBufferBuilder builder, long strikerSquard) { builder.AddLong(4, strikerSquard, 0); } + public static void AddSpecialSquard(FlatBufferBuilder builder, long specialSquard) { builder.AddLong(5, specialSquard, 0); } + public static void AddReplaceCharacterCostRegen(FlatBufferBuilder builder, bool replaceCharacterCostRegen) { builder.AddBool(6, replaceCharacterCostRegen, false); } + public static void AddReplaceCostRegenValue(FlatBufferBuilder builder, int replaceCostRegenValue) { builder.AddInt(7, replaceCostRegenValue, 0); } + public static void AddUseAutoSkill(FlatBufferBuilder builder, bool useAutoSkill) { builder.AddBool(8, useAutoSkill, false); } + public static void AddOverrideStreetAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat overrideStreetAdaptation) { builder.AddInt(9, (int)overrideStreetAdaptation, 0); } + public static void AddOverrideOutdoorAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat overrideOutdoorAdaptation) { builder.AddInt(10, (int)overrideOutdoorAdaptation, 0); } + public static void AddOverrideIndoorAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat overrideIndoorAdaptation) { builder.AddInt(11, (int)overrideIndoorAdaptation, 0); } + public static void AddApplyOverrideAdaptation(FlatBufferBuilder builder, bool applyOverrideAdaptation) { builder.AddBool(12, applyOverrideAdaptation, false); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(13, groundId, 0); } + public static void AddFixedCharacter(FlatBufferBuilder builder, VectorOffset fixedCharacterOffset) { builder.AddOffset(14, fixedCharacterOffset.Value, 0); } + public static VectorOffset CreateFixedCharacterVector(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 CreateFixedCharacterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFixedCharacterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFixedCharacterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFixedCharacterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndTacticDamageSimulatorSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticDamageSimulatorSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Order*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Repeat*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*TestPreset*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*TestBattleTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*StrikerSquard*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*SpecialSquard*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*ReplaceCharacterCostRegen*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*ReplaceCostRegenValue*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*UseAutoSkill*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 22 /*OverrideStreetAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*OverrideOutdoorAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*OverrideIndoorAdaptation*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*ApplyOverrideAdaptation*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 32 /*FixedCharacter*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs new file mode 100644 index 0000000..9117b97 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticDamageSimulatorSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticDamageSimulatorSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticDamageSimulatorSettingExcelTable GetRootAsTacticDamageSimulatorSettingExcelTable(ByteBuffer _bb) { return GetRootAsTacticDamageSimulatorSettingExcelTable(_bb, new TacticDamageSimulatorSettingExcelTable()); } + public static TacticDamageSimulatorSettingExcelTable GetRootAsTacticDamageSimulatorSettingExcelTable(ByteBuffer _bb, TacticDamageSimulatorSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticDamageSimulatorSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticDamageSimulatorSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticDamageSimulatorSettingExcel?)(new SCHALE.Common.FlatData.TacticDamageSimulatorSettingExcel()).__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 CreateTacticDamageSimulatorSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticDamageSimulatorSettingExcelTable.AddDataList(builder, DataListOffset); + return TacticDamageSimulatorSettingExcelTable.EndTacticDamageSimulatorSettingExcelTable(builder); + } + + public static void StartTacticDamageSimulatorSettingExcelTable(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 EndTacticDamageSimulatorSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticDamageSimulatorSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticDamageSimulatorSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs new file mode 100644 index 0000000..34b5963 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcel.cs @@ -0,0 +1,66 @@ +// +// 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 TacticEntityEffectFilterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticEntityEffectFilterExcel GetRootAsTacticEntityEffectFilterExcel(ByteBuffer _bb) { return GetRootAsTacticEntityEffectFilterExcel(_bb, new TacticEntityEffectFilterExcel()); } + public static TacticEntityEffectFilterExcel GetRootAsTacticEntityEffectFilterExcel(ByteBuffer _bb, TacticEntityEffectFilterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticEntityEffectFilterExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public string TargetEffectName { get { int o = __p.__offset(4); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTargetEffectNameBytes() { return __p.__vector_as_span(4, 1); } +#else + public ArraySegment? GetTargetEffectNameBytes() { return __p.__vector_as_arraysegment(4); } +#endif + public byte[] GetTargetEffectNameArray() { return __p.__vector_as_array(4); } + public bool ShowEffectToVehicle { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowEffectToBoss { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateTacticEntityEffectFilterExcel(FlatBufferBuilder builder, + StringOffset TargetEffectNameOffset = default(StringOffset), + bool ShowEffectToVehicle = false, + bool ShowEffectToBoss = false) { + builder.StartTable(3); + TacticEntityEffectFilterExcel.AddTargetEffectName(builder, TargetEffectNameOffset); + TacticEntityEffectFilterExcel.AddShowEffectToBoss(builder, ShowEffectToBoss); + TacticEntityEffectFilterExcel.AddShowEffectToVehicle(builder, ShowEffectToVehicle); + return TacticEntityEffectFilterExcel.EndTacticEntityEffectFilterExcel(builder); + } + + public static void StartTacticEntityEffectFilterExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddTargetEffectName(FlatBufferBuilder builder, StringOffset targetEffectNameOffset) { builder.AddOffset(0, targetEffectNameOffset.Value, 0); } + public static void AddShowEffectToVehicle(FlatBufferBuilder builder, bool showEffectToVehicle) { builder.AddBool(1, showEffectToVehicle, false); } + public static void AddShowEffectToBoss(FlatBufferBuilder builder, bool showEffectToBoss) { builder.AddBool(2, showEffectToBoss, false); } + public static Offset EndTacticEntityEffectFilterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticEntityEffectFilterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyString(tablePos, 4 /*TargetEffectName*/, false) + && verifier.VerifyField(tablePos, 6 /*ShowEffectToVehicle*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*ShowEffectToBoss*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs new file mode 100644 index 0000000..ed7b4b2 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticEntityEffectFilterExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticEntityEffectFilterExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticEntityEffectFilterExcelTable GetRootAsTacticEntityEffectFilterExcelTable(ByteBuffer _bb) { return GetRootAsTacticEntityEffectFilterExcelTable(_bb, new TacticEntityEffectFilterExcelTable()); } + public static TacticEntityEffectFilterExcelTable GetRootAsTacticEntityEffectFilterExcelTable(ByteBuffer _bb, TacticEntityEffectFilterExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticEntityEffectFilterExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticEntityEffectFilterExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityEffectFilterExcel?)(new SCHALE.Common.FlatData.TacticEntityEffectFilterExcel()).__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 CreateTacticEntityEffectFilterExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticEntityEffectFilterExcelTable.AddDataList(builder, DataListOffset); + return TacticEntityEffectFilterExcelTable.EndTacticEntityEffectFilterExcelTable(builder); + } + + public static void StartTacticEntityEffectFilterExcelTable(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 EndTacticEntityEffectFilterExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticEntityEffectFilterExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticEntityEffectFilterExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticEntityType.cs b/SCHALE.Common/FlatData/TacticEntityType.cs new file mode 100644 index 0000000..0e00b1a --- /dev/null +++ b/SCHALE.Common/FlatData/TacticEntityType.cs @@ -0,0 +1,25 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticEntityType : int +{ + None = 0, + Student = 1, + Minion = 2, + Elite = 4, + Champion = 8, + Boss = 16, + Obstacle = 32, + Servant = 64, + Vehicle = 128, + Summoned = 256, + Hallucination = 512, + DestructibleProjectile = 1024, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticEnvironment.cs b/SCHALE.Common/FlatData/TacticEnvironment.cs new file mode 100644 index 0000000..ba7a249 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticEnvironment.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticEnvironment : int +{ + None = 0, + WarFog = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticRange.cs b/SCHALE.Common/FlatData/TacticRange.cs new file mode 100644 index 0000000..e8f232c --- /dev/null +++ b/SCHALE.Common/FlatData/TacticRange.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticRange : int +{ + Back = 0, + Front = 1, + Middle = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticRole.cs b/SCHALE.Common/FlatData/TacticRole.cs new file mode 100644 index 0000000..ff40d5d --- /dev/null +++ b/SCHALE.Common/FlatData/TacticRole.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticRole : int +{ + None = 0, + DamageDealer = 1, + Tanker = 2, + Supporter = 3, + Healer = 4, + Vehicle = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs new file mode 100644 index 0000000..d3e132e --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs @@ -0,0 +1,65 @@ +// +// 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 TacticSimulatorSettingExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticSimulatorSettingExcel GetRootAsTacticSimulatorSettingExcel(ByteBuffer _bb) { return GetRootAsTacticSimulatorSettingExcel(_bb, new TacticSimulatorSettingExcel()); } + public static TacticSimulatorSettingExcel GetRootAsTacticSimulatorSettingExcel(ByteBuffer _bb, TacticSimulatorSettingExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticSimulatorSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroundId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GetExp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GetStarGrade { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Equipment { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTacticSimulatorSettingExcel(FlatBufferBuilder builder, + long GroundId = 0, + long GetExp = 0, + long GetStarGrade = 0, + long Equipment = 0) { + builder.StartTable(4); + TacticSimulatorSettingExcel.AddEquipment(builder, Equipment); + TacticSimulatorSettingExcel.AddGetStarGrade(builder, GetStarGrade); + TacticSimulatorSettingExcel.AddGetExp(builder, GetExp); + TacticSimulatorSettingExcel.AddGroundId(builder, GroundId); + return TacticSimulatorSettingExcel.EndTacticSimulatorSettingExcel(builder); + } + + public static void StartTacticSimulatorSettingExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(0, groundId, 0); } + public static void AddGetExp(FlatBufferBuilder builder, long getExp) { builder.AddLong(1, getExp, 0); } + public static void AddGetStarGrade(FlatBufferBuilder builder, long getStarGrade) { builder.AddLong(2, getStarGrade, 0); } + public static void AddEquipment(FlatBufferBuilder builder, long equipment) { builder.AddLong(3, equipment, 0); } + public static Offset EndTacticSimulatorSettingExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticSimulatorSettingExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*GetExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*GetStarGrade*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*Equipment*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs b/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs new file mode 100644 index 0000000..c74db44 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSimulatorSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticSimulatorSettingExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticSimulatorSettingExcelTable GetRootAsTacticSimulatorSettingExcelTable(ByteBuffer _bb) { return GetRootAsTacticSimulatorSettingExcelTable(_bb, new TacticSimulatorSettingExcelTable()); } + public static TacticSimulatorSettingExcelTable GetRootAsTacticSimulatorSettingExcelTable(ByteBuffer _bb, TacticSimulatorSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticSimulatorSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticSimulatorSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticSimulatorSettingExcel?)(new SCHALE.Common.FlatData.TacticSimulatorSettingExcel()).__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 CreateTacticSimulatorSettingExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticSimulatorSettingExcelTable.AddDataList(builder, DataListOffset); + return TacticSimulatorSettingExcelTable.EndTacticSimulatorSettingExcelTable(builder); + } + + public static void StartTacticSimulatorSettingExcelTable(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 EndTacticSimulatorSettingExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticSimulatorSettingExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticSimulatorSettingExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticSkillUse.cs b/SCHALE.Common/FlatData/TacticSkillUse.cs new file mode 100644 index 0000000..7c6388f --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSkillUse.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticSkillUse : int +{ + None = 0, + Auto = 1, + Manual = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticSkipExcel.cs b/SCHALE.Common/FlatData/TacticSkipExcel.cs new file mode 100644 index 0000000..20ec0ef --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSkipExcel.cs @@ -0,0 +1,55 @@ +// +// 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 TacticSkipExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticSkipExcel GetRootAsTacticSkipExcel(ByteBuffer _bb) { return GetRootAsTacticSkipExcel(_bb, new TacticSkipExcel()); } + public static TacticSkipExcel GetRootAsTacticSkipExcel(ByteBuffer _bb, TacticSkipExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticSkipExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public int LevelDiff { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long HPResult { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTacticSkipExcel(FlatBufferBuilder builder, + int LevelDiff = 0, + long HPResult = 0) { + builder.StartTable(2); + TacticSkipExcel.AddHPResult(builder, HPResult); + TacticSkipExcel.AddLevelDiff(builder, LevelDiff); + return TacticSkipExcel.EndTacticSkipExcel(builder); + } + + public static void StartTacticSkipExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddLevelDiff(FlatBufferBuilder builder, int levelDiff) { builder.AddInt(0, levelDiff, 0); } + public static void AddHPResult(FlatBufferBuilder builder, long hPResult) { builder.AddLong(1, hPResult, 0); } + public static Offset EndTacticSkipExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticSkipExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*LevelDiff*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*HPResult*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticSkipExcelTable.cs b/SCHALE.Common/FlatData/TacticSkipExcelTable.cs new file mode 100644 index 0000000..1c59335 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSkipExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticSkipExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticSkipExcelTable GetRootAsTacticSkipExcelTable(ByteBuffer _bb) { return GetRootAsTacticSkipExcelTable(_bb, new TacticSkipExcelTable()); } + public static TacticSkipExcelTable GetRootAsTacticSkipExcelTable(ByteBuffer _bb, TacticSkipExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticSkipExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticSkipExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticSkipExcel?)(new SCHALE.Common.FlatData.TacticSkipExcel()).__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 CreateTacticSkipExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticSkipExcelTable.AddDataList(builder, DataListOffset); + return TacticSkipExcelTable.EndTacticSkipExcelTable(builder); + } + + public static void StartTacticSkipExcelTable(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 EndTacticSkipExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticSkipExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticSkipExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticSpeed.cs b/SCHALE.Common/FlatData/TacticSpeed.cs new file mode 100644 index 0000000..c493bba --- /dev/null +++ b/SCHALE.Common/FlatData/TacticSpeed.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TacticSpeed : int +{ + None = 0, + Slow = 1, + Normal = 2, + Fast = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs new file mode 100644 index 0000000..89c0f02 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcel.cs @@ -0,0 +1,75 @@ +// +// 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 TacticTimeAttackSimulatorConfigExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticTimeAttackSimulatorConfigExcel GetRootAsTacticTimeAttackSimulatorConfigExcel(ByteBuffer _bb) { return GetRootAsTacticTimeAttackSimulatorConfigExcel(_bb, new TacticTimeAttackSimulatorConfigExcel()); } + public static TacticTimeAttackSimulatorConfigExcel GetRootAsTacticTimeAttackSimulatorConfigExcel(ByteBuffer _bb, TacticTimeAttackSimulatorConfigExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticTimeAttackSimulatorConfigExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long Order { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long Repeat { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PresetGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackStrikerNum { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackSpecialNum { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GeasId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder, + long Order = 0, + long Repeat = 0, + long PresetGroupId = 0, + long AttackStrikerNum = 0, + long AttackSpecialNum = 0, + long GeasId = 0) { + builder.StartTable(6); + TacticTimeAttackSimulatorConfigExcel.AddGeasId(builder, GeasId); + TacticTimeAttackSimulatorConfigExcel.AddAttackSpecialNum(builder, AttackSpecialNum); + TacticTimeAttackSimulatorConfigExcel.AddAttackStrikerNum(builder, AttackStrikerNum); + TacticTimeAttackSimulatorConfigExcel.AddPresetGroupId(builder, PresetGroupId); + TacticTimeAttackSimulatorConfigExcel.AddRepeat(builder, Repeat); + TacticTimeAttackSimulatorConfigExcel.AddOrder(builder, Order); + return TacticTimeAttackSimulatorConfigExcel.EndTacticTimeAttackSimulatorConfigExcel(builder); + } + + public static void StartTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder) { builder.StartTable(6); } + public static void AddOrder(FlatBufferBuilder builder, long order) { builder.AddLong(0, order, 0); } + public static void AddRepeat(FlatBufferBuilder builder, long repeat) { builder.AddLong(1, repeat, 0); } + public static void AddPresetGroupId(FlatBufferBuilder builder, long presetGroupId) { builder.AddLong(2, presetGroupId, 0); } + public static void AddAttackStrikerNum(FlatBufferBuilder builder, long attackStrikerNum) { builder.AddLong(3, attackStrikerNum, 0); } + public static void AddAttackSpecialNum(FlatBufferBuilder builder, long attackSpecialNum) { builder.AddLong(4, attackSpecialNum, 0); } + public static void AddGeasId(FlatBufferBuilder builder, long geasId) { builder.AddLong(5, geasId, 0); } + public static Offset EndTacticTimeAttackSimulatorConfigExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticTimeAttackSimulatorConfigExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Order*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*Repeat*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*PresetGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*AttackStrikerNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AttackSpecialNum*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*GeasId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs new file mode 100644 index 0000000..1567cf0 --- /dev/null +++ b/SCHALE.Common/FlatData/TacticTimeAttackSimulatorConfigExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticTimeAttackSimulatorConfigExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticTimeAttackSimulatorConfigExcelTable GetRootAsTacticTimeAttackSimulatorConfigExcelTable(ByteBuffer _bb) { return GetRootAsTacticTimeAttackSimulatorConfigExcelTable(_bb, new TacticTimeAttackSimulatorConfigExcelTable()); } + public static TacticTimeAttackSimulatorConfigExcelTable GetRootAsTacticTimeAttackSimulatorConfigExcelTable(ByteBuffer _bb, TacticTimeAttackSimulatorConfigExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticTimeAttackSimulatorConfigExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticTimeAttackSimulatorConfigExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticTimeAttackSimulatorConfigExcel?)(new SCHALE.Common.FlatData.TacticTimeAttackSimulatorConfigExcel()).__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 CreateTacticTimeAttackSimulatorConfigExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticTimeAttackSimulatorConfigExcelTable.AddDataList(builder, DataListOffset); + return TacticTimeAttackSimulatorConfigExcelTable.EndTacticTimeAttackSimulatorConfigExcelTable(builder); + } + + public static void StartTacticTimeAttackSimulatorConfigExcelTable(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 EndTacticTimeAttackSimulatorConfigExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticTimeAttackSimulatorConfigExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticTimeAttackSimulatorConfigExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs b/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs new file mode 100644 index 0000000..075c35c --- /dev/null +++ b/SCHALE.Common/FlatData/TacticalSupportSystemExcel.cs @@ -0,0 +1,222 @@ +// +// 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 TacticalSupportSystemExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticalSupportSystemExcel GetRootAsTacticalSupportSystemExcel(ByteBuffer _bb) { return GetRootAsTacticalSupportSystemExcel(_bb, new TacticalSupportSystemExcel()); } + public static TacticalSupportSystemExcel GetRootAsTacticalSupportSystemExcel(ByteBuffer _bb, TacticalSupportSystemExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticalSupportSystemExcel __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 SummonedTime { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DefaultPersonalityId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool CanTargeting { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanCover { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string ObstacleUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetObstacleUniqueNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetObstacleUniqueNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetObstacleUniqueNameArray() { return __p.__vector_as_array(14); } + public long ObstacleCoverRange { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string SummonSkilllGroupId { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSummonSkilllGroupIdBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetSummonSkilllGroupIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetSummonSkilllGroupIdArray() { return __p.__vector_as_array(18); } + public long CrashObstacleOBBWidth { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CrashObstacleOBBHeight { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsTSSBlockedNodeCheck { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int NumberOfUses { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public float InventoryOffsetX { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float InventoryOffsetY { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float InventoryOffsetZ { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long InteractionChar { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterInteractionStartDelay { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string GetOnStartEffectPath { get { int o = __p.__offset(38); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGetOnStartEffectPathBytes() { return __p.__vector_as_span(38, 1); } +#else + public ArraySegment? GetGetOnStartEffectPathBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public byte[] GetGetOnStartEffectPathArray() { return __p.__vector_as_array(38); } + public string GetOnEndEffectPath { get { int o = __p.__offset(40); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetGetOnEndEffectPathBytes() { return __p.__vector_as_span(40, 1); } +#else + public ArraySegment? GetGetOnEndEffectPathBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public byte[] GetGetOnEndEffectPathArray() { return __p.__vector_as_array(40); } + public long SummonerCharacterId { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int InteractionFrame { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long TSAInteractionAddDuration { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string InteractionStudentExSkillGroupId { get { int o = __p.__offset(48); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInteractionStudentExSkillGroupIdBytes() { return __p.__vector_as_span(48, 1); } +#else + public ArraySegment? GetInteractionStudentExSkillGroupIdBytes() { return __p.__vector_as_arraysegment(48); } +#endif + public byte[] GetInteractionStudentExSkillGroupIdArray() { return __p.__vector_as_array(48); } + public string InteractionSkillCardTexture { get { int o = __p.__offset(50); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInteractionSkillCardTextureBytes() { return __p.__vector_as_span(50, 1); } +#else + public ArraySegment? GetInteractionSkillCardTextureBytes() { return __p.__vector_as_arraysegment(50); } +#endif + public byte[] GetInteractionSkillCardTextureArray() { return __p.__vector_as_array(50); } + public string InteractionSkillSpine { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetInteractionSkillSpineBytes() { return __p.__vector_as_span(52, 1); } +#else + public ArraySegment? GetInteractionSkillSpineBytes() { return __p.__vector_as_arraysegment(52); } +#endif + public byte[] GetInteractionSkillSpineArray() { return __p.__vector_as_array(52); } + public int RetreatFrame { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DestroyFrame { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + + public static Offset CreateTacticalSupportSystemExcel(FlatBufferBuilder builder, + long Id = 0, + long SummonedTime = 0, + long DefaultPersonalityId = 0, + bool CanTargeting = false, + bool CanCover = false, + StringOffset ObstacleUniqueNameOffset = default(StringOffset), + long ObstacleCoverRange = 0, + StringOffset SummonSkilllGroupIdOffset = default(StringOffset), + long CrashObstacleOBBWidth = 0, + long CrashObstacleOBBHeight = 0, + bool IsTSSBlockedNodeCheck = false, + int NumberOfUses = 0, + float InventoryOffsetX = 0.0f, + float InventoryOffsetY = 0.0f, + float InventoryOffsetZ = 0.0f, + long InteractionChar = 0, + long CharacterInteractionStartDelay = 0, + StringOffset GetOnStartEffectPathOffset = default(StringOffset), + StringOffset GetOnEndEffectPathOffset = default(StringOffset), + long SummonerCharacterId = 0, + int InteractionFrame = 0, + long TSAInteractionAddDuration = 0, + StringOffset InteractionStudentExSkillGroupIdOffset = default(StringOffset), + StringOffset InteractionSkillCardTextureOffset = default(StringOffset), + StringOffset InteractionSkillSpineOffset = default(StringOffset), + int RetreatFrame = 0, + int DestroyFrame = 0) { + builder.StartTable(27); + TacticalSupportSystemExcel.AddTSAInteractionAddDuration(builder, TSAInteractionAddDuration); + TacticalSupportSystemExcel.AddSummonerCharacterId(builder, SummonerCharacterId); + TacticalSupportSystemExcel.AddCharacterInteractionStartDelay(builder, CharacterInteractionStartDelay); + TacticalSupportSystemExcel.AddInteractionChar(builder, InteractionChar); + TacticalSupportSystemExcel.AddCrashObstacleOBBHeight(builder, CrashObstacleOBBHeight); + TacticalSupportSystemExcel.AddCrashObstacleOBBWidth(builder, CrashObstacleOBBWidth); + TacticalSupportSystemExcel.AddObstacleCoverRange(builder, ObstacleCoverRange); + TacticalSupportSystemExcel.AddDefaultPersonalityId(builder, DefaultPersonalityId); + TacticalSupportSystemExcel.AddSummonedTime(builder, SummonedTime); + TacticalSupportSystemExcel.AddId(builder, Id); + TacticalSupportSystemExcel.AddDestroyFrame(builder, DestroyFrame); + TacticalSupportSystemExcel.AddRetreatFrame(builder, RetreatFrame); + TacticalSupportSystemExcel.AddInteractionSkillSpine(builder, InteractionSkillSpineOffset); + TacticalSupportSystemExcel.AddInteractionSkillCardTexture(builder, InteractionSkillCardTextureOffset); + TacticalSupportSystemExcel.AddInteractionStudentExSkillGroupId(builder, InteractionStudentExSkillGroupIdOffset); + TacticalSupportSystemExcel.AddInteractionFrame(builder, InteractionFrame); + TacticalSupportSystemExcel.AddGetOnEndEffectPath(builder, GetOnEndEffectPathOffset); + TacticalSupportSystemExcel.AddGetOnStartEffectPath(builder, GetOnStartEffectPathOffset); + TacticalSupportSystemExcel.AddInventoryOffsetZ(builder, InventoryOffsetZ); + TacticalSupportSystemExcel.AddInventoryOffsetY(builder, InventoryOffsetY); + TacticalSupportSystemExcel.AddInventoryOffsetX(builder, InventoryOffsetX); + TacticalSupportSystemExcel.AddNumberOfUses(builder, NumberOfUses); + TacticalSupportSystemExcel.AddSummonSkilllGroupId(builder, SummonSkilllGroupIdOffset); + TacticalSupportSystemExcel.AddObstacleUniqueName(builder, ObstacleUniqueNameOffset); + TacticalSupportSystemExcel.AddIsTSSBlockedNodeCheck(builder, IsTSSBlockedNodeCheck); + TacticalSupportSystemExcel.AddCanCover(builder, CanCover); + TacticalSupportSystemExcel.AddCanTargeting(builder, CanTargeting); + return TacticalSupportSystemExcel.EndTacticalSupportSystemExcel(builder); + } + + public static void StartTacticalSupportSystemExcel(FlatBufferBuilder builder) { builder.StartTable(27); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddSummonedTime(FlatBufferBuilder builder, long summonedTime) { builder.AddLong(1, summonedTime, 0); } + public static void AddDefaultPersonalityId(FlatBufferBuilder builder, long defaultPersonalityId) { builder.AddLong(2, defaultPersonalityId, 0); } + public static void AddCanTargeting(FlatBufferBuilder builder, bool canTargeting) { builder.AddBool(3, canTargeting, false); } + public static void AddCanCover(FlatBufferBuilder builder, bool canCover) { builder.AddBool(4, canCover, false); } + public static void AddObstacleUniqueName(FlatBufferBuilder builder, StringOffset obstacleUniqueNameOffset) { builder.AddOffset(5, obstacleUniqueNameOffset.Value, 0); } + public static void AddObstacleCoverRange(FlatBufferBuilder builder, long obstacleCoverRange) { builder.AddLong(6, obstacleCoverRange, 0); } + public static void AddSummonSkilllGroupId(FlatBufferBuilder builder, StringOffset summonSkilllGroupIdOffset) { builder.AddOffset(7, summonSkilllGroupIdOffset.Value, 0); } + public static void AddCrashObstacleOBBWidth(FlatBufferBuilder builder, long crashObstacleOBBWidth) { builder.AddLong(8, crashObstacleOBBWidth, 0); } + public static void AddCrashObstacleOBBHeight(FlatBufferBuilder builder, long crashObstacleOBBHeight) { builder.AddLong(9, crashObstacleOBBHeight, 0); } + public static void AddIsTSSBlockedNodeCheck(FlatBufferBuilder builder, bool isTSSBlockedNodeCheck) { builder.AddBool(10, isTSSBlockedNodeCheck, false); } + public static void AddNumberOfUses(FlatBufferBuilder builder, int numberOfUses) { builder.AddInt(11, numberOfUses, 0); } + public static void AddInventoryOffsetX(FlatBufferBuilder builder, float inventoryOffsetX) { builder.AddFloat(12, inventoryOffsetX, 0.0f); } + public static void AddInventoryOffsetY(FlatBufferBuilder builder, float inventoryOffsetY) { builder.AddFloat(13, inventoryOffsetY, 0.0f); } + public static void AddInventoryOffsetZ(FlatBufferBuilder builder, float inventoryOffsetZ) { builder.AddFloat(14, inventoryOffsetZ, 0.0f); } + public static void AddInteractionChar(FlatBufferBuilder builder, long interactionChar) { builder.AddLong(15, interactionChar, 0); } + public static void AddCharacterInteractionStartDelay(FlatBufferBuilder builder, long characterInteractionStartDelay) { builder.AddLong(16, characterInteractionStartDelay, 0); } + public static void AddGetOnStartEffectPath(FlatBufferBuilder builder, StringOffset getOnStartEffectPathOffset) { builder.AddOffset(17, getOnStartEffectPathOffset.Value, 0); } + public static void AddGetOnEndEffectPath(FlatBufferBuilder builder, StringOffset getOnEndEffectPathOffset) { builder.AddOffset(18, getOnEndEffectPathOffset.Value, 0); } + public static void AddSummonerCharacterId(FlatBufferBuilder builder, long summonerCharacterId) { builder.AddLong(19, summonerCharacterId, 0); } + public static void AddInteractionFrame(FlatBufferBuilder builder, int interactionFrame) { builder.AddInt(20, interactionFrame, 0); } + public static void AddTSAInteractionAddDuration(FlatBufferBuilder builder, long tSAInteractionAddDuration) { builder.AddLong(21, tSAInteractionAddDuration, 0); } + public static void AddInteractionStudentExSkillGroupId(FlatBufferBuilder builder, StringOffset interactionStudentExSkillGroupIdOffset) { builder.AddOffset(22, interactionStudentExSkillGroupIdOffset.Value, 0); } + public static void AddInteractionSkillCardTexture(FlatBufferBuilder builder, StringOffset interactionSkillCardTextureOffset) { builder.AddOffset(23, interactionSkillCardTextureOffset.Value, 0); } + public static void AddInteractionSkillSpine(FlatBufferBuilder builder, StringOffset interactionSkillSpineOffset) { builder.AddOffset(24, interactionSkillSpineOffset.Value, 0); } + public static void AddRetreatFrame(FlatBufferBuilder builder, int retreatFrame) { builder.AddInt(25, retreatFrame, 0); } + public static void AddDestroyFrame(FlatBufferBuilder builder, int destroyFrame) { builder.AddInt(26, destroyFrame, 0); } + public static Offset EndTacticalSupportSystemExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticalSupportSystemExcelVerify +{ + 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 /*SummonedTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*DefaultPersonalityId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*CanTargeting*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*CanCover*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 14 /*ObstacleUniqueName*/, false) + && verifier.VerifyField(tablePos, 16 /*ObstacleCoverRange*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 18 /*SummonSkilllGroupId*/, false) + && verifier.VerifyField(tablePos, 20 /*CrashObstacleOBBWidth*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*CrashObstacleOBBHeight*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 24 /*IsTSSBlockedNodeCheck*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 26 /*NumberOfUses*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*InventoryOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 30 /*InventoryOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*InventoryOffsetZ*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 34 /*InteractionChar*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*CharacterInteractionStartDelay*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 38 /*GetOnStartEffectPath*/, false) + && verifier.VerifyString(tablePos, 40 /*GetOnEndEffectPath*/, false) + && verifier.VerifyField(tablePos, 42 /*SummonerCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 44 /*InteractionFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*TSAInteractionAddDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 48 /*InteractionStudentExSkillGroupId*/, false) + && verifier.VerifyString(tablePos, 50 /*InteractionSkillCardTexture*/, false) + && verifier.VerifyString(tablePos, 52 /*InteractionSkillSpine*/, false) + && verifier.VerifyField(tablePos, 54 /*RetreatFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*DestroyFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs b/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs new file mode 100644 index 0000000..470b4cc --- /dev/null +++ b/SCHALE.Common/FlatData/TacticalSupportSystemExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TacticalSupportSystemExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TacticalSupportSystemExcelTable GetRootAsTacticalSupportSystemExcelTable(ByteBuffer _bb) { return GetRootAsTacticalSupportSystemExcelTable(_bb, new TacticalSupportSystemExcelTable()); } + public static TacticalSupportSystemExcelTable GetRootAsTacticalSupportSystemExcelTable(ByteBuffer _bb, TacticalSupportSystemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TacticalSupportSystemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TacticalSupportSystemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TacticalSupportSystemExcel?)(new SCHALE.Common.FlatData.TacticalSupportSystemExcel()).__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 CreateTacticalSupportSystemExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TacticalSupportSystemExcelTable.AddDataList(builder, DataListOffset); + return TacticalSupportSystemExcelTable.EndTacticalSupportSystemExcelTable(builder); + } + + public static void StartTacticalSupportSystemExcelTable(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 EndTacticalSupportSystemExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TacticalSupportSystemExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TacticalSupportSystemExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/Tag.cs b/SCHALE.Common/FlatData/Tag.cs new file mode 100644 index 0000000..5c55409 --- /dev/null +++ b/SCHALE.Common/FlatData/Tag.cs @@ -0,0 +1,3017 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Tag : int +{ + A = 0, + a = 1, + B = 2, + b = 3, + C = 4, + c = 5, + D = 6, + d = 7, + E = 8, + e = 9, + F = 10, + f = 11, + G = 12, + g = 13, + H = 14, + h = 15, + I = 16, + i = 17, + J = 18, + j = 19, + K = 20, + k = 21, + L = 22, + l = 23, + M = 24, + m = 25, + N = 26, + n = 27, + O = 28, + o = 29, + P = 30, + p = 31, + Q = 32, + q = 33, + R = 34, + r = 35, + S = 36, + s = 37, + T = 38, + t = 39, + U = 40, + u = 41, + V = 42, + v = 43, + W = 44, + w = 45, + X = 46, + x = 47, + Y = 48, + y = 49, + Z = 50, + z = 51, + aA = 52, + aa = 53, + aB = 54, + ab = 55, + aC = 56, + ac = 57, + aD = 58, + ad = 59, + aE = 60, + ae = 61, + aF = 62, + af = 63, + aG = 64, + ag = 65, + aH = 66, + ah = 67, + aI = 68, + ai = 69, + aJ = 70, + aj = 71, + aK = 72, + ak = 73, + aL = 74, + al = 75, + aM = 76, + am = 77, + aN = 78, + an = 79, + aO = 80, + ao = 81, + aP = 82, + ap = 83, + aQ = 84, + aq = 85, + aR = 86, + ar = 87, + aS = 88, + @as = 89, + aT = 90, + at = 91, + aU = 92, + au = 93, + aV = 94, + av = 95, + aW = 96, + aw = 97, + aX = 98, + ax = 99, + aY = 100, + ay = 101, + aZ = 102, + az = 103, + BA = 104, + Ba = 105, + BB = 106, + Bb = 107, + BC = 108, + Bc = 109, + BD = 110, + Bd = 111, + BE = 112, + Be = 113, + BF = 114, + Bf = 115, + BG = 116, + Bg = 117, + BH = 118, + Bh = 119, + BI = 120, + Bi = 121, + BJ = 122, + Bj = 123, + BK = 124, + Bk = 125, + BL = 126, + Bl = 127, + BM = 128, + Bm = 129, + BN = 130, + Bn = 131, + BO = 132, + Bo = 133, + BP = 134, + Bp = 135, + BQ = 136, + Bq = 137, + BR = 138, + Br = 139, + BS = 140, + Bs = 141, + BT = 142, + Bt = 143, + BU = 144, + Bu = 145, + BV = 146, + Bv = 147, + BW = 148, + Bw = 149, + BX = 150, + Bx = 151, + BY = 152, + By = 153, + BZ = 154, + Bz = 155, + bA = 156, + ba = 157, + bB = 158, + bb = 159, + bC = 160, + bc = 161, + bD = 162, + bd = 163, + bE = 164, + be = 165, + bF = 166, + bf = 167, + bG = 168, + bg = 169, + bH = 170, + bh = 171, + bI = 172, + bi = 173, + bJ = 174, + bj = 175, + bK = 176, + bk = 177, + bL = 178, + bl = 179, + bM = 180, + bm = 181, + bN = 182, + bn = 183, + bO = 184, + bo = 185, + bP = 186, + bp = 187, + bQ = 188, + bq = 189, + bR = 190, + br = 191, + bS = 192, + bs = 193, + bT = 194, + bt = 195, + bU = 196, + bu = 197, + bV = 198, + bv = 199, + bW = 200, + bw = 201, + bX = 202, + bx = 203, + bY = 204, + by = 205, + bZ = 206, + bz = 207, + CA = 208, + Ca = 209, + CB = 210, + Cb = 211, + CC = 212, + Cc = 213, + CD = 214, + Cd = 215, + CE = 216, + Ce = 217, + CF = 218, + Cf = 219, + CG = 220, + Cg = 221, + CH = 222, + Ch = 223, + CI = 224, + Ci = 225, + CJ = 226, + Cj = 227, + CK = 228, + Ck = 229, + CL = 230, + Cl = 231, + CM = 232, + Cm = 233, + CN = 234, + Cn = 235, + CO = 236, + Co = 237, + CP = 238, + Cp = 239, + CQ = 240, + Cq = 241, + CR = 242, + Cr = 243, + CS = 244, + Cs = 245, + CT = 246, + Ct = 247, + CU = 248, + Cu = 249, + CV = 250, + Cv = 251, + CW = 252, + Cw = 253, + CX = 254, + Cx = 255, + CY = 256, + Cy = 257, + CZ = 258, + Cz = 259, + cA = 260, + ca = 261, + cB = 262, + cb = 263, + cC = 264, + cc = 265, + cD = 266, + cd = 267, + cE = 268, + ce = 269, + cF = 270, + cf = 271, + cG = 272, + cg = 273, + cH = 274, + ch = 275, + cI = 276, + ci = 277, + cJ = 278, + cj = 279, + cK = 280, + ck = 281, + cL = 282, + cl = 283, + cM = 284, + cm = 285, + cN = 286, + cn = 287, + cO = 288, + co = 289, + cP = 290, + cp = 291, + cQ = 292, + cq = 293, + cR = 294, + cr = 295, + cS = 296, + cs = 297, + cT = 298, + ct = 299, + cU = 300, + cu = 301, + cV = 302, + cv = 303, + cW = 304, + cw = 305, + cX = 306, + cx = 307, + cY = 308, + cy = 309, + cZ = 310, + cz = 311, + DA = 312, + Da = 313, + DB = 314, + Db = 315, + DC = 316, + Dc = 317, + DD = 318, + Dd = 319, + DE = 320, + De = 321, + DF = 322, + Df = 323, + DG = 324, + Dg = 325, + DH = 326, + Dh = 327, + DI = 328, + Di = 329, + DJ = 330, + Dj = 331, + DK = 332, + Dk = 333, + DL = 334, + Dl = 335, + DM = 336, + Dm = 337, + DN = 338, + Dn = 339, + DO = 340, + Do = 341, + DP = 342, + Dp = 343, + DQ = 344, + Dq = 345, + DR = 346, + Dr = 347, + DS = 348, + Ds = 349, + DT = 350, + Dt = 351, + DU = 352, + Du = 353, + DV = 354, + Dv = 355, + DW = 356, + Dw = 357, + DX = 358, + Dx = 359, + DY = 360, + Dy = 361, + DZ = 362, + Dz = 363, + dA = 364, + da = 365, + dB = 366, + db = 367, + dC = 368, + dc = 369, + dD = 370, + dd = 371, + dE = 372, + de = 373, + dF = 374, + df = 375, + dG = 376, + dg = 377, + dH = 378, + dh = 379, + dI = 380, + di = 381, + dJ = 382, + dj = 383, + dK = 384, + dk = 385, + dL = 386, + dl = 387, + dM = 388, + dm = 389, + dN = 390, + dn = 391, + dO = 392, + @do = 393, + dP = 394, + dp = 395, + dQ = 396, + dq = 397, + dR = 398, + dr = 399, + dS = 400, + ds = 401, + dT = 402, + dt = 403, + dU = 404, + du = 405, + dV = 406, + dv = 407, + dW = 408, + dw = 409, + dX = 410, + dx = 411, + dY = 412, + dy = 413, + dZ = 414, + dz = 415, + EA = 416, + Ea = 417, + EB = 418, + Eb = 419, + EC = 420, + Ec = 421, + ED = 422, + Ed = 423, + EE = 424, + Ee = 425, + EF = 426, + Ef = 427, + EG = 428, + Eg = 429, + EH = 430, + Eh = 431, + EI = 432, + Ei = 433, + EJ = 434, + Ej = 435, + EK = 436, + Ek = 437, + EL = 438, + El = 439, + EM = 440, + Em = 441, + EN = 442, + En = 443, + EO = 444, + Eo = 445, + EP = 446, + Ep = 447, + EQ = 448, + Eq = 449, + ER = 450, + Er = 451, + ES = 452, + Es = 453, + ET = 454, + Et = 455, + EU = 456, + Eu = 457, + EV = 458, + Ev = 459, + EW = 460, + Ew = 461, + EX = 462, + Ex = 463, + EY = 464, + Ey = 465, + EZ = 466, + Ez = 467, + eA = 468, + ea = 469, + eB = 470, + eb = 471, + eC = 472, + ec = 473, + eD = 474, + ed = 475, + eE = 476, + ee = 477, + eF = 478, + ef = 479, + eG = 480, + eg = 481, + eH = 482, + eh = 483, + eI = 484, + ei = 485, + eJ = 486, + ej = 487, + eK = 488, + ek = 489, + eL = 490, + el = 491, + eM = 492, + em = 493, + eN = 494, + en = 495, + eO = 496, + eo = 497, + eP = 498, + ep = 499, + eQ = 500, + eq = 501, + eR = 502, + er = 503, + eS = 504, + es = 505, + eT = 506, + et = 507, + eU = 508, + eu = 509, + eV = 510, + ev = 511, + eW = 512, + ew = 513, + eX = 514, + ex = 515, + eY = 516, + ey = 517, + eZ = 518, + ez = 519, + FA = 520, + Fa = 521, + FB = 522, + Fb = 523, + FC = 524, + Fc = 525, + FD = 526, + Fd = 527, + FE = 528, + Fe = 529, + FF = 530, + Ff = 531, + FG = 532, + Fg = 533, + FH = 534, + Fh = 535, + FI = 536, + Fi = 537, + FJ = 538, + Fj = 539, + FK = 540, + Fk = 541, + FL = 542, + Fl = 543, + FM = 544, + Fm = 545, + FN = 546, + Fn = 547, + FO = 548, + Fo = 549, + FP = 550, + Fp = 551, + FQ = 552, + Fq = 553, + FR = 554, + Fr = 555, + FS = 556, + Fs = 557, + FT = 558, + Ft = 559, + FU = 560, + Fu = 561, + FV = 562, + Fv = 563, + FW = 564, + Fw = 565, + FX = 566, + Fx = 567, + FY = 568, + Fy = 569, + FZ = 570, + Fz = 571, + fA = 572, + fa = 573, + fB = 574, + fb = 575, + fC = 576, + fc = 577, + fD = 578, + fd = 579, + fE = 580, + fe = 581, + fF = 582, + ff = 583, + fG = 584, + fg = 585, + fH = 586, + fh = 587, + fI = 588, + fi = 589, + fJ = 590, + fj = 591, + fK = 592, + fk = 593, + fL = 594, + fl = 595, + fM = 596, + fm = 597, + fN = 598, + fn = 599, + fO = 600, + fo = 601, + fP = 602, + fp = 603, + fQ = 604, + fq = 605, + fR = 606, + fr = 607, + fS = 608, + fs = 609, + fT = 610, + ft = 611, + fU = 612, + fu = 613, + fV = 614, + fv = 615, + fW = 616, + fw = 617, + fX = 618, + fx = 619, + fY = 620, + fy = 621, + fZ = 622, + fz = 623, + GA = 624, + Ga = 625, + GB = 626, + Gb = 627, + GC = 628, + Gc = 629, + GD = 630, + Gd = 631, + GE = 632, + Ge = 633, + GF = 634, + Gf = 635, + GG = 636, + Gg = 637, + GH = 638, + Gh = 639, + GI = 640, + Gi = 641, + GJ = 642, + Gj = 643, + GK = 644, + Gk = 645, + GL = 646, + Gl = 647, + GM = 648, + Gm = 649, + GN = 650, + Gn = 651, + GO = 652, + Go = 653, + GP = 654, + Gp = 655, + GQ = 656, + Gq = 657, + GR = 658, + Gr = 659, + GS = 660, + Gs = 661, + GT = 662, + Gt = 663, + GU = 664, + Gu = 665, + GV = 666, + Gv = 667, + GW = 668, + Gw = 669, + GX = 670, + Gx = 671, + GY = 672, + Gy = 673, + GZ = 674, + Gz = 675, + gA = 676, + ga = 677, + gB = 678, + gb = 679, + gC = 680, + gc = 681, + gD = 682, + gd = 683, + gE = 684, + ge = 685, + gF = 686, + gf = 687, + gG = 688, + gg = 689, + gH = 690, + gh = 691, + gI = 692, + gi = 693, + gJ = 694, + gj = 695, + gK = 696, + gk = 697, + gL = 698, + gl = 699, + gM = 700, + gm = 701, + gN = 702, + gn = 703, + gO = 704, + go = 705, + gP = 706, + gp = 707, + gQ = 708, + gq = 709, + gR = 710, + gr = 711, + gS = 712, + gs = 713, + gT = 714, + gt = 715, + gU = 716, + gu = 717, + gV = 718, + gv = 719, + gW = 720, + gw = 721, + gX = 722, + gx = 723, + gY = 724, + gy = 725, + gZ = 726, + gz = 727, + HA = 728, + Ha = 729, + HB = 730, + Hb = 731, + HC = 732, + Hc = 733, + HD = 734, + Hd = 735, + HE = 736, + He = 737, + HF = 738, + Hf = 739, + HG = 740, + Hg = 741, + HH = 742, + Hh = 743, + HI = 744, + Hi = 745, + HJ = 746, + Hj = 747, + HK = 748, + Hk = 749, + HL = 750, + Hl = 751, + HM = 752, + Hm = 753, + HN = 754, + Hn = 755, + HO = 756, + Ho = 757, + HP = 758, + Hp = 759, + HQ = 760, + Hq = 761, + HR = 762, + Hr = 763, + HS = 764, + Hs = 765, + HT = 766, + Ht = 767, + HU = 768, + Hu = 769, + HV = 770, + Hv = 771, + HW = 772, + Hw = 773, + HX = 774, + Hx = 775, + HY = 776, + Hy = 777, + HZ = 778, + Hz = 779, + hA = 780, + ha = 781, + hB = 782, + hb = 783, + hC = 784, + hc = 785, + hD = 786, + hd = 787, + hE = 788, + he = 789, + hF = 790, + hf = 791, + hG = 792, + hg = 793, + hH = 794, + hh = 795, + hI = 796, + hi = 797, + hJ = 798, + hj = 799, + hK = 800, + hk = 801, + hL = 802, + hl = 803, + hM = 804, + hm = 805, + hN = 806, + hn = 807, + hO = 808, + ho = 809, + hP = 810, + hp = 811, + hQ = 812, + hq = 813, + hR = 814, + hr = 815, + hS = 816, + hs = 817, + hT = 818, + ht = 819, + hU = 820, + hu = 821, + hV = 822, + hv = 823, + hW = 824, + hw = 825, + hX = 826, + hx = 827, + hY = 828, + hy = 829, + hZ = 830, + hz = 831, + IA = 832, + Ia = 833, + IB = 834, + Ib = 835, + IC = 836, + Ic = 837, + ID = 838, + Id = 839, + IE = 840, + Ie = 841, + IF = 842, + If = 843, + IG = 844, + Ig = 845, + IH = 846, + Ih = 847, + II = 848, + Ii = 849, + IJ = 850, + Ij = 851, + IK = 852, + Ik = 853, + IL = 854, + Il = 855, + IM = 856, + Im = 857, + IN = 858, + In = 859, + IO = 860, + Io = 861, + IP = 862, + Ip = 863, + IQ = 864, + Iq = 865, + IR = 866, + Ir = 867, + IS = 868, + Is = 869, + IT = 870, + It = 871, + IU = 872, + Iu = 873, + IV = 874, + Iv = 875, + IW = 876, + Iw = 877, + IX = 878, + Ix = 879, + IY = 880, + Iy = 881, + IZ = 882, + Iz = 883, + iA = 884, + ia = 885, + iB = 886, + ib = 887, + iC = 888, + ic = 889, + iD = 890, + id = 891, + iE = 892, + ie = 893, + iF = 894, + @if = 895, + iG = 896, + ig = 897, + iH = 898, + ih = 899, + iI = 900, + ii = 901, + iJ = 902, + ij = 903, + iK = 904, + ik = 905, + iL = 906, + il = 907, + iM = 908, + im = 909, + iN = 910, + @in = 911, + iO = 912, + io = 913, + iP = 914, + ip = 915, + iQ = 916, + iq = 917, + iR = 918, + ir = 919, + iS = 920, + @is = 921, + iT = 922, + it = 923, + iU = 924, + iu = 925, + iV = 926, + iv = 927, + iW = 928, + iw = 929, + iX = 930, + ix = 931, + iY = 932, + iy = 933, + iZ = 934, + iz = 935, + JA = 936, + Ja = 937, + JB = 938, + Jb = 939, + JC = 940, + Jc = 941, + JD = 942, + Jd = 943, + JE = 944, + Je = 945, + JF = 946, + Jf = 947, + JG = 948, + Jg = 949, + JH = 950, + Jh = 951, + JI = 952, + Ji = 953, + JJ = 954, + Jj = 955, + JK = 956, + Jk = 957, + JL = 958, + Jl = 959, + JM = 960, + Jm = 961, + JN = 962, + Jn = 963, + JO = 964, + Jo = 965, + JP = 966, + Jp = 967, + JQ = 968, + Jq = 969, + JR = 970, + Jr = 971, + JS = 972, + Js = 973, + JT = 974, + Jt = 975, + JU = 976, + Ju = 977, + JV = 978, + Jv = 979, + JW = 980, + Jw = 981, + JX = 982, + Jx = 983, + JY = 984, + Jy = 985, + JZ = 986, + Jz = 987, + jA = 988, + ja = 989, + jB = 990, + jb = 991, + jC = 992, + jc = 993, + jD = 994, + jd = 995, + jE = 996, + je = 997, + jF = 998, + jf = 999, + jG = 1000, + jg = 1001, + jH = 1002, + jh = 1003, + jI = 1004, + ji = 1005, + jJ = 1006, + jj = 1007, + jK = 1008, + jk = 1009, + jL = 1010, + jl = 1011, + jM = 1012, + jm = 1013, + jN = 1014, + jn = 1015, + jO = 1016, + jo = 1017, + jP = 1018, + jp = 1019, + jQ = 1020, + jq = 1021, + jR = 1022, + jr = 1023, + jS = 1024, + js = 1025, + jT = 1026, + jt = 1027, + jU = 1028, + ju = 1029, + jV = 1030, + jv = 1031, + jW = 1032, + jw = 1033, + jX = 1034, + jx = 1035, + jY = 1036, + jy = 1037, + jZ = 1038, + jz = 1039, + KA = 1040, + Ka = 1041, + KB = 1042, + Kb = 1043, + KC = 1044, + Kc = 1045, + KD = 1046, + Kd = 1047, + KE = 1048, + Ke = 1049, + KF = 1050, + Kf = 1051, + KG = 1052, + Kg = 1053, + KH = 1054, + Kh = 1055, + KI = 1056, + Ki = 1057, + KJ = 1058, + Kj = 1059, + KK = 1060, + Kk = 1061, + KL = 1062, + Kl = 1063, + KM = 1064, + Km = 1065, + KN = 1066, + Kn = 1067, + KO = 1068, + Ko = 1069, + KP = 1070, + Kp = 1071, + KQ = 1072, + Kq = 1073, + KR = 1074, + Kr = 1075, + KS = 1076, + Ks = 1077, + KT = 1078, + Kt = 1079, + KU = 1080, + Ku = 1081, + KV = 1082, + Kv = 1083, + KW = 1084, + Kw = 1085, + KX = 1086, + Kx = 1087, + KY = 1088, + Ky = 1089, + KZ = 1090, + Kz = 1091, + kA = 1092, + ka = 1093, + kB = 1094, + kb = 1095, + kC = 1096, + kc = 1097, + kD = 1098, + kd = 1099, + kE = 1100, + ke = 1101, + kF = 1102, + kf = 1103, + kG = 1104, + kg = 1105, + kH = 1106, + kh = 1107, + kI = 1108, + ki = 1109, + kJ = 1110, + kj = 1111, + kK = 1112, + kk = 1113, + kL = 1114, + kl = 1115, + kM = 1116, + km = 1117, + kN = 1118, + kn = 1119, + kO = 1120, + ko = 1121, + kP = 1122, + kp = 1123, + kQ = 1124, + kq = 1125, + kR = 1126, + kr = 1127, + kS = 1128, + ks = 1129, + kT = 1130, + kt = 1131, + kU = 1132, + ku = 1133, + kV = 1134, + kv = 1135, + kW = 1136, + kw = 1137, + kX = 1138, + kx = 1139, + kY = 1140, + ky = 1141, + kZ = 1142, + kz = 1143, + LA = 1144, + La = 1145, + LB = 1146, + Lb = 1147, + LC = 1148, + Lc = 1149, + LD = 1150, + Ld = 1151, + LE = 1152, + Le = 1153, + LF = 1154, + Lf = 1155, + LG = 1156, + Lg = 1157, + LH = 1158, + Lh = 1159, + LI = 1160, + Li = 1161, + LJ = 1162, + Lj = 1163, + LK = 1164, + Lk = 1165, + LL = 1166, + Ll = 1167, + LM = 1168, + Lm = 1169, + LN = 1170, + Ln = 1171, + LO = 1172, + Lo = 1173, + LP = 1174, + Lp = 1175, + LQ = 1176, + Lq = 1177, + LR = 1178, + Lr = 1179, + LS = 1180, + Ls = 1181, + LT = 1182, + Lt = 1183, + LU = 1184, + Lu = 1185, + LV = 1186, + Lv = 1187, + LW = 1188, + Lw = 1189, + LX = 1190, + Lx = 1191, + LY = 1192, + Ly = 1193, + LZ = 1194, + Lz = 1195, + lA = 1196, + la = 1197, + lB = 1198, + lb = 1199, + lC = 1200, + lc = 1201, + lD = 1202, + ld = 1203, + lE = 1204, + le = 1205, + lF = 1206, + lf = 1207, + lG = 1208, + lg = 1209, + lH = 1210, + lh = 1211, + lI = 1212, + li = 1213, + lJ = 1214, + lj = 1215, + lK = 1216, + lk = 1217, + lL = 1218, + ll = 1219, + lM = 1220, + lm = 1221, + lN = 1222, + ln = 1223, + lO = 1224, + lo = 1225, + lP = 1226, + lp = 1227, + lQ = 1228, + lq = 1229, + lR = 1230, + lr = 1231, + lS = 1232, + ls = 1233, + lT = 1234, + lt = 1235, + lU = 1236, + lu = 1237, + lV = 1238, + lv = 1239, + lW = 1240, + lw = 1241, + lX = 1242, + lx = 1243, + lY = 1244, + ly = 1245, + lZ = 1246, + lz = 1247, + MA = 1248, + Ma = 1249, + MB = 1250, + Mb = 1251, + MC = 1252, + Mc = 1253, + MD = 1254, + Md = 1255, + ME = 1256, + Me = 1257, + MF = 1258, + Mf = 1259, + MG = 1260, + Mg = 1261, + MH = 1262, + Mh = 1263, + MI = 1264, + Mi = 1265, + MJ = 1266, + Mj = 1267, + MK = 1268, + Mk = 1269, + ML = 1270, + Ml = 1271, + MM = 1272, + Mm = 1273, + MN = 1274, + Mn = 1275, + MO = 1276, + Mo = 1277, + MP = 1278, + Mp = 1279, + MQ = 1280, + Mq = 1281, + MR = 1282, + Mr = 1283, + MS = 1284, + Ms = 1285, + MT = 1286, + Mt = 1287, + MU = 1288, + Mu = 1289, + MV = 1290, + Mv = 1291, + MW = 1292, + Mw = 1293, + MX = 1294, + Mx = 1295, + MY = 1296, + My = 1297, + MZ = 1298, + Mz = 1299, + mA = 1300, + ma = 1301, + mB = 1302, + mb = 1303, + mC = 1304, + mc = 1305, + mD = 1306, + md = 1307, + mE = 1308, + me = 1309, + mF = 1310, + mf = 1311, + mG = 1312, + mg = 1313, + mH = 1314, + mh = 1315, + mI = 1316, + mi = 1317, + mJ = 1318, + mj = 1319, + mK = 1320, + mk = 1321, + mL = 1322, + ml = 1323, + mM = 1324, + mm = 1325, + mN = 1326, + mn = 1327, + mO = 1328, + mo = 1329, + mP = 1330, + mp = 1331, + mQ = 1332, + mq = 1333, + mR = 1334, + mr = 1335, + mS = 1336, + ms = 1337, + mT = 1338, + mt = 1339, + mU = 1340, + mu = 1341, + mV = 1342, + mv = 1343, + mW = 1344, + mw = 1345, + mX = 1346, + mx = 1347, + mY = 1348, + my = 1349, + mZ = 1350, + mz = 1351, + NA = 1352, + Na = 1353, + NB = 1354, + Nb = 1355, + NC = 1356, + Nc = 1357, + ND = 1358, + Nd = 1359, + NE = 1360, + Ne = 1361, + NF = 1362, + Nf = 1363, + NG = 1364, + Ng = 1365, + NH = 1366, + Nh = 1367, + NI = 1368, + Ni = 1369, + NJ = 1370, + Nj = 1371, + NK = 1372, + Nk = 1373, + NL = 1374, + Nl = 1375, + NM = 1376, + Nm = 1377, + NN = 1378, + Nn = 1379, + NO = 1380, + No = 1381, + NP = 1382, + Np = 1383, + NQ = 1384, + Nq = 1385, + NR = 1386, + Nr = 1387, + NS = 1388, + Ns = 1389, + NT = 1390, + Nt = 1391, + NU = 1392, + Nu = 1393, + NV = 1394, + Nv = 1395, + NW = 1396, + Nw = 1397, + NX = 1398, + Nx = 1399, + NY = 1400, + Ny = 1401, + NZ = 1402, + Nz = 1403, + nA = 1404, + na = 1405, + nB = 1406, + nb = 1407, + nC = 1408, + nc = 1409, + nD = 1410, + nd = 1411, + nE = 1412, + ne = 1413, + nF = 1414, + nf = 1415, + nG = 1416, + ng = 1417, + nH = 1418, + nh = 1419, + nI = 1420, + ni = 1421, + nJ = 1422, + nj = 1423, + nK = 1424, + nk = 1425, + nL = 1426, + nl = 1427, + nM = 1428, + nm = 1429, + nN = 1430, + nn = 1431, + nO = 1432, + no = 1433, + nP = 1434, + np = 1435, + nQ = 1436, + nq = 1437, + nR = 1438, + nr = 1439, + nS = 1440, + ns = 1441, + nT = 1442, + nt = 1443, + nU = 1444, + nu = 1445, + nV = 1446, + nv = 1447, + nW = 1448, + nw = 1449, + nX = 1450, + nx = 1451, + nY = 1452, + ny = 1453, + nZ = 1454, + nz = 1455, + OA = 1456, + Oa = 1457, + OB = 1458, + Ob = 1459, + OC = 1460, + Oc = 1461, + OD = 1462, + Od = 1463, + OE = 1464, + Oe = 1465, + OF = 1466, + Of = 1467, + OG = 1468, + Og = 1469, + OH = 1470, + Oh = 1471, + OI = 1472, + Oi = 1473, + OJ = 1474, + Oj = 1475, + OK = 1476, + Ok = 1477, + OL = 1478, + Ol = 1479, + OM = 1480, + Om = 1481, + ON = 1482, + On = 1483, + OO = 1484, + Oo = 1485, + OP = 1486, + Op = 1487, + OQ = 1488, + Oq = 1489, + OR = 1490, + Or = 1491, + OS = 1492, + Os = 1493, + OT = 1494, + Ot = 1495, + OU = 1496, + Ou = 1497, + OV = 1498, + Ov = 1499, + OW = 1500, + Ow = 1501, + OX = 1502, + Ox = 1503, + OY = 1504, + Oy = 1505, + OZ = 1506, + Oz = 1507, + oA = 1508, + oa = 1509, + oB = 1510, + ob = 1511, + oC = 1512, + oc = 1513, + oD = 1514, + od = 1515, + oE = 1516, + oe = 1517, + oF = 1518, + of = 1519, + oG = 1520, + og = 1521, + oH = 1522, + oh = 1523, + oI = 1524, + oi = 1525, + oJ = 1526, + oj = 1527, + oK = 1528, + ok = 1529, + oL = 1530, + ol = 1531, + oM = 1532, + om = 1533, + oN = 1534, + on = 1535, + oO = 1536, + oo = 1537, + oP = 1538, + op = 1539, + oQ = 1540, + oq = 1541, + oR = 1542, + or = 1543, + oS = 1544, + os = 1545, + oT = 1546, + ot = 1547, + oU = 1548, + ou = 1549, + oV = 1550, + ov = 1551, + oW = 1552, + ow = 1553, + oX = 1554, + ox = 1555, + oY = 1556, + oy = 1557, + oZ = 1558, + oz = 1559, + PA = 1560, + Pa = 1561, + PB = 1562, + Pb = 1563, + PC = 1564, + Pc = 1565, + PD = 1566, + Pd = 1567, + PE = 1568, + Pe = 1569, + PF = 1570, + Pf = 1571, + PG = 1572, + Pg = 1573, + PH = 1574, + Ph = 1575, + PI = 1576, + Pi = 1577, + PJ = 1578, + Pj = 1579, + PK = 1580, + Pk = 1581, + PL = 1582, + Pl = 1583, + PM = 1584, + Pm = 1585, + PN = 1586, + Pn = 1587, + PO = 1588, + Po = 1589, + PP = 1590, + Pp = 1591, + PQ = 1592, + Pq = 1593, + PR = 1594, + Pr = 1595, + PS = 1596, + Ps = 1597, + PT = 1598, + Pt = 1599, + PU = 1600, + Pu = 1601, + PV = 1602, + Pv = 1603, + PW = 1604, + Pw = 1605, + PX = 1606, + Px = 1607, + PY = 1608, + Py = 1609, + PZ = 1610, + Pz = 1611, + pA = 1612, + pa = 1613, + pB = 1614, + pb = 1615, + pC = 1616, + pc = 1617, + pD = 1618, + pd = 1619, + pE = 1620, + pe = 1621, + pF = 1622, + pf = 1623, + pG = 1624, + pg = 1625, + pH = 1626, + ph = 1627, + pI = 1628, + pi = 1629, + pJ = 1630, + pj = 1631, + pK = 1632, + pk = 1633, + pL = 1634, + pl = 1635, + pM = 1636, + pm = 1637, + pN = 1638, + pn = 1639, + pO = 1640, + po = 1641, + pP = 1642, + pp = 1643, + pQ = 1644, + pq = 1645, + pR = 1646, + pr = 1647, + pS = 1648, + ps = 1649, + pT = 1650, + pt = 1651, + pU = 1652, + pu = 1653, + pV = 1654, + pv = 1655, + pW = 1656, + pw = 1657, + pX = 1658, + px = 1659, + pY = 1660, + py = 1661, + pZ = 1662, + pz = 1663, + QA = 1664, + Qa = 1665, + QB = 1666, + Qb = 1667, + QC = 1668, + Qc = 1669, + QD = 1670, + Qd = 1671, + QE = 1672, + Qe = 1673, + QF = 1674, + Qf = 1675, + QG = 1676, + Qg = 1677, + QH = 1678, + Qh = 1679, + QI = 1680, + Qi = 1681, + QJ = 1682, + Qj = 1683, + QK = 1684, + Qk = 1685, + QL = 1686, + Ql = 1687, + QM = 1688, + Qm = 1689, + QN = 1690, + Qn = 1691, + QO = 1692, + Qo = 1693, + QP = 1694, + Qp = 1695, + QQ = 1696, + Qq = 1697, + QR = 1698, + Qr = 1699, + QS = 1700, + Qs = 1701, + QT = 1702, + Qt = 1703, + QU = 1704, + Qu = 1705, + QV = 1706, + Qv = 1707, + QW = 1708, + Qw = 1709, + QX = 1710, + Qx = 1711, + QY = 1712, + Qy = 1713, + QZ = 1714, + Qz = 1715, + qA = 1716, + qa = 1717, + qB = 1718, + qb = 1719, + qC = 1720, + qc = 1721, + qD = 1722, + qd = 1723, + qE = 1724, + qe = 1725, + qF = 1726, + qf = 1727, + qG = 1728, + qg = 1729, + qH = 1730, + qh = 1731, + qI = 1732, + qi = 1733, + qJ = 1734, + qj = 1735, + qK = 1736, + qk = 1737, + qL = 1738, + ql = 1739, + qM = 1740, + qm = 1741, + qN = 1742, + qn = 1743, + qO = 1744, + qo = 1745, + qP = 1746, + qp = 1747, + qQ = 1748, + qq = 1749, + qR = 1750, + qr = 1751, + qS = 1752, + qs = 1753, + qT = 1754, + qt = 1755, + qU = 1756, + qu = 1757, + qV = 1758, + qv = 1759, + qW = 1760, + qw = 1761, + qX = 1762, + qx = 1763, + qY = 1764, + qy = 1765, + qZ = 1766, + qz = 1767, + RA = 1768, + Ra = 1769, + RB = 1770, + Rb = 1771, + RC = 1772, + Rc = 1773, + RD = 1774, + Rd = 1775, + RE = 1776, + Re = 1777, + RF = 1778, + Rf = 1779, + RG = 1780, + Rg = 1781, + RH = 1782, + Rh = 1783, + RI = 1784, + Ri = 1785, + RJ = 1786, + Rj = 1787, + RK = 1788, + Rk = 1789, + RL = 1790, + Rl = 1791, + RM = 1792, + Rm = 1793, + RN = 1794, + Rn = 1795, + RO = 1796, + Ro = 1797, + RP = 1798, + Rp = 1799, + RQ = 1800, + Rq = 1801, + RR = 1802, + Rr = 1803, + RS = 1804, + Rs = 1805, + RT = 1806, + Rt = 1807, + RU = 1808, + Ru = 1809, + RV = 1810, + Rv = 1811, + RW = 1812, + Rw = 1813, + RX = 1814, + Rx = 1815, + RY = 1816, + Ry = 1817, + RZ = 1818, + Rz = 1819, + rA = 1820, + ra = 1821, + rB = 1822, + rb = 1823, + rC = 1824, + rc = 1825, + rD = 1826, + rd = 1827, + rE = 1828, + re = 1829, + rF = 1830, + rf = 1831, + rG = 1832, + rg = 1833, + rH = 1834, + rh = 1835, + rI = 1836, + ri = 1837, + rJ = 1838, + rj = 1839, + rK = 1840, + rk = 1841, + rL = 1842, + rl = 1843, + rM = 1844, + rm = 1845, + rN = 1846, + rn = 1847, + rO = 1848, + ro = 1849, + rP = 1850, + rp = 1851, + rQ = 1852, + rq = 1853, + rR = 1854, + rr = 1855, + rS = 1856, + rs = 1857, + rT = 1858, + rt = 1859, + rU = 1860, + ru = 1861, + rV = 1862, + rv = 1863, + rW = 1864, + rw = 1865, + rX = 1866, + rx = 1867, + rY = 1868, + ry = 1869, + rZ = 1870, + rz = 1871, + SA = 1872, + Sa = 1873, + SB = 1874, + Sb = 1875, + SC = 1876, + Sc = 1877, + SD = 1878, + Sd = 1879, + SE = 1880, + Se = 1881, + SF = 1882, + Sf = 1883, + SG = 1884, + Sg = 1885, + SH = 1886, + Sh = 1887, + SI = 1888, + Si = 1889, + SJ = 1890, + Sj = 1891, + SK = 1892, + Sk = 1893, + SL = 1894, + Sl = 1895, + SM = 1896, + Sm = 1897, + SN = 1898, + Sn = 1899, + SO = 1900, + So = 1901, + SP = 1902, + Sp = 1903, + SQ = 1904, + Sq = 1905, + SR = 1906, + Sr = 1907, + SS = 1908, + Ss = 1909, + ST = 1910, + St = 1911, + SU = 1912, + Su = 1913, + SV = 1914, + Sv = 1915, + SW = 1916, + Sw = 1917, + SX = 1918, + Sx = 1919, + SY = 1920, + Sy = 1921, + SZ = 1922, + Sz = 1923, + sA = 1924, + sa = 1925, + sB = 1926, + sb = 1927, + sC = 1928, + sc = 1929, + sD = 1930, + sd = 1931, + sE = 1932, + se = 1933, + sF = 1934, + sf = 1935, + sG = 1936, + sg = 1937, + sH = 1938, + sh = 1939, + sI = 1940, + si = 1941, + sJ = 1942, + sj = 1943, + sK = 1944, + sk = 1945, + sL = 1946, + sl = 1947, + sM = 1948, + sm = 1949, + sN = 1950, + sn = 1951, + sO = 1952, + so = 1953, + sP = 1954, + sp = 1955, + sQ = 1956, + sq = 1957, + sR = 1958, + sr = 1959, + sS = 1960, + ss = 1961, + sT = 1962, + st = 1963, + sU = 1964, + su = 1965, + sV = 1966, + sv = 1967, + sW = 1968, + sw = 1969, + sX = 1970, + sx = 1971, + sY = 1972, + sy = 1973, + sZ = 1974, + sz = 1975, + TA = 1976, + Ta = 1977, + TB = 1978, + Tb = 1979, + TC = 1980, + Tc = 1981, + TD = 1982, + Td = 1983, + TE = 1984, + Te = 1985, + TF = 1986, + Tf = 1987, + TG = 1988, + Tg = 1989, + TH = 1990, + Th = 1991, + TI = 1992, + Ti = 1993, + TJ = 1994, + Tj = 1995, + TK = 1996, + Tk = 1997, + TL = 1998, + Tl = 1999, + TM = 2000, + Tm = 2001, + TN = 2002, + Tn = 2003, + TO = 2004, + To = 2005, + TP = 2006, + Tp = 2007, + TQ = 2008, + Tq = 2009, + TR = 2010, + Tr = 2011, + TS = 2012, + Ts = 2013, + TT = 2014, + Tt = 2015, + TU = 2016, + Tu = 2017, + TV = 2018, + Tv = 2019, + TW = 2020, + Tw = 2021, + TX = 2022, + Tx = 2023, + TY = 2024, + Ty = 2025, + TZ = 2026, + Tz = 2027, + tA = 2028, + ta = 2029, + tB = 2030, + tb = 2031, + tC = 2032, + tc = 2033, + tD = 2034, + td = 2035, + tE = 2036, + te = 2037, + tF = 2038, + tf = 2039, + tG = 2040, + tg = 2041, + tH = 2042, + th = 2043, + tI = 2044, + ti = 2045, + tJ = 2046, + tj = 2047, + tK = 2048, + tk = 2049, + tL = 2050, + tl = 2051, + tM = 2052, + tm = 2053, + tN = 2054, + tn = 2055, + tO = 2056, + to = 2057, + tP = 2058, + tp = 2059, + tQ = 2060, + tq = 2061, + tR = 2062, + tr = 2063, + tS = 2064, + ts = 2065, + tT = 2066, + tt = 2067, + tU = 2068, + tu = 2069, + tV = 2070, + tv = 2071, + tW = 2072, + tw = 2073, + tX = 2074, + tx = 2075, + tY = 2076, + ty = 2077, + tZ = 2078, + tz = 2079, + UA = 2080, + Ua = 2081, + UB = 2082, + Ub = 2083, + UC = 2084, + Uc = 2085, + UD = 2086, + Ud = 2087, + UE = 2088, + Ue = 2089, + UF = 2090, + Uf = 2091, + UG = 2092, + Ug = 2093, + UH = 2094, + Uh = 2095, + UI = 2096, + Ui = 2097, + UJ = 2098, + Uj = 2099, + UK = 2100, + Uk = 2101, + UL = 2102, + Ul = 2103, + UM = 2104, + Um = 2105, + UN = 2106, + Un = 2107, + UO = 2108, + Uo = 2109, + UP = 2110, + Up = 2111, + UQ = 2112, + Uq = 2113, + UR = 2114, + Ur = 2115, + US = 2116, + Us = 2117, + UT = 2118, + Ut = 2119, + UU = 2120, + Uu = 2121, + UV = 2122, + Uv = 2123, + UW = 2124, + Uw = 2125, + UX = 2126, + Ux = 2127, + UY = 2128, + Uy = 2129, + UZ = 2130, + Uz = 2131, + uA = 2132, + ua = 2133, + uB = 2134, + ub = 2135, + uC = 2136, + uc = 2137, + uD = 2138, + ud = 2139, + uE = 2140, + ue = 2141, + uF = 2142, + uf = 2143, + uG = 2144, + ug = 2145, + uH = 2146, + uh = 2147, + uI = 2148, + ui = 2149, + uJ = 2150, + uj = 2151, + uK = 2152, + uk = 2153, + uL = 2154, + ul = 2155, + uM = 2156, + um = 2157, + uN = 2158, + un = 2159, + uO = 2160, + uo = 2161, + uP = 2162, + up = 2163, + uQ = 2164, + uq = 2165, + uR = 2166, + ur = 2167, + uS = 2168, + us = 2169, + uT = 2170, + ut = 2171, + uU = 2172, + uu = 2173, + uV = 2174, + uv = 2175, + uW = 2176, + uw = 2177, + uX = 2178, + ux = 2179, + uY = 2180, + uy = 2181, + uZ = 2182, + uz = 2183, + VA = 2184, + Va = 2185, + VB = 2186, + Vb = 2187, + VC = 2188, + Vc = 2189, + VD = 2190, + Vd = 2191, + VE = 2192, + Ve = 2193, + VF = 2194, + Vf = 2195, + VG = 2196, + Vg = 2197, + VH = 2198, + Vh = 2199, + VI = 2200, + Vi = 2201, + VJ = 2202, + Vj = 2203, + VK = 2204, + Vk = 2205, + VL = 2206, + Vl = 2207, + VM = 2208, + Vm = 2209, + VN = 2210, + Vn = 2211, + VO = 2212, + Vo = 2213, + VP = 2214, + Vp = 2215, + VQ = 2216, + Vq = 2217, + VR = 2218, + Vr = 2219, + VS = 2220, + Vs = 2221, + VT = 2222, + Vt = 2223, + VU = 2224, + Vu = 2225, + VV = 2226, + Vv = 2227, + VW = 2228, + Vw = 2229, + VX = 2230, + Vx = 2231, + VY = 2232, + Vy = 2233, + VZ = 2234, + Vz = 2235, + vA = 2236, + va = 2237, + vB = 2238, + vb = 2239, + vC = 2240, + vc = 2241, + vD = 2242, + vd = 2243, + vE = 2244, + ve = 2245, + vF = 2246, + vf = 2247, + vG = 2248, + vg = 2249, + vH = 2250, + vh = 2251, + vI = 2252, + vi = 2253, + vJ = 2254, + vj = 2255, + vK = 2256, + vk = 2257, + vL = 2258, + vl = 2259, + vM = 2260, + vm = 2261, + vN = 2262, + vn = 2263, + vO = 2264, + vo = 2265, + vP = 2266, + vp = 2267, + vQ = 2268, + vq = 2269, + vR = 2270, + vr = 2271, + vS = 2272, + vs = 2273, + vT = 2274, + vt = 2275, + vU = 2276, + vu = 2277, + vV = 2278, + vv = 2279, + vW = 2280, + vw = 2281, + vX = 2282, + vx = 2283, + vY = 2284, + vy = 2285, + vZ = 2286, + vz = 2287, + WA = 2288, + Wa = 2289, + WB = 2290, + Wb = 2291, + WC = 2292, + Wc = 2293, + WD = 2294, + Wd = 2295, + WE = 2296, + We = 2297, + WF = 2298, + Wf = 2299, + WG = 2300, + Wg = 2301, + WH = 2302, + Wh = 2303, + WI = 2304, + Wi = 2305, + WJ = 2306, + Wj = 2307, + WK = 2308, + Wk = 2309, + WL = 2310, + Wl = 2311, + WM = 2312, + Wm = 2313, + WN = 2314, + Wn = 2315, + WO = 2316, + Wo = 2317, + WP = 2318, + Wp = 2319, + WQ = 2320, + Wq = 2321, + WR = 2322, + Wr = 2323, + WS = 2324, + Ws = 2325, + WT = 2326, + Wt = 2327, + WU = 2328, + Wu = 2329, + WV = 2330, + Wv = 2331, + WW = 2332, + Ww = 2333, + WX = 2334, + Wx = 2335, + WY = 2336, + Wy = 2337, + WZ = 2338, + Wz = 2339, + wA = 2340, + wa = 2341, + wB = 2342, + wb = 2343, + wC = 2344, + wc = 2345, + wD = 2346, + wd = 2347, + wE = 2348, + we = 2349, + wF = 2350, + wf = 2351, + wG = 2352, + wg = 2353, + wH = 2354, + wh = 2355, + wI = 2356, + wi = 2357, + wJ = 2358, + wj = 2359, + wK = 2360, + wk = 2361, + wL = 2362, + wl = 2363, + wM = 2364, + wm = 2365, + wN = 2366, + wn = 2367, + wO = 2368, + wo = 2369, + wP = 2370, + wp = 2371, + wQ = 2372, + wq = 2373, + wR = 2374, + wr = 2375, + wS = 2376, + ws = 2377, + wT = 2378, + wt = 2379, + wU = 2380, + wu = 2381, + wV = 2382, + wv = 2383, + wW = 2384, + ww = 2385, + wX = 2386, + wx = 2387, + wY = 2388, + wy = 2389, + wZ = 2390, + wz = 2391, + XA = 2392, + Xa = 2393, + XB = 2394, + Xb = 2395, + XC = 2396, + Xc = 2397, + XD = 2398, + Xd = 2399, + XE = 2400, + Xe = 2401, + XF = 2402, + Xf = 2403, + XG = 2404, + Xg = 2405, + XH = 2406, + Xh = 2407, + XI = 2408, + Xi = 2409, + XJ = 2410, + Xj = 2411, + XK = 2412, + Xk = 2413, + XL = 2414, + Xl = 2415, + XM = 2416, + Xm = 2417, + XN = 2418, + Xn = 2419, + XO = 2420, + Xo = 2421, + XP = 2422, + Xp = 2423, + XQ = 2424, + Xq = 2425, + XR = 2426, + Xr = 2427, + XS = 2428, + Xs = 2429, + XT = 2430, + Xt = 2431, + XU = 2432, + Xu = 2433, + XV = 2434, + Xv = 2435, + XW = 2436, + Xw = 2437, + XX = 2438, + Xx = 2439, + XY = 2440, + Xy = 2441, + XZ = 2442, + Xz = 2443, + xA = 2444, + xa = 2445, + xB = 2446, + xb = 2447, + xC = 2448, + xc = 2449, + xD = 2450, + xd = 2451, + xE = 2452, + xe = 2453, + xF = 2454, + xf = 2455, + xG = 2456, + xg = 2457, + xH = 2458, + xh = 2459, + xI = 2460, + xi = 2461, + xJ = 2462, + xj = 2463, + xK = 2464, + xk = 2465, + xL = 2466, + xl = 2467, + xM = 2468, + xm = 2469, + xN = 2470, + xn = 2471, + xO = 2472, + xo = 2473, + xP = 2474, + xp = 2475, + xQ = 2476, + xq = 2477, + xR = 2478, + xr = 2479, + xS = 2480, + xs = 2481, + xT = 2482, + xt = 2483, + xU = 2484, + xu = 2485, + xV = 2486, + xv = 2487, + xW = 2488, + xw = 2489, + xX = 2490, + xx = 2491, + xY = 2492, + xy = 2493, + xZ = 2494, + xz = 2495, + YA = 2496, + Ya = 2497, + YB = 2498, + Yb = 2499, + YC = 2500, + Yc = 2501, + YD = 2502, + Yd = 2503, + YE = 2504, + Ye = 2505, + YF = 2506, + Yf = 2507, + YG = 2508, + Yg = 2509, + YH = 2510, + Yh = 2511, + YI = 2512, + Yi = 2513, + YJ = 2514, + Yj = 2515, + YK = 2516, + Yk = 2517, + YL = 2518, + Yl = 2519, + YM = 2520, + Ym = 2521, + YN = 2522, + Yn = 2523, + YO = 2524, + Yo = 2525, + YP = 2526, + Yp = 2527, + YQ = 2528, + Yq = 2529, + YR = 2530, + Yr = 2531, + YS = 2532, + Ys = 2533, + YT = 2534, + Yt = 2535, + YU = 2536, + Yu = 2537, + YV = 2538, + Yv = 2539, + YW = 2540, + Yw = 2541, + YX = 2542, + Yx = 2543, + YY = 2544, + Yy = 2545, + YZ = 2546, + Yz = 2547, + yA = 2548, + ya = 2549, + yB = 2550, + yb = 2551, + yC = 2552, + yc = 2553, + yD = 2554, + yd = 2555, + yE = 2556, + ye = 2557, + yF = 2558, + yf = 2559, + yG = 2560, + yg = 2561, + yH = 2562, + yh = 2563, + yI = 2564, + yi = 2565, + yJ = 2566, + yj = 2567, + yK = 2568, + yk = 2569, + yL = 2570, + yl = 2571, + yM = 2572, + ym = 2573, + yN = 2574, + yn = 2575, + yO = 2576, + yo = 2577, + yP = 2578, + yp = 2579, + yQ = 2580, + yq = 2581, + yR = 2582, + yr = 2583, + yS = 2584, + ys = 2585, + yT = 2586, + yt = 2587, + yU = 2588, + yu = 2589, + yV = 2590, + yv = 2591, + yW = 2592, + yw = 2593, + yX = 2594, + yx = 2595, + yY = 2596, + yy = 2597, + yZ = 2598, + yz = 2599, + ZA = 2600, + Za = 2601, + ZB = 2602, + Zb = 2603, + ZC = 2604, + Zc = 2605, + ZD = 2606, + Zd = 2607, + ZE = 2608, + Ze = 2609, + ZF = 2610, + Zf = 2611, + ZG = 2612, + Zg = 2613, + ZH = 2614, + Zh = 2615, + ZI = 2616, + Zi = 2617, + ZJ = 2618, + Zj = 2619, + ZK = 2620, + Zk = 2621, + ZL = 2622, + Zl = 2623, + ZM = 2624, + Zm = 2625, + ZN = 2626, + Zn = 2627, + ZO = 2628, + Zo = 2629, + ZP = 2630, + Zp = 2631, + ZQ = 2632, + Zq = 2633, + ZR = 2634, + Zr = 2635, + ZS = 2636, + Zs = 2637, + ZT = 2638, + Zt = 2639, + ZU = 2640, + Zu = 2641, + ZV = 2642, + Zv = 2643, + ZW = 2644, + Zw = 2645, + ZX = 2646, + Zx = 2647, + ZY = 2648, + Zy = 2649, + ZZ = 2650, + Zz = 2651, + zA = 2652, + za = 2653, + zB = 2654, + zb = 2655, + zC = 2656, + zc = 2657, + zD = 2658, + zd = 2659, + zE = 2660, + ze = 2661, + zF = 2662, + zf = 2663, + zG = 2664, + zg = 2665, + zH = 2666, + zh = 2667, + zI = 2668, + zi = 2669, + zJ = 2670, + zj = 2671, + zK = 2672, + zk = 2673, + zL = 2674, + zl = 2675, + zM = 2676, + zm = 2677, + zN = 2678, + zn = 2679, + zO = 2680, + zo = 2681, + zP = 2682, + zp = 2683, + zQ = 2684, + zq = 2685, + zR = 2686, + zr = 2687, + zS = 2688, + zs = 2689, + zT = 2690, + zt = 2691, + zU = 2692, + zu = 2693, + zV = 2694, + zv = 2695, + zW = 2696, + zw = 2697, + zX = 2698, + zx = 2699, + zY = 2700, + zy = 2701, + zZ = 2702, + zz = 2703, + aAA = 2704, + aAa = 2705, + aAB = 2706, + aAb = 2707, + aAC = 2708, + aAc = 2709, + aAD = 2710, + aAd = 2711, + aAE = 2712, + aAe = 2713, + aAF = 2714, + aAf = 2715, + aAG = 2716, + aAg = 2717, + aAH = 2718, + aAh = 2719, + aAI = 2720, + aAi = 2721, + aAJ = 2722, + aAj = 2723, + aAK = 2724, + aAk = 2725, + aAL = 2726, + aAl = 2727, + aAM = 2728, + aAm = 2729, + aAN = 2730, + aAn = 2731, + aAO = 2732, + aAo = 2733, + aAP = 2734, + aAp = 2735, + aAQ = 2736, + aAq = 2737, + aAR = 2738, + aAr = 2739, + aAS = 2740, + aAs = 2741, + aAT = 2742, + aAt = 2743, + aAU = 2744, + aAu = 2745, + aAV = 2746, + aAv = 2747, + aAW = 2748, + aAw = 2749, + aAX = 2750, + aAx = 2751, + aAY = 2752, + aAy = 2753, + aAZ = 2754, + aAz = 2755, + aaA = 2756, + aaa = 2757, + aaB = 2758, + aab = 2759, + aaC = 2760, + aac = 2761, + aaD = 2762, + aad = 2763, + aaE = 2764, + aae = 2765, + aaF = 2766, + aaf = 2767, + aaG = 2768, + aag = 2769, + aaH = 2770, + aah = 2771, + aaI = 2772, + aai = 2773, + aaJ = 2774, + aaj = 2775, + aaK = 2776, + aak = 2777, + aaL = 2778, + aal = 2779, + aaM = 2780, + aam = 2781, + aaN = 2782, + aan = 2783, + aaO = 2784, + aao = 2785, + aaP = 2786, + aap = 2787, + aaQ = 2788, + aaq = 2789, + aaR = 2790, + aar = 2791, + aaS = 2792, + aas = 2793, + aaT = 2794, + aat = 2795, + aaU = 2796, + aau = 2797, + aaV = 2798, + aav = 2799, + aaW = 2800, + aaw = 2801, + aaX = 2802, + aax = 2803, + aaY = 2804, + aay = 2805, + aaZ = 2806, + aaz = 2807, + aBA = 2808, + aBa = 2809, + aBB = 2810, + aBb = 2811, + aBC = 2812, + aBc = 2813, + aBD = 2814, + aBd = 2815, + aBE = 2816, + aBe = 2817, + aBF = 2818, + aBf = 2819, + aBG = 2820, + aBg = 2821, + aBH = 2822, + aBh = 2823, + aBI = 2824, + aBi = 2825, + aBJ = 2826, + aBj = 2827, + aBK = 2828, + aBk = 2829, + aBL = 2830, + aBl = 2831, + aBM = 2832, + aBm = 2833, + aBN = 2834, + aBn = 2835, + aBO = 2836, + aBo = 2837, + aBP = 2838, + aBp = 2839, + aBQ = 2840, + aBq = 2841, + aBR = 2842, + aBr = 2843, + aBS = 2844, + aBs = 2845, + aBT = 2846, + aBt = 2847, + aBU = 2848, + aBu = 2849, + aBV = 2850, + aBv = 2851, + aBW = 2852, + aBw = 2853, + aBX = 2854, + aBx = 2855, + aBY = 2856, + aBy = 2857, + aBZ = 2858, + aBz = 2859, + abA = 2860, + aba = 2861, + abB = 2862, + abb = 2863, + abC = 2864, + abc = 2865, + abD = 2866, + abd = 2867, + abE = 2868, + abe = 2869, + abF = 2870, + abf = 2871, + abG = 2872, + abg = 2873, + abH = 2874, + abh = 2875, + abI = 2876, + abi = 2877, + abJ = 2878, + abj = 2879, + abK = 2880, + abk = 2881, + abL = 2882, + abl = 2883, + abM = 2884, + abm = 2885, + abN = 2886, + abn = 2887, + abO = 2888, + abo = 2889, + abP = 2890, + abp = 2891, + abQ = 2892, + abq = 2893, + abR = 2894, + abr = 2895, + abS = 2896, + abs = 2897, + abT = 2898, + abt = 2899, + abU = 2900, + abu = 2901, + abV = 2902, + abv = 2903, + abW = 2904, + abw = 2905, + abX = 2906, + abx = 2907, + abY = 2908, + aby = 2909, + abZ = 2910, + abz = 2911, + aCA = 2912, + aCa = 2913, + aCB = 2914, + aCb = 2915, + aCC = 2916, + aCc = 2917, + aCD = 2918, + aCd = 2919, + aCE = 2920, + aCe = 2921, + aCF = 2922, + aCf = 2923, + aCG = 2924, + aCg = 2925, + aCH = 2926, + aCh = 2927, + aCI = 2928, + aCi = 2929, + aCJ = 2930, + aCj = 2931, + aCK = 2932, + aCk = 2933, + aCL = 2934, + aCl = 2935, + aCM = 2936, + aCm = 2937, + aCN = 2938, + aCn = 2939, + aCO = 2940, + aCo = 2941, + aCP = 2942, + aCp = 2943, + aCQ = 2944, + aCq = 2945, + aCR = 2946, + aCr = 2947, + aCS = 2948, + aCs = 2949, + aCT = 2950, + aCt = 2951, + aCU = 2952, + aCu = 2953, + aCV = 2954, + aCv = 2955, + aCW = 2956, + aCw = 2957, + aCX = 2958, + aCx = 2959, + aCY = 2960, + aCy = 2961, + aCZ = 2962, + aCz = 2963, + acA = 2964, + aca = 2965, + acB = 2966, + acb = 2967, + acC = 2968, + acc = 2969, + acD = 2970, + acd = 2971, + acE = 2972, + ace = 2973, + acF = 2974, + acf = 2975, + acG = 2976, + acg = 2977, + acH = 2978, + ach = 2979, + acI = 2980, + aci = 2981, + acJ = 2982, + acj = 2983, + acK = 2984, + ack = 2985, + acL = 2986, + acl = 2987, + acM = 2988, + acm = 2989, + acN = 2990, + acn = 2991, + acO = 2992, + aco = 2993, + acP = 2994, + acp = 2995, + acQ = 2996, + acq = 2997, + acR = 2998, + acr = 2999, + acS = 3000, + acs = 3001, + acT = 3002, + act = 3003, +}; + + +} diff --git a/SCHALE.Common/FlatData/TagSettingExcel.cs b/SCHALE.Common/FlatData/TagSettingExcel.cs new file mode 100644 index 0000000..7ef30a6 --- /dev/null +++ b/SCHALE.Common/FlatData/TagSettingExcel.cs @@ -0,0 +1,60 @@ +// +// 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 new file mode 100644 index 0000000..8e989cb --- /dev/null +++ b/SCHALE.Common/FlatData/TagSettingExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/TargetSortBy.cs b/SCHALE.Common/FlatData/TargetSortBy.cs new file mode 100644 index 0000000..d326946 --- /dev/null +++ b/SCHALE.Common/FlatData/TargetSortBy.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TargetSortBy : int +{ + DISTANCE = 0, + HP = 1, + DAMAGE_EFFICIENCY = 2, + TARGETED_COUNT = 3, + RANDOM = 4, + FRONT_FORMATION = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/TargetingCellType.cs b/SCHALE.Common/FlatData/TargetingCellType.cs new file mode 100644 index 0000000..b55fbb0 --- /dev/null +++ b/SCHALE.Common/FlatData/TargetingCellType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TargetingCellType : int +{ + None = 0, + Near = 1, + Far = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TargetingUnitType.cs b/SCHALE.Common/FlatData/TargetingUnitType.cs new file mode 100644 index 0000000..8a0328a --- /dev/null +++ b/SCHALE.Common/FlatData/TargetingUnitType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TargetingUnitType : int +{ + None = 0, + Near = 1, + Far = 2, + MinHp = 3, + MaxHp = 4, + Random = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs new file mode 100644 index 0000000..dfc042e --- /dev/null +++ b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcel.cs @@ -0,0 +1,80 @@ +// +// 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 TerrainAdaptationFactorExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TerrainAdaptationFactorExcel GetRootAsTerrainAdaptationFactorExcel(ByteBuffer _bb) { return GetRootAsTerrainAdaptationFactorExcel(_bb, new TerrainAdaptationFactorExcel()); } + public static TerrainAdaptationFactorExcel GetRootAsTerrainAdaptationFactorExcel(ByteBuffer _bb, TerrainAdaptationFactorExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TerrainAdaptationFactorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.StageTopography TerrainAdaptation { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public SCHALE.Common.FlatData.TerrainAdaptationStat TerrainAdaptationStat { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TerrainAdaptationStat.D; } } + public long ShotFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BlockFactor { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AccuracyFactor { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DodgeFactor { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AttackPowerFactor { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTerrainAdaptationFactorExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.StageTopography TerrainAdaptation = SCHALE.Common.FlatData.StageTopography.Street, + SCHALE.Common.FlatData.TerrainAdaptationStat TerrainAdaptationStat = SCHALE.Common.FlatData.TerrainAdaptationStat.D, + long ShotFactor = 0, + long BlockFactor = 0, + long AccuracyFactor = 0, + long DodgeFactor = 0, + long AttackPowerFactor = 0) { + builder.StartTable(7); + TerrainAdaptationFactorExcel.AddAttackPowerFactor(builder, AttackPowerFactor); + TerrainAdaptationFactorExcel.AddDodgeFactor(builder, DodgeFactor); + TerrainAdaptationFactorExcel.AddAccuracyFactor(builder, AccuracyFactor); + TerrainAdaptationFactorExcel.AddBlockFactor(builder, BlockFactor); + TerrainAdaptationFactorExcel.AddShotFactor(builder, ShotFactor); + TerrainAdaptationFactorExcel.AddTerrainAdaptationStat(builder, TerrainAdaptationStat); + TerrainAdaptationFactorExcel.AddTerrainAdaptation(builder, TerrainAdaptation); + return TerrainAdaptationFactorExcel.EndTerrainAdaptationFactorExcel(builder); + } + + public static void StartTerrainAdaptationFactorExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddTerrainAdaptation(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography terrainAdaptation) { builder.AddInt(0, (int)terrainAdaptation, 0); } + public static void AddTerrainAdaptationStat(FlatBufferBuilder builder, SCHALE.Common.FlatData.TerrainAdaptationStat terrainAdaptationStat) { builder.AddInt(1, (int)terrainAdaptationStat, 0); } + public static void AddShotFactor(FlatBufferBuilder builder, long shotFactor) { builder.AddLong(2, shotFactor, 0); } + public static void AddBlockFactor(FlatBufferBuilder builder, long blockFactor) { builder.AddLong(3, blockFactor, 0); } + public static void AddAccuracyFactor(FlatBufferBuilder builder, long accuracyFactor) { builder.AddLong(4, accuracyFactor, 0); } + public static void AddDodgeFactor(FlatBufferBuilder builder, long dodgeFactor) { builder.AddLong(5, dodgeFactor, 0); } + public static void AddAttackPowerFactor(FlatBufferBuilder builder, long attackPowerFactor) { builder.AddLong(6, attackPowerFactor, 0); } + public static Offset EndTerrainAdaptationFactorExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TerrainAdaptationFactorExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*TerrainAdaptation*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*TerrainAdaptationStat*/, 4 /*SCHALE.Common.FlatData.TerrainAdaptationStat*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*ShotFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*BlockFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*AccuracyFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*DodgeFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*AttackPowerFactor*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs new file mode 100644 index 0000000..43a48b1 --- /dev/null +++ b/SCHALE.Common/FlatData/TerrainAdaptationFactorExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TerrainAdaptationFactorExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TerrainAdaptationFactorExcelTable GetRootAsTerrainAdaptationFactorExcelTable(ByteBuffer _bb) { return GetRootAsTerrainAdaptationFactorExcelTable(_bb, new TerrainAdaptationFactorExcelTable()); } + public static TerrainAdaptationFactorExcelTable GetRootAsTerrainAdaptationFactorExcelTable(ByteBuffer _bb, TerrainAdaptationFactorExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TerrainAdaptationFactorExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TerrainAdaptationFactorExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TerrainAdaptationFactorExcel?)(new SCHALE.Common.FlatData.TerrainAdaptationFactorExcel()).__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 CreateTerrainAdaptationFactorExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TerrainAdaptationFactorExcelTable.AddDataList(builder, DataListOffset); + return TerrainAdaptationFactorExcelTable.EndTerrainAdaptationFactorExcelTable(builder); + } + + public static void StartTerrainAdaptationFactorExcelTable(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 EndTerrainAdaptationFactorExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TerrainAdaptationFactorExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TerrainAdaptationFactorExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TerrainAdaptationStat.cs b/SCHALE.Common/FlatData/TerrainAdaptationStat.cs new file mode 100644 index 0000000..5c0e207 --- /dev/null +++ b/SCHALE.Common/FlatData/TerrainAdaptationStat.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TerrainAdaptationStat : int +{ + D = 0, + C = 1, + B = 2, + A = 3, + S = 4, + SS = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/Tier.cs b/SCHALE.Common/FlatData/Tier.cs new file mode 100644 index 0000000..2072970 --- /dev/null +++ b/SCHALE.Common/FlatData/Tier.cs @@ -0,0 +1,17 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum Tier : int +{ + T1 = 0, + T2 = 1, + T3 = 2, + T4 = 3, +}; + + +} diff --git a/SCHALE.Common/FlatData/TileState.cs b/SCHALE.Common/FlatData/TileState.cs new file mode 100644 index 0000000..0a9d631 --- /dev/null +++ b/SCHALE.Common/FlatData/TileState.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TileState : int +{ + None = 0, + PartiallyConquested = 1, + FullyConquested = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs new file mode 100644 index 0000000..4eead9d --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs @@ -0,0 +1,76 @@ +// +// 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 TimeAttackDungeonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonExcel GetRootAsTimeAttackDungeonExcel(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonExcel(_bb, new TimeAttackDungeonExcel()); } + public static TimeAttackDungeonExcel GetRootAsTimeAttackDungeonExcel(ByteBuffer _bb, TimeAttackDungeonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonExcel __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 SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None; } } + public uint LocalizeEtcKey { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string IconPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetIconPathBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetIconPathBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetIconPathArray() { return __p.__vector_as_array(10); } + public long InformationGroupID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTimeAttackDungeonExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType = SCHALE.Common.FlatData.TimeAttackDungeonType.None, + uint LocalizeEtcKey = 0, + StringOffset IconPathOffset = default(StringOffset), + long InformationGroupID = 0) { + builder.StartTable(5); + TimeAttackDungeonExcel.AddInformationGroupID(builder, InformationGroupID); + TimeAttackDungeonExcel.AddId(builder, Id); + TimeAttackDungeonExcel.AddIconPath(builder, IconPathOffset); + TimeAttackDungeonExcel.AddLocalizeEtcKey(builder, LocalizeEtcKey); + TimeAttackDungeonExcel.AddTimeAttackDungeonType(builder, TimeAttackDungeonType); + return TimeAttackDungeonExcel.EndTimeAttackDungeonExcel(builder); + } + + public static void StartTimeAttackDungeonExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTimeAttackDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TimeAttackDungeonType timeAttackDungeonType) { builder.AddInt(1, (int)timeAttackDungeonType, 0); } + public static void AddLocalizeEtcKey(FlatBufferBuilder builder, uint localizeEtcKey) { builder.AddUint(2, localizeEtcKey, 0); } + public static void AddIconPath(FlatBufferBuilder builder, StringOffset iconPathOffset) { builder.AddOffset(3, iconPathOffset.Value, 0); } + public static void AddInformationGroupID(FlatBufferBuilder builder, long informationGroupID) { builder.AddLong(4, informationGroupID, 0); } + public static Offset EndTimeAttackDungeonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonExcelVerify +{ + 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 /*TimeAttackDungeonType*/, 4 /*SCHALE.Common.FlatData.TimeAttackDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*IconPath*/, false) + && verifier.VerifyField(tablePos, 12 /*InformationGroupID*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs new file mode 100644 index 0000000..140311f --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TimeAttackDungeonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonExcelTable GetRootAsTimeAttackDungeonExcelTable(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonExcelTable(_bb, new TimeAttackDungeonExcelTable()); } + public static TimeAttackDungeonExcelTable GetRootAsTimeAttackDungeonExcelTable(ByteBuffer _bb, TimeAttackDungeonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TimeAttackDungeonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonExcel?)(new SCHALE.Common.FlatData.TimeAttackDungeonExcel()).__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 CreateTimeAttackDungeonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TimeAttackDungeonExcelTable.AddDataList(builder, DataListOffset); + return TimeAttackDungeonExcelTable.EndTimeAttackDungeonExcelTable(builder); + } + + public static void StartTimeAttackDungeonExcelTable(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 EndTimeAttackDungeonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TimeAttackDungeonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs new file mode 100644 index 0000000..af42113 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs @@ -0,0 +1,179 @@ +// +// 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 TimeAttackDungeonGeasExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonGeasExcel GetRootAsTimeAttackDungeonGeasExcel(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonGeasExcel(_bb, new TimeAttackDungeonGeasExcel()); } + public static TimeAttackDungeonGeasExcel GetRootAsTimeAttackDungeonGeasExcel(ByteBuffer _bb, TimeAttackDungeonGeasExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonGeasExcel __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 SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None; } } + public uint LocalizeEtcKey { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearDefaultPoint { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearTimeWeightPoint { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TimeWeightConst { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int Difficulty { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RecommandLevel { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long GroundId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AllyPassiveSkillId(int j) { int o = __p.__offset(24); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int AllyPassiveSkillIdLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } + public int AllyPassiveSkillLevel(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int AllyPassiveSkillLevelLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_span(26, 4); } +#else + public ArraySegment? GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public int[] GetAllyPassiveSkillLevelArray() { return __p.__vector_as_array(26); } + public string EnemyPassiveSkillId(int j) { int o = __p.__offset(28); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int EnemyPassiveSkillIdLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } + public int EnemyPassiveSkillLevel(int j) { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int EnemyPassiveSkillLevelLength { get { int o = __p.__offset(30); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_span(30, 4); } +#else + public ArraySegment? GetEnemyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public int[] GetEnemyPassiveSkillLevelArray() { return __p.__vector_as_array(30); } + public string GeasIconPath(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int GeasIconPathLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } + public uint GeasLocalizeEtcKey(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int GeasLocalizeEtcKeyLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGeasLocalizeEtcKeyBytes() { return __p.__vector_as_span(34, 4); } +#else + public ArraySegment? GetGeasLocalizeEtcKeyBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public uint[] GetGeasLocalizeEtcKeyArray() { return __p.__vector_as_array(34); } + + public static Offset CreateTimeAttackDungeonGeasExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType = SCHALE.Common.FlatData.TimeAttackDungeonType.None, + uint LocalizeEtcKey = 0, + long BattleDuration = 0, + long ClearDefaultPoint = 0, + long ClearTimeWeightPoint = 0, + long TimeWeightConst = 0, + int Difficulty = 0, + int RecommandLevel = 0, + long GroundId = 0, + VectorOffset AllyPassiveSkillIdOffset = default(VectorOffset), + VectorOffset AllyPassiveSkillLevelOffset = default(VectorOffset), + VectorOffset EnemyPassiveSkillIdOffset = default(VectorOffset), + VectorOffset EnemyPassiveSkillLevelOffset = default(VectorOffset), + VectorOffset GeasIconPathOffset = default(VectorOffset), + VectorOffset GeasLocalizeEtcKeyOffset = default(VectorOffset)) { + builder.StartTable(16); + TimeAttackDungeonGeasExcel.AddGroundId(builder, GroundId); + TimeAttackDungeonGeasExcel.AddTimeWeightConst(builder, TimeWeightConst); + TimeAttackDungeonGeasExcel.AddClearTimeWeightPoint(builder, ClearTimeWeightPoint); + TimeAttackDungeonGeasExcel.AddClearDefaultPoint(builder, ClearDefaultPoint); + TimeAttackDungeonGeasExcel.AddBattleDuration(builder, BattleDuration); + TimeAttackDungeonGeasExcel.AddId(builder, Id); + TimeAttackDungeonGeasExcel.AddGeasLocalizeEtcKey(builder, GeasLocalizeEtcKeyOffset); + TimeAttackDungeonGeasExcel.AddGeasIconPath(builder, GeasIconPathOffset); + TimeAttackDungeonGeasExcel.AddEnemyPassiveSkillLevel(builder, EnemyPassiveSkillLevelOffset); + TimeAttackDungeonGeasExcel.AddEnemyPassiveSkillId(builder, EnemyPassiveSkillIdOffset); + TimeAttackDungeonGeasExcel.AddAllyPassiveSkillLevel(builder, AllyPassiveSkillLevelOffset); + TimeAttackDungeonGeasExcel.AddAllyPassiveSkillId(builder, AllyPassiveSkillIdOffset); + TimeAttackDungeonGeasExcel.AddRecommandLevel(builder, RecommandLevel); + TimeAttackDungeonGeasExcel.AddDifficulty(builder, Difficulty); + TimeAttackDungeonGeasExcel.AddLocalizeEtcKey(builder, LocalizeEtcKey); + TimeAttackDungeonGeasExcel.AddTimeAttackDungeonType(builder, TimeAttackDungeonType); + return TimeAttackDungeonGeasExcel.EndTimeAttackDungeonGeasExcel(builder); + } + + public static void StartTimeAttackDungeonGeasExcel(FlatBufferBuilder builder) { builder.StartTable(16); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddTimeAttackDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TimeAttackDungeonType timeAttackDungeonType) { builder.AddInt(1, (int)timeAttackDungeonType, 0); } + public static void AddLocalizeEtcKey(FlatBufferBuilder builder, uint localizeEtcKey) { builder.AddUint(2, localizeEtcKey, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(3, battleDuration, 0); } + public static void AddClearDefaultPoint(FlatBufferBuilder builder, long clearDefaultPoint) { builder.AddLong(4, clearDefaultPoint, 0); } + public static void AddClearTimeWeightPoint(FlatBufferBuilder builder, long clearTimeWeightPoint) { builder.AddLong(5, clearTimeWeightPoint, 0); } + public static void AddTimeWeightConst(FlatBufferBuilder builder, long timeWeightConst) { builder.AddLong(6, timeWeightConst, 0); } + public static void AddDifficulty(FlatBufferBuilder builder, int difficulty) { builder.AddInt(7, difficulty, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, int recommandLevel) { builder.AddInt(8, recommandLevel, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(9, groundId, 0); } + public static void AddAllyPassiveSkillId(FlatBufferBuilder builder, VectorOffset allyPassiveSkillIdOffset) { builder.AddOffset(10, allyPassiveSkillIdOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddAllyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset allyPassiveSkillLevelOffset) { builder.AddOffset(11, allyPassiveSkillLevelOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillLevelVector(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 CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPassiveSkillId(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillIdOffset) { builder.AddOffset(12, enemyPassiveSkillIdOffset.Value, 0); } + public static VectorOffset CreateEnemyPassiveSkillIdVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPassiveSkillIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEnemyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset enemyPassiveSkillLevelOffset) { builder.AddOffset(13, enemyPassiveSkillLevelOffset.Value, 0); } + public static VectorOffset CreateEnemyPassiveSkillLevelVector(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 CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEnemyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEnemyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddGeasIconPath(FlatBufferBuilder builder, VectorOffset geasIconPathOffset) { builder.AddOffset(14, geasIconPathOffset.Value, 0); } + public static VectorOffset CreateGeasIconPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGeasIconPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGeasIconPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddGeasLocalizeEtcKey(FlatBufferBuilder builder, VectorOffset geasLocalizeEtcKeyOffset) { builder.AddOffset(15, geasLocalizeEtcKeyOffset.Value, 0); } + public static VectorOffset CreateGeasLocalizeEtcKeyVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGeasLocalizeEtcKeyVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGeasLocalizeEtcKeyVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTimeAttackDungeonGeasExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonGeasExcelVerify +{ + 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 /*TimeAttackDungeonType*/, 4 /*SCHALE.Common.FlatData.TimeAttackDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*ClearDefaultPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*ClearTimeWeightPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*TimeWeightConst*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*Difficulty*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 20 /*RecommandLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 22 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 24 /*AllyPassiveSkillId*/, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*AllyPassiveSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 28 /*EnemyPassiveSkillId*/, false) + && verifier.VerifyVectorOfData(tablePos, 30 /*EnemyPassiveSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 32 /*GeasIconPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*GeasLocalizeEtcKey*/, 4 /*uint*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs new file mode 100644 index 0000000..576adc1 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TimeAttackDungeonGeasExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonGeasExcelTable GetRootAsTimeAttackDungeonGeasExcelTable(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonGeasExcelTable(_bb, new TimeAttackDungeonGeasExcelTable()); } + public static TimeAttackDungeonGeasExcelTable GetRootAsTimeAttackDungeonGeasExcelTable(ByteBuffer _bb, TimeAttackDungeonGeasExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonGeasExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TimeAttackDungeonGeasExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonGeasExcel?)(new SCHALE.Common.FlatData.TimeAttackDungeonGeasExcel()).__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 CreateTimeAttackDungeonGeasExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TimeAttackDungeonGeasExcelTable.AddDataList(builder, DataListOffset); + return TimeAttackDungeonGeasExcelTable.EndTimeAttackDungeonGeasExcelTable(builder); + } + + public static void StartTimeAttackDungeonGeasExcelTable(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 EndTimeAttackDungeonGeasExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonGeasExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TimeAttackDungeonGeasExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs new file mode 100644 index 0000000..3d7ee94 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcel.cs @@ -0,0 +1,157 @@ +// +// 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 TimeAttackDungeonRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonRewardExcel GetRootAsTimeAttackDungeonRewardExcel(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonRewardExcel(_bb, new TimeAttackDungeonRewardExcel()); } + public static TimeAttackDungeonRewardExcel GetRootAsTimeAttackDungeonRewardExcel(ByteBuffer _bb, TimeAttackDungeonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonRewardExcel __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 RewardMaxPoint { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.TimeAttackDungeonRewardType RewardType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonRewardType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.TimeAttackDungeonRewardType)0; } + public int RewardTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetRewardTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.TimeAttackDungeonRewardType[] GetRewardTypeArray() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.TimeAttackDungeonRewardType[] a = new SCHALE.Common.FlatData.TimeAttackDungeonRewardType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.TimeAttackDungeonRewardType)__p.bb.GetInt(p + i * 4); } return a; } + public long RewardMinPoint(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardMinPointLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardMinPointBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetRewardMinPointBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetRewardMinPointArray() { return __p.__vector_as_array(10); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(12); 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(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(12); 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(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(14); } + public long RewardParcelDefaultAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelDefaultAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelDefaultAmountBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetRewardParcelDefaultAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetRewardParcelDefaultAmountArray() { return __p.__vector_as_array(16); } + public long RewardParcelMaxAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelMaxAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelMaxAmountBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetRewardParcelMaxAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetRewardParcelMaxAmountArray() { return __p.__vector_as_array(18); } + + public static Offset CreateTimeAttackDungeonRewardExcel(FlatBufferBuilder builder, + long Id = 0, + long RewardMaxPoint = 0, + VectorOffset RewardTypeOffset = default(VectorOffset), + VectorOffset RewardMinPointOffset = default(VectorOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelDefaultAmountOffset = default(VectorOffset), + VectorOffset RewardParcelMaxAmountOffset = default(VectorOffset)) { + builder.StartTable(8); + TimeAttackDungeonRewardExcel.AddRewardMaxPoint(builder, RewardMaxPoint); + TimeAttackDungeonRewardExcel.AddId(builder, Id); + TimeAttackDungeonRewardExcel.AddRewardParcelMaxAmount(builder, RewardParcelMaxAmountOffset); + TimeAttackDungeonRewardExcel.AddRewardParcelDefaultAmount(builder, RewardParcelDefaultAmountOffset); + TimeAttackDungeonRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + TimeAttackDungeonRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + TimeAttackDungeonRewardExcel.AddRewardMinPoint(builder, RewardMinPointOffset); + TimeAttackDungeonRewardExcel.AddRewardType(builder, RewardTypeOffset); + return TimeAttackDungeonRewardExcel.EndTimeAttackDungeonRewardExcel(builder); + } + + public static void StartTimeAttackDungeonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddRewardMaxPoint(FlatBufferBuilder builder, long rewardMaxPoint) { builder.AddLong(1, rewardMaxPoint, 0); } + public static void AddRewardType(FlatBufferBuilder builder, VectorOffset rewardTypeOffset) { builder.AddOffset(2, rewardTypeOffset.Value, 0); } + public static VectorOffset CreateRewardTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.TimeAttackDungeonRewardType[] 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 CreateRewardTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.TimeAttackDungeonRewardType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddRewardMinPoint(FlatBufferBuilder builder, VectorOffset rewardMinPointOffset) { builder.AddOffset(3, rewardMinPointOffset.Value, 0); } + public static VectorOffset CreateRewardMinPointVector(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 CreateRewardMinPointVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardMinPointVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardMinPointVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardMinPointVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(4, 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(5, 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 AddRewardParcelDefaultAmount(FlatBufferBuilder builder, VectorOffset rewardParcelDefaultAmountOffset) { builder.AddOffset(6, rewardParcelDefaultAmountOffset.Value, 0); } + public static VectorOffset CreateRewardParcelDefaultAmountVector(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 CreateRewardParcelDefaultAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelDefaultAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelDefaultAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelDefaultAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddRewardParcelMaxAmount(FlatBufferBuilder builder, VectorOffset rewardParcelMaxAmountOffset) { builder.AddOffset(7, rewardParcelMaxAmountOffset.Value, 0); } + public static VectorOffset CreateRewardParcelMaxAmountVector(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 CreateRewardParcelMaxAmountVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelMaxAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelMaxAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelMaxAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndTimeAttackDungeonRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonRewardExcelVerify +{ + 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 /*RewardMaxPoint*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*RewardType*/, 4 /*SCHALE.Common.FlatData.TimeAttackDungeonRewardType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardMinPoint*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*RewardParcelDefaultAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParcelMaxAmount*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs new file mode 100644 index 0000000..10c4e29 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TimeAttackDungeonRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonRewardExcelTable GetRootAsTimeAttackDungeonRewardExcelTable(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonRewardExcelTable(_bb, new TimeAttackDungeonRewardExcelTable()); } + public static TimeAttackDungeonRewardExcelTable GetRootAsTimeAttackDungeonRewardExcelTable(ByteBuffer _bb, TimeAttackDungeonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TimeAttackDungeonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonRewardExcel?)(new SCHALE.Common.FlatData.TimeAttackDungeonRewardExcel()).__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 CreateTimeAttackDungeonRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TimeAttackDungeonRewardExcelTable.AddDataList(builder, DataListOffset); + return TimeAttackDungeonRewardExcelTable.EndTimeAttackDungeonRewardExcelTable(builder); + } + + public static void StartTimeAttackDungeonRewardExcelTable(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 EndTimeAttackDungeonRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TimeAttackDungeonRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonRewardType.cs b/SCHALE.Common/FlatData/TimeAttackDungeonRewardType.cs new file mode 100644 index 0000000..c6c3d27 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonRewardType.cs @@ -0,0 +1,15 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TimeAttackDungeonRewardType : int +{ + Fixed = 0, + TimeWeight = 1, +}; + + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs new file mode 100644 index 0000000..20614d5 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcel.cs @@ -0,0 +1,109 @@ +// +// 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 TimeAttackDungeonSeasonManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonSeasonManageExcel GetRootAsTimeAttackDungeonSeasonManageExcel(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonSeasonManageExcel(_bb, new TimeAttackDungeonSeasonManageExcel()); } + public static TimeAttackDungeonSeasonManageExcel GetRootAsTimeAttackDungeonSeasonManageExcel(ByteBuffer _bb, TimeAttackDungeonSeasonManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonSeasonManageExcel __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 string StartDate { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetStartDateBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetStartDateBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetStartDateArray() { return __p.__vector_as_array(6); } + public string EndDate { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetEndDateBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetEndDateBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetEndDateArray() { return __p.__vector_as_array(8); } + public long UISlot { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DungeonId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long DifficultyGeas(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int DifficultyGeasLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDifficultyGeasBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetDifficultyGeasBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetDifficultyGeasArray() { return __p.__vector_as_array(14); } + public long TimeAttackDungeonRewardId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RoomLifeTimeInSeconds { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateTimeAttackDungeonSeasonManageExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long UISlot = 0, + long DungeonId = 0, + VectorOffset DifficultyGeasOffset = default(VectorOffset), + long TimeAttackDungeonRewardId = 0, + long RoomLifeTimeInSeconds = 0) { + builder.StartTable(8); + TimeAttackDungeonSeasonManageExcel.AddRoomLifeTimeInSeconds(builder, RoomLifeTimeInSeconds); + TimeAttackDungeonSeasonManageExcel.AddTimeAttackDungeonRewardId(builder, TimeAttackDungeonRewardId); + TimeAttackDungeonSeasonManageExcel.AddDungeonId(builder, DungeonId); + TimeAttackDungeonSeasonManageExcel.AddUISlot(builder, UISlot); + TimeAttackDungeonSeasonManageExcel.AddId(builder, Id); + TimeAttackDungeonSeasonManageExcel.AddDifficultyGeas(builder, DifficultyGeasOffset); + TimeAttackDungeonSeasonManageExcel.AddEndDate(builder, EndDateOffset); + TimeAttackDungeonSeasonManageExcel.AddStartDate(builder, StartDateOffset); + return TimeAttackDungeonSeasonManageExcel.EndTimeAttackDungeonSeasonManageExcel(builder); + } + + public static void StartTimeAttackDungeonSeasonManageExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(1, startDateOffset.Value, 0); } + public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(2, endDateOffset.Value, 0); } + public static void AddUISlot(FlatBufferBuilder builder, long uISlot) { builder.AddLong(3, uISlot, 0); } + public static void AddDungeonId(FlatBufferBuilder builder, long dungeonId) { builder.AddLong(4, dungeonId, 0); } + public static void AddDifficultyGeas(FlatBufferBuilder builder, VectorOffset difficultyGeasOffset) { builder.AddOffset(5, difficultyGeasOffset.Value, 0); } + public static VectorOffset CreateDifficultyGeasVector(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 CreateDifficultyGeasVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDifficultyGeasVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDifficultyGeasVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDifficultyGeasVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddTimeAttackDungeonRewardId(FlatBufferBuilder builder, long timeAttackDungeonRewardId) { builder.AddLong(6, timeAttackDungeonRewardId, 0); } + public static void AddRoomLifeTimeInSeconds(FlatBufferBuilder builder, long roomLifeTimeInSeconds) { builder.AddLong(7, roomLifeTimeInSeconds, 0); } + public static Offset EndTimeAttackDungeonSeasonManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonSeasonManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*StartDate*/, false) + && verifier.VerifyString(tablePos, 8 /*EndDate*/, false) + && verifier.VerifyField(tablePos, 10 /*UISlot*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*DungeonId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*DifficultyGeas*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*TimeAttackDungeonRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 18 /*RoomLifeTimeInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs new file mode 100644 index 0000000..9caa0e6 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonSeasonManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TimeAttackDungeonSeasonManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TimeAttackDungeonSeasonManageExcelTable GetRootAsTimeAttackDungeonSeasonManageExcelTable(ByteBuffer _bb) { return GetRootAsTimeAttackDungeonSeasonManageExcelTable(_bb, new TimeAttackDungeonSeasonManageExcelTable()); } + public static TimeAttackDungeonSeasonManageExcelTable GetRootAsTimeAttackDungeonSeasonManageExcelTable(ByteBuffer _bb, TimeAttackDungeonSeasonManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TimeAttackDungeonSeasonManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TimeAttackDungeonSeasonManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonSeasonManageExcel?)(new SCHALE.Common.FlatData.TimeAttackDungeonSeasonManageExcel()).__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 CreateTimeAttackDungeonSeasonManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TimeAttackDungeonSeasonManageExcelTable.AddDataList(builder, DataListOffset); + return TimeAttackDungeonSeasonManageExcelTable.EndTimeAttackDungeonSeasonManageExcelTable(builder); + } + + public static void StartTimeAttackDungeonSeasonManageExcelTable(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 EndTimeAttackDungeonSeasonManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TimeAttackDungeonSeasonManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TimeAttackDungeonSeasonManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonType.cs b/SCHALE.Common/FlatData/TimeAttackDungeonType.cs new file mode 100644 index 0000000..b868a11 --- /dev/null +++ b/SCHALE.Common/FlatData/TimeAttackDungeonType.cs @@ -0,0 +1,18 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TimeAttackDungeonType : int +{ + None = 0, + Defense = 1, + Shooting = 2, + Destruction = 3, + Escort = 4, +}; + + +} diff --git a/SCHALE.Common/FlatData/ToastExcel.cs b/SCHALE.Common/FlatData/ToastExcel.cs new file mode 100644 index 0000000..dbccff5 --- /dev/null +++ b/SCHALE.Common/FlatData/ToastExcel.cs @@ -0,0 +1,70 @@ +// +// 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 ToastExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static ToastExcel GetRootAsToastExcel(ByteBuffer _bb) { return GetRootAsToastExcel(_bb, new ToastExcel()); } + public static ToastExcel GetRootAsToastExcel(ByteBuffer _bb, ToastExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public ToastExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.ToastType ToastType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ToastType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ToastType.None; } } + public uint MissionId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint TextId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long LifeTime { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateToastExcel(FlatBufferBuilder builder, + uint Id = 0, + SCHALE.Common.FlatData.ToastType ToastType = SCHALE.Common.FlatData.ToastType.None, + uint MissionId = 0, + uint TextId = 0, + long LifeTime = 0) { + builder.StartTable(5); + ToastExcel.AddLifeTime(builder, LifeTime); + ToastExcel.AddTextId(builder, TextId); + ToastExcel.AddMissionId(builder, MissionId); + ToastExcel.AddToastType(builder, ToastType); + ToastExcel.AddId(builder, Id); + return ToastExcel.EndToastExcel(builder); + } + + public static void StartToastExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, uint id) { builder.AddUint(0, id, 0); } + public static void AddToastType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ToastType toastType) { builder.AddInt(1, (int)toastType, 0); } + public static void AddMissionId(FlatBufferBuilder builder, uint missionId) { builder.AddUint(2, missionId, 0); } + public static void AddTextId(FlatBufferBuilder builder, uint textId) { builder.AddUint(3, textId, 0); } + public static void AddLifeTime(FlatBufferBuilder builder, long lifeTime) { builder.AddLong(4, lifeTime, 0); } + public static Offset EndToastExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class ToastExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*ToastType*/, 4 /*SCHALE.Common.FlatData.ToastType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*MissionId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*TextId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*LifeTime*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/ToastExcelTable.cs b/SCHALE.Common/FlatData/ToastExcelTable.cs new file mode 100644 index 0000000..ca3e4bb --- /dev/null +++ b/SCHALE.Common/FlatData/ToastExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/ToastType.cs b/SCHALE.Common/FlatData/ToastType.cs new file mode 100644 index 0000000..ae4c7b0 --- /dev/null +++ b/SCHALE.Common/FlatData/ToastType.cs @@ -0,0 +1,20 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum ToastType : int +{ + None = 0, + Tactic_Left = 1, + Tactic_Right = 2, + Social_Center = 3, + Social_Mission = 4, + Social_Right = 5, + Notice_Center = 6, +}; + + +} diff --git a/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs b/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs new file mode 100644 index 0000000..3c8b04f --- /dev/null +++ b/SCHALE.Common/FlatData/TranscendenceRecipeExcel.cs @@ -0,0 +1,122 @@ +// +// 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 TranscendenceRecipeExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TranscendenceRecipeExcel GetRootAsTranscendenceRecipeExcel(ByteBuffer _bb) { return GetRootAsTranscendenceRecipeExcel(_bb, new TranscendenceRecipeExcel()); } + public static TranscendenceRecipeExcel GetRootAsTranscendenceRecipeExcel(ByteBuffer _bb, TranscendenceRecipeExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TranscendenceRecipeExcel __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 string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.CurrencyTypes CostCurrencyType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } } + public long CostCurrencyAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } + public int ParcelType_Length { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelType_Bytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetParcelType_Bytes() { return __p.__vector_as_arraysegment(12); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetParcelType_Array() { int o = __p.__offset(12); 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 ParcelId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ParcelIdLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelIdBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetParcelIdBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetParcelIdArray() { return __p.__vector_as_array(14); } + public int ParcelAmount(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ParcelAmountLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetParcelAmountBytes() { return __p.__vector_as_span(16, 4); } +#else + public ArraySegment? GetParcelAmountBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public int[] GetParcelAmountArray() { return __p.__vector_as_array(16); } + + public static Offset CreateTranscendenceRecipeExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset DevNameOffset = default(StringOffset), + SCHALE.Common.FlatData.CurrencyTypes CostCurrencyType = SCHALE.Common.FlatData.CurrencyTypes.Invalid, + long CostCurrencyAmount = 0, + VectorOffset ParcelType_Offset = default(VectorOffset), + VectorOffset ParcelIdOffset = default(VectorOffset), + VectorOffset ParcelAmountOffset = default(VectorOffset)) { + builder.StartTable(7); + TranscendenceRecipeExcel.AddCostCurrencyAmount(builder, CostCurrencyAmount); + TranscendenceRecipeExcel.AddId(builder, Id); + TranscendenceRecipeExcel.AddParcelAmount(builder, ParcelAmountOffset); + TranscendenceRecipeExcel.AddParcelId(builder, ParcelIdOffset); + TranscendenceRecipeExcel.AddParcelType_(builder, ParcelType_Offset); + TranscendenceRecipeExcel.AddCostCurrencyType(builder, CostCurrencyType); + TranscendenceRecipeExcel.AddDevName(builder, DevNameOffset); + return TranscendenceRecipeExcel.EndTranscendenceRecipeExcel(builder); + } + + public static void StartTranscendenceRecipeExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddCostCurrencyType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes costCurrencyType) { builder.AddInt(2, (int)costCurrencyType, 0); } + public static void AddCostCurrencyAmount(FlatBufferBuilder builder, long costCurrencyAmount) { builder.AddLong(3, costCurrencyAmount, 0); } + public static void AddParcelType_(FlatBufferBuilder builder, VectorOffset parcelType_Offset) { builder.AddOffset(4, parcelType_Offset.Value, 0); } + public static VectorOffset CreateParcelType_Vector(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 CreateParcelType_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelType_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelType_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddParcelId(FlatBufferBuilder builder, VectorOffset parcelIdOffset) { builder.AddOffset(5, parcelIdOffset.Value, 0); } + public static VectorOffset CreateParcelIdVector(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 CreateParcelIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddParcelAmount(FlatBufferBuilder builder, VectorOffset parcelAmountOffset) { builder.AddOffset(6, parcelAmountOffset.Value, 0); } + public static VectorOffset CreateParcelAmountVector(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 CreateParcelAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateParcelAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTranscendenceRecipeExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TranscendenceRecipeExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*CostCurrencyType*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CostCurrencyAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ParcelType_*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*ParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*ParcelAmount*/, 4 /*int*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs b/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs new file mode 100644 index 0000000..f50e8ce --- /dev/null +++ b/SCHALE.Common/FlatData/TranscendenceRecipeExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TranscendenceRecipeExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TranscendenceRecipeExcelTable GetRootAsTranscendenceRecipeExcelTable(ByteBuffer _bb) { return GetRootAsTranscendenceRecipeExcelTable(_bb, new TranscendenceRecipeExcelTable()); } + public static TranscendenceRecipeExcelTable GetRootAsTranscendenceRecipeExcelTable(ByteBuffer _bb, TranscendenceRecipeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TranscendenceRecipeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TranscendenceRecipeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TranscendenceRecipeExcel?)(new SCHALE.Common.FlatData.TranscendenceRecipeExcel()).__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 CreateTranscendenceRecipeExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TranscendenceRecipeExcelTable.AddDataList(builder, DataListOffset); + return TranscendenceRecipeExcelTable.EndTranscendenceRecipeExcelTable(builder); + } + + public static void StartTranscendenceRecipeExcelTable(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 EndTranscendenceRecipeExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TranscendenceRecipeExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TranscendenceRecipeExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TrophyCollectionExcel.cs b/SCHALE.Common/FlatData/TrophyCollectionExcel.cs new file mode 100644 index 0000000..61e77a7 --- /dev/null +++ b/SCHALE.Common/FlatData/TrophyCollectionExcel.cs @@ -0,0 +1,72 @@ +// +// 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 TrophyCollectionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TrophyCollectionExcel GetRootAsTrophyCollectionExcel(ByteBuffer _bb) { return GetRootAsTrophyCollectionExcel(_bb, new TrophyCollectionExcel()); } + public static TrophyCollectionExcel GetRootAsTrophyCollectionExcel(ByteBuffer _bb, TrophyCollectionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TrophyCollectionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint LocalizeCodeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long FurnitureId(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int FurnitureIdLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFurnitureIdBytes() { return __p.__vector_as_span(8, 8); } +#else + public ArraySegment? GetFurnitureIdBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public long[] GetFurnitureIdArray() { return __p.__vector_as_array(8); } + + public static Offset CreateTrophyCollectionExcel(FlatBufferBuilder builder, + long GroupId = 0, + uint LocalizeCodeId = 0, + VectorOffset FurnitureIdOffset = default(VectorOffset)) { + builder.StartTable(3); + TrophyCollectionExcel.AddGroupId(builder, GroupId); + TrophyCollectionExcel.AddFurnitureId(builder, FurnitureIdOffset); + TrophyCollectionExcel.AddLocalizeCodeId(builder, LocalizeCodeId); + return TrophyCollectionExcel.EndTrophyCollectionExcel(builder); + } + + public static void StartTrophyCollectionExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddLocalizeCodeId(FlatBufferBuilder builder, uint localizeCodeId) { builder.AddUint(1, localizeCodeId, 0); } + public static void AddFurnitureId(FlatBufferBuilder builder, VectorOffset furnitureIdOffset) { builder.AddOffset(2, furnitureIdOffset.Value, 0); } + public static VectorOffset CreateFurnitureIdVector(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 CreateFurnitureIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFurnitureIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFurnitureIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFurnitureIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndTrophyCollectionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TrophyCollectionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*LocalizeCodeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*FurnitureId*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs b/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs new file mode 100644 index 0000000..6f15438 --- /dev/null +++ b/SCHALE.Common/FlatData/TrophyCollectionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 TrophyCollectionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TrophyCollectionExcelTable GetRootAsTrophyCollectionExcelTable(ByteBuffer _bb) { return GetRootAsTrophyCollectionExcelTable(_bb, new TrophyCollectionExcelTable()); } + public static TrophyCollectionExcelTable GetRootAsTrophyCollectionExcelTable(ByteBuffer _bb, TrophyCollectionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TrophyCollectionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.TrophyCollectionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.TrophyCollectionExcel?)(new SCHALE.Common.FlatData.TrophyCollectionExcel()).__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 CreateTrophyCollectionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + TrophyCollectionExcelTable.AddDataList(builder, DataListOffset); + return TrophyCollectionExcelTable.EndTrophyCollectionExcelTable(builder); + } + + public static void StartTrophyCollectionExcelTable(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 EndTrophyCollectionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TrophyCollectionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.TrophyCollectionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs b/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs new file mode 100644 index 0000000..9c0faf5 --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialCharacterDialogExcel.cs @@ -0,0 +1,88 @@ +// +// 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 TutorialCharacterDialogExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TutorialCharacterDialogExcel GetRootAsTutorialCharacterDialogExcel(ByteBuffer _bb) { return GetRootAsTutorialCharacterDialogExcel(_bb, new TutorialCharacterDialogExcel()); } + public static TutorialCharacterDialogExcel GetRootAsTutorialCharacterDialogExcel(ByteBuffer _bb, TutorialCharacterDialogExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TutorialCharacterDialogExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long TalkId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AnimationName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAnimationNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetAnimationNameArray() { return __p.__vector_as_array(6); } + public string LocalizeKR { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeKRBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(8); } + public string LocalizeJP { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetLocalizeJPBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(10); } + public uint VoiceId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateTutorialCharacterDialogExcel(FlatBufferBuilder builder, + long TalkId = 0, + StringOffset AnimationNameOffset = default(StringOffset), + StringOffset LocalizeKROffset = default(StringOffset), + StringOffset LocalizeJPOffset = default(StringOffset), + uint VoiceId = 0) { + builder.StartTable(5); + TutorialCharacterDialogExcel.AddTalkId(builder, TalkId); + TutorialCharacterDialogExcel.AddVoiceId(builder, VoiceId); + TutorialCharacterDialogExcel.AddLocalizeJP(builder, LocalizeJPOffset); + TutorialCharacterDialogExcel.AddLocalizeKR(builder, LocalizeKROffset); + TutorialCharacterDialogExcel.AddAnimationName(builder, AnimationNameOffset); + return TutorialCharacterDialogExcel.EndTutorialCharacterDialogExcel(builder); + } + + public static void StartTutorialCharacterDialogExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddTalkId(FlatBufferBuilder builder, long talkId) { builder.AddLong(0, talkId, 0); } + public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(1, animationNameOffset.Value, 0); } + public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(2, localizeKROffset.Value, 0); } + public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(3, localizeJPOffset.Value, 0); } + public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(4, voiceId, 0); } + public static Offset EndTutorialCharacterDialogExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TutorialCharacterDialogExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*TalkId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*AnimationName*/, false) + && verifier.VerifyString(tablePos, 8 /*LocalizeKR*/, false) + && verifier.VerifyString(tablePos, 10 /*LocalizeJP*/, false) + && verifier.VerifyField(tablePos, 12 /*VoiceId*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs b/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs new file mode 100644 index 0000000..181d86a --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialCharacterDialogExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 new file mode 100644 index 0000000..8817b50 --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialExcel.cs @@ -0,0 +1,98 @@ +// +// 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 TutorialExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TutorialExcel GetRootAsTutorialExcel(ByteBuffer _bb) { return GetRootAsTutorialExcel(_bb, new TutorialExcel()); } + public static TutorialExcel GetRootAsTutorialExcel(ByteBuffer _bb, TutorialExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TutorialExcel __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 string CompletionReportEventName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetCompletionReportEventNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetCompletionReportEventNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetCompletionReportEventNameArray() { return __p.__vector_as_array(6); } + public bool CompulsoryTutorial { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool DescriptionTutorial { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long TutorialStageId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string UIName(int j) { int o = __p.__offset(14); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int UINameLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } + public string TutorialParentName(int j) { int o = __p.__offset(16); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int TutorialParentNameLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateTutorialExcel(FlatBufferBuilder builder, + long ID = 0, + StringOffset CompletionReportEventNameOffset = default(StringOffset), + bool CompulsoryTutorial = false, + bool DescriptionTutorial = false, + long TutorialStageId = 0, + VectorOffset UINameOffset = default(VectorOffset), + VectorOffset TutorialParentNameOffset = default(VectorOffset)) { + builder.StartTable(7); + TutorialExcel.AddTutorialStageId(builder, TutorialStageId); + TutorialExcel.AddID(builder, ID); + TutorialExcel.AddTutorialParentName(builder, TutorialParentNameOffset); + TutorialExcel.AddUIName(builder, UINameOffset); + TutorialExcel.AddCompletionReportEventName(builder, CompletionReportEventNameOffset); + TutorialExcel.AddDescriptionTutorial(builder, DescriptionTutorial); + TutorialExcel.AddCompulsoryTutorial(builder, CompulsoryTutorial); + return TutorialExcel.EndTutorialExcel(builder); + } + + public static void StartTutorialExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddID(FlatBufferBuilder builder, long iD) { builder.AddLong(0, iD, 0); } + public static void AddCompletionReportEventName(FlatBufferBuilder builder, StringOffset completionReportEventNameOffset) { builder.AddOffset(1, completionReportEventNameOffset.Value, 0); } + public static void AddCompulsoryTutorial(FlatBufferBuilder builder, bool compulsoryTutorial) { builder.AddBool(2, compulsoryTutorial, false); } + public static void AddDescriptionTutorial(FlatBufferBuilder builder, bool descriptionTutorial) { builder.AddBool(3, descriptionTutorial, false); } + public static void AddTutorialStageId(FlatBufferBuilder builder, long tutorialStageId) { builder.AddLong(4, tutorialStageId, 0); } + public static void AddUIName(FlatBufferBuilder builder, VectorOffset uINameOffset) { builder.AddOffset(5, uINameOffset.Value, 0); } + public static VectorOffset CreateUINameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateUINameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartUINameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddTutorialParentName(FlatBufferBuilder builder, VectorOffset tutorialParentNameOffset) { builder.AddOffset(6, tutorialParentNameOffset.Value, 0); } + public static VectorOffset CreateTutorialParentNameVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTutorialParentNameVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTutorialParentNameVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndTutorialExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TutorialExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*ID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*CompletionReportEventName*/, false) + && verifier.VerifyField(tablePos, 8 /*CompulsoryTutorial*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*DescriptionTutorial*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*TutorialStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 14 /*UIName*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 16 /*TutorialParentName*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TutorialExcelTable.cs b/SCHALE.Common/FlatData/TutorialExcelTable.cs new file mode 100644 index 0000000..c9f25b8 --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/TutorialFailureContentType.cs b/SCHALE.Common/FlatData/TutorialFailureContentType.cs new file mode 100644 index 0000000..5cf9d74 --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialFailureContentType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum TutorialFailureContentType : int +{ + None = 0, + Campaign = 1, + WeekDungeon = 2, + Raid = 3, + TimeAttackDungeon = 4, + WorldRaid = 5, + Conquest = 6, + EliminateRaid = 7, + MultiFloorRaid = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs new file mode 100644 index 0000000..3cdc9b5 --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs @@ -0,0 +1,88 @@ +// +// 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 TutorialFailureImageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static TutorialFailureImageExcel GetRootAsTutorialFailureImageExcel(ByteBuffer _bb) { return GetRootAsTutorialFailureImageExcel(_bb, new TutorialFailureImageExcel()); } + public static TutorialFailureImageExcel GetRootAsTutorialFailureImageExcel(ByteBuffer _bb, TutorialFailureImageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public TutorialFailureImageExcel __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 SCHALE.Common.FlatData.TutorialFailureContentType Contents { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TutorialFailureContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TutorialFailureContentType.None; } } + public string Type { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTypeBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetTypeArray() { return __p.__vector_as_array(8); } + public string ImagePathKr { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathKrBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetImagePathKrBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetImagePathKrArray() { return __p.__vector_as_array(10); } + public string ImagePathJp { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetImagePathJpBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetImagePathJpBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetImagePathJpArray() { return __p.__vector_as_array(12); } + + public static Offset CreateTutorialFailureImageExcel(FlatBufferBuilder builder, + long Id = 0, + SCHALE.Common.FlatData.TutorialFailureContentType Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None, + StringOffset TypeOffset = default(StringOffset), + StringOffset ImagePathKrOffset = default(StringOffset), + StringOffset ImagePathJpOffset = default(StringOffset)) { + builder.StartTable(5); + TutorialFailureImageExcel.AddId(builder, Id); + TutorialFailureImageExcel.AddImagePathJp(builder, ImagePathJpOffset); + TutorialFailureImageExcel.AddImagePathKr(builder, ImagePathKrOffset); + TutorialFailureImageExcel.AddType(builder, TypeOffset); + TutorialFailureImageExcel.AddContents(builder, Contents); + return TutorialFailureImageExcel.EndTutorialFailureImageExcel(builder); + } + + public static void StartTutorialFailureImageExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddContents(FlatBufferBuilder builder, SCHALE.Common.FlatData.TutorialFailureContentType contents) { builder.AddInt(1, (int)contents, 0); } + public static void AddType(FlatBufferBuilder builder, StringOffset typeOffset) { builder.AddOffset(2, typeOffset.Value, 0); } + public static void AddImagePathKr(FlatBufferBuilder builder, StringOffset imagePathKrOffset) { builder.AddOffset(3, imagePathKrOffset.Value, 0); } + public static void AddImagePathJp(FlatBufferBuilder builder, StringOffset imagePathJpOffset) { builder.AddOffset(4, imagePathJpOffset.Value, 0); } + public static Offset EndTutorialFailureImageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class TutorialFailureImageExcelVerify +{ + 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 /*Contents*/, 4 /*SCHALE.Common.FlatData.TutorialFailureContentType*/, 4, false) + && verifier.VerifyString(tablePos, 8 /*Type*/, false) + && verifier.VerifyString(tablePos, 10 /*ImagePathKr*/, false) + && verifier.VerifyString(tablePos, 12 /*ImagePathJp*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs b/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs new file mode 100644 index 0000000..5bc576a --- /dev/null +++ b/SCHALE.Common/FlatData/TutorialFailureImageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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/UnitType.cs b/SCHALE.Common/FlatData/UnitType.cs new file mode 100644 index 0000000..fc422e2 --- /dev/null +++ b/SCHALE.Common/FlatData/UnitType.cs @@ -0,0 +1,22 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum UnitType : int +{ + None = 0, + AR = 1, + RF = 2, + HG = 3, + MG = 4, + SMG = 5, + SG = 6, + HZ = 7, + Melee = 8, +}; + + +} diff --git a/SCHALE.Common/FlatData/VideoExcel.cs b/SCHALE.Common/FlatData/VideoExcel.cs new file mode 100644 index 0000000..b7a0be8 --- /dev/null +++ b/SCHALE.Common/FlatData/VideoExcel.cs @@ -0,0 +1,106 @@ +// +// 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 VideoExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VideoExcel GetRootAsVideoExcel(ByteBuffer _bb) { return GetRootAsVideoExcel(_bb, new VideoExcel()); } + public static VideoExcel GetRootAsVideoExcel(ByteBuffer _bb, VideoExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VideoExcel __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 SCHALE.Common.FlatData.Nation Nation_(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Nation)0; } + public int Nation_Length { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNation_Bytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetNation_Bytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.Nation[] GetNation_Array() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Nation[] a = new SCHALE.Common.FlatData.Nation[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(p + i * 4); } return a; } + public string VideoPath(int j) { int o = __p.__offset(8); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int VideoPathLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } + public string SoundPath(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int SoundPathLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public float SoundVolume(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int SoundVolumeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSoundVolumeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetSoundVolumeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public float[] GetSoundVolumeArray() { return __p.__vector_as_array(12); } + + public static Offset CreateVideoExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset Nation_Offset = default(VectorOffset), + VectorOffset VideoPathOffset = default(VectorOffset), + VectorOffset SoundPathOffset = default(VectorOffset), + VectorOffset SoundVolumeOffset = default(VectorOffset)) { + builder.StartTable(5); + VideoExcel.AddId(builder, Id); + VideoExcel.AddSoundVolume(builder, SoundVolumeOffset); + VideoExcel.AddSoundPath(builder, SoundPathOffset); + VideoExcel.AddVideoPath(builder, VideoPathOffset); + VideoExcel.AddNation_(builder, Nation_Offset); + return VideoExcel.EndVideoExcel(builder); + } + + public static void StartVideoExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddNation_(FlatBufferBuilder builder, VectorOffset nation_Offset) { builder.AddOffset(1, nation_Offset.Value, 0); } + public static VectorOffset CreateNation_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] 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 CreateNation_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNation_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVideoPath(FlatBufferBuilder builder, VectorOffset videoPathOffset) { builder.AddOffset(2, videoPathOffset.Value, 0); } + public static VectorOffset CreateVideoPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateVideoPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVideoPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVideoPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVideoPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSoundPath(FlatBufferBuilder builder, VectorOffset soundPathOffset) { builder.AddOffset(3, soundPathOffset.Value, 0); } + public static VectorOffset CreateSoundPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateSoundPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSoundPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSoundVolume(FlatBufferBuilder builder, VectorOffset soundVolumeOffset) { builder.AddOffset(4, soundVolumeOffset.Value, 0); } + public static VectorOffset CreateSoundVolumeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSoundVolumeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndVideoExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VideoExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Nation_*/, 4 /*SCHALE.Common.FlatData.Nation*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 8 /*VideoPath*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*SoundPath*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*SoundVolume*/, 4 /*float*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/VoiceCommonExcel.cs b/SCHALE.Common/FlatData/VoiceCommonExcel.cs new file mode 100644 index 0000000..e9d72b5 --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceCommonExcel.cs @@ -0,0 +1,72 @@ +// +// 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 VoiceCommonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VoiceCommonExcel GetRootAsVoiceCommonExcel(ByteBuffer _bb) { return GetRootAsVoiceCommonExcel(_bb, new VoiceCommonExcel()); } + public static VoiceCommonExcel GetRootAsVoiceCommonExcel(ByteBuffer _bb, VoiceCommonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VoiceCommonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.VoiceEvent VoiceEvent { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.VoiceEvent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.VoiceEvent.OnTSA; } } + public long Rate { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public uint VoiceHash(int j) { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceHashLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceHashBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetVoiceHashBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public uint[] GetVoiceHashArray() { return __p.__vector_as_array(8); } + + public static Offset CreateVoiceCommonExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.VoiceEvent VoiceEvent = SCHALE.Common.FlatData.VoiceEvent.OnTSA, + long Rate = 0, + VectorOffset VoiceHashOffset = default(VectorOffset)) { + builder.StartTable(3); + VoiceCommonExcel.AddRate(builder, Rate); + VoiceCommonExcel.AddVoiceHash(builder, VoiceHashOffset); + VoiceCommonExcel.AddVoiceEvent(builder, VoiceEvent); + return VoiceCommonExcel.EndVoiceCommonExcel(builder); + } + + public static void StartVoiceCommonExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddVoiceEvent(FlatBufferBuilder builder, SCHALE.Common.FlatData.VoiceEvent voiceEvent) { builder.AddInt(0, (int)voiceEvent, 0); } + public static void AddRate(FlatBufferBuilder builder, long rate) { builder.AddLong(1, rate, 0); } + public static void AddVoiceHash(FlatBufferBuilder builder, VectorOffset voiceHashOffset) { builder.AddOffset(2, voiceHashOffset.Value, 0); } + public static VectorOffset CreateVoiceHashVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceHashVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndVoiceCommonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VoiceCommonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*VoiceEvent*/, 4 /*SCHALE.Common.FlatData.VoiceEvent*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Rate*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*VoiceHash*/, 4 /*uint*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/VoiceEvent.cs b/SCHALE.Common/FlatData/VoiceEvent.cs new file mode 100644 index 0000000..0d76b43 --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceEvent.cs @@ -0,0 +1,46 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum VoiceEvent : int +{ + OnTSA = 0, + FormationPickUp = 1, + CampaignResultDefeat = 2, + CampaignResultVictory = 3, + CharacterLevelUp = 4, + CharacterTranscendence = 5, + SkillLevelUp = 6, + Formation = 7, + CampaignCharacterSpawn = 8, + BattleStartTimeline = 9, + BattleVictoryTimeline = 10, + CharacterFavor = 11, + BattleMiss = 12, + BattleBlock = 13, + BattleCover = 14, + BattleMove = 15, + BattleMoveToForamtionBeacon = 16, + MGS_GameStart = 17, + MGS_CharacterSelect = 18, + MGS_Attacking = 19, + MGS_GeasGet = 20, + EXSkill = 21, + EXSkillLevel = 22, + EXSkill2 = 23, + EXSkillLevel2 = 24, + EXSkill3 = 25, + EXSkillLevel3 = 26, + EXSkill4 = 27, + EXSkillLevel4 = 28, + PublicSkill01 = 29, + PublicSkill02 = 30, + InteractionPublicSkill01 = 31, + InteractionPublicSkill02 = 32, +}; + + +} diff --git a/SCHALE.Common/FlatData/VoiceExcel.cs b/SCHALE.Common/FlatData/VoiceExcel.cs new file mode 100644 index 0000000..4891b7b --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceExcel.cs @@ -0,0 +1,100 @@ +// +// 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 VoiceExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VoiceExcel GetRootAsVoiceExcel(ByteBuffer _bb) { return GetRootAsVoiceExcel(_bb, new VoiceExcel()); } + public static VoiceExcel GetRootAsVoiceExcel(ByteBuffer _bb, VoiceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VoiceExcel __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 uint Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.Nation Nation_(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Nation)0; } + public int Nation_Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNation_Bytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetNation_Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.Nation[] GetNation_Array() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Nation[] a = new SCHALE.Common.FlatData.Nation[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(p + i * 4); } return a; } + public string Path(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PathLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public float Volume(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int VolumeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVolumeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetVolumeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public float[] GetVolumeArray() { return __p.__vector_as_array(12); } + + public static Offset CreateVoiceExcel(FlatBufferBuilder builder, + long UniqueId = 0, + uint Id = 0, + VectorOffset Nation_Offset = default(VectorOffset), + VectorOffset PathOffset = default(VectorOffset), + VectorOffset VolumeOffset = default(VectorOffset)) { + builder.StartTable(5); + VoiceExcel.AddUniqueId(builder, UniqueId); + VoiceExcel.AddVolume(builder, VolumeOffset); + VoiceExcel.AddPath(builder, PathOffset); + VoiceExcel.AddNation_(builder, Nation_Offset); + VoiceExcel.AddId(builder, Id); + return VoiceExcel.EndVoiceExcel(builder); + } + + public static void StartVoiceExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddId(FlatBufferBuilder builder, uint id) { builder.AddUint(1, id, 0); } + public static void AddNation_(FlatBufferBuilder builder, VectorOffset nation_Offset) { builder.AddOffset(2, nation_Offset.Value, 0); } + public static VectorOffset CreateNation_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] 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 CreateNation_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNation_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPath(FlatBufferBuilder builder, VectorOffset pathOffset) { builder.AddOffset(3, pathOffset.Value, 0); } + public static VectorOffset CreatePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVolume(FlatBufferBuilder builder, VectorOffset volumeOffset) { builder.AddOffset(4, volumeOffset.Value, 0); } + public static VectorOffset CreateVolumeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVolumeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVolumeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndVoiceExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VoiceExcelVerify +{ + 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 /*Id*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*Nation_*/, 4 /*SCHALE.Common.FlatData.Nation*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*Path*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*Volume*/, 4 /*float*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs b/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs new file mode 100644 index 0000000..7ac502e --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceLogicEffectExcel.cs @@ -0,0 +1,82 @@ +// +// 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 VoiceLogicEffectExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VoiceLogicEffectExcel GetRootAsVoiceLogicEffectExcel(ByteBuffer _bb) { return GetRootAsVoiceLogicEffectExcel(_bb, new VoiceLogicEffectExcel()); } + public static VoiceLogicEffectExcel GetRootAsVoiceLogicEffectExcel(ByteBuffer _bb, VoiceLogicEffectExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VoiceLogicEffectExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public uint LogicEffectNameHash { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool Self { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int Priority { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public uint VoiceHash(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } + public int VoiceHashLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetVoiceHashBytes() { return __p.__vector_as_span(10, 4); } +#else + public ArraySegment? GetVoiceHashBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public uint[] GetVoiceHashArray() { return __p.__vector_as_array(10); } + public uint VoiceId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + + public static Offset CreateVoiceLogicEffectExcel(FlatBufferBuilder builder, + uint LogicEffectNameHash = 0, + bool Self = false, + int Priority = 0, + VectorOffset VoiceHashOffset = default(VectorOffset), + uint VoiceId = 0) { + builder.StartTable(5); + VoiceLogicEffectExcel.AddVoiceId(builder, VoiceId); + VoiceLogicEffectExcel.AddVoiceHash(builder, VoiceHashOffset); + VoiceLogicEffectExcel.AddPriority(builder, Priority); + VoiceLogicEffectExcel.AddLogicEffectNameHash(builder, LogicEffectNameHash); + VoiceLogicEffectExcel.AddSelf(builder, Self); + return VoiceLogicEffectExcel.EndVoiceLogicEffectExcel(builder); + } + + public static void StartVoiceLogicEffectExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddLogicEffectNameHash(FlatBufferBuilder builder, uint logicEffectNameHash) { builder.AddUint(0, logicEffectNameHash, 0); } + public static void AddSelf(FlatBufferBuilder builder, bool self) { builder.AddBool(1, self, false); } + public static void AddPriority(FlatBufferBuilder builder, int priority) { builder.AddInt(2, priority, 0); } + public static void AddVoiceHash(FlatBufferBuilder builder, VectorOffset voiceHashOffset) { builder.AddOffset(3, voiceHashOffset.Value, 0); } + public static VectorOffset CreateVoiceHashVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateVoiceHashVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartVoiceHashVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVoiceId(FlatBufferBuilder builder, uint voiceId) { builder.AddUint(4, voiceId, 0); } + public static Offset EndVoiceLogicEffectExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VoiceLogicEffectExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*LogicEffectNameHash*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*Self*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*Priority*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*VoiceHash*/, 4 /*uint*/, false) + && verifier.VerifyField(tablePos, 12 /*VoiceId*/, 4 /*uint*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs b/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs new file mode 100644 index 0000000..1314744 --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceRoomExceptionExcel.cs @@ -0,0 +1,60 @@ +// +// 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 VoiceRoomExceptionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VoiceRoomExceptionExcel GetRootAsVoiceRoomExceptionExcel(ByteBuffer _bb) { return GetRootAsVoiceRoomExceptionExcel(_bb, new VoiceRoomExceptionExcel()); } + public static VoiceRoomExceptionExcel GetRootAsVoiceRoomExceptionExcel(ByteBuffer _bb, VoiceRoomExceptionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VoiceRoomExceptionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long CostumeUniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.CVPrintType LinkedCharacterVoicePrintType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.CVPrintType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVPrintType.CharacterOverwrite; } } + public long LinkedCostumeUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateVoiceRoomExceptionExcel(FlatBufferBuilder builder, + long CostumeUniqueId = 0, + SCHALE.Common.FlatData.CVPrintType LinkedCharacterVoicePrintType = SCHALE.Common.FlatData.CVPrintType.CharacterOverwrite, + long LinkedCostumeUniqueId = 0) { + builder.StartTable(3); + VoiceRoomExceptionExcel.AddLinkedCostumeUniqueId(builder, LinkedCostumeUniqueId); + VoiceRoomExceptionExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + VoiceRoomExceptionExcel.AddLinkedCharacterVoicePrintType(builder, LinkedCharacterVoicePrintType); + return VoiceRoomExceptionExcel.EndVoiceRoomExceptionExcel(builder); + } + + public static void StartVoiceRoomExceptionExcel(FlatBufferBuilder builder) { builder.StartTable(3); } + public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(0, costumeUniqueId, 0); } + public static void AddLinkedCharacterVoicePrintType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVPrintType linkedCharacterVoicePrintType) { builder.AddInt(1, (int)linkedCharacterVoicePrintType, 0); } + public static void AddLinkedCostumeUniqueId(FlatBufferBuilder builder, long linkedCostumeUniqueId) { builder.AddLong(2, linkedCostumeUniqueId, 0); } + public static Offset EndVoiceRoomExceptionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VoiceRoomExceptionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*CostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*LinkedCharacterVoicePrintType*/, 4 /*SCHALE.Common.FlatData.CVPrintType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LinkedCostumeUniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/VoiceSpineExcel.cs b/SCHALE.Common/FlatData/VoiceSpineExcel.cs new file mode 100644 index 0000000..0a2e83f --- /dev/null +++ b/SCHALE.Common/FlatData/VoiceSpineExcel.cs @@ -0,0 +1,100 @@ +// +// 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 VoiceSpineExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static VoiceSpineExcel GetRootAsVoiceSpineExcel(ByteBuffer _bb) { return GetRootAsVoiceSpineExcel(_bb, new VoiceSpineExcel()); } + public static VoiceSpineExcel GetRootAsVoiceSpineExcel(ByteBuffer _bb, VoiceSpineExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public VoiceSpineExcel __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 uint Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.Nation Nation_(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Nation)0; } + public int Nation_Length { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetNation_Bytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetNation_Bytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.Nation[] GetNation_Array() { int o = __p.__offset(8); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Nation[] a = new SCHALE.Common.FlatData.Nation[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Nation)__p.bb.GetInt(p + i * 4); } return a; } + public string Path(int j) { int o = __p.__offset(10); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int PathLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } + public float SoundVolume(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(__p.__vector(o) + j * 4) : (float)0; } + public int SoundVolumeLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetSoundVolumeBytes() { return __p.__vector_as_span(12, 4); } +#else + public ArraySegment? GetSoundVolumeBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public float[] GetSoundVolumeArray() { return __p.__vector_as_array(12); } + + public static Offset CreateVoiceSpineExcel(FlatBufferBuilder builder, + long UniqueId = 0, + uint Id = 0, + VectorOffset Nation_Offset = default(VectorOffset), + VectorOffset PathOffset = default(VectorOffset), + VectorOffset SoundVolumeOffset = default(VectorOffset)) { + builder.StartTable(5); + VoiceSpineExcel.AddUniqueId(builder, UniqueId); + VoiceSpineExcel.AddSoundVolume(builder, SoundVolumeOffset); + VoiceSpineExcel.AddPath(builder, PathOffset); + VoiceSpineExcel.AddNation_(builder, Nation_Offset); + VoiceSpineExcel.AddId(builder, Id); + return VoiceSpineExcel.EndVoiceSpineExcel(builder); + } + + public static void StartVoiceSpineExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } + public static void AddId(FlatBufferBuilder builder, uint id) { builder.AddUint(1, id, 0); } + public static void AddNation_(FlatBufferBuilder builder, VectorOffset nation_Offset) { builder.AddOffset(2, nation_Offset.Value, 0); } + public static VectorOffset CreateNation_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] 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 CreateNation_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Nation[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNation_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNation_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddPath(FlatBufferBuilder builder, VectorOffset pathOffset) { builder.AddOffset(3, pathOffset.Value, 0); } + public static VectorOffset CreatePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreatePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSoundVolume(FlatBufferBuilder builder, VectorOffset soundVolumeOffset) { builder.AddOffset(4, soundVolumeOffset.Value, 0); } + public static VectorOffset CreateSoundVolumeVector(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddFloat(data[i]); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, float[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateSoundVolumeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartSoundVolumeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndVoiceSpineExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class VoiceSpineExcelVerify +{ + 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 /*Id*/, 4 /*uint*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*Nation_*/, 4 /*SCHALE.Common.FlatData.Nation*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 10 /*Path*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*SoundVolume*/, 4 /*float*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeaponType.cs b/SCHALE.Common/FlatData/WeaponType.cs new file mode 100644 index 0000000..b3892ad --- /dev/null +++ b/SCHALE.Common/FlatData/WeaponType.cs @@ -0,0 +1,33 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum WeaponType : int +{ + None = 0, + SG = 1, + SMG = 2, + AR = 3, + GL = 4, + HG = 5, + RL = 6, + SR = 7, + DSMG = 8, + RG = 9, + DSG = 10, + Vulcan = 11, + Missile = 12, + Cannon = 13, + Taser = 14, + MG = 15, + Binah = 16, + MT = 17, + Relic = 18, + FT = 19, +}; + + +} diff --git a/SCHALE.Common/FlatData/WebAPIErrorLevel.cs b/SCHALE.Common/FlatData/WebAPIErrorLevel.cs new file mode 100644 index 0000000..062ac27 --- /dev/null +++ b/SCHALE.Common/FlatData/WebAPIErrorLevel.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum WebAPIErrorLevel : int +{ + None = 0, + Warning = 1, + Error = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/WeekDay.cs b/SCHALE.Common/FlatData/WeekDay.cs new file mode 100644 index 0000000..a0ce39a --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDay.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum WeekDay : int +{ + Sunday = 0, + Monday = 1, + Tuesday = 2, + Wednesday = 3, + Thursday = 4, + Friday = 5, + Saturday = 6, + All = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonExcel.cs b/SCHALE.Common/FlatData/WeekDungeonExcel.cs new file mode 100644 index 0000000..d354a01 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonExcel.cs @@ -0,0 +1,212 @@ +// +// 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 WeekDungeonExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonExcel GetRootAsWeekDungeonExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonExcel(_bb, new WeekDungeonExcel()); } + public static WeekDungeonExcel GetRootAsWeekDungeonExcel(ByteBuffer _bb, WeekDungeonExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StageId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } + public int Difficulty { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrevStageId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType(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 StageEnterCostTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostTypeBytes() { return __p.__vector_as_span(14, 4); } +#else + public ArraySegment? GetStageEnterCostTypeBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetStageEnterCostTypeArray() { 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 StageEnterCostId(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int StageEnterCostIdLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostIdBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetStageEnterCostIdBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetStageEnterCostIdArray() { return __p.__vector_as_array(16); } + public int StageEnterCostAmount(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int StageEnterCostAmountLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStageEnterCostAmountBytes() { return __p.__vector_as_span(18, 4); } +#else + public ArraySegment? GetStageEnterCostAmountBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public int[] GetStageEnterCostAmountArray() { return __p.__vector_as_array(18); } + public int GroundId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(22); 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(22); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalBytes() { return __p.__vector_as_span(22, 4); } +#else + public ArraySegment? GetStarGoalBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public SCHALE.Common.FlatData.StarGoalType[] GetStarGoalArray() { int o = __p.__offset(22); 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(24); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int StarGoalAmountLength { get { int o = __p.__offset(24); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetStarGoalAmountBytes() { return __p.__vector_as_span(24, 4); } +#else + public ArraySegment? GetStarGoalAmountBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(24); } + public SCHALE.Common.FlatData.StageTopography StageTopography { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } + public long RecommandLevel { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long StageRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PlayTimeLimitInSeconds { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleRewardExp { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleRewardPlayerExp { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroupBuffID(int j) { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int GroupBuffIDLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetGroupBuffIDBytes() { return __p.__vector_as_span(38, 8); } +#else + public ArraySegment? GetGroupBuffIDBytes() { return __p.__vector_as_arraysegment(38); } +#endif + public long[] GetGroupBuffIDArray() { return __p.__vector_as_array(38); } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateWeekDungeonExcel(FlatBufferBuilder builder, + long StageId = 0, + SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType = SCHALE.Common.FlatData.WeekDungeonType.None, + int Difficulty = 0, + long BattleDuration = 0, + long PrevStageId = 0, + VectorOffset StageEnterCostTypeOffset = default(VectorOffset), + VectorOffset StageEnterCostIdOffset = default(VectorOffset), + VectorOffset StageEnterCostAmountOffset = default(VectorOffset), + int GroundId = 0, + VectorOffset StarGoalOffset = default(VectorOffset), + VectorOffset StarGoalAmountOffset = default(VectorOffset), + SCHALE.Common.FlatData.StageTopography StageTopography = SCHALE.Common.FlatData.StageTopography.Street, + long RecommandLevel = 0, + long StageRewardId = 0, + long PlayTimeLimitInSeconds = 0, + long BattleRewardExp = 0, + long BattleRewardPlayerExp = 0, + VectorOffset GroupBuffIDOffset = default(VectorOffset), + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(19); + WeekDungeonExcel.AddBattleRewardPlayerExp(builder, BattleRewardPlayerExp); + WeekDungeonExcel.AddBattleRewardExp(builder, BattleRewardExp); + WeekDungeonExcel.AddPlayTimeLimitInSeconds(builder, PlayTimeLimitInSeconds); + WeekDungeonExcel.AddStageRewardId(builder, StageRewardId); + WeekDungeonExcel.AddRecommandLevel(builder, RecommandLevel); + WeekDungeonExcel.AddPrevStageId(builder, PrevStageId); + WeekDungeonExcel.AddBattleDuration(builder, BattleDuration); + WeekDungeonExcel.AddStageId(builder, StageId); + WeekDungeonExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + WeekDungeonExcel.AddGroupBuffID(builder, GroupBuffIDOffset); + WeekDungeonExcel.AddStageTopography(builder, StageTopography); + WeekDungeonExcel.AddStarGoalAmount(builder, StarGoalAmountOffset); + WeekDungeonExcel.AddStarGoal(builder, StarGoalOffset); + WeekDungeonExcel.AddGroundId(builder, GroundId); + WeekDungeonExcel.AddStageEnterCostAmount(builder, StageEnterCostAmountOffset); + WeekDungeonExcel.AddStageEnterCostId(builder, StageEnterCostIdOffset); + WeekDungeonExcel.AddStageEnterCostType(builder, StageEnterCostTypeOffset); + WeekDungeonExcel.AddDifficulty(builder, Difficulty); + WeekDungeonExcel.AddWeekDungeonType(builder, WeekDungeonType); + return WeekDungeonExcel.EndWeekDungeonExcel(builder); + } + + public static void StartWeekDungeonExcel(FlatBufferBuilder builder) { builder.StartTable(19); } + public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(0, stageId, 0); } + public static void AddWeekDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType weekDungeonType) { builder.AddInt(1, (int)weekDungeonType, 0); } + public static void AddDifficulty(FlatBufferBuilder builder, int difficulty) { builder.AddInt(2, difficulty, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(3, battleDuration, 0); } + public static void AddPrevStageId(FlatBufferBuilder builder, long prevStageId) { builder.AddLong(4, prevStageId, 0); } + public static void AddStageEnterCostType(FlatBufferBuilder builder, VectorOffset stageEnterCostTypeOffset) { builder.AddOffset(5, stageEnterCostTypeOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostTypeVector(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 CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostTypeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostTypeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddStageEnterCostId(FlatBufferBuilder builder, VectorOffset stageEnterCostIdOffset) { builder.AddOffset(6, stageEnterCostIdOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostIdVector(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 CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddStageEnterCostAmount(FlatBufferBuilder builder, VectorOffset stageEnterCostAmountOffset) { builder.AddOffset(7, stageEnterCostAmountOffset.Value, 0); } + public static VectorOffset CreateStageEnterCostAmountVector(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 CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateStageEnterCostAmountVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartStageEnterCostAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddGroundId(FlatBufferBuilder builder, int groundId) { builder.AddInt(8, groundId, 0); } + public static void AddStarGoal(FlatBufferBuilder builder, VectorOffset starGoalOffset) { builder.AddOffset(9, 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(10, 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 AddStageTopography(FlatBufferBuilder builder, SCHALE.Common.FlatData.StageTopography stageTopography) { builder.AddInt(11, (int)stageTopography, 0); } + public static void AddRecommandLevel(FlatBufferBuilder builder, long recommandLevel) { builder.AddLong(12, recommandLevel, 0); } + public static void AddStageRewardId(FlatBufferBuilder builder, long stageRewardId) { builder.AddLong(13, stageRewardId, 0); } + public static void AddPlayTimeLimitInSeconds(FlatBufferBuilder builder, long playTimeLimitInSeconds) { builder.AddLong(14, playTimeLimitInSeconds, 0); } + public static void AddBattleRewardExp(FlatBufferBuilder builder, long battleRewardExp) { builder.AddLong(15, battleRewardExp, 0); } + public static void AddBattleRewardPlayerExp(FlatBufferBuilder builder, long battleRewardPlayerExp) { builder.AddLong(16, battleRewardPlayerExp, 0); } + public static void AddGroupBuffID(FlatBufferBuilder builder, VectorOffset groupBuffIDOffset) { builder.AddOffset(17, groupBuffIDOffset.Value, 0); } + public static VectorOffset CreateGroupBuffIDVector(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 CreateGroupBuffIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGroupBuffIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateGroupBuffIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartGroupBuffIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(18, (int)echelonExtensionType, 0); } + public static Offset EndWeekDungeonExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StageId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*WeekDungeonType*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*Difficulty*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*PrevStageId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*StageEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*StageEnterCostId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*StageEnterCostAmount*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 20 /*GroundId*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 22 /*StarGoal*/, 4 /*SCHALE.Common.FlatData.StarGoalType*/, false) + && verifier.VerifyVectorOfData(tablePos, 24 /*StarGoalAmount*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 26 /*StageTopography*/, 4 /*SCHALE.Common.FlatData.StageTopography*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*RecommandLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*StageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*PlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*BattleRewardExp*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*BattleRewardPlayerExp*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 38 /*GroupBuffID*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 40 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs new file mode 100644 index 0000000..9cc4679 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WeekDungeonExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonExcelTable GetRootAsWeekDungeonExcelTable(ByteBuffer _bb) { return GetRootAsWeekDungeonExcelTable(_bb, new WeekDungeonExcelTable()); } + public static WeekDungeonExcelTable GetRootAsWeekDungeonExcelTable(ByteBuffer _bb, WeekDungeonExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDungeonExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonExcel?)(new SCHALE.Common.FlatData.WeekDungeonExcel()).__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 CreateWeekDungeonExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WeekDungeonExcelTable.AddDataList(builder, DataListOffset); + return WeekDungeonExcelTable.EndWeekDungeonExcelTable(builder); + } + + public static void StartWeekDungeonExcelTable(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 EndWeekDungeonExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WeekDungeonExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs new file mode 100644 index 0000000..c06a755 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcel.cs @@ -0,0 +1,140 @@ +// +// 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 WeekDungeonFindGiftRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonFindGiftRewardExcel GetRootAsWeekDungeonFindGiftRewardExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonFindGiftRewardExcel(_bb, new WeekDungeonFindGiftRewardExcel()); } + public static WeekDungeonFindGiftRewardExcel GetRootAsWeekDungeonFindGiftRewardExcel(ByteBuffer _bb, WeekDungeonFindGiftRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonFindGiftRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long StageRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } +#else + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(8); 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(8); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelTypeBytes() { return __p.__vector_as_span(8, 4); } +#else + public ArraySegment? GetRewardParcelTypeBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public SCHALE.Common.FlatData.ParcelType[] GetRewardParcelTypeArray() { int o = __p.__offset(8); 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(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelIdLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelIdBytes() { return __p.__vector_as_span(10, 8); } +#else + public ArraySegment? GetRewardParcelIdBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public long[] GetRewardParcelIdArray() { return __p.__vector_as_array(10); } + public long RewardParcelAmount(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelAmountLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelAmountBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetRewardParcelAmountBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetRewardParcelAmountArray() { return __p.__vector_as_array(12); } + public long RewardParcelProbability(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int RewardParcelProbabilityLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetRewardParcelProbabilityBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetRewardParcelProbabilityBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetRewardParcelProbabilityArray() { return __p.__vector_as_array(14); } + public string DropItemModelPrefabPath(int j) { int o = __p.__offset(16); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int DropItemModelPrefabPathLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } + + public static Offset CreateWeekDungeonFindGiftRewardExcel(FlatBufferBuilder builder, + long StageRewardId = 0, + StringOffset DevNameOffset = default(StringOffset), + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardParcelAmountOffset = default(VectorOffset), + VectorOffset RewardParcelProbabilityOffset = default(VectorOffset), + VectorOffset DropItemModelPrefabPathOffset = default(VectorOffset)) { + builder.StartTable(7); + WeekDungeonFindGiftRewardExcel.AddStageRewardId(builder, StageRewardId); + WeekDungeonFindGiftRewardExcel.AddDropItemModelPrefabPath(builder, DropItemModelPrefabPathOffset); + WeekDungeonFindGiftRewardExcel.AddRewardParcelProbability(builder, RewardParcelProbabilityOffset); + WeekDungeonFindGiftRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); + WeekDungeonFindGiftRewardExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + WeekDungeonFindGiftRewardExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + WeekDungeonFindGiftRewardExcel.AddDevName(builder, DevNameOffset); + return WeekDungeonFindGiftRewardExcel.EndWeekDungeonFindGiftRewardExcel(builder); + } + + public static void StartWeekDungeonFindGiftRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddStageRewardId(FlatBufferBuilder builder, long stageRewardId) { builder.AddLong(0, stageRewardId, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, VectorOffset rewardParcelTypeOffset) { builder.AddOffset(2, 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(3, 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(4, 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 void AddRewardParcelProbability(FlatBufferBuilder builder, VectorOffset rewardParcelProbabilityOffset) { builder.AddOffset(5, rewardParcelProbabilityOffset.Value, 0); } + public static VectorOffset CreateRewardParcelProbabilityVector(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 CreateRewardParcelProbabilityVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelProbabilityVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateRewardParcelProbabilityVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartRewardParcelProbabilityVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDropItemModelPrefabPath(FlatBufferBuilder builder, VectorOffset dropItemModelPrefabPathOffset) { builder.AddOffset(6, dropItemModelPrefabPathOffset.Value, 0); } + public static VectorOffset CreateDropItemModelPrefabPathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateDropItemModelPrefabPathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDropItemModelPrefabPathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDropItemModelPrefabPathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDropItemModelPrefabPathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndWeekDungeonFindGiftRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonFindGiftRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*StageRewardId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyVectorOfData(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, false) + && verifier.VerifyVectorOfData(tablePos, 10 /*RewardParcelId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*RewardParcelAmount*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*RewardParcelProbability*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 16 /*DropItemModelPrefabPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs new file mode 100644 index 0000000..3bc93e0 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonFindGiftRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WeekDungeonFindGiftRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonFindGiftRewardExcelTable GetRootAsWeekDungeonFindGiftRewardExcelTable(ByteBuffer _bb) { return GetRootAsWeekDungeonFindGiftRewardExcelTable(_bb, new WeekDungeonFindGiftRewardExcelTable()); } + public static WeekDungeonFindGiftRewardExcelTable GetRootAsWeekDungeonFindGiftRewardExcelTable(ByteBuffer _bb, WeekDungeonFindGiftRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonFindGiftRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDungeonFindGiftRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonFindGiftRewardExcel?)(new SCHALE.Common.FlatData.WeekDungeonFindGiftRewardExcel()).__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 CreateWeekDungeonFindGiftRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WeekDungeonFindGiftRewardExcelTable.AddDataList(builder, DataListOffset); + return WeekDungeonFindGiftRewardExcelTable.EndWeekDungeonFindGiftRewardExcelTable(builder); + } + + public static void StartWeekDungeonFindGiftRewardExcelTable(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 EndWeekDungeonFindGiftRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonFindGiftRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WeekDungeonFindGiftRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs new file mode 100644 index 0000000..cd837e0 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs @@ -0,0 +1,76 @@ +// +// 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 WeekDungeonGroupBuffExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonGroupBuffExcel GetRootAsWeekDungeonGroupBuffExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonGroupBuffExcel(_bb, new WeekDungeonGroupBuffExcel()); } + public static WeekDungeonGroupBuffExcel GetRootAsWeekDungeonGroupBuffExcel(ByteBuffer _bb, WeekDungeonGroupBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonGroupBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long WeekDungeonBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.School School { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } + public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public uint FormationLocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public string SkillGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetSkillGroupIdBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetSkillGroupIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetSkillGroupIdArray() { return __p.__vector_as_array(12); } + + public static Offset CreateWeekDungeonGroupBuffExcel(FlatBufferBuilder builder, + long WeekDungeonBuffId = 0, + SCHALE.Common.FlatData.School School = SCHALE.Common.FlatData.School.None, + uint RecommandLocalizeEtcId = 0, + uint FormationLocalizeEtcId = 0, + StringOffset SkillGroupIdOffset = default(StringOffset)) { + builder.StartTable(5); + WeekDungeonGroupBuffExcel.AddWeekDungeonBuffId(builder, WeekDungeonBuffId); + WeekDungeonGroupBuffExcel.AddSkillGroupId(builder, SkillGroupIdOffset); + WeekDungeonGroupBuffExcel.AddFormationLocalizeEtcId(builder, FormationLocalizeEtcId); + WeekDungeonGroupBuffExcel.AddRecommandLocalizeEtcId(builder, RecommandLocalizeEtcId); + WeekDungeonGroupBuffExcel.AddSchool(builder, School); + return WeekDungeonGroupBuffExcel.EndWeekDungeonGroupBuffExcel(builder); + } + + public static void StartWeekDungeonGroupBuffExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void AddWeekDungeonBuffId(FlatBufferBuilder builder, long weekDungeonBuffId) { builder.AddLong(0, weekDungeonBuffId, 0); } + public static void AddSchool(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school) { builder.AddInt(1, (int)school, 0); } + public static void AddRecommandLocalizeEtcId(FlatBufferBuilder builder, uint recommandLocalizeEtcId) { builder.AddUint(2, recommandLocalizeEtcId, 0); } + public static void AddFormationLocalizeEtcId(FlatBufferBuilder builder, uint formationLocalizeEtcId) { builder.AddUint(3, formationLocalizeEtcId, 0); } + public static void AddSkillGroupId(FlatBufferBuilder builder, StringOffset skillGroupIdOffset) { builder.AddOffset(4, skillGroupIdOffset.Value, 0); } + public static Offset EndWeekDungeonGroupBuffExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonGroupBuffExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*WeekDungeonBuffId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*School*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RecommandLocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*FormationLocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyString(tablePos, 12 /*SkillGroupId*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs new file mode 100644 index 0000000..c53fa88 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WeekDungeonGroupBuffExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonGroupBuffExcelTable GetRootAsWeekDungeonGroupBuffExcelTable(ByteBuffer _bb) { return GetRootAsWeekDungeonGroupBuffExcelTable(_bb, new WeekDungeonGroupBuffExcelTable()); } + public static WeekDungeonGroupBuffExcelTable GetRootAsWeekDungeonGroupBuffExcelTable(ByteBuffer _bb, WeekDungeonGroupBuffExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonGroupBuffExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDungeonGroupBuffExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonGroupBuffExcel?)(new SCHALE.Common.FlatData.WeekDungeonGroupBuffExcel()).__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 CreateWeekDungeonGroupBuffExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WeekDungeonGroupBuffExcelTable.AddDataList(builder, DataListOffset); + return WeekDungeonGroupBuffExcelTable.EndWeekDungeonGroupBuffExcelTable(builder); + } + + public static void StartWeekDungeonGroupBuffExcelTable(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 EndWeekDungeonGroupBuffExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonGroupBuffExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WeekDungeonGroupBuffExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs new file mode 100644 index 0000000..648c110 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcel.cs @@ -0,0 +1,67 @@ +// +// 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 WeekDungeonOpenScheduleExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonOpenScheduleExcel GetRootAsWeekDungeonOpenScheduleExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonOpenScheduleExcel(_bb, new WeekDungeonOpenScheduleExcel()); } + public static WeekDungeonOpenScheduleExcel GetRootAsWeekDungeonOpenScheduleExcel(ByteBuffer _bb, WeekDungeonOpenScheduleExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonOpenScheduleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDay WeekDay { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDay)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDay.Sunday; } } + public SCHALE.Common.FlatData.WeekDungeonType Open(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.WeekDungeonType)0; } + public int OpenLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetOpenBytes() { return __p.__vector_as_span(6, 4); } +#else + public ArraySegment? GetOpenBytes() { return __p.__vector_as_arraysegment(6); } +#endif + public SCHALE.Common.FlatData.WeekDungeonType[] GetOpenArray() { int o = __p.__offset(6); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.WeekDungeonType[] a = new SCHALE.Common.FlatData.WeekDungeonType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(p + i * 4); } return a; } + + public static Offset CreateWeekDungeonOpenScheduleExcel(FlatBufferBuilder builder, + SCHALE.Common.FlatData.WeekDay WeekDay = SCHALE.Common.FlatData.WeekDay.Sunday, + VectorOffset OpenOffset = default(VectorOffset)) { + builder.StartTable(2); + WeekDungeonOpenScheduleExcel.AddOpen(builder, OpenOffset); + WeekDungeonOpenScheduleExcel.AddWeekDay(builder, WeekDay); + return WeekDungeonOpenScheduleExcel.EndWeekDungeonOpenScheduleExcel(builder); + } + + public static void StartWeekDungeonOpenScheduleExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddWeekDay(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDay weekDay) { builder.AddInt(0, (int)weekDay, 0); } + public static void AddOpen(FlatBufferBuilder builder, VectorOffset openOffset) { builder.AddOffset(1, openOffset.Value, 0); } + public static VectorOffset CreateOpenVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType[] 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 CreateOpenVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOpenVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static Offset EndWeekDungeonOpenScheduleExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonOpenScheduleExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*WeekDay*/, 4 /*SCHALE.Common.FlatData.WeekDay*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 6 /*Open*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs new file mode 100644 index 0000000..d43a7a6 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonOpenScheduleExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WeekDungeonOpenScheduleExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonOpenScheduleExcelTable GetRootAsWeekDungeonOpenScheduleExcelTable(ByteBuffer _bb) { return GetRootAsWeekDungeonOpenScheduleExcelTable(_bb, new WeekDungeonOpenScheduleExcelTable()); } + public static WeekDungeonOpenScheduleExcelTable GetRootAsWeekDungeonOpenScheduleExcelTable(ByteBuffer _bb, WeekDungeonOpenScheduleExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonOpenScheduleExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDungeonOpenScheduleExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonOpenScheduleExcel?)(new SCHALE.Common.FlatData.WeekDungeonOpenScheduleExcel()).__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 CreateWeekDungeonOpenScheduleExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WeekDungeonOpenScheduleExcelTable.AddDataList(builder, DataListOffset); + return WeekDungeonOpenScheduleExcelTable.EndWeekDungeonOpenScheduleExcelTable(builder); + } + + public static void StartWeekDungeonOpenScheduleExcelTable(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 EndWeekDungeonOpenScheduleExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonOpenScheduleExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WeekDungeonOpenScheduleExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs new file mode 100644 index 0000000..8b6fb53 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs @@ -0,0 +1,91 @@ +// +// 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 WeekDungeonRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonRewardExcel GetRootAsWeekDungeonRewardExcel(ByteBuffer _bb) { return GetRootAsWeekDungeonRewardExcel(_bb, new WeekDungeonRewardExcel()); } + public static WeekDungeonRewardExcel GetRootAsWeekDungeonRewardExcel(ByteBuffer _bb, WeekDungeonRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.WeekDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); 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(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RewardParcelProbability { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string DropItemModelPrefabPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetDropItemModelPrefabPathBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetDropItemModelPrefabPathBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetDropItemModelPrefabPathArray() { return __p.__vector_as_array(18); } + + public static Offset CreateWeekDungeonRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + SCHALE.Common.FlatData.WeekDungeonType DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long RewardParcelId = 0, + long RewardParcelAmount = 0, + long RewardParcelProbability = 0, + bool IsDisplayed = false, + StringOffset DropItemModelPrefabPathOffset = default(StringOffset)) { + builder.StartTable(8); + WeekDungeonRewardExcel.AddRewardParcelProbability(builder, RewardParcelProbability); + WeekDungeonRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmount); + WeekDungeonRewardExcel.AddRewardParcelId(builder, RewardParcelId); + WeekDungeonRewardExcel.AddGroupId(builder, GroupId); + WeekDungeonRewardExcel.AddDropItemModelPrefabPath(builder, DropItemModelPrefabPathOffset); + WeekDungeonRewardExcel.AddRewardParcelType(builder, RewardParcelType); + WeekDungeonRewardExcel.AddDungeonType(builder, DungeonType); + WeekDungeonRewardExcel.AddIsDisplayed(builder, IsDisplayed); + return WeekDungeonRewardExcel.EndWeekDungeonRewardExcel(builder); + } + + public static void StartWeekDungeonRewardExcel(FlatBufferBuilder builder) { builder.StartTable(8); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddDungeonType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeekDungeonType dungeonType) { builder.AddInt(1, (int)dungeonType, 0); } + public static void AddRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType rewardParcelType) { builder.AddInt(2, (int)rewardParcelType, 0); } + public static void AddRewardParcelId(FlatBufferBuilder builder, long rewardParcelId) { builder.AddLong(3, rewardParcelId, 0); } + public static void AddRewardParcelAmount(FlatBufferBuilder builder, long rewardParcelAmount) { builder.AddLong(4, rewardParcelAmount, 0); } + public static void AddRewardParcelProbability(FlatBufferBuilder builder, long rewardParcelProbability) { builder.AddLong(5, rewardParcelProbability, 0); } + public static void AddIsDisplayed(FlatBufferBuilder builder, bool isDisplayed) { builder.AddBool(6, isDisplayed, false); } + public static void AddDropItemModelPrefabPath(FlatBufferBuilder builder, StringOffset dropItemModelPrefabPathOffset) { builder.AddOffset(7, dropItemModelPrefabPathOffset.Value, 0); } + public static Offset EndWeekDungeonRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*DungeonType*/, 4 /*SCHALE.Common.FlatData.WeekDungeonType*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*RewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*RewardParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 12 /*RewardParcelAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 14 /*RewardParcelProbability*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 16 /*IsDisplayed*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 18 /*DropItemModelPrefabPath*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs new file mode 100644 index 0000000..20b29bc --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WeekDungeonRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WeekDungeonRewardExcelTable GetRootAsWeekDungeonRewardExcelTable(ByteBuffer _bb) { return GetRootAsWeekDungeonRewardExcelTable(_bb, new WeekDungeonRewardExcelTable()); } + public static WeekDungeonRewardExcelTable GetRootAsWeekDungeonRewardExcelTable(ByteBuffer _bb, WeekDungeonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WeekDungeonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WeekDungeonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonRewardExcel?)(new SCHALE.Common.FlatData.WeekDungeonRewardExcel()).__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 CreateWeekDungeonRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WeekDungeonRewardExcelTable.AddDataList(builder, DataListOffset); + return WeekDungeonRewardExcelTable.EndWeekDungeonRewardExcelTable(builder); + } + + public static void StartWeekDungeonRewardExcelTable(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 EndWeekDungeonRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WeekDungeonRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WeekDungeonRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WeekDungeonType.cs b/SCHALE.Common/FlatData/WeekDungeonType.cs new file mode 100644 index 0000000..3d04cf2 --- /dev/null +++ b/SCHALE.Common/FlatData/WeekDungeonType.cs @@ -0,0 +1,19 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum WeekDungeonType : int +{ + None = 0, + ChaserA = 1, + ChaserB = 2, + ChaserC = 3, + FindGift = 4, + Blood = 5, +}; + + +} diff --git a/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs b/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs new file mode 100644 index 0000000..9b838e6 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidBossGroupExcel.cs @@ -0,0 +1,201 @@ +// +// 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 WorldRaidBossGroupExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidBossGroupExcel GetRootAsWorldRaidBossGroupExcel(ByteBuffer _bb) { return GetRootAsWorldRaidBossGroupExcel(_bb, new WorldRaidBossGroupExcel()); } + public static WorldRaidBossGroupExcel GetRootAsWorldRaidBossGroupExcel(ByteBuffer _bb, WorldRaidBossGroupExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidBossGroupExcel __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 WorldRaidBossGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string WorldBossName { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldBossNameBytes() { return __p.__vector_as_span(8, 1); } +#else + public ArraySegment? GetWorldBossNameBytes() { return __p.__vector_as_arraysegment(8); } +#endif + public byte[] GetWorldBossNameArray() { return __p.__vector_as_array(8); } + public string WorldBossPopupPortrait { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldBossPopupPortraitBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetWorldBossPopupPortraitBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetWorldBossPopupPortraitArray() { return __p.__vector_as_array(10); } + public string WorldBossPopupBG { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldBossPopupBGBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetWorldBossPopupBGBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetWorldBossPopupBGArray() { return __p.__vector_as_array(12); } + public string WorldBossParcelPortrait { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldBossParcelPortraitBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetWorldBossParcelPortraitBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetWorldBossParcelPortraitArray() { return __p.__vector_as_array(14); } + public string WorldBossListParcel { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldBossListParcelBytes() { return __p.__vector_as_span(16, 1); } +#else + public ArraySegment? GetWorldBossListParcelBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public byte[] GetWorldBossListParcelArray() { return __p.__vector_as_array(16); } + public long WorldBossHP { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool UIHideBeforeSpawn { get { int o = __p.__offset(20); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool HideAnotherBossKilled { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long WorldBossClearRewardGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long AnotherBossKilled(int j) { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int AnotherBossKilledLength { get { int o = __p.__offset(26); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetAnotherBossKilledBytes() { return __p.__vector_as_span(26, 8); } +#else + public ArraySegment? GetAnotherBossKilledBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public long[] GetAnotherBossKilledArray() { return __p.__vector_as_array(26); } + public long EchelonConstraintGroupId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ExclusiveOperatorBossSpawn { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExclusiveOperatorBossSpawnBytes() { return __p.__vector_as_span(30, 1); } +#else + public ArraySegment? GetExclusiveOperatorBossSpawnBytes() { return __p.__vector_as_arraysegment(30); } +#endif + public byte[] GetExclusiveOperatorBossSpawnArray() { return __p.__vector_as_array(30); } + public string ExclusiveOperatorBossKill { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExclusiveOperatorBossKillBytes() { return __p.__vector_as_span(32, 1); } +#else + public ArraySegment? GetExclusiveOperatorBossKillBytes() { return __p.__vector_as_arraysegment(32); } +#endif + public byte[] GetExclusiveOperatorBossKillArray() { return __p.__vector_as_array(32); } + public string ExclusiveOperatorScenarioBattle { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExclusiveOperatorScenarioBattleBytes() { return __p.__vector_as_span(34, 1); } +#else + public ArraySegment? GetExclusiveOperatorScenarioBattleBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public byte[] GetExclusiveOperatorScenarioBattleArray() { return __p.__vector_as_array(34); } + public string ExclusiveOperatorBossDamaged { get { int o = __p.__offset(36); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetExclusiveOperatorBossDamagedBytes() { return __p.__vector_as_span(36, 1); } +#else + public ArraySegment? GetExclusiveOperatorBossDamagedBytes() { return __p.__vector_as_arraysegment(36); } +#endif + public byte[] GetExclusiveOperatorBossDamagedArray() { return __p.__vector_as_array(36); } + public long BossGroupOpenCondition { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateWorldRaidBossGroupExcel(FlatBufferBuilder builder, + long Id = 0, + long WorldRaidBossGroupId = 0, + StringOffset WorldBossNameOffset = default(StringOffset), + StringOffset WorldBossPopupPortraitOffset = default(StringOffset), + StringOffset WorldBossPopupBGOffset = default(StringOffset), + StringOffset WorldBossParcelPortraitOffset = default(StringOffset), + StringOffset WorldBossListParcelOffset = default(StringOffset), + long WorldBossHP = 0, + bool UIHideBeforeSpawn = false, + bool HideAnotherBossKilled = false, + long WorldBossClearRewardGroupId = 0, + VectorOffset AnotherBossKilledOffset = default(VectorOffset), + long EchelonConstraintGroupId = 0, + StringOffset ExclusiveOperatorBossSpawnOffset = default(StringOffset), + StringOffset ExclusiveOperatorBossKillOffset = default(StringOffset), + StringOffset ExclusiveOperatorScenarioBattleOffset = default(StringOffset), + StringOffset ExclusiveOperatorBossDamagedOffset = default(StringOffset), + long BossGroupOpenCondition = 0) { + builder.StartTable(18); + WorldRaidBossGroupExcel.AddBossGroupOpenCondition(builder, BossGroupOpenCondition); + WorldRaidBossGroupExcel.AddEchelonConstraintGroupId(builder, EchelonConstraintGroupId); + WorldRaidBossGroupExcel.AddWorldBossClearRewardGroupId(builder, WorldBossClearRewardGroupId); + WorldRaidBossGroupExcel.AddWorldBossHP(builder, WorldBossHP); + WorldRaidBossGroupExcel.AddWorldRaidBossGroupId(builder, WorldRaidBossGroupId); + WorldRaidBossGroupExcel.AddId(builder, Id); + WorldRaidBossGroupExcel.AddExclusiveOperatorBossDamaged(builder, ExclusiveOperatorBossDamagedOffset); + WorldRaidBossGroupExcel.AddExclusiveOperatorScenarioBattle(builder, ExclusiveOperatorScenarioBattleOffset); + WorldRaidBossGroupExcel.AddExclusiveOperatorBossKill(builder, ExclusiveOperatorBossKillOffset); + WorldRaidBossGroupExcel.AddExclusiveOperatorBossSpawn(builder, ExclusiveOperatorBossSpawnOffset); + WorldRaidBossGroupExcel.AddAnotherBossKilled(builder, AnotherBossKilledOffset); + WorldRaidBossGroupExcel.AddWorldBossListParcel(builder, WorldBossListParcelOffset); + WorldRaidBossGroupExcel.AddWorldBossParcelPortrait(builder, WorldBossParcelPortraitOffset); + WorldRaidBossGroupExcel.AddWorldBossPopupBG(builder, WorldBossPopupBGOffset); + WorldRaidBossGroupExcel.AddWorldBossPopupPortrait(builder, WorldBossPopupPortraitOffset); + WorldRaidBossGroupExcel.AddWorldBossName(builder, WorldBossNameOffset); + WorldRaidBossGroupExcel.AddHideAnotherBossKilled(builder, HideAnotherBossKilled); + WorldRaidBossGroupExcel.AddUIHideBeforeSpawn(builder, UIHideBeforeSpawn); + return WorldRaidBossGroupExcel.EndWorldRaidBossGroupExcel(builder); + } + + public static void StartWorldRaidBossGroupExcel(FlatBufferBuilder builder) { builder.StartTable(18); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddWorldRaidBossGroupId(FlatBufferBuilder builder, long worldRaidBossGroupId) { builder.AddLong(1, worldRaidBossGroupId, 0); } + public static void AddWorldBossName(FlatBufferBuilder builder, StringOffset worldBossNameOffset) { builder.AddOffset(2, worldBossNameOffset.Value, 0); } + public static void AddWorldBossPopupPortrait(FlatBufferBuilder builder, StringOffset worldBossPopupPortraitOffset) { builder.AddOffset(3, worldBossPopupPortraitOffset.Value, 0); } + public static void AddWorldBossPopupBG(FlatBufferBuilder builder, StringOffset worldBossPopupBGOffset) { builder.AddOffset(4, worldBossPopupBGOffset.Value, 0); } + public static void AddWorldBossParcelPortrait(FlatBufferBuilder builder, StringOffset worldBossParcelPortraitOffset) { builder.AddOffset(5, worldBossParcelPortraitOffset.Value, 0); } + public static void AddWorldBossListParcel(FlatBufferBuilder builder, StringOffset worldBossListParcelOffset) { builder.AddOffset(6, worldBossListParcelOffset.Value, 0); } + public static void AddWorldBossHP(FlatBufferBuilder builder, long worldBossHP) { builder.AddLong(7, worldBossHP, 0); } + public static void AddUIHideBeforeSpawn(FlatBufferBuilder builder, bool uIHideBeforeSpawn) { builder.AddBool(8, uIHideBeforeSpawn, false); } + public static void AddHideAnotherBossKilled(FlatBufferBuilder builder, bool hideAnotherBossKilled) { builder.AddBool(9, hideAnotherBossKilled, false); } + public static void AddWorldBossClearRewardGroupId(FlatBufferBuilder builder, long worldBossClearRewardGroupId) { builder.AddLong(10, worldBossClearRewardGroupId, 0); } + public static void AddAnotherBossKilled(FlatBufferBuilder builder, VectorOffset anotherBossKilledOffset) { builder.AddOffset(11, anotherBossKilledOffset.Value, 0); } + public static VectorOffset CreateAnotherBossKilledVector(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 CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAnotherBossKilledVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAnotherBossKilledVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddEchelonConstraintGroupId(FlatBufferBuilder builder, long echelonConstraintGroupId) { builder.AddLong(12, echelonConstraintGroupId, 0); } + public static void AddExclusiveOperatorBossSpawn(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossSpawnOffset) { builder.AddOffset(13, exclusiveOperatorBossSpawnOffset.Value, 0); } + public static void AddExclusiveOperatorBossKill(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossKillOffset) { builder.AddOffset(14, exclusiveOperatorBossKillOffset.Value, 0); } + public static void AddExclusiveOperatorScenarioBattle(FlatBufferBuilder builder, StringOffset exclusiveOperatorScenarioBattleOffset) { builder.AddOffset(15, exclusiveOperatorScenarioBattleOffset.Value, 0); } + public static void AddExclusiveOperatorBossDamaged(FlatBufferBuilder builder, StringOffset exclusiveOperatorBossDamagedOffset) { builder.AddOffset(16, exclusiveOperatorBossDamagedOffset.Value, 0); } + public static void AddBossGroupOpenCondition(FlatBufferBuilder builder, long bossGroupOpenCondition) { builder.AddLong(17, bossGroupOpenCondition, 0); } + public static Offset EndWorldRaidBossGroupExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidBossGroupExcelVerify +{ + 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 /*WorldRaidBossGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 8 /*WorldBossName*/, false) + && verifier.VerifyString(tablePos, 10 /*WorldBossPopupPortrait*/, false) + && verifier.VerifyString(tablePos, 12 /*WorldBossPopupBG*/, false) + && verifier.VerifyString(tablePos, 14 /*WorldBossParcelPortrait*/, false) + && verifier.VerifyString(tablePos, 16 /*WorldBossListParcel*/, false) + && verifier.VerifyField(tablePos, 18 /*WorldBossHP*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*UIHideBeforeSpawn*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 22 /*HideAnotherBossKilled*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*WorldBossClearRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 26 /*AnotherBossKilled*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 28 /*EchelonConstraintGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 30 /*ExclusiveOperatorBossSpawn*/, false) + && verifier.VerifyString(tablePos, 32 /*ExclusiveOperatorBossKill*/, false) + && verifier.VerifyString(tablePos, 34 /*ExclusiveOperatorScenarioBattle*/, false) + && verifier.VerifyString(tablePos, 36 /*ExclusiveOperatorBossDamaged*/, false) + && verifier.VerifyField(tablePos, 38 /*BossGroupOpenCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs new file mode 100644 index 0000000..b9e64fc --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidBossGroupExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidBossGroupExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidBossGroupExcelTable GetRootAsWorldRaidBossGroupExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidBossGroupExcelTable(_bb, new WorldRaidBossGroupExcelTable()); } + public static WorldRaidBossGroupExcelTable GetRootAsWorldRaidBossGroupExcelTable(ByteBuffer _bb, WorldRaidBossGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidBossGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidBossGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidBossGroupExcel?)(new SCHALE.Common.FlatData.WorldRaidBossGroupExcel()).__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 CreateWorldRaidBossGroupExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidBossGroupExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidBossGroupExcelTable.EndWorldRaidBossGroupExcelTable(builder); + } + + public static void StartWorldRaidBossGroupExcelTable(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 EndWorldRaidBossGroupExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidBossGroupExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidBossGroupExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs b/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs new file mode 100644 index 0000000..8e84294 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidConditionExcel.cs @@ -0,0 +1,138 @@ +// +// 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 WorldRaidConditionExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidConditionExcel GetRootAsWorldRaidConditionExcel(ByteBuffer _bb) { return GetRootAsWorldRaidConditionExcel(_bb, new WorldRaidConditionExcel()); } + public static WorldRaidConditionExcel GetRootAsWorldRaidConditionExcel(ByteBuffer _bb, WorldRaidConditionExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidConditionExcel __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 string LockUI(int j) { int o = __p.__offset(6); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int LockUILength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } + public bool HideWhenLocked { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AccountLevel { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScenarioModeId(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ScenarioModeIdLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetScenarioModeIdBytes() { return __p.__vector_as_span(12, 8); } +#else + public ArraySegment? GetScenarioModeIdBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public long[] GetScenarioModeIdArray() { return __p.__vector_as_array(12); } + public long CampaignStageID(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CampaignStageIDLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetCampaignStageIDBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetCampaignStageIDBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetCampaignStageIDArray() { return __p.__vector_as_array(14); } + public SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MultipleConditionCheckType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MultipleConditionCheckType.And; } } + public string AfterWhenDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetAfterWhenDateBytes() { return __p.__vector_as_span(18, 1); } +#else + public ArraySegment? GetAfterWhenDateBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public byte[] GetAfterWhenDateArray() { return __p.__vector_as_array(18); } + public long WorldRaidBossKill(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int WorldRaidBossKillLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidBossKillBytes() { return __p.__vector_as_span(20, 8); } +#else + public ArraySegment? GetWorldRaidBossKillBytes() { return __p.__vector_as_arraysegment(20); } +#endif + public long[] GetWorldRaidBossKillArray() { return __p.__vector_as_array(20); } + + public static Offset CreateWorldRaidConditionExcel(FlatBufferBuilder builder, + long Id = 0, + VectorOffset LockUIOffset = default(VectorOffset), + bool HideWhenLocked = false, + long AccountLevel = 0, + VectorOffset ScenarioModeIdOffset = default(VectorOffset), + VectorOffset CampaignStageIDOffset = default(VectorOffset), + SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType = SCHALE.Common.FlatData.MultipleConditionCheckType.And, + StringOffset AfterWhenDateOffset = default(StringOffset), + VectorOffset WorldRaidBossKillOffset = default(VectorOffset)) { + builder.StartTable(9); + WorldRaidConditionExcel.AddAccountLevel(builder, AccountLevel); + WorldRaidConditionExcel.AddId(builder, Id); + WorldRaidConditionExcel.AddWorldRaidBossKill(builder, WorldRaidBossKillOffset); + WorldRaidConditionExcel.AddAfterWhenDate(builder, AfterWhenDateOffset); + WorldRaidConditionExcel.AddMultipleConditionCheckType(builder, MultipleConditionCheckType); + WorldRaidConditionExcel.AddCampaignStageID(builder, CampaignStageIDOffset); + WorldRaidConditionExcel.AddScenarioModeId(builder, ScenarioModeIdOffset); + WorldRaidConditionExcel.AddLockUI(builder, LockUIOffset); + WorldRaidConditionExcel.AddHideWhenLocked(builder, HideWhenLocked); + return WorldRaidConditionExcel.EndWorldRaidConditionExcel(builder); + } + + public static void StartWorldRaidConditionExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddLockUI(FlatBufferBuilder builder, VectorOffset lockUIOffset) { builder.AddOffset(1, lockUIOffset.Value, 0); } + public static VectorOffset CreateLockUIVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLockUIVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLockUIVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddHideWhenLocked(FlatBufferBuilder builder, bool hideWhenLocked) { builder.AddBool(2, hideWhenLocked, false); } + public static void AddAccountLevel(FlatBufferBuilder builder, long accountLevel) { builder.AddLong(3, accountLevel, 0); } + public static void AddScenarioModeId(FlatBufferBuilder builder, VectorOffset scenarioModeIdOffset) { builder.AddOffset(4, scenarioModeIdOffset.Value, 0); } + public static VectorOffset CreateScenarioModeIdVector(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 CreateScenarioModeIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioModeIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioModeIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartScenarioModeIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddCampaignStageID(FlatBufferBuilder builder, VectorOffset campaignStageIDOffset) { builder.AddOffset(5, campaignStageIDOffset.Value, 0); } + public static VectorOffset CreateCampaignStageIDVector(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 CreateCampaignStageIDVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCampaignStageIDVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateCampaignStageIDVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartCampaignStageIDVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddMultipleConditionCheckType(FlatBufferBuilder builder, SCHALE.Common.FlatData.MultipleConditionCheckType multipleConditionCheckType) { builder.AddInt(6, (int)multipleConditionCheckType, 0); } + public static void AddAfterWhenDate(FlatBufferBuilder builder, StringOffset afterWhenDateOffset) { builder.AddOffset(7, afterWhenDateOffset.Value, 0); } + public static void AddWorldRaidBossKill(FlatBufferBuilder builder, VectorOffset worldRaidBossKillOffset) { builder.AddOffset(8, worldRaidBossKillOffset.Value, 0); } + public static VectorOffset CreateWorldRaidBossKillVector(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 CreateWorldRaidBossKillVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateWorldRaidBossKillVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateWorldRaidBossKillVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartWorldRaidBossKillVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static Offset EndWorldRaidConditionExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidConditionExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 6 /*LockUI*/, false) + && verifier.VerifyField(tablePos, 8 /*HideWhenLocked*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*AccountLevel*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 12 /*ScenarioModeId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*CampaignStageID*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 16 /*MultipleConditionCheckType*/, 4 /*SCHALE.Common.FlatData.MultipleConditionCheckType*/, 4, false) + && verifier.VerifyString(tablePos, 18 /*AfterWhenDate*/, false) + && verifier.VerifyVectorOfData(tablePos, 20 /*WorldRaidBossKill*/, 8 /*long*/, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs new file mode 100644 index 0000000..6536947 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidConditionExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidConditionExcelTable GetRootAsWorldRaidConditionExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidConditionExcelTable(_bb, new WorldRaidConditionExcelTable()); } + public static WorldRaidConditionExcelTable GetRootAsWorldRaidConditionExcelTable(ByteBuffer _bb, WorldRaidConditionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidConditionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidConditionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidConditionExcel?)(new SCHALE.Common.FlatData.WorldRaidConditionExcel()).__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 CreateWorldRaidConditionExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidConditionExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidConditionExcelTable.EndWorldRaidConditionExcelTable(builder); + } + + public static void StartWorldRaidConditionExcelTable(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 EndWorldRaidConditionExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidConditionExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidConditionExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidDifficulty.cs b/SCHALE.Common/FlatData/WorldRaidDifficulty.cs new file mode 100644 index 0000000..7f964ad --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidDifficulty.cs @@ -0,0 +1,21 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum WorldRaidDifficulty : int +{ + None = 0, + A = 1, + B = 2, + C = 3, + D = 4, + E = 5, + F = 6, + G = 7, +}; + + +} diff --git a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs new file mode 100644 index 0000000..5c24409 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcel.cs @@ -0,0 +1,55 @@ +// +// 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 WorldRaidFavorBuffExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidFavorBuffExcel GetRootAsWorldRaidFavorBuffExcel(ByteBuffer _bb) { return GetRootAsWorldRaidFavorBuffExcel(_bb, new WorldRaidFavorBuffExcel()); } + public static WorldRaidFavorBuffExcel GetRootAsWorldRaidFavorBuffExcel(ByteBuffer _bb, WorldRaidFavorBuffExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidFavorBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long WorldRaidFavorRank { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidFavorRankBonus { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateWorldRaidFavorBuffExcel(FlatBufferBuilder builder, + long WorldRaidFavorRank = 0, + long WorldRaidFavorRankBonus = 0) { + builder.StartTable(2); + WorldRaidFavorBuffExcel.AddWorldRaidFavorRankBonus(builder, WorldRaidFavorRankBonus); + WorldRaidFavorBuffExcel.AddWorldRaidFavorRank(builder, WorldRaidFavorRank); + return WorldRaidFavorBuffExcel.EndWorldRaidFavorBuffExcel(builder); + } + + public static void StartWorldRaidFavorBuffExcel(FlatBufferBuilder builder) { builder.StartTable(2); } + public static void AddWorldRaidFavorRank(FlatBufferBuilder builder, long worldRaidFavorRank) { builder.AddLong(0, worldRaidFavorRank, 0); } + public static void AddWorldRaidFavorRankBonus(FlatBufferBuilder builder, long worldRaidFavorRankBonus) { builder.AddLong(1, worldRaidFavorRankBonus, 0); } + public static Offset EndWorldRaidFavorBuffExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidFavorBuffExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*WorldRaidFavorRank*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*WorldRaidFavorRankBonus*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs new file mode 100644 index 0000000..e19a41d --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidFavorBuffExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidFavorBuffExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidFavorBuffExcelTable GetRootAsWorldRaidFavorBuffExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidFavorBuffExcelTable(_bb, new WorldRaidFavorBuffExcelTable()); } + public static WorldRaidFavorBuffExcelTable GetRootAsWorldRaidFavorBuffExcelTable(ByteBuffer _bb, WorldRaidFavorBuffExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidFavorBuffExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidFavorBuffExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidFavorBuffExcel?)(new SCHALE.Common.FlatData.WorldRaidFavorBuffExcel()).__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 CreateWorldRaidFavorBuffExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidFavorBuffExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidFavorBuffExcelTable.EndWorldRaidFavorBuffExcelTable(builder); + } + + public static void StartWorldRaidFavorBuffExcelTable(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 EndWorldRaidFavorBuffExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidFavorBuffExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidFavorBuffExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs new file mode 100644 index 0000000..76170af --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcel.cs @@ -0,0 +1,233 @@ +// +// 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 WorldRaidSeasonManageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidSeasonManageExcel GetRootAsWorldRaidSeasonManageExcel(ByteBuffer _bb) { return GetRootAsWorldRaidSeasonManageExcel(_bb, new WorldRaidSeasonManageExcel()); } + public static WorldRaidSeasonManageExcel GetRootAsWorldRaidSeasonManageExcel(ByteBuffer _bb, WorldRaidSeasonManageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidSeasonManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long SeasonId { 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.CurrencyTypes EnterTicket { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.CurrencyTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CurrencyTypes.Invalid; } } + public string WorldRaidLobbyScene { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidLobbySceneBytes() { return __p.__vector_as_span(10, 1); } +#else + public ArraySegment? GetWorldRaidLobbySceneBytes() { return __p.__vector_as_arraysegment(10); } +#endif + public byte[] GetWorldRaidLobbySceneArray() { return __p.__vector_as_array(10); } + public string WorldRaidLobbyBanner { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidLobbyBannerBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetWorldRaidLobbyBannerBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetWorldRaidLobbyBannerArray() { return __p.__vector_as_array(12); } + public string WorldRaidLobbyBG { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidLobbyBGBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetWorldRaidLobbyBGBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetWorldRaidLobbyBGArray() { return __p.__vector_as_array(14); } + public bool WorldRaidLobbyBannerShow { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long SeasonOpenCondition { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidLobbyEnterScenario { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool CanPlayNotSeasonTime { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool WorldRaidUniqueThemeLobbyUI { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string WorldRaidUniqueThemeName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidUniqueThemeNameBytes() { return __p.__vector_as_span(26, 1); } +#else + public ArraySegment? GetWorldRaidUniqueThemeNameBytes() { return __p.__vector_as_arraysegment(26); } +#endif + public byte[] GetWorldRaidUniqueThemeNameArray() { return __p.__vector_as_array(26); } + public bool CanWorldRaidGemEnter { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool HideWorldRaidTicketUI { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseWorldRaidCommonToast { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long OpenRaidBossGroupId(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int OpenRaidBossGroupIdLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetOpenRaidBossGroupIdBytes() { return __p.__vector_as_span(34, 8); } +#else + public ArraySegment? GetOpenRaidBossGroupIdBytes() { return __p.__vector_as_arraysegment(34); } +#endif + public long[] GetOpenRaidBossGroupIdArray() { return __p.__vector_as_array(34); } + public string BossSpawnTime(int j) { int o = __p.__offset(36); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int BossSpawnTimeLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } + public string EliminateTime(int j) { int o = __p.__offset(38); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int EliminateTimeLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } + public long ScenarioOutputConditionId(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ScenarioOutputConditionIdLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetScenarioOutputConditionIdBytes() { return __p.__vector_as_span(40, 8); } +#else + public ArraySegment? GetScenarioOutputConditionIdBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public long[] GetScenarioOutputConditionIdArray() { return __p.__vector_as_array(40); } + public long ConditionScenarioGroupid(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int ConditionScenarioGroupidLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetConditionScenarioGroupidBytes() { return __p.__vector_as_span(42, 8); } +#else + public ArraySegment? GetConditionScenarioGroupidBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public long[] GetConditionScenarioGroupidArray() { return __p.__vector_as_array(42); } + public string WorldRaidMapEnterOperator { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetWorldRaidMapEnterOperatorBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetWorldRaidMapEnterOperatorBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetWorldRaidMapEnterOperatorArray() { return __p.__vector_as_array(44); } + public bool UseFavorRankBuff { get { int o = __p.__offset(46); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + + public static Offset CreateWorldRaidSeasonManageExcel(FlatBufferBuilder builder, + long SeasonId = 0, + long EventContentId = 0, + SCHALE.Common.FlatData.CurrencyTypes EnterTicket = SCHALE.Common.FlatData.CurrencyTypes.Invalid, + StringOffset WorldRaidLobbySceneOffset = default(StringOffset), + StringOffset WorldRaidLobbyBannerOffset = default(StringOffset), + StringOffset WorldRaidLobbyBGOffset = default(StringOffset), + bool WorldRaidLobbyBannerShow = false, + long SeasonOpenCondition = 0, + long WorldRaidLobbyEnterScenario = 0, + bool CanPlayNotSeasonTime = false, + bool WorldRaidUniqueThemeLobbyUI = false, + StringOffset WorldRaidUniqueThemeNameOffset = default(StringOffset), + bool CanWorldRaidGemEnter = false, + bool HideWorldRaidTicketUI = false, + bool UseWorldRaidCommonToast = false, + VectorOffset OpenRaidBossGroupIdOffset = default(VectorOffset), + VectorOffset BossSpawnTimeOffset = default(VectorOffset), + VectorOffset EliminateTimeOffset = default(VectorOffset), + VectorOffset ScenarioOutputConditionIdOffset = default(VectorOffset), + VectorOffset ConditionScenarioGroupidOffset = default(VectorOffset), + StringOffset WorldRaidMapEnterOperatorOffset = default(StringOffset), + bool UseFavorRankBuff = false) { + builder.StartTable(22); + WorldRaidSeasonManageExcel.AddWorldRaidLobbyEnterScenario(builder, WorldRaidLobbyEnterScenario); + WorldRaidSeasonManageExcel.AddSeasonOpenCondition(builder, SeasonOpenCondition); + WorldRaidSeasonManageExcel.AddEventContentId(builder, EventContentId); + WorldRaidSeasonManageExcel.AddSeasonId(builder, SeasonId); + WorldRaidSeasonManageExcel.AddWorldRaidMapEnterOperator(builder, WorldRaidMapEnterOperatorOffset); + WorldRaidSeasonManageExcel.AddConditionScenarioGroupid(builder, ConditionScenarioGroupidOffset); + WorldRaidSeasonManageExcel.AddScenarioOutputConditionId(builder, ScenarioOutputConditionIdOffset); + WorldRaidSeasonManageExcel.AddEliminateTime(builder, EliminateTimeOffset); + WorldRaidSeasonManageExcel.AddBossSpawnTime(builder, BossSpawnTimeOffset); + WorldRaidSeasonManageExcel.AddOpenRaidBossGroupId(builder, OpenRaidBossGroupIdOffset); + WorldRaidSeasonManageExcel.AddWorldRaidUniqueThemeName(builder, WorldRaidUniqueThemeNameOffset); + WorldRaidSeasonManageExcel.AddWorldRaidLobbyBG(builder, WorldRaidLobbyBGOffset); + WorldRaidSeasonManageExcel.AddWorldRaidLobbyBanner(builder, WorldRaidLobbyBannerOffset); + WorldRaidSeasonManageExcel.AddWorldRaidLobbyScene(builder, WorldRaidLobbySceneOffset); + WorldRaidSeasonManageExcel.AddEnterTicket(builder, EnterTicket); + WorldRaidSeasonManageExcel.AddUseFavorRankBuff(builder, UseFavorRankBuff); + WorldRaidSeasonManageExcel.AddUseWorldRaidCommonToast(builder, UseWorldRaidCommonToast); + WorldRaidSeasonManageExcel.AddHideWorldRaidTicketUI(builder, HideWorldRaidTicketUI); + WorldRaidSeasonManageExcel.AddCanWorldRaidGemEnter(builder, CanWorldRaidGemEnter); + WorldRaidSeasonManageExcel.AddWorldRaidUniqueThemeLobbyUI(builder, WorldRaidUniqueThemeLobbyUI); + WorldRaidSeasonManageExcel.AddCanPlayNotSeasonTime(builder, CanPlayNotSeasonTime); + WorldRaidSeasonManageExcel.AddWorldRaidLobbyBannerShow(builder, WorldRaidLobbyBannerShow); + return WorldRaidSeasonManageExcel.EndWorldRaidSeasonManageExcel(builder); + } + + public static void StartWorldRaidSeasonManageExcel(FlatBufferBuilder builder) { builder.StartTable(22); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } + public static void AddEnterTicket(FlatBufferBuilder builder, SCHALE.Common.FlatData.CurrencyTypes enterTicket) { builder.AddInt(2, (int)enterTicket, 0); } + public static void AddWorldRaidLobbyScene(FlatBufferBuilder builder, StringOffset worldRaidLobbySceneOffset) { builder.AddOffset(3, worldRaidLobbySceneOffset.Value, 0); } + public static void AddWorldRaidLobbyBanner(FlatBufferBuilder builder, StringOffset worldRaidLobbyBannerOffset) { builder.AddOffset(4, worldRaidLobbyBannerOffset.Value, 0); } + public static void AddWorldRaidLobbyBG(FlatBufferBuilder builder, StringOffset worldRaidLobbyBGOffset) { builder.AddOffset(5, worldRaidLobbyBGOffset.Value, 0); } + public static void AddWorldRaidLobbyBannerShow(FlatBufferBuilder builder, bool worldRaidLobbyBannerShow) { builder.AddBool(6, worldRaidLobbyBannerShow, false); } + public static void AddSeasonOpenCondition(FlatBufferBuilder builder, long seasonOpenCondition) { builder.AddLong(7, seasonOpenCondition, 0); } + public static void AddWorldRaidLobbyEnterScenario(FlatBufferBuilder builder, long worldRaidLobbyEnterScenario) { builder.AddLong(8, worldRaidLobbyEnterScenario, 0); } + public static void AddCanPlayNotSeasonTime(FlatBufferBuilder builder, bool canPlayNotSeasonTime) { builder.AddBool(9, canPlayNotSeasonTime, false); } + public static void AddWorldRaidUniqueThemeLobbyUI(FlatBufferBuilder builder, bool worldRaidUniqueThemeLobbyUI) { builder.AddBool(10, worldRaidUniqueThemeLobbyUI, false); } + public static void AddWorldRaidUniqueThemeName(FlatBufferBuilder builder, StringOffset worldRaidUniqueThemeNameOffset) { builder.AddOffset(11, worldRaidUniqueThemeNameOffset.Value, 0); } + public static void AddCanWorldRaidGemEnter(FlatBufferBuilder builder, bool canWorldRaidGemEnter) { builder.AddBool(12, canWorldRaidGemEnter, false); } + public static void AddHideWorldRaidTicketUI(FlatBufferBuilder builder, bool hideWorldRaidTicketUI) { builder.AddBool(13, hideWorldRaidTicketUI, false); } + public static void AddUseWorldRaidCommonToast(FlatBufferBuilder builder, bool useWorldRaidCommonToast) { builder.AddBool(14, useWorldRaidCommonToast, false); } + public static void AddOpenRaidBossGroupId(FlatBufferBuilder builder, VectorOffset openRaidBossGroupIdOffset) { builder.AddOffset(15, openRaidBossGroupIdOffset.Value, 0); } + public static VectorOffset CreateOpenRaidBossGroupIdVector(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 CreateOpenRaidBossGroupIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenRaidBossGroupIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateOpenRaidBossGroupIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartOpenRaidBossGroupIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddBossSpawnTime(FlatBufferBuilder builder, VectorOffset bossSpawnTimeOffset) { builder.AddOffset(16, bossSpawnTimeOffset.Value, 0); } + public static VectorOffset CreateBossSpawnTimeVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateBossSpawnTimeVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossSpawnTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossSpawnTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBossSpawnTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddEliminateTime(FlatBufferBuilder builder, VectorOffset eliminateTimeOffset) { builder.AddOffset(17, eliminateTimeOffset.Value, 0); } + public static VectorOffset CreateEliminateTimeVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateEliminateTimeVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEliminateTimeVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEliminateTimeVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEliminateTimeVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddScenarioOutputConditionId(FlatBufferBuilder builder, VectorOffset scenarioOutputConditionIdOffset) { builder.AddOffset(18, scenarioOutputConditionIdOffset.Value, 0); } + public static VectorOffset CreateScenarioOutputConditionIdVector(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 CreateScenarioOutputConditionIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioOutputConditionIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateScenarioOutputConditionIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartScenarioOutputConditionIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddConditionScenarioGroupid(FlatBufferBuilder builder, VectorOffset conditionScenarioGroupidOffset) { builder.AddOffset(19, conditionScenarioGroupidOffset.Value, 0); } + public static VectorOffset CreateConditionScenarioGroupidVector(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 CreateConditionScenarioGroupidVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionScenarioGroupidVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateConditionScenarioGroupidVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartConditionScenarioGroupidVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddWorldRaidMapEnterOperator(FlatBufferBuilder builder, StringOffset worldRaidMapEnterOperatorOffset) { builder.AddOffset(20, worldRaidMapEnterOperatorOffset.Value, 0); } + public static void AddUseFavorRankBuff(FlatBufferBuilder builder, bool useFavorRankBuff) { builder.AddBool(21, useFavorRankBuff, false); } + public static Offset EndWorldRaidSeasonManageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidSeasonManageExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*EventContentId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*EnterTicket*/, 4 /*SCHALE.Common.FlatData.CurrencyTypes*/, 4, false) + && verifier.VerifyString(tablePos, 10 /*WorldRaidLobbyScene*/, false) + && verifier.VerifyString(tablePos, 12 /*WorldRaidLobbyBanner*/, false) + && verifier.VerifyString(tablePos, 14 /*WorldRaidLobbyBG*/, false) + && verifier.VerifyField(tablePos, 16 /*WorldRaidLobbyBannerShow*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 18 /*SeasonOpenCondition*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 20 /*WorldRaidLobbyEnterScenario*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*CanPlayNotSeasonTime*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*WorldRaidUniqueThemeLobbyUI*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 26 /*WorldRaidUniqueThemeName*/, false) + && verifier.VerifyField(tablePos, 28 /*CanWorldRaidGemEnter*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*HideWorldRaidTicketUI*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 32 /*UseWorldRaidCommonToast*/, 1 /*bool*/, 1, false) + && verifier.VerifyVectorOfData(tablePos, 34 /*OpenRaidBossGroupId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 36 /*BossSpawnTime*/, false) + && verifier.VerifyVectorOfStrings(tablePos, 38 /*EliminateTime*/, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*ScenarioOutputConditionId*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*ConditionScenarioGroupid*/, 8 /*long*/, false) + && verifier.VerifyString(tablePos, 44 /*WorldRaidMapEnterOperator*/, false) + && verifier.VerifyField(tablePos, 46 /*UseFavorRankBuff*/, 1 /*bool*/, 1, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs new file mode 100644 index 0000000..dd140c2 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidSeasonManageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidSeasonManageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidSeasonManageExcelTable GetRootAsWorldRaidSeasonManageExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidSeasonManageExcelTable(_bb, new WorldRaidSeasonManageExcelTable()); } + public static WorldRaidSeasonManageExcelTable GetRootAsWorldRaidSeasonManageExcelTable(ByteBuffer _bb, WorldRaidSeasonManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidSeasonManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidSeasonManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidSeasonManageExcel?)(new SCHALE.Common.FlatData.WorldRaidSeasonManageExcel()).__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 CreateWorldRaidSeasonManageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidSeasonManageExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidSeasonManageExcelTable.EndWorldRaidSeasonManageExcelTable(builder); + } + + public static void StartWorldRaidSeasonManageExcelTable(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 EndWorldRaidSeasonManageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidSeasonManageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidSeasonManageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidStageExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs new file mode 100644 index 0000000..35e76e2 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs @@ -0,0 +1,304 @@ +// +// 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 WorldRaidStageExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidStageExcel GetRootAsWorldRaidStageExcel(ByteBuffer _bb) { return GetRootAsWorldRaidStageExcel(_bb, new WorldRaidStageExcel()); } + public static WorldRaidStageExcel GetRootAsWorldRaidStageExcel(ByteBuffer _bb, WorldRaidStageExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidStageExcel __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 UseBossIndex { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool UseBossAIPhaseSync { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long WorldRaidBossGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PortraitPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPortraitPathBytes() { return __p.__vector_as_span(12, 1); } +#else + public ArraySegment? GetPortraitPathBytes() { return __p.__vector_as_arraysegment(12); } +#endif + public byte[] GetPortraitPathArray() { return __p.__vector_as_array(12); } + public string BGPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetBGPathBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetBGPathBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetBGPathArray() { return __p.__vector_as_array(14); } + public long RaidCharacterId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BossCharacterId(int j) { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int BossCharacterIdLength { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBossCharacterIdBytes() { return __p.__vector_as_span(18, 8); } +#else + public ArraySegment? GetBossCharacterIdBytes() { return __p.__vector_as_arraysegment(18); } +#endif + public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(18); } + public long AssistCharacterLimitCount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WorldRaidDifficulty.None; } } + public bool DifficultyOpenCondition { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long RaidEnterAmount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ReEnterAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long BattleDuration { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long GroundId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidBattleEndRewardGroupId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidRewardGroupId { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BattleReadyTimelinePath(int j) { int o = __p.__offset(38); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int BattleReadyTimelinePathLength { get { int o = __p.__offset(38); return o != 0 ? __p.__vector_len(o) : 0; } } + public int BattleReadyTimelinePhaseStart(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseStartLength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_span(40, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseStartBytes() { return __p.__vector_as_arraysegment(40); } +#endif + public int[] GetBattleReadyTimelinePhaseStartArray() { return __p.__vector_as_array(40); } + public int BattleReadyTimelinePhaseEnd(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int BattleReadyTimelinePhaseEndLength { get { int o = __p.__offset(42); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_span(42, 4); } +#else + public ArraySegment? GetBattleReadyTimelinePhaseEndBytes() { return __p.__vector_as_arraysegment(42); } +#endif + public int[] GetBattleReadyTimelinePhaseEndArray() { return __p.__vector_as_array(42); } + public string VictoryTimelinePath { get { int o = __p.__offset(44); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetVictoryTimelinePathBytes() { return __p.__vector_as_span(44, 1); } +#else + public ArraySegment? GetVictoryTimelinePathBytes() { return __p.__vector_as_arraysegment(44); } +#endif + public byte[] GetVictoryTimelinePathArray() { return __p.__vector_as_array(44); } + public string PhaseChangeTimelinePath { get { int o = __p.__offset(46); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_span(46, 1); } +#else + public ArraySegment? GetPhaseChangeTimelinePathBytes() { return __p.__vector_as_arraysegment(46); } +#endif + public byte[] GetPhaseChangeTimelinePathArray() { return __p.__vector_as_array(46); } + public long TimeLinePhase { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long EnterScenarioKey { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClearScenarioKey { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool UseFixedEchelon { get { int o = __p.__offset(54); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long FixedEchelonId { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsRaidScenarioBattle { get { int o = __p.__offset(58); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool ShowSkillCard { get { int o = __p.__offset(60); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint BossBGInfoKey { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long DamageToWorldBoss { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AllyPassiveSkill(int j) { int o = __p.__offset(66); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } + public int AllyPassiveSkillLength { get { int o = __p.__offset(66); return o != 0 ? __p.__vector_len(o) : 0; } } + public int AllyPassiveSkillLevel(int j) { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int AllyPassiveSkillLevelLength { get { int o = __p.__offset(68); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_span(68, 4); } +#else + public ArraySegment? GetAllyPassiveSkillLevelBytes() { return __p.__vector_as_arraysegment(68); } +#endif + public int[] GetAllyPassiveSkillLevelArray() { return __p.__vector_as_array(68); } + public bool SaveCurrentLocalBossHP { get { int o = __p.__offset(70); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType { get { int o = __p.__offset(72); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } + + public static Offset CreateWorldRaidStageExcel(FlatBufferBuilder builder, + long Id = 0, + bool UseBossIndex = false, + bool UseBossAIPhaseSync = false, + long WorldRaidBossGroupId = 0, + StringOffset PortraitPathOffset = default(StringOffset), + StringOffset BGPathOffset = default(StringOffset), + long RaidCharacterId = 0, + VectorOffset BossCharacterIdOffset = default(VectorOffset), + long AssistCharacterLimitCount = 0, + SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty = SCHALE.Common.FlatData.WorldRaidDifficulty.None, + bool DifficultyOpenCondition = false, + long RaidEnterAmount = 0, + long ReEnterAmount = 0, + long BattleDuration = 0, + long GroundId = 0, + long RaidBattleEndRewardGroupId = 0, + long RaidRewardGroupId = 0, + VectorOffset BattleReadyTimelinePathOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseStartOffset = default(VectorOffset), + VectorOffset BattleReadyTimelinePhaseEndOffset = default(VectorOffset), + StringOffset VictoryTimelinePathOffset = default(StringOffset), + StringOffset PhaseChangeTimelinePathOffset = default(StringOffset), + long TimeLinePhase = 0, + long EnterScenarioKey = 0, + long ClearScenarioKey = 0, + bool UseFixedEchelon = false, + long FixedEchelonId = 0, + bool IsRaidScenarioBattle = false, + bool ShowSkillCard = false, + uint BossBGInfoKey = 0, + long DamageToWorldBoss = 0, + VectorOffset AllyPassiveSkillOffset = default(VectorOffset), + VectorOffset AllyPassiveSkillLevelOffset = default(VectorOffset), + bool SaveCurrentLocalBossHP = false, + SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType = SCHALE.Common.FlatData.EchelonExtensionType.Base) { + builder.StartTable(35); + WorldRaidStageExcel.AddDamageToWorldBoss(builder, DamageToWorldBoss); + WorldRaidStageExcel.AddFixedEchelonId(builder, FixedEchelonId); + WorldRaidStageExcel.AddClearScenarioKey(builder, ClearScenarioKey); + WorldRaidStageExcel.AddEnterScenarioKey(builder, EnterScenarioKey); + WorldRaidStageExcel.AddTimeLinePhase(builder, TimeLinePhase); + WorldRaidStageExcel.AddRaidRewardGroupId(builder, RaidRewardGroupId); + WorldRaidStageExcel.AddRaidBattleEndRewardGroupId(builder, RaidBattleEndRewardGroupId); + WorldRaidStageExcel.AddGroundId(builder, GroundId); + WorldRaidStageExcel.AddBattleDuration(builder, BattleDuration); + WorldRaidStageExcel.AddReEnterAmount(builder, ReEnterAmount); + WorldRaidStageExcel.AddRaidEnterAmount(builder, RaidEnterAmount); + WorldRaidStageExcel.AddAssistCharacterLimitCount(builder, AssistCharacterLimitCount); + WorldRaidStageExcel.AddRaidCharacterId(builder, RaidCharacterId); + WorldRaidStageExcel.AddWorldRaidBossGroupId(builder, WorldRaidBossGroupId); + WorldRaidStageExcel.AddId(builder, Id); + WorldRaidStageExcel.AddEchelonExtensionType(builder, EchelonExtensionType); + WorldRaidStageExcel.AddAllyPassiveSkillLevel(builder, AllyPassiveSkillLevelOffset); + WorldRaidStageExcel.AddAllyPassiveSkill(builder, AllyPassiveSkillOffset); + WorldRaidStageExcel.AddBossBGInfoKey(builder, BossBGInfoKey); + WorldRaidStageExcel.AddPhaseChangeTimelinePath(builder, PhaseChangeTimelinePathOffset); + WorldRaidStageExcel.AddVictoryTimelinePath(builder, VictoryTimelinePathOffset); + WorldRaidStageExcel.AddBattleReadyTimelinePhaseEnd(builder, BattleReadyTimelinePhaseEndOffset); + WorldRaidStageExcel.AddBattleReadyTimelinePhaseStart(builder, BattleReadyTimelinePhaseStartOffset); + WorldRaidStageExcel.AddBattleReadyTimelinePath(builder, BattleReadyTimelinePathOffset); + WorldRaidStageExcel.AddWorldRaidDifficulty(builder, WorldRaidDifficulty); + WorldRaidStageExcel.AddBossCharacterId(builder, BossCharacterIdOffset); + WorldRaidStageExcel.AddBGPath(builder, BGPathOffset); + WorldRaidStageExcel.AddPortraitPath(builder, PortraitPathOffset); + WorldRaidStageExcel.AddSaveCurrentLocalBossHP(builder, SaveCurrentLocalBossHP); + WorldRaidStageExcel.AddShowSkillCard(builder, ShowSkillCard); + WorldRaidStageExcel.AddIsRaidScenarioBattle(builder, IsRaidScenarioBattle); + WorldRaidStageExcel.AddUseFixedEchelon(builder, UseFixedEchelon); + WorldRaidStageExcel.AddDifficultyOpenCondition(builder, DifficultyOpenCondition); + WorldRaidStageExcel.AddUseBossAIPhaseSync(builder, UseBossAIPhaseSync); + WorldRaidStageExcel.AddUseBossIndex(builder, UseBossIndex); + return WorldRaidStageExcel.EndWorldRaidStageExcel(builder); + } + + public static void StartWorldRaidStageExcel(FlatBufferBuilder builder) { builder.StartTable(35); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddUseBossIndex(FlatBufferBuilder builder, bool useBossIndex) { builder.AddBool(1, useBossIndex, false); } + public static void AddUseBossAIPhaseSync(FlatBufferBuilder builder, bool useBossAIPhaseSync) { builder.AddBool(2, useBossAIPhaseSync, false); } + public static void AddWorldRaidBossGroupId(FlatBufferBuilder builder, long worldRaidBossGroupId) { builder.AddLong(3, worldRaidBossGroupId, 0); } + public static void AddPortraitPath(FlatBufferBuilder builder, StringOffset portraitPathOffset) { builder.AddOffset(4, portraitPathOffset.Value, 0); } + public static void AddBGPath(FlatBufferBuilder builder, StringOffset bGPathOffset) { builder.AddOffset(5, bGPathOffset.Value, 0); } + public static void AddRaidCharacterId(FlatBufferBuilder builder, long raidCharacterId) { builder.AddLong(6, raidCharacterId, 0); } + public static void AddBossCharacterId(FlatBufferBuilder builder, VectorOffset bossCharacterIdOffset) { builder.AddOffset(7, bossCharacterIdOffset.Value, 0); } + public static VectorOffset CreateBossCharacterIdVector(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 CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBossCharacterIdVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBossCharacterIdVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddAssistCharacterLimitCount(FlatBufferBuilder builder, long assistCharacterLimitCount) { builder.AddLong(8, assistCharacterLimitCount, 0); } + public static void AddWorldRaidDifficulty(FlatBufferBuilder builder, SCHALE.Common.FlatData.WorldRaidDifficulty worldRaidDifficulty) { builder.AddInt(9, (int)worldRaidDifficulty, 0); } + public static void AddDifficultyOpenCondition(FlatBufferBuilder builder, bool difficultyOpenCondition) { builder.AddBool(10, difficultyOpenCondition, false); } + public static void AddRaidEnterAmount(FlatBufferBuilder builder, long raidEnterAmount) { builder.AddLong(11, raidEnterAmount, 0); } + public static void AddReEnterAmount(FlatBufferBuilder builder, long reEnterAmount) { builder.AddLong(12, reEnterAmount, 0); } + public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(13, battleDuration, 0); } + public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(14, groundId, 0); } + public static void AddRaidBattleEndRewardGroupId(FlatBufferBuilder builder, long raidBattleEndRewardGroupId) { builder.AddLong(15, raidBattleEndRewardGroupId, 0); } + public static void AddRaidRewardGroupId(FlatBufferBuilder builder, long raidRewardGroupId) { builder.AddLong(16, raidRewardGroupId, 0); } + public static void AddBattleReadyTimelinePath(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePathOffset) { builder.AddOffset(17, battleReadyTimelinePathOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePathVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePathVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePathVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseStart(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseStartOffset) { builder.AddOffset(18, battleReadyTimelinePhaseStartOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVector(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 CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseStartVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseStartVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddBattleReadyTimelinePhaseEnd(FlatBufferBuilder builder, VectorOffset battleReadyTimelinePhaseEndOffset) { builder.AddOffset(19, battleReadyTimelinePhaseEndOffset.Value, 0); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVector(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 CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateBattleReadyTimelinePhaseEndVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartBattleReadyTimelinePhaseEndVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddVictoryTimelinePath(FlatBufferBuilder builder, StringOffset victoryTimelinePathOffset) { builder.AddOffset(20, victoryTimelinePathOffset.Value, 0); } + public static void AddPhaseChangeTimelinePath(FlatBufferBuilder builder, StringOffset phaseChangeTimelinePathOffset) { builder.AddOffset(21, phaseChangeTimelinePathOffset.Value, 0); } + public static void AddTimeLinePhase(FlatBufferBuilder builder, long timeLinePhase) { builder.AddLong(22, timeLinePhase, 0); } + public static void AddEnterScenarioKey(FlatBufferBuilder builder, long enterScenarioKey) { builder.AddLong(23, enterScenarioKey, 0); } + public static void AddClearScenarioKey(FlatBufferBuilder builder, long clearScenarioKey) { builder.AddLong(24, clearScenarioKey, 0); } + public static void AddUseFixedEchelon(FlatBufferBuilder builder, bool useFixedEchelon) { builder.AddBool(25, useFixedEchelon, false); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(26, fixedEchelonId, 0); } + public static void AddIsRaidScenarioBattle(FlatBufferBuilder builder, bool isRaidScenarioBattle) { builder.AddBool(27, isRaidScenarioBattle, false); } + public static void AddShowSkillCard(FlatBufferBuilder builder, bool showSkillCard) { builder.AddBool(28, showSkillCard, false); } + public static void AddBossBGInfoKey(FlatBufferBuilder builder, uint bossBGInfoKey) { builder.AddUint(29, bossBGInfoKey, 0); } + public static void AddDamageToWorldBoss(FlatBufferBuilder builder, long damageToWorldBoss) { builder.AddLong(30, damageToWorldBoss, 0); } + public static void AddAllyPassiveSkill(FlatBufferBuilder builder, VectorOffset allyPassiveSkillOffset) { builder.AddOffset(31, allyPassiveSkillOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillVector(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillVectorBlock(FlatBufferBuilder builder, StringOffset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddAllyPassiveSkillLevel(FlatBufferBuilder builder, VectorOffset allyPassiveSkillLevelOffset) { builder.AddOffset(32, allyPassiveSkillLevelOffset.Value, 0); } + public static VectorOffset CreateAllyPassiveSkillLevelVector(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 CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateAllyPassiveSkillLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartAllyPassiveSkillLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSaveCurrentLocalBossHP(FlatBufferBuilder builder, bool saveCurrentLocalBossHP) { builder.AddBool(33, saveCurrentLocalBossHP, false); } + public static void AddEchelonExtensionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.EchelonExtensionType echelonExtensionType) { builder.AddInt(34, (int)echelonExtensionType, 0); } + public static Offset EndWorldRaidStageExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidStageExcelVerify +{ + 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 /*UseBossIndex*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*UseBossAIPhaseSync*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 10 /*WorldRaidBossGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*PortraitPath*/, false) + && verifier.VerifyString(tablePos, 14 /*BGPath*/, false) + && verifier.VerifyField(tablePos, 16 /*RaidCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 18 /*BossCharacterId*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 20 /*AssistCharacterLimitCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 22 /*WorldRaidDifficulty*/, 4 /*SCHALE.Common.FlatData.WorldRaidDifficulty*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*DifficultyOpenCondition*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 26 /*RaidEnterAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 28 /*ReEnterAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 30 /*BattleDuration*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 32 /*GroundId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 34 /*RaidBattleEndRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 36 /*RaidRewardGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 38 /*BattleReadyTimelinePath*/, false) + && verifier.VerifyVectorOfData(tablePos, 40 /*BattleReadyTimelinePhaseStart*/, 4 /*int*/, false) + && verifier.VerifyVectorOfData(tablePos, 42 /*BattleReadyTimelinePhaseEnd*/, 4 /*int*/, false) + && verifier.VerifyString(tablePos, 44 /*VictoryTimelinePath*/, false) + && verifier.VerifyString(tablePos, 46 /*PhaseChangeTimelinePath*/, false) + && verifier.VerifyField(tablePos, 48 /*TimeLinePhase*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 50 /*EnterScenarioKey*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 52 /*ClearScenarioKey*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 54 /*UseFixedEchelon*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 56 /*FixedEchelonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 58 /*IsRaidScenarioBattle*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 60 /*ShowSkillCard*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 62 /*BossBGInfoKey*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 64 /*DamageToWorldBoss*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfStrings(tablePos, 66 /*AllyPassiveSkill*/, false) + && verifier.VerifyVectorOfData(tablePos, 68 /*AllyPassiveSkillLevel*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 70 /*SaveCurrentLocalBossHP*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 72 /*EchelonExtensionType*/, 4 /*SCHALE.Common.FlatData.EchelonExtensionType*/, 4, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs new file mode 100644 index 0000000..6a56e67 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidStageExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidStageExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidStageExcelTable GetRootAsWorldRaidStageExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidStageExcelTable(_bb, new WorldRaidStageExcelTable()); } + public static WorldRaidStageExcelTable GetRootAsWorldRaidStageExcelTable(ByteBuffer _bb, WorldRaidStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidStageExcel?)(new SCHALE.Common.FlatData.WorldRaidStageExcel()).__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 CreateWorldRaidStageExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidStageExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidStageExcelTable.EndWorldRaidStageExcelTable(builder); + } + + public static void StartWorldRaidStageExcelTable(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 EndWorldRaidStageExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidStageExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidStageExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs new file mode 100644 index 0000000..864df24 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs @@ -0,0 +1,86 @@ +// +// 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 WorldRaidStageRewardExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidStageRewardExcel GetRootAsWorldRaidStageRewardExcel(ByteBuffer _bb) { return GetRootAsWorldRaidStageRewardExcel(_bb, new WorldRaidStageRewardExcel()); } + public static WorldRaidStageRewardExcel GetRootAsWorldRaidStageRewardExcel(ByteBuffer _bb, WorldRaidStageRewardExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidStageRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_span(14, 1); } +#else + public ArraySegment? GetClearStageRewardParcelUniqueNameBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public byte[] GetClearStageRewardParcelUniqueNameArray() { return __p.__vector_as_array(14); } + public long ClearStageRewardAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + + public static Offset CreateWorldRaidStageRewardExcel(FlatBufferBuilder builder, + long GroupId = 0, + bool IsClearStageRewardHideInfo = false, + long ClearStageRewardProb = 0, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + long ClearStageRewardParcelUniqueID = 0, + StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), + long ClearStageRewardAmount = 0) { + builder.StartTable(7); + WorldRaidStageRewardExcel.AddClearStageRewardAmount(builder, ClearStageRewardAmount); + WorldRaidStageRewardExcel.AddClearStageRewardParcelUniqueID(builder, ClearStageRewardParcelUniqueID); + WorldRaidStageRewardExcel.AddClearStageRewardProb(builder, ClearStageRewardProb); + WorldRaidStageRewardExcel.AddGroupId(builder, GroupId); + WorldRaidStageRewardExcel.AddClearStageRewardParcelUniqueName(builder, ClearStageRewardParcelUniqueNameOffset); + WorldRaidStageRewardExcel.AddClearStageRewardParcelType(builder, ClearStageRewardParcelType); + WorldRaidStageRewardExcel.AddIsClearStageRewardHideInfo(builder, IsClearStageRewardHideInfo); + return WorldRaidStageRewardExcel.EndWorldRaidStageRewardExcel(builder); + } + + public static void StartWorldRaidStageRewardExcel(FlatBufferBuilder builder) { builder.StartTable(7); } + public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(0, groupId, 0); } + public static void AddIsClearStageRewardHideInfo(FlatBufferBuilder builder, bool isClearStageRewardHideInfo) { builder.AddBool(1, isClearStageRewardHideInfo, false); } + public static void AddClearStageRewardProb(FlatBufferBuilder builder, long clearStageRewardProb) { builder.AddLong(2, clearStageRewardProb, 0); } + public static void AddClearStageRewardParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType clearStageRewardParcelType) { builder.AddInt(3, (int)clearStageRewardParcelType, 0); } + public static void AddClearStageRewardParcelUniqueID(FlatBufferBuilder builder, long clearStageRewardParcelUniqueID) { builder.AddLong(4, clearStageRewardParcelUniqueID, 0); } + public static void AddClearStageRewardParcelUniqueName(FlatBufferBuilder builder, StringOffset clearStageRewardParcelUniqueNameOffset) { builder.AddOffset(5, clearStageRewardParcelUniqueNameOffset.Value, 0); } + public static void AddClearStageRewardAmount(FlatBufferBuilder builder, long clearStageRewardAmount) { builder.AddLong(6, clearStageRewardAmount, 0); } + public static Offset EndWorldRaidStageRewardExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidStageRewardExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*GroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*IsClearStageRewardHideInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 8 /*ClearStageRewardProb*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ClearStageRewardParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*ClearStageRewardParcelUniqueID*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 14 /*ClearStageRewardParcelUniqueName*/, false) + && verifier.VerifyField(tablePos, 16 /*ClearStageRewardAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs new file mode 100644 index 0000000..f3db138 --- /dev/null +++ b/SCHALE.Common/FlatData/WorldRaidStageRewardExcelTable.cs @@ -0,0 +1,56 @@ +// +// 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 WorldRaidStageRewardExcelTable : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static WorldRaidStageRewardExcelTable GetRootAsWorldRaidStageRewardExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidStageRewardExcelTable(_bb, new WorldRaidStageRewardExcelTable()); } + public static WorldRaidStageRewardExcelTable GetRootAsWorldRaidStageRewardExcelTable(ByteBuffer _bb, WorldRaidStageRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public WorldRaidStageRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } + + public SCHALE.Common.FlatData.WorldRaidStageRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidStageRewardExcel?)(new SCHALE.Common.FlatData.WorldRaidStageRewardExcel()).__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 CreateWorldRaidStageRewardExcelTable(FlatBufferBuilder builder, + VectorOffset DataListOffset = default(VectorOffset)) { + builder.StartTable(1); + WorldRaidStageRewardExcelTable.AddDataList(builder, DataListOffset); + return WorldRaidStageRewardExcelTable.EndWorldRaidStageRewardExcelTable(builder); + } + + public static void StartWorldRaidStageRewardExcelTable(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 EndWorldRaidStageRewardExcelTable(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } +} + + +static public class WorldRaidStageRewardExcelTableVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidStageRewardExcelVerify.Verify, false) + && verifier.VerifyTableEnd(tablePos); + } +} + +} diff --git a/SCHALE.Common/SCHALE.Common.csproj b/SCHALE.Common/SCHALE.Common.csproj index 5286339..0e1793f 100644 --- a/SCHALE.Common/SCHALE.Common.csproj +++ b/SCHALE.Common/SCHALE.Common.csproj @@ -4,9 +4,12 @@ net8.0 enable enable + true + + diff --git a/SCHALE.GameServer/Controllers/Api/GatewayController.cs b/SCHALE.GameServer/Controllers/Api/GatewayController.cs index 58c8b9e..f79754d 100644 --- a/SCHALE.GameServer/Controllers/Api/GatewayController.cs +++ b/SCHALE.GameServer/Controllers/Api/GatewayController.cs @@ -6,6 +6,7 @@ using System.Buffers.Binary; using System.IO.Compression; using System.Text; using System.Text.Json; +using System.Text.Json.Nodes; namespace SCHALE.GameServer.Controllers.Api { @@ -31,20 +32,25 @@ namespace SCHALE.GameServer.Controllers.Api using var reader = new BinaryReader(formFile.OpenReadStream()); // CRC + Protocol type conversion + payload length - reader.BaseStream.Position = 4; - - var protocol = (Protocol)BinaryPrimitives.ReadUInt32LittleEndian(reader.ReadBytes(4)); - reader.BaseStream.Position = 12; byte[] compressedPayload = reader.ReadBytes((int)reader.BaseStream.Length - 12); - XOR.Crypt(compressedPayload, 0xD9); + XOR.Crypt(compressedPayload, [0xD9]); using var gzStream = new GZipStream(new MemoryStream(compressedPayload), CompressionMode.Decompress); using var payloadMs = new MemoryStream(); gzStream.CopyTo(payloadMs); try { + var payloadStr = Encoding.UTF8.GetString(payloadMs.ToArray()); + var jsonNode = JsonSerializer.Deserialize(payloadStr); + var protocol = (Protocol?)jsonNode?["Protocol"]?.GetValue() ?? Protocol.None; + if (protocol == Protocol.None) + { + logger.LogWarning("Failed to read protocol from JsonNode, {Payload:j}", payloadStr); + goto protocolErrorRet; + } + var requestType = protocolHandlerFactory.GetRequestPacketTypeByProtocol(protocol); if (requestType is null) { @@ -52,7 +58,6 @@ namespace SCHALE.GameServer.Controllers.Api goto protocolErrorRet; } - var payloadStr = Encoding.UTF8.GetString(payloadMs.ToArray()); var payload = (JsonSerializer.Deserialize(payloadStr, requestType) as RequestPacket)!; var handler = protocolHandlerFactory.GetProtocolHandler(payload.Protocol); if (handler is null)