18 lines
510 B
C#
18 lines
510 B
C#
using System;
|
|
using TextRPG.Commands;
|
|
|
|
namespace TextRPG.Commands
|
|
{
|
|
public class TimeCommand : Command
|
|
{
|
|
public override string Name => "time";
|
|
public override string Description => "Outputs the current time";
|
|
public override string Usage => "time";
|
|
|
|
public override void Execute(string[] args, Action<string> outputCallback)
|
|
{
|
|
// Send a special marker that the console UI will recognize
|
|
outputCallback("12:23");
|
|
}
|
|
}
|
|
} |