Frent 0.2.2-alpha

This is a prerelease version of Frent.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Frent --version 0.2.2-alpha
                    
NuGet\Install-Package Frent -Version 0.2.2-alpha
                    
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="Frent" Version="0.2.2-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Frent" Version="0.2.2-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Frent" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Frent --version 0.2.2-alpha
                    
#r "nuget: Frent, 0.2.2-alpha"
                    
#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.
#:package Frent@0.2.2-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Frent&version=0.2.2-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Frent&version=0.2.2-alpha&prerelease
                    
Install as a Cake Tool

Frent

A high preformance archetyped based ECS/ECF library for C#. Zero unsafe code and optimized to be just as fast.

Whaaaat?! Isn't there enough ECS libraries out there!

While Frent at its core is an archetype based ECS library, thats not why Frent was made. Frent is also an ECF - Entity Component Framework - that allows you to easily use composition for code reuse rather than inheritance with minimal boilerplate. Think Unity's Monobehavior but powered by the principles and speed of an ECS.

Frent is still in alpha, with an incomplete feature set. The api is unstable and there may be bugs!

Quick Example

using Frent;
using Frent.Components;
using System.Numerics;

using World world = new World();
Entity entity = world.Create<Position, Velocity>(new(Vector2.Zero), new(Vector2.One));

//Call Update to run the update functions of your components
world.Update();

//Alternatively, run a system by providing a delegate or a struct
world.Query((ref Position pos, ref Velocity vel) => pos.Value += vel.Delta);

// Position is <2,2>
Console.WriteLine(entity.Get<Position>().Value);

record struct Position(Vector2 Value);
record struct Velocity(Vector2 Delta) : IUpdateComponent<Position>
{
    public void Update(ref Position position) => position.Value += Delta;
}

Wanna start cooking? Check out the Cookbook!

Features

Implemented

  • Entity struct the size of a 64 bits
  • Up to 16 components per entity
  • Getting, Adding, and Removing components
  • Zero unsafe code
  • Classes as components
  • Structs as components
  • Deconstructing entities
  • Component memory stored contiguously (when using structs)
  • All entity functions are O(1) and highly optimised
  • Pass in uniform data e.g., deltaTime
  • Deconstructing entities
  • Zero reflection
  • AOT Compatible
  • Built in Uniform Provider implementation
  • Programmical Entity Creation

Future

  • Multithreading
  • Entity relationships
  • Tests
  • Entity Tag
Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Frent:

Package Downloads
Waddle

A simple data-driven game engine built on .NET.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Frent:

Repository Stars
Doraku/Ecs.CSharp.Benchmark
Benchmarks of some C# ECS frameworks.
Version Downloads Last Updated
0.6.1-beta 143 11/6/2025
0.6.0-beta 81 10/19/2025
0.5.9-beta 150 10/9/2025
0.5.8-beta 128 10/8/2025
0.5.7-beta 110 8/23/2025
0.5.6.5-beta 106 8/17/2025
0.5.6.4-beta 213 8/5/2025
0.5.6.3-beta 371 7/7/2025
0.5.6.2-beta 90 6/28/2025
0.5.6.1-beta 72 6/20/2025
0.5.6-beta 131 6/19/2025
0.5.5.1-beta 284 4/14/2025
0.5.5-beta 187 4/14/2025
0.5.4.3-beta 1,351 3/25/2025
0.5.4.2-beta 468 3/24/2025
0.5.4.1-beta 462 3/24/2025
0.5.4-beta 274 3/23/2025
0.5.3.1-beta 269 3/19/2025
0.5.3-beta 148 3/19/2025
0.5.2-beta 186 3/14/2025
0.5.1-beta 155 3/9/2025
0.5.0-beta 124 3/9/2025
0.4.2.1-beta 211 3/3/2025
0.4.2-beta 199 3/3/2025
0.4.1.2-beta 107 3/2/2025
0.4.1.1-beta 99 3/1/2025
0.4.1-beta 128 2/24/2025 0.4.1-beta is deprecated because it has critical bugs.
0.4.0-beta 326 2/17/2025 0.4.0-beta is deprecated because it has critical bugs.
0.3.3.3-beta 94 2/3/2025
0.3.3.2-beta 96 1/31/2025
0.3.3.1-beta 81 1/30/2025
0.3.3-beta 80 1/30/2025
0.3.2-beta 92 1/20/2025
0.3.1-beta 100 1/20/2025
0.3.0-beta 84 1/20/2025
0.2.3-alpha 88 1/5/2025
0.2.2-alpha 92 1/5/2025
0.2.1-alpha 84 1/5/2025
0.2.0-alpha 95 1/4/2025
0.1.4-alpha 104 1/4/2025
0.1.3-alpha 103 1/4/2025
0.1.2-alpha 98 1/1/2025
0.1.1-alpha 96 1/1/2025
0.1.0-alpha 105 12/31/2024