From bc21a68a5efb27d1004c2da12f2ceac62e3b8953 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 21 Jul 2025 08:42:02 +0000 Subject: [PATCH] Actualiser Home --- Home.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Home.md b/Home.md index 7dba040..51dca95 100644 --- a/Home.md +++ b/Home.md @@ -1,7 +1,7 @@ # Godot RTS Template documentation ## Principles -All units will use Static Function Modules, linked together through scripting to formulate the behaviors wanted for each unit, allowing great perfomance and customization, as RefCounted object type doesn't save any information, only works as Data Scripts. The idea is to use them to group similar methods or actions, for modules that needs to track it's values, them extending from Object should work, which can hold variables and track logics. +All units will use Static Function Modules, linked together through scripting to formulate the behaviors wanted for each unit, allowing great perfomance and customization, as [RefCounted](https://docs.godotengine.org/en/stable/classes/class_refcounted.html) object type doesn't save any information, only works as Data Scripts. The idea is to use them to group similar methods or actions, for modules that needs to track it's values, them extending from Object should work, which can hold variables and track logics. ![graph](img/RTS_classes_diag01.webp) @@ -23,10 +23,12 @@ We can keep track of metadata constants in a separate class to not mess things u - If we want only functions to be applied we shouldn't do `.new()` after loading a script. (Only use Static Functions) - If we want a script to hold variables then we should do `.new()` to create a instance of it. (Can use and store variables outside Function Scope) -> **Note** By not declaring an extent to a script file, it will automatically extend from `RefCounted` type - ![graph](img/module_example.webp) +> **Note** By not declaring an extent to a script file, it will automatically extend from [RefCounted](https://docs.godotengine.org/en/stable/classes/class_refcounted.html) type + + + ## Main classes see [Classes](classes) to have an exhaustive list of class and implementation ## [How to use](how-to-use)