mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
work to make documentation unified.
This commit is contained in:
@@ -4,8 +4,9 @@ getCurrentAction() Netscript Function
|
||||
.. js:function:: getCurrentAction()
|
||||
|
||||
:RAM cost: 1 GB
|
||||
:returns: An object that represents the player's current Bladeburner action.
|
||||
|
||||
Returns an object that represents the player's current Bladeburner action::
|
||||
Result::
|
||||
|
||||
{
|
||||
type: Type of Action
|
||||
@@ -14,3 +15,11 @@ getCurrentAction() Netscript Function
|
||||
|
||||
If the player is not performing an action, the function will return an object
|
||||
with the 'type' property set to "Idle".
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
action = bladeburner.getCurrentAction();
|
||||
print(action.type); // "Contracts"
|
||||
print(action.name); // "Tracking"
|
||||
|
||||
Reference in New Issue
Block a user