Files
herolib/examples/biztools/bizmodel_complete.vsh
2025-10-12 12:30:19 +03:00

18 lines
504 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
import incubaid.herolib.biz.bizmodel
import incubaid.herolib.core.playbook
import os
heroscript_path := os.join_path(os.dir(@FILE), 'examples/complete.heroscript')
// Create a new playbook with the heroscript path
mut pb := playbook.new(path: heroscript_path)!
// Play the bizmodel actions
bizmodel.play(mut pb)!
// Get the bizmodel and print it
mut bm := bizmodel.get('threefold')!
bm.sheet.pprint(nr_columns: 10)!