Skip to content

Commit 6f6e745

Browse files
committed
Fixed spelling.
1 parent 1e07732 commit 6f6e745

File tree

12 files changed

+44
-51
lines changed

12 files changed

+44
-51
lines changed

src/Arch.Samples/Arch.Samples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Nullable>enable</Nullable>
88
<OutputType>Exe</OutputType>
99
<Configurations>Debug;Release;Release-Pure;Release-PureECS;Release-Events;Debug-PureECS;Debug-Events</Configurations>
10-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
10+
<TargetFrameworks>net8.0</TargetFrameworks>
1111
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>-->
1212
</PropertyGroup>
1313

src/Arch.Tests/Arch.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<Configurations>Debug;Release;Release-Pure;Release-PureECS;Release-Events;Debug-PureECS;Debug-Events</Configurations>
1010
<LangVersion>12</LangVersion>
11-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
11+
<TargetFrameworks>net8.0</TargetFrameworks>
1212
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>-->
1313
</PropertyGroup>
1414

src/Arch/Arch.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<GenerateDocumentationFile>true</GenerateDocumentationFile>
55
<LangVersion>latest</LangVersion>
6-
<TargetFrameworks>net8.0; net7.0; net6.0; netstandard2.1</TargetFrameworks>
6+
<TargetFrameworks>net8.0; net6.0; netstandard2.1</TargetFrameworks>
77

88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
@@ -39,7 +39,7 @@ Merged arrays in EntityInfo for increased performance when creating and destroyi
3939
<RepositoryType>git</RepositoryType>
4040
<IsPackable>true</IsPackable>
4141

42-
<LangVersion>12</LangVersion>
42+
<LangVersion>13</LangVersion>
4343
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4444
<Copyright>Apache2.0</Copyright>
4545

src/Arch/Buffer/SparseSet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void Add(int index)
113113
/// Checks if an component exists at the index.
114114
/// </summary>
115115
/// <param name="index">The index in the array.</param>
116-
/// <returns>True if an component exists there, otherwhise false.</returns>
116+
/// <returns>True if an component exists there, otherwise false.</returns>
117117

