Esempio n. 1
0
        public bool AddUiMapPhaseId(uint uiMapPhaseId, int references = 1)
        {
            if (UiMapPhaseIds.ContainsKey(uiMapPhaseId))
            {
                return(false);
            }

            UiMapPhaseIds.Add(uiMapPhaseId, new UiMapPhaseIdRef(references));
            return(true);
        }
Esempio n. 2
0
        public bool RemoveUiMapPhaseId(uint uiWorldMapAreaId)
        {
            if (UiMapPhaseIds.ContainsKey(uiWorldMapAreaId))
            {
                var value = UiMapPhaseIds[uiWorldMapAreaId];
                if ((--value.References) == 0)
                {
                    UiMapPhaseIds.Remove(uiWorldMapAreaId);
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 3
0
 public bool HasUiWorldMapAreaIdSwap(uint uiWorldMapAreaId)
 {
     return(UiMapPhaseIds.ContainsKey(uiWorldMapAreaId));
 }