quantum-space-buddies/QSB/WorldSync/WorldObjectManager.cs

25 lines
525 B
C#
Raw Normal View History

2022-01-29 04:49:07 +00:00
using Cysharp.Threading.Tasks;
2022-02-01 08:58:52 +00:00
using QSB.Utility;
2022-01-29 04:49:07 +00:00
using System.Threading;
2022-02-01 22:24:21 +00:00
using UnityEngine;
2021-03-23 13:18:29 +00:00
namespace QSB.WorldSync
2021-03-23 13:18:29 +00:00
{
public enum WorldObjectScene
{
Both,
SolarSystem,
Eye
}
2021-12-21 02:35:38 +00:00
public abstract class WorldObjectManager : MonoBehaviour, IAddComponentOnStart
{
public abstract WorldObjectScene WorldObjectScene { get; }
2021-12-21 02:35:38 +00:00
public abstract UniTask BuildWorldObjects(OWScene scene, CancellationToken ct);
public virtual void UnbuildWorldObjects() { }
public override string ToString() => GetType().Name;
}
}