Files
Bubberstation/code/datums/components
Jonathan Rubenstein e6eee237d5 Add Show Hiddenprints action to VV on atoms (#58657)
This displays the hiddenprint log from /datum/component/forensics in a simple to view form, sorted by last touch. I didn't make it fancy, it's very bare bones.

I could have refactored hiddenprints to use lists in lists, which would make getting data out a lot easier, but I worry about the additional memory overhead on every atom that gets touched, so I left it as strings in lists. I did reformat it a little bit, however, to make it simpler to sort, and it looks a little nicer. Namely moving the timestamp in front of the name.

It can help a lot in admin investigations on whodunnit. Right now they have to look at the forensics component, and that's if they even know about it. This way it is discoverable by using the VV tool.
2021-04-26 01:27:03 -07:00
..
2021-02-19 12:06:18 -03:00
2021-02-19 12:06:18 -03:00
2021-01-07 14:31:24 -08:00
2020-11-30 12:48:40 -05:00
2021-03-11 22:45:30 -08:00
2021-01-21 18:44:54 -08:00
2021-04-13 13:10:36 +12:00
2021-02-20 23:16:35 -03:00
2021-03-07 02:19:38 +00:00
2021-02-19 12:06:18 -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.

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

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