use of pcgen.core.kit.BaseKit in project pcgen by PCGen.
the class TableToken method process.
@Override
public boolean process(LoadContext context, Kit obj) {
for (BaseKit bk : obj.getSafeListFor(ListKey.KIT_TASKS)) {
if (bk instanceof KitTable) {
obj.removeFromListFor(ListKey.KIT_TASKS, bk);
KitTable kt = obj.addTable((KitTable) bk);
if (kt != null) {
Logging.errorPrint("Kit Table: " + kt.getTableName() + " in Kit " + obj.getKeyName() + " was a duplicate, " + "Kit had more than one table with that name.");
return false;
}
}
}
return true;
}
use of pcgen.core.kit.BaseKit in project pcgen by PCGen.
the class StatToken method process.
@Override
public boolean process(LoadContext context, Kit obj) {
for (BaseKit bk : obj.getSafeListFor(ListKey.KIT_TASKS)) {
if (bk instanceof KitStat) {
obj.removeFromListFor(ListKey.KIT_TASKS, bk);
obj.addStat((KitStat) bk);
}
}
return true;
}
Aggregations