Files
Bubberstation/code/datums/components
tralezab d9329f3e8f Fixes spirit holding component not working on null rods by adding the subtype picker component to null rods (#60767)
Null rods were not calling parent on attack_self and thus not sending signals to the component. DUMB! STINKY!!!!

I have elected to make subtype picking a component itself so this mistake will never be remade

fixes #60712 (possessed blades cannot awaken a spirit)

also, fixes spirit holder not making sounds
2021-10-02 00:11:55 -07:00
..
2021-09-24 13:39:46 +01:00
2021-09-24 18:44:23 -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