Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Dec 11, 2024
1 parent e2af33d commit 17c17d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Godot Sandbox allows Godot creators to implement safe modding support, such that
#include "api.hpp"
static int coins = 0;

extern "C" Variant reset_game() {
PUBLIC Variant reset_game() {
coins = 0;
return Nil;
}
Expand All @@ -85,7 +85,7 @@ static void add_coin(const Node& player) {
+ std::to_string(coins) + ((coins == 1) ? " coin" : " coins"));
}

extern "C" Variant _on_body_entered(CharacterBody2D body) {
PUBLIC Variant _on_body_entered(CharacterBody2D body) {
if (body.get_name() != "Player")
return Nil;

Expand Down

0 comments on commit 17c17d0

Please sign in to comment.