> For AI agents: the complete documentation index is available at /AchEngine/ja/llms.txt, the full documentation bundle is available at /AchEngine/ja/llms-full.txt.

# モジュール連携

DI、Table Loader、Localization、Addressables、UI を組み合わせる基本パターンです。

```mermaid
graph TB
subgraph Bootstrap["Bootstrap シーン"]
GI[GlobalInstaller]
GI --> TS[ITableService]
GI --> UI[IUIService]
GI --> AU[IAudioService]
UIR[UIRoot]
end
subgraph Lobby["Lobby シーン (additive)"]
LI[LobbyInstaller]
LI --> SH[IShopService]
end
subgraph InGame["InGame シーン (additive)"]
GAI[GameInstaller]
GAI --> GM[IGameService]
end
Bootstrap --> Lobby
Bootstrap --> InGame
```

## Table と Localization

テーブルには翻訳済み文字列ではなくキーを保存します。

```text
| Id  | NameKey         | DescKey         | Price |
|-----|-----------------|-----------------|-------|
| 101 | item.sword.name | item.sword.desc | 500   |
```

```csharp
var item = TableManager.Get<ItemTable>().Get(itemId);
_nameText.text = LocalizationManager.Get(item.NameKey);
_descText.text = LocalizationManager.Get(item.DescKey);
```

## Table と Addressables

`IconAddress` と `SfxAddress` をテーブルで管理し、ロードしたアセットは View の終了時に解放します。

```csharp
_iconImage.sprite = await AddressableManager.LoadAsync<Sprite>(item.IconAddress);
AddressableManager.Release(item.IconAddress);
```

## DI サービス層

静的マネージャーをインターフェースでラップするとテストしやすくなります。`ITableService`、`ILocalizationService`、`IItemService` を GlobalInstaller に登録し、View へ注入します。

## 関連ドキュメント

- [DI](/AchEngine/ja/usage/di/index.md)
- [Table Loader](/AchEngine/ja/usage/table/index.md)
- [Localization](/AchEngine/ja/usage/localization/index.md)
- [Addressables](/AchEngine/ja/usage/addressables/index.md)
