示例#1
0
 // Internal behaviours.
 public override void Preparation(MHEngine engine)
 {
     if (AvailabilityStatus)
     {
         return;
     }
     // Initialise the content information if any.
     m_IncludedContent.Copy(m_OrigIncludedContent);
     m_ContentRef.Copy(m_OrigContentRef);
     m_nContentSize = m_nOrigContentSize;
     m_nCCPrio      = m_nOrigCCPrio;
     // Prepare the base class.
     base.Preparation(engine);
 }
示例#2
0
 public MHIngredient(MHIngredient reference)
 {
     // Don't copy the object reference since that's set separately.
     m_fInitiallyActive = reference.m_fInitiallyActive;
     m_nContentHook     = reference.m_nContentHook;
     m_ContentType      = reference.m_ContentType;
     m_OrigIncludedContent.Copy(reference.m_OrigIncludedContent);
     m_OrigContentRef.Copy(reference.m_OrigContentRef);
     m_nOrigContentSize = reference.m_nOrigContentSize;
     m_nOrigCCPrio      = reference.m_nOrigCCPrio;
     m_fShared          = reference.m_fShared;
 }
示例#3
0
 public override void SetStreamRef(MHContentRef contentRef)
 {
     m_streamContentRef.Copy(contentRef);
 }