use of delta.games.lotro.lore.deeds.DeedProxy in project lotro-tools by dmorcellet.
the class DeedLinksResolver method checkNext2PreviousSymetry.
private void checkNext2PreviousSymetry(DeedDescription deed) {
DeedProxy nextProxy = deed.getNextDeedProxy();
if (nextProxy != null) {
String nextKey = nextProxy.getKey();
DeedDescription nextDeed = _mapByKey.get(nextKey);
if (nextDeed != null) {
DeedProxy previousProxy = nextDeed.getPreviousDeedProxy();
if (previousProxy == null) {
previousProxy = new DeedProxy();
previousProxy.setDeed(deed);
previousProxy.setKey(deed.getKey());
previousProxy.setName(deed.getName());
nextDeed.setPreviousDeedProxy(previousProxy);
}
}
}
}
use of delta.games.lotro.lore.deeds.DeedProxy in project lotro-tools by dmorcellet.
the class DeedLinksResolver method checkParent2ChildSymetry.
private void checkParent2ChildSymetry(DeedDescription deed) {
for (DeedProxy parentProxy : deed.getParentDeedProxies().getDeedProxies()) {
String parentKey = parentProxy.getKey();
DeedDescription parentDeed = _mapByKey.get(parentKey);
if (parentDeed != null) {
addChildDeed(parentDeed, deed);
}
}
}
use of delta.games.lotro.lore.deeds.DeedProxy in project lotro-tools by dmorcellet.
the class DeedLinksResolver method resolveDeed.
private void resolveDeed(DeedDescription deed) {
for (DeedProxy parentProxy : deed.getParentDeedProxies().getDeedProxies()) {
resolveDeedProxy(parentProxy);
}
resolveDeedProxy(deed.getNextDeedProxy());
resolveDeedProxy(deed.getPreviousDeedProxy());
for (DeedProxy childProxy : deed.getChildDeedProxies().getDeedProxies()) {
resolveDeedProxy(childProxy);
}
}
use of delta.games.lotro.lore.deeds.DeedProxy in project lotro-tools by dmorcellet.
the class DeedLinksResolver method removeChildByName.
private void removeChildByName(DeedDescription deed, String name) {
DeedProxies children = deed.getChildDeedProxies();
DeedProxy toRemove = children.getByName(name);
if (toRemove != null) {
children.remove(toRemove);
toRemove.getDeed().getParentDeedProxies().remove(toRemove.getKey());
}
}
Aggregations