internal void SetRouteway(Routeway routeway) { if (this.EditingRouteway != null) { this.EditingRouteway.Selected = false; } this.EditingRouteway = routeway; this.EditingRouteway.Selected = true; }
private void FrameFunction_Architecture_AfterGetShortestRouteway() //粮道最短 { this.CurrentGameObjects = this.mainGameScreen.Plugins.TabListPlugin.SelectedItemList as GameObjectList; if ((this.CurrentGameObjects != null) && (this.CurrentGameObjects.Count > 0)) { foreach (Architecture architecture in this.CurrentGameObjects) { Routeway routeway = this.CurrentArchitecture.BuildShortestRouteway(architecture, false); if (routeway != null) { routeway.Building = true; } } GlobalVariables.CurrentMapLayer = MapLayerKind.Routeway; } }