aboutsummaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
Diffstat (limited to 'img')
-rw-r--r--img/facade-audio.puml49
-rw-r--r--img/theme.ipuml20
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
+