One-shot World Models Using a Transformer Trained on a Synthetic Prior