根据场景id获取总指挥的行为树的原数据
This commit is contained in:
@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
import com.solution.web.core.BehaviortreeProcessor;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.checkerframework.checker.units.qual.A;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -147,5 +148,14 @@ public class BehaviortreeController extends BaseController
|
||||
return success(behaviortreeService.getUnderling(treeId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据场景id获取总指挥的行为树的原数据
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("根据场景id获取总指挥的行为树的原数据")
|
||||
@GetMapping("/commander/{scenarioId}")
|
||||
public AjaxResult getCommander(@PathVariable Integer scenarioId){
|
||||
return success(behaviortreeService.getCommander(scenarioId));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user