Files
Bubberstation/code/datums/components
SkyratBot cbad73c7d3 [MIRROR] Fixes cigarettes making you so lame that they spill the spaghetti from your pockets (and also keep falling off) (#6018)
* Fixes cigarettes making you so lame that they spill the spaghetti from your pockets (and also keep falling off) (#59352)

Wack

Fixes #59342
Changelog

🆑
fix: Smoking no longer spills spaghetti from your pockets
fix: Lit cigarettes no longer keep falling off
spellcheck: Removed extra "the" from item knockdown messages
/🆑

* Fixes cigarettes making you so lame that they spill the spaghetti from your pockets (and also keep falling off)

Co-authored-by: Mickyan <38563876+Mickyan@users.noreply.github.com>
2021-05-30 00:52:09 +01:00
..
2021-03-07 02:29:00 +00:00
2021-05-02 22:58:31 +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