Merge branch 'godot42'

This commit is contained in:
Serhii Snitsaruk 2023-10-30 10:26:40 +01:00
commit 52a8dc2a0b
11 changed files with 11 additions and 8 deletions

View File

@ -20,7 +20,7 @@ on:
# Global settings
env:
GODOT_TREEISH: 4.1.1-stable
GODOT_TREEISH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes
SCONS_CACHE_LIMIT: 7168
DOTNET_NOLOGO: true

View File

@ -12,7 +12,7 @@ config_version=5
config/name="LimboAI Test"
run/main_scene="res://examples/waypoints/example_waypoints.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.2")
config/icon="res://icon.png"
[gui]

View File

@ -11,6 +11,7 @@
#include "behavior_tree_data.h"
#include "core/object/script_language.h"
#include "core/templates/list.h"
//// BehaviorTreeData

View File

@ -20,7 +20,7 @@
#include "core/object/object.h"
#include "scene/gui/control.h"
#include "scene/gui/tree.h"
#include "scene/resources/style_box.h"
#include "scene/resources/style_box_flat.h"
#include "scene/resources/texture.h"
class BehaviorTreeView : public Control {

View File

@ -15,6 +15,7 @@
#include "modules/limboai/bt/tasks/composites/bt_probability_selector.h"
#include "modules/limboai/util/limbo_utility.h"
#include "core/object/script_language.h"
#include "editor/editor_scale.h"
//**** TaskTree

View File

@ -13,7 +13,7 @@
#include "scene/gui/control.h"
#include "scene/gui/tree.h"
#include "scene/resources/style_box.h"
#include "scene/resources/style_box_flat.h"
class TaskTree : public Control {
GDCLASS(TaskTree, Control);

View File

@ -29,7 +29,7 @@ namespace TestAwaitAnimation {
TEST_CASE("[SceneTree][LimboAI] BTAwaitAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player);
player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE);
player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE);
Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestPauseAnimation {
TEST_CASE("[SceneTree][LimboAI] BTPauseAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player);
player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE);
player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE);
Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestPlayAnimation {
TEST_CASE("[SceneTree][LimboAI] BTPlayAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player);
player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE);
player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE);
Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation);

View File

@ -27,7 +27,7 @@ namespace TestStopAnimation {
TEST_CASE("[SceneTree][LimboAI] BTStopAnimation") {
AnimationPlayer *player = memnew(AnimationPlayer);
SceneTree::get_singleton()->get_root()->add_child(player);
player->set_process_callback(AnimationPlayer::AnimationProcessCallback::ANIMATION_PROCESS_IDLE);
player->set_callback_mode_process(AnimationMixer::ANIMATION_CALLBACK_MODE_PROCESS_IDLE);
Ref<AnimationLibrary> anim_lib = memnew(AnimationLibrary);
Ref<Animation> anim = memnew(Animation);

View File

@ -13,6 +13,7 @@
#include "modules/limboai/bt/tasks/bt_task.h"
#include "core/object/script_language.h"
#include "core/variant/variant.h"
#include "scene/resources/texture.h"