diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-21 14:38:46 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:55 +0100 |
commit | c1a907e0bf6acc94e77f5af50cd8099977a9ab30 (patch) | |
tree | 96d2249613810c12ba3d59b56af05d10846cca37 /src/types.h | |
parent | 5cab4125d9447928f04d1e4f42c3b58efc485dbf (diff) |
Update HOOK_MONSTER_AI to new-style hook
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index b2f40124..32615672 100644 --- a/src/types.h +++ b/src/types.h @@ -2227,6 +2227,18 @@ struct hook_monster_death_in { s32b m_idx; }; +typedef struct hook_monster_ai_in hook_monster_ai_in; +struct hook_monster_ai_in { + s32b m_idx; + monster_type *m_ptr; +}; + +typedef struct hook_monster_ai_out hook_monster_ai_out; +struct hook_monster_ai_out { + s32b y; + s32b x; +}; + typedef struct hook_chat_in hook_chat_in; struct hook_chat_in { s32b m_idx; |