mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Timing;
|
|
|
|
namespace Robust.Client.UserInterface.Controllers;
|
|
|
|
// Notices your UIController, *UwU Whats this?*
|
|
/// <summary>
|
|
/// Each <see cref="UIController"/> is instantiated as a singleton by <see cref="UserInterfaceManager"/>
|
|
/// <see cref="UIController"/> can use <see cref="DependencyAttribute"/> for regular IoC dependencies
|
|
/// and <see cref="UISystemDependencyAttribute"/> to depend on <see cref="EntitySystem"/>s, which will be automatically
|
|
/// injected once they are created.
|
|
/// </summary>
|
|
public abstract partial class UIController
|
|
{
|
|
[Dependency] protected readonly IUserInterfaceManager UIManager = default!;
|
|
[Dependency] protected readonly IEntitySystemManager EntitySystemManager = default!;
|
|
[Dependency] protected readonly IEntityManager EntityManager = default!;
|
|
|
|
public virtual void Initialize()
|
|
{
|
|
}
|
|
|
|
public virtual void FrameUpdate(FrameEventArgs args)
|
|
{
|
|
}
|
|
}
|