mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Ref T565, "canTalk" utility functions
This commit is contained in:
committed by
Mat Sutcliffe
parent
a049ee7025
commit
5ac1f65756
@@ -23,6 +23,16 @@ namespace BlackMisc
|
||||
CSequence(other)
|
||||
{ }
|
||||
|
||||
int CVoiceRoomList::countCanTalkTo() const
|
||||
{
|
||||
int c = 0;
|
||||
for (const CVoiceRoom &r : *this)
|
||||
{
|
||||
if (r.canTalkTo()) { c++; }
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
const CVoiceRoomList &CVoiceRoomList::twoEmptyRooms()
|
||||
{
|
||||
static CVoiceRoomList emptyRooms;
|
||||
|
||||
Reference in New Issue
Block a user