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

Create class to wrap component data read from contracts #87

Open
clexmond opened this issue Jun 18, 2024 · 3 comments
Open

Create class to wrap component data read from contracts #87

clexmond opened this issue Jun 18, 2024 · 3 comments
Labels
enhancement New feature or request ODHack

Comments

@clexmond
Copy link
Member

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.

@clexmond clexmond added the enhancement New feature or request label Jun 18, 2024
@fishonamos
Copy link

Let me work on this. @clexmond

@EjembiEmmanuel
Copy link

@clexmond I'd love to work on this

@clexmond
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ODHack
Projects
None yet
Development

No branches or pull requests

3 participants