Update README
This commit is contained in:
parent
f3cfe64b7d
commit
3d98ce9a53
|
|
@ -36,7 +36,7 @@ import PackageDescription
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "YourPackageName",
|
name: "YourPackageName",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.15.3")
|
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.15.4")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
|
|
@ -71,7 +71,7 @@ then create entities by letting the `Nexus` generate them.
|
||||||
let newEntity = nexus.createEntity()
|
let newEntity = nexus.createEntity()
|
||||||
```
|
```
|
||||||
|
|
||||||
To define components conform your class to the `Component` protocol
|
To define components, conform your class to the `Component` protocol
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
final class Position: Component {
|
final class Position: Component {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue