Skip to content

Commit

Permalink
Specify default parameters in argument list for scripting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Jan 11, 2025
1 parent 54c5d41 commit 9bcaa5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supertux/game_object_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ class GameObjectManager : public ExposableClass
* @param string $data Additional data in S-Expression format (check object definitions in level files).
*/
void add_object(const std::string& class_name, const std::string& name,
float pos_x, float pos_y, const std::string& direction,
const std::string& data);
float pos_x, float pos_y, const std::string& direction = "auto",
const std::string& data = "");

float get_width() const;
float get_height() const;
Expand Down

0 comments on commit 9bcaa5f

Please sign in to comment.