Search in sources :

Example 1 with UNIT_GROUP

use of main.content.enums.entity.UnitEnums.UNIT_GROUP in project Eidolons by IDemiurge.

the class PlaceholderGenerator method generate.

public static void generate() {
    /*
        unit subgroups
         */
    for (UNIT_GROUP group : UnitEnums.UNIT_GROUP.values()) {
        for (String sub : StringMaster.openContainer(group.getSubgroups(), ",")) {
            for (PLACEHOLDER_AI_TYPE aiType : PLACEHOLDER_AI_TYPE.values()) {
                ObjType type = generate(group, sub, aiType.name());
                type.setProperty(PROPS.AI_TYPE, aiType.name());
            }
            for (PLACEHOLDER_POWER power : PLACEHOLDER_POWER.values()) {
                generate(group, sub, power.name());
            }
        }
    }
}
Also used : ObjType(main.entity.type.ObjType) UNIT_GROUP(main.content.enums.entity.UnitEnums.UNIT_GROUP)

Aggregations

UNIT_GROUP (main.content.enums.entity.UnitEnums.UNIT_GROUP)1 ObjType (main.entity.type.ObjType)1