mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
SaveInfo.timePlayed field
This commit is contained in:
parent
94d782c4be
commit
0a2adfee16
@ -85,6 +85,7 @@ namespace MWLua
|
||||
slotInfo["description"] = slot.mProfile.mDescription;
|
||||
slotInfo["playerName"] = slot.mProfile.mPlayerName;
|
||||
slotInfo["playerLevel"] = slot.mProfile.mPlayerLevel;
|
||||
slotInfo["timePlayed"] = slot.mProfile.mTimePlayed;
|
||||
sol::table contentFiles(lua, sol::create);
|
||||
for (size_t i = 0; i < slot.mProfile.mContentFiles.size(); ++i)
|
||||
contentFiles[i + 1] = Misc::StringUtils::lowerCase(slot.mProfile.mContentFiles[i]);
|
||||
|
@ -50,6 +50,7 @@
|
||||
-- @field #string description
|
||||
-- @field #string playerName
|
||||
-- @field #string playerLevel
|
||||
-- @field #number timePlayed Gameplay time for this saved game. Note: available even with [time played](../modding/settings/saves.html#timeplayed) turned off
|
||||
-- @field #list<#string> contentFiles
|
||||
|
||||
---
|
||||
@ -59,9 +60,9 @@
|
||||
-- @return #list<#SaveInfo>
|
||||
|
||||
---
|
||||
-- List of all available saves
|
||||
-- List of all available saves, grouped by directory
|
||||
-- @function [parent=#menu] getAllSaves
|
||||
-- @return #list<#SaveInfo>
|
||||
-- @return #map<#string, #list<#SaveInfo>>
|
||||
|
||||
---
|
||||
-- Exit the game
|
||||
|
Loading…
Reference in New Issue
Block a user