1
This commit is contained in:
parent
be7355f5a8
commit
09a77ff15b
@ -1,3 +1,20 @@
|
|||||||
#include "precompile.h"
|
#include "precompile.h"
|
||||||
|
|
||||||
#include "guide.h"
|
#include "guide.h"
|
||||||
|
#include "human.h"
|
||||||
|
#include "room.h"
|
||||||
|
|
||||||
|
#include "mt/GuideStep.h"
|
||||||
|
|
||||||
|
void Guide::Init(Human* owner)
|
||||||
|
{
|
||||||
|
owner_ = owner;
|
||||||
|
if (!owner_->room->IsNewBieRoom()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (mt::GuideStep::_steps.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
curr_step_ = mt::GuideStep::_steps.at(0);
|
||||||
|
curr_step_idx_ = 0;
|
||||||
|
}
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
namespace mt
|
||||||
|
{
|
||||||
|
class GuideStep;
|
||||||
|
}
|
||||||
|
|
||||||
class Human;
|
class Human;
|
||||||
class Guide
|
class Guide
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
void Init(Human* owner) { owner_ = owner; };
|
void Init(Human* owner);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Human* owner_ = nullptr;
|
Human* owner_ = nullptr;
|
||||||
|
int curr_step_idx_ = 0;
|
||||||
|
const mt::GuideStep* curr_step_ = nullptr;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user