Update README
This commit is contained in:
parent
a6cbbc9170
commit
116b3841df
|
|
@ -1,7 +1,7 @@
|
||||||
# Fireblade ECS (Entity-Component-System)
|
# Fireblade ECS (Entity-Component-System)
|
||||||
[](https://travis-ci.com/fireblade-engine/ecs)
|
[](https://travis-ci.com/fireblade-engine/ecs)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](#)
|
[](https://swift.org/download)
|
||||||
[](#)
|
[](#)
|
||||||
[](#)
|
[](#)
|
||||||
|
|
||||||
|
|
@ -33,7 +33,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.9.1")
|
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.10.0")
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
|
|
@ -208,8 +208,8 @@ nexus.family(requires: Position.self)
|
||||||
.forEach { (parent: Position, child: Position) in
|
.forEach { (parent: Position, child: Position) in
|
||||||
// parent: the current parent component
|
// parent: the current parent component
|
||||||
// child: the current child component
|
// child: the current child component
|
||||||
|
|
||||||
// update you components hierarchically
|
// update your components hierarchically
|
||||||
child.x += parent.x
|
child.x += parent.x
|
||||||
child.y += parent.y
|
child.y += parent.y
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue