Skip to content

SaveSlot_ClassAPI

CG-Tespy edited this page May 4, 2020 · 2 revisions

Part of the UI that is assigned GameSaveData, displays information about it, and is usually part of the process of getting said data loaded after getting clicked.

Inherits from: MonoBehaviour
Namespace: CGTUnity.Fungus.SaveSystem

Inspector Fields

Text numDisplay

  • Lets the user know what number this slot has, which is usually based on its position relative to the other slots.
Text descDisplay
  • Displays the description tied to the GameSaveData assigned to it, if any.
Text descDisplay
  • Displays the last-written date for the save data this slot is holding at any given time.
protected StandardFormat dateFormat
  • The .NET Standard format to display the date in.
protected bool refreshContinuously
  • Whether or not this updates its displays every frame.

Public Properties

RectTransform rectTransform

  • Readable: yes
  • Writable: yes
virtual int Number
  • Readable: yes
  • Writable: yes
virtual string Description
  • Readable: yes
  • Writable: yes
virtual DateTime Date
  • Readable: yes
  • Writable: yes
virtual GameSaveData SaveData
  • Readable: yes
  • Writable: yes

Public Methods

virtual void UpdateDisplays()

  • Updates the contents of the display fields based on the save data the slot is holding at the time.
virtual void Clear()
  • Unassigns its SaveData from itself, updating this instance's displays accordingly.

Clone this wiki locally