|
@ -14,6 +14,8 @@ struct App{ |
|
|
std::vector<User*> people_online; |
|
|
std::vector<User*> people_online; |
|
|
libwebsocket * uberclient{nullptr}; |
|
|
libwebsocket * uberclient{nullptr}; |
|
|
|
|
|
|
|
|
|
|
|
std::vector<AbstractLine> lines; |
|
|
|
|
|
|
|
|
simu_type sim; |
|
|
simu_type sim; |
|
|
beat_type beat; |
|
|
beat_type beat; |
|
|
|
|
|
|
|
@ -29,6 +31,7 @@ struct App{ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void add_line(AbstractLine const & line){ |
|
|
void add_line(AbstractLine const & line){ |
|
|
|
|
|
lines.push_back(line); |
|
|
for(auto & l : line.calculate_lines()){ |
|
|
for(auto & l : line.calculate_lines()){ |
|
|
sim.lines.push_back(l); |
|
|
sim.lines.push_back(l); |
|
|
} |
|
|
} |
|
|