Files
GS13NG/code/datums/components
Lin 6f97ec2b1d Merge pull request #15656 from deathride58/animfix
Animation refresh - Fully restores animations broken by BYOND updates, some light animation-related tweaks, and more
2022-06-07 18:05:07 +00: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
2021-04-26 14:21:59 -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-07-29 13:57:19 +03: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
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