All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.czyzby.autumn.mvc.component.ui.controller.ViewInitializer Maven / Gradle / Ivy

Go to download

MVC framework based on LibGDX using Autumn for components management and LML as view templates.

There is a newer version: 1.9.1.9.6
Show newest version
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