mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
doc for sleeve api
This commit is contained in:
committed by
danielyxie
parent
f8f4299ed5
commit
b132efbded
18
doc/source/netscript/sleeveapi/getTask.rst
Normal file
18
doc/source/netscript/sleeveapi/getTask.rst
Normal file
@@ -0,0 +1,18 @@
|
||||
getTask() Netscript Function
|
||||
=======================================
|
||||
|
||||
.. js:function:: getTask(sleeveNumber)
|
||||
|
||||
:param int sleeveNumber: index of the sleeve to retrieve task from.
|
||||
|
||||
Return the current task that the sleeve is performing. type is set to "Idle" if the sleeve isn't doing anything
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
{
|
||||
task: number, // task type
|
||||
crime: number, // crime currently attempting, if any
|
||||
location: number, // location of the task, if any
|
||||
gymStatType: number, // stat being trained at the gym, if any
|
||||
factionWorkType: number, // faction work type being performed, if any
|
||||
}
|
||||
Reference in New Issue
Block a user