MudEngine:
- Deleted the following commands from the engine: Exit, GetTime, LinkRoom, Load, Look, Save and Walk. These are now part of the MudGame script library. - Revised all of the Commands prior to moving them to the Script Library. They are now very well commented. - Optimized the player login code. - All commands now support the Help command. - Game now has a MinimumPasswordSize property for setting the required minimum characters for a players password. - System.Linq and System.Text using statements added to scripts when they are compiled. Script writers no longer need to type out the fully qualified name of a Type within those namespaces. MudGame: - Added the following commands to the script library: Exit, GetTime, LinkRoom, Load, Look, Save, Walk. - Added 76 lines of comments to WorldCalifornia to better help new users understand how to create their game worlds via script. - The Clear, Help, Say and Create commands have been given better commenting. - Existing scripts have been given some better optimizations.
This commit is contained in:
parent
cc2213a7b3
commit
7e31a78f72
27 changed files with 1251 additions and 881 deletions
|
@ -1,15 +1,40 @@
|
|||
public class CommandCreate : IGameCommand
|
||||
/// <summary>
|
||||
/// The Create command is used to dynamically create content within the game world.
|
||||
/// Content is created at run-time while the server/game is running and players are connected.
|
||||
/// Newly created content will be available for players to use/traverse immediately after creation is completed.
|
||||
/// Rooms that are created may be linked together using the LinkRoom command.
|
||||
/// </summary>
|
||||
public class CommandCreate : IGameCommand
|
||||
{
|
||||
/// <summary>
|
||||
/// Used by the Command Engine to allow for overriding any other commands that contain the same name.
|
||||
/// TODO: Does Overriding Commands still work? This is part of some old code I wrote several years back and might be broke.
|
||||
/// </summary>
|
||||
public Boolean Override { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the command.
|
||||
/// If Override is set to true, this command will override any other command that contains the same name.
|
||||
/// </summary>
|
||||
public String Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A collection of strings that contains helpfull information for this Command.
|
||||
/// When the user enteres 'Help Exit' the game will print the content of this collection.
|
||||
/// This is treated like a virtual book, each entry in the collection is printed as a new line.
|
||||
/// </summary>
|
||||
public List<String> Help { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Constructor for the class.
|
||||
/// </summary>
|
||||
public CommandCreate()
|
||||
{
|
||||
Help = new List<string>();
|
||||
Help.Add("Allows for the creation of environment objects.");
|
||||
Help.Add("Linking of Rooms are not supported yet.");
|
||||
//Help.Add("In order to link Rooms together use the LinkRoom command.");
|
||||
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.");
|
||||
Help.Add("Rooms that are created may be linked together using the LinkRoom command.");
|
||||
}
|
||||
|
||||
public void Execute(String command, BaseCharacter player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue