Archived; see: https://github.com/BeanCheeseBurrito/Flecs.NET
Automatically updated C# bindings for https://github.com/SanderMertens/flecs with native dynamic link libraries. Includes the lower-level unsafe C# "binding" which is 100% automatically generated. The higher level safe "wrapper" is still being worked on.
NuGet packages are experimental; please add the NuGet feed https://www.myget.org/F/bottlenoselabs/api/v3/index.json
to access the NuGet packages.
Either install flecs_hub.Flecs
or flecs_hub.Interop.Flecs
along with one the native library packages for your operating system / hardware.
Package name | Description |
---|---|
flecs_hub.Flecs |
High-level, safe, idomatic C# API. |
flecs_hub.Interop.Flecs |
Low-level, unsafe, 1-1 C# bindings. |
flecs_hub.Interop.Flecs.runtime.win-x64 |
Native libraries for Windows x64. |
flecs_hub.Interop.Flecs.runtime.osx |
Native libraries for macOS universal (x64 and arm64). |
flecs_hub.Interop.Flecs.runtime.linux-x64 |
Native libraries for Linux x64. |
git clone --recurse-submodules https://github.com/flecs-hub/flecs-cs
.library.sh
. To execute .sh
scripts on Windows, use Git Bash which can be installed with Git itself: https://git-scm.com/download/win. The library.sh
script requires that CMake is installed and in your path and that C2CS
is installed.src/cs/production/Flecs.Core/Flecs.Core.csproj
C# project to your solution as an existing project and then reference it within your own solution.src/cs/production/Flecs.Unity/Flecs.Unity.csproj
C# project and create the resulting Flecs.Unity.dll
with it's dependencies; follow Unity's documentation for using the compiled C# code as a .dll
: https://docs.unity3d.com/Manual/UsingDLL.For examples in C# (.NET Core, not Unity), see ./src/cs/examples, or open up the solution .sln
file in VisualStudio / Rider.
To learn how to use flecs
directly, check out the https://github.com/SanderMertens/flecs#documentation.
For more information on how C# binding / wrapper work, see C2CS
, the tool that generates the binding / wrapper for flecs
and other C libraries.
flecs-cs
is licensed under the MIT License (MIT
) - see the LICENSE file for details.
flecs
itself is licensed under MIT (MIT
) - see https://github.com/SanderMertens/flecs/blob/master/LICENSE for more details.