* Callback when a map is loaded */
| 202 | * Callback when a map is loaded |
| 203 | */ |
| 204 | void UUnLuaManager::OnMapLoaded(UWorld *World) |
| 205 | { |
| 206 | ENetMode NetMode = World->GetNetMode(); |
| 207 | if (NetMode == NM_DedicatedServer) |
| 208 | { |
| 209 | return; |
| 210 | } |
| 211 | |
| 212 | const TArray<ULevel*> &Levels = World->GetLevels(); |
| 213 | for (ULevel *Level : Levels) |
| 214 | { |
| 215 | // replace input defined in ALevelScriptActor::InputComponent if necessary |
| 216 | ALevelScriptActor *LSA = Level->GetLevelScriptActor(); |
| 217 | if (LSA && LSA->InputEnabled() && LSA->InputComponent) |
| 218 | { |
| 219 | ReplaceInputs(LSA, LSA->InputComponent); |
| 220 | } |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | UDynamicBlueprintBinding* UUnLuaManager::GetOrAddBindingObject(UClass* Class, UClass* BindingClass) |
| 225 | { |
no outgoing calls
no test coverage detected