mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
25 lines
No EOL
362 B
C++
25 lines
No EOL
362 B
C++
#ifndef OBJECT_H
|
|
#define OBJECT_H
|
|
|
|
#include "stdlib.h"
|
|
#include <iostream>
|
|
|
|
class Level;
|
|
|
|
class Object {
|
|
private:
|
|
|
|
public:
|
|
uint64_t objectUID;
|
|
bool shouldUpdate = true;
|
|
|
|
public:
|
|
~Object() { destroyed(); }
|
|
|
|
public:
|
|
virtual void spawned() { }
|
|
virtual void update(float delta) { }
|
|
virtual void destroyed() { }
|
|
};
|
|
|
|
#endif /* OBJECT_H */ |