Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <jni.h>
- #include "CSeries.hpp"
- #include "world.hpp"
- class World
- {
- public:
- boolean initWorld(JNIEnv* restrict env) FORCEINLINE
- {
- this->WorldClass = env->FindClass("World");
- return True;
- }
- private:
- jclass WorldClass;
- };
- static World world;
- JNIEXPORT void JNICALL Java_libGameWorld_World_Update(JNIEnv* env, jobject thiz)
- {
- }
- JNIEXPORT jboolean JNICALL Java_libGameWorld_World_initNative(JNIEnv* env, jobject thiz)
- {
- if( not world.initWorld(env) )
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement