-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .Ctx() functions to support managed types, update app init cal…
…lback signature
- Loading branch information
1 parent
0a7ff9c
commit ab5d078
Showing
87 changed files
with
3,205 additions
and
559 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Flecs.NET.Core; | ||
using Xunit; | ||
|
||
namespace Flecs.NET.Tests.CSharp.Core; | ||
|
||
public class MiscTests | ||
{ | ||
[Fact] | ||
private void AppInit() | ||
{ | ||
using World world = World.Create(); | ||
|
||
world.System() | ||
.Each(static (Iter it, int _) => | ||
{ | ||
Assert.Equal("TestString", it.World().Get<string>()); | ||
}); | ||
|
||
world.App() | ||
.Init(static (World world) => | ||
{ | ||
world.Set("TestString"); | ||
}) | ||
.Frames(1) | ||
.Run(); | ||
} | ||
} |
Oops, something went wrong.