-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small refactoring; extract asset stuff to a separate module
- Loading branch information
1 parent
9cd7c3f
commit 6a5463d
Showing
13 changed files
with
78 additions
and
42 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
2 changes: 1 addition & 1 deletion
2
...-zero-dawn-remastered/src/main/java/com/shade/decima/game/hrzr/storage/PackFileAsset.java
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
...ero-dawn-remastered/src/main/java/com/shade/decima/game/hrzr/storage/PackFileAssetId.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
id 'java-library' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
api project(':platform-util') | ||
} |
14 changes: 12 additions & 2 deletions
14
...decima/game/hrzr/storage/api/Archive.java → ...n/java/com/shade/decima/game/Archive.java
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,18 +1,28 @@ | ||
package com.shade.decima.game.hrzr.storage.api; | ||
package com.shade.decima.game; | ||
|
||
import com.shade.util.NotNull; | ||
|
||
import java.io.Closeable; | ||
import java.io.IOException; | ||
import java.nio.ByteBuffer; | ||
import java.nio.file.Path; | ||
import java.util.List; | ||
|
||
public interface Archive extends Closeable { | ||
@NotNull | ||
List<? extends Asset> assets(); | ||
Asset get(@NotNull AssetId id) throws IOException; | ||
|
||
@NotNull | ||
ByteBuffer load(@NotNull AssetId id) throws IOException; | ||
|
||
boolean contains(@NotNull AssetId id); | ||
|
||
@NotNull | ||
List<? extends Asset> assets(); | ||
|
||
@NotNull | ||
String name(); | ||
|
||
@NotNull | ||
Path path(); | ||
} |
2 changes: 1 addition & 1 deletion
2
...e/decima/game/hrzr/storage/api/Asset.java → ...ain/java/com/shade/decima/game/Asset.java
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,4 +1,4 @@ | ||
package com.shade.decima.game.hrzr.storage.api; | ||
package com.shade.decima.game; | ||
|
||
import com.shade.util.NotNull; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...decima/game/hrzr/storage/api/AssetId.java → ...n/java/com/shade/decima/game/AssetId.java
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,4 +1,4 @@ | ||
package com.shade.decima.game.hrzr.storage.api; | ||
package com.shade.decima.game; | ||
|
||
public interface AssetId extends Comparable<AssetId> { | ||
} |
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,5 @@ | ||
module decima.game { | ||
requires platform.util; | ||
|
||
exports com.shade.decima.game; | ||
} |
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