/**
 * @brief Sets the title of the installation to a cvar to prepare the rename menu.
 * @note it also assigns description text
 */
static void INS_SetInstallationTitle (installationType_t type)
{
	const installationTemplate_t* insTemp = INS_GetInstallationTemplateByType(type);
	cgi->Cvar_Set("mn_installation_title", "%s #%i", (insTemp) ? _(insTemp->name) : _("Installation"), ccs.campaignStats.installationsBuilt + 1);
	if (!insTemp || !Q_strvalid(insTemp->description))
		cgi->UI_ResetData(TEXT_BUILDING_INFO);
	else
		cgi->UI_RegisterText(TEXT_BUILDING_INFO, _(insTemp->description));
}
static installation_t* CreateInstallation (const char* name, const vec2_t pos)
{
	const installationTemplate_t* installationTemplate = INS_GetInstallationTemplateByType(INSTALLATION_UFOYARD);
	installation_t* installation = INS_Build(installationTemplate, pos, name);

	/* fake the build time */
	installation->buildStart = ccs.date.day - installation->installationTemplate->buildTime;
	INS_UpdateInstallationData();

	return installation;
}