Esempio n. 1
0
        public static HWGR GetHWGRByID(long id)
        {
            HWGR h = null;

            Instance.m_diction.TryGetValue(id, out h);
            return(h);
        }
Esempio n. 2
0
 private WorldToHwgr FillHwgrName(WorldToHwgr entity)
 {
     if (entity != null)
     {
         HWGR related = ClientEnvironment.HWGRService.FindById(entity.HWGR_ID);
         if (related != null)
         {
             entity.HwgrName = related.Name;
         }
     }
     return(entity);
 }
Esempio n. 3
0
        private string GetHwgrName(long hwgrid)
        {
            HWGR h = null;

            if (m_diction.TryGetValue(hwgrid, out h))
            {
                return(h.Name);
            }
            else
            {
                return(String.Empty);
            }
        }
Esempio n. 4
0
        internal static HWGR GetHwgrEntity(WorldToHwgr hwgr)
        {
            HWGR entity = GetHWGRByID(hwgr.HWGR_ID);

            if (entity == null)
            {
                foreach (HWGR var in Instance.m_diction.Values)
                {
                    if (var.ID == hwgr.HWGR_ID)
                    {
                        entity = var;
                        break;
                    }
                }
            }
            return(entity);
        }