Newer
Older
CactusServer / src / main / java / cactusServer / models / CharacterModelManager.java
package cactusServer.models;

import java.util.HashMap;

import org.ntlab.radishforandroidstudio.framework.model3D.Model3D;

public class CharacterModelManager {
	private static CharacterModelManager theInstance = null;
	private HashMap<Integer, Model3D> characters = new HashMap<>();

	private CharacterModelManager() {

	}

	public static CharacterModelManager getInstance() {
		if (theInstance == null) {
			theInstance = new CharacterModelManager();
		}
		return theInstance;
	}

	public Model3D getCharacterModel(int id) {
		return characters.get(id);
	}
}