| 40 | } |
| 41 | |
| 42 | Json::Value passive_to_json(std::string type, int source, int player, float value, int time) { |
| 43 | Json::Value json; |
| 44 | json["type"] = type; |
| 45 | json["source"] = source; |
| 46 | json["player"] = player; |
| 47 | json["value"] = value; |
| 48 | json["time"] = time; |
| 49 | return json; |
| 50 | } |
| 51 | |
| 52 | Json::Value hit_to_json(int target, int player, int value, bool traceable, int time) { |
| 53 | Json::Value json; |
no outgoing calls
no test coverage detected