com.github.czyzby.autumn.mvc.component.ui.controller.ViewInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-autumn-mvc Show documentation
Show all versions of gdx-autumn-mvc Show documentation
MVC framework based on LibGDX using Autumn for components management and LML as view templates.
package com.github.czyzby.autumn.mvc.component.ui.controller;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.ObjectMap;
/** Manages view creation.
*
* @author MJ */
public interface ViewInitializer {
/** Called each time the view is created. Processed after LML template parsing.
*
* @param stage managed by the view.
* @param actorMappedByIds all actions with IDs that were referenced in the LML template. Should not be modified or
* assigned, copy map's values if you want to keep the references. */
void initialize(Stage stage, ObjectMap actorMappedByIds);
/** Called each time the view is destroyed.
*
* @param viewController a reference to view controller for extra utility. */
void destroy(ViewController viewController);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy