Greetings,
In the unreal puzzle game, I see statements like this in the PuzzleBlock.h:
class UMaterialInstance* OrangeMaterial;
class APuzzleBlockGrid* OwningGrid;
or even functions like:
class USceneComponent* GetDummyRoot() const { return DummyRoot; }
class UStaticMeshComponent* GetBlockMesh() const { return BlockMesh; }
It makes sense to me without the class keywords in the code. When the class keyword is added, I do not understand why. Any explanation would be greatly appreciated. Thanks in advance.
In the unreal puzzle game, I see statements like this in the PuzzleBlock.h:
class UMaterialInstance* OrangeMaterial;
class APuzzleBlockGrid* OwningGrid;
or even functions like:
class USceneComponent* GetDummyRoot() const { return DummyRoot; }
class UStaticMeshComponent* GetBlockMesh() const { return BlockMesh; }
It makes sense to me without the class keywords in the code. When the class keyword is added, I do not understand why. Any explanation would be greatly appreciated. Thanks in advance.
Comment