// // automatically generated by 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); } } }