Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
IAudioManager.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "core/Event.hpp"
7
10 public:
11 virtual ~IAudioManager() = default;
12
14 virtual void init() = 0;
15
17 virtual void shutdown() = 0;
18
21 virtual void handleEvent(const Event& event) = 0;
22};
std::variant< MapSize, TileContent, TeamName, PlayerNew, PlayerPosition, PlayerLevel, PlayerInventory, PlayerExpulsion, PlayerBroadcast, IncantationStart, IncantationEnd, PlayerFork, PlayerResourceDrop, PlayerResourceTake, PlayerDeath, EggNew, EggHatch, EggDeath, TimeUnit, TimeUnitChange, GameEnd, ServerMessage, UnknownCommand, BadParameters, ServerUptime, ServerSpawnedEgg, WinDuration > Event
Represents an event received from the server. Is a variant of all possible events,...
Definition Event.hpp:188
Interface for managing audio in the application.
virtual void shutdown()=0
Cleans up audio resources and shuts down the subsystem.
virtual ~IAudioManager()=default
virtual void init()=0
Initializes the audio subsystem.
virtual void handleEvent(const Event &event)=0
Processes a game event to trigger the appropriate sound.