luv

Workshop wiki

construction.lisp

luvcraft/agent/tests/construction.lisp

system luvcraft/agent/test · 5 definitions · on GitHub

in-package#:luvcraft.agent.tests
deftestadditive-box-change-sets-are-frozen-and-stale-checked
let*
world
world:make-block-world:chunk-width4:chunk-height4:chunk-depth4
let
change-set
ok
equalp
000100001101
agent::block-change-set-coordinateschange-set
setfstone
signals
deftestapplying-a-change-set-publishes-one-world-revision
let*
world
world:make-block-world:chunk-width4:chunk-height4:chunk-depth4
let*
change-set
revision
world:block-world-revisionworld
ok
=
1+revision
world:block-world-revisionworld
dotimes
multiple-value-bind
xyz
ok
eqstone
deftestconstruction-preview-is-real-block-geometry-with-a-glow-lane
let*
world
world:make-block-world:chunk-width4:chunk-height4:chunk-depth4
let*
change-set
vertices
luvcraft:block-mesh-verticesmesh
ok
=6
luvcraft:block-mesh-face-countmesh
ok
=36
luvcraft:block-mesh-vertex-countmesh
ok
loopforoffsetfrom11below
lengthvertices
byluvcraft::+block-mesh-floats-per-vertex+always
deftesta-finished-approval-does-not-wait
let
approval
make-instance'agent:tool-approval:agentnil:presencenil:sessionnil
ok
eqapproval
ok
eq:denied
agent:tool-approval-stateapproval
ok
string="nope"
agent:tool-approval-noteapproval
deftestpropose-box-is-in-the-embodied-agent-toolbox
ok
member'agent:com-propose-block-boxagent::*gnome-tools*