Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Dec 17, 2024
1 parent ce0fb13 commit 7535cf2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ namespace math {
class vector2d;
}

namespace memory {
class kv;
}

namespace network {
class querybuilder;
class socket;
Expand Down
8 changes: 4 additions & 4 deletions src/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ void entity::on_email(const std::string &message) {
}
}

const memory::kv &entity::kv() const noexcept {
return _kv;
}

memory::kv &entity::kv() noexcept {
return _kv;
}

// memory::kv &entity::kv() noexcept {
// return _kv;
// }
1 change: 0 additions & 1 deletion src/entity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class entity : public std::enable_shared_from_this<entity> {

void on_email(const std::string &message);

const memory::kv &kv() const noexcept;
memory::kv &kv() noexcept;

private:
Expand Down
1 change: 1 addition & 0 deletions src/scriptengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ using namespace graphics;
using namespace math;
using namespace storage;
using namespace network;
using namespace memory;

sol::table require(sol::state &lua, const std::string &module) {
const auto data = io::read("scripts/" + module + ".lua");
Expand Down

0 comments on commit 7535cf2

Please sign in to comment.