public void CallElevator(NitroxId id, RocketElevatorPanel panel, bool up) { Optional <NeptuneRocketModel> model = vehicles.TryGetVehicle <NeptuneRocketModel>(id); if (model.HasValue) { model.Value.ElevatorUp = up; packetSender.Send(new RocketElevatorCall(id, panel, up)); } else { Log.Error($"{nameof(Rockets.CallElevator)}: Can't find model for rocket with id {id}"); } }
public RocketElevatorCall(NitroxId id, RocketElevatorPanel panel, bool up) { Panel = panel; Id = id; Up = up; }