Skip to content

Commit

Permalink
chore: Resolve swiftlint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Junyi00 committed Mar 22, 2024
1 parent 111cedc commit 7edf3b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion star-dash/star-dash/Persistence/Database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ extension Database {
let jsonData = try Data(contentsOf: fileURL)
// Decode JSON data into LevelData
let levelData = try JSONDecoder().decode(LevelData.self, from: jsonData)
let levelPersistable = LevelPersistable(id: levelData.id, name: levelData.name, size: levelData.size)
let levelPersistable = LevelPersistable(
id: levelData.id,
name: levelData.name,
size: levelData.size
)
insert(persistable: levelPersistable)
for persistable in levelData.collectibles {
insert(persistable: persistable)
Expand Down
1 change: 0 additions & 1 deletion star-dash/star-dash/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class ViewController: UIViewController {
let floor = Floor(position: CGPoint(x: scene.size.width / 2, y: scene.size.height / 2 - 400))
floor.setUpAndAdd(to: entityManager)


if let level = self.storageManager?.getLevel(id: 0) {
for entity in level.entities {
entity.setUpAndAdd(to: entityManager)
Expand Down

0 comments on commit 7edf3b1

Please sign in to comment.