TopDown Engine  v4.1
MoreMountains.TopDownEngine.AchievementRules Class Reference

This class describes how the Top Down Engine demo achievements are triggered. It extends the base class MMAchievementRules It listens for different event types More...

Inheritance diagram for MoreMountains.TopDownEngine.AchievementRules:
MoreMountains.Tools.MMEventListener< MMInventoryEvent > MoreMountains.Tools.MMEventListener< CheckPointEvent > MoreMountains.Tools.MMEventListener< PickableItemEvent > MoreMountains.Tools.MMEventListener< TopDownEngineEvent > MoreMountains.Tools.MMEventListener< MMCharacterEvent > MoreMountains.Tools.MMEventListener< MMGameEvent > MoreMountains.Tools.MMAchievementRules

Public Member Functions

override void OnMMEvent (MMGameEvent gameEvent)
 When we catch an MMGameEvent, we do stuff based on its name More...
 
virtual void OnMMEvent (MMCharacterEvent characterEvent)
 When a character event happens, and if it's a Jump event, we add progress to our JumpAround achievement More...
 
virtual void OnMMEvent (TopDownEngineEvent topDownEngineEvent)
 When we grab a TopDownEngineEvent, and if it's a PlayerDeath event, we unlock our achievement More...
 
virtual void OnMMEvent (PickableItemEvent pickableItemEvent)
 Grabs PickableItem events More...
 
virtual void OnMMEvent (MMStateChangeEvent< CharacterStates.MovementStates > movementEvent)
 Grabs MMStateChangeEvents More...
 
virtual void OnMMEvent (MMStateChangeEvent< CharacterStates.CharacterConditions > conditionEvent)
 Grabs MMStateChangeEvents More...
 
virtual void OnMMEvent (CheckPointEvent checkPointEvent)
 Grabs checkpoints events. If the checkpoint's order is > 0, we unlock our achievement More...
 
virtual void OnMMEvent (MMInventoryEvent inventoryEvent)
 On Inventory events, we unlock or add progress to achievements if needed More...
 
- Public Member Functions inherited from MoreMountains.Tools.MMAchievementRules
virtual void PrintCurrentStatus ()
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMGameEvent >
void OnMMEvent (T eventType)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMCharacterEvent >
void OnMMEvent (T eventType)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< TopDownEngineEvent >
void OnMMEvent (T eventType)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< PickableItemEvent >
void OnMMEvent (T eventType)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< CheckPointEvent >
void OnMMEvent (T eventType)
 
- Public Member Functions inherited from MoreMountains.Tools.MMEventListener< MMInventoryEvent >
void OnMMEvent (T eventType)
 

Protected Member Functions

override void OnEnable ()
 On enable, we start listening for MMGameEvents. You may want to extend that to listen to other types of events. More...
 
override void OnDisable ()
 On disable, we stop listening for MMGameEvents. You may want to extend that to stop listening to other types of events. More...
 
- Protected Member Functions inherited from MoreMountains.Tools.MMAchievementRules
virtual void Awake ()
 On Awake, loads the achievement list and the saved file More...
 

Additional Inherited Members

- Public Attributes inherited from MoreMountains.Tools.MMAchievementRules
MMAchievementList AchievementList
 
bool PrintCurrentStatusBtn
 

Detailed Description

This class describes how the Top Down Engine demo achievements are triggered. It extends the base class MMAchievementRules It listens for different event types

Member Function Documentation

◆ OnDisable()

override void MoreMountains.TopDownEngine.AchievementRules.OnDisable ( )
protectedvirtual

On disable, we stop listening for MMGameEvents. You may want to extend that to stop listening to other types of events.

Reimplemented from MoreMountains.Tools.MMAchievementRules.

◆ OnEnable()

override void MoreMountains.TopDownEngine.AchievementRules.OnEnable ( )
protectedvirtual

On enable, we start listening for MMGameEvents. You may want to extend that to listen to other types of events.

Reimplemented from MoreMountains.Tools.MMAchievementRules.

◆ OnMMEvent() [1/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( CheckPointEvent  checkPointEvent)
virtual

Grabs checkpoints events. If the checkpoint's order is > 0, we unlock our achievement

Parameters
checkPointEvent

◆ OnMMEvent() [2/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( MMCharacterEvent  characterEvent)
virtual

When a character event happens, and if it's a Jump event, we add progress to our JumpAround achievement

Parameters
characterEvent

◆ OnMMEvent() [3/8]

override void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( MMGameEvent  gameEvent)
virtual

When we catch an MMGameEvent, we do stuff based on its name

Parameters
gameEventGame event.

Reimplemented from MoreMountains.Tools.MMAchievementRules.

◆ OnMMEvent() [4/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( MMInventoryEvent  inventoryEvent)
virtual

On Inventory events, we unlock or add progress to achievements if needed

Parameters
inventoryEvent

◆ OnMMEvent() [5/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( MMStateChangeEvent< CharacterStates.CharacterConditions conditionEvent)
virtual

Grabs MMStateChangeEvents

Parameters
conditionEvent

◆ OnMMEvent() [6/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( MMStateChangeEvent< CharacterStates.MovementStates movementEvent)
virtual

Grabs MMStateChangeEvents

Parameters
movementEvent

◆ OnMMEvent() [7/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( PickableItemEvent  pickableItemEvent)
virtual

Grabs PickableItem events

Parameters
pickableItemEvent

◆ OnMMEvent() [8/8]

virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent ( TopDownEngineEvent  topDownEngineEvent)
virtual

When we grab a TopDownEngineEvent, and if it's a PlayerDeath event, we unlock our achievement

Parameters
topDownEngineEvent

The documentation for this class was generated from the following file: