PlayerState
class using the BuildTool (We are going to call this example’s class PS
)Game mode
header fileThe player state class is the only class with no functionality tied to it, meaning that it only has its necessary events. There are more plans for the GameState
class for updates in the far future, but for now it doesn’t serve a purpose other than adding additional events. However, semantically, its usage is for tracking specific states of a player that are not related to the Pawn
or PlayerControler
. Here are some examples:
You can use the standard cast function for casting from a generic pointer to it’s base pointer type