muddesigner/Mud Designer/MudEngine/GameCommands/CommandGMTeleport.cs
Scionwest_cp 02c7b18094 Mud Engine:
GMTeleport checks to make sure the player using the command is indeed a GM.
2010-04-18 11:32:49 -07:00

39 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MudDesigner.MudEngine.Interfaces;
using MudDesigner.MudEngine.Characters;
using MudDesigner.MudEngine.Characters.Controlled;
using MudDesigner.MudEngine.GameManagement;
using MudDesigner.MudEngine.GameObjects.Environment;
namespace MudDesigner.MudEngine.GameCommands
{
public class CommandGMTeleport : IGameCommand
{
public string Name { get; set; }
public bool Override { get; set; }
public CommandGMTeleport()
{
Override = true;
}
public CommandResults Execute(BaseCharacter player, ProjectInformation project, Room room, string command)
{
PlayerGM playerGM = new PlayerGM();
if (player is PlayerGM)
{
playerGM = (PlayerGM)player;
}
else
return null;
//TODO: Find the Realm/Zone/Room that the GM specified to teleport to.
return null;
}
}
}