C# Класс WindowsDefender_WebApp.Match

This class that handles the information about a match. Functionality: We can add a user or remove a user to the match.
Authors: Jeff, Rosanna, Jens (Server Team). Comments by Nadia and Rosanna. Updated by: NA
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Users System.Collections.ArrayList

Открытые методы

Метод Описание
AddUser ( User user ) : bool

Adds a user to the match. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.

RemoveUser ( User user ) : void

Remove user from match and re-assign the match host if needed. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.

Описание методов

AddUser() публичный Метод

Adds a user to the match. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.
public AddUser ( User user ) : bool
user User The user to be added.
Результат bool

RemoveUser() публичный Метод

Remove user from match and re-assign the match host if needed. Uses a monitor lock to ensure multiple users are not writing to the list at the same time.
public RemoveUser ( User user ) : void
user User The user to remove from the match.
Результат void

Описание свойств

Users публичное свойство

public ArrayList,System.Collections Users
Результат System.Collections.ArrayList