File Position.hpp¶
File List > Components > Position.hpp
Go to the documentation of this file
#ifndef ENGINE_COMPONENTS_POSITION_HPP_
#define ENGINE_COMPONENTS_POSITION_HPP_
namespace Engine {
struct Position {
float x;
float y;
int z;
float prevX;
float prevY;
int prevZ;
bool moved;
bool relative = false;
Position(float x = 0.0f, float y = 0.0f, int z = 0)
: x(x), y(y), z(z), prevX(x), prevY(y), prevZ(z), moved(false), relative(false) {}
};
} // namespace Engine
#endif // ENGINE_COMPONENTS_POSITION_HPP_