BentouDev / YAGE

Simple game engine, written in C++
MIT License
8 stars 2 forks source link

Scripting support #19

Open BentouDev opened 7 years ago

BentouDev commented 7 years ago

Scripting by either runtime compiled C++ (useful in development, bad for modding support cause tied to single compiler/platform) or Lua/Squirell (only syntax difference, very similar api)

BentouDev commented 6 years ago

Waits for #39

blockspacer commented 4 years ago

cling based C++ as scripting language / hot code reload Why? Able to run C++ script in runtime or compile it for max speed ( as in example https://github.com/derofim/cling-cmake ) Also: May be used to improve modules compile time

HOT code reload possible approaches:

store app state fix cling undo for files https://root-forum.cern.ch/t/loading-unloading-class-as-interpreted-macro-in-cling-multiple-times/32976/2

execute cling code to change callbacks & variables nested cling::Interpreter with multiple cling::MetaProcessor IDK how to do it, but you can create child cling::Interpreter