MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / customBarSecondarySlot

Method customBarSecondarySlot

source/game/StarPlayerInventory.cpp:657–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655}
656
657Maybe<InventorySlot> PlayerInventory::customBarSecondarySlot(CustomBarIndex customBarIndex) const {
658 return m_customBar.at(m_customBarGroup, customBarIndex).second;
659}
660
661void PlayerInventory::setCustomBarPrimarySlot(CustomBarIndex customBarIndex, Maybe<InventorySlot> slot) {
662 // The primary slot is not allowed to point to an empty item.

Callers 4

makePlayerCallbacksMethod · 0.80
updateMethod · 0.80
customBarClickRightMethod · 0.80
updateMethod · 0.80

Calls 1

atMethod · 0.45

Tested by

no test coverage detected