using OWML.ModHelper.Events; using QSB.Events; namespace QSB.ElevatorSync { public static class ElevatorPatches { public static void StartLift(Elevator __instance) { var isGoingUp = __instance.GetValue("_goingToTheEnd"); var direction = isGoingUp ? ElevatorDirection.Up : ElevatorDirection.Down; GlobalMessenger.FireEvent(EventNames.QSBStartLift, direction, __instance.name); } } }