limboai/util/limbo_utility.h

37 lines
954 B
C++

/**
* limbo_utility.h
* =============================================================================
* Copyright 2021-2023 Serhii Snitsaruk
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
#ifndef LIMBO_UTILITY_H
#define LIMBO_UTILITY_H
#include "core/object/class_db.h"
#include "core/object/object.h"
#include "scene/resources/texture.h"
class LimboUtility : public Object {
GDCLASS(LimboUtility, Object);
protected:
static LimboUtility *singleton;
static void _bind_methods();
public:
static LimboUtility *get_singleton();
String decorate_var(String p_variable) const;
String get_status_name(int p_status) const;
Ref<Texture2D> get_task_icon(String p_class_or_script_path) const;
LimboUtility();
~LimboUtility();
};
#endif // LIMBO_UTILITY_H