void FBPVariableDescription::RemoveMetaData(const FName& Key) { int32 EntryIndex = FindMetaDataEntryIndexForKey(Key); if(EntryIndex != INDEX_NONE) { MetaDataArray.RemoveAt(EntryIndex); } }
void USCS_Node::RemoveMetaData(const FName& Key) { int32 EntryIndex = FindMetaDataEntryIndexForKey(Key); if(EntryIndex != INDEX_NONE) { MetaDataArray.RemoveAt(EntryIndex); } }
void FBPVariableDescription::SetMetaData(const FName& Key, const FString& Value) { int32 EntryIndex = FindMetaDataEntryIndexForKey(Key); if(EntryIndex != INDEX_NONE) { MetaDataArray[EntryIndex].DataValue = Value; } else { MetaDataArray.Add( FBPVariableMetaDataEntry(Key, Value) ); } }
/** Gets a metadata value on the variable; asserts if the value isn't present. Check for validiy using FindMetaDataEntryIndexForKey. */ FString FBPVariableDescription::GetMetaData(const FName& Key) { int32 EntryIndex = FindMetaDataEntryIndexForKey(Key); check(EntryIndex != INDEX_NONE); return MetaDataArray[EntryIndex].DataValue; }
FString USCS_Node::GetMetaData(const FName& Key) { int32 EntryIndex = FindMetaDataEntryIndexForKey(Key); check(EntryIndex != INDEX_NONE); return MetaDataArray[EntryIndex].DataValue; }