mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
spawning objects
This commit is contained in:
parent
c6e3869176
commit
f717e1c109
10 changed files with 40 additions and 42 deletions
25
src/interfaces/Object.h
Normal file
25
src/interfaces/Object.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue