LS.Pack Class
Pack is an object that contain several resources, helpful when you want to carry a whole scene in one single file
Constructor
LS.Pack
()
Item Index
Methods
Methods
configure
(
-
data
configure the pack from an unpacked WBin
Parameters:
-
dataObjectan unpacked WBIN (object with every chunk)
Pack.createWBin
(
-
fullpath -
resource_names -
metadata -
mark_them
to create a WBin containing all the resource and metadata
Parameters:
-
fullpathStringfor the pack
-
resource_namesArrayarray with the names of all the resources to store
-
metadataObject[optional] extra data to store
-
mark_themBoolean[optional] marks all the resources as if they come from a pack
Returns:
object containing the pack data ready to be converted to WBin
