project(EntityX)
cmake_minimum_required(VERSION 2.8)
+if(NOT DEFINED CMAKE_MACOSX_RPATH)
+ set(CMAKE_MACOSX_RPATH 0)
+endif()
+
set(ENTITYX_MAJOR_VERSION 1)
set(ENTITYX_MINOR_VERSION 0)
set(ENTITYX_PATCH_VERSION 0alpha1)
using std::string;
struct Position : Component<Position> {
- Position(float x = 0.0f, float y = 0.0f) : x(x), y(y) {}
+ explicit Position(float x = 0.0f, float y = 0.0f) : x(x), y(y) {}
float x, y;
};
struct Direction : Component<Direction> {
- Direction(float x = 0.0f, float y = 0.0f) : x(x), y(y) {}
+ explicit Direction(float x = 0.0f, float y = 0.0f) : x(x), y(y) {}
float x, y;
};