Add test for component Whitelists

This commit is contained in:
David Markowitz
2023-06-09 23:02:28 -07:00
parent a68fa69e7a
commit 1c23f3c030
4 changed files with 100 additions and 0 deletions

View File

@@ -49,12 +49,15 @@ namespace CppScripts {
*/
using ComponentPtr = std::unique_ptr<Component>;
using ComponentWhitelist = std::vector<eReplicaComponentType>;
class Entity {
public:
explicit Entity(const LWOOBJID& objectID, EntityInfo info, Entity* parentEntity = nullptr);
virtual ~Entity();
void ApplyComponentWhitelist(std::vector<eReplicaComponentType>& components);
static const std::vector<ComponentWhitelist>& GetComponentWhitelists() { return m_ComponentWhitelists; }
virtual void Initialize();
bool operator==(const Entity& other) const;
@@ -342,6 +345,8 @@ protected:
* Collision
*/
std::vector<LWOOBJID> m_TargetsInPhantom;
static const std::vector<ComponentWhitelist> m_ComponentWhitelists;
};
#include "Entity.tcc"