mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
rename test library to app & rename app.name to app.script
This commit is contained in:
parent
deb85ba2d8
commit
ad6a6666da
7 changed files with 35 additions and 35 deletions
|
|
@ -1,23 +1,23 @@
|
|||
-- Create/close/open/close world
|
||||
|
||||
-- Open
|
||||
test.new_world("demo", "2019", "core:default")
|
||||
app.new_world("demo", "2019", "core:default")
|
||||
assert(world.is_open())
|
||||
assert(world.get_generator() == "core:default")
|
||||
test.sleep(1)
|
||||
app.sleep(1)
|
||||
assert(world.get_total_time() > 0.0)
|
||||
print(world.get_total_time())
|
||||
|
||||
-- Close
|
||||
test.close_world(true)
|
||||
app.close_world(true)
|
||||
assert(not world.is_open())
|
||||
|
||||
-- Reopen
|
||||
test.open_world("demo")
|
||||
app.open_world("demo")
|
||||
assert(world.is_open())
|
||||
assert(world.get_total_time() > 0.0)
|
||||
assert(world.get_seed() == 2019)
|
||||
test.tick()
|
||||
app.tick()
|
||||
|
||||
-- Close
|
||||
test.close_world(true)
|
||||
app.close_world(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue