blob: 44cbe85333fc8c8fcfd63f52fd75a75f6c8d812c (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
@startuml
!include theme.ipuml
skinparam Linetype ortho
skinparam Nodesep 75
skinparam Ranksep 30
class ComponentManager <<irrelevant>>
package api {
class Component <<irrelevant>>
class Script {
- Script()
--
# init() <<virtual>>
# update() <<virtual>>
--
- parent : BehaviorScript *
}
class BehaviorScript {
# BehaviorScript()
+ ~BehaviorScript()
--
+ set_script<T>() : this &
--
# script : Script *
}
BehaviorScript -u-|> Component
Script <.u. BehaviorScript : > friend
Script ..u> BehaviorScript
}
class System <<irrelevant>>
class ScriptSystem <<Singleton>> {
+ get_instance() : ScriptSystem & <<static>>
+ update()
--
- ScriptSystem()
- ~ScriptSystem()
}
System <|-- ScriptSystem
ScriptSystem .[norank]> ComponentManager
ScriptSystem .[norank]> api.Script : < friend
ScriptSystem .[norank]> api.BehaviorScript : < friend
ComponentManager .[norank]> api.BehaviorScript : < friend
@enduml
|