thelukester92 / swift-engine

An entity-component-system game engine built in the Swift programming language.
MIT License
35 stars 7 forks source link

Add convenience initializer for entities with components #62

Closed thelukester92 closed 10 years ago

thelukester92 commented 10 years ago

Original code:

let entity = LGEntity()
entity.put(
    LGComponent1(),
    LGComponent2()
)

New code:

let entity = LGEntity(
    LGComponent1(),
    LGComponent2()
)