no message

This commit is contained in:
SilicaAndPina 2020-09-30 02:54:32 +13:00
parent 7a8fa281b9
commit e3a9560c7c
11 changed files with 211 additions and 22 deletions

View file

@ -76,6 +76,17 @@ namespace Horse_Isle_Server
}
}
public static int GetNumberOfPlayers()
{
int count = 0;
foreach(Client client in ConnectedClients)
{
if (client.LoggedIn)
count++;
}
return count;
}
public static void StartServer()
{
ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);