mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add app.is_content_loaded()
This commit is contained in:
parent
7bbd8bab34
commit
653d1d20d4
5 changed files with 20 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ app.reconfig_packs({"base"}, {})
|
|||
app.new_world("demo", "2019", "core:default")
|
||||
assert(world.is_open())
|
||||
assert(world.get_generator() == "core:default")
|
||||
assert(app.is_content_loaded())
|
||||
app.sleep(1)
|
||||
assert(world.get_total_time() > 0.0)
|
||||
print(world.get_total_time())
|
||||
|
|
@ -12,6 +13,7 @@ print(world.get_total_time())
|
|||
-- Close
|
||||
app.close_world(true)
|
||||
assert(not world.is_open())
|
||||
assert(not app.is_content_loaded())
|
||||
|
||||
-- Reopen
|
||||
app.open_world("demo")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue