C# 클래스 Emotion.Platform.PlatformBase

상속: IInputManager
파일 보기 프로젝트 열기: Cryru/Emotion 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnFocusChanged Action

보호된 프로퍼티들

프로퍼티 타입 설명
_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