MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / setMessagingFunctions

Function setMessagingFunctions

internal/scripting/messaging.go:11–19  ·  view source on GitHub ↗
(vm *goja.Runtime)

Source from the content-addressed store, hash-verified

9)
10
11func setMessagingFunctions(vm *goja.Runtime) {
12
13 vm.Set(`console`, newConsole(vm))
14 vm.Set(`SendUserMessage`, SendUserMessage)
15 vm.Set(`SendRoomMessage`, SendRoomMessage)
16 vm.Set(`SendRoomExitsMessage`, SendRoomExitsMessage)
17 vm.Set(`SendBroadcast`, SendBroadcast)
18
19}

Callers 1

setAllScriptingFunctionsFunction · 0.85

Calls 2

newConsoleFunction · 0.85
SetMethod · 0.65

Tested by

no test coverage detected