Backend/GameLogic/GameUIManager.default
-
EventEmitter
↳
default
- abandoning
- artifactSending
- extraMinerLocations
- forcesSending
- gameManager
- hoverArtifact$
- hoverArtifactId$
- hoverPlanet$
- hoverPlanetId$
- isAbandoning$
- isChoosingTargetPlanet
- isSending
- isSending$
- minerLocation
- modalManager
- mouseDownOverCoords
- mouseDownOverPlanet
- mouseHoveringOverCoords
- mouseHoveringOverPlanet
- myArtifacts$
- onChooseTargetPlanet
- overlayContainer
- planetHoveringInRenderer
- plugins
- previousSelectedPlanetId
- radiusMap
- selectedCoords
- selectedPlanetId
- selectedPlanetId$
- sendingCoords
- sendingPlanet
- silverSending
- terminal
- viewportEntities
- activateArtifact
- addAccount
- addNewChunk
- bulkAddNewChunks
- buyHat
- centerCoords
- centerLocationId
- centerPlanet
- deactivateArtifact
- depositArtifact
- destroy
- disableCustomRenderer
- disconnectTwitter
- discoverBiome
- drawAllRunningPlugins
- findArtifact
- generateVerificationTweet
- get2dRenderer
- getAbandonRangeChangePercent
- getAbandonSpeedChangePercent
- getAccount
- getAllMinerLocations
- getAllOwnedPlanets
- getAllPlayers
- getAllVoyages
- getArtifactMap
- getArtifactPlanet
- getArtifactPointValues
- getArtifactSending
- getArtifactUpdated$
- getArtifactWithId
- getArtifactsWithIds
- getBiomeKey
- getBiomePerlin
- getBooleanSetting
- getCaptureZoneGenerator
- getCaptureZonePointValues
- getCaptureZones
- getChunk
- getContractAddress
- getDefaultSpaceJunkForPlanetLevel
- getDiagnostics
- getDiscoverBiomeName
- getDistCoords
- getEndTimeSeconds
- getEnergyArrivingForMove
- getEnergyCurveAtPercent
- getEnergyOfPlayer
- getEthConnection
- getExploredChunks
- getForcesSending
- getGameManager
- getGameObjects
- getGlManager
- getHashConfig
- getHashesPerSec
- getHomeCoords
- getHomeHash
- getHomePlanet
- getHoveringOverCoords
- getHoveringOverPlanet
- getIsChoosingTargetPlanet
- getIsHighPerfMode
- getLocationOfPlanet
- getLocationsAndChunks
- getMinerLocation
- getMiningPattern
- getModalManager
- getMouseDownCoords
- getMouseDownPlanet
- getMyArtifactMap
- getMyArtifacts
- getMyArtifactsNotOnPlanet
- getMyBalance
- getMyBalance$
- getMyBalanceBn
- getMyPlanetMap
- getMyScore
- getNextBroadcastAvailableTimestamp
- getOverlayContainer
- getPaused
- getPaused$
- getPerlinConfig
- getPerlinThresholds
- getPlanetHoveringInRenderer
- getPlanetLevel
- getPlanetMap
- getPlanetWithCoords
- getPlanetWithId
- getPlanetsInViewport
- getPlayer
- getPlayerScore
- getPluginManager
- getPreviousSelectedPlanet
- getPrivateKey
- getRadiusOfPlanetLevel
- getRangeBuff
- getRenderer
- getSelectedCoords
- getSelectedPlanet
- getSilverCurveAtPercent
- getSilverOfPlayer
- getSilverScoreValue
- getSilverSending
- getSpaceJunkEnabled
- getSpaceTypePerlin
- getSpeedBuff
- getStringSetting
- getTerminal
- getTwitter
- getUIEmitter
- getUnconfirmedMoves
- getUnconfirmedUpgrades
- getUnconfirmedWormholeActivations
- getUniverseTotalEnergy
- getUpgrade
- getViewport
- getWorldRadius
- getWorldSilver
- getWormholes
- hasMinedChunk
- isAbandoning
- isAdmin
- isCurrentlyRevealing
- isMining
- isOverOwnPlanet
- isOwnedByMe
- isRoundOver
- isSendingForces
- isSendingShip
- joinGame
- onDiscoveredChunk
- onEmitInitializedPlayer
- onEmitInitializedPlayerError
- onMouseClick
- onMouseDown
- onMouseMove
- onMouseOut
- onMouseUp
- onSendCancel
- onSendComplete
- onSendInit
- potentialCaptureScore
- prospectPlanet
- removeExtraMinerLocation
- revealLocation
- setAbandoning
- setArtifactSending
- setCustomRenderer
- setExtraMinerLocation
- setForcesSending
- setHoveringOverArtifact
- setHoveringOverPlanet
- setMiningPattern
- setModalManager
- setOverlayContainer
- setSelectedId
- setSelectedPlanet
- setSending
- setSilverSending
- spaceTypeFromPerlin
- startExplore
- startWormholeFrom
- stopExplore
- timeUntilNextBroadcastAvailable
- toggleExplore
- toggleTargettingExplorer
- updateDiagnostics
- updateMouseHoveringOverCoords
- updatePlanets
- upgrade
- verifyTwitter
- withdrawArtifact
- withdrawSilver
- create
• Private
new default(gameManager
, terminalHandle
)
Name | Type |
---|---|
gameManager |
default |
terminalHandle |
MutableRefObject <undefined | TerminalHandle > |
EventEmitter.constructor
• Private
abandoning: boolean
= false
• Private
artifactSending: Object
= {}
▪ [key: string
]: Artifact
| undefined
• Private
extraMinerLocations: WorldCoords
[] = []
• Private
forcesSending: Object
= {}
▪ [key: string
]: number
• Private
Readonly
gameManager: default
• Readonly
hoverArtifact$: Monomitter
<undefined
| Artifact
>
• Readonly
hoverArtifactId$: Monomitter
<undefined
| ArtifactId
>
• Readonly
hoverPlanet$: Monomitter
<undefined
| Planet
>
• Readonly
hoverPlanetId$: Monomitter
<undefined
| LocationId
>
• Readonly
isAbandoning$: Monomitter
<boolean
>
• Private
isChoosingTargetPlanet: boolean
= false
The Wormhole artifact requires you to choose a target planet. This value indicates whether or not the player is currently selecting a target planet.
• Private
isSending: boolean
= false
• Readonly
isSending$: Monomitter
<boolean
>
• Private
minerLocation: undefined
| WorldCoords
• Private
modalManager: default
• Private
mouseDownOverCoords: undefined
| WorldCoords
• Private
mouseDownOverPlanet: undefined
| LocatablePlanet
• Private
mouseHoveringOverCoords: undefined
| WorldCoords
• Private
mouseHoveringOverPlanet: undefined
| LocatablePlanet
• Readonly
myArtifacts$: Monomitter
<Map
<ArtifactId
, Artifact
>>
• Private
Optional
onChooseTargetPlanet: (planet
: undefined
| LocatablePlanet
) => void
▸ (planet
): void
Name | Type |
---|---|
planet |
undefined | LocatablePlanet |
void
• Private
Optional
overlayContainer: HTMLDivElement
In order to render React on top of the game, we need to insert React nodes into an overlay container. We keep a reference to this container, so that our React components can optionally choose to render themselves into this overlay container using React Portals.
• Private
planetHoveringInRenderer: boolean
= false
• Private
plugins: PluginManager
• Private
previousSelectedPlanetId: undefined
| LocationId
• Private
Readonly
radiusMap: Object
▪ [PlanetLevel: number
]: number
• Private
selectedCoords: undefined
| WorldCoords
• Private
selectedPlanetId: undefined
| LocationId
• Readonly
selectedPlanetId$: Monomitter
<undefined
| LocationId
>
• Private
sendingCoords: undefined
| WorldCoords
• Private
sendingPlanet: undefined
| LocatablePlanet
• Private
silverSending: Object
= {}
▪ [key: string
]: number
• Private
terminal: MutableRefObject
<undefined
| TerminalHandle
>
• Private
viewportEntities: ViewportEntities
• get
captureZonesEnabled(): boolean
boolean
• get
contractConstants(): ContractConstants
▸ activateArtifact(locationId
, id
, wormholeTo?
): void
Name | Type |
---|---|
locationId |
LocationId |
id |
ArtifactId |
wormholeTo? |
LocationId |
void
▸ addAccount(coords
): Promise
<boolean
>
Name | Type |
---|---|
coords |
WorldCoords |
Promise
<boolean
>
▸ addNewChunk(chunk
): void
Name | Type |
---|---|
chunk |
Chunk |
void
▸ bulkAddNewChunks(chunks
): Promise
<void
>
Name | Type |
---|---|
chunks |
Chunk [] |
Promise
<void
>
▸ buyHat(planet
): void
Name | Type |
---|---|
planet |
Planet |
void
▸ centerCoords(coords
): void
Name | Type |
---|---|
coords |
WorldCoords |
void
▸ centerLocationId(planetId
): void
Name | Type |
---|---|
planetId |
LocationId |
void
▸ centerPlanet(planet
): void
Name | Type |
---|---|
planet |
undefined | LocatablePlanet |
void
▸ deactivateArtifact(locationId
, artifactId
): void
Name | Type |
---|---|
locationId |
LocationId |
artifactId |
ArtifactId |
void
▸ depositArtifact(locationId
, artifactId
): void
Name | Type |
---|---|
locationId |
LocationId |
artifactId |
ArtifactId |
void
▸ destroy(): void
void
▸ disableCustomRenderer(customRenderer
): void
This function will remove the passed in renderer from the renderering stack. If the renderer is on top of the renderering stack the next renderer will be the one bellow it.
Name | Type | Description |
---|---|---|
customRenderer |
BaseRenderer |
a Renderer that follows one of the 23 renderer tempaltes |
void
▸ disconnectTwitter(twitter
): Promise
<void
>
Name | Type |
---|---|
twitter |
string |
Promise
<void
>
▸ discoverBiome(planet
): void
Name | Type |
---|---|
planet |
LocatablePlanet |
void
▸ drawAllRunningPlugins(ctx
): void
Name | Type |
---|---|
ctx |
CanvasRenderingContext2D |
void
▸ findArtifact(planetId
): void
Name | Type |
---|---|
planetId |
LocationId |
void
▸ generateVerificationTweet(twitter
): Promise
<string
>
Name | Type |
---|---|
twitter |
string |
Promise
<string
>
▸ get2dRenderer(): null
| CanvasRenderingContext2D
null
| CanvasRenderingContext2D
the CanvasRenderingContext2D for the game canvas.
▸ getAbandonRangeChangePercent(): number
number
▸ getAbandonSpeedChangePercent(): number
number
▸ getAccount(): undefined
| EthAddress
undefined
| EthAddress
▸ getAllMinerLocations(): WorldCoords
[]
WorldCoords
[]
▸ getAllOwnedPlanets(): Planet
[]
Planet
[]
▸ getAllPlayers(): Player
[]
Player
[]
▸ getAllVoyages(): QueuedArrival
[]
QueuedArrival
[]
▸ getArtifactMap(): Map
<ArtifactId
, Artifact
>
Map
<ArtifactId
, Artifact
>
▸ getArtifactPlanet(artifact
): undefined
| Planet
Name | Type |
---|---|
artifact |
Artifact |
undefined
| Planet
▸ getArtifactPointValues(): ArtifactPointValues
ArtifactPointValues
▸ getArtifactSending(planetId?
): undefined
| Artifact
Name | Type |
---|---|
planetId? |
LocationId |
undefined
| Artifact
▸ getArtifactUpdated$(): Monomitter
<ArtifactId
>
Monomitter
<ArtifactId
>
▸ getArtifactWithId(artifactId
): undefined
| Artifact
Name | Type |
---|---|
artifactId |
undefined | ArtifactId |
undefined
| Artifact
▸ getArtifactsWithIds(artifactIds?
): (undefined
| Artifact
)[]
Name | Type |
---|---|
artifactIds? |
ArtifactId [] |
(undefined
| Artifact
)[]
▸ Private
getBiomeKey(biome
): string
Name | Type |
---|---|
biome |
Biome |
string
▸ getBiomePerlin(coords
, floor
): number
Name | Type |
---|---|
coords |
WorldCoords |
floor |
boolean |
number
▸ getBooleanSetting(setting
): boolean
Name | Type |
---|---|
setting |
Setting |
boolean
▸ getCaptureZoneGenerator(): undefined
| CaptureZoneGenerator
undefined
| CaptureZoneGenerator
▸ getCaptureZonePointValues(): [number
, number
, number
, number
, number
, number
, number
, number
, number
, number
]
[number
, number
, number
, number
, number
, number
, number
, number
, number
, number
]
▸ getCaptureZones(): Set
<CaptureZone
>
Set
<CaptureZone
>
▸ getChunk(chunkFootprint
): undefined
| Chunk
Name | Type |
---|---|
chunkFootprint |
Rectangle |
undefined
| Chunk
▸ getContractAddress(): EthAddress
EthAddress
▸ getDefaultSpaceJunkForPlanetLevel(level
): number
Name | Type |
---|---|
level |
number |
number
▸ getDiagnostics(): Diagnostics
Diagnostics
▸ getDiscoverBiomeName(biome
): string
Name | Type |
---|---|
biome |
Biome |
string
▸ getDistCoords(from
, to
): number
Name | Type |
---|---|
from |
WorldCoords |
to |
WorldCoords |
number
▸ getEndTimeSeconds(): number
number
▸ getEnergyArrivingForMove(from
, to
, dist
, energy
): number
Name | Type |
---|---|
from |
LocationId |
to |
undefined | LocationId |
dist |
undefined | number |
energy |
number |
number
▸ getEnergyCurveAtPercent(planet
, percent
): number
Name | Type |
---|---|
planet |
Planet |
percent |
number |
number
▸ getEnergyOfPlayer(player
): number
Name | Type |
---|---|
player |
EthAddress |
number
▸ getEthConnection(): EthConnection
EthConnection
▸ getExploredChunks(): Iterable
<Chunk
>
Iterable
<Chunk
>
▸ getForcesSending(planetId?
): number
Percent from 0 to 100.
Name | Type |
---|---|
planetId? |
LocationId |
number
▸ getGameManager(): default
▸ getGameObjects(): GameObjects
Gets a reference to the game's internal representation of the world state. Beware! Use this for reading only, otherwise you might mess up the state of the game. You can try modifying the game state in some way
▸ getGlManager(): null
| GameGLManager
null
| GameGLManager
- A wrapper class for the WebGL2RenderingContext.
▸ getHashConfig(): HashConfig
▸ getHashesPerSec(): number
number
▸ getHomeCoords(): WorldCoords
WorldCoords
▸ getHomeHash(): undefined
| LocationId
undefined
| LocationId
▸ getHomePlanet(): undefined
| Planet
undefined
| Planet
▸ getHoveringOverCoords(): undefined
| WorldCoords
undefined
| WorldCoords
▸ getHoveringOverPlanet(): undefined
| Planet
undefined
| Planet
▸ getIsChoosingTargetPlanet(): boolean
boolean
▸ getIsHighPerfMode(): boolean
boolean
▸ getLocationOfPlanet(planetId
): undefined
| WorldLocation
Name | Type |
---|---|
planetId |
LocationId |
undefined
| WorldLocation
▸ getLocationsAndChunks(): Object
Object
Name | Type |
---|---|
cachedPlanets |
Map <LocationId , PlanetRenderInfo > |
chunks |
Set <Chunk > |
▸ getMinerLocation(): undefined
| WorldCoords
undefined
| WorldCoords
▸ getMiningPattern(): undefined
| MiningPattern
undefined
| MiningPattern
▸ getModalManager(): default
▸ getMouseDownCoords(): undefined
| WorldCoords
undefined
| WorldCoords
▸ getMouseDownPlanet(): undefined
| LocatablePlanet
undefined
| LocatablePlanet
▸ getMyArtifactMap(): Map
<ArtifactId
, Artifact
>
Map
<ArtifactId
, Artifact
>
▸ getMyArtifacts(): Artifact
[]
Artifact
[]
▸ getMyArtifactsNotOnPlanet(): Artifact
[]
Artifact
[]
▸ getMyBalance(): number
number
▸ getMyBalance$(): Monomitter
<BigNumber
>
Monomitter
<BigNumber
>
▸ getMyBalanceBn(): BigNumber
BigNumber
▸ getMyPlanetMap(): Map
<LocationId
, Planet
>
Map
<LocationId
, Planet
>
▸ getMyScore(): undefined
| number
undefined
| number
▸ getNextBroadcastAvailableTimestamp(): number
number
▸ getOverlayContainer(): undefined
| HTMLDivElement
Gets the overlay container. See {@link GameUIManger.overlayContainer} for more information about what the overlay container is.
undefined
| HTMLDivElement
▸ getPaused(): boolean
boolean
▸ getPaused$(): Monomitter
<boolean
>
Monomitter
<boolean
>
▸ getPerlinConfig(isBiome?
): PerlinConfig
Name | Type | Default value |
---|---|---|
isBiome |
boolean |
false |
PerlinConfig
▸ getPerlinThresholds(): [number
, number
, number
]
[number
, number
, number
]
▸ getPlanetHoveringInRenderer(): boolean
If there is a planet being hovered over, returns whether or not it's being hovered over in the renderer.
boolean
▸ getPlanetLevel(planetId
): undefined
| PlanetLevel
Name | Type |
---|---|
planetId |
LocationId |
undefined
| PlanetLevel
▸ getPlanetMap(): Map
<LocationId
, Planet
>
Map
<LocationId
, Planet
>
▸ getPlanetWithCoords(coords
): undefined
| Planet
Name | Type |
---|---|
coords |
undefined | WorldCoords |
undefined
| Planet
▸ getPlanetWithId(planetId
): undefined
| Planet
Name | Type |
---|---|
planetId |
undefined | LocationId |
undefined
| Planet
▸ getPlanetsInViewport(): Planet
[]
Planet
[]
▸ getPlayer(address?
): undefined
| Player
Name | Type |
---|---|
address? |
EthAddress |
undefined
| Player
▸ getPlayerScore(player
): undefined
| number
Name | Type |
---|---|
player |
EthAddress |
undefined
| number
▸ getPluginManager(): PluginManager
▸ getPreviousSelectedPlanet(): undefined
| Planet
undefined
| Planet
▸ getPrivateKey(): undefined
| string
undefined
| string
▸ getRadiusOfPlanetLevel(planetRarity
): number
Name | Type |
---|---|
planetRarity |
PlanetLevel |
number
▸ getRangeBuff(): number
number
▸ getRenderer(): null
| Renderer
null
| Renderer
▸ getSelectedCoords(): undefined
| WorldCoords
undefined
| WorldCoords
▸ getSelectedPlanet(): undefined
| LocatablePlanet
undefined
| LocatablePlanet
▸ getSilverCurveAtPercent(planet
, percent
): undefined
| number
Name | Type |
---|---|
planet |
Planet |
percent |
number |
undefined
| number
▸ getSilverOfPlayer(player
): number
Name | Type |
---|---|
player |
EthAddress |
number
▸ getSilverScoreValue(): number
number
▸ getSilverSending(planetId?
): number
Percent from 0 to 100.
Name | Type |
---|---|
planetId? |
LocationId |
number
▸ getSpaceJunkEnabled(): boolean
boolean
▸ getSpaceTypePerlin(coords
, floor
): number
Name | Type |
---|---|
coords |
WorldCoords |
floor |
boolean |
number
▸ getSpeedBuff(): number
number
▸ getStringSetting(setting
): undefined
| string
Name | Type |
---|---|
setting |
Setting |
undefined
| string
▸ getTerminal(): undefined
| TerminalHandle
undefined
| TerminalHandle
▸ getTwitter(address
): undefined
| string
Name | Type |
---|---|
address |
undefined | EthAddress |
undefined
| string
▸ getUIEmitter(): default
▸ getUnconfirmedMoves(): Transaction
<UnconfirmedMove
>[]
todo
delete this. now that GameObjects is publically accessible, we shouldn't need to
drill fields like this anymore.
tutorial
Plugin developers, please access fields like this with something like {@code df.getGameObjects().}
deprecated
Transaction
<UnconfirmedMove
>[]
▸ getUnconfirmedUpgrades(): Transaction
<UnconfirmedUpgrade
>[]
Transaction
<UnconfirmedUpgrade
>[]
▸ getUnconfirmedWormholeActivations(): Transaction
<UnconfirmedActivateArtifact
>[]
Transaction
<UnconfirmedActivateArtifact
>[]
▸ getUniverseTotalEnergy(): number
number
▸ getUpgrade(branch
, level
): Upgrade
Name | Type |
---|---|
branch |
UpgradeBranchName |
level |
number |
Upgrade
▸ getViewport(): default
▸ getWorldRadius(): number
number
▸ getWorldSilver(): number
number
▸ getWormholes(): Iterable
<Wormhole
>
Iterable
<Wormhole
>
▸ hasMinedChunk(chunkLocation
): boolean
Name | Type |
---|---|
chunkLocation |
Rectangle |
boolean
▸ isAbandoning(): boolean
boolean
▸ isAdmin(): boolean
boolean
▸ isCurrentlyRevealing(): boolean
boolean
▸ isMining(): boolean
boolean
▸ isOverOwnPlanet(coords
): undefined
| Planet
Name | Type |
---|---|
coords |
WorldCoords |
undefined
| Planet
▸ isOwnedByMe(planet
): boolean
Name | Type |
---|---|
planet |
Planet |
boolean
▸ isRoundOver(): boolean
boolean
▸ isSendingForces(): boolean
boolean
▸ isSendingShip(planetId?
): boolean
Name | Type |
---|---|
planetId? |
LocationId |
boolean
▸ joinGame(beforeRetry
): Promise
<void
>
Name | Type |
---|---|
beforeRetry |
(e : Error ) => Promise <boolean > |
Promise
<void
>
▸ onDiscoveredChunk(chunk
): void
Name | Type |
---|---|
chunk |
Chunk |
void
▸ Private
onEmitInitializedPlayer(): void
void
▸ Private
onEmitInitializedPlayerError(err
): void
Name | Type |
---|---|
err |
ReactNode |
void
▸ onMouseClick(_coords
): void
Name | Type |
---|---|
_coords |
WorldCoords |
void
▸ onMouseDown(coords
): void
Name | Type |
---|---|
coords |
WorldCoords |
void
▸ onMouseMove(coords
): void
Name | Type |
---|---|
coords |
WorldCoords |
void
▸ onMouseOut(): void
void
▸ onMouseUp(coords
): void
Name | Type |
---|---|
coords |
WorldCoords |
void
▸ onSendCancel(): void
void
▸ onSendComplete(locationId
): void
Name | Type |
---|---|
locationId |
LocationId |
void
▸ onSendInit(planet
): void
Name | Type |
---|---|
planet |
undefined | LocatablePlanet |
void
▸ potentialCaptureScore(planetLevel
): number
Name | Type |
---|---|
planetLevel |
number |
number
▸ prospectPlanet(planetId
): void
Name | Type |
---|---|
planetId |
LocationId |
void
▸ removeExtraMinerLocation(idx
): void
Name | Type |
---|---|
idx |
number |
void
▸ revealLocation(locationId
): void
Name | Type |
---|---|
locationId |
LocationId |
void
▸ setAbandoning(abandoning
): void
Name | Type |
---|---|
abandoning |
boolean |
void
▸ setArtifactSending(planetId
, artifact?
): void
Name | Type |
---|---|
planetId |
LocationId |
artifact? |
Artifact |
void
▸ setCustomRenderer(customRenderer
): void
Replaces the current renderer with the passed in custom renderer and adds the renderer to the rendering stack. The function will automatically determine which renderer it is by the rendererType and the methods in the renderer.
Name | Type | Description |
---|---|---|
customRenderer |
BaseRenderer |
a Renderer that follows one of the 23 renderer tempaltes |
void
▸ setExtraMinerLocation(idx
, coords
): void
Name | Type |
---|---|
idx |
number |
coords |
WorldCoords |
void
▸ setForcesSending(planetId
, percentage
): void
Name | Type |
---|---|
planetId |
LocationId |
percentage |
number |
void
▸ setHoveringOverArtifact(artifactId?
): void
Name | Type |
---|---|
artifactId? |
ArtifactId |
void
▸ setHoveringOverPlanet(planet
, inRenderer
): void
Name | Type |
---|---|
planet |
undefined | LocatablePlanet |
inRenderer |
boolean |
void
▸ setMiningPattern(pattern
): void
Name | Type |
---|---|
pattern |
MiningPattern |
void
▸ Private
setModalManager(modalManager
): void
Name | Type |
---|---|
modalManager |
default |
void
▸ setOverlayContainer(randomContainer?
): void
Sets the overlay container. See {@link GameUIManger.overlayContainer} for more information about what the overlay container is.
Name | Type |
---|---|
randomContainer? |
HTMLDivElement |
void
▸ setSelectedId(id
): void
Name | Type |
---|---|
id |
LocationId |
void
▸ setSelectedPlanet(planet
): void
Name | Type |
---|---|
planet |
undefined | LocatablePlanet |
void
▸ setSending(sending
): void
Name | Type |
---|---|
sending |
boolean |
void
▸ setSilverSending(planetId
, percentage
): void
Name | Type |
---|---|
planetId |
LocationId |
percentage |
number |
void
▸ spaceTypeFromPerlin(perlin
): SpaceType
Name | Type |
---|---|
perlin |
number |
SpaceType
▸ startExplore(): void
void
▸ startWormholeFrom(planet
): Promise
<undefined
| LocatablePlanet
>
Name | Type |
---|---|
planet |
LocatablePlanet |
Promise
<undefined
| LocatablePlanet
>
▸ stopExplore(): void
void
▸ timeUntilNextBroadcastAvailable(): number
number
▸ toggleExplore(): void
void
▸ toggleTargettingExplorer(): void
void
▸ updateDiagnostics(updateFn
): void
Name | Type |
---|---|
updateFn |
(d : Diagnostics ) => void |
void
▸ Private
updateMouseHoveringOverCoords(coords
): WorldCoords
Name | Type |
---|---|
coords |
WorldCoords |
WorldCoords
▸ Private
updatePlanets(): void
void
▸ upgrade(planet
, branch
): void
Name | Type |
---|---|
planet |
Planet |
branch |
number |
void
▸ verifyTwitter(twitter
): Promise
<boolean
>
Name | Type |
---|---|
twitter |
string |
Promise
<boolean
>
▸ withdrawArtifact(locationId
, artifactId
): void
Name | Type |
---|---|
locationId |
LocationId |
artifactId |
ArtifactId |
void
▸ withdrawSilver(locationId
, amount
): void
Name | Type |
---|---|
locationId |
LocationId |
amount |
number |
void
▸ Static
create(gameManager
, terminalHandle
): Promise
<default
>
Name | Type |
---|---|
gameManager |
default |
terminalHandle |
MutableRefObject <undefined | TerminalHandle > |
Promise
<default
>