Files
Bubberstation/code/datums/components
Ghom 05e0f03f30 "You step on the floor!" caltrop fixes (#61279)
The chat feedback for stepping on an object with a caltrop component still erroneously reads out the turf instead of the object.
2021-09-08 21:00:26 +01:00
..
2021-08-31 12:28:20 +01:00
2021-07-19 12:41:21 -04:00
2021-08-02 18:14:14 -07:00
2021-08-02 18:14:14 -07:00
2021-06-08 15:04:35 -07:00
2021-06-16 15:06:10 -07:00
2021-02-20 23:16:35 -03:00
2021-03-07 02:19:38 +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.

HackMD page for an introduction to the system as a whole.

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