about summary refs log tree commit diff
path: root/src/game/client/components/flow.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/flow.hpp')
-rw-r--r--src/game/client/components/flow.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/game/client/components/flow.hpp b/src/game/client/components/flow.hpp
new file mode 100644
index 00000000..351b1f69
--- /dev/null
+++ b/src/game/client/components/flow.hpp
@@ -0,0 +1,25 @@
+#include <base/vmath.hpp>
+#include <game/client/component.hpp>
+
+class FLOW : public COMPONENT
+{
+	struct CELL
+	{
+		vec2 vel;
+	};
+
+	CELL *cells;
+	int height;
+	int width;
+	int spacing;
+	
+	void dbg_render();
+	void init();
+public:
+	FLOW();
+	
+	vec2 get(vec2 pos);
+	void add(vec2 pos, vec2 vel, float size);
+	void update();
+};
+