Table of Contents

Class SlotInfoProviderResource

Namespace
Squiggles.Core.Meta
Assembly
SquigglesCommon4X.dll

A super rudimentary save slot information provider. It creates absolute bare minimum functionality so you don't have to make the feature a huge priority. However, it is recommended to create your own implementation eventually to yield more descriptive save slot information! Custom implementations should extend this class. This will allow them to populate into the inspector. Simply override the below functions, optionally include any export settings if you want something more dynamic.

[GlobalClass]
[ScriptPath("res://Core/MetaConfig/SlotInfoProviderResource.cs")]
public class SlotInfoProviderResource : Resource, IDisposable, ISaveSlotInformationProvider
Inheritance
GodotObject
RefCounted
Resource
SlotInfoProviderResource
Implements
Inherited Members
Resource._GetRid()
Resource.GetRid()
Resource.GetLocalScene()
Resource.SetupLocalToScene()
Resource.EmitChanged()
Resource.ResourceLocalToScene
Resource.ResourcePath
Resource.ResourceName
Resource.Changed
Resource.SetupLocalToSceneRequested
RefCounted.InitRef()
RefCounted.Reference()
RefCounted.Unreference()
RefCounted.GetReferenceCount()
GodotObject.NotificationPostinitialize
GodotObject.NotificationPredelete
GodotObject.NativeInstance
GodotObject.ScriptChanged
GodotObject.PropertyListChanged

Methods

GetSaveSlotName(string)

Gets the main (first) name for the save slot at the given path. Every save slot is a directory with a parse-able date that is was created. This name will be first on the button to load said slot. Ideally loaded from some kind of metadata file SaveData.ParseSaveSlotName

public virtual string GetSaveSlotName(string absolutePath)

Parameters

absolutePath string

The absolute path (starting with "C://" or "/home/" leading to the directory of the given save slot

Returns

string

A string that is the primary name for this save slot.

GetSaveSlotSubtitle(string)

Gets the secondary title (or subtitle) of the save slot for the given path. This may return "" if no subtitles are desired. Ideally this should provide some extra metadata such as what level the player has reached, or possibly some key items they have acquired at this point.

public virtual string GetSaveSlotSubtitle(string absolutePath)

Parameters

absolutePath string

The absolute path (starting with "C://" or "/home/" leading to the directory of the given save slot

Returns

string

A string that is the secondary name for this save slot.