Files
S.P.L.U.R.T-Station-13/code/datums/components
silicons f7937e54e0 Merge pull request #15860 from shellspeed1/public-bounties
Port of public bounties and the sales tagger from tg.
2022-10-12 03:27:37 -07:00
..
2022-06-15 17:20:15 -04:00
2022-06-14 06:04:01 +02:00
2021-11-18 14:57:19 -03:00
2022-02-25 16:58:09 -03:00
2021-11-14 21:34:59 +01:00
2022-09-16 17:55:10 -07:00
2022-04-06 18:41:31 -03:00
2022-04-06 18:41:31 -03:00
2021-06-21 09:18:06 -07:00
2021-12-08 16:17:35 -08:00
fix
2021-06-28 13:24:12 -07:00
2022-02-25 16:58:09 -03:00
2021-05-06 02:09:06 -07:00
e
2021-12-03 18:29:13 +01:00
2022-02-25 16:58:09 -03:00
2022-03-18 18:35:29 -03:00
2021-12-08 16:17:35 -08:00
2022-02-25 16:58:09 -03:00
2021-10-30 11:45:50 +08: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