soc-2008-mxcurioni: merged changes to revision 15705
[blender.git] / source / gameengine / Expressions / Value.cpp
index f0195d5df824ee6c97c6813fa4938a79a30e489d..48136eb9dc3e778afacfc5c03898f6f7da36a6d1 100644 (file)
@@ -405,7 +405,20 @@ bool CValue::RemoveProperty(const STR_String & inName)
        return false;
 }
 
-
+//
+// Get Property Names
+//
+vector<STR_String> CValue::GetPropertyNames()
+{
+       vector<STR_String> result;
+       if(!m_pNamedPropertyArray) return result;
+       for ( std::map<STR_String,CValue*>::iterator it = m_pNamedPropertyArray->begin();
+       !(it == m_pNamedPropertyArray->end());it++)
+       {
+               result.push_back((*it).first);
+       }
+       return result;
+}
 
 //
 // Clear all properties