Created test module
This commit is contained in:
21
tools/src/io/anuke/mindustry/PackerLauncher.java
Normal file
21
tools/src/io/anuke/mindustry/PackerLauncher.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package io.anuke.mindustry;
|
||||
|
||||
import io.anuke.ucore.core.Timers;
|
||||
import io.anuke.ucore.util.Log;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class PackerLauncher {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
Vars.headless = true;
|
||||
ImageContext context = new ImageContext();
|
||||
context.load();
|
||||
Timers.mark();
|
||||
Generators.generate(context);
|
||||
Log.info("&ly[Generator]&lc Total time to generate: &lg{0}&lcms", Timers.elapsed());
|
||||
Log.info("&ly[Generator]&lc Total images created: &lg{0}", Image.total());
|
||||
Image.dispose();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user