blob: cc57fe0a4803e8d5aafbab84b72feb7e1c9177b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <game/network/link.h>
#include <utility>
#include <vector>
class LinkHistory {
public:
using WEntry = std::pair<Link::WPtr, unsigned char /*dir*/>;
using Entry = std::pair<Link::CPtr, unsigned char /*dir*/>;
Entry add(const Link::WPtr &, unsigned char);
[[nodiscard]] Entry getCurrent() const;
[[nodiscard]] Entry getAt(float, float *) const;
private:
std::vector<WEntry> links;
float totalLen {0.F};
};
|