Skip to content

Commit

Permalink
feat: Add logging to AbstractAssetLoadingScreen.
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn committed Oct 23, 2023
1 parent ea6d4d2 commit 1f626b2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
import com.badlogic.gdx.math.MathUtils;

import de.damios.guacamole.annotations.GwtIncompatible;
import de.damios.guacamole.gdx.log.Logger;
import de.damios.guacamole.gdx.log.LoggerService;
import de.damios.guacamole.gdx.reflection.ReflectionUtils;
import de.eskalon.commons.asset.AnnotationAssetManager;
import de.eskalon.commons.asset.AnnotationAssetManager.Asset;
import de.eskalon.commons.core.AbstractEskalonApplication;
import de.eskalon.commons.inject.annotations.Inject;
import de.eskalon.commons.misc.IFieldAnnotationScanner;

/**
Expand All @@ -43,6 +44,9 @@
@GwtIncompatible
public abstract class AbstractAssetLoadingScreen extends AbstractEskalonScreen {

private static final Logger LOG = LoggerService
.getLogger(AbstractAssetLoadingScreen.class);

protected AnnotationAssetManager assetManager;

private int loadingTicksPerSecond;
Expand Down Expand Up @@ -72,8 +76,10 @@ public AbstractAssetLoadingScreen(AnnotationAssetManager assetManager,
"de.eskalon.commons.misc.DesktopFieldAnnotationScanner",
IFieldAnnotationScanner.class);

LOG.debug("Scanning the packages for assets...");
annotationScanner.forEachFieldAnnotatedWith(packageRoot,
Asset.class, (f) -> assetManager.loadAnnotatedAsset(f));
LOG.debug("Scanning complete!");
}
}

Expand Down

0 comments on commit 1f626b2

Please sign in to comment.