mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
no message
This commit is contained in:
parent
7a8fa281b9
commit
e3a9560c7c
11 changed files with 211 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue