settings.storage module

Provides SQL storage and access to player specific settings.

class settings.storage._PlayerSettingsDictionary[source]

Bases: dict

Dictionary class used to store user specific settings values.

__init__()[source]

Connect to the database and retrieve any stored values.

on_level_shutdown()[source]

Store the dictionary to the database on map change.

class settings.storage._UniqueSettings(uniqueid)[source]

Bases: dict

Class used to interact with the database for a specific uniqueid.

__init__(uniqueid)[source]

Store the given uniqueid and adds it to the players table.