Compare commits
10 Commits
985846a9df
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05c9a099af | ||
|
|
ba1437fdd6 | ||
|
|
2c6dfd7698 | ||
|
|
4e991adcf1 | ||
|
|
66bbb3ba6c | ||
|
|
0f684834a4 | ||
|
|
e9168d503e | ||
|
|
a8037a572a | ||
|
|
d2b69a98c4 | ||
|
|
b262af08cb |
2
init.lua
2
init.lua
@@ -44,7 +44,7 @@ function init()
|
|||||||
-- 7. Save to a path inside the module's writeable area.
|
-- 7. Save to a path inside the module's writeable area.
|
||||||
-- engine.module.dir_of returns ctx->loaded_module.path — the installed dir
|
-- engine.module.dir_of returns ctx->loaded_module.path — the installed dir
|
||||||
-- of this module. io.open with an absolute path bypasses the asset sandbox.
|
-- of this module. io.open with an absolute path bypasses the asset sandbox.
|
||||||
local module_dir = engine.module.dir_of("sporel-module-map-editor-test")
|
local module_dir = engine.module.dir_of("map-editor-test")
|
||||||
local out_path = module_dir .. "/maps/test_work_saved.map.json"
|
local out_path = module_dir .. "/maps/test_work_saved.map.json"
|
||||||
maps.save_to_disk(map_id, out_path)
|
maps.save_to_disk(map_id, out_path)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"id": "sporel-module-map-editor-test",
|
"id": "map-editor-test",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"kind": "test-module",
|
"kind": "test-module",
|
||||||
"api": "^0.1",
|
"api": "^0.1",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"fa_terrain_v1": "lib-asset.prototype-fa-starter"
|
"fa_terrain_v1": "lib-asset.prototype-fa-starter"
|
||||||
},
|
},
|
||||||
"deps": [
|
"deps": [
|
||||||
{"id":"lib-core.maps","version":"0.4.0"},
|
{"id":"lib-core.maps","version":"0.5.7"},
|
||||||
{"id":"lib-asset.prototype-fa-starter","version":"0.2.0"}
|
{"id":"lib-asset.prototype-fa-starter","version":"0.2.0"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user