find_package(Protobuf REQUIRED) find_package(yaml-cpp REQUIRED) add_library(util godot_scene.cpp identifiers.cpp ids_yaml_format.cpp naming.cpp ) set_property(TARGET util PROPERTY CXX_STANDARD 20) set_property(TARGET util PROPERTY CXX_STANDARD_REQUIRED ON) target_include_directories(util PUBLIC ${CMAKE_BINARY_DIR}) target_link_libraries(util PUBLIC protos protobuf::libprotobuf yaml-cpp::yaml-cpp) itory'/>
about summary refs log tree commit diff stats
path: root/tools/util/naming.cpp
blob: 12594c50375b89d5ce68e18c109cbee3a84f8d83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "naming.h"

#include <sstream>

std::string GetLetterName(std::string key, bool double_) {
  std::ostringstream lettername_s;
  lettername_s << key;
  lettername_s << (double_ ? "2" : "1");

  return lettername_s.str();
}