- Converted all Types from C# types to .NET Types (such as bool changed to Boolean, and int changed to Int32). - Zone no longer gets saved from within GameWorld.Save, but rather in Realm.Save() - Room no longer gets saved from within GameWorld.Save(), but rather in Zone.Save(); - Added new SaveWorld command that admins only can execute to force save the world. It's not fully implemented at this time. MudGame: - began work on command execution from within the server while it's running.
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
using MudEngine.FileSystem;
|
|
using MudEngine.GameManagement;
|
|
using MudEngine.GameObjects;
|
|
using MudEngine.GameObjects.Characters;
|
|
|
|
namespace MudEngine.Commands
|
|
{
|
|
public class CommandSave : IGameCommand
|
|
{
|
|
public Boolean Override { get; set; }
|
|
public String Name { get; set; }
|
|
|
|
public CommandResults Execute(String command, BaseCharacter player)
|
|
{
|
|
/*
|
|
if (player.ActiveGame.PlayerCollection.Length != 0)
|
|
{
|
|
if (player.GetType().Name != "BaseCharacter")
|
|
{
|
|
Scripting.GameObject obj = player.ActiveGame.scriptEngine.GetObject(player.ActiveGame.PlayerCollection.GetType().Name);
|
|
|
|
obj.InvokeMethod("Save", new object[] { player.ActiveGame.DataPaths.Players });
|
|
}
|
|
}
|
|
else */
|
|
player.Save(player.ActiveGame.DataPaths.Players);
|
|
|
|
return new CommandResults();
|
|
}
|
|
}
|
|
}
|