C# Class 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.
Show file Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Properties

Property Type Description
GameReference Pantheon
payload string>.Dictionary

Public Methods

Method Description
Event ( ) : System

Empty constructor that makes an empty event.

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

Takes parameters and fully initializes an event.

Method Details

Event() public method

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

Event() public method

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.
return System

Property Details

GameReference public property

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
return Pantheon

payload public property

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
return string>.Dictionary