Skip to content

Commit

Permalink
Merge pull request #192 from danielyxie/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
danielyxie authored Feb 15, 2018
2 parents ff3f6da + 1808afa commit 2e6c1b7
Show file tree
Hide file tree
Showing 38 changed files with 3,598 additions and 2,925 deletions.
55 changes: 0 additions & 55 deletions css/menupages.css
Original file line number Diff line number Diff line change
Expand Up @@ -609,61 +609,6 @@ div.faction-clear {
padding: 6px;
}

.gang-member-header {
background-color: #444;
font-size: 20px;
color: white;
margin: 6px 6px 0px 6px;
padding: 6px;
cursor: pointer;
width: 80%;
text-align: left;
border: none;
outline: none;
}

.gang-member-header.active,
.gang-member-header:hover {
background-color: #555;
}

.gang-member-header.active:hover {
background-color: #666;
}

.gang-member-header:after {
content: '\02795'; /* "plus" sign (+) */
font-size: 13px;
color: white;
float: right;
margin-left: 5px;
}

.gang-member-header.active:after {
content: "\2796"; /* "minus" sign (-) */
font-size: 13px;
color: white;
float: right;
margin-left: 5px;
}

.gang-member-panel {
margin: 0px 6px 6px 6px;
padding: 0px 6px 6px 6px;
width: 75%;
margin-left: 5%;
display: none;
background-color: #555;
overflow:auto;
}

.gang-member-panel div,
.gang-member-panel ul,
.gang-member-panel p,
.gang-member-panel ul > li {
background-color: #555;
}

#gang-management-subpage > p {
padding: 4px;
}
Expand Down
3 changes: 0 additions & 3 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/** This removes all padding and margins as well as
setting a default font size and family for the page **/

