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/templates/vector.h"
|
||||
#include "core/variant/array.h"
|
||||
#include "core/variant/binder_common.h"
|
||||
#include "core/variant/dictionary.h"
|
||||
#include "scene/resources/texture.h"
|
||||
|
||||
|
@ -28,7 +29,7 @@ class BTTask : public Resource {
|
|||
GDCLASS(BTTask, Resource);
|
||||
|
||||
public:
|
||||
enum {
|
||||
enum TaskStatus {
|
||||
FRESH,
|
||||
RUNNING,
|
||||
FAILURE,
|
||||
|
@ -110,4 +111,6 @@ public:
|
|||
~BTTask();
|
||||
};
|
||||
|
||||
VARIANT_ENUM_CAST(BTTask::TaskStatus)
|
||||
|
||||
#endif // BTTASK_H
|
Loading…
Reference in New Issue