您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
47 行
1.5 KiB
47 行
1.5 KiB
using System;
|
|
using Unity.Services.Core.Editor;
|
|
|
|
namespace Unity.Services.Authentication.Editor
|
|
{
|
|
class AuthenticationService : IEditorGameService
|
|
{
|
|
/// <summary>
|
|
/// Name of the service
|
|
/// Used for error handling and service fetching
|
|
/// </summary>
|
|
public string Name => "Authentication Service";
|
|
|
|
/// <summary>
|
|
/// Identifier for the service
|
|
/// Used when registering and fetching the service
|
|
/// </summary>
|
|
public IEditorGameServiceIdentifier Identifier { get; } = new AuthenticationIdentifier();
|
|
|
|
/// <summary>
|
|
/// Flag used to determine whether COPPA Compliance should be adhered to
|
|
/// for this service
|
|
/// </summary>
|
|
public bool RequiresCoppaCompliance => false;
|
|
|
|
/// <summary>
|
|
/// Flag used to determine whether this service has a dashboard
|
|
/// </summary>
|
|
public bool HasDashboard => false;
|
|
|
|
/// <summary>
|
|
/// Getter for the formatted dashboard url
|
|
/// If <see cref="HasDashboard"/> is false, this field only need return null or empty string
|
|
/// </summary>
|
|
/// <returns>The formatted URL</returns>
|
|
public string GetFormattedDashboardUrl()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The enabler which allows the service to toggle on/off
|
|
/// Can be set to null, in which case there would be no toggle
|
|
/// </summary>
|
|
public IEditorGameServiceEnabler Enabler { get; } = null;
|
|
}
|
|
}
|