public int CountPlayers()
{
_creaturesRWLS.EnterReadLock();
try
{
// Count any player creatures that are directly controlled,
// filtering creatures with masters (pets/partners).
return _creatures.Values.Count(a => a is PlayerCreature && a.Master == null);
}
finally
{
_creaturesRWLS.ExitReadLock();
}
}