Newer
Older
CactusServer / src / main / java / framework / gameMain / GameModel.java
y-ota on 10 May 2018 594 bytes 初うp
package framework.gameMain;
import framework.animation.Animation3D;
import framework.model3D.Model3D;
import framework.model3D.ModelFactory;

public class GameModel {

	private Model3D model = null;
	private String fileName;

	public GameModel(String fileName) {
		this.fileName = fileName;
	}

	public Animation3D getAnimation() {
		return new Animation3D();
	}
	
	public Model3D getModel() {
		if(model == null && fileName != null) {
			model = ModelFactory.loadModel(fileName, false, true);
		}
		return model;
	}
	
	public void clearModel(){
		model = null;
	}
}