Public Member Functions | |
| bool | IsEnabled () const |
| Get enabled status of network conditioner. | |
| void | SetEnabled (const bool InEnabled) |
| Set enabled status of network conditioner. | |
| bool | SetOverallFailRate (const int32 FailRate) |
| Set overall fail rate percentage. this will be used if a particular MessageType is not set. | |
| int32 | GetOverallFailRate () const |
| Get overall fail rate percentage. this will be used if a particular MessageType is not set. | |
| bool | SetMessageFailRate (const FString &MessageType, const int32 FailRate) |
| Set fail rate percentage of a particular message type override the overall fail rate value for this message type. | |
| int32 | GetMessageFailRate (const FString &MessageType) |
| Get fail rate percentage of a particular message type override the overall fail rate value for this message type. | |
| void | GetAllMessageFailRate (TMap< FString, int32 > &OutFailRateMap) const |
| Get map of fail rate percentage of all message type that is set. | |
| void | ClearMessageFailRate () |
| Clear all message fail rate that was set. | |
| bool | RemoveMessageFailRate (const FString &MessageType) |
| Remove fail rate of a message type. | |
| void | SetRandomSeed (const int32 Seed) |
| Set random seed to be used in calculation, this will set new initial random seed. | |
| int32 | GetCurrentRandomSeed () const |
| Get current random seed used. | |
| int32 | GetInitialRandomSeed () const |
| Get initial random seed used. | |
| bool | CalculateFail (const FString &MessageType) |
| Calculate with random if a MessageType should be fail or pass. | |
Public Attributes | |
| PACKAGE_SCOPE | : FAccelByteNetworkConditioner() |
| bool AccelByte::FAccelByteNetworkConditioner::CalculateFail | ( | const FString & | MessageType | ) |
Calculate with random if a MessageType should be fail or pass.
| MessageType | Name of message type. |
| void AccelByte::FAccelByteNetworkConditioner::GetAllMessageFailRate | ( | TMap< FString, int32 > & | OutFailRateMap | ) | const |
Get map of fail rate percentage of all message type that is set.
| OutFailRateMap | map of fail rate percentage. |
| int32 AccelByte::FAccelByteNetworkConditioner::GetCurrentRandomSeed | ( | ) | const |
Get current random seed used.
| int32 AccelByte::FAccelByteNetworkConditioner::GetInitialRandomSeed | ( | ) | const |
Get initial random seed used.
| int32 AccelByte::FAccelByteNetworkConditioner::GetMessageFailRate | ( | const FString & | MessageType | ) |
Get fail rate percentage of a particular message type override the overall fail rate value for this message type.
| MessageType | The message type name. |
| int32 AccelByte::FAccelByteNetworkConditioner::GetOverallFailRate | ( | ) | const |
Get overall fail rate percentage. this will be used if a particular MessageType is not set.
| bool AccelByte::FAccelByteNetworkConditioner::IsEnabled | ( | ) | const |
Get enabled status of network conditioner.
| bool AccelByte::FAccelByteNetworkConditioner::RemoveMessageFailRate | ( | const FString & | MessageType | ) |
Remove fail rate of a message type.
| MessageType | Name of message type to remove. |
| void AccelByte::FAccelByteNetworkConditioner::SetEnabled | ( | const bool | InEnabled | ) |
Set enabled status of network conditioner.
| InEnabled | Network conditioner enabled state. |
| bool AccelByte::FAccelByteNetworkConditioner::SetMessageFailRate | ( | const FString & | MessageType, |
| const int32 | FailRate ) |
Set fail rate percentage of a particular message type override the overall fail rate value for this message type.
| MessageType | The message type name to override. |
| FailRate | Percentage fail rate to use, valid value is between 0 (always pass) to 100 (always fail) |
| bool AccelByte::FAccelByteNetworkConditioner::SetOverallFailRate | ( | const int32 | FailRate | ) |
Set overall fail rate percentage. this will be used if a particular MessageType is not set.
| FailRate | Percentage fail rate to use, valid value is between 0 (always pass) to 100 (always fail) |
| void AccelByte::FAccelByteNetworkConditioner::SetRandomSeed | ( | const int32 | Seed | ) |
Set random seed to be used in calculation, this will set new initial random seed.
| Seed | random seed to use. |