mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
IPVGO: Fix formatting to avoid breaking external editors (#1215)
This commit is contained in:
parent
ed59f325ef
commit
dd3975ab1d
@ -9,7 +9,7 @@ Returns a promise that resolves with the success or failure state of your last m
|
|||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
opponentNextTurn(logOpponentMove: boolean = true): Promise<{
|
opponentNextTurn(logOpponentMove?: boolean): Promise<{
|
||||||
type: "move" | "pass" | "gameOver";
|
type: "move" | "pass" | "gameOver";
|
||||||
x: number | null;
|
x: number | null;
|
||||||
y: number | null;
|
y: number | null;
|
||||||
@ -20,7 +20,7 @@ opponentNextTurn(logOpponentMove: boolean = true): Promise<{
|
|||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| logOpponentMove | boolean | _(Optional)_ optional, if false prevents logging opponent move |
|
| logOpponentMove | boolean | _(Optional)_ optional, defaults to true. if false prevents logging opponent move |
|
||||||
|
|
||||||
**Returns:**
|
**Returns:**
|
||||||
|
|
||||||
|
@ -8,5 +8,12 @@
|
|||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
type GoOpponent = "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati" | "????????????";
|
type GoOpponent =
|
||||||
|
| "Netburners"
|
||||||
|
| "Slum Snakes"
|
||||||
|
| "The Black Hand"
|
||||||
|
| "Tetrads"
|
||||||
|
| "Daedalus"
|
||||||
|
| "Illuminati"
|
||||||
|
| "????????????";
|
||||||
```
|
```
|
||||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3995,14 +3995,14 @@ export interface Go {
|
|||||||
* Returns a promise that resolves with the success or failure state of your last move, and the AI's response, if applicable.
|
* Returns a promise that resolves with the success or failure state of your last move, and the AI's response, if applicable.
|
||||||
* x:0 y:0 represents the bottom-left corner of the board in the UI.
|
* x:0 y:0 represents the bottom-left corner of the board in the UI.
|
||||||
*
|
*
|
||||||
* @param logOpponentMove - optional, if false prevents logging opponent move
|
* @param logOpponentMove - optional, defaults to true. if false prevents logging opponent move
|
||||||
*
|
*
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 0 GB
|
* RAM cost: 0 GB
|
||||||
*
|
*
|
||||||
* @returns a promise that contains if your last move was valid and successful, the opponent move's x and y coordinates (or pass) in response, or an indication if the game has ended
|
* @returns a promise that contains if your last move was valid and successful, the opponent move's x and y coordinates (or pass) in response, or an indication if the game has ended
|
||||||
*/
|
*/
|
||||||
opponentNextTurn(logOpponentMove: boolean = true): Promise<{
|
opponentNextTurn(logOpponentMove?: boolean): Promise<{
|
||||||
type: "move" | "pass" | "gameOver";
|
type: "move" | "pass" | "gameOver";
|
||||||
x: number | null;
|
x: number | null;
|
||||||
y: number | null;
|
y: number | null;
|
||||||
|
Loading…
Reference in New Issue
Block a user