mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
33 lines
938 B
C#
33 lines
938 B
C#
using System;
|
|
using Robust.Shared.Console;
|
|
using Robust.Shared.ContentPack;
|
|
|
|
namespace Robust.Client.Console.Commands
|
|
{
|
|
#if DEBUG
|
|
internal sealed class DumpMetadataMembersCommand : IConsoleCommand
|
|
{
|
|
public string Command => "dmetamem";
|
|
public string Description => "Dumps a type's members in a format suitable for the sandbox configuration file.";
|
|
public string Help => "Usage: dmetamem <type>";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var type = Type.GetType(args[0]);
|
|
|
|
if (type == null)
|
|
{
|
|
shell.WriteError("That type does not exist");
|
|
return;
|
|
}
|
|
|
|
foreach (var sig in AssemblyTypeChecker.DumpMetaMembers(type))
|
|
{
|
|
System.Console.WriteLine(@$"- ""{sig}""");
|
|
shell.WriteLine(sig);
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|