Actualiser Home

Lucas 2025-07-21 08:42:02 +00:00
parent fb587c14b5
commit bc21a68a5e

@ -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)