Skip to content

Commit

Permalink
Fix code conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Nov 2, 2024
1 parent b49171d commit 095e86a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion zzre.core/math/Frustum.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;

namespace zzre;
Expand Down
13 changes: 5 additions & 8 deletions zzre/tools/sceneeditor/SceneEditor.Waypoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using DefaultEcs.System;
using Silk.NET.Core.Native;
using Veldrid;
using zzio;
using zzio.scn;
using zzre.debug;
using zzre.imgui;
using zzre.materials;
using zzre.rendering;
Expand Down Expand Up @@ -39,15 +36,15 @@ private enum EdgeVisibility

private readonly DebugLineRenderer lineRenderer;
private readonly SceneEditor editor;
private readonly Dictionary<(int, int), bool> walkableLinks = new(), jumpableLinks = new();
private readonly Dictionary<uint, int> idToIndex = new();
private readonly Dictionary<uint, (IColor full, IColor half)> groupColors = new();
private readonly Dictionary<(int, int), bool> walkableLinks = [], jumpableLinks = [];
private readonly Dictionary<uint, int> idToIndex = [];
private readonly Dictionary<uint, (IColor full, IColor half)> groupColors = [];

private Range rangePoints, rangeTraversableEdges;
private bool
showPoints = true,
showTraversableEdges = true,
colorGroups = false,
colorGroups,
hasPrecomputedVisibility;
private EdgeVisibility edgeVisibility = EdgeVisibility.Traversable; // for selected waypoints
private Selection selection = Selection.None;
Expand Down Expand Up @@ -226,7 +223,7 @@ private void UpdateSelectedWaypointEdges()
: edgeVisibility is EdgeVisibility.Traversable ? waypoint.Value.WalkableIds.Concat(waypoint.Value.JumpableIds)
: edgeVisibility is EdgeVisibility.Visibility ? waypoint.Value.VisibleIds
: null)
?? Enumerable.Empty<uint>();
?? [];
for (int i = 0; i < wpSystem.Waypoints.Length; i++)
{
if (i == selectedWaypoint)
Expand Down

0 comments on commit 095e86a

Please sign in to comment.