示例#1
0
文件: game.cs 项目: ckissane/IOGame
 public static Offset <NetQuantum> CreateNetQuantum(FlatBufferBuilder builder,
                                                    AllMessages message_type = AllMessages.NONE,
                                                    int messageOffset        = 0)
 {
     builder.StartObject(2);
     NetQuantum.AddMessage(builder, messageOffset);
     NetQuantum.AddMessageType(builder, message_type);
     return(NetQuantum.EndNetQuantum(builder));
 }
示例#2
0
文件: game.cs 项目: ckissane/IOGame
 public static NetQuantum GetRootAsNetQuantum(ByteBuffer _bb, NetQuantum obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }