Update Osztály diagram authored by Horváth István's avatar Horváth István
......@@ -129,9 +129,9 @@ Color <-- GameOverview
```
# `Presentation.World` komponens (játéktér megjelenés)
Minden osztály, ami nem származik le a `ScriptableObject`-ből, az leszármazik a `MonoBehaviour`-ből.
Minden osztály, ami `...Data` elnevezéssel rendelkezik, az a `ScriptableObject`-ből, minden más osztály pedig a `MonoBehaviour`-ből származik le.
```plantuml
package Presentation.World {
package Presentation.View {
enum PrepareStage {
BUILDING_TOWERS
PURCHASING_UNITS
......@@ -168,7 +168,7 @@ package Presentation.World {
Update(float): void
}
class UnitData extends ScriptableObject {
class UnitData {
AliveSprite: Sprite
DestroyedSprite: Sprite
AttackEffect: GameObject
......@@ -185,7 +185,7 @@ package Presentation.World {
abstract class Building {
}
class CastleData extends ScriptableObject {
class CastleData {
AmbientEffect: GameObject
ExplosionEffect: GameObject
IntactSprite: Sprite
......@@ -200,7 +200,7 @@ package Presentation.World {
Destroy(): void
}
class ProjectileData extends ScriptableObject {
class ProjectileData {
Sprite: Sprite
FlyingEffect: GameObject
ImpactEffect: GameObject
......@@ -217,15 +217,45 @@ package Presentation.World {
Update(float): void
}
class TowerData extends ScriptableObject{
class TowerData {
TowerSprite: Sprite
ShootingEffect: GameObject
AmbientEffect: GameObject
}
class Obstacle extends Building {
Start(): void
Update(float): void
}
class Barrack extends Building {
Start(): void
Update(float): void
}
class TileData {
Sprite: Sprite
AmbientEffect: GameObject
}
class BarrackData {
Sprite: Sprite
AmbientEffect: GameObject
SpawnEffect: GameObject
}
class ObstacleData {
Sprite: Sprite
AmbientEffect: GameObject
}
Obstacle o-- ObstacleData
Barrack o-- BarrackData
Unit o-- UnitData
World o-- Tile
Tile o-- TileData
Tile o-- Building
World o-- Unit
......
......