2026-07-25 12:39:32 +02:00
|
|
|
internal import CPlaydate
|
|
|
|
|
|
|
|
|
|
extension Scoreboards {
|
2026-09-18 12:45:39 +02:00
|
|
|
/// One of the game's boards. Copied from `PDBoard`.
|
2026-07-25 12:39:32 +02:00
|
|
|
public struct Board {
|
2026-09-18 12:45:39 +02:00
|
|
|
/// Passed as `boardID` to the other calls.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let boardID: String
|
2026-09-18 12:45:39 +02:00
|
|
|
/// Display name.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let name: String
|
|
|
|
|
|
|
|
|
|
init(_ board: PDBoard) {
|
|
|
|
|
boardID = String(playdateCString: board.boardID) ?? ""
|
|
|
|
|
name = String(playdateCString: board.name) ?? ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|