Table of Contents

Method Matches

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Matches(LifeCycleEvent, LifeCycleEvent)

Returns whether eventToMatch includes any flags from currentEvent.

public static bool Matches(this LifeCycleEvent eventToMatch, LifeCycleEvent currentEvent)

Parameters

eventToMatch LifeCycleEvent

The event or combination of events to test against.

currentEvent LifeCycleEvent

The event that is currently occurring.

Returns

bool

true if any flag in currentEvent is set in eventToMatch; otherwise, false.