X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFrame.h;h=defa6b18ab303c175e66226e41969c1ff56a235d;hb=1907ca03c5e865c4d398170042aa384c67ffff29;hp=59aa1fb0c74486b99c05be713030cd5a9d7a9650;hpb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;p=l2e.git diff --git a/src/graphics/Frame.h b/src/graphics/Frame.h index 59aa1fb..defa6b1 100644 --- a/src/graphics/Frame.h +++ b/src/graphics/Frame.h @@ -16,6 +16,9 @@ namespace graphics { class Frame { +public: + static const int TYPE_ID = 405; + public: explicit Frame(SDL_Surface *s = 0, int borderWidth = 1, int borderHeight = 1, int repeatWidth = 1, int repeatHeight = 1, int xOffset = 0, int yOffset = 0) : surface(s), borderSize(borderWidth, borderHeight), repeatSize(repeatWidth, repeatHeight), offset(xOffset, yOffset) { } @@ -37,6 +40,9 @@ public: void SetRepeatSize(const geometry::Vector &s) { repeatSize = s; } void SetOffset(const geometry::Vector &o) { offset = o; } + static void CreateTypeDescription(); + static void Construct(void *); + private: SDL_Surface *surface; geometry::Vector borderSize;