Skip to content

KcdMp.mock.feed

Publishes a feed value as if the game had.

Runs the handlers subscribed to the feed with data and keeps it as the feed’s latest value, which a later subscription receives at once - exactly as in the game. Any feed name works: the frame’s feeds list is not checked in mock mode.

KcdMp.mock.feed(name, data)
Parameter Type
name string the feed’s name ("session", "visibility")
data unknown the feed’s value

nothing

KcdMp.mock.feed("visibility", { visible: false, reason: "menu" });

KcdMp.feed · KcdMp.mock.emit · the Mock mode group of the index