Remove MAP_WORKER_COMMAND macro
This commit is contained in:
parent
08477f316e
commit
9f6ff5fad8
@ -2,7 +2,6 @@ module;
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include <ee_utils/utils.hpp>
|
||||
|
||||
module Render;
|
||||
import std;
|
||||
@ -10,7 +9,7 @@ import utils;
|
||||
|
||||
ee_engine::IRenderer::IRenderer(GLFWwindow *window)
|
||||
{
|
||||
commandsMapping[RendererCommand::UPDATE_REGION] = MAP_WORKER_COMMAND(RendererCommand, UpdateRegionCmd);
|
||||
commandsMapping[RendererCommand::UPDATE_REGION] = std::bind_front(&IRenderer::UpdateRegionCmd, this);
|
||||
|
||||
this->window = window;
|
||||
glfwGetFramebufferSize(window, &screenWidth, &screenHeight);
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
module;
|
||||
|
||||
#include "compile_config.hpp"
|
||||
#include <ee_utils/utils.hpp>
|
||||
#include <xxhash.h>
|
||||
|
||||
export module AssetManager;
|
||||
@ -99,9 +98,9 @@ export
|
||||
public:
|
||||
AssetManager() : ee_utils::ThreadedWorker<AssetStreamCommand, AssetStreamCommand::COMPLETED>(L"Assets Stream")
|
||||
{
|
||||
commandsMapping[AssetStreamCommand::LOAD] = MAP_WORKER_COMMAND(AssetStreamCommand, LoadCmd);
|
||||
commandsMapping[AssetStreamCommand::FIND] = MAP_WORKER_COMMAND(AssetStreamCommand, FindCmd);
|
||||
commandsMapping[AssetStreamCommand::GET] = MAP_WORKER_COMMAND(AssetStreamCommand, GetCmd);
|
||||
commandsMapping[AssetStreamCommand::LOAD] = std::bind_front(&AssetManager::LoadCmd, this);
|
||||
commandsMapping[AssetStreamCommand::FIND] = std::bind_front(&AssetManager::FindCmd, this);
|
||||
commandsMapping[AssetStreamCommand::GET] = std::bind_front(&AssetManager::GetCmd, this);
|
||||
|
||||
diskSystem = Allocate<NativeFileSystem>();
|
||||
}
|
||||
|
||||
@ -1,7 +1,3 @@
|
||||
module;
|
||||
|
||||
#include <ee_utils/utils.hpp>
|
||||
|
||||
module Client;
|
||||
import utils;
|
||||
import views;
|
||||
@ -9,8 +5,7 @@ import Engine;
|
||||
|
||||
Client::Client() : ee_utils::ThreadedWorker<ClientCommand, ClientCommand::COMPLETED>(L"Client")
|
||||
{
|
||||
commandsMapping[ClientCommand::SEND] = MAP_WORKER_COMMAND(ClientCommand, SendCmd);
|
||||
|
||||
commandsMapping[ClientCommand::SEND] = std::bind_front(&Client::SendCmd, this);
|
||||
}
|
||||
|
||||
void Client::Init()
|
||||
|
||||
@ -5,6 +5,7 @@ module;
|
||||
module FileSystem;
|
||||
import utils;
|
||||
|
||||
//TOO: REWORK WITH IOCP
|
||||
|
||||
IFileSystem::~IFileSystem()
|
||||
{
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
#ifndef ETREDIAEMPIRES_UTILS_HPP
|
||||
#define ETREDIAEMPIRES_UTILS_HPP
|
||||
|
||||
#define MAP_WORKER_COMMAND(TCommand, method) [this](TCommand &cmd) {this->method(cmd);}
|
||||
|
||||
#endif //ETREDIAEMPIRES_UTILS_HPP
|
||||
Loading…
x
Reference in New Issue
Block a user