It seems that after cutting out the public sections of the base class, I got an error of “pointer to incomplete class type is not allowed” with both the BaseMesh and TurretMesh pointers on these lines in PawnBase.cpp:
BaseMesh->SetupAttachment(RootComponent);
TurretMesh->SetupAttachment(BaseMesh);
and another error of "argument of type “UStaticMeshComponent *” is incompatible with parameter of type “USceneComponent *” for the following line:
ProjectileSpawnPoint->SetupAttachment(TurretMesh);
I don’t know why this would be the case since no code related to these classes seems to have moved, but adding
#include "Components/StaticMeshComponent.h"
seems to fix it. Any ideas why this is?