mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-06 11:39:35 -06:00
- Remove the asset_helper file and call the onInitialize and onDeinitialize functions directly - Small compile fix on Windows - Removes the need for the registerIdentifierWithMeta function by automatically doing that for all asset.export statements - Allow the passing of either identifiers (as before) or entire tables to the removeSceneGraphNode, removeScreenSpaceRenderable, deleteLayer, removeAction, and export methods. In that case, the Identifier key from the table is extracted and used instead
43 lines
1.1 KiB
Lua
43 lines
1.1 KiB
Lua
-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_SYNC enabled
|
|
|
|
asset.syncedResource({
|
|
Name = "Example Single",
|
|
Type = "UrlSynchronization",
|
|
Identifier = "example_single",
|
|
Url = "http://celestrak.com/NORAD/elements/geo.txt"
|
|
})
|
|
|
|
asset.syncedResource({
|
|
Name = "Example Multiple",
|
|
Type = "UrlSynchronization",
|
|
Identifier = "example_multiple",
|
|
Url = {
|
|
"http://celestrak.com/NORAD/elements/stations.txt",
|
|
"http://celestrak.com/NORAD/elements/gps-ops.txt",
|
|
}
|
|
})
|
|
|
|
asset.syncedResource({
|
|
Name = "Example Large",
|
|
Type = "UrlSynchronization",
|
|
Identifier = "example_large",
|
|
Url = "http://ipv4.download.thinkbroadband.com/100MB.zip",
|
|
Override = true
|
|
})
|
|
|
|
asset.syncedResource({
|
|
Name = "Example Medium",
|
|
Type = "UrlSynchronization",
|
|
Identifier = "example_medium",
|
|
Url = "http://ipv4.download.thinkbroadband.com/5MB.zip",
|
|
Override = true
|
|
})
|
|
|
|
asset.syncedResource({
|
|
Name = "Example No Hash",
|
|
Type = "UrlSynchronization",
|
|
Identifier = "no_hash",
|
|
Url = "http://wms.itn.liu.se/Mercury/Messenger_Mosaic/Messenger_Mosaic.wms",
|
|
UseHash = false
|
|
})
|