Thomi Richards
2006-08-15 05:57:47 UTC
Hi guys,
Just a quick question:
I want to create a custom resource type that encapsulates several
builtin types. For example, my builtin type will look like this in a
resources.xml file:
<GameSprite>
<sprite name="foo">
<image file="blah.png" />
</sprite>
<string name="someopt" value="somevalue" />
</GameSprite>
At the moment I'm stuck. In my ResourceData_GameSprite::on_load()
class, I can't seem to load the sprites into a CL_Sprite class - the
resource manager can't see the <sprite> tag because it's hidden inside
a <GameSprite> tag. Is there a way to work around this?
I sure hope so...
TIA,
Just a quick question:
I want to create a custom resource type that encapsulates several
builtin types. For example, my builtin type will look like this in a
resources.xml file:
<GameSprite>
<sprite name="foo">
<image file="blah.png" />
</sprite>
<string name="someopt" value="somevalue" />
</GameSprite>
At the moment I'm stuck. In my ResourceData_GameSprite::on_load()
class, I can't seem to load the sprites into a CL_Sprite class - the
resource manager can't see the <sprite> tag because it's hidden inside
a <GameSprite> tag. Is there a way to work around this?
I sure hope so...
TIA,