mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
34 lines
934 B
C++
34 lines
934 B
C++
#pragma once
|
|
|
|
#include "CNStructs.hpp"
|
|
#include "ChunkManager.hpp"
|
|
|
|
class BaseNPC {
|
|
public:
|
|
sNPCAppearanceData appearanceData;
|
|
NPCClass npcClass;
|
|
uint64_t instanceID;
|
|
ChunkPos chunkPos;
|
|
std::vector<Chunk*> currentChunks;
|
|
|
|
BaseNPC() {};
|
|
BaseNPC(int x, int y, int z, int angle, uint64_t iID, int type, int id) {
|
|
appearanceData.iX = x;
|
|
appearanceData.iY = y;
|
|
appearanceData.iZ = z;
|
|
appearanceData.iNPCType = type;
|
|
appearanceData.iHP = 400;
|
|
appearanceData.iAngle = angle;
|
|
appearanceData.iConditionBitFlag = 0;
|
|
appearanceData.iBarkerType = 0;
|
|
appearanceData.iNPC_ID = id;
|
|
|
|
instanceID = iID;
|
|
|
|
chunkPos = std::make_tuple(0, 0, instanceID);
|
|
};
|
|
BaseNPC(int x, int y, int z, int angle, uint64_t iID, int type, int id, NPCClass classType) : BaseNPC(x, y, z, angle, iID, type, id) {
|
|
npcClass = classType;
|
|
}
|
|
};
|