patterns/command/simpleremotecontrol/simpleremotecontrol.d

19 lines
289 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module command.simpleremotecontrol.simpleremotecontrol;
import command.simpleremotecontrol.command;
class SimpleRemoteControl
{
Command slot;
void setCommand(Command command)
{
slot = command;
}
void buttonWasPressed()
{
slot.execute();
}
}