Match
Match(
props):Element
A match on an entity: inside an <Entity> it makes that entity the
match, as a behaviour adds its trait; at a scene’s root it places an
entity of its own at the origin. It starts as it mounts and ends as it
unmounts. Its children belong to it: each <Entity> under it is owned
by the match, stands in its entity’s frame, and is copied anew at each
reset. With no queue it is the scene’s only match and holds every
player; with a queue, several run side by side, each seating its
members from its line. On a page in a room it spawns nothing: the room
plays the match, and the page draws the one it streams.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
props |
MatchBaseProps & object & object & MatchCoopProps | MatchBaseProps & object & object & MatchTeamsProps | MatchBaseProps & object & object & MatchFreeForAllProps | MatchBaseProps & object & MatchQueuedBaseProps & MatchTeamsProps | MatchBaseProps & object & MatchQueuedBaseProps & MatchFreeForAllProps & object | MatchBaseProps & object & MatchQueuedBaseProps & MatchCoopProps & object | never | MatchBaseProps & object & object & MatchTeamsProps | MatchBaseProps & object & object & MatchFreeForAllProps | MatchBaseProps & object & MatchQueuedBaseProps & MatchTeamsProps | MatchBaseProps & object & MatchQueuedBaseProps & MatchFreeForAllProps & object | never |
Returns
Section titled “Returns”Element