3.0.13 • Published 7 months ago

com.playdarium.unity.entitas-redux v3.0.13

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 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 OpenUPM

The package is available on the npmjs registry.

Add registry scope

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

Add package in PackageManager

Open Window -> Package Manager choose Packages: My Regestries and install package

Install via GIT URL

"com.playdarium.unity.entitas-redux": "https://gitlab.com/pd-packages/entitas-redux.git#upm"

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.0.13

7 months ago

3.0.9

7 months ago

3.0.12

7 months ago

3.0.10

7 months ago

3.0.11

7 months ago

3.0.8

8 months ago

3.0.7

8 months ago

3.0.6

8 months ago

3.0.5

8 months ago

3.0.4

9 months ago

3.0.3

11 months ago

3.0.2

11 months ago

3.0.1

11 months ago

3.0.0

11 months ago

2.4.3

12 months ago

2.4.1

1 year ago

2.4.2

1 year ago

2.4.0

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.2.10

1 year ago

2.3.0

1 year ago

2.2.9

1 year ago