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.
Via the
ReadComponentsystem, 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.getBonusesshould be able to consume aCelestialcomponent retrieved viaReadComponent). Property names should be consistently mapped fromsnake_casetocamelCase.