Exemplo n.º 1
0
 private void CloneProperties(object aClone)
 {
     Articy.ProjectTheseus.Features.m_CharacterTemplateFeature newClone = ((Articy.ProjectTheseus.Features.m_CharacterTemplateFeature)(aClone));
     newClone.m_CharID       = m_CharID;
     newClone.m_CharHP       = m_CharHP;
     newClone.m_CharMP       = m_CharMP;
     newClone.m_CharOnScreen = m_CharOnScreen;
     newClone.m_CharIsDead   = m_CharIsDead;
     if ((m_CharScript != null))
     {
         newClone.m_CharScript = ((ArticyScriptCondition)(m_CharScript.CloneObject()));
     }
     newClone.m_CharMaxHP = m_CharMaxHP;
     newClone.m_CharMaxMP = m_CharMaxMP;
 }
Exemplo n.º 2
0
 public object CloneObject()
 {
     Articy.ProjectTheseus.Features.m_CharacterTemplateFeature clone = new Articy.ProjectTheseus.Features.m_CharacterTemplateFeature();
     CloneProperties(clone);
     return(clone);
 }