> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 遊戲伺服器設定概觀

> 了解 PlayFab 中的遊戲伺服器設定，它為遊戲的遊戲伺服器實體提供伺服器端索引鍵/值和檔案儲存。

遊戲伺服器設定為限定於遊戲 `game_server` 實體範圍的資料提供伺服器端儲存。它使用實體物件和實體檔案 API 來儲存和擷取用於設定遊戲伺服器行為的 JSON 物件和二進位檔案。

## 哪些內容屬於遊戲伺服器設定

針對符合下列條件的資料使用遊戲伺服器設定：

* 適用於您的遊戲伺服器，而非個別玩家
* 需要由伺服器授權的遊戲邏輯讀取
* 包含非針對個別玩家的設定，例如比賽設定、伺服器參數或功能旗標

## 運作方式

遊戲設定使用的基礎 API 與 PlayFab 中其他實體資料儲存相同：

* **實體物件** — 使用 [SetObjects](https://learn.microsoft.com/en-us/rest/api/playfab/data/object/set-objects) 和 [GetObjects](https://learn.microsoft.com/en-us/rest/api/playfab/data/object/get-objects) 在 `game_server` 實體上儲存小型 JSON 可序列化的索引鍵/值組
* **實體檔案** — 使用 [File API](https://learn.microsoft.com/en-us/rest/api/playfab/data/file) 在 `game_server` 實體上儲存較大的二進位或文字檔案

若要以 `game_server` 實體進行驗證，請以 title 實體身分呼叫 [AuthenticateGameServerWithCustomId](https://learn.microsoft.com/en-us/rest/api/playfab/authentication/authentication/authenticate-game-server-with-custom-id)。

## 相關功能

如需所有實體儲存功能的比較，請參閱[實體物件](/zh-TW/services/playfab/live-service-management/game-configuration/entities/entity-objects#related-features)。

## 在 Game Manager 中檢視

您可以在 Game Manager 的實體瀏覽器中選取 `game_server` 實體，以檢視和管理遊戲設定資料。

## 另請參閱

* [實體程式設計模型](/zh-TW/services/playfab/live-service-management/game-configuration/entities)
* [實體物件](/zh-TW/services/playfab/live-service-management/game-configuration/entities/entity-objects)
* [實體檔案](/zh-TW/services/playfab/live-service-management/game-configuration/entities/entity-files)
* [遊戲資料](/zh-TW/services/playfab/live-service-management/game-configuration/titledata)


## Related topics

- [將遊戲伺服器與 PlayFab GSDK 整合](/zh-TW/services/playfab/multiplayer/servers/integrating-game-servers-with-gsdk.md)
- [伺服器](/zh-TW/services/playfab/multiplayer/servers/index.md)
- [Windows Runner 範例](/zh-TW/services/playfab/multiplayer/servers/windows-runner-sample.md)
- [LocalMultiplayerAgent 概觀](/zh-TW/services/playfab/multiplayer/servers/LocalMultiplayerAgent/local-multiplayer-agent-overview.md)
- [在本機對遊戲伺服器進行偵錯以及與 PlayFab 整合](/zh-TW/services/playfab/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab.md)
