1818
1919using Flecs .NET .Core ;
2020
21- using World ecs = World .Create ();
21+ using World world = World .Create ();
2222
23- Entity entity = ecs .Entity ()
23+ Entity entity = world .Entity ()
2424 .Set (new Position (10 , 20 ))
2525 .Set (new Velocity (1 , 2 ));
2626
27- ecs .Each ((ref Position p , ref Velocity v ) =>
27+ world .Each (static (ref Position p , ref Velocity v ) =>
2828{
2929 p .X += v .X ;
3030 p .Y += v .Y ;
@@ -36,7 +36,7 @@ public record struct Velocity(float X, float Y);
3636
3737## Overview
3838** Flecs.NET - High-level C# port of the C++ wrapper**
39- - Modern .NET 8
39+ - Modern .NET 9
4040- Near feature parity with the C++ API
4141- Struct-based API with minimal GC interaction
4242- Supports both unmanaged and managed types as components
@@ -75,7 +75,7 @@ To include both of them in your project based on your build configuration, use t
7575<Project Sdk =" Microsoft.NET.Sdk" >
7676 <PropertyGroup >
7777 <OutputType >Exe</OutputType >
78- <TargetFramework >net8 .0</TargetFramework >
78+ <TargetFramework >net9 .0</TargetFramework >
7979 </PropertyGroup >
8080
8181 <ItemGroup >
@@ -119,7 +119,7 @@ dotnet add PROJECT package Flecs.NET.Release --version *-build.*
119119<Project Sdk =" Microsoft.NET.Sdk" >
120120 <PropertyGroup >
121121 <OutputType >Exe</OutputType >
122- <TargetFramework >net8 .0</TargetFramework >
122+ <TargetFramework >net9 .0</TargetFramework >
123123 </PropertyGroup >
124124
125125 <ItemGroup >
@@ -178,7 +178,7 @@ Reference the project and import the native libraries. You should now be able to
178178<Project Sdk =" Microsoft.NET.Sdk" >
179179 <PropertyGroup >
180180 <OutputType >Exe</OutputType >
181- <TargetFramework >net8 .0</TargetFramework >
181+ <TargetFramework >net9 .0</TargetFramework >
182182 </PropertyGroup >
183183
184184 <ItemGroup >
0 commit comments