#include "MapEditorState.h"
#include "../Engine.h"
#include <SDL2/SDL.h>

void MapEditorState::Enter(Engine& engine)
{
}

void MapEditorState::Exit(Engine& engine)
{
}

void MapEditorState::HandleEvents(Engine& engine, SDL_Event& event)
{
    if (event.type == SDL_KEYDOWN)
    {
        if (event.key.keysym.sym == SDLK_ESCAPE)
        {
            engine.RequestPopState();
        }
    }
}

void MapEditorState::Update(Engine& engine, float dt)
{
}

void MapEditorState::Render(Engine& engine)
{
    SDL_Renderer* r = engine.GetRenderer();
    if (!r) { return; }
    SDL_SetRenderDrawColor(r, 30, 30, 40, 255);
    SDL_RenderClear(r);
}

void MapEditorState::RenderImGui(Engine& engine)
{
}