Page MenuHomeFeedback Tracker

Add slotted entity change event to SlotManagerComponent and or EntitySlotInfo
Closed, ResolvedPublic

Description

Right now (0.9.8.50) it is not possible to subscribe to slot changes for entities because there is no script invoker and no way to mod the EntitySlotInfo class to forward EntitySlotInfo::OnAttachedEntity and EntitySlotInfo::OnDetachedEntity to other components etc. The newly added parent change events on script component unfortunetly fire before inventory or slot info states are processed, so they provide 0 information about "how" the parent attaches the child (raw AddChild vs Inventory storage slot vs slotmanager)

I would propose adding a similar event handler like InventoryItemComponent::OnParentSlotChanged either on the manager with old slot new slow, or two separate invokers for added and removed on the individual slots that an outside component can subscribe to via looping through SlotManagerComponent::GetSlotInfos.

Details

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

Event Timeline

Geez changed the task status from New to Reviewed.May 3 2023, 10:47 AM
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.

Geez reopened this task as Acknowledged.Jun 29 2023, 4:07 PM

Reopened due to new obstacle appearing.

Geez closed this task as Resolved.Aug 16 2023, 11:56 AM

Resolved for the next major update.