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); }
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); } }
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); } }