sources » BuildingClass » GetSecretProduction
// called by sidebar cameo enumeration every frame on each secret lab the player owns
// for SecretProduction initialization, see ScenarioClass::GenerateSecretLabBonuses
TechnoTypeClass * BuildingClass::GetSecretProduction() {
BuildingTypeClass *Type = this->BuildingType;
if ( Type->SecretInfantry ) {
return Type->SecretInfantry;
}
if ( Type->SecretUnit ) {
return Type->SecretUnit;
}
if ( Type->SecretBuilding ) {
return Type->SecretBuilding;
}
return this->SecretProduction;
}