Mud Engine:

- Fixed a bug within MudScriptCompiler that prevented it from using standard .NET Types (would only support C# keywords).
 - Fixed a bug within MudScriptCompiler that prevented it from accessing Engine Type's from within Scripts.

Mud Game:
 - Changed all of the C# keywords (string, bool) back to .NET, cross-language keywords (String, Boolean).
   Example Scripts will compile regardless of what compiler is used to within the MudScriptCompiler.
This commit is contained in:
Scionwest_cp 2011-05-02 18:29:14 -07:00
parent 402be52e31
commit 7a0d1c5a74
11 changed files with 21 additions and 20 deletions

View file

@ -35,7 +35,7 @@ public class CommandWalk : IGameCommand
Help.Add("You may use the Look command to see a description of the current Room, and decide where you would like to walk.");
Help.Add("Usage: Walk 'Direction' where Direction may equal one of the following:");
//We will construct a string that contains all of the available travel directions for the player.
//We will construct a String that contains all of the available travel directions for the player.
StringBuilder directions = new StringBuilder();
//Store a array of existing values within the AvailableTravelDirection enum.
@ -46,11 +46,11 @@ public class CommandWalk : IGameCommand
//to the screen for the user to see and select from.
foreach (Int32 v in values)
{
//Since enum values are not strings, we can't simply assign a string value to the enum.
//Since enum values are not strings, we can't simply assign a String value to the enum.
//The enum needs to be queried to retrieve a value that matches that of 'v' and convert it to a String
String displayName = Enum.GetName(typeof(AvailableTravelDirections), v);
//Add the current travel direction to our string for later use.
//Add the current travel direction to our String for later use.
directions.Append(displayName + ", ");
}