Exemplo n.º 1
0
 public void Add()
 {
     hitbox = new LineHitbox(this);
     MainWindow.Self.ClickableObjects.Add(this);
     MainWindow.Self.refs.Add(new WeakReference <IClickable>(this));//temp
     new CableSegmentRenderer(this);
     IsRendered = true;
 }
Exemplo n.º 2
0
        public CableSegment(Cable parent, int index)
        {
            Parent = parent;
            Index  = index;

            hitbox = new LineHitbox(this);

            Add();
        }
Exemplo n.º 3
0
 public virtual void Add()
 {
     hitbox = new ConnectionNodeHitbox(this);
     MainWindow.Self.ClickableObjects.Add(this);
     MainWindow.Self.refs.Add(new WeakReference <IClickable>(this));//temp
 }