- Removed from solution Mud Engine: - Moved the CommandEngine, CommandResults and ICommand Interface out from the Commands namespace and into GameManagement since they manage the game commands. - Added CommandExit class to provide the ability to exit a game once running. This is fully implemented. - Realms, Zones and Rooms now have an IsInitial property for determining if this is an initial location for the Game. - Renamed GameSetup to Game. - Corrected GameObject being in the incorrect namespace. - Corrected the ScriptEngine not - CommandEngine no longer needs a Name argument. Arguments changed from 5 to 4 due to this change. Mud Game: - Added Example Game used for testing various MUDEngine features and testing constructability of games using the engine. - Currently only contains 1 Realm, 1 Zone and Two Rooms. Only working command is Exit.
30 lines
629 B
C#
30 lines
629 B
C#
//Microsoft .NET Framework
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace MudEngine.GameManagement
|
|
{
|
|
public class CommandResults
|
|
{
|
|
/// <summary>
|
|
/// Result of the command.
|
|
/// </summary>
|
|
public object[] Result { get; set; }
|
|
|
|
public CommandResults()
|
|
{
|
|
}
|
|
|
|
public CommandResults(object[] Result)
|
|
{
|
|
this.Result = Result;
|
|
}
|
|
|
|
public CommandResults(string message)
|
|
{
|
|
this.Result = new object[] { message };
|
|
}
|
|
}
|
|
}
|