Class: AiMatchMakingClient
Client for the AI Matchmaking service. This service allows you to create matchmakers and insert entities into them. The service will then find matches for the entities.
Constructors
constructor
• new AiMatchMakingClient(rpcManager
)
@internal.
Parameters
Name | Type |
---|---|
rpcManager | RpcManager |
Methods
createMatchMaker
▸ createMatchMaker(matchMaker
): Promise
<MatchMaker
>
Creates a new matchmaker with the given id, description, and categories.
Parameters
Name | Type | Description |
---|---|---|
matchMaker | MmMatchMaker | The matchmaker to create. |
Returns
Promise
<MatchMaker
>
getMatchMaker
▸ getMatchMaker(matchMakerId
): Promise
<undefined
| MatchMaker
>
Retrieves an existing matchmaker by its ID.
Parameters
Name | Type |
---|---|
matchMakerId | string |
Returns
Promise
<undefined
| MatchMaker
>
listMatchMakers
▸ listMatchMakers(): Promise
<MmMatchMaker
[]>
Returns
Promise
<MmMatchMaker
[]>