I'm planning to do a simple game engine (the core functionality in c++) from my own and I want to start with the scripting engine as I want this to be very 'modable', I did not coded anything yet, so suppose that exists a OOP scripting language in which I code the AI and things like that...which produces some kind of 'bytecode', so my question is : What part of this bytecode (variables, functions, or objects) should I retrieve from the VM and why?
Thanks