internal Ladder(ILight light, configuration.MISC misc) { lights = light; RaiseBoardNow = false; LadderRaised = false; switch (misc.LadderControl.HorizontalControl) { case "bonnet": LadderHorizontalIndex = 4; break; case "boot": LadderHorizontalIndex = 5; break; } switch (misc.LadderControl.VerticalControl) { case "bonnet": LadderVerticalIndex = 4; break; case "boot": LadderVerticalIndex = 5; break; } }
internal ArrowBoard(ILight light, configuration.MISC misc) { lights = light; _misc = misc; _boardType = _misc.ArrowboardType.ToLower(); RaiseBoardNow = false; BoardRaised = false; switch (_boardType) { case "bonnet": BoardDoorIndex = 4; HasBoard = true; break; case "boot": BoardDoorIndex = 5; HasBoard = true; break; case "boot2": BoardDoorIndex = 6; HasBoard = true; break; case "boots": BoardDoorIndex = 5; HasBoard = true; break; case "off": BoardDoorIndex = -1; HasBoard = false; break; default: HasBoard = false; break; } Utils.DebugWriteLine($"Added ArrowBoard of {_boardType}"); }