118118
public bool Contains(int index)
119119
{
@@ -357,7 +357,7 @@ public void Set<T>(int index, in T component)
357357
/// Checks if an component exists at the index.
358358
/// </summary>
359359
/// <param name="index">The index in the array.</param>
360-
/// <returns>True if an component exists there, otherwhise false.</returns>
360+
/// <returns>True if an component exists there, otherwise false.</returns>
361361

362362
public bool Contains<T>(int index)
363363
{

src/Arch/Buffer/StructuralSparseSet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void Add(int index)
9191
/// Checks if an component exists at the index.
9292
/// </summary>
9393
/// <param name="index">The index in the array.</param>
94-
/// <returns>True if an component exists there, otherwhise false.</returns>
94+
/// <returns>True if an component exists there, otherwise false.</returns>
9595

9696
public bool Contains(int index)
9797
{
@@ -286,7 +286,7 @@ public void Set<T>(int index)
286286
/// Checks if an component exists at the index.
287287
/// </summary>
288288
/// <param name="index">The index in the array.</param>
289-
/// <returns>True if an component exists there, otherwhise false.</returns>
289+
/// <returns>True if an component exists there, otherwise false.</returns>
290290

291291
public bool Contains<T>(int index)
292292
{

src/Arch/Core/Archetype.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ internal void Set<T>(ref Slot slot, in T? cmp)
562562
/// Checks if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with a specific component.
563563
/// </summary>
564564
/// <typeparam name="T">The component type.</typeparam>
565-
/// <returns>True if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with such a component, otherwhise false.</returns>
565+
/// <returns>True if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with such a component, otherwise false.</returns>
566566
public bool Has<T>()
567567
{
568568
var id = Component<T>.ComponentType.Id;
@@ -673,7 +673,7 @@ internal void Set(ref Slot slot, in object cmp)
673673
/// Checks if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with a specific component.
674674
/// </summary>
675675
/// <param name="type">The <see cref="Type"/>.</param>
676-
/// <returns>True if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with such a component, otherwhise false.</returns>
676+
/// <returns>True if the <see cref="Archetype"/> stores <see cref="Arch.Core.Entity"/>'s with such a component, otherwise false.</returns>
677677

678678
public bool Has(ComponentType type)
679679
{

src/Arch/Core/Entity.cs

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public override int GetHashCode()
9090
/// </summary>
9191
/// <param name="left">The left <see cref="Entity"/>.</param>
9292
/// <param name="right">The right <see cref="Entity"/>.</param>
93-
/// <returns>True if both are equal, otherwhise false.</returns>
93+
/// <returns>True if both are equal, otherwise false.</returns>
9494

9595
public static bool operator ==(Entity left, Entity right)
9696
{
@@ -102,7 +102,7 @@ public override int GetHashCode()
102102
/// </summary>
103103
/// <param name="left">The left <see cref="Entity"/>.</param>
104104
/// <param name="right">The right <see cref="Entity"/>.</param>
105-
/// <returns>True if both are unequal, otherwhise false.</returns>
105+
/// <returns>True if both are unequal, otherwise false.</returns>
106106

107107
public static bool operator !=(Entity left, Entity right)
108108
{
@@ -157,7 +157,6 @@ public Entity()
157157
/// </summary>
158158
/// <param name="id">Its unique id.</param>
159159
/// <param name="worldId">Its <see cref="World"/> id.</param>
160-
161160
internal Entity(int id, int worldId)
162161
{
163162
Id = id;
@@ -169,7 +168,6 @@ internal Entity(int id, int worldId)
169168
/// </summary>
170169
/// <param name="other">The other <see cref="Entity"/>.</param>
171170
/// <returns>True if equal, false if not.</returns>
172-
173171
public bool Equals(Entity other)
174172
{
175173
return Id == other.Id && WorldId == other.WorldId;
@@ -180,7 +178,6 @@ public bool Equals(Entity other)
180178
/// </summary>
181179
/// <param name="obj">The other <see cref="Entity"/> object.</param>
182180
/// <returns>True if equal, false if not.</returns>
183-
184181
public override bool Equals(object? obj)
185182
{
186183
return obj is Entity other && Equals(other);
@@ -192,7 +189,6 @@ public override bool Equals(object? obj)
192189
/// </summary>
193190
/// <param name="other">The other <see cref="Entity"/>.</param>
194191
/// <returns>A int indicating their order.</returns>
195-
196192
public int CompareTo(Entity other)
197193
{
198194
return WorldId != other.WorldId ? WorldId.CompareTo(other.WorldId) : Id.CompareTo(other.Id);
@@ -202,7 +198,6 @@ public int CompareTo(Entity other)
202198
/// Calculates the hash of this <see cref="Entity"/>.
203199
/// </summary>
204200
/// <returns>Its hash.</returns>
205-
206201
public override int GetHashCode()
207202
{
208203
unchecked
@@ -220,20 +215,18 @@ public override int GetHashCode()
220215
/// </summary>
221216
/// <param name="left">The left <see cref="Entity"/>.</param>
222217
/// <param name="right">The right <see cref="Entity"/>.</param>
223-
/// <returns>True if equal, otherwhise false.</returns>
224-
218+
/// <returns>True if equal, otherwise false.</returns>
225219
public static bool operator ==(Entity left, Entity right)
226220
{
227221
return left.Equals(right);
228222
}
229223

230224
/// <summary>
231-
/// Checks the <see cref="Entity"/> for unequality with another one.
225+
/// Checks the <see cref="Entity"/> for inequality with another one.
232226
/// </summary>
233227
/// <param name="left">The left <see cref="Entity"/>.</param>
234228
/// <param name="right">The right <see cref="Entity"/>.</param>
235-
/// <returns>True if unequal, otherwhise false.</returns>
236-
229+
/// <returns>True if unequal, otherwise false.</returns>
237230
public static bool operator !=(Entity left, Entity right)
238231
{
239232
return !left.Equals(right);
@@ -299,7 +292,7 @@ public EntityReference()
299292
/// Checks if the referenced <see cref="Entity"/> is still valid and alife.
300293
/// </summary>
301294
/// <param name="world">The <see cref="Entity"/> <see cref="World"/>..</param>
302-
/// <returns>True if its alive, otherwhise false.</returns>
295+
/// <returns>True if its alive, otherwise false.</returns>
303296

304297
public bool IsAlive(World world)
305298
{
@@ -309,7 +302,7 @@ public bool IsAlive(World world)
309302
/// <summary>
310303
/// Checks if the referenced <see cref="Entity"/> is still valid and alife.
311304
/// </summary>
312-
/// <returns>True if its alive, otherwhise false.</returns>
305+
/// <returns>True if its alive, otherwise false.</returns>
313306

314307
public bool IsAlive()
315308
{
@@ -363,7 +356,7 @@ public override int GetHashCode()
363356
/// </summary>
364357
/// <param name="left">The left <see cref="EntityReference"/>.</param>
365358
/// <param name="right">The right <see cref="EntityReference"/>.</param>
366-
/// <returns>True if equal, otherwhise false.</returns>
359+
/// <returns>True if equal, otherwise false.</returns>
367360

368361
public static bool operator ==(EntityReference left, EntityReference right)
369362
{
@@ -375,7 +368,7 @@ public override int GetHashCode()
375368
/// </summary>
376369
/// <param name="left">The left <see cref="EntityReference"/>.</param>
377370
/// <param name="right">The right <see cref="EntityReference"/>.</param>
378-
/// <returns>True if inequal, otherwhise false.</returns>
371+
/// <returns>True if inequal, otherwise false.</returns>
379372

380373
public static bool operator !=(EntityReference left, EntityReference right)
381374
{

src/Arch/Core/Enumerators.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Enumerator(Span<T> span)
4343
/// <summary>
4444
/// Moves to the next item.
4545
/// </summary>
46-
/// <returns>True if there still items, otherwhise false.</returns>
46+
/// <returns>True if there still items, otherwise false.</returns>
4747

4848
public bool MoveNext()
4949
{
@@ -101,7 +101,7 @@ public QueryArchetypeEnumerator(Span<Archetype> archetypes)
101101
/// <summary>
102102
/// Moves to the next <see cref="Archetype"/>.
103103
/// </summary>
104-
/// <returns>True if theres a next <see cref="Archetype"/>, otherwhise false.</returns>
104+
/// <returns>True if theres a next <see cref="Archetype"/>, otherwise false.</returns>
105105
[SkipLocalsInit]
106106
public bool MoveNext()
107107
{
@@ -185,7 +185,7 @@ public QueryChunkEnumerator(Span<Archetype> archetypes)
185185
{
186186
_archetypeEnumerator = new QueryArchetypeEnumerator(archetypes);
187187

188-
// Make it move once, otherwhise we can not check directly for Current.Size which results in bad behaviour
188+
// Make it move once, otherwise we can not check directly for Current.Size which results in bad behaviour
189189
if (_archetypeEnumerator.MoveNext())
190190
{
191191
_index = _archetypeEnumerator.Current.Count+1;
@@ -195,13 +195,13 @@ public QueryChunkEnumerator(Span<Archetype> archetypes)
195195
/// <summary>
196196
/// Moves to the next <see cref="Chunk"/>.
197197
/// </summary>
198-
/// <returns>True if theres a next <see cref="Chunk"/>, otherwhise false.</returns>
198+
/// <returns>True if theres a next <see cref="Chunk"/>, otherwise false.</returns>
199199
[SkipLocalsInit]
200200
public bool MoveNext()
201201
{
202202
unchecked
203203
{
204-
// Decrease chunk till its zero, skip empty chunks -> otherwhise entity query might fail since it tries to acess that chunk
204+
// Decrease chunk till its zero, skip empty chunks -> otherwise entity query might fail since it tries to acess that chunk
205205
if (--_index >= 0)
206206
{
207207
return true;
@@ -227,7 +227,7 @@ public void Reset()
227227
_index = -1;
228228
_archetypeEnumerator.Reset();
229229

230-
// Make it move once, otherwhise we can not check directly for Current.Size which results in bad behaviour
230+
// Make it move once, otherwise we can not check directly for Current.Size which results in bad behaviour
231231
if (_archetypeEnumerator.MoveNext())
232232
{
233233
_index = _archetypeEnumerator.Current.Count + 1;
@@ -303,7 +303,7 @@ internal ChunkRangeEnumerator(Archetype archetype, int from, int to)
303303
/// <summary>
304304
/// Moves to the next <see cref="Chunk"/>.
305305
/// </summary>
306-
/// <returns>True if theres a next <see cref="Chunk"/>, otherwhise false.</returns>
306+
/// <returns>True if theres a next <see cref="Chunk"/>, otherwise false.</returns>
307307
[SkipLocalsInit]
308308
public bool MoveNext()
309309
{
@@ -384,7 +384,7 @@ public EntityEnumerator(int length)
384384
/// <summary>
385385
/// Moves to the next <see cref="Entity"/>.
386386
/// </summary>
387-
/// <returns>True if theres a next <see cref="Entity"/>, otherwhise false.</returns>
387+
/// <returns>True if theres a next <see cref="Entity"/>, otherwise false.</returns>
388388
public bool MoveNext()
389389
{
390390
return unchecked(--_index >= 0);

src/Arch/Core/Events/World.Events.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ private ref readonly Events<T> GetEvents<T>()
471471

472472
private Events.Events? GetEvents(ComponentType compType)
473473
{
474-
// Try to get the event from the registry, otherwhise return a null ref since there's none
474+
// Try to get the event from the registry, otherwise return a null ref since there's none
475475
// This is thread-safe due to ConcurrentDictionary.
476476
if (!EventTypeRegistry.EventIds.TryGetValue(compType, out var index))
477477
{

src/Arch/Core/Extensions/EntityExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static ComponentType[] GetComponentTypes(this in Entity entity)
7171
/// Checks if the <see cref="Entity"/> is alive in this <see cref="World"/>.
7272
/// </summary>
7373
/// <param name="entity">The <see cref="Entity"/>.</param>
74-
/// <returns>True if it exists and is alive, otherwhise false.</returns>
74+
/// <returns>True if it exists and is alive, otherwise false.</returns>
7575

7676
[Pure]
7777
public static bool IsAlive(this in Entity entity)
@@ -125,7 +125,7 @@ public static void Set<T>(this in Entity entity, in T? component = default)
125125
/// </summary>
126126
/// <typeparam name="T">The component type.</typeparam>
127127
/// <param name="entity">The <see cref="Entity"/>.</param>
128-
/// <returns>True if it has the desired component, otherwhise false.</returns>
128+
/// <returns>True if it has the desired component, otherwise false.</returns>
129129

130130
[Pure]
131131
public static bool Has<T>(this in Entity entity)
@@ -155,7 +155,7 @@ public static ref T Get<T>(this in Entity entity)
155155
/// <typeparam name="T">The component type.</typeparam>
156156
/// <param name="entity">The <see cref="Entity"/>.</param>
157157
/// <param name="component">The found component.</param>
158-
/// <returns>True if it exists, otherwhise false.</returns>
158+
/// <returns>True if it exists, otherwise false.</returns>
159159

160160
[Pure]
161161
public static bool TryGet<T>(this in Entity entity, out T? component)
@@ -254,7 +254,7 @@ public static void SetRange(this in Entity entity, Span<object> components)
254254
/// </summary>
255255
/// <param name="entity">The <see cref="Entity"/>.</param>
256256
/// <param name="type">The component <see cref="ComponentType"/>.</param>
257-
/// <returns>True if it has the desired component, otherwhise false.</returns>
257+
/// <returns>True if it has the desired component, otherwise false.</returns>
258258

259259
[Pure]
260260
public static bool Has(this in Entity entity, ComponentType type)
@@ -268,7 +268,7 @@ public static bool Has(this in Entity entity, ComponentType type)
268268
/// </summary>
269269
/// <param name="entity">The <see cref="Entity"/>.</param>
270270
/// <param name="types">The component <see cref="ComponentType"/>.</param>
271-
/// <returns>True if it has the desired component, otherwhise false.</returns>
271+
/// <returns>True if it has the desired component, otherwise false.</returns>
272272

273273
[Pure]
274274
public static bool HasRange(this in Entity entity, Span<ComponentType> types)
@@ -328,7 +328,7 @@ public static void GetRange(this in Entity entity, Span<ComponentType> types, Sp
328328
/// <param name="entity">The <see cref="Entity"/>.</param>
329329
/// <param name="type">The component <see cref="ComponentType"/>.</param>
330330
/// <param name="component">The found component.</param>
331-
/// <returns>True if it exists, otherwhise false.</returns>
331+
/// <returns>True if it exists, otherwise false.</returns>
332332

333333
[Pure]
334334
public static bool TryGet(this in Entity entity, ComponentType type, out object? component)

0 commit comments

Comments
 (0)