summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/assets
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-26 00:52:53 +0500
committerilotterytea <iltsu@alright.party>2024-10-26 00:52:53 +0500
commit4c205aaaf26b65ed6f5ada09b894345f131d5be7 (patch)
tree0feeb0aa6cd7057f1ce4ec344a9d86c9bf67cee0 /core/src/kz/ilotterytea/maxon/assets
parentd1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (diff)
upd: code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/assets')
-rw-r--r--core/src/kz/ilotterytea/maxon/assets/AssetUtils.java3
-rw-r--r--core/src/kz/ilotterytea/maxon/assets/loaders/Text.java25
2 files changed, 1 insertions, 27 deletions
diff --git a/core/src/kz/ilotterytea/maxon/assets/AssetUtils.java b/core/src/kz/ilotterytea/maxon/assets/AssetUtils.java
index 8b3f6f0..4492a5f 100644
--- a/core/src/kz/ilotterytea/maxon/assets/AssetUtils.java
+++ b/core/src/kz/ilotterytea/maxon/assets/AssetUtils.java
@@ -14,9 +14,6 @@ import kz.ilotterytea.maxon.assets.loaders.TextLoader;
import net.mgsx.gltf.loaders.glb.GLBAssetLoader;
import net.mgsx.gltf.scene3d.scene.SceneAsset;
-import java.util.List;
-import java.util.stream.Collectors;
-
public class AssetUtils {
public static void setup(AssetManager assetManager) {
assetManager.setLoader(SceneAsset.class, ".glb", new GLBAssetLoader());
diff --git a/core/src/kz/ilotterytea/maxon/assets/loaders/Text.java b/core/src/kz/ilotterytea/maxon/assets/loaders/Text.java
index 6ce483e..2bac2ce 100644
--- a/core/src/kz/ilotterytea/maxon/assets/loaders/Text.java
+++ b/core/src/kz/ilotterytea/maxon/assets/loaders/Text.java
@@ -3,37 +3,14 @@ package kz.ilotterytea.maxon.assets.loaders;
import com.badlogic.gdx.files.FileHandle;
public class Text {
- private String string;
-
- public Text() {
- this.string = new String("".getBytes());
- }
-
- public Text(byte[] data) {
- this.string = new String(data);
- }
-
- public Text(String string) {
- this.string = new String(string.getBytes());
- }
+ private final String string;
public Text(FileHandle file) {
this.string = new String(file.readBytes());
}
- public Text(Text text) {
- this.string = new String(text.getString().getBytes());
- }
-
- public void setString(String string) {
- this.string = string;
- }
-
public String getString() {
return this.string;
}
- public void clear() {
- this.string = new String("".getBytes());
- }
} \ No newline at end of file