| 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 | { |
no outgoing calls
no test coverage detected