diff options
author | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2024-11-02 22:27:47 +0100 |
commit | cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch) | |
tree | f647b20e1823f1846af88e832cf82a4a02e96e69 /src/Protocol/RecipeMapper.h | |
parent | Improve clang-format config file, remove automatically enforced code style from contrib guide. (diff) | |
download | cuberite-clang-format-codebase.tar cuberite-clang-format-codebase.tar.gz cuberite-clang-format-codebase.tar.bz2 cuberite-clang-format-codebase.tar.lz cuberite-clang-format-codebase.tar.xz cuberite-clang-format-codebase.tar.zst cuberite-clang-format-codebase.zip |
Diffstat (limited to 'src/Protocol/RecipeMapper.h')
-rw-r--r-- | src/Protocol/RecipeMapper.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Protocol/RecipeMapper.h b/src/Protocol/RecipeMapper.h index 1cac62f92..bf93cec4f 100644 --- a/src/Protocol/RecipeMapper.h +++ b/src/Protocol/RecipeMapper.h @@ -12,7 +12,7 @@ directory, e.g. `Server/Protocol/1.12.2/base.recipes.txt` */ class cRecipeMapper { -public: + public: cRecipeMapper(void); ~cRecipeMapper(); @@ -22,7 +22,7 @@ public: /** Translates the protocol specific RecipeId to the cuberite RecipeId */ std::optional<UInt32> GetCuberiteRecipeId(UInt32 a_ProtocolRecipeId, UInt32 a_ProtocolVersion); -private: + private: /** A mapping for each protocol from the protocol specific RecipeId and the cuberite RecipeId */ std::map<AString, std::map<UInt32, UInt32>> m_ProtocolVersionMap; @@ -30,6 +30,10 @@ private: void loadRecipes(const AString & a_ProtocolVersion); /** Handles a single line of the protocol specific mapping file */ - void AddRecipeLine(const AString & a_ProtocolVersion, int a_LineNum, const AString & a_RecipeLine, const std::map<AString, UInt32> & a_RecipeNameMap); - + void AddRecipeLine( + const AString & a_ProtocolVersion, + int a_LineNum, + const AString & a_RecipeLine, + const std::map<AString, UInt32> & a_RecipeNameMap + ); }; |