about summary refs log tree commit diff
path: root/src/game/client/components/maplayers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/maplayers.h')
-rw-r--r--src/game/client/components/maplayers.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game/client/components/maplayers.h b/src/game/client/components/maplayers.h
new file mode 100644
index 00000000..9f70d9cb
--- /dev/null
+++ b/src/game/client/components/maplayers.h
@@ -0,0 +1,24 @@
+#ifndef GAME_CLIENT_COMPONENTS_MAPLAYERS_H
+#define GAME_CLIENT_COMPONENTS_MAPLAYERS_H
+#include <game/client/component.h>
+
+class CMapLayers : public CComponent
+{	
+	CLayers *m_pLayers;	// todo refactor: maybe remove it and access it through client*
+	int m_Type;
+
+	void MapScreenToGroup(float CenterX, float CenterY, CMapItemGroup *pGroup);
+	static void EnvelopeEval(float TimeOffset, int Env, float *pChannels, void *pUser);
+public:
+	enum
+	{
+		TYPE_BACKGROUND=0,
+		TYPE_FOREGROUND,
+	};
+
+	CMapLayers(int Type);
+	virtual void OnInit();
+	virtual void OnRender();
+};
+
+#endif