| 102 | } |
| 103 | |
| 104 | Json ObjectDatabase::parseTouchDamage(String const& path, Json const& config) { |
| 105 | auto touchDamage = config.get("touchDamage", {}); |
| 106 | if (touchDamage.isType(Json::Type::String)) { |
| 107 | auto assets = Root::singleton().assets(); |
| 108 | return assets->fetchJson(AssetPath::relativeTo(path, touchDamage.toString())); |
| 109 | } |
| 110 | |
| 111 | return touchDamage; |
| 112 | } |
| 113 | |
| 114 | List<ObjectOrientationPtr> ObjectDatabase::parseOrientations(String const& path, Json const& configList) { |
| 115 | auto& root = Root::singleton(); |