mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-02 01:36:26 +02:00
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
package com.gmail.nossr50.util.skills;
|
|
|
|
import com.gmail.nossr50.datatypes.skills.SecondaryAbility;
|
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
|
|
|
import java.util.HashMap;
|
|
|
|
/**
|
|
* This class will handle the following things
|
|
* 1) Informing the player of important milestones in a skill (Every 5 levels)
|
|
* 2) Getting lists of milestones (skill unlocks) a player has
|
|
* 3) Propagating events for milestones (API)
|
|
*
|
|
* By setting up a skill milestone system it will make managing the audio/visual feedback for progression a lot easier
|
|
*
|
|
*/
|
|
//TODO: Inform players of milestones
|
|
//TODO: Helper methods for getting milestones
|
|
//TODO: Propagate events when milestones are achieved
|
|
//TODO: Update existing parts of the codebase to use this where appropriate
|
|
public class SkillMilestoneManager {
|
|
public static final HashMap<SkillType, SecondaryAbility> subskillMilestones;
|
|
|
|
static {
|
|
//Init our maps
|
|
subskillMilestones = new HashMap<>();
|
|
|
|
for(SkillType skillType : SkillType.values())
|
|
{
|
|
//TODO: Setup these values
|
|
}
|
|
}
|
|
}
|