How to spawn blueprint object from c++

This is a good answer, but I think in your spawn function you need to add “GetWorld()->” first, ie:

AFloorCell* NewFloorCell = GetWorld()->SpawnActor<AFloorCell>( FloorCellClass, SpawnParams );