C# 클래스 PantheonPrototype.Event

A basic event. Consists of a type and a list of strings. The type allows the event manager to know where to send the event. The list of strings gives more specific information about the event. Essentially, the type is an identifier of what type of event this is, and thus an identification of the receivers. The list of strings is essentially a payload for the event.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
GameReference Pantheon
payload string>.Dictionary

공개 메소드들

메소드 설명
Event ( ) : System

Empty constructor that makes an empty event.

Event ( string type, string>.Dictionary payload ) : System

Takes parameters and fully initializes an event.

메소드 상세

Event() 공개 메소드

Empty constructor that makes an empty event.
public Event ( ) : System
리턴 System

Event() 공개 메소드

Takes parameters and fully initializes an event.
public Event ( string type, string>.Dictionary payload ) : System
type string The type of the event.
payload string>.Dictionary The payload of the event as a Dictionary collection object.
리턴 System

프로퍼티 상세

GameReference 공개적으로 프로퍼티

One of those joyous global reference thingies protected by a healthy degree of encapsulation... Truthfully, this should have bitten us by now... but it hasn't. So much for a bad coding practice. JINX!
public Pantheon,PantheonPrototype GameReference
리턴 Pantheon

payload 공개적으로 프로퍼티

A list of all the event specific information given in the event. Takes the form of a Dictionary with a string mapping to a string.
public Dictionary payload
리턴 string>.Dictionary