New assetManager

This commit is contained in:
Bas de Jong
2025-09-30 11:48:53 +02:00
parent 9131803044
commit d1da49ad1d
7 changed files with 59 additions and 10 deletions

View File

@@ -0,0 +1,24 @@
package org.toop.framework.assets;
import org.toop.framework.SnowflakeGenerator;
import java.nio.file.Path;
public class Asset {
private Long id;
private String name;
private Path assetPath;
private String asset;
public Asset(String name, Path assetPath) {
this.id = new SnowflakeGenerator().nextId();
this.name = name;
this.assetPath = assetPath;
}
private void loadAsset() {
java.nio.file.Path
this.asset = this.assetPath;
}
}

View File

@@ -0,0 +1,12 @@
package org.toop.framework.assets;
import java.util.HashMap;
public class AssetManager {
private HashMap<Long, Asset> assets = new HashMap<>();
public AssetManager() {
}
}