Skip to content

rapushka/Entitas.Generic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

lightjiao/Entitas.Generic fork (as you can see on your own. _.)
Plus:

Originally inspired by yosadchyi/Entitas.Generic, but with simpler API. Works perfectly with Native Entitas VisualDebug

How to install

  • Just Clone this repo into your project's folder
  • Maybe you'll need some additional setup for your engine:

Unity

❗ I've applied the fix for Entitas.VisualDebug in Unity 2022.2+
❗ So if you wanna use this library with older unity – you need to revert this commit i guess

Godot

  • In the .csproj file add references to the following .dlls:
    • In Rider you can do it by right clicking on your project > Add > Add reference....
    • othervise open the .csproj in a text editor add next lines for each library in <ItemGroup>
      <Reference Include="DLL_NAME">
        <HintPath>path/to/DLL_NAME.dll</HintPath>
      </Reference>
      
      • Entitas/DesperateDevs/DesperateDevs.Caching.dll
      • Entitas/DesperateDevs/DesperateDevs.Extensions.dll
      • Entitas/DesperateDevs/DesperateDevs.Reflection.dll
      • Entitas/DesperateDevs/DesperateDevs.Serialization.dll
      • Entitas/DesperateDevs/DesperateDevs.Threading.dll
      • Entitas/Entitas/Entitas.dll
    • How this should look like
  • More info about Godot-Entitas integration:

Code samples

TODO: wiki
But you can check my other projects, where i used this library by myself!

Use Guide

TODO: wiki

What works?

Unity

Almost all of the original sschmid/Entitas functionality has been implemented (at least what makes sense imho), including:

  • EntityIndex and PrimaryEntityIndex
  • EventAttribute
  • CleanupAttribute
  • UniqueAttribute

Godot

The core is working, but Visual Debugger and other editor things are WIP

Addons

Also i've added some additional stuff, that i needed in the original Entitas, including:

  • EntitytBehaviour and ComponentBehaviour (aka. Blueprints)
  • ComponentID (dropdown to pick desired component in unity as value)

About

fork of lightjiao/Entitas.Generic with my preferences

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C# 100.0%