spawning objects
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
#ifndef OBJECT_H
|
||||
#define OBJECT_H
|
||||
|
||||
#include "stdlib.h"
|
||||
#include <iostream>
|
||||
|
||||
class Level;
|
||||
|
||||
class Object {
|
||||
private:
|
||||
Level* level;
|
||||
|
||||
public:
|
||||
int64_t objectUID;
|
||||
bool shouldUpdate = true;
|
||||
|
||||
public:
|
||||
~Object() { destroyed(); }
|
||||
|
||||
public:
|
||||
virtual void spawned() { }
|
||||
virtual void update(float delta) { }
|
||||
virtual void destroyed() { }
|
||||
|
||||
public:
|
||||
Level* getLevel() { return level; }
|
||||
void setLevel(Level* lvl) { level = lvl; }
|
||||
};
|
||||
|
||||
#endif /* OBJECT_H */
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "../voxels/voxel.h"
|
||||
#include "../settings.h"
|
||||
#include "../interfaces/Serializable.h"
|
||||
#include "../objects/Object.h"
|
||||
#include "../interfaces/Object.h"
|
||||
|
||||
class Camera;
|
||||
class Hitbox;
|
||||
|
||||
Reference in New Issue
Block a user