ALERROR CSingleDevice::OnDesignLoadComplete (SDesignLoadCtx &Ctx) // OnDesignLoadComplete // // Resolve references { ALERROR error; if (error = m_pItemType.Bind(Ctx)) return error; if (m_pExtraItems) if (error = m_pExtraItems->OnDesignLoadComplete(Ctx)) return error; // Error checking if (m_pItemType) if (m_pItemType->GetDeviceClass() == NULL) { Ctx.sError = strPatternSubst(CONSTLIT("%s is not a device"), m_pItemType->GetName(NULL, true)); return ERR_FAIL; } return NOERROR; }
ALERROR CSingleItem::OnDesignLoadComplete (SDesignLoadCtx &Ctx) // OnDesignLoadComplete // // Resolve references { ALERROR error; // Ignore if not debugging. We don't bind because sometimes we have a // reference to an item type that only exists in debug mode. if (m_bDebugOnly && !g_pUniverse->InDebugMode()) return NOERROR; // Bind if (error = m_pItemType.Bind(Ctx)) return error; return NOERROR; }