-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.puml
32 lines (27 loc) · 1014 Bytes
/
graphics.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@startuml
package graphics {
class "LibGDXGraphics" as graphicsLibGDXGraphics {
+drawText(TextComponent textComponent, PositionComponent positionComponent): void
+drawSquare(PositionComponent positionComponent, float width, float height, float r, float g, float b, float a): void
+draw(SpriteComponent component, PositionComponent positionComponent): void
}
}
package ecs.components {
class "PositionComponent" as ecscomponentsPositionComponent {
}
class "SpriteComponent" as ecscomponentsSpriteComponent {
}
class "TextComponent" as ecscomponentsTextComponent {
+setColor(Vector3 color): void
}
}
package ecs {
interface "GraphicsController" as ecsGraphicsController {
+draw(SpriteComponent spriteComponent, PositionComponent positionComponent): void
}
}
graphicsLibGDXGraphics --> ecscomponentsSpriteComponent
graphicsLibGDXGraphics --> ecscomponentsTextComponent
graphicsLibGDXGraphics --> ecscomponentsPositionComponent
graphicsLibGDXGraphics --> ecsGraphicsController
@enduml