diff options
Diffstat (limited to 'img')
-rw-r--r-- | img/facade-audio.puml | 52 | ||||
-rw-r--r-- | img/theme.ipuml | 3 |
2 files changed, 55 insertions, 0 deletions
diff --git a/img/facade-audio.puml b/img/facade-audio.puml new file mode 100644 index 0000000..6749915 --- /dev/null +++ b/img/facade-audio.puml @@ -0,0 +1,52 @@ +@startuml +!include theme.ipuml +skinparam Linetype ortho + + +package crepe { + package api { + class Resource <<irrelevant>> + } + + class Sound { + +Sound(resource) + -- + +pause() + +play() + +rewind() + -volume : float <<+set>> <<+get>> + -looping : bool <<+set>> <<+get>> + -- + -sample : SoLoud::Wav + -handle : SoLoud::handle + -- + -load(resource) + } + + class SoundContext <<Singleton>> { + -instance() : SoundContext& <<static>> + -- + -SoundContext() + -~SoundContext() + -- + -engine : SoLoud::Soloud + } +} + +package SoLoud { + class Soloud <<irrelevant>> + class Wav <<irrelevant>> +} + +' layout +crepe -[hidden]down- SoLoud + +crepe.Sound --> SoLoud.Wav +crepe.SoundContext --> SoLoud.Soloud + +crepe.Sound .> crepe.SoundContext +crepe.SoundContext .> crepe.Sound + +crepe.Sound .> crepe.api.Resource + +@enduml diff --git a/img/theme.ipuml b/img/theme.ipuml index 4e3613e..f716ddf 100644 --- a/img/theme.ipuml +++ b/img/theme.ipuml @@ -8,3 +8,6 @@ skinparam Nodesep 25 skinparam Padding 2 skinparam Ranksep 50 skinparam RoundCorner 0 + +hide <<irrelevant>> stereotype +hide <<irrelevant>> members |