Exemplo n.º 1
0
 public static Offset <UdpMessages.ServerClientMessages.PlayerPositionMessage> CreatePlayerPositionMessage(FlatBufferBuilder builder,
                                                                                                           VectorOffset dataOffset = default(VectorOffset),
                                                                                                           byte tickCounter        = 0)
 {
     builder.StartTable(2);
     PlayerPositionMessage.AddData(builder, dataOffset);
     PlayerPositionMessage.AddTickCounter(builder, tickCounter);
     return(PlayerPositionMessage.EndPlayerPositionMessage(builder));
 }
Exemplo n.º 2
0
 public static PlayerPositionMessage GetRootAsPlayerPositionMessage(ByteBuffer _bb, PlayerPositionMessage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }