C# 클래스 EventBroadcaster, PocketGodsRPG_Proto

파일 보기 프로젝트 열기: pocket-playlab/PocketGodsRPG_Proto 1 사용 예제들

공개 메소드들

메소드 설명
AddObserver ( string notificationName, System action ) : void
AddObserver ( string notificationName, System action ) : void

Adds an observer to listen to specified by notification name

PostEvent ( string notificationName ) : void

Posts an event specified by name that does not require any parameters. Observers associated with this event will be called.

PostEvent ( string notificationName, Parameters, parameters ) : void

Posts an event specified by name that requires parameters. Observers associated with this event will be called. Requires the parameters class to be passed.

PrintObservers ( ) : void
RemoveActionAtObserver ( string notificationName, System action ) : void

Removes the action at observer specified by notification name

RemoveActionAtObserver ( string notificationName, System action ) : void

Removes the action at observer specified by notification name

RemoveAllObservers ( ) : void

Removes all observers.

RemoveObserver ( string notificationName ) : void

Removes all observers under the specified notification name

비공개 메소드들

메소드 설명
EventBroadcaster ( ) : System.Collections

메소드 상세

AddObserver() 공개 메소드

public AddObserver ( string notificationName, System action ) : void
notificationName string
action System
리턴 void

AddObserver() 공개 메소드

Adds an observer to listen to specified by notification name
public AddObserver ( string notificationName, System action ) : void
notificationName string
action System
리턴 void

PostEvent() 공개 메소드

Posts an event specified by name that does not require any parameters. Observers associated with this event will be called.
public PostEvent ( string notificationName ) : void
notificationName string
리턴 void

PostEvent() 공개 메소드

Posts an event specified by name that requires parameters. Observers associated with this event will be called. Requires the parameters class to be passed.
public PostEvent ( string notificationName, Parameters, parameters ) : void
notificationName string
parameters Parameters,
리턴 void

PrintObservers() 공개 메소드

public PrintObservers ( ) : void
리턴 void

RemoveActionAtObserver() 공개 메소드

Removes the action at observer specified by notification name
public RemoveActionAtObserver ( string notificationName, System action ) : void
notificationName string Notification name.
action System Action.
리턴 void

RemoveActionAtObserver() 공개 메소드

Removes the action at observer specified by notification name
public RemoveActionAtObserver ( string notificationName, System action ) : void
notificationName string Notification name.
action System Action.
리턴 void

RemoveAllObservers() 공개 메소드

Removes all observers.
public RemoveAllObservers ( ) : void
리턴 void

RemoveObserver() 공개 메소드

Removes all observers under the specified notification name
public RemoveObserver ( string notificationName ) : void
notificationName string Notification name.
리턴 void