diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-18 23:14:53 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-18 23:14:53 +1000 |
commit | f6f91b18e834a5401f37217d09b69593de3cb4a5 (patch) | |
tree | b5d4c6662eb75708cb22282c27b97307d62fa042 /source/game/StarPlayer.hpp | |
parent | cd36a269fd1ccfd40ec09aca25285c6f9a875c43 (diff) |
Various improvements
You can now right click empty slots to insert one from swap.
Added unique sounds for the swap slot count incrementing/decrementing.
Material placement now plays sounds.
Diffstat (limited to 'source/game/StarPlayer.hpp')
-rw-r--r-- | source/game/StarPlayer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarPlayer.hpp b/source/game/StarPlayer.hpp index c70c21e..1773d23 100644 --- a/source/game/StarPlayer.hpp +++ b/source/game/StarPlayer.hpp @@ -342,7 +342,7 @@ public: bool inInteractionRange(Vec2F aimPos) const; void addParticles(List<Particle> const& particles) override; - void addSound(String const& sound, float volume = 1.0f) override; + void addSound(String const& sound, float volume = 1.0f, float pitch = 1.0f) override; bool wireToolInUse() const; void setWireConnector(WireConnector* wireConnector) const; @@ -611,7 +611,7 @@ private: List<RpcPromise<InteractAction>> m_pendingInteractActions; List<Particle> m_callbackParticles; - List<pair<String, float>> m_callbackSounds; + List<tuple<String, float, float>> m_callbackSounds; List<String> m_queuedMessages; List<ItemPtr> m_queuedItemPickups; |