Files
Bubberstation/code/datums/components
MrMelbert 4f2b55d05c Fix potential cleaner component runtimes (#92265)
## About The Pull Request

`pre_clean_callback` is asserted to be nullable, so this would runtime
if you have something with the default cleaner arguments

It probably shouldn't be invoked twice, anyways

## Changelog

Not player visible but could save a future coder or admin a minor
headache
2025-07-30 17:37:30 -04:00
..
2025-05-15 16:10:48 -04:00
2025-07-11 18:07:40 -04:00
2025-06-15 15:52:11 -04:00
2025-04-14 15:51:24 -04:00
2025-03-12 16:43:07 -04:00
2025-01-28 03:12:59 +01:00
2025-07-11 18:07:40 -04:00
2025-06-04 20:01:33 -04:00
2025-05-08 19:21:08 -04: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 its 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