Skip to content

Instantly share code, notes, and snippets.

@sethhoward
sethhoward / BehaviorTree.swift
Created September 13, 2015 15:41
Basic behavior tree implementation. Meant to be run in a playground.
enum OperationState {
case Invalid
case Ready
case Executing
case Finished
}
enum OperationResult {
case Success
case Failure