Made AmmunitionHUD into TextFieldReader which reads any component field on a parent and updates a Text component with the value!

This commit is contained in:
2016-03-03 01:35:32 +01:00
parent 13546aa3fc
commit 0e8b97dbba
16 changed files with 174 additions and 117 deletions
+1
View File
@@ -27,6 +27,7 @@ struct EntityWrapper
bool HasComponent(const std::string& componentType);
void AttachComponent(const char* componentName);
EntityWrapper Parent();
EntityWrapper FirstParentByName(const std::string& parentEntityName);
EntityWrapper FirstChildByName(const std::string& name);
EntityWrapper FirstParentWithComponent(const std::string& componentType);
EntityWrapper Clone(EntityWrapper parent = EntityWrapper::Invalid);