Files
Bubberstation/code/datums/components
SkyratBot 4a7fe34e03 [MIRROR] Fixes pop restricted uplink items not properly unlocking (#5039)
* Fixes pop restricted uplink items not properly unlocking (#58542)

Makes it so if you become a traitor when specific items are pop locked, they will update accordingly as the population increases.

* Fixes pop restricted uplink items not properly unlocking

Co-authored-by: Seth Scherer <supernovaa41@protonmail.com>
2021-04-20 16:28:20 +01:00
..
2021-02-19 16:08:09 +00:00
2021-04-18 20:47:10 +02:00
2021-03-07 02:29:00 +00:00
2021-02-19 16:08:09 +00: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.

See this thread for an introduction to the system as a whole.

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