Component.pkg 934 B

1234567891011121314151617181920212223242526272829303132
  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. bool IsReplicated() const;
  15. Node* GetNode() const;
  16. Scene* GetScene() const;
  17. bool IsEnabled() const;
  18. bool IsEnabledEffective() const;
  19. Component* GetComponent(StringHash type) const;
  20. Component* GetComponent(const String type) const;
  21. tolua_readonly tolua_property__get_set unsigned ID;
  22. tolua_readonly tolua_property__is_set bool replicated;
  23. tolua_property__is_set bool enabled;
  24. tolua_readonly tolua_property__is_set bool enabledEffective;
  25. tolua_readonly tolua_property__get_set Node* node;
  26. tolua_readonly tolua_property__get_set Scene* scene;
  27. };