MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / commandRequiresAuth

Method commandRequiresAuth

src/openrct2/network/NetworkPacket.cpp:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 bool Packet::commandRequiresAuth() const noexcept
48 {
49 switch (getCommand())
50 {
51 case Command::ping:
52 case Command::auth:
53 case Command::token:
54 case Command::gameInfo:
55 case Command::objectsList:
56 case Command::scriptsHeader:
57 case Command::scriptsData:
58 case Command::mapRequest:
59 case Command::heartbeat:
60 return false;
61 default:
62 return true;
63 }
64 }
65
66 void Packet::write(const void* bytes, size_t size)
67 {

Callers 2

queuePacketMethod · 0.80
ProcessPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected