memberCount() public méthode

Returns the number of members in the guild.
public memberCount ( ) : int
Résultat int
Exemple #1
0
        public void removeGuildMember(Guild guild, int playerId)
        {
            // remove the user from the guild
            Program.storage.removeGuildMember(guild.getId(), playerId);
            guild.removeMember(playerId);

            // if theres no more members left delete the guild
            if (guild.memberCount() == 0)
                removeGuild(guild);

            // remove the user from owners list
            mOwners.Remove(playerId);
        }