From 74c3201555cd60f7720f4fcab356f66b10f43c2b Mon Sep 17 00:00:00 2001 From: aqys <141941584+aqys@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:30:08 +0100 Subject: [PATCH] Diagram update --- README.md | 110 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 64 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 62e453d..d0578f2 100644 --- a/README.md +++ b/README.md @@ -11,73 +11,91 @@ ```mermaid classDiagram - class IEquipment{ + class IEquipment { <> +void Equip() +void Unequip() +void Use() } - Food ..|> IEquipment - Gun ..|> IEquipment - class Person{ + class ICitizenBuilder { + <> + +ICitizenBuilder CreateAdult() + +ICitizenBuilder CreateChild() + +ICitizenBuilder WithGun() + +ICitizenBuilder WithFood() + +Person BuildCitizens() + } + + class Gun { + +string Name + +int Damage + +void Use() + } + class Food { + +string Name + +int HealthPoints + +void Use() + } + + class Person { <> +string Name +int Health - +List~Equipment~ Inventory - +Location Location - +int Money - +int Age - +void Walk() + +List~IEquipment~ Inventory } - AdultCitizen --|> Person - ChildCitizen --|> Person - IEquipment ..|> Person class AdultCitizen{ - } - class ChildCitizen{ + } - class Location{ + class ChildCitizen{ + + } + + class Location { <> +string Name } + class Store { + +Dictionary~object, int~ Inventory + } + + class Bank{ + + } + + class GunStore{ + + } + + class EggStore{ + + } + + class CitizenBuilder{ + + } + + class GameManager { + -List~Store~ Stores + +Task StartClock() + } + + Gun ..|> IEquipment + Food ..|> IEquipment + + AdultCitizen --|> Person + ChildCitizen --|> Person + Person o-- IEquipment + Bank --|> Location Store --|> Location - Person ..|> Location - - class Logger{ - <> - +void Log() - } - - class Food{ - +string Name - +int HealthPoints - +Use() - } - - class Gun{ - +string Name - +int Damage - +Use() - } - - class Store{ - +Dictionary~IEquipment int~ Inventory - } GunStore --|> Store EggStore --|> Store - IEquipment --|> Store - class SimulationManager{ - +void StartSim() - +List~Equipment~ Equipment - +List~Location~ Locations - } - IEquipment ..|> SimulationManager - Person ..|> SimulationManager - Location ..|> SimulationManager + CitizenBuilder ..|> ICitizenBuilder + CitizenBuilder --> Person + GameManager --> Store ``` \ No newline at end of file