| 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 | } |
no test coverage detected