MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | CONCEPT |
| 2 | driver hooks |
| 3 | |
| 4 | DESCRIPTION |
| 5 | To allow a greater flexibility of the muds, the gamedrivers |
| 6 | since 3.2.1 moved several once hardcoded 'underground' |
| 7 | activities from the driver into the mudlib. This includes for |
| 8 | example the differences between compat and native mode. |
| 9 | |
| 10 | The hooks are set with the privileged efun set_driver_hook(). |
| 11 | Some of the hooks are mandatory, some not. Most hooks accept |
| 12 | unbound lambda closures as values, some also lfun closures or |
| 13 | even strings. |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 14 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 15 | The hooks are identified by an ordinal number, for which |
| 16 | symbolic names are defined in /sys/driverhooks.h. |
| 17 | |
| 18 | SEE ALSO |
| 19 | native(C), set_driver_hook(E) |