First - thanks again for the example you created for my query below - it has been very helpful indeed.
I want to be able to put two or more functions into the same Chaiscript file and call those functions from different places in my application (i.e. from entirely different classes)
So my “Player” C++ class might call the chai function “SetPlayerAttributes” while my “World” C++ class might call the chai function “CreateTerrain” and my “Game” C++ class might call the chai function “CreateEntities”
Then I can provide a different Chaiscript file for each level - each containing the same functions.
Q. Can I put different functions into a single Chaiscript file, and execute those functions independently form one another?
If I can, how?!