Files
Towards/modules/server/src/systems/InterestResult.hpp
T

32 lines
620 B
C++
Raw Normal View History

2026-07-18 14:31:15 +02:00
#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;
}
};
}