mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
// LOVE
|
||||
#include <common/Object.h>
|
||||
#include <common/StringMap.h>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -32,13 +33,23 @@ namespace physics
|
||||
{
|
||||
public:
|
||||
|
||||
enum ShapeType
|
||||
enum Type
|
||||
{
|
||||
SHAPE_INVALID,
|
||||
SHAPE_CIRCLE,
|
||||
SHAPE_POLYGON,
|
||||
SHAPE_MAX_ENUM
|
||||
};
|
||||
|
||||
virtual ~Shape(){}
|
||||
virtual ~Shape();
|
||||
|
||||
static bool getConstant(const char * in, Type & out);
|
||||
static bool getConstant(Type in, const char *& out);
|
||||
|
||||
private:
|
||||
|
||||
static StringMap<Type, SHAPE_MAX_ENUM>::Entry typeEntries[];
|
||||
static StringMap<Type, SHAPE_MAX_ENUM> types;
|
||||
};
|
||||
|
||||
} // physics
|
||||
|
||||
Reference in New Issue
Block a user