SCHALE.GameServer/SCHALE.Common/FlatData/ScenarioEffectExcel.cs

62 lines
2.8 KiB
C#
Raw Normal View History

2024-04-21 00:21:57 +00:00
// <auto-generated>
// automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>
namespace SCHALE.Common.FlatData
{
using global::System;
using global::System.Collections.Generic;
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<byte> GetEffectNameBytes() { return __p.__vector_as_span<byte>(4, 1); }
#else
public ArraySegment<byte>? GetEffectNameBytes() { return __p.__vector_as_arraysegment(4); }
#endif
public byte[] GetEffectNameArray() { return __p.__vector_as_array<byte>(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<SCHALE.Common.FlatData.ScenarioEffectExcel> 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<SCHALE.Common.FlatData.ScenarioEffectExcel> EndScenarioEffectExcel(FlatBufferBuilder builder) {
int o = builder.EndTable();
return new Offset<SCHALE.Common.FlatData.ScenarioEffectExcel>(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);
}
}
}