Update sourcery to 2.2.5

This commit is contained in:
Christian Treffs 2024-10-09 16:13:53 +02:00
parent d7415a7684
commit ca434fa1cc
No known key found for this signature in database
GPG Key ID: 49A4B4B460BE3ED4
3 changed files with 27 additions and 29 deletions

View File

@ -1,3 +1,3 @@
realm/SwiftLint@0.57.0
nicklockwood/SwiftFormat@0.54.6
krzysztofzablocki/Sourcery@1.0.0
krzysztofzablocki/Sourcery@2.2.5

View File

@ -1,6 +1,5 @@
// Generated using Sourcery 1.0.0 https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.5 https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
// swiftlint:disable file_length
// swiftlint:disable function_parameter_count
// swiftlint:disable large_tuple
@ -28,7 +27,7 @@ public struct Requires1<Comp1>: FamilyRequirementsManaging where Comp1: Componen
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
return (entity, comp1)
}
@ -40,9 +39,9 @@ public struct Requires1<Comp1>: FamilyRequirementsManaging where Comp1: Componen
extension Requires1: RequiringComponents1 { }
extension FamilyMemberBuilder where R: RequiringComponents1 {
extension FamilyMemberBuilder where R: RequiringComponents1 {
public static func buildBlock(_ comp1: R.Comp1) -> (R.Components) {
(comp1)
return (comp1)
}
}
@ -122,7 +121,7 @@ public struct Requires2<Comp1, Comp2>: FamilyRequirementsManaging where Comp1: C
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
return (entity, comp1, comp2)
@ -135,9 +134,9 @@ public struct Requires2<Comp1, Comp2>: FamilyRequirementsManaging where Comp1: C
extension Requires2: RequiringComponents2 { }
extension FamilyMemberBuilder where R: RequiringComponents2 {
extension FamilyMemberBuilder where R: RequiringComponents2 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2) -> (R.Components) {
(comp1, comp2)
return (comp1, comp2)
}
}
@ -222,7 +221,7 @@ public struct Requires3<Comp1, Comp2, Comp3>: FamilyRequirementsManaging where C
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -236,9 +235,9 @@ public struct Requires3<Comp1, Comp2, Comp3>: FamilyRequirementsManaging where C
extension Requires3: RequiringComponents3 { }
extension FamilyMemberBuilder where R: RequiringComponents3 {
extension FamilyMemberBuilder where R: RequiringComponents3 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3) -> (R.Components) {
(comp1, comp2, comp3)
return (comp1, comp2, comp3)
}
}
@ -328,7 +327,7 @@ public struct Requires4<Comp1, Comp2, Comp3, Comp4>: FamilyRequirementsManaging
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -343,9 +342,9 @@ public struct Requires4<Comp1, Comp2, Comp3, Comp4>: FamilyRequirementsManaging
extension Requires4: RequiringComponents4 { }
extension FamilyMemberBuilder where R: RequiringComponents4 {
extension FamilyMemberBuilder where R: RequiringComponents4 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3, _ comp4: R.Comp4) -> (R.Components) {
(comp1, comp2, comp3, comp4)
return (comp1, comp2, comp3, comp4)
}
}
@ -440,7 +439,7 @@ public struct Requires5<Comp1, Comp2, Comp3, Comp4, Comp5>: FamilyRequirementsMa
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4, Comp5) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -456,9 +455,9 @@ public struct Requires5<Comp1, Comp2, Comp3, Comp4, Comp5>: FamilyRequirementsMa
extension Requires5: RequiringComponents5 { }
extension FamilyMemberBuilder where R: RequiringComponents5 {
extension FamilyMemberBuilder where R: RequiringComponents5 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3, _ comp4: R.Comp4, _ comp5: R.Comp5) -> (R.Components) {
(comp1, comp2, comp3, comp4, comp5)
return (comp1, comp2, comp3, comp4, comp5)
}
}
@ -558,7 +557,7 @@ public struct Requires6<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6>: FamilyRequire
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4, Comp5, Comp6) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -575,9 +574,9 @@ public struct Requires6<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6>: FamilyRequire
extension Requires6: RequiringComponents6 { }
extension FamilyMemberBuilder where R: RequiringComponents6 {
extension FamilyMemberBuilder where R: RequiringComponents6 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3, _ comp4: R.Comp4, _ comp5: R.Comp5, _ comp6: R.Comp6) -> (R.Components) {
(comp1, comp2, comp3, comp4, comp5, comp6)
return (comp1, comp2, comp3, comp4, comp5, comp6)
}
}
@ -682,7 +681,7 @@ public struct Requires7<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7>: Family
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -700,9 +699,9 @@ public struct Requires7<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7>: Family
extension Requires7: RequiringComponents7 { }
extension FamilyMemberBuilder where R: RequiringComponents7 {
extension FamilyMemberBuilder where R: RequiringComponents7 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3, _ comp4: R.Comp4, _ comp5: R.Comp5, _ comp6: R.Comp6, _ comp7: R.Comp7) -> (R.Components) {
(comp1, comp2, comp3, comp4, comp5, comp6, comp7)
return (comp1, comp2, comp3, comp4, comp5, comp6, comp7)
}
}
@ -812,7 +811,7 @@ public struct Requires8<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7, Comp8>:
}
public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7, Comp8) {
let entity = Entity(nexus: nexus, id: entityId)
let entity: Entity = Entity(nexus: nexus, id: entityId)
let comp1: Comp1 = nexus.get(unsafe: entityId)
let comp2: Comp2 = nexus.get(unsafe: entityId)
let comp3: Comp3 = nexus.get(unsafe: entityId)
@ -831,9 +830,9 @@ public struct Requires8<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7, Comp8>:
extension Requires8: RequiringComponents8 { }
extension FamilyMemberBuilder where R: RequiringComponents8 {
extension FamilyMemberBuilder where R: RequiringComponents8 {
public static func buildBlock(_ comp1: R.Comp1, _ comp2: R.Comp2, _ comp3: R.Comp3, _ comp4: R.Comp4, _ comp5: R.Comp5, _ comp6: R.Comp6, _ comp7: R.Comp7, _ comp8: R.Comp8) -> (R.Components) {
(comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8)
return (comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8)
}
}

View File

@ -1,6 +1,5 @@
// Generated using Sourcery 1.0.0 https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.5 https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import FirebladeECS
import XCTest