summaryrefslogtreecommitdiff
path: root/src/engine/objects/Object.h
blob: c02deda23f34dd94d417662be9741e1e91ea1d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <libultraship.h>

extern "C" {
    #include "camera.h"
    #include "objects.h"
}

class OObject {
public:
    uint8_t uuid[16];
    Object o;
    bool PendingDestroy = false;

    virtual ~OObject() = default;

    explicit OObject();

    virtual void Tick();
    virtual void Tick60fps();
    virtual void Draw(s32 cameraId);
    virtual void Expire();
    virtual void Destroy(); // Mark object for deletion at the start of the next frame
};