using AibisDream.Framework;
namespace AibisDream.FixSystem
{
///
/// Runtime registry for systems available to the Fix scene director and cues.
/// The old SystemDic field remains as a compatibility bridge while call sites migrate.
///
public class FixSceneContext
{
public IOCContainer Registry { get; }
public FixSceneContext(IOCContainer registry)
{
Registry = registry;
}
public void Register(T instance)
{
Registry.Register(instance);
}
public T Get() where T : class
{
return Registry.Get();
}
public bool TryGet(out T instance) where T : class
{
instance = Registry.Get();
return instance != null;
}
public T Unregister() where T : class
{
return Registry.Unregister();
}
public void Clear()
{
Registry.Clear();
}
}
}