Added EntityWrapper::IsChildOf and made snapshot interpolation and rendering exceptions for player less hacky

This commit is contained in:
2016-01-23 11:44:16 +01:00
parent 31e7340daf
commit db0e67b9bd
7 changed files with 21 additions and 24 deletions
+1
View File
@@ -26,6 +26,7 @@ struct EntityWrapper
bool HasComponent(const std::string& componentName);
EntityWrapper Parent();
EntityWrapper FirstChildByName(const std::string& name);
bool IsChildOf(EntityWrapper potentialParent);
bool Valid();
ComponentWrapper operator[](const char* componentName);
+1 -1
View File
@@ -15,7 +15,7 @@
#include "Renderer.h"
#include "PointLightJob.h"
#include "../Core/Transform.h"
#include "../../Game/Events/EPlayerSpawned.h"
#include "../Core/EPlayerSpawned.h"
class RenderSystem : public ImpureSystem
{
+1 -1
View File
@@ -12,7 +12,7 @@
#include "Core/EventBroker.h"
#include "Core/ResourceManager.h"
#include "Core/ConfigFile.h"
#include "Events/EPlayerSpawned.h"
#include "Core/EPlayerSpawned.h"
#include "Network/EInterpolate.h"