23 lines
638 B
C++
23 lines
638 B
C++
#pragma once
|
|
|
|
#include "Universe.hpp"
|
|
#include "../../core/server_handle.hpp"
|
|
|
|
namespace world::client {
|
|
/// Whole universe container in client with in-memory server
|
|
class LocalUniverse final: public Universe {
|
|
public:
|
|
LocalUniverse(server_handle *const handle, const std::string& contouring);
|
|
~LocalUniverse();
|
|
|
|
void update(voxel_pos pos, float deltaTime) override;
|
|
void emit(const action::packet &) override;
|
|
|
|
ray_result raycast(const geometry::Ray &ray) const override;
|
|
|
|
protected:
|
|
server_handle *const handle;
|
|
|
|
chunk_pos last_chunk = chunk_pos(INT_MAX);
|
|
};
|
|
} |