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

Function SendRoomMessage

internal/scripting/messaging_func.go:30–43  ·  view source on GitHub ↗
(roomId int, message string, excludeIds ...int)

Source from the content-addressed store, hash-verified

28}
29
30func SendRoomMessage(roomId int, message string, excludeIds ...int) {
31 if disableMessageQueue {
32 return
33 }
34
35 r := rooms.LoadRoom(roomId)
36 if r == nil {
37 return
38 }
39
40 message = roomTextWrap.Wrap(message)
41
42 r.SendText(message, excludeIds...)
43}
44
45func SendRoomExitsMessage(roomId int, message string, isQuiet bool, excludeUserIds ...int) {
46 if disableMessageQueue {

Callers 15

onCommand_rollFunction · 0.85
onCommand_flipFunction · 0.85
onCommand_rollFunction · 0.85
onCommand_shakeFunction · 0.85
onCommand_spinFunction · 0.85
onCommand_shuffleFunction · 0.85
onCommand_drawFunction · 0.85
onCommand_shuffleFunction · 0.85
onCommand_drawFunction · 0.85
onCommand_dealFunction · 0.85
onCastFunction · 0.85
onWaitFunction · 0.85

Calls 3

LoadRoomFunction · 0.92
WrapMethod · 0.80
SendTextMethod · 0.45

Tested by

no test coverage detected