KcdMp.mock.use
Fires the surface-use handlers as if the player had pressed the use key on the surface.
Runs the handlers registered with KcdMp.onSurfaceUse, as the game does when the player uses a surface page’s prompt -
a way to try a surface page’s use in a browser. It works for a frame’s page too, where nothing else would call them.
Syntax
Section titled “Syntax”KcdMp.mock.use()Returns
Section titled “Returns”nothing
Example
Section titled “Example”KcdMp.onSurfaceUse(() => console.log("used"));if (KcdMp.env.mock) { KcdMp.mock.use();}See also
Section titled “See also”KcdMp.onSurfaceUse · the Mock mode group of the index
