語言

GameState 建構函式

定義

多載

名稱 Description
GameState(Boolean, Int32)

建立一個設定載入狀態的 GameState。

GameState(Boolean, Int32, Int32, Int32)

用給定的狀態變數建立一個遊戲狀態。

GameState(Boolean, Int32)

建立一個設定載入狀態的 GameState。

[Android.Runtime.Register(".ctor", "(ZI)V", "", ApiSince=33)]
public GameState(bool isLoading, int mode);
[<Android.Runtime.Register(".ctor", "(ZI)V", "", ApiSince=33)>]
new Android.App.GameState : bool * int -> Android.App.GameState

參數

isLoading
Boolean

遊戲是否處於載入狀態。

mode
Int32

類型的遊戲狀態模式

屬性

備註

建立一個設定載入狀態的 GameState。

Android 參考資料。android.app.GameState.GameState

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GameState(Boolean, Int32, Int32, Int32)

用給定的狀態變數建立一個遊戲狀態。

[Android.Runtime.Register(".ctor", "(ZIII)V", "", ApiSince=33)]
public GameState(bool isLoading, int mode, int label, int quality);
[<Android.Runtime.Register(".ctor", "(ZIII)V", "", ApiSince=33)>]
new Android.App.GameState : bool * int * int * int -> Android.App.GameState

參數

isLoading
Boolean

遊戲是否處於載入狀態。

mode
Int32

遊戲狀態模式。

label
Int32

例如,開發者提供的可選枚舉,適用於當前關卡。

quality
Int32

開發者提供的可選列舉,例如針對當前品質等級。

屬性

備註

用給定的狀態變數建立一個遊戲狀態。

Android 參考資料。android.app.GameState.GameState

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於