]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/monsters/all.qh
Merge remote-tracking branch 'gitlab/TimePath/unified_weapons' into TimePath/unified_...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / all.qh
1 #ifndef MONSTERS_ALL_H
2 #define MONSTERS_ALL_H
3
4 #include "monster.qh"
5
6 void RegisterMonsters();
7 const int MON_MAXCOUNT = 24;
8 entity monster_info[MON_MAXCOUNT], monster_info_first, monster_info_last;
9 entity get_monsterinfo(float id);
10 int MON_COUNT;
11 const int MON_FIRST = 1;
12 #define MON_LAST (MON_FIRST + MON_COUNT - 1)
13 /** If you register a new monster, make sure to add it to all.inc */
14 #define REGISTER_MONSTER(id, inst) REGISTER(RegisterMonsters, MON, monster_info, MON_COUNT, id, monsterid, inst)
15 REGISTER_REGISTRY(RegisterMonsters)
16
17 entity get_monsterinfo(int id);
18
19 REGISTER_MONSTER(Null, NEW(Monster));
20
21 #include "all.inc"
22
23 #endif