MudEngine:

- 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.
This commit is contained in:
Scionwest_cp 2010-08-14 00:20:43 -07:00
parent 9585cede63
commit a52ccf8da9
36 changed files with 365 additions and 297 deletions

View file

@ -10,12 +10,12 @@ namespace MudEngine.GameManagement
{
public static class Log
{
static List<string> cachedMessages = new List<string>();
static List<String> cachedMessages = new List<String>();
public static Boolean IsVerbose;
public static void Write(string message)
public static void Write(String message)
{
string filename = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Root), "Log.txt");
String filename = Path.Combine(FileManager.GetDataPath(SaveDataTypes.Root), "Log.txt");
StreamWriter sw;
if (File.Exists(filename))
@ -30,12 +30,11 @@ namespace MudEngine.GameManagement
cachedMessages.Add(message);
}
public static string GetMessages()
public static String GetMessages()
{
string messages = "";
StringBuilder sb = new StringBuilder();
foreach (string message in cachedMessages)
foreach (String message in cachedMessages)
{
sb.AppendLine(message);
}
@ -48,7 +47,7 @@ namespace MudEngine.GameManagement
public static void FlushMessages()
{
cachedMessages = new List<string>();
cachedMessages = new List<String>();
}
}
}