Example #1
0
        public static ActionReport Log(PlayMakerFSM fsm, SkillState state, SkillStateAction action, int actionIndex, string parameter, string logLine, bool isError = false)
        {
            if (!PlayMakerGlobals.IsEditor)
            {
                return(null);
            }
            ActionReport actionReport = new ActionReport
            {
                fsm         = fsm,
                state       = state,
                action      = action,
                actionIndex = actionIndex,
                parameter   = parameter,
                logText     = logLine,
                isError     = isError
            };

            if (!ActionReport.ActionReportContains(actionReport))
            {
                ActionReport.ActionReportList.Add(actionReport);
                ActionReport.InfoCount++;
                return(actionReport);
            }
            return(null);
        }