Class reference?
Options
Hi,
The documentation found in http://doc.exitgames.com/en/onpremise/current/getting-started/photon-server-intro is a bit outdated and lacking.
For example, the "An App From Scratch" part is incorrect, since the PeerBase.OnDisconnect() method doesn't exist, it expects a OnDisconnect(DisconnectReason reason, string str) instead.
Now, I wanted to find out what the second parameter string is all about, and so I searched for a class reference for PhotonServer.PeerBase, but couldn't find any.
Is there any comprehensive class reference out there that includes all of photon classes, similar to Unity's scripting reference (https://docs.unity3d.com/Documentation/ScriptReference/)?
Thanks
The documentation found in http://doc.exitgames.com/en/onpremise/current/getting-started/photon-server-intro is a bit outdated and lacking.
For example, the "An App From Scratch" part is incorrect, since the PeerBase.OnDisconnect() method doesn't exist, it expects a OnDisconnect(DisconnectReason reason, string str) instead.
Now, I wanted to find out what the second parameter string is all about, and so I searched for a class reference for PhotonServer.PeerBase, but couldn't find any.
Is there any comprehensive class reference out there that includes all of photon classes, similar to Unity's scripting reference (https://docs.unity3d.com/Documentation/ScriptReference/)?
Thanks
0
Comments
-
Thanks for the hint about the outdated documentation, we'll fix that.
The class reference documentation is part of the Photon Server SDK - please have a look at /doc/Photon.SocketServer.chm
The OnDisconnect method is a callback from Photon - if the network connection to a client is closed, Photon notifies your .NET code by a call to the OnDisconnect method. You should not call it by yourself. The disconnectReason might contain additional information about the disconenct - for example, if a UDP client is disconnected by a timeout, the disconnectReason string contains a dump of the last round trip times etc., to help debugging. However, not every call to OnDisconnect has a "disconnectReason".0 -
Thank you, the offline reference was what I was looking for.0