influenceth / sdk

Utilities for interacting with Influence
Other
16 stars 11 forks source link

Create class to wrap component data read from contracts #87

Open clexmond opened 3 months ago

clexmond commented 3 months ago

Via the ReadComponent system, component data can be read directly from the game state. The ABI types are all exported and available in ./contracts/starknet_components.json.

We should define SDK types to allow for their use in the entity libraries (ex. Asteroid.Component.getBonuses should be able to consume a Celestial component retrieved via ReadComponent). Property names should be consistently mapped from snake_case to camelCase.

fishonamos commented 3 months ago

Let me work on this. @clexmond

EjembiEmmanuel commented 3 months ago

@clexmond I'd love to work on this

clexmond commented 3 months ago

Would love to hear how you'd tackle this before we get started!