forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wiseblank
committed
Jul 18, 2024
1 parent
ff8a278
commit 8d7438c
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* summator.cpp */ | ||
|
||
#include "summator.h" | ||
|
||
void Summator::add(int p_value) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* summator .h */ | ||
|
||
#ifndef SUMMATOR_H | ||
#define SUMMATOR_H | ||
|
||
#include "core/object/ref_counted.h" | ||
|
||
class Summator : public RefCounted { | ||
GDCLASS(Summator, RefCounted); | ||
|
||
int count; | ||
|
||
protected: | ||
static void _bind_methods(); | ||
|
||
public: | ||
void add(int p_value); | ||
void reset(); | ||
int get_total() const; | ||
|
||
Summator(); | ||
}; | ||
|
||
#endif |