Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Sources/SGFKit/Collection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class Collection<Game: SGFKit.Game> {
}
}

extension Collection: NodeDelegate {
extension Collection: NodeProtocol {
var number: Int? {
-1
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/SGFKit/Node.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
protocol NodeDelegate<Game>: AnyObject {
protocol NodeProtocol<Game>: AnyObject {
associatedtype Game: SGFKit.Game

var number: Int? { get }
Expand All @@ -20,7 +20,7 @@ public final class Node<Game: SGFKit.Game> {
/// The parent node of this node.
public var parentNode: (Node<Game>)? { parent as? Node<Game> }

weak var parent: (any NodeDelegate<Game>)?
weak var parent: (any NodeProtocol<Game>)?

/// The children of the node.
///
Expand Down Expand Up @@ -101,7 +101,7 @@ public final class Node<Game: SGFKit.Game> {
}
}

extension Node: NodeDelegate {
extension Node: NodeProtocol {
func node(treeStructureDidUpdated index: Int?) {
parent?.node(treeStructureDidUpdated: index)
}
Expand Down