Skip to content

Commit

Permalink
Some small changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
genaray committed Aug 13, 2023
1 parent 66344f7 commit e7037c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Arch/Arch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<PackageId>Arch</PackageId>
<Title>Arch</Title>
<Version>1.2.6.1-alpha</Version>
<Version>1.2.6.2-alpha</Version>
<Authors>genaray</Authors>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Description>A high performance c# net.6 and net.7 archetype based ECS ( Entity component system ).</Description>
Expand Down
12 changes: 11 additions & 1 deletion src/Arch/Core/Extensions/Dangerous/DangerousChunkExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Arch.Core.Extensions.Dangerous;
/// The <see cref="DangerousChunkExtensions"/> class
/// contains several <see cref="Chunk"/> related extension methods which give acess to underlaying data structures that should only be modified when you exactly know what you are doing.
/// </summary>
public class DangerousChunkExtensions
public static class DangerousChunkExtensions
{
/// <summary>
/// Creates a new <see cref="Chunk"/>;
Expand All @@ -19,4 +19,14 @@ public static Chunk CreateChunk(int capacity, int[] lookupArray, ComponentType[]
{
return new Chunk(capacity, lookupArray, types);
}

/// <summary>
/// Sets the size of a <see cref="Chunk"/>.
/// </summary>
/// <param name="chunk">The <see cref="Chunk"/>.</param>
/// <param name="size">Its new size.</param>
public static void SetSize(this ref Chunk chunk, int size)
{
chunk.Size = size;
}
}

0 comments on commit e7037c9

Please sign in to comment.