MCPcopy Create free account
hub / github.com/Norbyte/bg3se / ProcessMsg

Method ProcessMsg

BG3Extender/Extender/Shared/ExtenderNet.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59ExtenderProtocolBase::~ExtenderProtocolBase() {}
60
61ProtocolResult ExtenderProtocolBase::ProcessMsg(void * Unused, net::MessageContext * Context, net::Message * Msg)
62{
63 if (Msg->MsgId == ExtenderMessage::MessageId) {
64 auto msg = static_cast<ExtenderMessage*>(Msg);
65 if (msg->IsValid()) {
66 ProcessExtenderMessage(*Context, msg->GetMessage());
67 }
68 return ProtocolResult::Handled;
69 }
70
71 return ProtocolResult::Unhandled;
72}
73
74ProtocolResult ExtenderProtocolBase::PreUpdate(GameTime const& time)
75{

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected