Esempio n. 1
0
 public static bool IsThisProgressName(GameEntity ent, ProgressName name)
 {
     if (!ProgressBars.ContainsKey(ent))
     {
         return(false);
     }
     return(ProgressBars[ent].name == name);
 }
Esempio n. 2
0
        public static void Setup(GameEntity ent, ProgressName name, float needTime)
        {
            if (IsHasProgressBar(ent))
            {
                return;
            }

            ProgressBars[ent] = new ProgressBar(ent, name, needTime);
        }
Esempio n. 3
0
        public static void RemoveProgressBar(GameEntity ent, ProgressName name)
        {
            if (!ProgressBars.ContainsKey(ent) || !IsThisProgressName(ent, name))
            {
                return;
            }

            ProgressBars[ent].UpdateInfo(ProgressName.None, 1f);
        }
Esempio n. 4
0
        public static string GetTextForProgressName(ProgressName name)
        {
            switch (name)
            {
            case ProgressName.Dropping: return("Progress_Dropping");

            case ProgressName.GroupEvolution: return("Progress_GroupEvolution");

            case ProgressName.SoloEvolution: return("Progress_SoloEvolution");

            case ProgressName.Pickuping: return("Progress_Pickuping");

            case ProgressName.Stucking: return("Progress_Stucking");

            default: return("#ProgressBar");
            }
        }