Cogs.Core
AudioComponent.h
1#pragma once
2
3#include "Foundation/ComponentModel/Component.h"
4
5#include "Sound.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
12 {
13 static void registerType();
14
16
17 bool enabled = true;
18 bool loop = false;
19
20 float radius = 100.0f;
21 float volume = 1.0f;
22
23 float frequencyModulation = 1.0f;
24 float dopplerScale = 1.0f;
25 };
26 }
27}
28
29template<> inline Cogs::StringView getName<Cogs::Core::AudioComponent>() { return "AudioComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.