/tg/ Station 13 - Modules - Types

code/datums/ai/basic_mobs/pet_commands/pet_command_planning.dm

/datum/ai_planning_subtree/pet_planningPerform behaviour based on what pet commands you have received. This is delegated to the pet command datum. When a command is set, we blackboard a key to our currently active command. The blackboard also has a weak reference to every command datum available to us. We use the key to figure out which datum to run, then ask it to figure out how to execute its action.