C# 클래스 NScumm.MonoGame.MainMenuScreen

상속: MenuScreen
파일 보기 프로젝트 열기: scemino/nscumm

Private Properties

프로퍼티 타입 설명
GetEngine IEngine
GetGame Core.IO.IGameDescriptor
GetSaveGamePath string
GetSaveGames string[]
LoadGame void
OnExitGame void
SaveGame void
UpdateMenus void

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void
ExitScreen ( ) : void
MainMenuScreen ( ScummScreen screen ) : System

Constructs a new MainMenu object.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the screen. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.

보호된 메소드들

메소드 설명
OnCancel ( ) : void

When the user cancels the main menu, ask if they want to exit the sample.

OnSelectEntry ( int entryIndex ) : void

Responds to user menu selections.

비공개 메소드들

메소드 설명
GetEngine ( ) : IEngine
GetGame ( ) : Core.IO.IGameDescriptor
GetSaveGamePath ( int index ) : string
GetSaveGames ( ) : string[]
LoadGame ( int index ) : void
OnExitGame ( ) : void
SaveGame ( int index ) : void
UpdateMenus ( ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

ExitScreen() 공개 메소드

public ExitScreen ( ) : void
리턴 void

MainMenuScreen() 공개 메소드

Constructs a new MainMenu object.
public MainMenuScreen ( ScummScreen screen ) : System
screen ScummScreen
리턴 System

OnCancel() 보호된 메소드

When the user cancels the main menu, ask if they want to exit the sample.
protected OnCancel ( ) : void
리턴 void

OnSelectEntry() 보호된 메소드

Responds to user menu selections.
protected OnSelectEntry ( int entryIndex ) : void
entryIndex int
리턴 void

Update() 공개 메소드

Updates the screen. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
리턴 void