C# Class Emotion.Platform.PlatformBase

Inheritance: IInputManager
Afficher le fichier Open project: Cryru/Emotion Class Usage Examples

Méthodes publiques

Свойство Type Description
OnFocusChanged Action

Protected Properties

Свойство Type Description
_config Configurator

Méthodes publiques

Méthode Description
CreateDetectedPlatform ( Configurator engineConfig ) : PlatformBase

Detect and return the correct platform instance for the engine host.

DisplayMessageBox ( string message ) : void

Display an error message natively. Usually this means a popup will show up.

Update ( ) : bool

Update the platform. If this returns false then the platform/its window was closed. If the window is unfocused this blocks until a platform message is received.

Méthodes protégées

Méthode Description
Setup ( Configurator config ) : void

Setup the native platform and creates a window.

SetupInternal ( Configurator config ) : void

Platform setup.

UpdatePlatform ( ) : bool

Method Details

CreateDetectedPlatform() public static méthode

Detect and return the correct platform instance for the engine host.
public static CreateDetectedPlatform ( Configurator engineConfig ) : PlatformBase
engineConfig Configurator
Résultat PlatformBase

DisplayMessageBox() public abstract méthode

Display an error message natively. Usually this means a popup will show up.
public abstract DisplayMessageBox ( string message ) : void
message string The message to display.
Résultat void

Setup() protected méthode

Setup the native platform and creates a window.
protected Setup ( Configurator config ) : void
config Configurator Configuration for the platform - usually passed from the engine.
Résultat void

SetupInternal() protected abstract méthode

Platform setup.
protected abstract SetupInternal ( Configurator config ) : void
config Configurator
Résultat void

Update() public méthode

Update the platform. If this returns false then the platform/its window was closed. If the window is unfocused this blocks until a platform message is received.
public Update ( ) : bool
Résultat bool

UpdatePlatform() protected abstract méthode

protected abstract UpdatePlatform ( ) : bool
Résultat bool

Property Details

OnFocusChanged public_oe property

This event is called when the window's focus changes On some platforms the window cannot be unfocused. The input parameter is the new focus state.
public Action OnFocusChanged
Résultat Action

_config protected_oe property

The configurator the platform was initialized with.
protected Configurator _config
Résultat Configurator