Add uml/main2.wsd

This commit is contained in:
2025-07-27 15:38:52 +02:00
parent 6e51a1284d
commit b56202d487

67
uml/main2.wsd Normal file
View File

@@ -0,0 +1,67 @@
@startuml GameEngine
package Game {
class Game {
+ name: String
+ levels[]: Level
+ currentLevel: Level
+ gameJSON: String
+ SetLevel(Level lvl)
}
class Level {
+ name: String
+ gameObjects[]: gameObject
+ load()
+ start()
+ draw()
+ update()
+ destroy(int id)
}
class GameObject {
+ id: int
+ x: double
+ y: double
+ width: double
+ height: double
+ img: Image
+ layer: int
+ load()
+ unload()
+ start()
+ draw()
+ update()
}
}
package Frontend {
}
package Backend {
}
package Builder {
}
json MainGameJSON{
"name":"GameName",
"levels": [{
"name":"Level1",
"objects": ["object1", {
"name":"gameObject2",
"X":0,
"Y":0,
"Width":100,
"Height":100,
"img":"Image",
"layer":1,
"load":"load()",
"start":"start()",
"update":"update()",
"unload":"unload()"
}
]
}, "Level2"]
}
@enduml