ElementGameInstancer.cpp 595 B

12345678910111213141516171819202122232425262728
  1. #include "ElementGameInstancer.h"
  2. #include "ElementGame.h"
  3. ElementGameInstancer::~ElementGameInstancer()
  4. {
  5. }
  6. // Instances an element given the tag name and attributes
  7. Rocket::Core::Element* ElementGameInstancer::InstanceElement(Rocket::Core::Element* /*parent*/, const Rocket::Core::String& tag, const Rocket::Core::XMLAttributes& /*attributes*/)
  8. {
  9. return new ElementGame(tag);
  10. }
  11. // Releases the given element
  12. void ElementGameInstancer::ReleaseElement(Rocket::Core::Element* element)
  13. {
  14. delete element;
  15. }
  16. // Release the instancer
  17. void ElementGameInstancer::Release()
  18. {
  19. delete this;
  20. }