createEmptyAttributes part of filesystem

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

createEmptyAttributes part of filesystem

Post by bitplane »

If attributes are going to be used for editors and scripting, shouldn't their factory function be somewhere more accessible?
For example, I'm playing with making a gui element that edits and creates other elements, it is added through a gui element factory, but it needs access to create some blank attributes for serializing. at the moment I have to #include CAttributes explicitly, which kinda defeats the point of having an external factory
Here's the question... where is the best place to create them (from an OOP point of view)?
the device is too far out of reach, adding to both the scene and gui managers seems redundant, they use the video driver but this seems like the wrong place to keep them.
I'm leaning towards everywhere that there's a manager that needs them, but it feels bad.. Any ideas?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply