/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h
Test whether net mode is the given mode. In optimized non-editor builds this can be more efficient thanGetNetMode()because it can check the static build flags without considering PIE.
bool IsNetMode ( ENetMode Mode ) const