3.2.1 • Published 4 months ago

com.elestrago.unity.entitas-redux v3.2.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 months ago

JCMG Entitas Redux

NPM package License: MIT

Installing

Using the native Unity Package Manager introduced in 2017.2, you can add this library as a package by modifying your manifest.json file found at /ProjectName/Packages/manifest.json to include it as a dependency. See the example below on how to reference it.

Install via NPM

The package is available on the npmjs registry.

Add registry scope

{
  "dependencies": {
    "com.elestrago.unity.entitas-redux": "x.x.x"
  },
  "scopedRegistries": [
    {
      "name": "eLeSTRaGo",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.elestrago.unity"
      ]
    }
  ]
}

Entitas Redux

About

This version of Entitas Redux is a reworked version of EntitasRedux with a sole focus on Unity.

Requirements

  • Min Unity Version: 2022.3

Installing Entitas Redux and Getting Started

Context creation

To create your first Context in assembly, you need to declare it using attribute.

Example:

using JCMG.EntitasRedux;

public sealed partial class MyFirstAttribute : ContextAttribute
{
}

After code analysis detects your attribute, it's automatically generating all implementations for Context and Entity classes.

Component creation

Analyzer detects components by name of a class or base type it must end with Component and have one or greater attributes

Simple component

Examples:

using JCMG.EntitasRedux;

[MyFirst]
public class MyFirstComponent : IComponent
{
}

[MyFirst]
public class MySecond : IComponent
{
}

Inherited component

Examples:

using JCMG.EntitasRedux;

[MyFirst]
public class InheritedComponent : MyFirstComponent
{
}
3.2.1

4 months ago

3.2.0

5 months ago

3.1.4

5 months ago

3.1.3

5 months ago

3.1.2

5 months ago

3.1.1

6 months ago

3.1.0

6 months ago

3.0.13

6 months ago