diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2021-04-28 16:14:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-28 16:14:43 +0200 |
| commit | 9f7b851aa23680853b3c11366100de111c53a2e1 (patch) | |
| tree | f60be8f7009a63394249dc393888e55133bc64bc /docs/hooks-script.md | |
| parent | d34bd2c51731acfac5c0326665953b9fa0960ec3 (diff) | |
| download | wiki-9f7b851aa23680853b3c11366100de111c53a2e1.tar.gz wiki-9f7b851aa23680853b3c11366100de111c53a2e1.tar.bz2 wiki-9f7b851aa23680853b3c11366100de111c53a2e1.zip | |
Update hooks-script.md
Diffstat (limited to 'docs/hooks-script.md')
| -rw-r--r-- | docs/hooks-script.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hooks-script.md b/docs/hooks-script.md index 2b0b519..ae30774 100644 --- a/docs/hooks-script.md +++ b/docs/hooks-script.md @@ -12,9 +12,9 @@ The list of the hooks can be found inside the [ScriptMgr.h file](https://github. ## Glossary -* **Hook**: A function that is declared inside a **_ScriptObject_** and that calls the **_Listeners_** +* **Hook**: A function that is declared inside a **_ScriptObject_** and that is defined by the **_Listeners_** * **ScriptObject**: Abstract class that should be extended to create the **_Observer_**. -* **Script type**: The class that extends the `ScriptObject` (e.g. `PLayerScript`, `CreatureScript`, etc.), +* **Script type**: The class that extends the `ScriptObject` and contains hooks (e.g. `PLayerScript`, `CreatureScript`, etc.), when you extend the script type class you are initializing a **_Concrete Observer_** * **ScriptRegistry**: This class contains the registry of all the registered Observers. * **ScriptMgr**: The singleton class that contains the list of all the available hooks and acts as a **_Observable_** by notifying the **_Listeners_** when an event is dispatched. |
