Skip to content

Commit

Permalink
Fix docs comment style
Browse files Browse the repository at this point in the history
  • Loading branch information
0forks committed Jul 30, 2023
1 parent 0ec718e commit 69b77e1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/network/featureflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
#include <cstring>
#include <algorithm>

// Bit packed flags, enum values start with 0 and indicate which bit it is

// Change the enums/flagsEnabled to extend

/**
* Bit packed flags, enum values start with 0 and indicate which bit it is.
*
* Change the enums and `flagsEnabled` inside to extend.
*/
struct ServerFeatures {
public:
enum EServerFeatureFlags: uint32_t {
// Server can parse bundle packets
// Server can parse bundle packets: `PACKET_BUNDLE` = 100 (0x64).
PROTOCOL_BUNDLE_SUPPORT,

// Add new flags here
Expand All @@ -47,8 +48,10 @@ struct ServerFeatures {
return m_Available && (m_Flags[bit / 8] & (1 << (bit % 8)));
}

// Whether the server supports the "feature flags" feature,
// set to true when we've received flags packet from the server
/**
* Whether the server supports the "feature flags" feature,
* set to true when we've received flags packet from the server.
*/
bool isAvailable() {
return m_Available;
}
Expand Down

0 comments on commit 69b77e1

Please sign in to comment.