C# 클래스 Sharpex2D.GameLoop

상속: IComponent
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
GameLoop ( ) : System

Initializes a new GameLoop class.

Start ( ) : void

Starts the game loop.

Stop ( ) : void

Stops the game loop.

Subscribe ( IDrawable drawable ) : void

Subscribes a new IDrawable to the game loop.

Subscribe ( IUpdateable updateable ) : void

Subscribes a new IUpdateable to the game loop.

Unsubscribe ( IDrawable drawable ) : void

Unsubscribes a IDrawable from the game loop.

Unsubscribe ( IUpdateable updateable ) : void

Unsubscribes a IUpdateable from the game loop.

비공개 메소드들

메소드 설명
Loop ( ) : void

The actual game loop.

RenderSubscribers ( ) : void

Renders the subscribers.

UpdateSubscribers ( ) : void

Updates the subscribers.

메소드 상세

GameLoop() 공개 메소드

Initializes a new GameLoop class.
public GameLoop ( ) : System
리턴 System

Start() 공개 메소드

Starts the game loop.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the game loop.
public Stop ( ) : void
리턴 void

Subscribe() 공개 메소드

Subscribes a new IDrawable to the game loop.
public Subscribe ( IDrawable drawable ) : void
drawable IDrawable The IDrawable.
리턴 void

Subscribe() 공개 메소드

Subscribes a new IUpdateable to the game loop.
public Subscribe ( IUpdateable updateable ) : void
updateable IUpdateable The IUpdateable.
리턴 void

Unsubscribe() 공개 메소드

Unsubscribes a IDrawable from the game loop.
public Unsubscribe ( IDrawable drawable ) : void
drawable IDrawable The IDrawable.
리턴 void

Unsubscribe() 공개 메소드

Unsubscribes a IUpdateable from the game loop.
public Unsubscribe ( IUpdateable updateable ) : void
updateable IUpdateable The IUpdateable.
리턴 void