Designer:
- Now supports the exit command, prevents the designer from crashing. Runtime: - Added a GUI based set of buttons for traversing your environments via a click-through method instead of forcing users to type commands. Engine: - Added the Exit command to exit the runtime (At this time it shuts down the Designer as well.)
This commit is contained in:
parent
79f6d36083
commit
59502408ce
6 changed files with 245 additions and 56 deletions
26
Mud Designer/MudEngine/GameCommands/CommandExit.cs
Normal file
26
Mud Designer/MudEngine/GameCommands/CommandExit.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using MudDesigner.MudEngine.Interfaces;
|
||||
using MudDesigner.MudEngine.Characters;
|
||||
using MudDesigner.MudEngine.GameManagement;
|
||||
using MudDesigner.MudEngine.GameObjects.Environment;
|
||||
|
||||
namespace MudDesigner.MudEngine.GameCommands
|
||||
{
|
||||
public class CommandExit : IGameCommand
|
||||
{
|
||||
public bool Override { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public CommandResults Execute(BaseCharacter player, ProjectInformation project, Room room, string command)
|
||||
{
|
||||
Application.Exit();
|
||||
|
||||
return new CommandResults();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue