コード例 #1
0
ファイル: BaseContext.cs プロジェクト: mbevier/WhoPK-Core
        public void Log(string name, string description, int depth, ICondition condition, ConsoleColor color = ConsoleColor.DarkGreen)
        {
            if (LogDecomposition == false)
            {
                return;
            }

            DecompositionLog.Enqueue(new DecomposedConditionEntry
            {
                Name        = name,
                Description = description,
                Entry       = condition,
                Depth       = depth,
                Color       = color
            });
        }
コード例 #2
0
ファイル: BaseContext.cs プロジェクト: mbevier/WhoPK-Core
        public void Log(string name, string description, int depth, IEffect effect, ConsoleColor color = ConsoleColor.DarkYellow)
        {
            if (LogDecomposition == false)
            {
                return;
            }

            DecompositionLog.Enqueue(new DecomposedEffectEntry
            {
                Name        = name,
                Description = description,
                Entry       = effect,
                Depth       = depth,
                Color       = color,
            });
        }
コード例 #3
0
ファイル: BaseContext.cs プロジェクト: mbevier/WhoPK-Core
        // ========================================================= DECOMPOSITION LOGGING

        public void Log(string name, string description, int depth, ITask task, ConsoleColor color = ConsoleColor.White)
        {
            if (LogDecomposition == false)
            {
                return;
            }

            DecompositionLog.Enqueue(new DecomposedCompoundTaskEntry
            {
                Name        = name,
                Description = description,
                Entry       = task,
                Depth       = depth,
                Color       = color,
            });
        }