This commit is contained in:
2025-07-30 15:00:20 +02:00
parent 9fd551e0f7
commit 66757c52d7
85 changed files with 117 additions and 499 deletions

View File

@@ -71,21 +71,8 @@ fn set(o IPApi) ! {
ipapi_default = o.name
}
@[params]
pub struct PlayArgs {
pub mut:
heroscript string // if filled in then plbook will be made out of it
plbook ?playbook.PlayBook
reset bool
}
pub fn play(args_ PlayArgs) ! {
mut args := args_
if args.heroscript == '' {
args.heroscript = heroscript_default()!
}
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }
pub fn play(mut plbook PlayBook) ! {
mut install_actions := plbook.find(filter: 'ipapi.configure')!
if install_actions.len > 0 {