mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
16 lines
442 B
C#
16 lines
442 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Robust.Shared.Toolshed.Commands.Misc;
|
|
|
|
[ToolshedCommand]
|
|
internal sealed class IoCCommand : ToolshedCommand
|
|
{
|
|
[CommandImplementation("registered")]
|
|
public IEnumerable<Type> Registered() => IoCManager.Instance!.GetRegisteredTypes();
|
|
|
|
[CommandImplementation("get")]
|
|
public object? Get([PipedArgument] Type t) => IoCManager.ResolveType(t);
|
|
}
|