public static Offset <UdpMessages.ServerClientMessages.MatchInitializedMessage> CreateMatchInitializedMessage(FlatBufferBuilder builder, ulong clientToken = 0, byte playerNumber = 0, VectorOffset teamOnePlayersOffset = default(VectorOffset), VectorOffset teamTwoPlayersOffset = default(VectorOffset)) { builder.StartTable(4); MatchInitializedMessage.AddClientToken(builder, clientToken); MatchInitializedMessage.AddTeamTwoPlayers(builder, teamTwoPlayersOffset); MatchInitializedMessage.AddTeamOnePlayers(builder, teamOnePlayersOffset); MatchInitializedMessage.AddPlayerNumber(builder, playerNumber); return(MatchInitializedMessage.EndMatchInitializedMessage(builder)); }
public static MatchInitializedMessage GetRootAsMatchInitializedMessage(ByteBuffer _bb, MatchInitializedMessage obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }