Component.pkg 842 B

123456789101112131415161718192021222324252627282930
  1. $#include "Scene/Component.h"
  2. enum AutoRemoveMode
  3. {
  4. REMOVE_DISABLED = 0,
  5. REMOVE_COMPONENT,
  6. REMOVE_NODE
  7. };
  8. class Component : public Animatable
  9. {
  10. void SetEnabled(bool enable);
  11. void Remove();
  12. void DrawDebugGeometry(DebugRenderer* debug, bool depthTest);
  13. unsigned GetID() const;
  14. Node* GetNode() const;
  15. Scene* GetScene() const;
  16. bool IsEnabled() const;
  17. bool IsEnabledEffective() const;
  18. Component* GetComponent(StringHash type) const;
  19. Component* GetComponent(const String type) const;
  20. tolua_readonly tolua_property__get_set unsigned ID;
  21. tolua_property__is_set bool enabled;
  22. tolua_readonly tolua_property__is_set bool enabledEffective;
  23. tolua_readonly tolua_property__get_set Node* node;
  24. tolua_readonly tolua_property__get_set Scene* scene;
  25. };