Esempio n. 1
0
 public static Offset <UdpMessages.ServerClientMessages.RoomEnteredMessage> CreateRoomEnteredMessage(FlatBufferBuilder builder,
                                                                                                     byte userIndex           = 0,
                                                                                                     byte teamSize            = 0,
                                                                                                     VectorOffset usersOffset = default(VectorOffset))
 {
     builder.StartTable(3);
     RoomEnteredMessage.AddUsers(builder, usersOffset);
     RoomEnteredMessage.AddTeamSize(builder, teamSize);
     RoomEnteredMessage.AddUserIndex(builder, userIndex);
     return(RoomEnteredMessage.EndRoomEnteredMessage(builder));
 }
Esempio n. 2
0
 public static RoomEnteredMessage GetRootAsRoomEnteredMessage(ByteBuffer _bb, RoomEnteredMessage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }