Exemplo n.º 1
0
        /// <inheritdoc />
        /// <summary>
        ///     Uninvites the specified character spawn.
        /// </summary>
        /// <param name="characterSpawn">The character spawn.</param>
        public void Uninvite(ICharacterSpawn characterSpawn)
        {
            if (!Invitations.Contains(characterSpawn))
            {
                return;
            }

            Invitations.Remove(characterSpawn);
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        /// <summary>
        ///     Invites the specified character spawn.
        /// </summary>
        /// <param name="characterSpawn">The character spawn.</param>
        /// <exception cref="T:System.NotImplementedException"></exception>
        public void Invite(ICharacterSpawn characterSpawn)
        {
            if (Invitations.Contains(characterSpawn))
            {
                return;
            }

            Invitations.Add(characterSpawn);
        }
Exemplo n.º 3
0
 /// <inheritdoc />
 /// <summary>
 ///     Determines whether the specified character spawn is invited.
 /// </summary>
 /// <param name="characterSpawn">The character spawn.</param>
 /// <returns>
 ///     <c>true</c> if the specified character spawn is invited; otherwise, <c>false</c>.
 /// </returns>
 public bool IsInvited(ICharacterSpawn characterSpawn)
 {
     return(Invitations.Contains(characterSpawn));
 }