Simple Poker Template 0.0.1
Loading...
Searching...
No Matches
SimplePoker.SaveLoad.DatabaseManager Class Reference

Static class for managing game data in the local database. More...

Static Public Member Functions

static void SaveGame (GameSaveObject gameSave)
 Saves the current game state.
 
static GameSaveObject LoadGame ()
 Loads the saved game state.
 
static void SavePlayerPortrait (int portraitID)
 Saves the player's portrait ID.
 
static int LoadPlayerPortrait ()
 Loads the player's portrait ID.
 
static void SavePlayerChips (int chips)
 Saves the player's chips.
 
static void AddPlayerChipsAndSave (int chips)
 Adds chips to the player's current chip count and saves the updated value.
 
static void SubPlayerChipsAndSave (int chips)
 Subtracts chips from the player's current chip count and saves the updated value.
 
static int LoadPlayerChips ()
 Loads the player's current chip count.
 
static void DeleteSave ()
 Deletes the saved game data.
 

Detailed Description

Static class for managing game data in the local database.

Member Function Documentation

◆ AddPlayerChipsAndSave()

static void SimplePoker.SaveLoad.DatabaseManager.AddPlayerChipsAndSave ( int chips)
static

Adds chips to the player's current chip count and saves the updated value.

Parameters
chipsThe number of chips to add.

◆ DeleteSave()

static void SimplePoker.SaveLoad.DatabaseManager.DeleteSave ( )
static

Deletes the saved game data.

◆ LoadGame()

static GameSaveObject SimplePoker.SaveLoad.DatabaseManager.LoadGame ( )
static

Loads the saved game state.

Returns
The loaded game state.

◆ LoadPlayerChips()

static int SimplePoker.SaveLoad.DatabaseManager.LoadPlayerChips ( )
static

Loads the player's current chip count.

Returns
The number of chips the player has.

◆ LoadPlayerPortrait()

static int SimplePoker.SaveLoad.DatabaseManager.LoadPlayerPortrait ( )
static

Loads the player's portrait ID.

Returns
The ID of the player's portrait.

◆ SaveGame()

static void SimplePoker.SaveLoad.DatabaseManager.SaveGame ( GameSaveObject gameSave)
static

Saves the current game state.

Parameters
gameSaveThe object containing the game state to be saved.

◆ SavePlayerChips()

static void SimplePoker.SaveLoad.DatabaseManager.SavePlayerChips ( int chips)
static

Saves the player's chips.

Parameters
chipsThe number of chips to be saved.

◆ SavePlayerPortrait()

static void SimplePoker.SaveLoad.DatabaseManager.SavePlayerPortrait ( int portraitID)
static

Saves the player's portrait ID.

Parameters
portraitIDThe ID of the player's portrait.

◆ SubPlayerChipsAndSave()

static void SimplePoker.SaveLoad.DatabaseManager.SubPlayerChipsAndSave ( int chips)
static

Subtracts chips from the player's current chip count and saves the updated value.

Parameters
chipsThe number of chips to subtract.

The documentation for this class was generated from the following file: