public void Removed() { if (this.prev == null) { BSPCollisionChecker.SetNodeForActor(this.actor, this.next); } else { this.prev.next = this.next; } if (this.next != null) { this.next.prev = this.prev; } }
public ActorNode(Actor actor, BSPCollisionNode node) { this.actor = actor; this.node = node; ActorNode first = BSPCollisionChecker.GetNodeForActor(actor); this.next = first; BSPCollisionChecker.SetNodeForActor(actor, this); if (this.next != null) { this.next.prev = this; } this.mark = true; }