- Changed the IGameCommand Interface constructor for the Execute method. - Updated all of the game commands to make use of the new Execute Method Constructor requirements set by the updated interface. - Look command now returns a description of the players current Room. - Walk command now supports moving players from one Room to another. Use 'Walk Direction' where Direction equals the direction you want to travel (Example: 'Walk North") - TravelDirections.GetTravelDirectionValue now checks the supplied direction value in a case-insensitive manor. - Add a new CommandEngine that handles the commands inputed from the user. - Modified CommandResult to return an array of objects rather than a single object. Runtime: - Now scans the supplied collection of objects returned to the runtime after executing a game command, and adjusts the runtime components as needed, including printing information to the console. - Now displays various warnings during startup to let the user know if certain content hasn't been set within the ProjectInformation yet. - Now executes the 'Look' command on startup to display the users current location. - Fully supports the 'Look' and 'Walk' commands.
99 lines
No EOL
4.1 KiB
C#
99 lines
No EOL
4.1 KiB
C#
namespace MudDesigner
|
|
{
|
|
partial class Runtime
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
|
this.txtConsole = new System.Windows.Forms.RichTextBox();
|
|
this.txtCommand = new System.Windows.Forms.TextBox();
|
|
this.splitContainer1.Panel1.SuspendLayout();
|
|
this.splitContainer1.Panel2.SuspendLayout();
|
|
this.splitContainer1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// splitContainer1
|
|
//
|
|
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
|
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
|
this.splitContainer1.Name = "splitContainer1";
|
|
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
|
//
|
|
// splitContainer1.Panel1
|
|
//
|
|
this.splitContainer1.Panel1.Controls.Add(this.txtConsole);
|
|
//
|
|
// splitContainer1.Panel2
|
|
//
|
|
this.splitContainer1.Panel2.Controls.Add(this.txtCommand);
|
|
this.splitContainer1.Size = new System.Drawing.Size(693, 422);
|
|
this.splitContainer1.SplitterDistance = 393;
|
|
this.splitContainer1.TabIndex = 0;
|
|
//
|
|
// txtConsole
|
|
//
|
|
this.txtConsole.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.txtConsole.Location = new System.Drawing.Point(0, 0);
|
|
this.txtConsole.Name = "txtConsole";
|
|
this.txtConsole.Size = new System.Drawing.Size(693, 393);
|
|
this.txtConsole.TabIndex = 0;
|
|
this.txtConsole.Text = "";
|
|
//
|
|
// txtCommand
|
|
//
|
|
this.txtCommand.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.txtCommand.Location = new System.Drawing.Point(0, 0);
|
|
this.txtCommand.Name = "txtCommand";
|
|
this.txtCommand.Size = new System.Drawing.Size(693, 20);
|
|
this.txtCommand.TabIndex = 1;
|
|
this.txtCommand.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCommand_KeyDown);
|
|
//
|
|
// Runtime
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(693, 422);
|
|
this.Controls.Add(this.splitContainer1);
|
|
this.Name = "Runtime";
|
|
this.Text = "Runtime";
|
|
this.Load += new System.EventHandler(this.Runtime_Load);
|
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
|
this.splitContainer1.Panel2.PerformLayout();
|
|
this.splitContainer1.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.SplitContainer splitContainer1;
|
|
private System.Windows.Forms.RichTextBox txtConsole;
|
|
private System.Windows.Forms.TextBox txtCommand;
|
|
}
|
|
} |