Class PickupWorldItemAction
ECA action that handles picking up a world item. Validates the item, applies a per-object concurrency guard to prevent duplicate pickups, creates the item, invokes OnGrantItem to grant it to the player's inventory and persist it to the database, and manages world-item state. Server-only.
[Serializable]
public class PickupWorldItemAction : BaseAction, IAction
- Inheritance
-
PickupWorldItemAction
- Implements
- Inherited Members
Methods
Execute(ICharacter, EventData)
Handles picking up a world item: validates the item, applies a concurrency guard to prevent duplicate pickups, grants the item to the player's inventory, and manages world-item state. Server-only.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character picking up the world item.
eventDataEventDataThe event data containing the interaction context.