WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Editor/HostingServices/AbstractTestHostingService.cs
2025-01-07 02:06:59 +01:00

54 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using UnityEditor.AddressableAssets.HostingServices;
using UnityEditor.AddressableAssets.Settings;
using UnityEngine;
namespace UnityEditor.AddressableAssets.Tests.HostingServices
{
public abstract class AbstractTestHostingService : IHostingService
{
public string DescriptiveName { get; set; }
public int InstanceId { get; set; }
public List<string> HostingServiceContentRoots { get; protected set; }
public Dictionary<string, string> ProfileVariables { get; protected set; }
public bool IsHostingServiceRunning { get; protected set; }
public ILogger Logger { get; set; }
protected AbstractTestHostingService()
{
HostingServiceContentRoots = new List<string>();
ProfileVariables = new Dictionary<string, string>();
}
public virtual void StartHostingService()
{
}
public virtual void StopHostingService()
{
}
public virtual void CloseHostingService()
{
}
public virtual void OnBeforeSerialize(KeyDataStore dataStore)
{
}
public virtual void OnAfterDeserialize(KeyDataStore dataStore)
{
}
public string EvaluateProfileString(string key)
{
return null;
}
public virtual void OnGUI()
{
}
}
}