Entity.h 569 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <string>
  3. #include <map>
  4. #include <kapusha/io/Stream.h>
  5. #include <kapusha/math/types.h>
  6. class Entity
  7. {
  8. public:
  9. ~Entity(void);
  10. static Entity* readNextEntity(kapusha::Stream* stream);
  11. const std::map<std::string, std::string>& params() { return params_; }
  12. const std::string* getParam(const std::string& name) const;
  13. kapusha::vec3f getVec3Param(const std::string& name) const;
  14. kapusha::vec4f getVec4Param(const std::string& name) const;
  15. void print() const;
  16. private:
  17. Entity(void);
  18. std::map<std::string, std::string> params_;
  19. };