FsCommBusBroadcastFlags
The FsCommBusBroadcastFlags enum is used to specified the type of module/gauge to broadcast an event call.
Syntax
enum FsCommBusBroadcastFlags : unsigned char
{
FsCommBusBroadcast_JS = 1 << 0,
FsCommBusBroadcast_Wasm = 1 << 1,
FsCommBusBroadcast_WasmSelfCall = 1 << 2, // need FsCommBusBroadcast_Wasm, allow the module to search the Broadcastback in the same module
FsCommBusBroadcast_Default = FsCommBusBroadcast_JS | FsCommBusBroadcast_Wasm,
FsCommBusBroadcast_AllWasm = FsCommBusBroadcast_Wasm | FsCommBusBroadcast_WasmSelfCall,
FsCommBusBroadcast_All = FsCommBusBroadcast_JS | FsCommBusBroadcast_Wasm | FsCommBusBroadcast_WasmSelfCall
};
Members
Enum Member | Description |
---|---|
FsCommBusBroadcast_JS |
Broadcast the event to all JS gauges. |
FsCommBusBroadcast_Wasm |
Broadcast the event to all WASM gauges, except the module that sent the event. To include the sending module, you need to call FsCommBusBroadcast_WasmSelfCall as well. |
FsCommBusBroadcast_WasmSelfCall |
This allows the event sent by a WASM module to be received by the same module. Note that it is not generally considered a good idea to do this, and it's better to make a direct call in the same module. This flag is useless without |
FsCommBusBroadcast_Default |
Broadcast the event to all JS and WASM gauges (except the module broadcasting, see FsCommBusBroadcast_WasmSelfCall ). |
FsCommBusBroadcast_AllWasm |
Broadcast the event to all WASM gauges, including the module that sent the event. |
FsCommBusBroadcast_All |
Broadcast the event to all JS and WASM gauges, including the module that sent the event. |
Remarks
N/A
See Also