Commit Graph

21 Commits

Author SHA1 Message Date
Tom Prince
b277975656
EDITOR: Provide type definitions for React and ReactDOM in in-game editor. (#1458)
* Fix the type declaration of `!!raw-loader!` modules.

Instead of declaring them to export an object with a single key
`default` which is a string, the modules have a default export, which
is a string.

Note, that this doesn't actually change the generated code, just the
types that typescript sees. The code worked before because the only
thing done to the values was to coerce the values to a string, which
turned into a no-op.

* Switch from using `raw-loader` to using a source asset module.

`raw-loader` was deprecated in webpack v5.
2024-07-07 00:08:33 -07:00
Snarling
6669c4da6a
BLADEBURNER: Typesafety / refactoring (#1154) 2024-03-28 21:52:37 -04:00
Shy
aba2336093
add purchasedPlayer to RFA server data (#1103) 2024-02-17 00:11:29 -05:00
Shy
c894aba8f5
BUGFIX: fix double stringify on server array (#1100)
The server array that the RFA currently sends is stringified twice. I fixed that and also added a proper ResultType for the new data
2024-02-15 16:27:03 -08:00
Shy
903f812424
REMOTE: add 'getAllServers' method to RFA (#1058) 2024-02-10 06:31:35 -05:00
Miłosz Giera
1b03618555
REMOTE: Added possibility to change target IP of remote API (#943) 2024-01-07 07:57:54 -05:00
Snarling
6732549196
ENUMS: Initial Enum Helper rework + Reorganization (#596) 2023-06-12 00:34:20 -04:00
Snarling
ebae35b1fb
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501) 2023-05-05 03:55:59 -04:00
Snarling
e0272ad4af
FILES: Path rework & typesafety (#479)
* Added new types for various file paths, all in the Paths folder.
* TypeSafety and other helper functions related to these types
* Added basic globbing support with * and ?. Currently only implemented for Script/Text, on nano and download terminal commands
* Enforcing the new types throughout the codebase, plus whatever rewrites happened along the way
* Server.textFiles is now a map
* TextFile no longer uses a fn property, now it is filename
* Added a shared ContentFile interface for shared functionality between TextFile and Script.
* related to ContentFile change above, the player is now allowed to move a text file to a script file and vice versa.
* File paths no longer conditionally start with slashes, and all directory names other than root have ending slashes. The player is still able to provide paths starting with / but this now indicates that the player is specifying an absolute path instead of one relative to root.
* Singularized the MessageFilename and LiteratureName enums
* Because they now only accept correct types, server.writeToXFile functions now always succeed (the only reasons they could fail before were invalid filepath).
* Fix several issues with tab completion, which included pretty much a complete rewrite
* Changed the autocomplete display options so there's less chance it clips outside the display area.
* Turned CompletedProgramName into an enum.
* Got rid of programsMetadata, and programs and DarkWebItems are now initialized immediately instead of relying on initializers called from the engine.
* For any executable (program, cct, or script file) pathing can be used directly to execute without using the run command (previously the command had to start with ./ and it wasn't actually using pathing).
2023-04-24 10:26:57 -04:00
Snarling
0df984eea0
CODEBASE: Add Jsonable Map and Set types, move player.sourceFiles to a map (#473) 2023-04-18 03:19:45 -04:00
Snarling
759f86d6e5
NETSCRIPT: Rework script ram updates (#408) 2023-03-05 22:39:42 -05:00
Snarling
572c68738f Unify error handling 2022-09-27 15:34:47 -04:00
Olivier Gagnon
b5a2319df7 Refactor game options into separate components 2022-08-29 15:56:38 -04:00
Zoë Hoekstra
793255aecd
Remove replacement of "export " to "" 2022-08-28 22:39:01 +02:00
Zoë Hoekstra
45c15c9953
Extract result type and correct it for getAllFiles 2022-08-26 11:31:37 +02:00
Zoë Hoekstra
ceb4a05289
Fix type of RFAMessages with non-String results 2022-08-26 11:17:47 +02:00
Olivier Gagnon
3d8616b3a7 Did some changes of the remote api and added documentation 2022-08-23 17:50:31 -04:00
Zoë Hoekstra
88d8f13847
Cleanup + lint/format 2022-08-11 19:48:13 +02:00
Zoë Hoekstra
2628dc1ae8
Start RFA connection on gamestart, test connection on bauble creation immediately 2022-08-11 19:48:13 +02:00
Zoë Hoekstra
5fc67c328b
Add setting UI for port/reconnect, swap wrong API handlers 2022-08-11 19:48:12 +02:00
Zoë Hoekstra
d20f621b47
Add RFA backend 2022-08-11 19:48:12 +02:00