Members
-
<generator, static> RingGenerator
-
Description
Generator function for exploring vertex-connected grid locations in an outward "ring" pattern.
Parameters
Name Type Description origin
Object Staring location (pixels) for search
numRings
Number Details
Methods
-
<async, static> batchMutate( tokenDocs, details ) → {Promise.<Array.<MutateInfo>>}
-
Description
Perform a managed, batch update of multple token documents. Heterogeneous ownership supported and routed through the Remote Mutation system as needed. The same updates, callbacks and options objects will be used for all mutations.
Note: If a specific mutation name is not provided, a single random ID will be generated for all resulting individual mutations.
Parameters
Name Type Description tokenDocs
Array.<TokenDocument> List of tokens on which to apply the provided mutation.
details
Object The details of this batch mutation operation.
Name Type Attributes Description updates
Shorthand The updates to apply to each token; as
warpgate.spawn
callbacks
Object <optional> Delta and post mutation callbacks; as
warpgate.mutate
Name Type Attributes Description delta
PostDelta <optional> post
PostMutate <optional> options
WorkflowOptions | MutationOptions <optional> Returns
Details
-
<async, static> batchRevert( tokenDocs, details ) → {Promise.<Array.<MutateInfo>>}
-
Description
Perform a managed, batch update of multple token documents. Heterogeneous ownership supported and routed through the Remote Mutation system as needed. The same updates, callbacks and options objects will be used for all mutations.
Note: If a specific mutation name is not provided, a single random ID will be generated for all resulting individual mutations.
Parameters
Name Type Description tokenDocs
Array.<TokenDocument> List of tokens on which to perform the revert
details
Object Name Type Attributes Description mutationName
string <optional> Specific mutation name to revert, or the latest mutation for an individual token if not provided. Tokens without mutations or without the specific mutation requested are not processed.
options
WorkflowOptions | MutationOptions <optional> Returns
Details
-
<static> notice( placement [, config ] )
-
Description
Helper function for displaying pings for or panning the camera of specific users. If no scene is provided, the user's current is assumed.
Parameters
Name Type Attributes Description placement
Object | CrosshairsData Information for the physical placement of the notice containing at least
{x: Number, y: Number, scene: Scene}
config
NoticeConfig <optional> Configuration for the notice
Details
-
<static> queueUpdate( updateFn )
-
Description
Safely manages concurrent updates to the provided entity type
Parameters
Name Type Description updateFn
function the function that handles the actual update (can be async)
Details