forked from Raphael/SCHALE.GameServer
81 lines
5.0 KiB
C#
81 lines
5.0 KiB
C#
|
// <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 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<SCHALE.Common.FlatData.FurnitureTemplateElementExcel> 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<SCHALE.Common.FlatData.FurnitureTemplateElementExcel> EndFurnitureTemplateElementExcel(FlatBufferBuilder builder) {
|
||
|
int o = builder.EndTable();
|
||
|
return new Offset<SCHALE.Common.FlatData.FurnitureTemplateElementExcel>(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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|