Major refactoring for game objects
This commit is contained in:
1 parent
efb85f7328
commit
2cae9998a0
18 files changed
+547
-716
No files matched your search
@@ -2,7 +2,6 @@
|
||||
#include "BoneAnimatedModelNew.h"
|
||||
#include "render/Renderer.h"
|
||||
#include "render/TextureManager.h"
|
||||
#include "items/Item.h"
|
||||
#include "SparkEmitter.h"
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
@@ -106,11 +105,8 @@ public:
|
||||
// Applied after scale, fixes model-space orientation (e.g. Blender Z-up exports)
|
||||
Eigen::Quaternionf modelCorrectionRotation = Eigen::Quaternionf::Identity();
|
||||
|
||||
// NPC Gift
|
||||
Item giftItem;
|
||||
std::string npcId;
|
||||
std::string npcName;
|
||||
bool giftReceived = false;
|
||||
float hp = 200.f;
|
||||
// Captured lazily from `hp` on the first update() tick if left at zero;
|
||||
// set explicitly if you need a different reference for the health bar.
|
||||
|
||||
Reference in new issue
Block a user