Removal of BaseCommand class as Commands will inherit from ICommand like the original Command System did.
This commit is contained in:
parent
3d8051c995
commit
d857b23dee
2 changed files with 0 additions and 48 deletions
|
@ -1,47 +0,0 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using MudEngine.Game.Characters;
|
||||
using MudEngine.Core.Interface;
|
||||
|
||||
namespace MudEngine.Core
|
||||
{
|
||||
public abstract class BaseCommand : ICommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets a collection of help topics related to this command.
|
||||
/// </summary>
|
||||
[Browsable(false)]
|
||||
public List<string> Help { get; set; }
|
||||
|
||||
public BaseCommand()
|
||||
{
|
||||
Help = new List<string>();
|
||||
this.Name = this.GetType().Name.Substring("Command".Length);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes the command for the character supplied.
|
||||
/// </summary>
|
||||
/// <param name="command"></param>
|
||||
/// <param name="character"></param>
|
||||
public abstract void Execute(string command, StandardCharacter character);
|
||||
|
||||
public string Name {get;set;}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
set
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,7 +44,6 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Core\BaseCommand.cs" />
|
||||
<Compile Include="Core\CommandSystem.cs" />
|
||||
<Compile Include="Core\Interfaces\ICommand.cs" />
|
||||
<Compile Include="Core\Interfaces\IGameComponent.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue