refactored engine::resource from ui::player.