With this solution I need to know files I need to include for script, am I right? I tested today chai.exe from bin directory and example from first post just works. I guess I should shed more light on what I want to achieve.
Each file has a definition of class in chai script language, still there are 2 types of classes. First type are classes wrapped in my core engine by C++ class and each C++ class instance creates chai script class instance. I wanted to create base class in chai script language for this purpose and use inheritance, but let’s drop this for now, this is a different issue. Second type are simple classes that are not wrapped in C++. They should be used only in other chai scripts, but still, defined in different text files.
This is my first contact with embedded script languages so sorry if I misunderstood something or can’t explain properly what I want to do.