Commit Graph

19 Commits

Author SHA1 Message Date
deathride58
1998c3ff5c Update _component.dm 2017-12-04 16:15:14 -05:00
Jordan Brown
e36f4a5b22 SendSignal optimization 2017-12-04 05:29:56 -06:00
Emmett Gaines
b8e754500c Bitflag returns from component signals (#33186)
* For more useful returns from sendsignal

* removes a needless else/indentation

* cleanup
2017-12-01 13:09:22 -06:00
deathride58
eb722bf59f Merge branch 'master' into upstream-merge-33045 2017-11-24 00:10:36 +00:00
Jordan Brown
b2bb942817 Fixes component runtimes 2017-11-23 13:12:38 -06:00
Leo
598f0dc580 Merge pull request #32979 from tgstation/Cyberboss-patch-4
Adds some sanity checks to component creation
2017-11-23 05:47:32 -06:00
Emmett Gaines
95707bf1b7 fixes 512 compile reminders (#32582) 2017-11-11 14:33:22 -06:00
Emmett Gaines
8fb5936c30 fixes null parent in destroy for components (#32351)
* fixes parent being null in destroy

* extends qdel
2017-11-07 14:35:46 -06:00
Emmett Gaines
ec597c411e Signal redirection component (#32298)
* redirection component

* makes register signal accept callbacks

* this is a very lightweight component
2017-11-02 16:05:04 -05:00
LetterJay
d9a29dbda2 Merge branch 'master' into upstream-merge-32307 2017-11-01 07:22:39 -04:00
LetterJay
eb8b49071a Merge pull request #3725 from Citadel-Station-13/upstream-merge-32158
[MIRROR] Replace most islist calls in components with length()
2017-11-01 01:42:42 -04:00
oranges
17873819b3 Adds a temporary workaround for a BYOND bug 2017-10-31 21:20:13 -05:00
Jordan Brown
55653fa1ee Replace most islist calls in components with length() (#32158)
islist was used to check if a thing was

A. A list of things
B. 1 thing

length was profiled to be faster
2017-10-31 15:12:42 -05:00
Jordan Brown
0e037767cd Minor optimization for _GetInverseTypeList (#32155)
* Minor optimization for _GetInverseTypeList

* We also need to make sure the root component is never instantiated to avoid stack overflows
2017-10-31 15:11:25 -05:00
Jordan Brown
47f88be07f Fixes TakeComponent (#32156)
* Fixes TakeComponent

* Add the note about OnTransfer and COMPONENT_INCOMPATIBLE

* Fix behaviour

* Missed datum.dm
2017-10-30 03:53:00 -05:00
CitadelStationBot
1265e804c5 [MIRROR] Adds a method to transfer all components from one datum to another (#3661)
* Merge pull request #31941 from tgstation/Cyberboss-patch-2

Adds a method to transfer all components from one datum to another

* Adds a method to transfer all components from one datum to another
2017-10-28 01:19:48 -07:00
Jordan Brown
50f942ef4e Allows components to qdel from Initialize 2017-10-26 00:01:52 -05:00
Jordan Brown
08ecb0e322 RegisterSignal() can now accept a list (#31098)
* RegisterSignal may now accept a list of signals

* Update old calls to RegisterSignal()
2017-09-30 08:09:42 -05:00
CitadelStationBot
442689219e [MIRROR] SendSignal() speedup (#2910)
* SendSignal() speedup (#30929)

* Rename component.dm to _component.dm

* Merges RecieveSignal() into SendSignal()

* Makes ComponentActivated() and AfterComponentActivated() async

* SendSignal() speedup
2017-09-23 05:53:23 -05:00