MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / MessageContext

Class MessageContext

source/game/StarChatTypes.hpp:17–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15extern EnumMap<ChatSendMode> const ChatSendModeNames;
16
17struct MessageContext {
18 enum Mode : uint8_t {
19 Local,
20 Party,
21 Broadcast,
22 Whisper,
23 CommandResult,
24 RadioMessage,
25 World
26 };
27
28 MessageContext();
29 MessageContext(Mode mode);
30 MessageContext(Mode mode, String const& channelName);
31
32 Mode mode;
33
34 // only for Local and Party modes
35 String channelName;
36};
37
38extern EnumMap<MessageContext::Mode> const MessageContextModeNames;
39

Callers 2

handleCommandMethod · 0.85
ChatReceivedMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected