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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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