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
파일 보기 프로젝트 열기: eugeniomiro/Terrarium 1 사용 예제들

공개 메소드들

메소드 설명
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