Update README.md
This commit is contained in:
parent
d6c8a67f21
commit
ad6deab984
|
|
@ -84,7 +84,7 @@ Create a family by calling `.family` with a set of traits on the nexus.
|
||||||
A family that containts only entities with a `Movement` and `PlayerInput` component, but no `Texture` component is created by
|
A family that containts only entities with a `Movement` and `PlayerInput` component, but no `Texture` component is created by
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
let family = nexus.family(requiresAll: [Movement.self, PlayerInput.self], excludesAll: [Texture.self], any: [Name.self])
|
let family = nexus.family(requiresAll: [Movement.self, PlayerInput.self], excludesAll: [Texture.self], any: [Name.self])
|
||||||
```
|
```
|
||||||
|
|
||||||
These entities are cached in the nexus for efficient access and iteration.
|
These entities are cached in the nexus for efficient access and iteration.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue