Page MenuHomeFeedback Tracker

Add SlotManagerComponent::GetByName
Closed, ResolvedPublic

Description

Right now the slot manager has no names for the slots. Even though the config objects are being named in the workbench, these names are not accessible. There is no EntitySlotInfo::GetName() or something similar to uniquely identify a slot.

In this image, I would via script for example like to swap out the bench via user action. I know that I could get all slots, and then hard code to access the slot at index 1, BUT if I am adding a slot via a mod, I have no idea if other mods might have added their slots before me, so my index I put in my scripts might be completely wrong. This is why unique names to identify them should be used.

So I propose to add:

  • EntitySlotInfo::GetName()
  • SlotManagerComponent::GetByName()

Details

Severity
Major
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Apr 19 2023, 9:13 AM
Geez changed the task status from New to Assigned.Apr 19 2023, 12:35 PM
Geez closed this task as Resolved.May 5 2023, 9:51 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for one of the future updates.