flakorengine write in C++