示例#1
0
    // Token: 0x060052CD RID: 21197 RVA: 0x001C65D4 File Offset: 0x001C49D4
    public void OnOwnershipTransfered(object[] viewAndPlayers)
    {
        PhotonView view = viewAndPlayers[0] as PhotonView;

        if (view != null)
        {
            view.ownershipTransferTime = (double)Time.time;
        }
        PhotonPlayer player1 = viewAndPlayers[1] as PhotonPlayer;
        PhotonPlayer player2 = viewAndPlayers[2] as PhotonPlayer;

        Debug.LogFormat("<color=grey>OnOwnershipTransfered {0} from {1} to {2}</color>", new object[]
        {
            (!(view != null)) ? "(null)" : view.name,
            (player2 == null) ? "(null)" : player2.ID.ToString(),
            (player1 == null) ? "(null)" : player1.ID.ToString()
        });
        if (this.OnOwnershipTransferedEvent != null)
        {
            VRCWorker.DispatchToMain(delegate
            {
                this.OnOwnershipTransferedEvent(view.gameObject, VRC.Network.GetPlayer(player1), VRC.Network.GetPlayer(player2));
            });
        }
    }
示例#2
0
 // Token: 0x060052BF RID: 21183 RVA: 0x001C6283 File Offset: 0x001C4683
 public void OnJoinedRoom()
 {
     Debug.Log("<color=grey>OnJoinedRoom</color>");
     if (this.OnJoinedRoomEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnJoinedRoomEvent();
         });
     }
 }
示例#3
0
 // Token: 0x060052BE RID: 21182 RVA: 0x001C625B File Offset: 0x001C465B
 public void OnReceivedRoomListUpdate()
 {
     Debug.Log("<color=grey>OnReceivedRoomListUpdate</color>");
     if (this.OnReceivedRoomListUpdateEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnReceivedRoomListUpdateEvent();
         });
     }
 }
示例#4
0
 // Token: 0x060052BD RID: 21181 RVA: 0x001C6214 File Offset: 0x001C4614
 public void OnPhotonInstantiate(PhotonMessageInfo info)
 {
     Debug.Log("<color=grey>OnPhotonInstantiate</color>");
     if (this.OnPhotonInstantiateEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonInstantiateEvent(info);
         });
     }
 }
示例#5
0
 // Token: 0x060052BC RID: 21180 RVA: 0x001C61EB File Offset: 0x001C45EB
 public void OnDisconnectedFromPhoton()
 {
     Debug.Log("<color=grey>OnDisconnectedFromPhoton</color>");
     if (this.OnDisconnectedFromPhotonEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnDisconnectedFromPhotonEvent();
         });
     }
 }
示例#6
0
 // Token: 0x060052BB RID: 21179 RVA: 0x001C61A4 File Offset: 0x001C45A4
 public void OnConnectionFail(DisconnectCause cause)
 {
     Debug.Log("<color=grey>OnConnectionFail</color>");
     if (this.OnConnectionFailEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnConnectionFailEvent(cause);
         });
     }
 }
示例#7
0
 // Token: 0x060052BA RID: 21178 RVA: 0x001C615C File Offset: 0x001C455C
 public void OnFailedToConnectToPhoton(DisconnectCause cause)
 {
     Debug.Log("<color=grey>OnFailedToConnectToPhoton</color>");
     if (this.OnFailedToConnectToPhotonEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnFailedToConnectToPhotonEvent(cause);
         });
     }
 }
示例#8
0
 // Token: 0x060052B9 RID: 21177 RVA: 0x001C6133 File Offset: 0x001C4533
 public void OnLeftLobby()
 {
     Debug.Log("<color=grey>OnLeftLobby</color>");
     if (this.OnLeftLobbyEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnLeftLobbyEvent();
         });
     }
 }
示例#9
0
 // Token: 0x060052B4 RID: 21172 RVA: 0x001C600C File Offset: 0x001C440C
 public void OnMasterClientSwitched(PhotonPlayer newMasterClient)
 {
     Debug.Log("<color=grey>OnMasterClientSwitched</color>");
     if (this.OnMasterClientSwitchedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnMasterClientSwitchedEvent(VRC.Network.GetPlayer(newMasterClient));
         });
     }
 }
示例#10
0
 // Token: 0x060052C1 RID: 21185 RVA: 0x001C62F4 File Offset: 0x001C46F4
 public void OnPhotonPlayerDisconnected(PhotonPlayer otherPlayer)
 {
     Debug.Log("<color=grey>OnPhotonPlayerDisconnected</color>");
     if (this.OnPhotonPlayerDisconnectedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonPlayerDisconnectedEvent(otherPlayer);
         });
     }
 }
示例#11
0
 // Token: 0x060052C2 RID: 21186 RVA: 0x001C633C File Offset: 0x001C473C
 public void OnPhotonRandomJoinFailed(object[] codeAndMsg)
 {
     Debug.Log("<color=grey>OnPhotonRandomJoinFailed</color>");
     if (this.OnPhotonRandomJoinFailedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonRandomJoinFailedEvent(codeAndMsg);
         });
     }
 }
示例#12
0
 // Token: 0x060052CB RID: 21195 RVA: 0x001C6563 File Offset: 0x001C4963
 public void OnLobbyStatisticsUpdate()
 {
     Debug.Log("<color=grey>OnLobbyStatisticsUpdate</color>");
     if (this.OnLobbyStatisticsUpdateEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnLobbyStatisticsUpdateEvent();
         });
     }
 }
