| 2972 | } |
| 2973 | |
| 2974 | static command_result GetLanguage(color_ostream & stream, const EmptyMessage * in, RemoteFortressReader::Language * out) |
| 2975 | { |
| 2976 | if (!world) |
| 2977 | return CR_FAILURE; |
| 2978 | |
| 2979 | for (size_t i = 0; i < world->raws.descriptors.shapes.size(); i++) |
| 2980 | { |
| 2981 | auto shape = world->raws.descriptors.shapes[i]; |
| 2982 | auto netShape = out->add_shapes(); |
| 2983 | netShape->set_id(shape->id); |
| 2984 | netShape->set_tile(shape->tile); |
| 2985 | } |
| 2986 | return CR_OK; |
| 2987 | } |