예제 #1
0
    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));
    }
예제 #2
0
    public void ExcludeConnector(int direction, int connector)
    {
        var toRemove = this.Modules.Where(module => module.Fits(direction, connector));

        this.RemoveModules(ModuleSet.FromEnumerable(toRemove));
    }