use of pcgen.core.character.WieldCategory in project pcgen by PCGen.
the class WieldToken method parseNonEmptyToken.
@Override
public ParseResult parseNonEmptyToken(LoadContext context, Equipment eq, String value) {
// TODO Need to convert this to a reference??
WieldCategory wc = context.getReferenceContext().silentlyGetConstructedCDOMObject(WieldCategory.class, value);
if (wc == null) {
return new ParseResult.Fail("In " + getTokenName() + " unable to find WieldCategory for " + value, context);
}
context.getObjectContext().put(eq, ObjectKey.WIELD, wc);
return ParseResult.SUCCESS;
}
Aggregations