public SceneSettings() { var lights = new Lights { Light0 = new Light { Ambient = new Vector3(0.3f, 0.3f, 0.3f), Direction = Vector3.Normalize(new Vector3(-0.3f, 0.2f, -0.8f)), Color = new Vector3(0.7f, 0.7f, 0.8f) } }; LightingConfigurations = new Dictionary <TimeOfDay, LightSettings> { { TimeOfDay.Morning, new LightSettings { TerrainLights = lights, ObjectLights = lights } } }; TimeOfDay = TimeOfDay.Morning; Waypoints = new WaypointCollection(new Waypoint[0]); WaypointPaths = new Dictionary <string, WaypointPath>(); }
public WaypointPathCollection(WaypointCollection waypoints, Data.Map.WaypointPath[] paths) : this() { foreach (var waypointPath in paths) { var start = waypoints[waypointPath.StartWaypointID]; var end = waypoints[waypointPath.EndWaypointID]; var path = new WaypointPath(start, end); foreach (var label in path.Start.PathLabels) { _waypointPathsByLabel[label] = path; } _waypointPathsByFirstNode[path.Start] = path; } }