diff options
| author | ilotterytea <iltsu@alright.party> | 2024-10-26 00:52:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-10-26 00:52:53 +0500 |
| commit | 4c205aaaf26b65ed6f5ada09b894345f131d5be7 (patch) | |
| tree | 0feeb0aa6cd7057f1ce4ec344a9d86c9bf67cee0 /core/src/kz/ilotterytea/maxon/assets | |
| parent | d1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (diff) | |
upd: code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/assets')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/assets/AssetUtils.java | 3 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/assets/loaders/Text.java | 25 |
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 |
