Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
- .github/workflows/documentation.yml
- Sources/FirebladeECS/**.swift
workflow_dispatch:
branches: [ master ]
paths:
- .github/workflows/documentation.yml
- Sources/FirebladeECS/**.swift

jobs:
build:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Check markdown links

on: push
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
markdown-link-check:
Expand Down
2 changes: 1 addition & 1 deletion Sources/FirebladeECS/Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// **Component**
///
/// A component represents the raw data for one aspect of an entity.
public protocol Component: AnyObject {
public protocol Component {
/// Unique, immutable identifier of this component type.
static var identifier: ComponentIdentifier { get }

Expand Down
2 changes: 1 addition & 1 deletion Sources/FirebladeECS/Entity+Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension Entity {
self.remove(Comp.self)
return
}
if self.get(component: componentType) === newComponent {
if self.get(component: componentType) != nil {
return
}
self.assign(newComponent)
Expand Down
Loading