Entity system architecture

Started "entity system" like.