-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStreamInfo.h
42 lines (34 loc) · 918 Bytes
/
StreamInfo.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// by Weikton 05.09.23
//
#pragma once
#include "../main.h"
enum class StreamType
{
None,
GlobalStream,
LocalStreamAtPoint,
LocalStreamAtVehicle,
LocalStreamAtPlayer,
LocalStreamAtObject
};
struct StreamInfo {
StreamInfo() = default;
StreamInfo(const StreamInfo&) = default;
StreamInfo(StreamInfo&&) = default;
StreamInfo& operator=(const StreamInfo&) = default;
StreamInfo& operator=(StreamInfo&&) = default;
public:
StreamInfo(StreamType type, uint32_t color, std::string name, float distance) noexcept;
~StreamInfo() noexcept = default;
public:
StreamType GetType() const noexcept;
uint32_t GetColor() const noexcept;
const std::string& GetName() const noexcept ;
float GetDistance() const noexcept;
private:
StreamType type { StreamType::None };
uint32_t color { -1u };
std::string name;
float distance { -1.0 };
};