Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Equipment Slot class #163

Open
pavlicekdominik opened this issue Nov 4, 2023 · 0 comments
Open

UI Equipment Slot class #163

pavlicekdominik opened this issue Nov 4, 2023 · 0 comments
Assignees
Milestone

Comments

@pavlicekdominik
Copy link
Member

UEquipmentSlotUI
Implements: IEquipmentSlotUI

Properties:

  • EquippedItem: FInventoryItem - The data for the item equipped in this slot.

Methods:

  • EquipItem(FInventoryItem ItemData): Equips the item to this slot and updates the UI.
  • UnequipItem(): Clears the currently equipped item from this slot.
  • GetEquippedItemData() -> FInventoryItem: Returns the EquippedItem data.

Usage and Logic Integration:

  • Manages the individual slots within the equipment UI.
  • Equip and unequip methods are triggered by game logic when the player changes their equipment.
  • The get method is used to query the current equipment in a slot for decision-making processes.
@pavlicekdominik pavlicekdominik self-assigned this Nov 4, 2023
@pavlicekdominik pavlicekdominik added this to the 1.0.0.X milestone Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant