Component.pkg 596 B

1234567891011121314151617181920
  1. $#include "Component.h"
  2. /// Base class for components. Components can be created to scene nodes.
  3. class Component
  4. {
  5. public:
  6. /// Set enabled/disabled state.
  7. void SetEnabled(bool enable);
  8. /// Remove from the scene node. If no other shared pointer references exist, causes immediate deletion.
  9. void Remove();
  10. /// Return ID.
  11. unsigned GetID() const;
  12. /// Return scene node.
  13. Node* GetNode() const;
  14. /// Return the scene the node belongs to.
  15. Scene* GetScene() const;
  16. /// Return whether is enabled.
  17. bool IsEnabled() const;
  18. };