Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty outputs for Tank Farm Construction, update README.md #105

Merged
merged 4 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading