KcdMp.contract
The contract this frame implements, when it draws one of the game’s interface components.
A frame can take over one of the game’s own interface components - the chat, the scoreboard - from the standard
drawing; the component’s contract is the list of events and actions such a frame must serve (KcdMp.onComponent).
This is its name and version ("chat@1"), or "" for a frame that draws no component. It changes when the game mode
gives the frame a component or takes it away - KcdMp.onComponent’s "assign" says when.
Syntax
Section titled “Syntax”KcdMp.contractstring
Example
Section titled “Example”if (KcdMp.contract === "") { KcdMp.log.info("an ordinary frame");}See also
Section titled “See also”KcdMp.env.component · KcdMp.call · the The page group of the index
