C# 클래스 OpenStory.Common.Game.KeyLayout

Represents a collection of key mappings for in-game actions.
파일 보기 프로젝트 열기: shoftee/OpenStory 1 사용 예제들

공개 메소드들

메소드 설명
GetKeyBinding ( byte keyId ) : KeyBinding

Gets the key binding for a key.

KeyLayout ( ICollection bindings ) : System

Initializes a new instance of the KeyLayout class.

SetKeyBinding ( byte keyId, byte type, int action ) : void

Sets the key binding for a key.

비공개 메소드들

메소드 설명
KeyLayout ( ) : System
ThrowIfInvalidId ( byte keyId ) : void

메소드 상세

GetKeyBinding() 공개 메소드

Gets the key binding for a key.
/// Thrown if is greater than . ///
public GetKeyBinding ( byte keyId ) : KeyBinding
keyId byte The key to query the key binding of.
리턴 KeyBinding

KeyLayout() 공개 메소드

Initializes a new instance of the KeyLayout class.
/// Thrown if is . /// /// Thrown if does not have exactly elements. ///
public KeyLayout ( ICollection bindings ) : System
bindings ICollection The bindings to use for this instance.
리턴 System

SetKeyBinding() 공개 메소드

Sets the key binding for a key.
/// Thrown if is greater than . ///
public SetKeyBinding ( byte keyId, byte type, int action ) : void
keyId byte The key to set the key binding of.
type byte The new action type for the key binding.
action int The new action for the key binding.
리턴 void