Files
herolib/examples/biztools/bizmodel_full.vsh

18 lines
505 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.biz.bizmodel
import freeflowuniverse.herolib.core.playbook
import os
heroscript_path := os.join_path(os.dir(@FILE), 'examples/full')
// 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: 25)!