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.
Syntax
Section titled “Syntax”KcdMp.mock.feed(name, data)| Parameter | Type | |
|---|---|---|
name |
string |
the feed’s name ("session", "visibility") |
data |
unknown |
the feed’s value |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”KcdMp.mock.feed("visibility", { visible: false, reason: "menu" });See also
Section titled “See also”KcdMp.feed · KcdMp.mock.emit · the Mock mode group of the index
