mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Fixed issue with still using header instead of info object data
plus some utility functionality
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b444361c7c
commit
8ad7c1e3c7
@@ -68,6 +68,11 @@ namespace BlackMisc
|
||||
return numberOfEntities(flag) == 1;
|
||||
}
|
||||
|
||||
bool CEntityFlags::isFinishedReadState(CEntityFlags::ReadState state)
|
||||
{
|
||||
return state == ReadFinished || state == ReadFinishedRestricted;
|
||||
}
|
||||
|
||||
int CEntityFlags::numberOfEntities(BlackMisc::Network::CEntityFlags::Entity flag)
|
||||
{
|
||||
const int c = static_cast<int>(std::bitset<(sizeof(flag) * 8)>(flag).count());
|
||||
|
||||
@@ -76,6 +76,9 @@ namespace BlackMisc
|
||||
//! Representing single entity?
|
||||
static bool isSingleEntity(BlackMisc::Network::CEntityFlags::Entity flag);
|
||||
|
||||
//! Any finished state
|
||||
static bool isFinishedReadState(ReadState state);
|
||||
|
||||
//! Represented number of entities
|
||||
static int numberOfEntities(BlackMisc::Network::CEntityFlags::Entity flag);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user