Arch.LowLevel 1.1.3

dotnet add package Arch.LowLevel --version 1.1.3                
NuGet\Install-Package Arch.LowLevel -Version 1.1.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Arch.LowLevel" Version="1.1.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Arch.LowLevel --version 1.1.3                
#r "nuget: Arch.LowLevel, 1.1.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Arch.LowLevel as a Cake Addin
#addin nuget:?package=Arch.LowLevel&version=1.1.3

// Install Arch.LowLevel as a Cake Tool
#tool nuget:?package=Arch.LowLevel&version=1.1.3                

Arch.Extended

Maintenance Nuget License C#

Extensions for Arch with some useful features like Systems, Source Generator and Utils.

  • 🛠️ Productive > Adds some useful tools and features to the main repository!
  • ☕️ SIMPLE > Works easily, reliably and understandably!
  • 💪 MAINTAINED > It's actively being worked on, maintained, and supported!
  • 🚢 SUPPORT > Supports .NetStandard 2.1, .Net Core 6 and 7 and therefore you may use it with Unity or Godot!

Download the packages and get started today!

dotnet add package Arch.System --version 1.0.5
dotnet add package Arch.System.SourceGenerator --version 1.2.1
dotnet add package Arch.EventBus --version 1.0.2
dotnet add package Arch.LowLevel --version 1.1.3
dotnet add package Arch.Relationships --version 1.0.0
dotnet add package Arch.Persistence --version 1.0.4
dotnet add package Arch.AOT.SourceGenerator --version 1.0.1

Features & Tools

  • ⚙️ Systems > By means of systems, it is now easy to organize, reuse and arrange queries.
  • ✍️ Source Generator > Declarative syntax using attributes and source generator, let your queries write themselves!
  • ✉️ EventBus > A source generated EventBus, send Events with high-performance!
  • 👾 LowLevel > Low-level utils and data structures to get rid of GC pressure!
  • 💑 Relationships > Adds simple relationships between entities to arch!
  • 💾 Persistence > JSON and Binary (de)serialization to persist your Worlds!
  • AOT Source Generator > Helps with AOT compatibility and reduces boilerplate code!

Check the links and the Wiki!

Full code sample

With this package you are able to write and group queries and systems for Arch automatically. And all this with the best possible performance.

The tools can be used independently of each other.

// Components ( ignore the formatting, this saves space )
public struct Position{ float X, Y };
public struct Velocity{ float Dx, Dy };

// BaseSystem provides several useful methods for interacting and structuring systems
public class MovementSystem : BaseSystem<World, float>
{
    public MovementSystem(World world) : base(world) {}
    
    // Generates a query and calls that one automatically on BaseSystem.Update
    [Query]
    public void Move([Data] in float time, ref Position pos, ref Velocity vel)
    {
        pos.X += time * vel.X;
        pos.Y += time * vel.Y;
    }
    
    // Generates and filters a query and calls that one automatically on BaseSystem.Update in order
    [Query]
    [All<Player, Mob>, Any<Idle, Moving>, None<Alive>]  // Attributes also accept non generics :) 
    public void ResetVelocity(ref Velocity vel)
    {
        vel = new Velocity{ X = 0, Y = 0 };
    }
}

public class Game 
{
    public static void Main(string[] args) 
    {     
        var deltaTime = 0.05f; // This is mostly given by engines, frameworks
        
        // Create a world and a group of systems which will be controlled 
        var world = World.Create();
        var _systems = new Group<float>(
            new MovementSystem(world),   // Run in order
            new MyOtherSystem(...),
            ...
        );
      
        _systems.Initialize();                  // Inits all registered systems
        _systems.BeforeUpdate(in deltaTime);    // Calls .BeforeUpdate on all systems ( can be overriden )
        _systems.Update(in deltaTime);          // Calls .Update on all systems ( can be overriden )
        _systems.AfterUpdate(in deltaTime);     // Calls .AfterUpdate on all System ( can be overriden )
        _systems.Dispose();                     // Calls .Dispose on all systems ( can be overriden )
    }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Arch.LowLevel:

Package Downloads
Arch

A high performance c# net.7 and net.8 archetype based ECS ( Entity component system ).

ABEngine.Arch

A high performance c# net.6 and net.7 archetype based ECS ( Entity component system ).

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Arch.LowLevel:

Repository Stars
genaray/Arch
A high-performance C# based Archetype & Chunks Entity Component System (ECS) with optional multithreading.
AnnulusGames/Arch.Unity
Arch ECS integration for Unity.
Version Downloads Last updated
1.1.3 1,983 8/8/2024
1.1.1 863 6/12/2024
1.1.0 14,231 11/20/2023
1.0.9 440 10/18/2023
1.0.8 3,082 10/4/2023
1.0.3 273 8/16/2023
1.0.2 503 3/27/2023
1.0.1 210 3/14/2023
1.0.0 217 3/14/2023

Refactored JaggedArrays.
Increased performance of JaggedArrays.
Added Array, a new class that acts as a Wrapper around normal generic Arrays for unsafe operations.
Added tests.