data-manager
A reference skill published in the Phaser game framework's own repository for Phaser 4's data manager, a key-value store that sends events when values change so game systems can react without being tied together.
スキルの内容
A reference skill published in the Phaser game framework's own repository for Phaser 4's data manager, a key-value store that sends events when values change so game systems can react without being tied together. It covers the three levels, per game object, per scene and the game-wide registry, the methods for setting, reading, incrementing, toggling, querying, merging, resetting and freezing data, the values proxy, the event names and their arguments, and patterns such as sharing state across scenes and saving to local storage. Twelve pitfalls explain, for example, that changing a stored object in place sends no event, that registry listeners outlive a scene restart and that frozen managers fail silently.
できること
- Store data on game objects, scenes or the registry
- Listen for data change events
- Share state across scenes
- Save and load game state
概要
- 公開元
- Phaser
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/phaserjs/phaser · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(data-manager)github.com/phaserjs/phaser · 根拠となる項目:スクリプトを含む2026年11月10日