muddesigner/MudEngine/Commands/CommandSaveWorld.cs
2011-09-13 19:50:52 -07:00

30 lines
747 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using MudEngine.FileSystem;
using MudEngine.GameObjects.Characters;
using MudEngine.GameManagement;
using MudEngine.Commands;
using MudEngine.GameObjects.Environment;
namespace MudEngine.Commands
{
public class CommandSaveWorld : BaseCommand
{
public CommandSaveWorld()
{
Help.Add("Saves the game world.");
}
public void Execute(String command, BaseCharacter player)
{
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
{
player.ActiveGame.Save();
}
}
}
}