From 44da8d4f03be549ddb8b56941e6ab7c3eaca5eca Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 29 Sep 2024 17:21:36 +0200 Subject: more facade class diagram --- img/facade-audio.puml | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) (limited to 'img/facade-audio.puml') diff --git a/img/facade-audio.puml b/img/facade-audio.puml index f760652..b256f47 100644 --- a/img/facade-audio.puml +++ b/img/facade-audio.puml @@ -4,33 +4,49 @@ skinparam Linetype ortho package crepe { - class Sound { - +Sound(crepe::api::Resource) + package api { + class Resource <> + } + class Sound { + +Sound(resource) + -- +pause() +play() +rewind() +set_volume(float) +set_looping(bool) - - -_handle : SoLoud::handle - -_paused : bool + -- + -sample : SoLoud::Wav + -handle : SoLoud::handle + -- + -load(resource) } - class SoundSystem { - + class SoundSystem <> { + -instance() : SoundSystem& <> + -- + -SoundSystem() + -~SoundSystem() + -- + -engine : SoLoud::Soloud } } package SoLoud { - class Soloud - class Wav + class Soloud <> + class Wav <> } ' layout crepe -[hidden]down- SoLoud -crepe.Sound ..> SoLoud.Wav -crepe.SoundSystem ..> SoLoud.Soloud +crepe.Sound --> SoLoud.Wav +crepe.SoundSystem --> SoLoud.Soloud + +crepe.Sound .> crepe.SoundSystem +crepe.SoundSystem .> crepe.Sound + +crepe.Sound .> crepe.api.Resource @enduml -- cgit v1.2.3