-
-
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.
feat: add UnityPackage model to World model
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// UnityPackageModel.swift | ||
// VRCKit | ||
// | ||
// Created by makinosp on 2024/09/29. | ||
// | ||
|
||
import Foundation | ||
import MemberwiseInit | ||
|
||
@MemberwiseInit(.public) | ||
public struct UnityPackage: Codable, Sendable, Identifiable, Hashable { | ||
public let id: String | ||
public let assetUrl: URL? | ||
public let assetVersion: Int | ||
public let createdAt: Date | ||
public let platform: Platform | ||
public let unitySortNumber: Int | ||
public let unityVersion: String | ||
|
||
public enum Platform: String, Codable, Sendable { | ||
case android, ios, standalonewindows | ||
} | ||
} |
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