Class CustomCommandListener<CommandEnum>
- Namespace
- Zorro.PhotonUtility
- Assembly
- Zorro.PhotonUtility.dll
public class CustomCommandListener<CommandEnum> : Singleton<CustomCommandListener<CommandEnum>>, IConnectionCallbacks, IOnEventCallback where CommandEnum : struct, IConvertible
Type Parameters
CommandEnum
- Inheritance
-
CustomCommandListener<CommandEnum>
- Implements
-
IConnectionCallbacks
IOnEventCallback
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
CustomCommandListener()
public CustomCommandListener()
Methods
OnConnected()
public void OnConnected()
OnConnectedToMaster()
public void OnConnectedToMaster()
OnCreated()
protected override void OnCreated()
OnCustomAuthenticationFailed(string)
public void OnCustomAuthenticationFailed(string debugMessage)
Parameters
debugMessage
string
OnCustomAuthenticationResponse(Dictionary<string, object>)
public void OnCustomAuthenticationResponse(Dictionary<string, object> data)
Parameters
data
Dictionary<string, object>
OnDisconnected(DisconnectCause)
public void OnDisconnected(DisconnectCause cause)
Parameters
cause
DisconnectCause
OnEvent(EventData)
public void OnEvent(EventData photonEvent)
Parameters
photonEvent
EventData
OnRegionListReceived(RegionHandler)
public void OnRegionListReceived(RegionHandler regionHandler)
Parameters
regionHandler
RegionHandler
RegisterListener<T>(Action<T>)
public static ListenerHandle RegisterListener<T>(Action<T> onReceived) where T : CustomCommandPackage<CommandEnum>
Parameters
onReceived
Action<T>
Returns
- ListenerHandle
Type Parameters
T
RegisterPackage<T>(T)
public void RegisterPackage<T>(T package) where T : CustomCommandPackage<CommandEnum>
Parameters
package
T
Type Parameters
T
UnregisterListener(ListenerHandle)
public static void UnregisterListener(ListenerHandle handle)
Parameters
handle
ListenerHandle