com.github.xpenatan.gdx.backends.teavm.config.TeaBuildConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backend-teavm Show documentation
Show all versions of backend-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
package com.github.xpenatan.gdx.backends.teavm.config;
import com.badlogic.gdx.ApplicationListener;
import com.github.xpenatan.gdx.backends.teavm.TeaLauncher;
import java.net.URL;
import java.util.ArrayList;
/**
* @author xpenatan
*/
public class TeaBuildConfiguration {
public AssetFilter assetFilter = null;
public ArrayList assetsPath = new ArrayList<>();
public ArrayList additionalAssetsClasspathFiles = new ArrayList<>();
public boolean shouldGenerateAssetFile = true;
private String mainApplicationClass;
public String webappPath;
public final ArrayList additionalClasspath = new ArrayList<>();
public final ArrayList reflectionInclude = new ArrayList<>();
public final ArrayList reflectionExclude = new ArrayList<>();
public final ArrayList classesToPreserve = new ArrayList<>();
/**
* Array of class.getName() to skip
*/
public final ArrayList classesToSkip = new ArrayList<>();
public String mainClass = TeaLauncher.class.getName();
public String mainClassArgs = "";
public String htmlTitle = "gdx-teavm";
public int htmlWidth = 800;
public int htmlHeight = 600;
/** True to use the default html index. False will stop overwriting html file. */
public boolean useDefaultHtmlIndex = true;
/** If the logo is shown while the application is loading. Requires showLoadingLogo true. */
public boolean showLoadingLogo = true;
/** Logo asset path. Requires showLoadingLogo true. */
public String logoPath = "startup-logo.png";
public String getHtmlTitle() {
return htmlTitle;
}
public String getHtmlWidth() {
return String.valueOf(htmlWidth);
}
public String getHtmlHeight() {
return String.valueOf(htmlHeight);
}
public boolean isShowLoadingLogo() {
return showLoadingLogo;
}
public boolean shouldUseDefaultHtmlIndex() {
return useDefaultHtmlIndex;
}
public String getMainClass() {
return mainClass;
}
public String getMainClassArgs() {
return mainClassArgs;
}
public String getApplicationListenerClass() {
return mainApplicationClass;
}
public ArrayList getAdditionalClasspath() {
return additionalClasspath;
}
public ArrayList getAdditionalAssetClasspath() {
return additionalAssetsClasspathFiles;
}
public String getWebAppPath() {
return webappPath;
}
public ArrayList assetsPath() {
return assetsPath;
}
public boolean shouldGenerateAssetFile() {
return shouldGenerateAssetFile;
}
public AssetFilter assetFilter() {
return assetFilter;
}
public ArrayList getReflectionInclude() {
return reflectionInclude;
}
public ArrayList getReflectionExclude() {
return reflectionExclude;
}
public ArrayList getClassesToPreserve() {
return classesToPreserve;
}
public ArrayList getSkipClasses() {
return classesToSkip;
}
public void setApplicationListener(Class extends ApplicationListener> applicationListener) {
setApplicationListener(applicationListener.getName());
}
public void setApplicationListener(String applicationListener) {
mainApplicationClass = applicationListener;
}
public boolean acceptClasspath(URL url) {
return true;
}
public String getLogoPath() {
return logoPath;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy