Add NPCClass enum

This commit is contained in:
Gent
2020-09-22 23:41:43 -04:00
parent c722044bf5
commit 6f05f0f2c8
2 changed files with 12 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
class BaseNPC {
public:
sNPCAppearanceData appearanceData;
NPCClass npcClass;
BaseNPC() {};
BaseNPC(int x, int y, int z, int type) {
@@ -20,4 +21,7 @@ public:
// hopefully no collisions happen :eyes:
appearanceData.iNPC_ID = (int32_t)rand();
};
BaseNPC(int x, int y, int z, int type, NPCClass classType) : BaseNPC(x, y, z, type) {
npcClass = classType;
}
};