Esempio n. 1
0
        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}");
            }
        }
Esempio n. 2
0
 public RocketElevatorCall(NitroxId id, RocketElevatorPanel panel, bool up)
 {
     Panel = panel;
     Id    = id;
     Up    = up;
 }