Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ path = "examples/run_script.rs"
[[example]]
name = "script_loading"
path = "examples/script_loading.rs"
required-features = ["lua54"]

[workspace.lints.clippy]
panic = "deny"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function on_test(arg1)
return "got: " .. arg1
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SetCurrentLanguage language="@this_script_language"
InstallPlugin miliseconds_budget=999999
SetupHandler OnTest=null, Update=null
SetupHandler OnTestPostUpdate=null, PostUpdate=null
SetupHandler Last=null, OnTestLast=null
FinalizeApp

LoadScriptAs as_name="@this_script", path="@this_script"
WaitForScriptLoaded name="@this_script"
AttachStaticScript script="@this_script"
EmitScriptCallbackEvent emit_response=true, label="OnTest", language=null, recipients="StaticScript", script="@this_script", string_value="arg1"
RunUpdateOnce
AssertNoCallbackResponsesEmitted
Loading