Files
Bubberstation/code/datums/components
SSensum13 99d95aae62 Some ITEM_SLOT bitflags fixes. (#92441)
## About The Pull Request

This PR fixes wrong usage of bitflags in a few places, where instead of
bitfields lists were used.

## Why It's Good For The Game

It will help prevent problems that can be a thing in the future,
improving consistency of the codebase.
2025-08-19 22:30:33 -04:00
..
2024-10-19 08:04:33 -07:00
2024-10-09 02:03:50 +02:00
2024-11-25 18:54:51 -05:00
2025-05-15 16:10:48 -04:00
2024-10-19 08:04:33 -07:00
2024-10-19 08:04:33 -07:00
2025-04-14 15:51:24 -04:00
2024-10-19 08:04:33 -07:00
2025-01-11 11:38:00 -08:00
2024-04-29 21:15:33 +02:00
2025-03-12 16:43:07 -04:00
2025-01-22 20:50:07 -07: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
2024-10-19 08:04:33 -07: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