Advertisement

Classes Across Modules

Started by August 04, 2011 06:23 PM
0 comments, last by WitchLord 13 years, 3 months ago
It was not very clear to me on whether or not one is able to access whole classes across modules. I know functions can be imported, but can we say the same for classes? Is it just a matter of importing their constructors?
You cannot import a constructor, but you can import a function that would create a class and return a handle to that class through an interface that both modules understand.

The other module will only be able to work with the class through the interface though. Trying to cast the handle to the class type will return a null handle even if the same class has been implemented in both modules.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement