Esempio n. 1
0
 public override void Preparation(MHEngine engine)
 {
     if (AvailabilityStatus) return; // Already prepared
     m_nBoxWidth = m_nOriginalBoxWidth;
     m_nBoxHeight = m_nOriginalBoxHeight;
     m_nPosX = m_nOriginalPosX;
     m_nPosY = m_nOriginalPosY;
     m_PaletteRef.Copy(m_OriginalPaletteRef);
     // Add a reference to this to the display stack.
     engine.AddToDisplayStack(this);
     base.Preparation(engine);
 }
Esempio n. 2
0
 public MHVisible(MHVisible reference) : base(reference)
 {
     m_OriginalPaletteRef = new MHObjectRef();
     m_PaletteRef = new MHObjectRef();
     m_nOriginalBoxWidth = reference.m_nOriginalBoxWidth;
     m_nOriginalBoxHeight = reference.m_nOriginalBoxHeight;
     m_nOriginalPosX = reference.m_nOriginalPosX;
     m_nOriginalPosY = reference.m_nOriginalPosY;
     m_OriginalPaletteRef.Copy(reference.m_OriginalPaletteRef);
 }