This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
nekohook/modules/jni/framework/gameticks.hpp
2020-08-04 13:13:01 -04:00

25 lines
449 B
C++

/*
*
* Our main bridge to connect with the java games world ticks
* You should call this in your java program
*
*/
#include "../../../framework/gameticks.hpp"
#include "jni.hpp"
namespace modules::jni {
// TODO, find proper names that we should use
void JavaWorldtick(JNIEnv* env, jobject) {
g_Enviroment = env;
wtick();
}
void JavaDraw(JNIEnv* env, jobject) {
g_Enviroment = env;
drawmgr();
}
} // namespace modules::jni