18 lines
511 B
C#
18 lines
511 B
C#
// InventoryCommand.cs
|
|
using System;
|
|
using TextRPG.PlayerSystem;
|
|
|
|
namespace TextRPG.Commands
|
|
{
|
|
public class InventoryCommand : Command
|
|
{
|
|
public override string Name => "inventory";
|
|
public override string Description => "Lists all items in your inventory.";
|
|
public override string Usage => "inventory";
|
|
|
|
public override void Execute(string[] args, Action<string> outputCallback)
|
|
{
|
|
outputCallback(Player.Instance.GetInventoryString());
|
|
}
|
|
}
|
|
} |