mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-14 23:56:23 +00:00
Merged in new property names; fixed games being able to rename UnknownStruct* templates in other games
This commit is contained in:
@@ -231,8 +231,8 @@ const char* GetPropertyName(u32 ID, const char* pkTypeName)
|
||||
}
|
||||
|
||||
|
||||
/** Returns whether the specified name is in the map. */
|
||||
bool IsValidPropertyName(u32 ID, const char* pkTypeName)
|
||||
/** Returns whether the specified ID is in the map. */
|
||||
bool IsValidPropertyID(u32 ID, const char* pkTypeName)
|
||||
{
|
||||
SNameKey Key = CreateKey(ID, pkTypeName);
|
||||
auto MapFind = gNameMap.find(Key);
|
||||
|
||||
@@ -52,7 +52,7 @@ void CPropertyNameGenerator::Generate(const SPropertyNameGenerationParameters& r
|
||||
mIsRunning = true;
|
||||
mFinishedRunning = false;
|
||||
|
||||
// Convert valid type pairs into hashes.
|
||||
// Convert the type pair map.
|
||||
// Also, replace the normal type name list with whatever is in the ID pairs list we were given.
|
||||
if (!rkParams.ValidIdPairs.empty())
|
||||
{
|
||||
@@ -267,5 +267,5 @@ bool CPropertyNameGenerator::IsValidPropertyID(u32 ID, const char* pkType)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return NPropertyMap::IsValidPropertyName(ID, pkType);
|
||||
return NPropertyMap::IsValidPropertyID(ID, pkType);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
Arc.SerializePrimitive( ValueRef(pData), 0 );
|
||||
}
|
||||
|
||||
virtual TString ValueAsString(void* pData)
|
||||
virtual TString ValueAsString(void* pData) const
|
||||
{
|
||||
return TString::FromInt32( Value(pData), 0, 10 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user