LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Getting lightning controller(s) of the Elevator

Open iomatix opened this issue 1 year ago • 2 comments

Goal Description

Let’s say we have a method to get elevators connected to a room.

Sketch:

/// <summary>
/// Gets all elevators connected to a specific room.
/// </summary>
/// <param name="room">The room to find connected elevators for.</param>
/// <returns>A collection of elevators connected to the room.</returns>
public IEnumerable<Elevator> GetElevatorsConnectedToRoom(Room room)
{
    return room == null 
        ? Enumerable.Empty<Elevator>() 
        : Elevators.Where(elevator => elevator.CurrentDestination.Rooms.Contains(room));
}

So now we can do something like this:

Elevator e;
e.AllLightControllers;
e.LightController;

And now we can control the lighting of a specific elevator! :3

Notes

Rule of cool + I need it badly ~

iomatix avatar Jul 29 '25 17:07 iomatix

Thank you for your suggestion! We've logged this issue in our internal git system for further review and tracking. Please note that this doesn't guarantee acceptance or implementation at this stage. If we need any additional information or clarification, we'll be sure to reach out to you.

Jesus-QC avatar Oct 14 '25 09:10 Jesus-QC

We've reopened this suggestion to prevent confusion and duplicate posts. As stated before, the issue has been added to our internal tracker, but that does not guarantee acceptance nor implementation.

Axwabo avatar Apr 27 '26 18:04 Axwabo