add casts

add inline
add template
This commit is contained in:
2025-09-23 18:17:48 +02:00
parent 3b35b973c9
commit bc4b9f1691
9 changed files with 142 additions and 3 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ public:
Entity(std::string name);
virtual std::string toString() { return "Entity"; } // declared & defined, only use that for one liners
std::string getName() { return _name; }
void setName(std::string name) { _name = name; }
const std::string& getName() const { return _name; }
void setName(const std::string& name) { _name = name; }
protected:
std::string _name = "";