text: #include "gamelib/components/CollisionComponent.hpp"
  #include "gamelib/core/geometry/CollisionSystem.hpp"
  
  namespace gamelib
  {
      CollisionComponent::CollisionComponent()
      {
          _props.registerProperty("flags", flags, 0, num_colflags, str_colflags);
      }
  
      CollisionComponent::~CollisionComponent()
      {
          quit();
      }
  
      bool CollisionComponent::_init()
      {
          auto sys = getSubsystem<CollisionSystem>();
          if (!sys)
              return false;
  
          sys->add(this);
          return true;
      }
  
      void CollisionComponent::_quit()
      {
          getSubsystem<CollisionSystem>()->remove(this);
      }
  
      Transformable* CollisionComponent::getTransform()
      {
          return this;
      }
  
      const Transformable* CollisionComponent::getTransform() const
      {
          return this;
      }
  }
  