🎉 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
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?
This is best explained with an example. Take a look at the scriptdictionary.cpp in the add_on directory.
Regards,
Andreas
Regards,
Andreas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement