Update README

This commit is contained in:
Christian Treffs 2019-10-01 11:41:35 +02:00
parent a6cbbc9170
commit 116b3841df
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Fireblade ECS (Entity-Component-System) # Fireblade ECS (Entity-Component-System)
[![Build Status](https://travis-ci.com/fireblade-engine/ecs.svg?branch=master)](https://travis-ci.com/fireblade-engine/ecs) [![Build Status](https://travis-ci.com/fireblade-engine/ecs.svg?branch=master)](https://travis-ci.com/fireblade-engine/ecs)
[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE) [![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
[![swift version](https://img.shields.io/badge/swift-5.0+-brightgreen.svg)](#) [![swift version](https://img.shields.io/badge/swift-5.0+-brightgreen.svg)](https://swift.org/download)
[![platforms](https://img.shields.io/badge/platforms-%20macOS%20|%20iOS%20|%20tvOS%20|%20watchOS-brightgreen.svg)](#) [![platforms](https://img.shields.io/badge/platforms-%20macOS%20|%20iOS%20|%20tvOS%20|%20watchOS-brightgreen.svg)](#)
[![platforms](https://img.shields.io/badge/platforms-linux-brightgreen.svg)](#) [![platforms](https://img.shields.io/badge/platforms-linux-brightgreen.svg)](#)
@ -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
} }