Added compile time switch to switch between 2d and 3d mode.

This commit is contained in:
Relintai 2019-04-22 10:25:41 +02:00
parent d46e7909f7
commit 8f0815ce66
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -11,7 +11,7 @@
#include "core/vector.h"
#include "item_instance.h"
#include "player_talent.h"
#include "scene/3d/physics_body.h"
#include "scene/2d/physics_body_2d.h"
#include "../data/spell.h"
#include "stats/stat.h"
@ -126,8 +126,8 @@ enum PlayerSendFlags {
};
#ifdef ENTITIES_2D
class Entity : public KinematicBody {
GDCLASS(Entity, KinematicBody);
class Entity : public KinematicBody2D {
GDCLASS(Entity, KinematicBody2D);
#else