public static HWGR GetHWGRByID(long id) { HWGR h = null; Instance.m_diction.TryGetValue(id, out h); return(h); }
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); }
private string GetHwgrName(long hwgrid) { HWGR h = null; if (m_diction.TryGetValue(hwgrid, out h)) { return(h.Name); } else { return(String.Empty); } }
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); }