diff options
author | Jaro <jarorutjes07@gmail.com> | 2024-10-19 14:29:04 +0200 |
---|---|---|
committer | Jaro <jarorutjes07@gmail.com> | 2024-10-19 14:29:04 +0200 |
commit | 314baff9cdc711eee2f307f22e1def778360d9e8 (patch) | |
tree | 5f66275b8e6d92ea4147da6349d36fbde0a8f367 /img | |
parent | d4fbaad4ad83e430b8a28436c63a8e0f34abc762 (diff) | |
parent | 4760be8c90297857ba5c9cf82e2478039fdc9365 (diff) |
Merge branch 'master' of github.com:lonkaars/crepe-docs into jaro/research
Diffstat (limited to 'img')
-rw-r--r-- | img/facade-audio.puml | 49 | ||||
-rw-r--r-- | img/theme.ipuml | 20 |
2 files changed, 67 insertions, 2 deletions
diff --git a/img/facade-audio.puml b/img/facade-audio.puml new file mode 100644 index 0000000..60af60f --- /dev/null +++ b/img/facade-audio.puml @@ -0,0 +1,49 @@ +@startuml +!include theme.ipuml +skinparam Linetype ortho + +package crepe { + class Asset <<irrelevant>> + + class Sound { + +Sound(asset) + -- + +pause() + +play() + +rewind() + -volume : float <<+set>> <<+get>> + -looping : bool <<+set>> <<+get>> + -- + -sample : SoLoud::Wav + -handle : SoLoud::handle + -- + -load(asset) + } + + class SoundContext <<Singleton>> { + -instance() : SoundContext& <<static>> + -- + -SoundContext() + -~SoundContext() + -- + -engine : SoLoud::Soloud + } + + Sound .> SoundContext + SoundContext .> Sound + + Sound .left> Asset +} + +package SoLoud { + class Soloud <<irrelevant>> + class Wav <<irrelevant>> +} + +crepe.Sound --> SoLoud.Wav +crepe.SoundContext --> SoLoud.Soloud + +' LAYOUT +crepe -[hidden]down- SoLoud + +@enduml diff --git a/img/theme.ipuml b/img/theme.ipuml index 4e3613e..ae3b1c7 100644 --- a/img/theme.ipuml +++ b/img/theme.ipuml @@ -1,10 +1,26 @@ +' vim:ft=plantuml + !theme plain skinparam ClassAttributeIconSize 0 skinparam ClassFontStyle bold skinparam DefaultFontName Inter -skinparam DefaultFontSize 14 +skinparam DefaultFontSize 10 skinparam MaxMessageSize 200 skinparam Nodesep 25 -skinparam Padding 2 +' skinparam Padding 0 skinparam Ranksep 50 skinparam RoundCorner 0 +skinparam PackageStyle rectangle +skinparam PackageFontStyle italic + +hide class circle + +' class <<irrelevant>> for third-party classes +hide <<irrelevant>> stereotype +hide <<irrelevant>> members + +' rectangle <<group>> +hide <<group>> stereotype +skinparam Rectangle<<group>>BorderStyle dashed +skinparam Rectangle<<group>>BorderColor gray + |