MudEngine:
- CommandLogin no longer invokes the Look Command - Fixed CommandWalk no longer telling the player an invalid direction message when trying to walk to someplace that does not exist. - Moved PlayerCollection array referencing from Game.Start() to the Game's constructor so that scripts may change the player class during its startup. - BaseCharacter now invokes the Look command after Login command is completed. - ScriptEngine no longer sets the output path for a compiled script if the script is designated as compile to memory. - Fixed custom players not being able to access their own Methods and Properties during runtime. MudServer: - Additional Console Log Messages added.
This commit is contained in:
parent
88378584ac
commit
8b1be3d1eb
6 changed files with 34 additions and 51 deletions
|
@ -165,7 +165,9 @@ namespace MudEngine.Scripting
|
|||
CompilerParameters param = new CompilerParameters(new string[] {"mscorlib.dll", "System.dll", "MudEngine.dll"});
|
||||
param.GenerateExecutable = false;
|
||||
param.GenerateInMemory = true;
|
||||
param.OutputAssembly = Path.Combine(oldPath, "Scripts.dll");
|
||||
if (!param.GenerateInMemory)
|
||||
param.OutputAssembly = Path.Combine(oldPath, "Scripts.dll");
|
||||
|
||||
param.IncludeDebugInformation = false;
|
||||
param.TreatWarningsAsErrors = true;
|
||||
|
||||
|
@ -288,6 +290,9 @@ namespace MudEngine.Scripting
|
|||
|
||||
private void InitializeSourceFiles()
|
||||
{
|
||||
if (!Directory.Exists(ScriptPath))
|
||||
Directory.CreateDirectory(ScriptPath);
|
||||
|
||||
string[] scripts = Directory.GetFiles(ScriptPath, "*.cs", SearchOption.AllDirectories);
|
||||
|
||||
if (scripts.Length == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue