mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-14 15:46:17 +00:00
@@ -179,6 +179,8 @@ int32 CScriptTemplate::CheckVolumeConditions(CScriptObject *pObj, bool LogErrors
|
||||
case EPropertyType::Choice:
|
||||
Val = TPropCast<CEnumProperty>(pProp)->Value(pData);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// Test and check whether any of the conditions are true
|
||||
|
||||
@@ -20,12 +20,12 @@ public:
|
||||
CreateIntrinsic(EPropertyType::Float, this, mOffset + 8, "Z");
|
||||
}
|
||||
|
||||
virtual void SerializeValue(void* pData, IArchive& Arc) const
|
||||
virtual void SerializeValue(void* pData, IArchive& Arc) const override
|
||||
{
|
||||
ValueRef(pData).Serialize(Arc);
|
||||
}
|
||||
|
||||
virtual TString ValueAsString(void* pData) const
|
||||
virtual TString ValueAsString(void* pData) const override
|
||||
{
|
||||
return Value(pData).ToString();
|
||||
}
|
||||
|
||||
@@ -633,6 +633,7 @@ IProperty* IProperty::Create(EPropertyType Type,
|
||||
case EPropertyType::Pointer: pOut = new CPointerProperty(Game); break;
|
||||
case EPropertyType::Struct: pOut = new CStructProperty(Game); break;
|
||||
case EPropertyType::Array: pOut = new CArrayProperty(Game); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
// If this assertion fails, then there is an unhandled type!
|
||||
|
||||
@@ -453,6 +453,8 @@ public:
|
||||
case EPropertyType::Guid:
|
||||
MakeOptional = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user