NostalgiaCore/src/entity/ai/tasks/TaskBase.php
2022-10-20 19:30:04 +03:00

27 lines
457 B
PHP

<?php
abstract class TaskBase
{
/**
* @param EntityAI $ai
* @return bool
*/
abstract function shouldBeExecuted(EntityAI $ai);
/**
* @param EntityAI $ai
* @return bool
*/
abstract function wasExecuted(EntityAI $ai);
/**
* @param EntityAI $ai
*/
abstract function onStart(EntityAI $ai);
/**
* @param EntityAI $ai
*/
abstract function onUpdate(EntityAI $ai);
}