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