Difference between revisions of "ContainerType"

m
m
Line 5: Line 5:
 
;string: Return type is [[string]].
 
;string: Return type is [[string]].
 
== Notes ==
 
== Notes ==
Use '''data''' return type if you want to pass the data to another thread, and use '''string''' return type if you want to use it immediately, like sending it to network.
+
Use '''data''' return type if you want to pass a reference to the data to another thread or LÖVE function, and use '''string''' return type if you want to use it immediately, like sending it to network.
 
== See Also ==
 
== See Also ==
 
* [[parent::love.data]]
 
* [[parent::love.data]]

Revision as of 19:05, 27 January 2018

Available since LÖVE 0.11.0
This enum is not supported in earlier versions.

Return type of various data-returning functions.

Constants

data
Return type is Data.
string
Return type is string.

Notes

Use data return type if you want to pass a reference to the data to another thread or LÖVE function, and use string return type if you want to use it immediately, like sending it to network.

See Also

Other Languages