Commit Graph

21 Commits

Author SHA1 Message Date
David Walker
7b5080a42b
NETSCRIPT: Add undocumented function printRaw() (#277)
This is analagous to tprintRaw (enabled by ns.iKnowWhatImDoing()), but
for logs instead of the terminal. This provides a supported* method of
creating complicated UIs for scripts.

*No actual support, expressed or implied, is provided for use of this
function.
2023-01-05 20:30:34 -05:00
omuretsu
7a384d53f4 typefix netscriptFunctions (see desc)
* Types for InternalFunction and ExternalFunction have been modified to actually typecheck ns functions against docs.
* Internal functions are required to use unknown for any params on the inner function.
* Return types for internal function inner-function must match the respective external function.
* Added new typecheck assertion function for asserting dynamic object types, to allow unknownifying params that were previously hardcoded objec structures.
* Because type assertion for parameter types and return types is enforced by InternalAPI, removed all duplicate type declarations on NetscriptFunction params and returns.
2022-10-12 08:49:27 -04:00
omuretsu
41b6f0b87b add hoop before exposing 2022-10-11 21:02:04 -04:00
omuretsu
7d07f44b3e move to global scope 2022-10-11 20:01:10 -04:00
omuretsu
84b99c569a extra printRaw function 2022-10-11 16:07:45 -04:00
Snarling
931ea730a5 Move entire ns object to top-level 2022-08-09 18:09:26 -04:00
Snarling
208495e269 Initial commit 2022-08-09 18:09:24 -04:00
Olivier Gagnon
5f229c9c67 yet another any 2022-07-18 02:33:21 -04:00
Olivier Gagnon
ae38b11ede made static ram cost typecheck that it's missing no property. 2022-05-24 18:34:00 -04:00
Olivier Gagnon
7685f52f8e fix import and make rainbow return the answer. 2022-04-14 15:23:49 -04:00
Olivier Gagnon
3336a6ff61 added openDevMeny 2022-04-13 13:47:48 -04:00
Olivier Gagnon
0fbcc30555 rm unused improt 2022-03-20 14:20:17 -04:00
Olivier Gagnon
06b2ec8957 allbuild commit /usr/bin/git 2022-03-18 11:18:08 -04:00
Olivier Gagnon
989d0709ed unknown-ify some code 2022-03-16 19:33:45 -04:00
Olivier Gagnon
e93be42e7c 2 new exploits 2022-03-16 14:34:05 -04:00
Olivier Gagnon
c21644397d Make alter reality harder 2021-11-12 19:28:52 -05:00
Olivier Gagnon
9f14f2b863 comment 2021-10-27 15:56:04 -04:00
Olivier Gagnon
c9565a2263 fix Alter Reality 2021-10-27 15:55:11 -04:00
Olivier Gagnon
738152d614 New sf -1 and changes to gang to rely more on territory 2021-10-26 23:02:46 -04:00
Olivier Gagnon
8f13363466 prettier 2021-10-11 16:38:50 -04:00
Olivier Gagnon
bb0bdb776b extracted some of the Netscript functions into their own file. 2021-10-04 22:25:21 -04:00