Exemple #1
0
 bool ResolveParamsForObject(AttachObject obj)
 {
     obj.CycleResolvedParams();
     obj.resolvedParams.MergeFrom(obj.defaultParams);
     if (obj.attachPoint)
     {
         obj.attachPoint.ApplyParamsForSelf(obj);
     }
     foreach (AttachObject other in objects)
     {
         if (other == obj)
         {
             continue;
         }
         if (other.attachPoint)
         {
             other.attachPoint.ApplyParamsForOther(obj, self: other); // obj == other, relative to the other
         }
     }
     return(!obj.ResolvedParamsChanged());
 }