Guest User

Untitled

a guest
Oct 10th, 2015
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TString propertyValue;
  2. switch (property->m_PropertyType)
  3. {
  4.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::INT:
  5.     {
  6.         propertyValue = TString(property->m_PropertyValue.m_Int);
  7.         break;
  8.     }
  9.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::FLOAT:
  10.     {
  11.         propertyValue = TString(property->m_PropertyValue.m_Float);
  12.         break;
  13.     }
  14.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::BOOL:
  15.     {
  16.         propertyValue = TString(property->m_PropertyValue.m_Bool);
  17.         break;
  18.     }
  19.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::STRING:
  20.     {
  21.         propertyValue = property->m_PropertyValue.m_String;
  22.         break;
  23.     }
  24.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::ENTITY_TYPE:
  25.     {
  26.         propertyValue = g_LevelEntityTypeNames[(int)property->m_PropertyValue.m_EntityType];
  27.         break;
  28.     }
  29.     case TLevelTriggerActionProperty::ELevelTriggerActionPropertyType::VECTOR:
  30.     {
  31.         propertyValue = TString(property->m_PropertyValue.m_Vector[0]) + ";" + TString(property->m_PropertyValue.m_Vector[1]);
  32.         break;
  33.     }
  34. }
  35.  
  36. PXMLUtil::AddAttribute(propertyElement, levelDocument, "name", propertyValue);
RAW Paste Data