use of eidolons.test.Preset.PRESET_DATA in project Eidolons by IDemiurge.
the class PresetLauncher method launchPreset.
public static void launchPreset(Preset profile) {
PresetMaster.setPreset(profile);
if (data == null)
data = new DungeonData();
for (PRESET_DATA item : PRESET_DATA.values()) {
String value = profile.getValue(item);
String valueName = "";
if (value != null) {
switch(item) {
case CONTENT_SCOPE:
initContentScope(value);
break;
case OPTIONS:
initOptions(value);
break;
case PRESET_OPTION_PARAMS:
initOptionParams(value);
break;
case ENEMY_PARTY:
// TODO initDefaultParty(value, false);
break;
case ENEMIES:
case PLAYER_UNITS:
valueName = PARTY_VALUE.MEMBERS.toString();
break;
case PLAYER_PARTY:
// valueName= PARTY_VALUE.PARTY_NAME;
break;
case DUNGEONS:
initDungeonsList(value);
break;
case FIRST_DUNGEON:
if (value.contains("."))
valueName = DUNGEON_VALUE.PATH.toString();
else
valueName = DUNGEON_VALUE.TYPE_NAME.toString();
break;
}
}
data.setValue(valueName, value);
}
/*
* set dungeon, layer, encounter, party, options, ...
*/
}
Aggregations