Пример #1
0
        /// <summary>
        /// Find the networkview based on a viewID
        /// </summary>
        /// <param name="viewID"></param>
        /// <returns></returns>
        public static NetworkView Find(NetworkViewId viewID)
        {
            NetworkView view;

            Find(viewID.guid, out view);
            return(view);
        }
Пример #2
0
        /// <summary>
        /// find a networkview via a networkviewid serialize to the message
        /// </summary>
        /// <param name="message">read location is advanced</param>
        /// <param name="view"></param>
        /// <returns></returns>
        public static bool Find(ref NetIncomingMessage message, out NetworkView view)
        {
            var id = NetworkViewId.Deserialize(message);

            return(Find(id, out view));
        }
Пример #3
0
 /// <summary>
 /// Find the networkview based on a viewID
 /// </summary>
 /// <param name="viewID"></param>
 /// <returns></returns>
 public static NetworkView Find(NetworkViewId viewID)
 {
     return views[viewID.guid];
 }
Пример #4
0
 /// <summary>
 /// Find the networkview based on a viewID
 /// </summary>
 /// <param name="viewID"></param>
 /// <returns></returns>
 public static NetworkView Find(NetworkViewId viewID)
 {
     NetworkView view;
     Find(viewID.guid, out view);
     return view;
 }