tirbofish/dropbear · diff
i dont even know what im doing, and i cant even work on this until an event is done
Signature present but could not be verified.
Unverified
@@ -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" @@ -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