kitgit

tirbofish/dropbear · diff

563bf9a · tk

added new native functions for player manipulation specifics: - JNINative.getEntity now queries and searches - JNINative.getTransform now fetches transforms successfully - JNINative.setTransform now sets transform for that specific entity.

Unverified

diff --git a/README.md b/README.md
index 82fb88e..f2f392e 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ git clone git@github.com:4tkbytes/dropbear
 cd dropbear
 
 # eucalyptus-editor requires dropbear-1.0-SNAPSHOT-all.jar to be built first
-./gradlew build
+./gradlew build fatJar
 # this will build all the projects in the workspace
 cargo build
 ```
diff --git a/eucalyptus-core/src/scripting/jni.rs b/eucalyptus-core/src/scripting/jni.rs
index e321b1b..86b7194 100644
--- a/eucalyptus-core/src/scripting/jni.rs
+++ b/eucalyptus-core/src/scripting/jni.rs
@@ -4,13 +4,13 @@
 pub mod exception;
 
 use std::fs;
-use dropbear_engine::entity::AdoptedEntity;
+use dropbear_engine::entity::{AdoptedEntity, Transform};
 use hecs::World;
-use jni::objects::{GlobalRef, JClass, JString, JValue};
-use jni::sys::jlong;
-use jni::sys::jobject;
+use jni::objects::{GlobalRef, JClass, JObject, JString, JValue};
+use jni::sys::{jclass, jlong};
 use jni::{InitArgsBuilder, JNIEnv, JNIVersion, JavaVM};
 use std::path::{PathBuf};
+use glam::{DQuat, DVec3};
 use crate::{success, APP_INFO};
 use sha2::{Digest, Sha256};
 use crate::logging::{LOG_LEVEL};
@@ -267,7 +267,7 @@ impl JavaContext {
             let result = get_exception_info(&mut env);
             if result.is_some() { return Err(anyhow::anyhow!("{}", result.unwrap())); }
 
-            log::debug!("Updated all systems with dt: {}", dt);
+            log::trace!("Updated all systems with dt: {}", dt);
         } else {
             return Err(anyhow::anyhow!("SystemManager not initialised when updating systems."));
         }
@@ -384,12 +384,12 @@ impl Drop for JavaContext {
     }
 }
 
-#[unsafe(no_mangle)]
 // JNIEXPORT jlong JNICALL Java_com_dropbear_ffi_JNINative_getEntity

Large diffs are not rendered by default. Showing the first 50 of 520 lines. Show full diff