public bool AddUiMapPhaseId(uint uiMapPhaseId, int references = 1) { if (UiMapPhaseIds.ContainsKey(uiMapPhaseId)) { return(false); } UiMapPhaseIds.Add(uiMapPhaseId, new UiMapPhaseIdRef(references)); return(true); }
public bool RemoveUiMapPhaseId(uint uiWorldMapAreaId) { if (UiMapPhaseIds.ContainsKey(uiWorldMapAreaId)) { var value = UiMapPhaseIds[uiWorldMapAreaId]; if ((--value.References) == 0) { UiMapPhaseIds.Remove(uiWorldMapAreaId); return(true); } } return(false); }
public bool HasUiWorldMapAreaIdSwap(uint uiWorldMapAreaId) { return(UiMapPhaseIds.ContainsKey(uiWorldMapAreaId)); }