C# Класс Terrarium.Game.EngineStateChangedEventArgs

An EngineStateChangeEvent is raised when some interesting change in state occurs such as an animal being born or dying or being teleported into your world or out. Its main purpose is to provide some useful feedback to the UI This EventArgs describes that event. It contains the type of state change and a short description and a long description
Наследование: System.EventArgs
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AnimalArrived ( OrganismBase.OrganismState organismState ) : EngineStateChangedEventArgs

Creates a new event relating to a creature arriving.

AnimalDestroyed ( OrganismBase.OrganismState organismState, PopulationChangeReason reason ) : EngineStateChangedEventArgs

Creates a new event relating to a creature being destroyed.

EngineStateChangedEventArgs ( EngineStateChangeType stateChange, string shortDescription ) : System

Creates a new set of event arguments for a state change with short message.

EngineStateChangedEventArgs ( EngineStateChangeType stateChange, string shortDescription, string longDescription ) : System

Creates a new set of event arguments for a state change with short and long messages.

Описание методов

AnimalArrived() публичный статический Метод

Creates a new event relating to a creature arriving.
public static AnimalArrived ( OrganismBase.OrganismState organismState ) : EngineStateChangedEventArgs
organismState OrganismBase.OrganismState The creature arriving.
Результат EngineStateChangedEventArgs

AnimalDestroyed() публичный статический Метод

Creates a new event relating to a creature being destroyed.
public static AnimalDestroyed ( OrganismBase.OrganismState organismState, PopulationChangeReason reason ) : EngineStateChangedEventArgs
organismState OrganismBase.OrganismState The creature being destroyed.
reason PopulationChangeReason The reason the creature is being destroyed.
Результат EngineStateChangedEventArgs

EngineStateChangedEventArgs() публичный Метод

Creates a new set of event arguments for a state change with short message.
public EngineStateChangedEventArgs ( EngineStateChangeType stateChange, string shortDescription ) : System
stateChange EngineStateChangeType The state change type
shortDescription string A short description
Результат System

EngineStateChangedEventArgs() публичный Метод

Creates a new set of event arguments for a state change with short and long messages.
public EngineStateChangedEventArgs ( EngineStateChangeType stateChange, string shortDescription, string longDescription ) : System
stateChange EngineStateChangeType The state change type
shortDescription string A short description
longDescription string A detailed description
Результат System