MudEngine:
- Converted CommandEngine fully to non-static.
This commit is contained in:
parent
7c6ca6a2b9
commit
368cdb00ee
3 changed files with 37 additions and 35 deletions
|
@ -147,7 +147,22 @@ namespace MudEngine.GameObjects.Characters
|
|||
internal void Initialize()
|
||||
{
|
||||
client.Receive(new byte[255]);
|
||||
Log.Write("New Player Connected.");
|
||||
|
||||
if (Game.IsDebug)
|
||||
Log.Write("New Player Connected.");
|
||||
|
||||
Log.Write("Loading internal game commands...");
|
||||
//Loads the MudEngine Game Commands
|
||||
CommandSystem.LoadBaseCommands();
|
||||
|
||||
//Ensure custom commands are loaded until everything is fleshed out.
|
||||
if (Game.IsDebug)
|
||||
{
|
||||
foreach (string command in CommandSystem.GetCommands())
|
||||
{
|
||||
Log.Write("Command loaded: " + command);
|
||||
}
|
||||
}
|
||||
|
||||
string result = ExecuteCommand("Login");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue