public BasicRoadsPathEditor(IUserInterfaceManager uiManager) : base(uiManager) { // Register console commands try { RoadPathEditorCommands.RegisterCommands(); } catch (Exception ex) { Debug.LogError(string.Format("Error Registering Travelmap Console commands: {0}", ex.Message)); } roadsTexturing = (BasicRoadsTexturing)DaggerfallUnity.Instance.TerrainTexturing; pathsData[BasicRoadsTexturing.roads] = roadsTexturing.GetPathData(BasicRoadsTexturing.roads); pathsData[BasicRoadsTexturing.tracks] = roadsTexturing.GetPathData(BasicRoadsTexturing.tracks); if (waterEditing) { showPaths[BasicRoadsTexturing.rivers] = true; showPaths[BasicRoadsTexturing.streams] = true; pathsData[BasicRoadsTexturing.rivers] = roadsTexturing.GetPathData(BasicRoadsTexturing.rivers); pathsData[BasicRoadsTexturing.streams] = roadsTexturing.GetPathData(BasicRoadsTexturing.streams); ReadEditedPathData(BasicRoadsTexturing.rivers, RiverDataFilename); ReadEditedPathData(BasicRoadsTexturing.streams, StreamDataFilename); } else { ReadEditedPathData(BasicRoadsTexturing.roads, RoadDataFilename); ReadEditedPathData(BasicRoadsTexturing.tracks, TrackDataFilename); } }
public BasicRoadsPathEditor(IUserInterfaceManager uiManager) : base(uiManager) { // Register console commands try { RoadPathEditorCommands.RegisterCommands(); } catch (Exception ex) { Debug.LogError(string.Format("Error Registering Travelmap Console commands: {0}", ex.Message)); } roadTexturing = (BasicRoadsTexturing)DaggerfallUnity.Instance.TerrainTexturing; }