mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
* Fix flatc generating incorrect java/c# code for namespace_test2.fbs. In code for TableInC, method referToA2() returned type SecondTableInA instead of NamespaceA.SecondTableInA. * Updated generated code. * Fixed indendation.
28 lines
912 B
C#
28 lines
912 B
C#
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
namespace MyGame.Example2
|
|
{
|
|
|
|
using System;
|
|
using FlatBuffers;
|
|
|
|
public struct Monster : IFlatbufferObject
|
|
{
|
|
private Table __p;
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
public static Monster GetRootAsMonster(ByteBuffer _bb) { return GetRootAsMonster(_bb, new Monster()); }
|
|
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; }
|
|
|
|
|
|
public static void StartMonster(FlatBufferBuilder builder) { builder.StartObject(0); }
|
|
public static Offset<Monster> EndMonster(FlatBufferBuilder builder) {
|
|
int o = builder.EndObject();
|
|
return new Offset<Monster>(o);
|
|
}
|
|
};
|
|
|
|
|
|
}
|