mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 01:51:46 +00:00
About The Pull Request
This was doing things component really shouldn't be doing, and now all
of its behaviour is contained onto a datum, as it should've been the
whole time
Why It's Good For The CODEBASE
some things just really shouldn't be components, this was made back when DCS was first implemented and just thrown in because it was the new hot thing i guess, but datumized forensics makes far more sense, AND doesn't use GetComponent
TODO:
More thorough testing to make sure nothing broke
Changelog
🆑
refactor: Turned the forensics component into a datum.
/🆑
11 lines
570 B
Plaintext
11 lines
570 B
Plaintext
/// Returns the fingerprints on this atom
|
|
#define GET_ATOM_FINGERPRINTS(atom) atom.forensics?.fingerprints
|
|
/// Returns the hidden prints on this atom
|
|
#define GET_ATOM_HIDDENPRINTS(atom) atom.forensics?.hiddenprints
|
|
/// Returns the blood dna on this atom
|
|
#define GET_ATOM_BLOOD_DNA(atom) atom.forensics?.blood_DNA
|
|
/// Returns the fibers on this atom
|
|
#define GET_ATOM_FIBRES(atom) atom.forensics?.fibers
|
|
/// Returns the number of unique blood dna sources on this atom
|
|
#define GET_ATOM_BLOOD_DNA_LENGTH(atom) (isnull(atom.forensics) ? 0 : length(atom.forensics.blood_DNA))
|