Skip to content

feat: Save slots#692

Open
alex-y-z wants to merge 2 commits into
mainfrom
users/alex-y-z/save-slots
Open

feat: Save slots#692
alex-y-z wants to merge 2 commits into
mainfrom
users/alex-y-z/save-slots

Conversation

@alex-y-z
Copy link
Copy Markdown
Collaborator

PlayerDataStoreService wrapper for save slots.

Provides an interface for creating, manipulating, and observing slots such that consumers can seamlessly react to slot switching.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Test Results

ℹ️ No changed packages with test targets were discovered for this PR. · View logs

Deploy Results

ℹ️ No changed packages with deploy targets were discovered for this PR. · View logs

local SaveSlotData = require("SaveSlotData")
local ServiceBag = require("ServiceBag")

type SaveSlot = {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may want to name this SaveSlotData so people know it's a pure data-driven, not OOP

end)
:Pipe({
RxBrioUtils.map(function(slotIndex: number)
return dataStore:GetSubStore("saveSlots"):GetSubStore(tostring(slotIndex))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs the default slot to be the top level datastore


return TieDefinition.new("HasSaveSlots", {
ActiveSlotIndex = TieDefinition.Types.PROPERTY,
MaxSlotCount = TieDefinition.Types.PROPERTY,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would add a slot changing event here

MaxSlotCount = TieDefinition.Types.PROPERTY,

PromiseHasSlot = TieDefinition.Types.METHOD,
PromiseSelectSlot = TieDefinition.Types.METHOD,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need observe active slot api methods here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants