muddesigner/Mud Designer/MudEngine/GameCommands/CommandExit.cs
Scionwest_cp 59502408ce 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.)
2010-02-04 20:43:28 -08:00

26 lines
721 B
C#

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();
}
}
}