Breath State
| 1954 | |
| 1955 | // Breath State |
| 1956 | void AAlsxtCharacter::SetBreathState(const FAlsxtBreathState& NewBreathState) |
| 1957 | { |
| 1958 | const auto PreviousBreathState{ BreathState }; |
| 1959 | BreathState = NewBreathState; |
| 1960 | OnBreathStateChanged(PreviousBreathState); |
| 1961 | |
| 1962 | if ((GetLocalRole() == ROLE_AutonomousProxy) && IsLocallyControlled()) |
| 1963 | { |
| 1964 | ServerSetBreathState(NewBreathState); |
| 1965 | } |
| 1966 | |
| 1967 | // if ((GetLocalRole() == ROLE_AutonomousProxy) && IsLocallyControlled()) |
| 1968 | // { |
| 1969 | // ServerSetBreathState(NewBreathState); |
| 1970 | // } |
| 1971 | |
| 1972 | // if (GetLocalRole() >= ROLE_Authority) |
| 1973 | // { |
| 1974 | // BreathState = NewBreathState; |
| 1975 | // } |
| 1976 | // else |
| 1977 | // { |
| 1978 | // ServerSetBreathState(NewBreathState); |
| 1979 | // } |
| 1980 | |
| 1981 | // MARK_PROPERTY_DIRTY_FROM_NAME(ThisClass, BreathState, this) |
| 1982 | |
| 1983 | } |
| 1984 | |
| 1985 | void AAlsxtCharacter::ServerSetBreathState_Implementation(const FAlsxtBreathState& NewBreathState) |
| 1986 | { |
nothing calls this directly
no outgoing calls
no test coverage detected