I am making a really simple rts style building game where I have villagers walking around and doing different tasks according to a player assigned profession (a bit like gnomoria profession system but simpler). Right now they have one job, builder, and it is hard coded in the villager script.
I want the player to be able to assign profession to villagers. I have a general idea of what data I need to know about each profession (the name, description, tasks that can be done by that profession, ect), and know how to get the villager to do what I want. But I dont know what is the best way to “save” this data. Should I create a “profession” class that contain all info and related task and then add each profession to a List somewhere that I can edit in the editor ? Maybe create a separate script for each profession that can be added to a list inside my villager script and then edited by the player ingame ?