Whatever The Fuck Man
This commit is contained in:
+14
-6
@@ -2,7 +2,8 @@
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include "../../entity/character.hpp"
|
||||
#include "../../entity.hpp"
|
||||
#include "../../render/canvas.hpp"
|
||||
|
||||
#include "../../resources.hpp"
|
||||
|
||||
@@ -11,19 +12,26 @@ namespace game::state::play
|
||||
class Text
|
||||
{
|
||||
int index{};
|
||||
int updateDelay{};
|
||||
int baseDelay{};
|
||||
int currentDelay{};
|
||||
bool isFinished{};
|
||||
bool isTerminal{};
|
||||
bool isStartEffectsApplied{};
|
||||
bool isBlipQueued{};
|
||||
|
||||
public:
|
||||
static constexpr auto LIFETIME = 10.0f;
|
||||
|
||||
resource::xml::Dialogue::Entry* entry{};
|
||||
resource::xml::Schema::Element* entry{};
|
||||
|
||||
bool isEnabled{true};
|
||||
float time{};
|
||||
|
||||
void set(resource::xml::Dialogue::Entry*, entity::Character&, bool isInterruptible = true);
|
||||
void tick(entity::Character&);
|
||||
void update(entity::Character&);
|
||||
void set(resource::xml::Schema::Element*, Entity&, bool isInterruptible = true);
|
||||
void update(Entity&, Canvas&);
|
||||
bool is_interruptible() const;
|
||||
bool is_finished() const;
|
||||
bool is_terminal() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user