muddesigner/MudGame/Scripts/PlayerCommands/CommandSave.cs
Budoray_cp cd68f3d042
2011-09-18 12:51:20 -07:00

22 lines
No EOL
544 B
C#

/// <summary>
/// The Save command will save the current player to a hard-disk file.
/// </summary>
public class CommandSave : BaseCommand
{
/// <summary>
/// Constructor for the class.
/// </summary>
public CommandSave()
{
Help.Add("Saves your character immediately.");
}
/// <summary>
/// Constructor for the class.
/// </summary>
public void Execute(String command, BaseCharacter player)
{
//Save the player to the hard-disk.
player.Save();
}
}