kitgit

tirbofish/dropbear · commit

5752a85da1f3454b22b5593ceac99784c35538f5

i dont even know what im doing, and i cant even work on this until an event is done

Unverified

tk <4tkbytes@pm.me> · 2025-09-27 11:54

view full diff

diff --git a/Cargo.toml b/Cargo.toml
index 6722d6c..089e30f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,6 +19,7 @@ bytemuck = { version = "1.23", features = ["derive"] }
 chrono = "0.4"
 clap = "4.5"
 colored = "3.0"
+crossbeam-channel = "0.5"
 dropbear-engine = { path = "dropbear-engine" }
 egui = "0.32"
 egui-toast-fork = "0.18"
diff --git a/Sources/dropbear/dropbear.swift b/Sources/dropbear/dropbear.swift
index 97c09d4..eb8426c 100644
--- a/Sources/dropbear/dropbear.swift
+++ b/Sources/dropbear/dropbear.swift
@@ -81,6 +81,26 @@ open class BaseScript: RunnableScript {
     }
 }
 
+
+// todo
+public func getCurrentScene() -> Scene! {
+    if true /* check if script is attached to scene */ {
+        Scene()
+    } else {
+        nil
+    }
+}
+
+// todo
+public func getAttachedEntity() -> Entity {
+    Entity()
+}
+
+// todo
+public func getScene() -> Scene {
+    Scene()
+}
+
 /// A macro for a class of a script that can be used with any entity (when added).  
 /// 
 /// Let's say that you have an entity of a player. You want to get movement for
@@ -112,24 +132,5 @@ public macro ScriptEntry() = #externalMacro(module: "dropbear_macro", type: "Scr
 public macro Script(entity: String) = #externalMacro(module: "dropbear_macro", type: "ScriptMacro")
 
 public func getInput() -> Input {
-    Input()
-}
-

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