unity3d-client-listener

*We assure you that we do not spam. You may receive occasional emails from us.
 You can always unsubscribe.
Unity3D

Unity3D Client Listeners

Connection Request Listener
/// Invoked when a response for Connect request is received.
/// <param name="eventObj"></param>
      void onConnectDone(ConnectEvent eventObj);
/// Invoked when a response for Disconnect request is received.
/// <param name="eventObj"></param>
      void onDisconnectDone(ConnectEvent eventObj);
Room Request Listener
/// Invoked when the response for subscribeRoom request is received.
/// <param name="eventObj"></param>
      void onSubscribeRoomDone(RoomEvent eventObj);
/// Invoked when the response for unsubscribeRoom request is received.
/// <param name="eventObj"></param>
      void onUnSubscribeRoomDone(RoomEvent eventObj);
/// Invoked when the response for joinRoom request is received.
/// <param name="eventObj"></param>
      void onJoinRoomDone(RoomEvent eventObj);
/// Invoked when the response for leaveRoom request is received.
/// <param name="eventObj"></param>
      void onLeaveRoomDone(RoomEvent eventObj);
/// Invoked when the response for GetLiveRoomInfo request is received.
/// <param name="eventObj"></param>
      void onGetLiveRoomInfoDone(LiveRoomInfoEvent eventObj);
/// Invoked when the response for setCustomRoomData request is received.
/// <param name="eventObj"></param>
      void onSetCustomRoomDataDone(LiveRoomInfoEvent eventObj);
/// Invoked when the response for UpdateRoomProperties request is received.
/// <param name="eventObj"></param>
      void onUpdatePropertyDone(LiveRoomInfoEvent lifeLiveRoomInfoEvent);
/// <summary>
/// Invoked when the response for LockProperties request is received.
/// </summary>
/// <param name="result"></param>
void onLockPropertiesDone(byte result);
/// <summary>
/// Invoked when the response for UnlockProperties request is received.
/// </summary>
/// <param name="result"></param>
void onUnlockPropertiesDone(byte result);
Zone Request Listener
/// Invoked when a response for DeleteRoom request is receieved.
/// <param name="eventObj"></param>
      void onDeleteRoomDone(RoomEvent eventObj);
/// Invoked when a response for GetAllRooms request is receieved.
/// <param name="eventObj"></param>
      void onGetAllRoomsDone(AllRoomsEvent eventObj);
/// Invoked when a response for CreateRoom request is receieved.
/// <param name="eventObj"></param>
      void onCreateRoomDone(RoomEvent eventObj);
/// Invoked when a response for GetOnlineUsers request is receieved.
/// <param name="eventObj"></param>
      void onGetOnlineUsersDone(AllUsersEvent eventObj);
/// <summary>
/// Invoked when a response for GetLiveUserInfo request is receieved.
/// <param name="eventObj"></param>
      void onGetLiveUserInfoDone(LiveUserInfoEvent eventObj);
/// Invoked when a response for SetCustomUserData request is receieved.
/// <param name="eventObj"></param>
      void onSetCustomUserDataDone(LiveUserInfoEvent eventObj);
/// Invoked when a response from GetRoomWithNUser and GetRoomWithProperties
/// <param name="matchedRoomsEvent"></param>
      void onGetMatchedRoomsDone(MatchedRoomsEvent matchedRoomsEvent);
Lobby Request Listener
/// Invoked when the response for joinLobby request is received.
/// <param name="eventObj"></param>
      void onJoinLobbyDone(LobbyEvent eventObj);
/// Invoked when the response for leaveLobby request is received.
/// <param name="eventObj"></param>
      void onLeaveLobbyDone(LobbyEvent eventObj);
/// Invoked when the response for subscribeLobby request is received.
/// <param name="eventObj"></param>
      void onSubscribeLobbyDone(LobbyEvent eventObj);
/// Invoked when the response for unsubscribeLobby request is received.
/// <param name="eventObj"></param>
      void onUnSubscribeLobbyDone(LobbyEvent eventObj);
/// Invoked when the response for GetLiveLobbyInfo request is received.
/// <param name="eventObj"></param>
      void onGetLiveLobbyInfoDone(LiveRoomInfoEvent eventObj);
Notify Listener
/// <summary>
/// Invoked when a room is created.
/// </summary>
/// <param name="eventObj"></param>
        void onRoomCreated(RoomData eventObj);
/// <summary>
/// Invoked when a room is deleted.
/// </summary>
/// <param name="eventObj"></param>
        void onRoomDestroyed(RoomData eventObj);
/// <summary>
/// Invoked when a user leaves a room.
/// </summary>
/// <param name="eventObj"></param>
/// <param name="username"></param>
        void onUserLeftRoom(RoomData eventObj, String username);
/// <summary>
/// Invoked when a user joins a room.
/// </summary>
/// <param name="eventObj"></param>
/// <param name="username"></param>
        void onUserJoinedRoom(RoomData eventObj, String username);
/// <summary>
/// Invoked when a user leaves the lobby.
/// </summary>
/// <param name="eventObj"></param>
/// <param name="username"></param>
        void onUserLeftLobby(LobbyData eventObj, String username);
/// <summary>
/// Invoked when a user joins the lobby.
/// </summary>
/// <param name="eventObj"></param>
/// <param name="username"></param>
        void onUserJoinedLobby(LobbyData eventObj, String username);
/// <summary>
/// Invoked when a chat message is sent in one of the subscribed rooms.
/// </summary>
/// <param name="eventObj"></param>
        void onChatReceived(ChatEvent eventObj);
/// <summary>
/// Invoked when a updatePeers request is sent in one of the subscribed rooms.
/// </summary>
/// <param name="eventObj"></param>
        void onUpdatePeersReceived(UpdateEvent eventObj);
/// <summary>
/// Invoked when a updatePeers request is sent in one of the subscribed rooms.
/// </summary>
/// <param name="roomData"></param>
/// <param name="sender"></param>
/// <param name="properties"></param>
/// <param name="lockedPropertiesTable"></param>
	void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, Object> properties, Dictionary<String, String> lockedPropertiesTable);
/// <summary>
/// Invoked when a private chat is received from the given sender.
/// </summary>
/// <param name="sender"></param>
/// <param name="message"></param>
	void onPrivateChatReceived(String sender, String message);
/// <summary>
/// Invoked when a user's move is completed in a turn based room
/// </summary>
/// <param name="?"></param>
	void onMoveCompleted(MoveEvent moveEvent);
Update Request Listener
/// Invoked when a response for sendUpdatePeers is received. Result of the
/// operation is passed as an argument of value WarpResponseResultCode.
/// <param name="result"></param>
       void onSendUpdateDone(byte result);
Chat Request Listener
/// Invoked when a response for sendChat is received. Result of the
/// operation is passed as an argument of value WarpResponseResultCode.
/// <param name="result"></param>
       void onSendChatDone(byte result);
/// <summary>
/// Invoked when a response for sendPrivateChat is received. Result of the
/// operation is passed as an argument of value WarpResponseResultCode.
/// </summary>
/// <param name="result"></param>
void onSendPrivateChatDone(byte result);       
Turn Based Room Listener
/// <summary>
/// Invoked when a response for a sendMove request is received.
/// </summary>
/// <param name="result"></param>
void onSendMoveDone(byte result);