about summary refs log tree commit diff
path: root/src/game/client/components/flow.hpp
blob: 351b1f69e17c1e8f49af191cc6564bfcf10c3ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
};