internal void TakeOwnership(ProceduralConstruction parent)
 {
     Orphan();
     if (parent == null)
     {
         return;
     }
     Owner = parent;
     AddedToConstruction?.Invoke();
 }
Esempio n. 2
0
 public ProceduralMountPoint AttachedToIn(ProceduralConstruction construction)
 {
     foreach (var l in AnchorLocations)
     {
         var other = construction.MountPointAt(l);
         if (other != null)
         {
             return(other);
         }
     }
     return(null);
 }
 public RoomRegisterToken(ProceduralConstruction c, ProceduralRoom r)
 {
     m_construction = c;
     m_room         = r;
     c.AddRoom(r);
 }