Files
GS13NG/code/datums/components
Ghom b280c0f550 Merge pull request #12622 from timothyteakettle/grammar-fixes
big batch of spelling/grammar corrections
2020-06-29 21:13:06 +02:00
..
2020-06-27 02:12:44 +01:00
2020-06-10 23:14:25 +01:00
2020-06-02 15:29:51 -07:00
2020-06-10 23:14:25 +01:00
2020-04-23 00:59:23 +02:00
2020-06-17 21:32:10 -07:00
2020-05-30 22:29:41 -07:00
2020-06-24 23:32:31 +02:00
2020-06-11 21:45:32 +01:00
2020-06-10 23:14:25 +01:00
2020-06-02 15:23:09 -07:00
2020-04-23 15:15:26 +02:00
2020-06-08 06:12:51 +02:00
2020-05-31 02:20:20 +02:00
2020-06-11 20:18:36 +01:00
2020-05-08 22:12:27 +02:00
2020-04-22 22:01:39 +02:00
2020-06-24 23:18:03 +02:00
2020-04-23 00:59:23 +02:00
2020-04-06 19:49:06 +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.

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

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