From 9f7b851aa23680853b3c11366100de111c53a2e1 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Wed, 28 Apr 2021 16:14:43 +0200 Subject: Update hooks-script.md --- docs/hooks-script.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hooks-script.md') 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. -- cgit