public void Clear() { ClearPhases(); PersonalGuid.Clear(); VisibleMapIds.Clear(); UiWorldMapAreaIdSwaps.Clear(); }
public void Clear() { ClearPhases(); PersonalGuid.Clear(); VisibleMapIds.Clear(); UiMapPhaseIds.Clear(); }
public bool AddVisibleMapId(uint visibleMapId, TerrainSwapInfo visibleMapInfo, int references = 1) { if (VisibleMapIds.ContainsKey(visibleMapId)) { return(false); } VisibleMapIds.Add(visibleMapId, new VisibleMapIdRef(references, visibleMapInfo)); return(true); }
public bool RemoveVisibleMapId(uint visibleMapId) { if (VisibleMapIds.ContainsKey(visibleMapId)) { var mapIdRef = VisibleMapIds[visibleMapId]; if ((--mapIdRef.References) == 0) { VisibleMapIds.Remove(visibleMapId); return(true); } } return(false); }
public bool HasVisibleMapId(uint visibleMapId) { return(VisibleMapIds.ContainsKey(visibleMapId)); }
public void Clear() { ClearPhases(); VisibleMapIds.Clear(); UiMapPhaseIds.Clear(); }
public bool AddVisibleMapId(uint visibleMapId, TerrainSwapInfo visibleMapInfo, int references = 1) { VisibleMapIds.Add(visibleMapId, new VisibleMapIdRef(references, visibleMapInfo)); return(true); //Tryadd? maybe Concurrent }