MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / GetRoleColor

Method GetRoleColor

Source/CogSample/CogSampleSpawnPredictionComponent.cpp:295–306  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

293
294//--------------------------------------------------------------------------------------------------------------------------
295FColor 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

Callers 1

TickComponentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected