C# 클래스 Project290.Menus.MenuAction

This is a link between the pressing of some button on the controller and performing some action through a delegate.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 메소드들

메소드 설명
MenuAction ( ActionType actionType, IMenuDelegate menuDelegate ) : System

Initializes a new instance of the MenuAction class.

TryRunDelegate ( ) : void

Tries to run the delegate. This should be called every cycle, as this will check the controller to see if the corresponding action has been performed. If so, and if the delegate is not null, then the delegated action is performed.

메소드 상세

MenuAction() 공개 메소드

Initializes a new instance of the MenuAction class.
public MenuAction ( ActionType actionType, IMenuDelegate menuDelegate ) : System
actionType ActionType Type of the action.
menuDelegate IMenuDelegate The menu delegate.
리턴 System

TryRunDelegate() 공개 메소드

Tries to run the delegate. This should be called every cycle, as this will check the controller to see if the corresponding action has been performed. If so, and if the delegate is not null, then the delegated action is performed.
public TryRunDelegate ( ) : void
리턴 void