示例#13
0
 // Token: 0x060052CC RID: 21196 RVA: 0x001C658C File Offset: 0x001C498C
 public void OnPhotonPlayerActivityChanged(PhotonPlayer otherPlayer)
 {
     Debug.Log("<color=grey>OnPhotonPlayerActivityChanged</color>");
     if (this.OnPhotonPlayerActivityChangedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonPlayerActivityChangedEvent(VRC.Network.GetPlayer(otherPlayer));
         });
     }
 }
示例#14
0
 // Token: 0x060052C9 RID: 21193 RVA: 0x001C64D4 File Offset: 0x001C48D4
 public void OnWebRpcResponse(OperationResponse response)
 {
     Debug.Log("<color=grey>OnWebRpcResponse</color>");
     if (this.OnWebRpcResponseEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnWebRpcResponseEvent(response);
         });
     }
 }
示例#15
0
 // Token: 0x060052CA RID: 21194 RVA: 0x001C651C File Offset: 0x001C491C
 public void OnCustomAuthenticationResponse(Dictionary <string, object> data)
 {
     Debug.Log("<color=grey>OnCustomAuthenticationResponse</color>");
     if (this.OnCustomAuthenticationResponseEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnCustomAuthenticationResponseEvent(data);
         });
     }
 }
示例#16
0
 // Token: 0x060052C7 RID: 21191 RVA: 0x001C6463 File Offset: 0x001C4863
 public void OnUpdatedFriendList()
 {
     Debug.Log("<color=grey>OnUpdatedFriendList</color>");
     if (this.OnUpdatedFriendListEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnUpdatedFriendListEvent();
         });
     }
 }
示例#17
0
 // Token: 0x060052C8 RID: 21192 RVA: 0x001C648C File Offset: 0x001C488C
 public void OnCustomAuthenticationFailed(string debugMessage)
 {
     Debug.Log("<color=grey>OnCustomAuthenticationFailed</color>");
     if (this.OnCustomAuthenticationFailedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnCustomAuthenticationFailedEvent(debugMessage);
         });
     }
 }
示例#18
0
 // Token: 0x060052C6 RID: 21190 RVA: 0x001C641C File Offset: 0x001C481C
 public void OnPhotonPlayerPropertiesChanged(object[] playerAndUpdatedProps)
 {
     Debug.Log("<color=grey>OnPhotonPlayerPropertiesChanged</color>");
     if (this.OnPhotonPlayerPropertiesChangedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonPlayerPropertiesChangedEvent(playerAndUpdatedProps);
         });
     }
 }
示例#19
0
 // Token: 0x060052C5 RID: 21189 RVA: 0x001C63D4 File Offset: 0x001C47D4
 public void OnPhotonCustomRoomPropertiesChanged(Hashtable propertiesThatChanged)
 {
     Debug.Log("<color=grey>OnPhotonCustomRoomPropertiesChanged</color>");
     if (this.OnPhotonCustomRoomPropertiesChangedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonCustomRoomPropertiesChangedEvent(propertiesThatChanged);
         });
     }
 }
示例#20
0
 // Token: 0x060052C4 RID: 21188 RVA: 0x001C63AB File Offset: 0x001C47AB
 public void OnPhotonMaxCccuReached()
 {
     Debug.Log("<color=grey>OnPhotonMaxCccuReached</color>");
     if (this.OnPhotonMaxCccuReachedEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPhotonMaxCccuReachedEvent();
         });
     }
 }
示例#21
0
 // Token: 0x060052C3 RID: 21187 RVA: 0x001C6383 File Offset: 0x001C4783
 public void OnConnectedToMaster()
 {
     Debug.Log("<color=grey>OnConnectedToMaster</color>");
     if (this.OnConnectedToMasterEvent != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnConnectedToMasterEvent();
         });
     }
 }
示例#22
0
 // Token: 0x060052B1 RID: 21169 RVA: 0x001C5F50 File Offset: 0x001C4350
 public void OnVRCPlayerLeft(Player player)
 {
     Debug.LogFormat("<color=grey>OnPlayerLeft {0}</color>", new object[]
     {
         player.name
     });
     if (this.OnPlayerLeftEvent != null && player != null)
     {
         VRCWorker.DispatchToMain(delegate
         {
             this.OnPlayerLeftEvent.Invoke(player);
         });
     }
 }
示例#23
0
    // Token: 0x060052AF RID: 21167 RVA: 0x001C5E64 File Offset: 0x001C4264
    public void OnOwnershipRequest(object[] viewAndPlayer)
    {
        PhotonView   photonView   = viewAndPlayer[0] as PhotonView;
        PhotonPlayer photonPlayer = viewAndPlayer[1] as PhotonPlayer;

        if (photonView == null || photonPlayer == null)
        {
            return;
        }
        VRC.Network.SetOwner(VRC.Network.GetPlayer(photonPlayer), photonView.gameObject, VRC.Network.OwnershipModificationType.Request, true);
        if (this.OnOwnershipRequestEvent != null)
        {
            VRCWorker.DispatchToMain(delegate
            {
                this.OnOwnershipRequestEvent(viewAndPlayer);
            });
        }
    }