Revision c6fcfba9
| server/src/EmotionConfig.cpp | ||
|---|---|---|
| 29 | 29 | 
    #include "EmotionConfig.h"  | 
| 30 | 30 | 
     | 
| 31 | 31 | 
    EmotionConfig::EmotionConfig(){
   | 
| 32 | 
    end_time = std::chrono::time_point<std::chrono::steady_clock>::max();  | 
|
| 32 | 33 | 
    select_config(NEUTRAL);  | 
| 33 | 34 | 
    }  | 
| 34 | 35 | 
     | 
| ... | ... | |
| 41 | 42 | 
     | 
| 42 | 43 | 
     | 
| 43 | 44 | 
    bool EmotionConfig::is_active(){
   | 
| 44 | 
    if (end_time.time_since_epoch().count() == 0)  | 
|
| 45 | 
    return true;  | 
|
| 46 | 45 | 
        if (std::chrono::steady_clock::now() >= end_time){
   | 
| 47 | 46 | 
    return false;  | 
| 48 | 47 | 
    }  | 
Also available in: Unified diff