I've created a namespace for my game, and inside it a class with sf::Texture and sf::Sprite inside.
The code looks like this:
Classes.h
namespace at
{
class Effect
{
public:
int rotation = 0;
std::string currentAnimation = "";
sf::Vector2f position = sf::Vector2f(0.0f, 0.0f);
sf::Texture texture;
sf::Sprite sprite;
thor::AnimationMap<sf::Sprite, std::string> aMap;
thor::Animator<sf::Sprite, std::string> animator;
};
}
Globals.h
extern at::Effect fireballGlow;
Globals.cpp
at::Effect fireballGlow;
Now I created an at::Effect in order to store a fireball glow inside. But when I try to build it VS throws
Error C2280 'at::Effect::Effect(void)': attempting to reference a deleted function
when I declare the glow in Globals.cpp.
I need an idea what's wrong here. I never call a missing function. I don't even have a void in that class, in fact.