Files
Bubberstation/code/datums/components
jimmyl 85665fc6da Fixes the supermatter not dusting you when you fall on top of it from a z-level (#74535)
## About The Pull Request

fixes SM not dusting you if you fall on top of it from a z level
literally nobody tested the code lmao

## Why It's Good For The Game

bug bad

## Changelog
🆑
fix: SM now dusts you if you fall on top of it from another Z level
/🆑
2023-04-06 16:26:14 -06:00
..
2023-01-17 10:02:20 -08:00
2023-04-04 16:04:27 -05:00
2022-12-28 12:48:08 +01:00
2023-04-05 16:54:22 +01: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