An outbreak of a deadly disease in a virtual world can offer insights into real life epidemics, scientists suggest.