mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 11:50:04 +00:00
Add NPCClass enum
This commit is contained in:
parent
c722044bf5
commit
6f05f0f2c8
@ -16,6 +16,14 @@ const float CN_EP_RANK_3 = 0.5f;
|
||||
const float CN_EP_RANK_4 = 0.3f;
|
||||
const float CN_EP_RANK_5 = 0.29f;
|
||||
|
||||
// NPC classes
|
||||
enum NPCClass {
|
||||
NPC_BASE = 0,
|
||||
NPC_MOB = 1,
|
||||
NPC_BUS = 2,
|
||||
NPC_EGG = 3
|
||||
};
|
||||
|
||||
// nano powers
|
||||
enum {
|
||||
EST_NONE = 0,
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user