mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
JSDocs fix
This commit is contained in:
parent
91c0b1c8a4
commit
02975813c7
1 changed files with 11 additions and 5 deletions
|
@ -1339,6 +1339,15 @@ var FacebookInstantGamesPlugin = new Class({
|
||||||
* @typedef {string} ContextFilter
|
* @typedef {string} ContextFilter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A configuration object that may be applied to a Context Choose operation.
|
||||||
|
*
|
||||||
|
* @typedef {object} ChooseContextConfig
|
||||||
|
* @property {ContextFilter[]} [filters] - The set of filters to apply to the context suggestions: 'NEW_CONTEXT_ONLY', 'INCLUDE_EXISTING_CHALLENGES' or 'NEW_PLAYERS_ONLY'.
|
||||||
|
* @property {number} [maxSize] - The maximum number of participants that a suggested context should ideally have.
|
||||||
|
* @property {number} [minSize] - The minimum number of participants that a suggested context should ideally have.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens a context selection dialog for the player. If the player selects an available context,
|
* Opens a context selection dialog for the player. If the player selects an available context,
|
||||||
* the client will attempt to switch into that context, and emit the `choose` event if successful.
|
* the client will attempt to switch into that context, and emit the `choose` event if successful.
|
||||||
|
@ -1347,10 +1356,7 @@ var FacebookInstantGamesPlugin = new Class({
|
||||||
* @method Phaser.FacebookInstantGamesPlugin#chooseContext
|
* @method Phaser.FacebookInstantGamesPlugin#chooseContext
|
||||||
* @since 3.13.0
|
* @since 3.13.0
|
||||||
*
|
*
|
||||||
* @param {*} [options] - An object specifying conditions on the contexts that should be offered.
|
* @param {ChooseContextConfig} [options] - An object specifying conditions on the contexts that should be offered.
|
||||||
* @param {ContextFilter[]} [options.filters] - The set of filters to apply to the context suggestions: 'NEW_CONTEXT_ONLY', 'INCLUDE_EXISTING_CHALLENGES' or 'NEW_PLAYERS_ONLY'.
|
|
||||||
* @param {number} [options.maxSize] - The maximum number of participants that a suggested context should ideally have.
|
|
||||||
* @param {number} [options.minSize] - The minimum number of participants that a suggested context should ideally have.
|
|
||||||
*
|
*
|
||||||
* @return {this} This Facebook Instant Games Plugin instance.
|
* @return {this} This Facebook Instant Games Plugin instance.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue