Files
Bubberstation/code/datums/components
MrMelbert 8dfd1fb627 Converts tippable behavior from cows and medibots to a component (tip over anything with adminbus) (#59705)
This PR converts cow-tipping and medibot-tipping into a component, /datum/component/tippable. Cows and medibots now use the tippable component to control their tipping behaviors.

This PR also goes through a few atom_attack_hand signals and makes them all send the same arguments.
2021-06-23 00:39:22 -03:00
..
2021-06-16 15:06:10 -07:00
2021-06-13 15:47:15 -03: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
2020-09-05 16:18:55 -03: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