public static bool IsThisProgressName(GameEntity ent, ProgressName name) { if (!ProgressBars.ContainsKey(ent)) { return(false); } return(ProgressBars[ent].name == name); }
public static void Setup(GameEntity ent, ProgressName name, float needTime) { if (IsHasProgressBar(ent)) { return; } ProgressBars[ent] = new ProgressBar(ent, name, needTime); }
public static void RemoveProgressBar(GameEntity ent, ProgressName name) { if (!ProgressBars.ContainsKey(ent) || !IsThisProgressName(ent, name)) { return; } ProgressBars[ent].UpdateInfo(ProgressName.None, 1f); }
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"); } }