ISaveGame

class mobase.ISaveGame

Bases: object

Base class for information about what is in a save game.

Methods Summary

allFiles()

returns

The list of all files related to this save.

getCreationTime()

Retrieve the creation time of the save.

getFilepath()

returns

The path name to the (main) file or folder for the save.

getName()

returns

The name of this save, for display purpose.

getSaveGroupIdentifier()

Retrieve the name of the group this files belong to.

Methods Documentation

allFiles()
Returns

The list of all files related to this save.

Return type

List[str]

getCreationTime()

Retrieve the creation time of the save.

The creation time of a save is not always the same as the creation time of the file containing the save.

Returns

The creation time of the save.

Return type

QDateTime

getFilepath()
Returns

The path name to the (main) file or folder for the save.

Return type

str

getName()
Returns

The name of this save, for display purpose.

Return type

str

getSaveGroupIdentifier()

Retrieve the name of the group this files belong to.

The name can be used to identify sets of saves to transfer between profiles. For RPG games, this is usually the name of a character.

Returns

The group identifier for this save game.

Return type

str