Search in sources :

Example 1 with AT_ContentManager

use of main.logic.value.AT_ContentManager in project Eidolons by IDemiurge.

the class ArcaneTower method genericInit.

public static void genericInit(boolean av) {
    EnumMaster.getAdditionalEnumClasses().add(StatEnums.class);
    ContentManager.setTypeMaster(new TypeMaster() {

        public OBJ_TYPE getOBJ_TYPE(String typeName) {
            // AT_OBJ_TYPE.valueOf(typeName);
            return new EnumMaster<AT_OBJ_TYPE>().retrieveEnumConst(AT_OBJ_TYPE.class, typeName);
        }
    });
    XML_Reader.setCustomTypesPath(getTypesPath());
    contentManager = new AT_ContentManager(dcSync);
    if (av) {
        launchAV();
    }
    // launchBackground();
    initSimulation();
    if (!av) {
        contentManager.contentInit();
        CoreEngine.systemInit();
        XML_Reader.loadXml(getTypesPath());
    }
    sim.initObjTypes();
    ContentManager.setInstance(contentManager);
}
Also used : TypeMaster(main.content.TypeMaster) OBJ_TYPE(main.content.OBJ_TYPE) EnumMaster(main.system.auxiliary.EnumMaster) AT_ContentManager(main.logic.value.AT_ContentManager)

Aggregations

OBJ_TYPE (main.content.OBJ_TYPE)1 TypeMaster (main.content.TypeMaster)1 AT_ContentManager (main.logic.value.AT_ContentManager)1 EnumMaster (main.system.auxiliary.EnumMaster)1