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.
This commit is contained in:
parent
9792bfcd32
commit
bbd411fdd1
14 changed files with 35 additions and 77 deletions
10
MudGame/bin/Debug/Scripts/CommandClear.cs
Normal file
10
MudGame/bin/Debug/Scripts/CommandClear.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
public class CommandClear : IGameCommand
|
||||
{
|
||||
public Boolean Override { get; set; }
|
||||
public String Name { get; set; }
|
||||
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
{
|
||||
player.FlushConsole();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue