| 12345678910111213141516171819202122232425262728 |
- #include "ElementGameInstancer.h"
- #include "ElementGame.h"
- ElementGameInstancer::~ElementGameInstancer()
- {
- }
-
- // Instances an element given the tag name and attributes
- Rocket::Core::Element* ElementGameInstancer::InstanceElement(Rocket::Core::Element* /*parent*/, const Rocket::Core::String& tag, const Rocket::Core::XMLAttributes& /*attributes*/)
- {
- return new ElementGame(tag);
- }
- // Releases the given element
- void ElementGameInstancer::ReleaseElement(Rocket::Core::Element* element)
- {
- delete element;
- }
- // Release the instancer
- void ElementGameInstancer::Release()
- {
- delete this;
- }
|