예제 #1
0
 // 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);
     }
 }
예제 #2
0
 public MHUnion(MHContentRef cnVal)
 {
     m_Type          = U_ContentRef;
     m_ContentRefVal = new MHContentRef();
     m_ContentRefVal.Copy(cnVal);
 }