Generate Json::Value for this object
| 124 | |
| 125 | // Generate Json::Value for this object |
| 126 | Json::Value Shift::JsonValue() const { |
| 127 | |
| 128 | // Create root json object |
| 129 | Json::Value root = EffectBase::JsonValue(); // get parent properties |
| 130 | root["type"] = info.class_name; |
| 131 | root["x"] = x.JsonValue(); |
| 132 | root["y"] = y.JsonValue(); |
| 133 | |
| 134 | // return JsonValue |
| 135 | return root; |
| 136 | } |
| 137 | |
| 138 | // Load JSON string into this object |
| 139 | void Shift::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected