MCPcopy Create free account
hub / github.com/Voidware-Prohibited/ALSXT / SetBreathState

Method SetBreathState

Source/ALSXT/Private/AlsxtCharacter.cpp:1956–1983  ·  view source on GitHub ↗

Breath State

Source from the content-addressed store, hash-verified

1954
1955// Breath State
1956void 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
1985void AAlsxtCharacter::ServerSetBreathState_Implementation(const FAlsxtBreathState& NewBreathState)
1986{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected