Moved CommandRestart, CommandLogin and CommandSaveWorld from the MudEngine project into the MudGame project within the Scripts directory.

Now 3rd party users can see how restarting the server takes place, saving the world and logging into the game world.

CommandEditRealm, EditRoom and EditZone was deleted.  They will be re-built at a later date.  For the time being, use the pre-built example scripts within the MudGame project.
This commit is contained in:
Scionwest_cp 2011-09-27 19:27:42 -07:00
parent a00f60d22b
commit eff71f38cd
9 changed files with 27 additions and 2600 deletions

View file

@ -0,0 +1,16 @@
 public class CommandSaveWorld : BaseCommand
{
public CommandSaveWorld()
{
Help.Add("Saves the game world.");
}
public override void Execute(String command, BaseCharacter player)
{
if ((player.Role == SecurityRoles.Admin) || (player.Role == SecurityRoles.GM))
{
player.ActiveGame.Save();
}
}
}
}