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

@@ -31,7 +31,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -30,7 +30,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -87,7 +87,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -23,15 +23,7 @@ pub fn get(args_ ArgsGet) !&FungiStor {
return &FungiStor{}
}
@[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) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -87,7 +87,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -31,7 +31,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -31,7 +31,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -86,7 +86,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -31,7 +31,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }

View File

@@ -31,7 +31,7 @@ pub mut:
reset bool
}
pub fn play(args_ PlayArgs) ! {
pub fn play(mut plbook PlayBook) ! {
mut args := args_
mut plbook := args.plbook or { playbook.new(text: args.heroscript)! }