about summary refs log tree commit diff
path: root/src/game/client/components/flow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/flow.h')
-rw-r--r--src/game/client/components/flow.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/client/components/flow.h b/src/game/client/components/flow.h
new file mode 100644
index 00000000..e8134797
--- /dev/null
+++ b/src/game/client/components/flow.h
@@ -0,0 +1,28 @@
+#ifndef GAME_CLIENT_COMPONENTS_FLOW_H
+#define GAME_CLIENT_COMPONENTS_FLOW_H
+#include <base/vmath.h>
+#include <game/client/component.h>
+
+class CFlow : public CComponent
+{
+	struct CCell
+	{
+		vec2 m_Vel;
+	};
+
+	CCell *m_pCells;
+	int m_Height;
+	int m_Width;
+	int m_Spacing;
+	
+	void DbgRender();
+	void Init();
+public:
+	CFlow();
+	
+	vec2 Get(vec2 Pos);
+	void Add(vec2 Pos, vec2 Vel, float Size);
+	void Update();
+};
+
+#endif