Semi-automatically updated C# bindings for https://github.com/SanderMertens/flecs with native dynamic link libraries. The lower-level unsafe C# "bindings" are automatically generated but the higher level "wrapper" is manually written.
- Download and install .NET 6.
- Fork the repository using GitHub or clone the repository manually with submodules:
git clone --recurse-submodules https://github.com/flecs-hub/flecs-cs. - Build the native library by running
library.sh. To execute.shscripts on Windows, use Git Bash which can be installed with Git itself: https://git-scm.com/download/win. Thelibrary.shscript requires that CMake is installed and in your path. - To setup everything you need: Either (1), add the
src/cs/production/Flecs/Flecs.csprojC# project to your solution as an existing project and reference it within your own solution, or (2) import the MSBuildflecs.propsfile which is located in the root of this directory to your.csprojfile. See the flecs.csproj file for how to import theflecs.propsdirectly.
For examples in C#, 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# bindings work, see C2CS, the tool that generates the bindings 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.