| 2370 | // Lean |
| 2371 | |
| 2372 | void AAlsxtCharacter::SetDesiredLean(const FGameplayTag& NewLeanTag) |
| 2373 | { |
| 2374 | if (DesiredLean != NewLeanTag) |
| 2375 | { |
| 2376 | DesiredLean = NewLeanTag; |
| 2377 | const auto PreviousLean{ Lean }; |
| 2378 | |
| 2379 | MARK_PROPERTY_DIRTY_FROM_NAME(ThisClass, DesiredLean, this) |
| 2380 | |
| 2381 | if (GetLocalRole() == ROLE_AutonomousProxy) |
| 2382 | { |
| 2383 | ServerSetDesiredLean(NewLeanTag); |
| 2384 | } |
| 2385 | else if (GetLocalRole() == ROLE_Authority) |
| 2386 | { |
| 2387 | OnLeanChanged(PreviousLean); |
| 2388 | } |
| 2389 | } |
| 2390 | } |
| 2391 | |
| 2392 | void AAlsxtCharacter::ServerSetDesiredLean_Implementation(const FGameplayTag& NewLeanTag) |
| 2393 | { |
nothing calls this directly
no outgoing calls
no test coverage detected