Skip to content

Commit

Permalink
Fix typos in Edges folders (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanCheeseBurrito authored Nov 7, 2023
1 parent f4da5f0 commit 6cadb17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Arch/Core/Edges/Archetype.Edges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial class Archetype
/// <param name="index">The index.</param>
/// <param name="archetype">The <see cref="Archetype"/>.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void AddAddEdgde(int index, Archetype archetype)
internal void AddAddEdge(int index, Archetype archetype)
{
_addEdges.Add(index, archetype);
}
Expand All @@ -43,7 +43,7 @@ internal void AddAddEdgde(int index, Archetype archetype)
/// <param name="index">The index.</param>
/// <param name="archetype">The <see cref="Archetype"/>.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void AddRemoveEdgde(int index, Archetype archetype)
internal void AddRemoveEdge(int index, Archetype archetype)
{
_removeEdges.Add(index, archetype);
}
Expand All @@ -54,7 +54,7 @@ internal void AddRemoveEdgde(int index, Archetype archetype)
/// <param name="index">The index.</param>
/// <returns>True or false.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal bool HasAddEdgde(int index)
internal bool HasAddEdge(int index)
{
return _addEdges.ContainsKey(index);
}
Expand All @@ -65,7 +65,7 @@ internal bool HasAddEdgde(int index)
/// <param name="index">The index.</param>
/// <returns>True or false.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal bool HasRemoveEdgde(int index)
internal bool HasRemoveEdge(int index)
{
return _removeEdges.ContainsKey(index);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Arch/Core/Edges/World.Edges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ private Archetype GetOrCreateArchetypeByAddEdge(in ComponentType type, Archetype
Archetype archetype;
var edgeIndex = type.Id - 1;

if (!oldArchetype.HasAddEdgde(edgeIndex))
if (!oldArchetype.HasAddEdge(edgeIndex))
{
archetype = GetOrCreate(oldArchetype.Types.Add(type));
oldArchetype.AddAddEdgde(edgeIndex, archetype);
oldArchetype.AddAddEdge(edgeIndex, archetype);
}
else
{
Expand All @@ -45,10 +45,10 @@ private Archetype GetOrCreateArchetypeByRemoveEdge(in ComponentType type, Archet
Archetype archetype;
var edgeIndex = type.Id - 1;

if (!oldArchetype.HasRemoveEdgde(edgeIndex))
if (!oldArchetype.HasRemoveEdge(edgeIndex))
{
archetype = GetOrCreate(oldArchetype.Types.Remove(type));
oldArchetype.AddRemoveEdgde(edgeIndex, archetype);
oldArchetype.AddRemoveEdge(edgeIndex, archetype);
}
else
{
Expand Down

0 comments on commit 6cadb17

Please sign in to comment.