mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 15:53:42 +00:00
25 lines
451 B
C++
25 lines
451 B
C++
#pragma once
|
|
#include "SDL.h"
|
|
#include "Component.h"
|
|
#include "TextureDict.h"
|
|
|
|
class SpriteComponent;
|
|
class TransformComponent;
|
|
|
|
class TileComponent : public Component
|
|
{
|
|
public:
|
|
TransformComponent* transform;
|
|
SpriteComponent* sprite;
|
|
TextureDict textureDict;
|
|
|
|
SDL_Rect tileRect;
|
|
int tileID;
|
|
const char* path;
|
|
|
|
TileComponent() = default;
|
|
TileComponent(int x, int y, int w, int h, int id);
|
|
~TileComponent() = default;
|
|
|
|
void init() override;
|
|
}; |