using UnityEngine;
using InternalManager = UnityEngine.Multiplayer.Internal.MultiplayerManager;
namespace Unity.Multiplayer
{
///
/// Provides an api for managing multiplayer roles in runtime.
///
public static class MultiplayerRolesManager
{
///
/// Gets the active multiplayer role mask.
///
public static MultiplayerRoleFlags ActiveMultiplayerRoleMask
=> (MultiplayerRoleFlags)InternalManager.activeMultiplayerRoleMask;
///
/// Gets the multiplayer role mask for a GameObject.
///
/// The GameObject.
/// Returns the multiplayer role mask for the provided GameObject.
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForGameObject(GameObject gameObject)
=> (MultiplayerRoleFlags)InternalManager.GetMultiplayerRoleMaskForGameObject(gameObject);
///
/// Gets the multiplayer role mask for a Component.
///
/// The Component.
/// Returns the multiplayer role mask for the provided Component.
public static MultiplayerRoleFlags GetMultiplayerRoleMaskForComponent(Component component)
=> (MultiplayerRoleFlags)InternalManager.GetMultiplayerRoleMaskForComponent(component);
}
}