Browse Source

Add new Shape types to the Shape StringMap

--HG--
branch : box2d-update
Bill Meltsner 14 years ago
parent
commit
551cf591e2
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/modules/physics/Shape.cpp
  2. 2 0
      src/modules/physics/Shape.h

+ 2 - 0
src/modules/physics/Shape.cpp

@@ -42,6 +42,8 @@ namespace physics
 	{
 		{"circle", Shape::SHAPE_CIRCLE},
 		{"polygon", Shape::SHAPE_POLYGON},
+		{"edge", Shape::SHAPE_EDGE},
+		{"chain", Shape::SHAPE_CHAIN},
 	};
 
 	StringMap<Shape::Type, Shape::SHAPE_MAX_ENUM> Shape::types(Shape::typeEntries, sizeof(Shape::typeEntries));

+ 2 - 0
src/modules/physics/Shape.h

@@ -38,6 +38,8 @@ namespace physics
 			SHAPE_INVALID,
 			SHAPE_CIRCLE, 
 			SHAPE_POLYGON,
+			SHAPE_EDGE,
+			SHAPE_CHAIN,
 			SHAPE_MAX_ENUM
 		};