Exemple #1
0
 // Token: 0x060008FE RID: 2302 RVA: 0x00043064 File Offset: 0x00041264
 private void HandleRoutedRPC(ZRoutedRpc.RoutedRPCData data)
 {
     if (data.m_targetZDO.IsNone())
     {
         RoutedMethodBase routedMethodBase;
         if (this.m_functions.TryGetValue(data.m_methodHash, out routedMethodBase))
         {
             routedMethodBase.Invoke(data.m_senderPeerID, data.m_parameters);
             return;
         }
     }
     else
     {
         ZDO zdo = ZDOMan.instance.GetZDO(data.m_targetZDO);
         if (zdo != null)
         {
             ZNetView znetView = ZNetScene.instance.FindInstance(zdo);
             if (znetView != null)
             {
                 znetView.HandleRoutedRPC(data);
             }
         }
     }
 }