Beispiel #1
0
 // Return the value, looking up any indirect ref.
 public void GetValue(MHObjectRef reference, MHEngine engine)
 {
     if (m_fIsDirect)
     {
         reference.Copy(m_ObjRef);
     }
     else
     {
         MHUnion result = new MHUnion();
         MHRoot  pBase  = engine.FindObject(m_Indirect);
         pBase.GetVariableValue(result, engine);
         result.CheckType(MHUnion.U_ObjRef);
         reference.Copy(result.ObjRef);
     }
 }
Beispiel #2
0
 public MHUnion(MHObjectRef objVal)
 {
     m_Type      = U_ObjRef;
     m_ObjRefVal = new MHObjectRef();
     m_ObjRefVal.Copy(objVal);
 }
Beispiel #3
0
 public void Copy(MHFontBody fb)
 {
     m_DirFont.Copy(fb.m_DirFont);
     m_IndirFont.Copy(fb.m_IndirFont);
 }