@Override public void setOwner(EntityRef owner) { if (exists()) { EntityInfoComponent info = getEntityInfo(); if (!info.owner.equals(owner)) { info.owner = owner; saveComponent(info); } } }
@Override public void setAlwaysRelevant(boolean alwaysRelevant) { if (exists()) { EntityInfoComponent info = getEntityInfo(); if (info.alwaysRelevant != alwaysRelevant) { info.alwaysRelevant = alwaysRelevant; saveComponent(info); } } }