C# Class FlatRedBall.Screens.Screen

Inheritance: IInstructable
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Protected Properties

Свойство Type Description
IsPaused bool
mAccumulatedPausedTime double
mLastLoadedScene Scene
mLayer Layer
mTimeScreenWasCreated double

Méthodes publiques

Méthode Description
Activating ( ) : void
Activity ( bool firstTimeCalled ) : void
AddToManagers ( ) : void
Destroy ( ) : void
Initialize ( bool addToManagers ) : void
MoveToScreen ( Type screenType ) : void
MoveToScreen ( string screenClass ) : void

Tells the screen that we are done and wish to move to the supplied screen

MoveToState ( int state ) : void
PauseAdjustedSecondsSince ( double time ) : double
RestartScreen ( bool reloadContent ) : void
Screen ( string contentManagerName ) : System
StartAsyncLoad ( Type type, System.Action afterLoaded = null ) : void
StartAsyncLoad ( string screenType, System.Action afterLoaded = null ) : void

Méthodes protégées

Méthode Description
HandleBackNavigation ( ) : void

Default implementation tells the screen manager to finish this screen's activity and navigate to the previous screen on the backstack.

Override this method if you want to have custom behavior when the back button is pressed.

OnActivate ( StateManager state ) : void
OnDeactivate ( StateManager state ) : void
PauseThisScreen ( ) : void
PreActivate ( ) : void
PreDeactivate ( ) : void
UnpauseThisScreen ( ) : void

Private Methods

Méthode Description
OnDeactivating ( ) : void
PerformAsyncLoad ( ) : void

Method Details

Activating() public méthode

public Activating ( ) : void
Résultat void

Activity() public méthode

public Activity ( bool firstTimeCalled ) : void
firstTimeCalled bool
Résultat void

AddToManagers() public méthode

public AddToManagers ( ) : void
Résultat void

Destroy() public méthode

public Destroy ( ) : void
Résultat void

HandleBackNavigation() protected méthode

Default implementation tells the screen manager to finish this screen's activity and navigate to the previous screen on the backstack.
Override this method if you want to have custom behavior when the back button is pressed.
protected HandleBackNavigation ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( bool addToManagers ) : void
addToManagers bool
Résultat void

MoveToScreen() public méthode

public MoveToScreen ( Type screenType ) : void
screenType System.Type
Résultat void

MoveToScreen() public méthode

Tells the screen that we are done and wish to move to the supplied screen
public MoveToScreen ( string screenClass ) : void
screenClass string
Résultat void

MoveToState() public méthode

public MoveToState ( int state ) : void
state int This should be a valid enum value of the concrete screen type.
Résultat void

OnActivate() protected méthode

protected OnActivate ( StateManager state ) : void
state StateManager
Résultat void

OnDeactivate() protected méthode

protected OnDeactivate ( StateManager state ) : void
state StateManager
Résultat void

PauseAdjustedSecondsSince() public méthode

public PauseAdjustedSecondsSince ( double time ) : double
time double
Résultat double

PauseThisScreen() protected méthode

protected PauseThisScreen ( ) : void
Résultat void

PreActivate() protected méthode

protected PreActivate ( ) : void
Résultat void

PreDeactivate() protected méthode

protected PreDeactivate ( ) : void
Résultat void

RestartScreen() public méthode

public RestartScreen ( bool reloadContent ) : void
reloadContent bool
Résultat void

Screen() public méthode

public Screen ( string contentManagerName ) : System
contentManagerName string
Résultat System

StartAsyncLoad() public méthode

public StartAsyncLoad ( Type type, System.Action afterLoaded = null ) : void
type System.Type
afterLoaded System.Action
Résultat void

StartAsyncLoad() public méthode

public StartAsyncLoad ( string screenType, System.Action afterLoaded = null ) : void
screenType string
afterLoaded System.Action
Résultat void

UnpauseThisScreen() protected méthode

protected UnpauseThisScreen ( ) : void
Résultat void

Property Details

IsPaused protected_oe property

protected bool IsPaused
Résultat bool

mAccumulatedPausedTime protected_oe property

protected double mAccumulatedPausedTime
Résultat double

mLastLoadedScene protected_oe property

protected Scene mLastLoadedScene
Résultat Scene

mLayer protected_oe property

protected Layer mLayer
Résultat Layer

mTimeScreenWasCreated protected_oe property

protected double mTimeScreenWasCreated
Résultat double