mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
* AAAAAAAAAAAAA * Organization * Still doesnt work * Formatting * It works!! * More changes to everything * Beginning of changes to overlays * Makes the overlay manager GUID based (also it was very messy, still messy but i fixed some of it) * Stencils are easy * Questionable changes to overlays * Minor change to HLR * Fixed duplicate overlays when calling some commands (Like showbb) * Fixes misleading message * Adds a variety of worldspaces for overlays to choose from * Caching * Address reviews * Merging pains * ah. * ahhhhh * minor overlaymanager changes * Work * fix * Merge?? * Fixes null errors * Force update * Delete whatever the fuck this is? Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
36 lines
931 B
C#
36 lines
931 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.Timing;
|
|
|
|
namespace Robust.Client.Graphics
|
|
{
|
|
|
|
[PublicAPI]
|
|
public interface IOverlayManager
|
|
{
|
|
bool AddOverlay(Overlay overlay);
|
|
|
|
bool RemoveOverlay(Overlay overlay);
|
|
bool RemoveOverlay(Type overlayClass);
|
|
bool RemoveOverlay<T>() where T : Overlay;
|
|
|
|
bool TryGetOverlay(Type overlayClass, out Overlay? overlay);
|
|
bool TryGetOverlay<T>(out T? overlay) where T : Overlay;
|
|
|
|
Overlay GetOverlay(Type overlayClass);
|
|
T GetOverlay<T>() where T : Overlay;
|
|
|
|
bool HasOverlay(Type overlayClass);
|
|
bool HasOverlay<T>() where T : Overlay;
|
|
|
|
IEnumerable<Overlay> AllOverlays { get; }
|
|
}
|
|
|
|
internal interface IOverlayManagerInternal : IOverlayManager
|
|
{
|
|
void FrameUpdate(FrameEventArgs args);
|
|
}
|
|
}
|