MCPcopy Create free account
hub / github.com/crossuo/crossuo / Sort

Method Sort

src/SkillGroup.cpp:95–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void CSkillGroupObject::Sort()
96{
97 uint8_t table[60] = { 0 };
98 int Ptr = 0;
99
100 for (uint32_t i = 0; i < g_SkillsManager.Count; i++)
101 {
102 for (int j = 0; j < Count; j++)
103 {
104 if (g_SkillsManager.GetSortedIndex((int)i) == m_Items[j])
105 {
106 table[Ptr] = m_Items[j];
107 Ptr++;
108 break;
109 }
110 }
111 }
112
113 for (int j = 0; j < Count; j++)
114 {
115 m_Items[j] = table[j];
116 }
117}
118
119void CSkillGroupObject::TransferTo(CSkillGroupObject *group)
120{

Callers 1

TransferToMethod · 0.45

Calls 1

GetSortedIndexMethod · 0.80

Tested by

no test coverage detected