// Return the value, looking up any indirect ref. public void GetValue(MHContentRef reference, MHEngine engine) { if (m_fIsDirect) { reference.Copy(m_Direct); } else { MHUnion result = new MHUnion(); MHRoot pBase = engine.FindObject(m_Indirect); pBase.GetVariableValue(result, engine); result.CheckType(MHUnion.U_ContentRef); reference.Copy(result.ContentRef); } }
public MHUnion(MHContentRef cnVal) { m_Type = U_ContentRef; m_ContentRefVal = new MHContentRef(); m_ContentRefVal.Copy(cnVal); }