Extra¶
This module has some extra functions that are not in the SteamWorks API but may be useful to deal with it.
List of Functions¶
Function Reference¶
- extra.parseUint64(str)¶
- Parameters:
str (string) – The string to convert to uint64.
- Returns:
(uint64) The parsed number. 0 if the string was invalid.
- See:
Converts a string to a 64-bit integer that can be used with this library.
Example:
local function saveMyId()
-- This is highly useless since your ID won't change, but you get the point.
writeFile('my_id.txt', tostring(Steam.user.getSteamID()))
end
local function readMyId()
return Steam.extra.parseUint64(readFile('my_id.txt'))
end