Class ServerRoom
This class represents a room on the server.
Inherited Members
Namespace: Evergine.Networking.Server.Rooms
Assembly: Evergine.Networking.dll
Syntax
public class ServerRoom : LocalNetworkRoom, INetworkRoom, IRoomInfo
Constructors
ServerRoom(RoomOptions)
Initializes a new instance of the ServerRoom class.
Declaration
public ServerRoom(RoomOptions roomOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomOptions | roomOptions | The options for the new room. |
Properties
AllPlayers
Gets the list of all the players who are in that room. This is only updated while inside a Room.
Declaration
public IEnumerable<ServerPlayer> AllPlayers { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ServerPlayer> |