-
Notifications
You must be signed in to change notification settings - Fork 1
/
StreamAtPoint.h
36 lines (27 loc) · 906 Bytes
/
StreamAtPoint.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
//
// by Weikton 05.09.23
//
#pragma once
#include "../main.h"
#include "../game/common.h"
#include "LocalStream.h"
#include "Channel.h"
class StreamAtPoint : public LocalStream {
StreamAtPoint() = delete;
StreamAtPoint(const StreamAtPoint&) = delete;
StreamAtPoint(StreamAtPoint&&) = delete;
StreamAtPoint& operator=(const StreamAtPoint&) = delete;
StreamAtPoint& operator=(StreamAtPoint&&) = delete;
public:
explicit StreamAtPoint(uint32_t color, std::string name,
float distance, const VECTOR& position) noexcept;
~StreamAtPoint() noexcept = default;
public:
void SetPosition(const VECTOR& position) noexcept;
private:
void OnChannelCreate(const Channel& channel) noexcept override;
private:
VECTOR position;
};
using StreamAtPointPtr = std::unique_ptr<StreamAtPoint>;
#define MakeStreamAtPoint std::make_unique<StreamAtPoint>