muddesigner/Mud Designer/MudEngine/GameCommands/CommandGMTeleport.cs
Scionwest_cp 5f9a707b4c Engine:
- Added Character class PlayerBasic for the lowest authorized level
 - Added Character class PlayerAdmin that will provide some additional higher level authorized commands
 - Added Character class PlayerGM that will provide high level authorized commands
 - Added Factions class for future use of factions
 - Added Class class for future use of classes
 - Added Race class for future use of Races
 - Added NPCFriendly class for future use of Friendly NPCs
 - Added NPCHostile class for future use of Monster NPCs
 - Added CommandWalk class for future walk command
 - Added CommandGMTeleport class for future GM teleporting support.
 - Added Description property to the Door class.
2010-01-22 22:47:37 -08:00

42 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MudDesigner.MudEngine.Interfaces;
using MudDesigner.MudEngine.Characters.Controlled;
namespace MudDesigner.MudEngine.GameCommands
{
public class CommandGMTeleport : IGameCommand
{
public string Name { get; set; }
public bool Override { get; set; }
public CommandGMTeleport()
{
Override = true;
}
public object Execute(params object[] parameters)
{
PlayerGM playerGM = new PlayerGM();
bool foundGM = false;
foreach (object obj in parameters)
{
if (obj is PlayerGM)
{
foundGM = true;
break;
}
}
if (!foundGM)
return null;
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.
return null;
}
}
}