Files
Test-Multiplayer/Library/PackageCache/com.unity.dedicated-server@5a2666836321/MultiplayerRoles/Runtime/MultiplayerRole.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02:00

43 lines
1.0 KiB
C#

using System;
namespace Unity.Multiplayer
{
/// <summary>
/// The role of the application in a multiplayer game.
/// </summary>
public enum MultiplayerRole
{
/// <summary>
/// Indicates that the application is running as a client.
/// </summary>
Client = 0,
/// <summary>
/// Indicates that the application is running as a dedicated server.
/// </summary>
Server = 1,
}
/// <summary>
/// Flags for the role of the application in a multiplayer game.
/// </summary>
[Flags]
public enum MultiplayerRoleFlags
{
/// <summary>
/// Flag for the client role.
/// </summary>
Client = 1 << MultiplayerRole.Client,
/// <summary>
/// Flag for the server role.
/// </summary>
Server = 1 << MultiplayerRole.Server,
/// <summary>
/// Flag for both the client and server roles.
/// </summary>
ClientAndServer = Client | Server,
}
}