From 8d7438cf2caedaf7b16802f3edbab5e22fa05e66 Mon Sep 17 00:00:00 2001 From: wiseblank Date: Thu, 18 Jul 2024 16:04:18 -0700 Subject: [PATCH] update --- modules/summator/summator.cpp | 7 +++++++ modules/summator/summator.h | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/summator/summator.cpp create mode 100644 modules/summator/summator.h diff --git a/modules/summator/summator.cpp b/modules/summator/summator.cpp new file mode 100644 index 000000000000..25d0bde821dc --- /dev/null +++ b/modules/summator/summator.cpp @@ -0,0 +1,7 @@ +/* summator.cpp */ + +#include "summator.h" + +void Summator::add(int p_value) { + +} \ No newline at end of file diff --git a/modules/summator/summator.h b/modules/summator/summator.h new file mode 100644 index 000000000000..9614abce282f --- /dev/null +++ b/modules/summator/summator.h @@ -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 \ No newline at end of file