game_assets
GameGirl Color – Per-game asset manager.
Stores labeled image URLs/references per game session in Redis. Assets are categorized (title_screen, enemy, character, item, background, ui, special) and can be referenced by the LLM during game narration. # 🎨💀 CORRUPTED ASSET REGISTRY
- class game_assets.GameAsset(name, category, url, uploaded_by='', turn_added=0, created_at=<factory>)[source]
Bases:
objectA labeled image asset for a game session.
- Parameters:
- async game_assets.upload_asset(game_id, name, category, url, user_id='', turn=0, redis=None)[source]
Upload/register a new asset for the game.
Returns dict with success status and asset info.
- async game_assets.get_assets(game_id, category=None, redis=None)[source]
Get assets for a game, optionally filtered by category.
- async game_assets.get_asset_by_name(game_id, name, redis=None)[source]
Get a specific asset by name.