blob: b89c651bf4539c36404199adb7f46b9e2bfc4510 (
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
26
|
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: sound_emitter.hh
// Description: Component for entities that make sounds
#ifndef CLIENT_ENTITY_SOUND_EMITTER_HH
#define CLIENT_ENTITY_SOUND_EMITTER_HH
#pragma once
#include "core/resource/resource.hh"
struct SoundEffect;
struct SoundEmitter final {
resource_ptr<SoundEffect> sound;
ALuint source;
public:
explicit SoundEmitter(void);
virtual ~SoundEmitter(void);
public:
static void update(void);
};
#endif
|