[IDEA] Getting lightning controller(s) of the Elevator
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 ~
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.
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.