2017-05-16 21:28:34 +00:00
|
|
|
// <auto-generated>
|
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
// </auto-generated>
|
2016-06-18 01:16:11 +00:00
|
|
|
|
|
|
|
namespace MyGame.Example2
|
|
|
|
{
|
|
|
|
|
2017-03-29 18:09:25 +00:00
|
|
|
using global::System;
|
|
|
|
using global::FlatBuffers;
|
2016-06-18 01:16:11 +00:00
|
|
|
|
2016-08-13 01:01:38 +00:00
|
|
|
public struct Monster : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
2016-09-09 13:25:09 +00:00
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
2016-06-18 01:16:11 +00:00
|
|
|
public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
|
2016-08-13 01:01:38 +00:00
|
|
|
public static Monster GetRootAsMonster(ByteBuffer _bb, Monster obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p.bb_pos = _i; __p.bb = _bb; }
|
|
|
|
public Monster __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
2016-06-18 01:16:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
public static void StartMonster(FlatBufferBuilder builder) { builder.StartObject(0); }
|
2016-10-07 16:42:29 +00:00
|
|
|
public static Offset<Monster> EndMonster(FlatBufferBuilder builder) {
|
2016-06-18 01:16:11 +00:00
|
|
|
int o = builder.EndObject();
|
2016-10-07 16:42:29 +00:00
|
|
|
return new Offset<Monster>(o);
|
2016-06-18 01:16:11 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|