Add support for Double2/3/4 for Variant
Increase size to 40 bytes to store Double3 without allocations Change Ray and BoundingBox to be stored inlined in BoundingBox Use safer accessors to read Variant explicit data type
This commit is contained in:
@@ -53,6 +53,16 @@ const ScriptingType& ScriptingTypeHandle::GetType() const
|
||||
return Module->Types[TypeIndex];
|
||||
}
|
||||
|
||||
#if USE_MONO
|
||||
|
||||
MonoClass* ScriptingTypeHandle::GetMonoClass() const
|
||||
{
|
||||
ASSERT_LOW_LAYER(Module && Module->Types[TypeIndex].ManagedClass);
|
||||
return Module->Types[TypeIndex].ManagedClass->GetNative();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
bool ScriptingTypeHandle::IsSubclassOf(ScriptingTypeHandle c) const
|
||||
{
|
||||
auto type = *this;
|
||||
|
||||
Reference in New Issue
Block a user