public void EnforceWalkway(Vector3Int start, int direction) { var slot = this.GetSlot(start); var toRemove = slot.Modules.Where(module => !module.GetFace(direction).Walkable); slot.RemoveModules(ModuleSet.FromEnumerable(toRemove)); }
public void ExcludeConnector(int direction, int connector) { var toRemove = this.Modules.Where(module => module.Fits(direction, connector)); this.RemoveModules(ModuleSet.FromEnumerable(toRemove)); }