Service#
-
class KerbalAlarmClock : public krpc::RemoteService#
Provides functionality to interact with Kerbal Alarm Clock.
-
KerbalAlarmClock(krpc::Connection &connection)#
Construct an instance of this service.
-
bool available()#
Whether Kerbal Alarm Clock is available.
-
std::vector<Alarm> alarms()#
A list of all the alarms.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
-
std::optional<Alarm> alarm_with_name(std::string name)#
Get the alarm with the given name, or
NULLif no alarms have that name. If more than one alarm has the name, only returns one of them.- Parameters:
name – Name of the alarm to search for.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
-
std::vector<Alarm> alarms_with_type(AlarmType type)#
Get a list of alarms of the specified type.
- Parameters:
type – Type of alarm to return.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
-
Alarm create_alarm(AlarmType type, std::string name, double ut)#
Create a new alarm and return it.
- Parameters:
type – Type of the new alarm.
name – Name of the new alarm.
ut – Time at which the new alarm should trigger.
- Game Scenes:
Space Center, Flight, Tracking Station, Editor Vab, Editor Sph, Astronaut Complex, Mission Control, Research And Development, Administration
-
KerbalAlarmClock(krpc::Connection &connection)#