mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
26 lines
321 B
C++
26 lines
321 B
C++
#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();
|
|
};
|
|
|