![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
Manages NPC templates data. More...
Public Types | |
| enum | eBodyType { None = 0, Animal = 1, Demon = 2, Dragon = 3, Elemental = 4, Giant = 5, Humanoid = 6, Insect = 7, Magical = 8, Reptile = 9, Plant = 10, Undead = 11, _Last = 11 } |
Static Public Member Functions | |
| static bool | Init () |
| Initializes NPC templates manager. | |
| static bool | Reload () |
| Reload templates from the database, being careful not to wipe out script loaded templates. | |
| static void | RemoveTemplate (INpcTemplate template) |
| Removes a template. | |
| static void | AddTemplate (INpcTemplate template) |
| Adds the mob template to collection. | |
| static NpcTemplate | GetTemplate (int templateId) |
| Gets mob template by ID, returns random if multiple templates with same ID. | |
Properties | |
| Hashtable | MobTemplates [get] |
Manages NPC templates data.
| static void DOL.GS.NpcTemplateMgr.AddTemplate | ( | INpcTemplate | template | ) | [static] |
Adds the mob template to collection.
| template | New mob template |
| static NpcTemplate DOL.GS.NpcTemplateMgr.GetTemplate | ( | int | templateId | ) | [static] |
Gets mob template by ID, returns random if multiple templates with same ID.
| templateId | The mob template ID |
| static bool DOL.GS.NpcTemplateMgr.Init | ( | ) | [static] |
Initializes NPC templates manager.
| static bool DOL.GS.NpcTemplateMgr.Reload | ( | ) | [static] |
Reload templates from the database, being careful not to wipe out script loaded templates.
| static void DOL.GS.NpcTemplateMgr.RemoveTemplate | ( | INpcTemplate | template | ) | [static] |
Removes a template.
| template | mob template |