Testing out JmonkeyEngine to make a game in Scala with Akka Actors within a pure FP layer
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package wow.doge.mygame.game.appstates;
import com.jme3.app.state.AbstractAppState; import com.simsilica.es.EntityData; import com.simsilica.es.base.DefaultEntityData; import com.jme3.app.state.BaseAppState; import com.jme3.app.Application;
public class EntityDataState extends BaseAppState { private EntityData entityData;
public EntityDataState() { this(new DefaultEntityData()); }
public EntityDataState(EntityData ed) { this.entityData = ed; }
public EntityData getEntityData() { return entityData; }
public void onEnable() { }
public void onDisable() { }
// @Override
public void cleanup(Application application) { entityData.close(); entityData = null; // cannot be reused
}
public void initialize(Application application) { } }
|