C# Класс Emotion.Platform.PlatformBase

Наследование: IInputManager
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnFocusChanged Action

Защищенные свойства (Protected)

Свойство Тип Описание
_config Configurator

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Setup ( Configurator config ) : void

Setup the native platform and creates a window.

SetupInternal ( Configurator config ) : void

Platform setup.

UpdatePlatform ( ) : bool

Описание методов

CreateDetectedPlatform() публичный статический Метод

Detect and return the correct platform instance for the engine host.
public static CreateDetectedPlatform ( Configurator engineConfig ) : PlatformBase
engineConfig Configurator
Результат PlatformBase

DisplayMessageBox() публичный абстрактный Метод

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.
Результат void

Setup() защищенный Метод

Setup the native platform and creates a window.
protected Setup ( Configurator config ) : void
config Configurator Configuration for the platform - usually passed from the engine.
Результат void

SetupInternal() защищенный абстрактный Метод

Platform setup.
protected abstract SetupInternal ( Configurator config ) : void
config Configurator
Результат void

Update() публичный Метод

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
Результат bool

UpdatePlatform() защищенный абстрактный Метод

protected abstract UpdatePlatform ( ) : bool
Результат bool

Описание свойств

OnFocusChanged публичное свойство

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
Результат Action

_config защищенное свойство

The configurator the platform was initialized with.
protected Configurator _config
Результат Configurator