heull001 | d47b75f | 2018-02-16 14:52:23 +0100 | [diff] [blame^] | 1 | H_HOOK_CONSUME |
| 2 | ============== |
| 3 | |
| 4 | HOOK |
| 5 | ---- |
| 6 | H_HOOK_CONSUME |
| 7 | |
| 8 | DEFINIERT IN |
| 9 | ------------ |
| 10 | |
| 11 | /sys/hook.h |
| 12 | |
| 13 | GERUFEN VON |
| 14 | ----------- |
| 15 | |
| 16 | /std/living/life.c |
| 17 | |
| 18 | BESCHREIBUNG |
| 19 | ------------ |
| 20 | |
| 21 | Wird ausgeloest, wenn ein Lebewesen etwas per consume() konsumiert. |
| 22 | |
| 23 | HOOK-DATEN |
| 24 | ---------- |
| 25 | |
| 26 | Es wird ein Array uebergeben: |
| 27 | ({mapping cinfo, int testonly}) |
| 28 | Die Elemente des Arrays entsprechen den Argumenten von consume(), siehe |
| 29 | dort fuer ausfuehrliche Dokumentation. |
| 30 | |
| 31 | BEMERKUNGEN |
| 32 | ----------- |
| 33 | |
| 34 | Die in "man consume" erwaehnte alte Form des Mappings wird leider noch |
| 35 | benutzt, Stand heute (16.02.2018) u.A. von /std/pub. Beruecksichtigt das |
| 36 | in eurem Code. |
| 37 | |
| 38 | RUECKGABEWERTE |
| 39 | -------------- |
| 40 | |
| 41 | ({ <status>, <daten> }) |
| 42 | <status> : H_NO_MOD, H_CANCELLED, H_ALTERED |
| 43 | <daten> : wie uebergebenes Datenarray |
| 44 | |
| 45 | SIEHE AUCH |
| 46 | ---------- |
| 47 | |
| 48 | HRegisterToHook(), HUnregisterFromHook(), HookFlow(), consume() |
| 49 | |
| 50 | Letzte Aenderung: 16.02.2018, Bugfix |