示例#1
0
        public IGameViewObj GetViewObj(ObjectID view_ident, ObjectID item_ident)
        {
            GameView view = (GameView)mViews.GetObjectByIdent(view_ident);

            if (null == view)
            {
                return(null);
            }

            IGameViewObj obj = view.GetViewObjByIdent(item_ident);

            if (obj == null)
            {
                return(null);
            }
            return(obj);
        }
示例#2
0
 public GameViewObj GetViewObj(ObjectID view_ident, ObjectID item_ident)
 {
     try
     {
         if (view_ident.IsNull() ||
             item_ident.IsNull())
         {
             return(null);
         }
         GameView view = m_client.GetViewByIdent(view_ident);
         if (null == view)
         {
             return(null);
         }
         return((GameViewObj)view.GetViewObjByIdent(item_ident));
     }
     catch (Exception ex)
     {
         Log.TraceExcep(ref ex);
         return(null);
     }
 }
示例#3
0
 public GameViewObj GetViewObj(string view_ident, string item_ident)
 {
     try
     {
         if (view_ident == null ||
             item_ident == null ||
             view_ident.Length == 0 ||
             item_ident.Length == 0)
         {
             return(null);
         }
         GameView view = m_client.GetViewByIdent(view_ident);
         if (null == view)
         {
             return(null);
         }
         return((GameViewObj)view.GetViewObjByIdent(item_ident));
     }
     catch (Exception ex)
     {
         LogSystem.LogError(ex);
         return(null);
     }
 }