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

Method PostStartup

OsiInterface/Functions/FunctionLibrary.cpp:171–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 void CustomFunctionLibrary::PostStartup()
172 {
173 if (PostLoaded) {
174 return;
175 }
176
177 using namespace std::placeholders;
178
179 osiris_.GetLibraryManager().StatusHitEnter.AddPreHook(
180 std::bind(&CustomFunctionLibrary::OnStatusHitEnter, this, _1)
181 );
182 osiris_.GetLibraryManager().StatusHealEnter.AddPreHook(
183 std::bind(&CustomFunctionLibrary::OnStatusHealEnter, this, _1)
184 );
185 osiris_.GetLibraryManager().CharacterHitHook.SetWrapper(
186 std::bind(&CustomFunctionLibrary::OnCharacterHit, this, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13)
187 );
188 osiris_.GetLibraryManager().ApplyStatusHook.SetWrapper(
189 std::bind(&CustomFunctionLibrary::OnApplyStatus, this, _1, _2, _3)
190 );
191
192 PostLoaded = true;
193 }
194}

Callers 1

Calls 2

AddPreHookMethod · 0.80
SetWrapperMethod · 0.80

Tested by

no test coverage detected