Promote TaskStatus to named enum
This commit is contained in:
parent
9ed075120e
commit
50bcbcf616
|
@ -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
|
Loading…
Reference in New Issue