:root{
--my-font-color: #66ff33;
--my-background-color: #000000;
Expand Down
3,579 changes: 1,936 additions & 1,643 deletions dist/bundle.js

Large diffs are not rendered by default.

Binary file modified doc/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/build/doctrees/index.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscript.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptadvancedfunctions.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptdatatypes.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptfunctions.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscripthacknetnodeapi.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptixapi.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptloopsandconditionals.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptoperators.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptscriptarguments.doctree
Binary file not shown.
Binary file modified doc/build/doctrees/netscriptsingularityfunctions.doctree
Binary file not shown.
20 changes: 20 additions & 0 deletions doc/build/html/_sources/netscriptfunctions.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,26 @@ exec

exec("foo.script", "foodnstuff", 5, 1, "test");

spawn
^^^^^

.. js:function:: spawn(script, numThreads, [args...])

:param string script: Filename of script to execute
:param number numThreads: Number of threads to spawn new script with. Will be rounded to nearest integer
:param args...:
Additional arguments to pass into the new script that is being run.

Terminates the current script, and then after a delay of about 20 seconds it will execute the newly-specified script.
The purpose of this function is to execute a new script without being constrained by the RAM usage of the current one.
This function can only be used to run scripts on the local server.

Because this function immediately terminates the script, it does not have a return value.

The following example will execute the script 'foo.script' with 10 threads and the arguments 'foodnstuff' and 90::

spawn('foo.script', 10, 'foodnstuff', 90);

kill
^^^^

Expand Down
19 changes: 19 additions & 0 deletions doc/build/html/_sources/netscriptsingularityfunctions.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,25 @@ isBusy
Returns a boolean indicating whether or not the player is currently performing an 'action'. These actions include
working for a company/faction, studying at a univeristy, working out at a gym, creating a program, or committing a crime.

stopAction
----------

.. js:function:: stopAction()

If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function.
This function is used to end whatever 'action' the player is currently performing. The player
will receive whatever money/experience/etc. he has earned from that action.

The actions that can be stopped with this function are:

* Studying at a university
* Working for a company/faction
* Creating a program
* Committing a Crime

This function will return true if the player's action was ended. It will return false if the player was not
performing an action when this function was called.

upgradeHomeRam
--------------

Expand Down
8 changes: 6 additions & 2 deletions doc/build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,19 +367,23 @@ <h2 id="S">S</h2>
</li>
<li><a href="netscriptixapi.html#sellShort">sellShort() (built-in function)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="netscriptixapi.html#sellStock">sellStock() (built-in function)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="netscriptfunctions.html#serverExists">serverExists() (built-in function)</a>
</li>
<li><a href="netscriptixapi.html#shortStock">shortStock() (built-in function)</a>
</li>
<li><a href="netscriptfunctions.html#sleep">sleep() (built-in function)</a>
</li>
<li><a href="netscriptfunctions.html#spawn">spawn() (built-in function)</a>
</li>
<li><a href="netscriptfunctions.html#sprintf">sprintf() (built-in function)</a>
</li>
<li><a href="netscriptfunctions.html#sqlinject">sqlinject() (built-in function)</a>
</li>
<li><a href="netscriptsingularityfunctions.html#stopAction">stopAction() (built-in function)</a>
</li>
</ul></td>
</tr></table>
Expand Down
2 changes: 2 additions & 0 deletions doc/build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ <h2>What is Bitburner?<a class="headerlink" href="#what-is-bitburner" title="Per
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#sqlinject">sqlinject</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#run">run</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#exec">exec</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#spawn">spawn</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#kill">kill</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#killall">killall</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptfunctions.html#exit">exit</a></li>
Expand Down Expand Up @@ -173,6 +174,7 @@ <h2>What is Bitburner?<a class="headerlink" href="#what-is-bitburner" title="Per
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#purchaseprogram">purchaseProgram</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#getstats">getStats</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#isbusy">isBusy</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#stopaction">stopAction</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#upgradehomeram">upgradeHomeRam</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#getupgradehomeramcost">getUpgradeHomeRamCost</a></li>
<li class="toctree-l3"><a class="reference internal" href="netscriptsingularityfunctions.html#workforcompany">workForCompany</a></li>
Expand Down
2 changes: 2 additions & 0 deletions doc/build/html/netscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ <h1>Netscript Documentation<a class="headerlink" href="#netscript-documentation"
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#sqlinject">sqlinject</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#run">run</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#exec">exec</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#spawn">spawn</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#kill">kill</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#killall">killall</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptfunctions.html#exit">exit</a></li>
Expand Down Expand Up @@ -174,6 +175,7 @@ <h1>Netscript Documentation<a class="headerlink" href="#netscript-documentation"
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#purchaseprogram">purchaseProgram</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#getstats">getStats</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#isbusy">isBusy</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#stopaction">stopAction</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#upgradehomeram">upgradeHomeRam</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#getupgradehomeramcost">getUpgradeHomeRamCost</a></li>
<li class="toctree-l2"><a class="reference internal" href="netscriptsingularityfunctions.html#workforcompany">workForCompany</a></li>
Expand Down
30 changes: 30 additions & 0 deletions doc/build/html/netscriptfunctions.html
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,35 @@ <h2>exec<a class="headerlink" href="#exec" title="Permalink to this headline">¶
</div>
</dd></dl>

</div>
<div class="section" id="spawn">
<h2>spawn<a class="headerlink" href="#spawn" title="Permalink to this headline"></a></h2>
<dl class="function">
<dt>
<code class="descname">spawn</code><span class="sig-paren">(</span><em>script</em>, <em>numThreads</em><span class="optional">[</span>, <em>args...</em><span class="optional">]</span><span class="sig-paren">)</span></dt>
<dd><table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Arguments:</th><td class="field-body"><ul class="first last simple">
<li><strong>script</strong> (<em>string</em>) -- Filename of script to execute</li>
<li><strong>numThreads</strong> (<em>number</em>) -- Number of threads to spawn new script with. Will be rounded to nearest integer</li>
<li><strong>args...</strong> -- Additional arguments to pass into the new script that is being run.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<p>Terminates the current script, and then after a delay of about 20 seconds it will execute the newly-specified script.
The purpose of this function is to execute a new script without being constrained by the RAM usage of the current one.
This function can only be used to run scripts on the local server.</p>
<p>Because this function immediately terminates the script, it does not have a return value.</p>
<p>The following example will execute the script 'foo.script' with 10 threads and the arguments 'foodnstuff' and 90:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">spawn</span><span class="p">(</span><span class="s1">&#39;foo.script&#39;</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="s1">&#39;foodnstuff&#39;</span><span class="p">,</span> <span class="mi">90</span><span class="p">);</span>
</pre></div>
</div>
</dd></dl>

</div>
<div class="section" id="kill">
<h2>kill<a class="headerlink" href="#kill" title="Permalink to this headline"></a></h2>
Expand Down Expand Up @@ -1485,6 +1514,7 @@ <h3>Table Of Contents</h3>
<li class="toctree-l3"><a class="reference internal" href="#sqlinject">sqlinject</a></li>
<li class="toctree-l3"><a class="reference internal" href="#run">run</a></li>
<li class="toctree-l3"><a class="reference internal" href="#exec">exec</a></li>
<li class="toctree-l3"><a class="reference internal" href="#spawn">spawn</a></li>
<li class="toctree-l3"><a class="reference internal" href="#kill">kill</a></li>
<li class="toctree-l3"><a class="reference internal" href="#killall">killall</a></li>
<li class="toctree-l3"><a class="reference internal" href="#exit">exit</a></li>
Expand Down
21 changes: 21 additions & 0 deletions doc/build/html/netscriptsingularityfunctions.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,26 @@ <h2>isBusy<a class="headerlink" href="#isbusy" title="Permalink to this headline
working for a company/faction, studying at a univeristy, working out at a gym, creating a program, or committing a crime.</p>
</dd></dl>

</div>
<div class="section" id="stopaction">
<h2>stopAction<a class="headerlink" href="#stopaction" title="Permalink to this headline"></a></h2>
<dl class="function">
<dt id="stopAction">
<code class="descname">stopAction</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#stopAction" title="Permalink to this definition"></a></dt>
<dd><p>If you are not in BitNode-4, then you must have Level 1 of Source-File 4 in order to run this function.
This function is used to end whatever 'action' the player is currently performing. The player
will receive whatever money/experience/etc. he has earned from that action.</p>
<p>The actions that can be stopped with this function are:</p>
<ul class="simple">
<li>Studying at a university</li>
<li>Working for a company/faction</li>
<li>Creating a program</li>
<li>Committing a Crime</li>
</ul>
<p>This function will return true if the player's action was ended. It will return false if the player was not
performing an action when this function was called.</p>
</dd></dl>

</div>
<div class="section" id="upgradehomeram">
<h2>upgradeHomeRam<a class="headerlink" href="#upgradehomeram" title="Permalink to this headline"></a></h2>
Expand Down Expand Up @@ -656,6 +676,7 @@ <h3>Table Of Contents</h3>
<li class="toctree-l3"><a class="reference internal" href="#purchaseprogram">purchaseProgram</a></li>
<li class="toctree-l3"><a class="reference internal" href="#getstats">getStats</a></li>
<li class="toctree-l3"><a class="reference internal" href="#isbusy">isBusy</a></li>
<li class="toctree-l3"><a class="reference internal" href="#stopaction">stopAction</a></li>
<li class="toctree-l3"><a class="reference internal" href="#upgradehomeram">upgradeHomeRam</a></li>
<li class="toctree-l3"><a class="reference internal" href="#getupgradehomeramcost">getUpgradeHomeRamCost</a></li>
<li class="toctree-l3"><a class="reference internal" href="#workforcompany">workForCompany</a></li>
Expand Down
Binary file modified doc/build/html/objects.inv
Binary file not shown.
Loading

0 comments on commit 2e6c1b7

Please sign in to comment.