Component.pkg 746 B

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