KSP-KOS / KOS

Fully programmable autopilot mod for KSP. Originally By Nivekk
Other
697 stars 230 forks source link

Please provide an API for enabling or disabling kOS from another mod #675

Open jwvanderbeck opened 9 years ago

jwvanderbeck commented 9 years ago

As discussed with @erendrake in IRC, we would like to request an API that allows a mod to enable or disable kOS with an optional message to the user as to why.

erendrake commented 9 years ago

If we are building an API for core suppression i would think it should be able to do the following.

Maybe:

Dunbaratu commented 9 years ago

I think we should peek at the stack trace to identify which other mod the method call came from, and make that part of the message. "kOS is being suppressed by _. for reason:: ____". (The first blank we fill in by examining the stack trace, and the second is the message we were passed by the other mod).

For these, I think the method we provide should be in two different places::