From 8229254e99420c7a5483c14111f414e345d0a253 Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Tue, 4 Aug 2020 17:26:17 +0200 Subject: [PATCH] Updates --- Makefile | 2 +- .../Generated/Family.generated.swift | 20 +++++++++---------- Sources/FirebladeECS/Stencils/Family.stencil | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 8077b48..5008046 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ lintErrorOnly: @swiftlint lint --quiet | grep error # Git -precommit: lint genLinuxTests +precommit: generateCode lint genLinuxTests submodule: git submodule init diff --git a/Sources/FirebladeECS/Generated/Family.generated.swift b/Sources/FirebladeECS/Generated/Family.generated.swift index a57c990..bc077a2 100644 --- a/Sources/FirebladeECS/Generated/Family.generated.swift +++ b/Sources/FirebladeECS/Generated/Family.generated.swift @@ -64,7 +64,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family(requires: Comp1.self) /// // iterate each entity's components @@ -72,7 +72,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary /// @@ -156,7 +156,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family(requiresAll: Comp1.self, Comp2.self) /// // iterate each entity's components @@ -164,7 +164,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary /// @@ -255,7 +255,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family(requiresAll: Comp1.self, Comp2.self, Comp3.self) /// // iterate each entity's components @@ -263,7 +263,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary /// @@ -361,7 +361,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family(requiresAll: Comp1.self, Comp2.self, Comp3.self, Comp4.self) /// // iterate each entity's components @@ -369,7 +369,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary /// @@ -474,7 +474,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family(requiresAll: Comp1.self, Comp2.self, Comp3.self, Comp4.self, Comp5.self) /// // iterate each entity's components @@ -482,7 +482,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary /// diff --git a/Sources/FirebladeECS/Stencils/Family.stencil b/Sources/FirebladeECS/Stencils/Family.stencil index 2894c37..bfbc17e 100644 --- a/Sources/FirebladeECS/Stencils/Family.stencil +++ b/Sources/FirebladeECS/Stencils/Family.stencil @@ -103,7 +103,7 @@ extension Nexus { /// Families with the same requirements provide a view on the same collection of entities (aka members). /// A family conforms to the `LazySequenceProtocol` and therefore can be accessed like any other (lazy) sequence. /// - /// **General usage:** + /// **General usage** /// ```swift /// let family = nexus.family({% if components.count == 1 %}requires{% else %}requiresAll{%endif%}: {{ CompsSelf }}) /// // iterate each entity's components @@ -111,7 +111,7 @@ extension Nexus { /// ... /// } /// ``` - /// **Note:** + /// **Caveats** /// - Component types must be unique per family /// - Component type order is arbitrary ///