コード例 #1
0
        private static IEnumerable <IAgentPointer> IterateBackward(this IAgentPointer current)
        {
            while (current != null)
            {
                yield return(current);

                current = current.Previous;
            }
        }
コード例 #2
0
        private static IEnumerable <IAgentPointer> IterateForward(this IAgentPointer current)
        {
            while (current != null)
            {
                yield return(current);

                current = current.Next;
            }
        }
コード例 #3
0
 void IAgentChain.Exit(IAgentPointer agent) => Exit((LinkedAgentPointer)agent);
コード例 #4
0
 public static void Disconnect(this IAgentPointer currentPointer) => currentPointer?.Chain?.Exit(currentPointer);
コード例 #5
0
 public AgentState(int pathIndex, float progress, IAgentPointer pointer) : this()
 {
     PathIndex = pathIndex;
     Progress  = progress;
     Pointer   = pointer;
 }