Hello there,
I am currently struggling trying to process or even get data from a custom callback function. I am using the Photon-Framework from ExitGames.
This is what I have so far:
PhotonListener => separate class
PhotonClient => UObject
GameInstance => UGameInstance
LoginActor => AActor
PhotonClient uses PhotonListener to connect via ExitGames::Photon:PhotonPeer(*listener) to the server. I have to implement a custom PhotonListener as callback-interface that implements three function that get called by the Photon-API when events get passed back from the server to the client.
GameInstance instantiates the PhotonClient and LoginActor uses the reference to the GameInstance to send operations to the server and call the service() function in the Tick() function of the actor.
My problem now is that I have absolutely no idea how i can achieve that LoginActor gets informed when the callback functions implemented in the PhotonListener get called by PhotonApi nor how to extract the data provided by the functions.
For completeness I have included a link to my project: Dropbox - Error
This is what I must achieve in general:
I hope someone can help me
PS: Reference from ExitGames: http://doc-api.exitgames.com/en/onpremise/current/cpp/doc/html/a00083.html