//--------------------------------------------------------------------------- public void Reset(int width, int height) { foreach (KeyValuePair <ELayerMode, MapLayerControl> kvp in m_Layers) { kvp.Value.Init(kvp.Key, width, height); } BlockerContainer.Init(width, height); MapWidth = width; OnPropertyChanged("MapWidth"); OnPropertyChanged("PxWidth"); MapHeight = height; OnPropertyChanged("MapHeight"); OnPropertyChanged("PxHeight"); }
//--------------------------------------------------------------------------- public void Resize(int left, int right, int top, int bottom) { foreach (MapLayerControl layer in m_Layers.Values) { layer.Resize(left, right, top, bottom); } BlockerContainer.Resize(left, right, top, bottom); MapWidth += (left + right); OnPropertyChanged("MapWidth"); OnPropertyChanged("PxWidth"); MapHeight += (top + bottom); OnPropertyChanged("MapHeight"); OnPropertyChanged("PxHeight"); }
//--------------------------------------------------------------------------- public void SetBlocker(int sourceX, int sourceY, bool isBlocker) { BlockerContainer.SetBlocker(sourceX, sourceY, isBlocker); }