![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
Static Public Member Functions | |
| static void | InitializeRaceResists () |
| Initializes the race resist table. | |
| static void | LoadSkills () |
| static void | LoadSpells () |
| static void | LoadSpellLines () |
| static int | ReloadSpellLine (string lineName) |
| static void | LoadProcs () |
| static void | LoadSpecAbility () |
| static int | LoadSpecializations () |
| static void | SortStylesByLevel () |
| static int | GetArmorResist (InventoryItem armor, eDamageType damageType) |
| Gets the natural armor resist to the give damage type. | |
| static bool | CheckPropertyType (eProperty prop, ePropertyType type) |
| Check if property belongs to all of specified types. | |
| static IAbilityActionHandler | GetAbilityActionHandler (string keyName) |
| Gets a new AbilityActionHandler instance associated with given KeyName. | |
| static ISpecActionHandler | GetSpecActionHandler (string keyName) |
| Gets a new SpecActionHandler instance associated with given KeyName. | |
| static void | RegisterSpellLine (SpellLine line) |
| static void | AddScriptedStyle (Specialization spec, DBStyle style) |
| Add a new style to a specialization. If the specialization does not exist it will be created. After adding all styles call SortStyles to sort the list by level. | |
| static void | RegisterSpec (Specialization spec) |
| Check and add this spec to m_specsByName. | |
| static void | UnRegisterSpellLine (string LineKeyName) |
| static List< RealmAbility > | GetClassRealmAbilities (int classID) |
| returns level 1 instantiated realm abilities, only for readonly use! | |
| static Ability | getClassRealmAbility (int charclass) |
| static Ability | GetAbility (string keyname) |
| static Ability | GetAbility (string keyname, int level) |
| static SpellLine | GetSpellLine (string keyname) |
| Return the spell line, creating a temporary one if not found. | |
| static SpellLine | GetSpellLine (string keyname, bool create) |
| Return a spell line. | |
| static void | AddSpellToSpellLine (string spellLineID, int spellID) |
| Add an existing spell to a spell line, adding a new line if needed. The spell level is set based on the spell ID (why I do not know) Primarily used for Champion spells but can be used to make any custom spell list From spells already loaded from the DB. | |
| static void | ClearSpellLine (string spellLineID) |
| Remove all the spells from a spell line. | |
| static void | RemoveSpellList (string spellLineID) |
| Remove a spell list. | |
| static bool | AddSpellToSpellLine (string spellLineID, Spell spellToAdd) |
| Add a spell to a spell line, adding a new line if needed. The spell level is set based on the order added to the list. | |
| static Specialization | GetSpecialization (string keyname) |
| Get a loaded specialization, warn if not found and create a dummy entry. | |
| static Specialization | GetSpecialization (string keyname, bool create) |
| Get a specialization. | |
| static List< Style > | GetStyleList (string specID, int classId) |
| return all styles for a specific specialization if no style are associated or spec is unknown the list will be empty | |
| static List< Ability > | GetSpecAbilityList (string specID) |
| returns spec dependend abilities | |
| static List< Spell > | GetSpellList (string spellLineID) |
| return all spells for a specific spell-line if no spells are associated or spell-line is unknown the list will be empty | |
| static Style | GetStyleByID (int styleID, int classId) |
| Find style with specific id and return a copy of it. | |
| static bool | UpdateSpell (int spellID) |
| Update or add a spell to the global spell list. Useful for adding procs and charges to items without restarting server. This will not update a spell in a spell line. | |
| static Spell | GetSpellByID (int spellID) |
| Returns spell with id, level of spell is always 1. | |
| static Spell | FindSpell (int spellID, SpellLine line) |
| Will attempt to find either in the spell line given or in the list of all spells. | |
| static string | GetPropertyName (eProperty prop) |
| Get display name of property. | |
| static int | GetRaceResist (int race, eResist type) |
| determine race-dependent base resist | |
| static string | ObjectTypeToSpec (eObjectType objectType) |
| Convert object type to spec needed to use that object. | |
| static eProperty | SpecToSkill (string specKey) |
| Convert spec to skill property. | |
| static eProperty | SpecToFocus (string specKey) |
| Convert spec to focus. | |
Static Protected Attributes | |
|
static readonly Dictionary < string, Specialization > | m_specsByName = new Dictionary<string, Specialization>() |
|
static readonly Dictionary < string, DBAbility > | m_abilitiesByName = new Dictionary<string, DBAbility>() |
|
static readonly Dictionary < string, SpellLine > | m_spellLinesByName = new Dictionary<string, SpellLine>() |
|
static readonly Dictionary < string, Type > | m_abilityActionHandler = new Dictionary<string, Type>() |
|
static readonly Dictionary < string, Type > | m_implementationTypeCache = new Dictionary<string, Type>() |
|
static readonly Dictionary < string, Type > | m_specActionHandler = new Dictionary<string, Type>() |
|
static readonly Dictionary < string, List< Spell > > | m_spellLists = new Dictionary<string, List<Spell>>() |
|
static readonly Dictionary < string, List< Style > > | m_styleLists = new Dictionary<string, List<Style>>() |
|
static readonly Dictionary < string, List< Ability > > | m_specAbilities = new Dictionary<string, List<Ability>>() |
| static readonly Dictionary < int, Dictionary< int, List < DBStyleXSpell > > > | m_styleSpells = new Dictionary<int, Dictionary<int, List<DBStyleXSpell>>>() |
| (procs) global table for style => list of styles dependend spells [StyleID, [ClassID, DBStyleXSpell]] ClassID for normal style is 0 | |
|
static readonly Dictionary < KeyValuePair< int, int > , Style > | m_stylesByIDClass = new Dictionary<KeyValuePair<int, int>, Style>() |
|
static readonly Dictionary < int, List< RealmAbility > > | m_classRealmAbilities = new Dictionary<int, List<RealmAbility>>() |
|
static readonly Dictionary < int, Spell > | m_spells = new Dictionary<int, Spell>(5000) |
| static Dictionary< int, DBSpell > | m_dbSpells = new Dictionary<int, DBSpell>() |
| static Dictionary< eObjectType, string > | m_objectTypeToSpec = new Dictionary<eObjectType, string>() |
| Holds object type to spec convertion table. | |
| static Dictionary< string, eProperty > | m_specToSkill = new Dictionary<string, eProperty>() |
| Holds spec to skill table. | |
| static Dictionary< string, eProperty > | m_specToFocus = new Dictionary<string, eProperty>() |
| Holds spec to focus table. | |
| static readonly Dictionary < eProperty, string > | m_propertyNames = new Dictionary<eProperty, string>() |
| table for property names | |
| static Dictionary< int, int[]> | m_raceResists |
| Table to hold the race resists. | |
| static void DOL.GS.SkillBase.AddScriptedStyle | ( | Specialization | spec, |
| DBStyle | style | ||
| ) | [static] |
Add a new style to a specialization. If the specialization does not exist it will be created. After adding all styles call SortStyles to sort the list by level.
| style |
| static void DOL.GS.SkillBase.AddSpellToSpellLine | ( | string | spellLineID, |
| int | spellID | ||
| ) | [static] |
Add an existing spell to a spell line, adding a new line if needed. The spell level is set based on the spell ID (why I do not know) Primarily used for Champion spells but can be used to make any custom spell list From spells already loaded from the DB.
| spellLineID | |
| spellID |
| static bool DOL.GS.SkillBase.AddSpellToSpellLine | ( | string | spellLineID, |
| Spell | spellToAdd | ||
| ) | [static] |
Add a spell to a spell line, adding a new line if needed. The spell level is set based on the order added to the list.
| spellLineID | |
| spellToAdd |
| static bool DOL.GS.SkillBase.CheckPropertyType | ( | eProperty | prop, |
| ePropertyType | type | ||
| ) | [static] |
Check if property belongs to all of specified types.
| prop | The property to check |
| type | The types to check |
| static void DOL.GS.SkillBase.ClearSpellLine | ( | string | spellLineID | ) | [static] |
Remove all the spells from a spell line.
| spellLineID |
Will attempt to find either in the spell line given or in the list of all spells.
| spellID | |
| line |
| static Ability DOL.GS.SkillBase.GetAbility | ( | string | keyname | ) | [static] |
| keyname |
| static Ability DOL.GS.SkillBase.GetAbility | ( | string | keyname, |
| int | level | ||
| ) | [static] |
| keyname | |
| level |
| static IAbilityActionHandler DOL.GS.SkillBase.GetAbilityActionHandler | ( | string | keyName | ) | [static] |
Gets a new AbilityActionHandler instance associated with given KeyName.
| keyName |
| static int DOL.GS.SkillBase.GetArmorResist | ( | InventoryItem | armor, |
| eDamageType | damageType | ||
| ) | [static] |
Gets the natural armor resist to the give damage type.
| armor | |
| damageType |
| static List<RealmAbility> DOL.GS.SkillBase.GetClassRealmAbilities | ( | int | classID | ) | [static] |
returns level 1 instantiated realm abilities, only for readonly use!
| classID |
| static string DOL.GS.SkillBase.GetPropertyName | ( | eProperty | prop | ) | [static] |
Get display name of property.
| prop |
| static int DOL.GS.SkillBase.GetRaceResist | ( | int | race, |
| eResist | type | ||
| ) | [static] |
determine race-dependent base resist
| race | Value must be greater than 0 |
| type |
| static List<Ability> DOL.GS.SkillBase.GetSpecAbilityList | ( | string | specID | ) | [static] |
returns spec dependend abilities
| specID | KeyName of spec |
| static ISpecActionHandler DOL.GS.SkillBase.GetSpecActionHandler | ( | string | keyName | ) | [static] |
Gets a new SpecActionHandler instance associated with given KeyName.
| keyName |
| static Specialization DOL.GS.SkillBase.GetSpecialization | ( | string | keyname | ) | [static] |
Get a loaded specialization, warn if not found and create a dummy entry.
| keyname |
| static Specialization DOL.GS.SkillBase.GetSpecialization | ( | string | keyname, |
| bool | create | ||
| ) | [static] |
Get a specialization.
| keyname | |
| create | if not found generate a warning and create a dummy entry |
| static Spell DOL.GS.SkillBase.GetSpellByID | ( | int | spellID | ) | [static] |
Returns spell with id, level of spell is always 1.
| spellID |
| static SpellLine DOL.GS.SkillBase.GetSpellLine | ( | string | keyname | ) | [static] |
Return the spell line, creating a temporary one if not found.
| keyname |
| static SpellLine DOL.GS.SkillBase.GetSpellLine | ( | string | keyname, |
| bool | create | ||
| ) | [static] |
Return a spell line.
| keyname | The key name of the line |
| create | Should we create a temp spell line if not found? |
| static List<Spell> DOL.GS.SkillBase.GetSpellList | ( | string | spellLineID | ) | [static] |
return all spells for a specific spell-line if no spells are associated or spell-line is unknown the list will be empty
| spellLineID | KeyName of spell-line |
| static Style DOL.GS.SkillBase.GetStyleByID | ( | int | styleID, |
| int | classId | ||
| ) | [static] |
Find style with specific id and return a copy of it.
| styleID | id of style |
| classId | ClassID for which style list is requested |
| static List<Style> DOL.GS.SkillBase.GetStyleList | ( | string | specID, |
| int | classId | ||
| ) | [static] |
return all styles for a specific specialization if no style are associated or spec is unknown the list will be empty
| specID | KeyName of spec |
| classId | ClassID for which style list is requested |
| static void DOL.GS.SkillBase.InitializeRaceResists | ( | ) | [static] |
Initializes the race resist table.
| static string DOL.GS.SkillBase.ObjectTypeToSpec | ( | eObjectType | objectType | ) | [static] |
Convert object type to spec needed to use that object.
| objectType | type of the object |
| static void DOL.GS.SkillBase.RegisterSpec | ( | Specialization | spec | ) | [static] |
Check and add this spec to m_specsByName.
| spec |
| static void DOL.GS.SkillBase.RemoveSpellList | ( | string | spellLineID | ) | [static] |
Remove a spell list.
| spellLineID |
| static eProperty DOL.GS.SkillBase.SpecToFocus | ( | string | specKey | ) | [static] |
Convert spec to focus.
| specKey |
| static eProperty DOL.GS.SkillBase.SpecToSkill | ( | string | specKey | ) | [static] |
Convert spec to skill property.
| specKey |
| static bool DOL.GS.SkillBase.UpdateSpell | ( | int | spellID | ) | [static] |
Update or add a spell to the global spell list. Useful for adding procs and charges to items without restarting server. This will not update a spell in a spell line.
| spellID |
Dictionary<eObjectType, string> DOL.GS.SkillBase.m_objectTypeToSpec = new Dictionary<eObjectType, string>() [static, protected] |
Holds object type to spec convertion table.
readonly Dictionary<eProperty, string> DOL.GS.SkillBase.m_propertyNames = new Dictionary<eProperty, string>() [static, protected] |
table for property names
Dictionary<int, int[]> DOL.GS.SkillBase.m_raceResists [static, protected] |
Table to hold the race resists.
Dictionary<string, eProperty> DOL.GS.SkillBase.m_specToFocus = new Dictionary<string, eProperty>() [static, protected] |
Holds spec to focus table.
Dictionary<string, eProperty> DOL.GS.SkillBase.m_specToSkill = new Dictionary<string, eProperty>() [static, protected] |
Holds spec to skill table.
readonly Dictionary<int, Dictionary<int, List<DBStyleXSpell> > > DOL.GS.SkillBase.m_styleSpells = new Dictionary<int, Dictionary<int, List<DBStyleXSpell>>>() [static, protected] |
(procs) global table for style => list of styles dependend spells [StyleID, [ClassID, DBStyleXSpell]] ClassID for normal style is 0