2023-10-03 18:43:29 +02:00
|
|
|
#ifndef WORLD_UPDATE_MSG_H
|
|
|
|
#define WORLD_UPDATE_MSG_H
|
|
|
|
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
#include <oneapi/tbb/concurrent_queue.h>
|
|
|
|
|
2023-10-04 14:41:44 +02:00
|
|
|
#include "block.hpp"
|
|
|
|
|
2023-10-03 18:43:29 +02:00
|
|
|
enum class WorldUpdateMsgType{
|
|
|
|
BLOCKPICK_PLACE,
|
|
|
|
BLOCKPICK_BREAK
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct WorldUpdateMsg{
|
|
|
|
WorldUpdateMsgType msg_type;
|
|
|
|
glm::vec3 cameraPos;
|
|
|
|
glm::vec3 cameraFront;
|
|
|
|
float time;
|
2023-10-04 14:41:44 +02:00
|
|
|
Block block;
|
2023-10-03 18:43:29 +02:00
|
|
|
} WorldUpdateMsg;
|
|
|
|
|
|
|
|
typedef oneapi::tbb::concurrent_queue<WorldUpdateMsg> WorldUpdateMsgQueue;
|
|
|
|
|
|
|
|
#endif
|