--------------------------------------------------------------------------------------------------------------------------
| 293 | |
| 294 | //-------------------------------------------------------------------------------------------------------------------------- |
| 295 | FColor UCogSampleSpawnPredictionComponent::GetRoleColor() const |
| 296 | { |
| 297 | switch (Role) |
| 298 | { |
| 299 | case ECogSampleSpawnPredictionRole::Server: return FColor(255, 0, 0, 255); |
| 300 | case ECogSampleSpawnPredictionRole::Predicted: return FColor(255, 255, 0, 255); |
| 301 | case ECogSampleSpawnPredictionRole::Replicated: return FColor(128, 128, 0, 255); |
| 302 | case ECogSampleSpawnPredictionRole::Remote: return FColor(255, 0, 255, 255); |
| 303 | } |
| 304 | |
| 305 | return FColor(128, 128, 128, 255); |
| 306 | } |
| 307 | |
| 308 | //-------------------------------------------------------------------------------------------------------------------------- |
| 309 | #if ENABLE_COG |