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:
parent
402be52e31
commit
7a0d1c5a74
11 changed files with 21 additions and 20 deletions
|
@ -35,7 +35,7 @@ public class CommandCreate : IGameCommand
|
|||
/// </summary>
|
||||
public CommandCreate()
|
||||
{
|
||||
Help = new List<string>();
|
||||
Help = new List<String>();
|
||||
Help.Add("Provides Admins the ability to create content dynamically within the game world.");
|
||||
Help.Add("Content is created at run-time while the server/game is running and players are connected.");
|
||||
Help.Add("Newly created content will be available for players to use/traverse immediately after creation is completed.");
|
||||
|
@ -62,7 +62,7 @@ public class CommandCreate : IGameCommand
|
|||
return;
|
||||
}
|
||||
|
||||
//Split the supplied string up. It wil give us an array of strings with the supplied
|
||||
//Split the supplied String up. It wil give us an array of strings with the supplied
|
||||
//object names if the admin has specified environment objects for creation.
|
||||
String[] env = command.Substring("Create ".Length).Split('>');
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class CommandCreateRoom : IGameCommand
|
|||
/// </summary>
|
||||
public CommandCreateRoom()
|
||||
{
|
||||
Help = new List<string>();
|
||||
Help = new List<String>();
|
||||
Help.Add("Creates a Room within the Admin's current Realm>Zone");
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ public class CommandLinkRoom : IGameCommand
|
|||
public CommandLinkRoom()
|
||||
{
|
||||
//Instance the help collection and add our help information to it.
|
||||
Help = new List<string>();
|
||||
Help = new List<String>();
|
||||
Help.Add("Use this to link two previously created Rooms together.");
|
||||
//Incase Admins try to use the command, they will know that it's broken.
|
||||
//Don't convert this class into a Script until it is fully completed.
|
||||
|
@ -64,7 +64,7 @@ public class CommandLinkRoom : IGameCommand
|
|||
player.Send("2: Exit");
|
||||
|
||||
//Read the input from the Admin.
|
||||
string input = player.ReadInput();
|
||||
String input = player.ReadInput();
|
||||
Int32 value = 0;
|
||||
|
||||
//Attempt to convert their input from a String into a numerical value.
|
||||
|
@ -365,7 +365,7 @@ public class CommandLinkRoom : 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);
|
||||
|
||||
|
@ -381,7 +381,7 @@ public class CommandLinkRoom : IGameCommand
|
|||
//Loop through each value found in our original array or values acquired from the AvailableTravelDirections enum.
|
||||
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);
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ public class CommandList : IGameCommand
|
|||
|
||||
public CommandList()
|
||||
{
|
||||
Help = new List<string>();
|
||||
Help = new List<String>();
|
||||
Help.Add("Using the List command, you can view a generated list of filenames that pertain to a supplied object type.");
|
||||
Help.Add("Usage: List 'ItemType'");
|
||||
Help.Add("Usage: List 'ItemName>ItemType'");
|
||||
|
|
|
@ -24,7 +24,7 @@ public class CommandTeleport : IGameCommand
|
|||
|
||||
public CommandTeleport()
|
||||
{
|
||||
Help = new List<string>();
|
||||
Help = new List<String>();
|
||||
Help.Add("The Teleport command will teleport a player to a specified Room, regardless of where they are at.");
|
||||
Help.Add("Usage: Teleport playername FullyQualifiedRoomPath");
|
||||
Help.Add("Example: Teleport Billy MyRealm>MyZone>MyRoom");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue