Generate Json::Value for this object
| 183 | |
| 184 | // Generate Json::Value for this object |
| 185 | Json::Value ColorShift::JsonValue() const { |
| 186 | |
| 187 | // Create root json object |
| 188 | Json::Value root = EffectBase::JsonValue(); // get parent properties |
| 189 | root["type"] = info.class_name; |
| 190 | root["red_x"] = red_x.JsonValue(); |
| 191 | root["red_y"] = red_y.JsonValue(); |
| 192 | root["green_x"] = green_x.JsonValue(); |
| 193 | root["green_y"] = green_y.JsonValue(); |
| 194 | root["blue_x"] = blue_x.JsonValue(); |
| 195 | root["blue_y"] = blue_y.JsonValue(); |
| 196 | root["alpha_x"] = alpha_x.JsonValue(); |
| 197 | root["alpha_y"] = alpha_y.JsonValue(); |
| 198 | |
| 199 | // return JsonValue |
| 200 | return root; |
| 201 | } |
| 202 | |
| 203 | // Load JSON string into this object |
| 204 | void ColorShift::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected