When I try to access properties like Me().IsSprinting or other booleans like it, I get an exception in ISXVGWrapper.
It seems to me like it's an error in the generics code, but it could also be me using it wrong.
The exception is:
System.FormatException: String was not recognized as a valid Boolean.
at System.Boolean.Parse(String value)
at System.String.System.IConvertible.ToBoolean(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at LavishScriptAPI.Conversion.LavishScriptTypes.As[T](Int32 objtoken, Int32 typetoken)
at LavishScriptAPI.LavishScriptPersistentObject.GetMember[T](String Member)
...
..
.
I have tried both of these approaches:
bool isSprinting = vgExt.Me().IsSprinting;
and
bool isSprinting = vgExt.Me().GetMember<bool>( "IsSprinting" );
Any ideas as to what goes wrong?
It seems to me like it's an error in the generics code, but it could also be me using it wrong.
The exception is:
System.FormatException: String was not recognized as a valid Boolean.
at System.Boolean.Parse(String value)
at System.String.System.IConvertible.ToBoolean(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at LavishScriptAPI.Conversion.LavishScriptTypes.As[T](Int32 objtoken, Int32 typetoken)
at LavishScriptAPI.LavishScriptPersistentObject.GetMember[T](String Member)
...
..
.
I have tried both of these approaches:
bool isSprinting = vgExt.Me().IsSprinting;
and
bool isSprinting = vgExt.Me().GetMember<bool>( "IsSprinting" );
Any ideas as to what goes wrong?