From 5976b47a16c9332da3243fa0e48f34629eb76070 Mon Sep 17 00:00:00 2001 From: heaven Date: Sat, 19 Jul 2025 20:37:42 +0200 Subject: [PATCH] ffdgfg --- src/content/posts/the-ecs-system.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/content/posts/the-ecs-system.md b/src/content/posts/the-ecs-system.md index 2ba1dd7..964f2d5 100644 --- a/src/content/posts/the-ecs-system.md +++ b/src/content/posts/the-ecs-system.md @@ -134,17 +134,17 @@ Here is roughly what I came up with: #include "raylib.h" namespace DREAM { - struct Health { int health = 100; }; + struct Health { int value = 100; }; - struct Attack { int attack = 1; }; + struct Attack { int value = 1; }; - struct Defense { int defense = 1; }; + struct Defense { int value = 1; }; - struct Level { uint8_t level = 1; }; + struct Level { uint8_t value = 1; }; - struct Position { Vector2 position = {0.0f, 0.0f}; }; + struct Position { Vector2 value = {0.0f, 0.0f}; }; - struct Velocity { Vector2 velocity = {0.0f, 0.0f}; }; + struct Velocity { Vector2 value = {0.0f, 0.0f}; }; } ```