VEGO-Engine  0.1
Loading...
Searching...
No Matches
TileComponent.h
1#pragma once
2
3#include <SDL.h>
4
5#include "Component.h"
6#include "TextureDict.h"
7
10
12{
13public:
14 TransformComponent* transform;
15 SpriteComponent* sprite;
16 TextureDict textureDict;
17
18 SDL_Rect tileRect;
19 int tileID;
20 const char* path;
21
22 TileComponent() = default;
23 TileComponent(int x, int y, int w, int h, int id);
24 ~TileComponent() = default;
25
26 void init() override;
27};
Definition Component.h:6
Definition SpriteComponent.h:14
Definition TextureDict.h:8
Definition TileComponent.h:12
Definition TransformComponent.h:8