MCPcopy Create free account
hub / github.com/Norbyte/ositools / SkillBarGetSlot

Function SkillBarGetSlot

OsiInterface/Functions/PlayerFunctions.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 esv::SkillBarItem * SkillBarGetSlot(char const * characterGuid, int slot)
87 {
88 auto skillBar = GetSkillBar(characterGuid);
89 if (skillBar == nullptr) return nullptr;
90
91 if (slot < 0 || slot >= (int)skillBar->Set.Size) {
92 OsiError("Invalid skill bar slot index: " << slot);
93 return nullptr;
94 }
95
96 return &skillBar->Set.Buf[slot];
97 }
98
99 bool SkillBarGetItem(OsiArgumentDesc & args)
100 {

Callers 5

SkillBarGetItemFunction · 0.85
SkillBarGetSkillFunction · 0.85
SkillBarSetSkillFunction · 0.85
SkillBarSetItemFunction · 0.85
SkillBarClearFunction · 0.85

Calls 1

GetSkillBarFunction · 0.85

Tested by

no test coverage detected