aboutsummaryrefslogtreecommitdiff
path: root/img/class-scripts.puml
blob: 8fc36c9857ac3636a6f8b0ee87fc1b4bacc7bce0 (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
@startuml
!include theme.ipuml
skinparam Linetype ortho
skinparam Nodesep 75
skinparam Ranksep 30

class ComponentManager <<irrelevant>>

package api {
	class Component <<irrelevant>>

	class Script {
		# init() <<virtual>>
		# update() <<virtual>>
		--
		- Script()
	}

	class BehaviorScript {
		# BehaviorScript()
		+ ~BehaviorScript()
		--
		+ set_script<T>() : this &
		--
		# script : Script *
	}

	BehaviorScript -u-|> Component
	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