public void Flip() { if (linedef.IsDisposed) { throw new ScriptRuntimeException("Linedef has been disposed, can't Flip."); } linedef.FlipVertices(); linedef.FlipSidedefs(); linedef.NeedUpdate(); linedef.UpdateCache(); }