Files
plugin-library/Assets/00.StaryEvo/Runtime/Utility/RemoteServices.cs
2025-03-31 15:01:11 +08:00

31 lines
917 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/****************************************************
文件RemoteServicesWithAuth.cs
作者xosmo_
邮箱:
日期2025/3/31 14:39:5
功能:
*****************************************************/
using YooAsset;
namespace Stary.Evo
{
public class RemoteServices : IRemoteServices
{
private readonly string _defaultHostServer;
private readonly string _fallbackHostServer;
public RemoteServices(string defaultHostServer, string fallbackHostServer)
{
_defaultHostServer = defaultHostServer;
_fallbackHostServer = fallbackHostServer;
}
string IRemoteServices.GetRemoteMainURL(string fileName)
{
return $"{_defaultHostServer}/{fileName}";
}
string IRemoteServices.GetRemoteFallbackURL(string fileName)
{
return $"{_fallbackHostServer}/{fileName}";
}
}
}