-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
109 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
ArkGames.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ArkKit/Sources/ArkKit/app/utils/set-up/ArkSetUpWithoutNetworkStrategy.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
ArkKit/Sources/ArkKit/ark-game/view/ui-kit/ArkUIKitView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ArkKit/Sources/ArkKit/ark-loop-kit/game-loop-events/GameLoopEventData.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
protocol GameLoopEventData: ArkEventData { | ||
public protocol GameLoopEventData: ArkEventData { | ||
var timeInGame: Double { get } | ||
} |
22 changes: 16 additions & 6 deletions
22
ArkKit/Sources/ArkKit/ark-loop-kit/game-loop-events/PauseGameLoopEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
struct PauseGameLoopEventData: GameLoopEventData { | ||
let timeInGame: Double | ||
var name: String = "PauseGame" | ||
public struct PauseGameLoopEventData: GameLoopEventData { | ||
public let timeInGame: Double | ||
public var name: String = "PauseGame" | ||
|
||
public init(timeInGame: Double) { | ||
self.timeInGame = timeInGame | ||
} | ||
} | ||
struct PauseGameLoopEvent: ArkEvent { | ||
var eventData: PauseGameLoopEventData | ||
var priority: Int? | ||
|
||
public struct PauseGameLoopEvent: ArkEvent { | ||
public var eventData: PauseGameLoopEventData | ||
public var priority: Int? | ||
|
||
public init(timeInGame: Double, priority: Int? = nil ) { | ||
self.eventData = PauseGameLoopEventData(timeInGame: timeInGame) | ||
self.priority = priority | ||
} | ||
} |
22 changes: 16 additions & 6 deletions
22
ArkKit/Sources/ArkKit/ark-loop-kit/game-loop-events/ResumeGameLoopEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
struct ResumeGameLoopEventData: GameLoopEventData { | ||
let timeInGame: Double | ||
var name: String = "ResumeGame" | ||
public struct ResumeGameLoopEventData: GameLoopEventData { | ||
public let timeInGame: Double | ||
public var name: String = "ResumeGame" | ||
|
||
public init(timeInGame: Double) { | ||
self.timeInGame = timeInGame | ||
} | ||
} | ||
struct ResumeGameLoopEvent: ArkEvent { | ||
var eventData: ResumeGameLoopEventData | ||
var priority: Int? | ||
|
||
public struct ResumeGameLoopEvent: ArkEvent { | ||
public var eventData: ResumeGameLoopEventData | ||
public var priority: Int? | ||
|
||
public init(timeInGame: Double, priority: Int? = nil) { | ||
self.eventData = ResumeGameLoopEventData(timeInGame: timeInGame) | ||
self.priority = priority | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
ArkKit/Sources/ArkKit/ark-multiplayer-kit/ArkNetworkService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#if canImport(UIKit) | ||
import UIKit | ||
#endif | ||
|
||
import P2PShare | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.