Share your ZGE-development tips and techniques here!
- Posts: 1770
- Joined: Sat Feb 23, 2008 11:15 pm
In case you don't like the syntax of calling a component, you can write your own classic C-style wrapper function using the ZLibrary component.
For example, when you want to delete a model using the RemoveModel component, you currently have to write the following expression.
However, using a ZLibrary you can make this as follows.
The only thing you have to do is to add a ZLibrary component containing the following function declaration in App:OnLoaded.
Code: Select all
void removeModel(model m)
- Site Admin
- Posts: 2172
- Joined: Mon Jan 15, 2007 4:50 pm
- Location: Stockholm, Sweden
. Similarly you could make saveToFile(filename,array)/loadFromFile functions that encapsulates File components etc. We could wrap it up in a "Useful" lib and add it to the Library.xml.