MudEngine:
- Deleted the following commands from the engine: Exit, GetTime, LinkRoom, Load, Look, Save and Walk. These are now part of the MudGame script library. - Revised all of the Commands prior to moving them to the Script Library. They are now very well commented. - Optimized the player login code. - All commands now support the Help command. - Game now has a MinimumPasswordSize property for setting the required minimum characters for a players password. - System.Linq and System.Text using statements added to scripts when they are compiled. Script writers no longer need to type out the fully qualified name of a Type within those namespaces. MudGame: - Added the following commands to the script library: Exit, GetTime, LinkRoom, Load, Look, Save, Walk. - Added 76 lines of comments to WorldCalifornia to better help new users understand how to create their game worlds via script. - The Clear, Help, Say and Create commands have been given better commenting. - Existing scripts have been given some better optimizations.
This commit is contained in:
parent
cc2213a7b3
commit
7e31a78f72
27 changed files with 1251 additions and 881 deletions
|
@ -142,7 +142,20 @@ namespace MudEngine.Scripting
|
|||
Directory.CreateDirectory("temp");
|
||||
|
||||
//Setup the additional sourcecode that's needed in the script.
|
||||
String[] usingStatements = new String[] { "using System;", "using System.Collections.Generic;", "using MudEngine.GameObjects;", "using MudEngine.GameObjects.Characters;", "using MudEngine.GameObjects.Environment;", "using MudEngine.GameObjects.Items;", "using MudEngine.GameManagement;", "using MudEngine.FileSystem;", "using MudEngine.Scripting;" };
|
||||
String[] usingStatements = new String[]
|
||||
{
|
||||
"using System;",
|
||||
"using System.Collections.Generic;",
|
||||
"using System.Text;",
|
||||
"using System.Linq;",
|
||||
"using MudEngine.GameObjects;",
|
||||
"using MudEngine.GameObjects.Characters;",
|
||||
"using MudEngine.GameObjects.Environment;",
|
||||
"using MudEngine.GameObjects.Items;",
|
||||
"using MudEngine.GameManagement;",
|
||||
"using MudEngine.FileSystem;",
|
||||
"using MudEngine.Scripting;"
|
||||
};
|
||||
|
||||
foreach (String script in scripts)
|
||||
{
|
||||
|
@ -171,7 +184,15 @@ namespace MudEngine.Scripting
|
|||
Dictionary<String, String> providerOptions = new Dictionary<String,String>();
|
||||
providerOptions.Add("CompilerVersion", "v4.0");
|
||||
|
||||
CompilerParameters param = new CompilerParameters(new String[] {"mscorlib.dll", "System.dll", "MudEngine.dll"});
|
||||
String[] referencedAssemblies = new String[]
|
||||
{
|
||||
"mscorlib.dll",
|
||||
"System.dll",
|
||||
"System.Core.dll",
|
||||
"MudEngine.dll"
|
||||
};
|
||||
|
||||
CompilerParameters param = new CompilerParameters(referencedAssemblies);
|
||||
param.GenerateExecutable = false;
|
||||
param.GenerateInMemory = true;
|
||||
if (!param.GenerateInMemory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue