public static string GetFsmLabel(Skill fsm) { if (fsm == null) { return("None (Fsm)"); } string text; if (Labels.fsmName.TryGetValue(fsm, ref text)) { return(text); } text = (fsm.get_IsSubFsm() ? (fsm.get_Host().get_Name() + " : " + fsm.get_Name()) : fsm.get_Name()); int fsmNameIndex = Labels.GetFsmNameIndex(fsm); if (fsmNameIndex > 0) { object obj = text; text = string.Concat(new object[] { obj, " (", fsmNameIndex + 1, ")" }); } Labels.fsmName.Add(fsm, text); return(text); }
public static int GetFsmNameIndex(Skill fsm) { return(Labels.GetFsmNameIndex(fsm)); }