DSC Engine
Loading...
Searching...
No Matches
obj_frame.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include "DSCEngine/resources/asset_data.hpp"
9
10
11namespace DSC
12{
14 {
15 friend class ObjAllocator;
16 friend class ObjVisual;
17 friend class Sprite;
18 private:
19 const AssetData* asset = nullptr;
20 short metatile_row = 0;
21 short metatile_col = 0;
22 void* gfx_ptr = nullptr;
23 Event unload;
24 public:
34 ObjFrame(const AssetData* asset, int metatile_row, int metatile_col);
35
38 };
39}
Definition: asset_data.hpp:8
Class responsible with event registration and execution.
Definition: event.hpp:76
Definition: obj_allocator.hpp:16
Definition: obj_frame.hpp:14
~ObjFrame()
destroys an object frame instance
ObjFrame(const AssetData *asset, int metatile_row, int metatile_col)
creates new object frame
OAM Object graphics handler class
Definition: obj_visual.hpp:19
Definition: sprite.hpp:13