mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Timed Life Components (#22442)
This PR adds a new abstract kind of component, called a Timed Life Component, which acts like a component version of a timer. It has some significant advantages over a traditional timer, namely that unlike a timer, a TLC can do things like call RegisterSignal() and thus inject code dynamically into other codepaths. Unlike a timer, it also inherits the lifetime handling of components, meaning it will never produce a memory leak. I needed this for a giant list of things that several lore teams have asked me to make, as well as several stuff related to the current Event Arc. Please don't leave me hanging on this.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
author: Hellfirejag
|
||||
delete-after: True
|
||||
changes:
|
||||
- rscadd: "Added a new type of component called Timed Life Component, which will delete itself after a certain amount of time has passed. Effectively a timer that can interact with signals."
|
||||
Reference in New Issue
Block a user