// // automatically generated by the FlatBuffers compiler, do not modify // namespace SCHALE.Common.FlatData { using global::System; using global::System.Collections.Generic; using global::SCHALE.Common.Crypto; using global::Google.FlatBuffers; public struct 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); } public FieldSceneExcelT UnPack() { var _o = new FieldSceneExcelT(); this.UnPackTo(_o); return _o; } public void UnPackTo(FieldSceneExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FieldScene"); _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.DateId = TableEncryptionService.Convert(this.DateId, key); _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); _o.ArtLevelPath = TableEncryptionService.Convert(this.ArtLevelPath, key); _o.DesignLevelPath = TableEncryptionService.Convert(this.DesignLevelPath, key); _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); _o.ConditionalBGMQuestId = new List(); for (var _j = 0; _j < this.ConditionalBGMQuestIdLength; ++_j) {_o.ConditionalBGMQuestId.Add(TableEncryptionService.Convert(this.ConditionalBGMQuestId(_j), key));} _o.BeginConditionalBGMScenarioGroupId = new List(); for (var _j = 0; _j < this.BeginConditionalBGMScenarioGroupIdLength; ++_j) {_o.BeginConditionalBGMScenarioGroupId.Add(TableEncryptionService.Convert(this.BeginConditionalBGMScenarioGroupId(_j), key));} _o.EndConditionalBGMScenarioGroupId = new List(); for (var _j = 0; _j < this.EndConditionalBGMScenarioGroupIdLength; ++_j) {_o.EndConditionalBGMScenarioGroupId.Add(TableEncryptionService.Convert(this.EndConditionalBGMScenarioGroupId(_j), key));} _o.ConditionalBGMId = new List(); for (var _j = 0; _j < this.ConditionalBGMIdLength; ++_j) {_o.ConditionalBGMId.Add(TableEncryptionService.Convert(this.ConditionalBGMId(_j), key));} } public static Offset Pack(FlatBufferBuilder builder, FieldSceneExcelT _o) { if (_o == null) return default(Offset); var _ArtLevelPath = _o.ArtLevelPath == null ? default(StringOffset) : builder.CreateString(_o.ArtLevelPath); var _DesignLevelPath = _o.DesignLevelPath == null ? default(StringOffset) : builder.CreateString(_o.DesignLevelPath); var _ConditionalBGMQuestId = default(VectorOffset); if (_o.ConditionalBGMQuestId != null) { var __ConditionalBGMQuestId = _o.ConditionalBGMQuestId.ToArray(); _ConditionalBGMQuestId = CreateConditionalBGMQuestIdVector(builder, __ConditionalBGMQuestId); } var _BeginConditionalBGMScenarioGroupId = default(VectorOffset); if (_o.BeginConditionalBGMScenarioGroupId != null) { var __BeginConditionalBGMScenarioGroupId = _o.BeginConditionalBGMScenarioGroupId.ToArray(); _BeginConditionalBGMScenarioGroupId = CreateBeginConditionalBGMScenarioGroupIdVector(builder, __BeginConditionalBGMScenarioGroupId); } var _EndConditionalBGMScenarioGroupId = default(VectorOffset); if (_o.EndConditionalBGMScenarioGroupId != null) { var __EndConditionalBGMScenarioGroupId = _o.EndConditionalBGMScenarioGroupId.ToArray(); _EndConditionalBGMScenarioGroupId = CreateEndConditionalBGMScenarioGroupIdVector(builder, __EndConditionalBGMScenarioGroupId); } var _ConditionalBGMId = default(VectorOffset); if (_o.ConditionalBGMId != null) { var __ConditionalBGMId = _o.ConditionalBGMId.ToArray(); _ConditionalBGMId = CreateConditionalBGMIdVector(builder, __ConditionalBGMId); } return CreateFieldSceneExcel( builder, _o.UniqueId, _o.DateId, _o.GroupId, _ArtLevelPath, _DesignLevelPath, _o.BGMId, _ConditionalBGMQuestId, _BeginConditionalBGMScenarioGroupId, _EndConditionalBGMScenarioGroupId, _ConditionalBGMId); } } public class FieldSceneExcelT { public long UniqueId { get; set; } public long DateId { get; set; } public long GroupId { get; set; } public string ArtLevelPath { get; set; } public string DesignLevelPath { get; set; } public long BGMId { get; set; } public List ConditionalBGMQuestId { get; set; } public List BeginConditionalBGMScenarioGroupId { get; set; } public List EndConditionalBGMScenarioGroupId { get; set; } public List ConditionalBGMId { get; set; } public FieldSceneExcelT() { this.UniqueId = 0; this.DateId = 0; this.GroupId = 0; this.ArtLevelPath = null; this.DesignLevelPath = null; this.BGMId = 0; this.ConditionalBGMQuestId = null; this.BeginConditionalBGMScenarioGroupId = null; this.EndConditionalBGMScenarioGroupId = null; this.ConditionalBGMId = null; } } 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); } } }