I am using a primitive type as follows:
engine->RegisterObjectType("myInt", sizeof(int), asOBJ_VALUE | asOBJ_POD | asOBJ_APP_PRIMITIVE ); assert( err >= 0 );
The Application can modify and use operators on this value, however the script cannot. Something as simple as the following will fail.
test = 0;
I receive the error "Can't implicitly convert from 'const uint' to 'myInt'." Since this is a primitive datatype I was under the assumption that I did not need to do anything specific to use these. What am I doing wrong?
ninvertigoMember Since 29 May 2007
Offline Last Active Dec 10 2012 03:19 PM
- Group Members
- Active Posts 6
- Profile Views 754
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown