Skip to content

Commit

Permalink
Merge pull request #105 from Elerium-115/dev
Browse files Browse the repository at this point in the history
Add empty outputs for Tank Farm Construction, update README.md
  • Loading branch information
clexmond authored Aug 26, 2024
2 parents d396727 + 465fe69 commit 6f421d5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@ Dispatcher.call('run_system', Dispatcher.callData.compile('run_system', {

ABI types / schemas for all components can be found in `./contracts/starknet_components.json`.

## Install

```sh
npm install @influenceth/sdk
```

## Usage

```js
import * as InfluenceSDK from '@influenceth/sdk';

// Access game assets data and logic
const resourcesClassification = InfluenceSDK.Product.CLASSIFICATIONS.RAW_MATERIAL;
const allResourcesIds = InfluenceSDK.Product.getListByClassification(resourcesClassification);

const resourcesBySpectralId = {};
const spectralTypesData = InfluenceSDK.Asteroid.SPECTRAL_TYPES;
for (const [spectralId, spectralData] of Object.entries(spectralTypesData)) {
resourcesBySpectralId[spectralId] = spectralData.resources;
}
```

## API
1. The API is whitelist only, please request access to the #community-devs channel in the Influence Discord: https://discord.gg/influenceth to receive an API key.
2. If possible, prefer using the exports here: https://www.dropbox.com/sh/5g3ww8wi9n0p4s6/AADcR0lgL8iKTQrpiWUC37Oxa?dl=0 rather than adding additional load to the API.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influenceth/sdk",
"version": "2.3.1",
"version": "2.3.2",
"description": "Influence SDK",
"type": "module",
"module": "./build/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -4088,7 +4088,8 @@ const TYPES = {
[Product.IDS.STEEL_SHEET]: 50000,
[Product.IDS.STAINLESS_STEEL_SHEET]: 200000,
[Product.IDS.FLUIDS_AUTOMATION_MODULE]: 2
}
},
outputs: {}
}
};

Expand Down

0 comments on commit 6f421d5

Please sign in to comment.