This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
@@ -0,0 +1,31 @@
#pragma once
#include "common.hpp"
#include <entt/entt.hpp>
namespace tw::net::im {
class InterestResult {
std::vector<entt::entity> m_entities;
std::vector<entt::entity> m_despawn;
std::vector<entt::entity> m_spawn;
public:
GET_REF(m_entities, entities);
GET_REF(m_despawn, despawns);
GET_REF(m_spawn, spawns);
void set_update(std::vector<entt::entity> updates) {
m_entities = updates;
}
void set_despawn(std::vector<entt::entity> despawn) {
m_despawn = despawn;
}
void set_spawn(std::vector<entt::entity> spawn) {
m_spawn = spawn;
}
};
}