From 935839d14e553c09fc3ab992df9977c803b684c9 Mon Sep 17 00:00:00 2001 From: smallbenji Date: Tue, 24 Mar 2026 14:05:35 +0100 Subject: [PATCH] update diagram --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/README.md b/README.md index e69de29..d2431b9 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,68 @@ +```mermaid +classDiagram + class IEquipment{ + <> + +void Equip() + +void Unequip() + } + Food ..|> IEquipment + + class Person{ + <> + +string Name + +int Health + +List~Equipment~ Inventory + +Location Location + +int Money + +int Age + +void Walk() + } + AdultCitizen --|> Person + ChildCitizen --|> Person + IEquipment ..|> Person + + class AdultCitizen{ + } + class ChildCitizen{ + } + + class Location{ + <> + +string Name + } + Bank --|> Location + Store --|> Location + Person ..|> Location + + class Logger{ + <> + +void Log() + } + + class Food{ + +string Name + +int HealthPoints + } + + class Gun{ + +string Name + +int Damage + } + + 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 + +``` \ No newline at end of file