18
18
19
19
using Flecs .NET .Core ;
20
20
21
- using World ecs = World .Create ();
21
+ using World world = World .Create ();
22
22
23
- Entity entity = ecs .Entity ()
23
+ Entity entity = world .Entity ()
24
24
.Set (new Position (10 , 20 ))
25
25
.Set (new Velocity (1 , 2 ));
26
26
27
- ecs .Each ((ref Position p , ref Velocity v ) =>
27
+ world .Each (static (ref Position p , ref Velocity v ) =>
28
28
{
29
29
p .X += v .X ;
30
30
p .Y += v .Y ;
@@ -36,7 +36,7 @@ public record struct Velocity(float X, float Y);
36
36
37
37
## Overview
38
38
** Flecs.NET - High-level C# port of the C++ wrapper**
39
- - Modern .NET 8
39
+ - Modern .NET 9
40
40
- Near feature parity with the C++ API
41
41
- Struct-based API with minimal GC interaction
42
42
- 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
75
75
<Project Sdk =" Microsoft.NET.Sdk" >
76
76
<PropertyGroup >
77
77
<OutputType >Exe</OutputType >
78
- <TargetFramework >net8 .0</TargetFramework >
78
+ <TargetFramework >net9 .0</TargetFramework >
79
79
</PropertyGroup >
80
80
81
81
<ItemGroup >
@@ -119,7 +119,7 @@ dotnet add PROJECT package Flecs.NET.Release --version *-build.*
119
119
<Project Sdk =" Microsoft.NET.Sdk" >
120
120
<PropertyGroup >
121
121
<OutputType >Exe</OutputType >
122
- <TargetFramework >net8 .0</TargetFramework >
122
+ <TargetFramework >net9 .0</TargetFramework >
123
123
</PropertyGroup >
124
124
125
125
<ItemGroup >
@@ -178,7 +178,7 @@ Reference the project and import the native libraries. You should now be able to
178
178
<Project Sdk =" Microsoft.NET.Sdk" >
179
179
<PropertyGroup >
180
180
<OutputType >Exe</OutputType >
181
- <TargetFramework >net8 .0</TargetFramework >
181
+ <TargetFramework >net9 .0</TargetFramework >
182
182
</PropertyGroup >
183
183
184
184
<ItemGroup >
0 commit comments