🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Question about variable types

Started by
0 comments, last by WitchLord 16 years, 10 months ago
Im so sorry that i have alot of questions, but there are so few examples... as you say these types are for containers. and function that works with variable type is looks like void func_c(void *ref, int typeId) { // Do something with the reference // The type of the reference is determined through the type id } the question is: do i need to call AddRef for the *ref parameter before i store it? Is *ref points to a real object or to its copy? How can i recive class name(char*) by typeId?
Advertisement
This is best explained with an example. Take a look at the scriptdictionary.cpp in the add_on directory.

Regards,
Andreas

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