Files
Bubberstation/code/datums/components
Afevis 9bd85aadfa Fixes inducers breaking when trying to charge a PDA/Modular Computer (#83087)
## About The Pull Request
Fixes #83035 - attached_circuit is not guaranteed to exist & we should
just pass the parent in that case.
## Why It's Good For The Game
Inducers no longer break permanently due to this issue.
## Changelog
🆑 ShizCalev
fix: Inducers no longer break completely after trying to charge a PDA
with them.
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com>
2024-05-07 03:29:46 +00:00
..
2024-05-03 07:36:31 +00:00
2024-04-26 01:22:24 +02:00
2024-04-28 22:24:01 +02:00
2024-04-29 21:15:33 +02:00
2024-04-28 22:24:01 +02:00
2024-04-26 01:22:24 +02:00
2024-02-20 01:00:11 +01:00
2024-03-01 19:05:23 +01:00
2024-04-26 01:22:24 +02:00
2024-04-26 01:22:24 +02:00
2024-04-26 01:22:24 +02:00
2024-04-29 21:15:33 +02:00
2024-04-29 21:15:33 +02:00
2024-04-28 22:24:01 +02:00
2024-04-28 22:24:01 +02:00
2024-04-23 20:43:45 +02:00
2024-04-29 21:15:33 +02:00
2024-04-28 22:24:01 +02:00
2024-04-16 06:05:57 +00:00
2024-04-29 21:15:33 +02:00
2024-04-28 22:24:01 +02:00
2024-04-26 01:22:24 +02:00

Datum Component System (DCS)

Concept

Loosely adapted from /vg/. This is an entity component system for adding behaviours to datums when inheritance doesn't quite cut it. By using signals and events instead of direct inheritance, you can inject behaviours without hacky overloads. It requires a different method of thinking, but is not hard to use correctly. If a behaviour can have application across more than one thing. Make it generic, make it a component. Atom/mob/obj event? Give it a signal, and forward it's arguments with a SendSignal() call. Now every component that want's to can also know about this happening.

HackMD page for an introduction to the system as a whole.

See/Define signals and their arguments in __DEFINES\components.dm