Skip to content

Commit 8e5101a

Browse files
committed
Codable utility types implemented so far
These are all used from Bestiary; and consistent of Page, Source (otherSources, alternateSources), Edition, Reprint (reprintedAs), Speed, CreatureType, Alignment, Size, and Proficiency (proficiencyLevel). Also add Tag, which is a common type-like used in Bestiary but didn't get its own $defs. Trying to make the resulting types as ergonmically Swift-like as possible, while still supporting the full 5eTools schema.
1 parent 90d93c0 commit 8e5101a

File tree

5 files changed

+1108
-1
lines changed

5 files changed

+1108
-1
lines changed

Package.resolved

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ let package = Package(
1515
targets: ["FifthEdition"]
1616
),
1717
],
18+
dependencies: [
19+
.package(url: "https://github.com/DnV1eX/EnumOptionSet.git", .upToNextMajor(from: "2.0.0")),
20+
.package(url: "https://github.com/gohanlon/swift-memberwise-init-macro.git", .upToNextMajor(from: "0.5.1")),
21+
],
1822
targets: [
1923
// Targets are the basic building blocks of a package, defining a module or a test suite.
2024
// Targets can depend on other targets in this package and products from dependencies.
2125
.target(
22-
name: "FifthEdition"
26+
name: "FifthEdition",
27+
dependencies: [
28+
"EnumOptionSet",
29+
.product(name: "MemberwiseInit", package: "swift-memberwise-init-macro"),
30+
],
2331
),
2432
.testTarget(
2533
name: "FifthEditionTests",

0 commit comments

Comments
 (0)