blob: 7e668791c19cfb8919e6430a401f37fa62d719c2 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001CONCEPT
2 driver hooks
3
4DESCRIPTION
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.
Zesstra7ea4a032019-11-26 20:11:40 +010014
MG Mud User88f12472016-06-24 23:31:02 +020015 The hooks are identified by an ordinal number, for which
16 symbolic names are defined in /sys/driverhooks.h.
17
18SEE ALSO
19 native(C), set_driver_hook(E)