Entities-parts framework and RPG battle example.