CitiesSkylinesMultiplayer / CSM

Source code for the Cities: Skylines Multiplayer mod (CSM)

Home Page:https://citiesskylinesmultiplayer.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a player list

kaenganxt opened this issue · comments

Description

All players should be able to see a list of connected players. The host should be able to kick players from the server.

Implementation hints

  • Add a panel (see other panels in the Panels folder) containing the list of players (MultiplayerManager.Instance.PlayerList)
  • Add buttons to open the panel in the ConnectionPanel
  • Add buttons to kick a player in the panel (only on the host)
  • When clicked, the player should be disconnected (see ConnectedPlayers dict in Server.cs, Player.NetPeer.Disconnect())

Note: This is an issue suited for the Hacktoberfest (see https://hacktoberfest.digitalocean.com/), feel free to ask questions here or on Discord (https://discord.gg/RjACPhd).

I will be giving this one a try.

Implemented in #207