- Updated to work with ScriptingEngine changes. MudEngine: - Game.PlayerCollection changed to a List<>. Server obtains a array version of it within Server.initialize() via players = pbs.ToArray(). - All BaseObject classes now require a reference to the Game and contain a property called ActiveGame. - Player.Game removed and now uses it's parent objects ActiveGame property. - Player.Role property added. Uses the new SecurityRoles enum that specifies what level of access the player has. - ScriptEngine now loads all libraries found within the specified ScriptsPath directory, instances the scripts and places them into a collection. - Custom character script instancing is now supported, but not fully implemented throughout the engine. They can be loaded, but not used during runtime at this time.
14 lines
206 B
C#
14 lines
206 B
C#
using System;
|
|
|
|
namespace MudEngine.GameManagement
|
|
{
|
|
public enum SecurityRoles
|
|
{
|
|
Admin,
|
|
Immortal,
|
|
GM,
|
|
QuestGiver,
|
|
Player,
|
|
NPC
|
|
}
|
|
}
|