21 lines
236 B
C++
21 lines
236 B
C++
#pragma once
|
|
|
|
#include "service.h"
|
|
|
|
#define MAX_SERVICES 10
|
|
|
|
class ServiceManager {
|
|
public:
|
|
|
|
void add(Service* service);
|
|
|
|
void begin();
|
|
|
|
void tick();
|
|
|
|
private:
|
|
|
|
Service* services[MAX_SERVICES];
|
|
uint8_t count = 0;
|
|
};
|