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...
|
| override void | OnEnable () |
| | On enable, we start listening for MMGameEvents. You may want to extend that to listen to other types of events.
|
| override void | OnDisable () |
| | On disable, we stop listening for MMGameEvents. You may want to extend that to stop listening to other types of events.
|
| virtual void | Awake () |
| | On Awake, loads the achievement list and the saved file.
|
This class describes how the Top Down Engine demo achievements are triggered. It extends the base class MMAchievementRules It listens for different event types.
◆ OnDisable()
| override void MoreMountains.TopDownEngine.AchievementRules.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
| override void MoreMountains.TopDownEngine.AchievementRules.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ 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
-
◆ 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
-
◆ OnMMEvent() [3/8]
| override void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent |
( |
MMGameEvent | gameEvent | ) |
|
|
virtual |
◆ 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
-
◆ OnMMEvent() [5/8]
Grabs MMStateChangeEvents.
- Parameters
-
◆ OnMMEvent() [6/8]
Grabs MMStateChangeEvents.
- Parameters
-
◆ OnMMEvent() [7/8]
| virtual void MoreMountains.TopDownEngine.AchievementRules.OnMMEvent |
( |
PickableItemEvent | pickableItemEvent | ) |
|
|
virtual |
◆ 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
-
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Achievements/AchievementRules.cs