* StandardCharacter now automatically invokes the Login command upon connection to the server. Login command not implemented completely yet.

* Telnet client header information is now successfully (finally) stripped out of the first stream received.
* Command System underwent some optimizations along with now always returning a Boolean value once execution of a command is completed.
* ICommand interface now forces all ICommand.Execute methods to return a Boolean value.
* DataPaths class re-wrote and is now simi in-use by StandardGame and the Login command
* Minor adjustments to how characters are initialized upon connection in various classes.
This commit is contained in:
Scionwest_cp 2012-03-03 20:57:47 -08:00
parent 0720393626
commit ec5a674062
10 changed files with 185 additions and 74 deletions

View file

@ -24,7 +24,7 @@ namespace MudEngine.GameScripts.Commands
this.Description = "Chat command that allows objects to communicate.";
}
public void Execute(string command, StandardCharacter character)
public Boolean Execute(string command, StandardCharacter character)
{
//Grab a reference to the character for simplifying access.
StandardGame game = character.Game;
@ -42,6 +42,8 @@ namespace MudEngine.GameScripts.Commands
//Send a different copy of the message to the broadcastor.
character.SendMessage("You say: " + message);
return true;
}
}
}