PixelCrushers.DialogueSystem.ARPG.DSSaveLoad Class Reference

This runs on top of ARPG's SaveLoad. More...

Inheritance diagram for PixelCrushers.DialogueSystem.ARPG.DSSaveLoad:
Collaboration diagram for PixelCrushers.DialogueSystem.ARPG.DSSaveLoad:

Public Member Functions

void Start ()
 
void Update ()
 
void QuitToTitle ()
 Quits the game, returning to the title level. More...
 
void ExitProgram ()
 
virtual string GetSlotSummary (int slot)
 Gets the slot summary, which is text shown in the slot's load button. More...
 
virtual string LoadSlot (int slot)
 Loads the saved data for a slot. More...
 
virtual void SaveSlot (int slot, string summary, string saveData)
 Saves to a slot. More...
 

Public Attributes

string menuTitle = "Menu"
 
string saveMenuTitle = "Select Save Slot"
 
string loadMenuTitle = "Load From Slot"
 
ScaledRect scaledRect
 
GUISkin guiSkin
 
KeyCode menuKey = KeyCode.Escape
 
string savedGameKey = "SavedGame"
 
int numSavedGameSlots = 5
 
string titleLevelName = "Title"
 
QuestLogWindow questLogWindow
 

Detailed Description

This runs on top of ARPG's SaveLoad.

It replaces SaveLoad's menu with its own menu, which allows it to also save and load Dialogue System data. It supports multiple saved game slots, and you can override the GetSlotSummary(), SaveSlot(), and LoadSlot() methods to save somewhere other than the default, which is PlayerPrefs.

Member Function Documentation

◆ ExitProgram()

void PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.ExitProgram ( )

◆ GetSlotSummary()

virtual string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.GetSlotSummary ( int  slot)
virtual

Gets the slot summary, which is text shown in the slot's load button.

This method uses PlayerPrefs. Override it if you want to save elsewhere such as a local file.

Returns
The slot summary.
Parameters
slotSlot.

◆ LoadSlot()

virtual string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.LoadSlot ( int  slot)
virtual

Loads the saved data for a slot.

This method uses PlayerPrefs. Override it if you want to load from elsewhere.

Returns
The slot.
Parameters
slotSlot.

◆ QuitToTitle()

void PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.QuitToTitle ( )

Quits the game, returning to the title level.

◆ SaveSlot()

virtual void PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.SaveSlot ( int  slot,
string  summary,
string  saveData 
)
virtual

Saves to a slot.

This method uses PlayerPrefs. Override it if you want to save elsewhere.

Parameters
slotSlot.
summarySummary.
saveDataSave data.

◆ Start()

void PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.Start ( )

◆ Update()

void PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.Update ( )

Member Data Documentation

◆ guiSkin

GUISkin PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.guiSkin

◆ loadMenuTitle

string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.loadMenuTitle = "Load From Slot"

◆ menuKey

KeyCode PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.menuKey = KeyCode.Escape

◆ menuTitle

string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.menuTitle = "Menu"

◆ numSavedGameSlots

int PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.numSavedGameSlots = 5

◆ questLogWindow

QuestLogWindow PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.questLogWindow

◆ savedGameKey

string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.savedGameKey = "SavedGame"

◆ saveMenuTitle

string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.saveMenuTitle = "Select Save Slot"

◆ scaledRect

ScaledRect PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.scaledRect
Initial value:
= ScaledRect.FromOrigin(ScaledRectAlignment.MiddleCenter,
ScaledValue.FromPixelValue(300),
ScaledValue.FromPixelValue(370))

◆ titleLevelName

string PixelCrushers.DialogueSystem.ARPG.DSSaveLoad.titleLevelName = "Title"

The documentation for this class was generated from the following file:
PixelCrushers.DialogueSystem.UnityGUI.ScaledRectAlignment
ScaledRectAlignment
Specifies an alignment for the origin or alignment of a ScaledRect.
Definition: ScaledRectAlignment.cs:8