public void RemoveFace(FloorFace face) { if (Path.Contains(face)) { face.RemoveWire(); Path.Remove(face); } }
public void AddFaces(IEnumerable <FloorFace> path) { for (int i = path.Count() - 1; i >= 0; i--) { FloorFace face = path.ElementAt(i); AddFace(face); } }
public void AddFace(FloorFace face) { if (!Path.Contains(face)) { Path.Add(face); face.AddWire(this); face.CheckForConnections(); face.UpdateNeighbours(); if (face is LogicFace logicFace && logicFace.Mode == LogicConnectorMode.Input && _trueOutputs.Count != 0) { logicFace.HaveInput.SetInput(true, logicFace); } } }