![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
Classes | |
class | GameCommand |
This class will hold all info about a gamecommand. More... | |
Static Public Member Functions | |
static GameCommand | GetCommand (string commandName) |
Gets the requested command if it exists. | |
static GameCommand | GuessCommand (string commandName) |
Looking for exact match first, then, if nothing found, trying to guess command using first letters. | |
static string[] | GetCommandList (ePrivLevel plvl, bool addDesc) |
Returns an array of all the available commands with the specified plvl and their descriptions. | |
static bool | LoadCommands (bool quiet=false) |
Searches the script assembly for all command handlers. | |
static bool | HandleCommand (GameClient client, string cmdLine) |
Called when a command needs to be handled. | |
static bool | HandleCommandNoPlvl (GameClient client, string cmdLine) |
Called when a command needs to be handled without plvl being taken into consideration. | |
static bool | CompileScripts (bool compileVB, string path, string dllName, string[] asm_names) |
Compiles the scripts into an assembly. | |
static void | AddOrReplaceAssembly (Assembly assembly) |
Add or replace an assembly in the collection of compiled assemblies. | |
static bool | RemoveAssembly (string fullName) |
Removes an assembly from the game servers list of usable assemblies. | |
static Hashtable | FindAllAbilityActionHandler (Assembly asm) |
searches the given assembly for AbilityActionHandlers | |
static Hashtable | FindAllSpecActionHandler (Assembly asm) |
searches the script directory for SpecActionHandlers | |
static ICharacterClass | FindCharacterClass (int id) |
Searches for ClassSpec's by id in a given assembly. | |
static Type | FindNPCGuildScriptClass (string guild, eRealm realm) |
searches for a npc guild script | |
static IControlledBrain | CreateControlledBrain (GamePlayer owner) |
Constructs a new brain for player controlled npcs. | |
static ISpellHandler | CreateSpellHandler (GameLiving caster, Spell spell, SpellLine line) |
Create a spell handler for caster with given spell. | |
static void | ClearSpellHandlerCache () |
Clear all spell handlers from the cashe, forcing a reload when a spell is cast. | |
static IServerRules | CreateServerRules (eGameServerType serverType) |
Create server rules handler for specified server type. | |
static Type | GetType (string name) |
Search for a type by name; first in GameServer assembly then in scripts assemblies. | |
static Type[] | GetDerivedClasses (Type baseType) |
Finds all classes that derive from given type. First check scripts then GameServer assembly. | |
Static Protected Member Functions | |
static Hashtable | FindAllNPCGuildScriptClasses (eRealm realm, Assembly asm) |
Searches for NPC guild scripts. | |
Static Protected Attributes | |
static Hashtable[] | m_gs_guilds = new Hashtable[(int)eRealm._Last + 1] |
static Hashtable[] | m_script_guilds = new Hashtable[(int)eRealm._Last + 1] |
Properties | |
static Assembly[] | Scripts [get] |
Get an array of all script assemblies. | |
static Type | DefaultControlledBrainType [get, set] |
static void DOL.GS.ScriptMgr.AddOrReplaceAssembly | ( | Assembly | assembly | ) | [static] |
Add or replace an assembly in the collection of compiled assemblies.
assembly |
static void DOL.GS.ScriptMgr.ClearSpellHandlerCache | ( | ) | [static] |
Clear all spell handlers from the cashe, forcing a reload when a spell is cast.
static bool DOL.GS.ScriptMgr.CompileScripts | ( | bool | compileVB, |
string | path, | ||
string | dllName, | ||
string[] | asm_names | ||
) | [static] |
Compiles the scripts into an assembly.
compileVB | True if the source files will be in VB.NET |
path | Path to the source files |
dllName | Name of the assembly to be generated |
asm_names | References to other assemblies |
static IControlledBrain DOL.GS.ScriptMgr.CreateControlledBrain | ( | GamePlayer | owner | ) | [static] |
Constructs a new brain for player controlled npcs.
owner |
static IServerRules DOL.GS.ScriptMgr.CreateServerRules | ( | eGameServerType | serverType | ) | [static] |
Create server rules handler for specified server type.
serverType | server type used to look for rules handler |
static ISpellHandler DOL.GS.ScriptMgr.CreateSpellHandler | ( | GameLiving | caster, |
Spell | spell, | ||
SpellLine | line | ||
) | [static] |
Create a spell handler for caster with given spell.
caster | caster that uses the spell |
spell | the spell itself |
line | the line that spell belongs to or null |
static Hashtable DOL.GS.ScriptMgr.FindAllAbilityActionHandler | ( | Assembly | asm | ) | [static] |
searches the given assembly for AbilityActionHandlers
asm | The assembly to search through |
static Hashtable DOL.GS.ScriptMgr.FindAllNPCGuildScriptClasses | ( | eRealm | realm, |
Assembly | asm | ||
) | [static, protected] |
Searches for NPC guild scripts.
realm | Realm for searching handlers |
asm | The assembly to search through |
static Hashtable DOL.GS.ScriptMgr.FindAllSpecActionHandler | ( | Assembly | asm | ) | [static] |
searches the script directory for SpecActionHandlers
asm | The assembly to search through |
static ICharacterClass DOL.GS.ScriptMgr.FindCharacterClass | ( | int | id | ) | [static] |
Searches for ClassSpec's by id in a given assembly.
asm | the assembly to search through |
id | the classid to search |
static Type DOL.GS.ScriptMgr.FindNPCGuildScriptClass | ( | string | guild, |
eRealm | realm | ||
) | [static] |
searches for a npc guild script
guild | |
realm |
static GameCommand DOL.GS.ScriptMgr.GetCommand | ( | string | commandName | ) | [static] |
Gets the requested command if it exists.
commandName | The command to retrieve |
static string [] DOL.GS.ScriptMgr.GetCommandList | ( | ePrivLevel | plvl, |
bool | addDesc | ||
) | [static] |
Returns an array of all the available commands with the specified plvl and their descriptions.
plvl | plvl of the commands to get |
addDesc |
static Type [] DOL.GS.ScriptMgr.GetDerivedClasses | ( | Type | baseType | ) | [static] |
Finds all classes that derive from given type. First check scripts then GameServer assembly.
baseType | The base class type. |
static Type DOL.GS.ScriptMgr.GetType | ( | string | name | ) | [static] |
Search for a type by name; first in GameServer assembly then in scripts assemblies.
name | The type name |
static GameCommand DOL.GS.ScriptMgr.GuessCommand | ( | string | commandName | ) | [static] |
Looking for exact match first, then, if nothing found, trying to guess command using first letters.
commandName | The command to retrieve |
static bool DOL.GS.ScriptMgr.HandleCommand | ( | GameClient | client, |
string | cmdLine | ||
) | [static] |
Called when a command needs to be handled.
client | Client executing the command |
cmdLine | Args for the command |
static bool DOL.GS.ScriptMgr.HandleCommandNoPlvl | ( | GameClient | client, |
string | cmdLine | ||
) | [static] |
Called when a command needs to be handled without plvl being taken into consideration.
client | Client executing the command |
cmdLine | Args for the command |
static bool DOL.GS.ScriptMgr.LoadCommands | ( | bool | quiet = false | ) | [static] |
Searches the script assembly for all command handlers.
static bool DOL.GS.ScriptMgr.RemoveAssembly | ( | string | fullName | ) | [static] |
Removes an assembly from the game servers list of usable assemblies.
fullName |
Assembly [] DOL.GS.ScriptMgr.Scripts [static, get] |
Get an array of all script assemblies.