cor Posted September 19, 2011 Share Posted September 19, 2011 Hi, I'm trying to find out some internal working of Unigine. I have difficulties with finding the corresponding source code. For example: Some of the examples use the PlayerSpectator class in theire scripts. But I can not find the implemenation of this class in the scripts floder. There is however a PlayerSpectator.cpp file in the source/engine folder. This is a C++ file. So I assume this class is not implemented using script, but implementated in C++. How can I tell a class is implemeted using script or C++? In the documentation the PlayerSpectator class is not listed in the C++ API. So this gives me no clue about where to look. Are there any overviews available telling me where to look for some source? Link to comment
binstream Posted September 19, 2011 Share Posted September 19, 2011 .h/.cpp files inside "data" directory are UnigineScript files. Link to comment
ulf.schroeter Posted September 19, 2011 Share Posted September 19, 2011 Just for rough indicator: nearly all UNIGINE classes are implemented in C++ (though not accessible via C++ API ) and than exposed to UNIGINE script (have a look into *Interpreter.cpp source code files, there you can find the script exposure code). In contrast High-level Unigine script functionality is mainly implemented as script (see binstreams hint) Link to comment
Recommended Posts