Promote TaskStatus to named enum

This commit is contained in:
Serhii Snitsaruk 2023-09-16 18:05:09 +02:00
parent 9ed075120e
commit 50bcbcf616
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "core/string/ustring.h" #include "core/string/ustring.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"
#include "core/variant/array.h" #include "core/variant/array.h"
#include "core/variant/binder_common.h"
#include "core/variant/dictionary.h" #include "core/variant/dictionary.h"
#include "scene/resources/texture.h" #include "scene/resources/texture.h"
@ -28,7 +29,7 @@ class BTTask : public Resource {
GDCLASS(BTTask, Resource); GDCLASS(BTTask, Resource);
public: public:
enum { enum TaskStatus {
FRESH, FRESH,
RUNNING, RUNNING,
FAILURE, FAILURE,
@ -110,4 +111,6 @@ public:
~BTTask(); ~BTTask();
}; };
VARIANT_ENUM_CAST(BTTask::TaskStatus)
#endif // BTTASK_H #endif // BTTASK_H