muddesigner/MudEngine/GameManagement/ICommand.cs
Scionwest_cp bbd411fdd1 MudEngine:
- Removed the need for the old CommandResult Type to be a returned value on all commands. Command.Execute() is now just void.
 - All commands updated to now return a value. They use player.Send() to direct messages to the player instead.
 - Removed CommandClear from the project and made it a script so that developers can see how to write custom command scripts.
2010-08-15 13:06:51 -07:00

24 lines
629 B
C#

//Microsoft .NET Framework
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//MUD Engine
using MudEngine.Commands;
using MudEngine.GameObjects.Characters;
using MudEngine.GameManagement;
using MudEngine.GameObjects.Environment;
namespace MudEngine.GameManagement
{
public interface IGameCommand
{
//Name of the command
String Name { get; set; }
//Used to override commands with the same name
Boolean Override { get; set; }
//Executes the command.
void Execute(String command, BaseCharacter player);
}
}