From 637c786ebc432c98641ad5779820d0ee0205a009 Mon Sep 17 00:00:00 2001 From: Lucy <44952533+Skyliegirl33@users.noreply.github.com> Date: Fri, 27 Jan 2023 21:52:14 +0100 Subject: [PATCH] Fix action parser formatting --- src/tools/action_parse/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/action_parse/main.cpp b/src/tools/action_parse/main.cpp index 08314360..35e91953 100644 --- a/src/tools/action_parse/main.cpp +++ b/src/tools/action_parse/main.cpp @@ -58,7 +58,7 @@ struct ActionEntry StatusEffect statuses; }; -void to_json(nlohmann::ordered_json& j, const StatusEntry& statusEntry) +void to_json( nlohmann::ordered_json& j, const StatusEntry& statusEntry ) { j = nlohmann::ordered_json{ { "id", statusEntry.id }, @@ -66,7 +66,7 @@ void to_json(nlohmann::ordered_json& j, const StatusEntry& statusEntry) }; } -void to_json(nlohmann::ordered_json& j, const ActionEntry& action) +void to_json( nlohmann::ordered_json& j, const ActionEntry& action ) { j = nlohmann::ordered_json{ { "name", action.name }, @@ -323,7 +323,7 @@ int main( int argc, char* argv[] ) } std::ofstream outH( "actions/player.json" ); - outH << std::setw(2) << output << std::endl; + outH << std::setw( 2 ) << output << std::endl; outH.close(); return 0;