This commit is contained in:
aozhiwei 2023-04-19 17:26:42 +08:00
parent fc4e06ac82
commit 41e52be85c
7 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#include "precompile.h"
#include "mt/GuideStep.h"
IMPL_TABLE(mt::GuideStep)
namespace mt
{
void GuideStep::Init1()
{
}
}

View File

@ -0,0 +1,19 @@
#pragma once
#include "mt/macro.h"
#include "mtb/GuideStep.h"
namespace mt
{
DECLARE_ID_TABLE(GuideStep, mtb::GuideStep,
"guideStep@guideStep.json",
"id")
public:
void Init1();
private:
};
}

View File

@ -19,6 +19,8 @@ namespace mt
float max_oil = 0.0f;
float max_mount_horse_distance = 100.0f;
int early_parachute_jump = 0;
glm::vec3 newbie_room_born_point = glm::vec3(0.0f, 0.0f, 0.0f);
float newbie_room_hp_rate = 0.0f;
int downed_relive_recover_hp = 0;

View File

@ -0,0 +1,40 @@
#pragma once
#include <bitset>
namespace mtb
{
class GuideStep
{
public:
a8::reflect::Class* GetClass() const;
int id() const { return id_; };
int target() const { return target_; };
const std::string param1() const { return param1_; };
const std::string param2() const { return param2_; };
const std::string param3() const { return param3_; };
const std::string param4() const { return param4_; };
bool has_id() const { return __flags__.test(0);};
bool has_target() const { return __flags__.test(1);};
bool has_param1() const { return __flags__.test(2);};
bool has_param2() const { return __flags__.test(3);};
bool has_param3() const { return __flags__.test(4);};
bool has_param4() const { return __flags__.test(5);};
protected:
int id_ = 0;
int target_ = 0;
std::string param1_;
std::string param2_;
std::string param3_;
std::string param4_;
public:
std::bitset<6> __flags__;
};
};

View File

@ -36,6 +36,7 @@
#include "mtb/RankRoom.h"
#include "mtb/Grasp.h"
#include "mtb/GraspBuff.h"
#include "mtb/GuideStep.h"
#include "mtb/WorldObject.h"
namespace mtb
@ -788,6 +789,21 @@ namespace mtb
return meta_class;
}
a8::reflect::Class* GuideStep::GetClass() const
{
a8::reflect::Class* meta_class = nullptr;
if (!meta_class) {
meta_class = new a8::reflect::Class("GuideStep", 6, 0);
meta_class->SetSimpleField(0, "id", a8::reflect::ET_INT32, my_offsetof2(GuideStep, id_));
meta_class->SetSimpleField(1, "target", a8::reflect::ET_INT32, my_offsetof2(GuideStep, target_));
meta_class->SetSimpleField(2, "param1", a8::reflect::ET_STRING, my_offsetof2(GuideStep, param1_));
meta_class->SetSimpleField(3, "param2", a8::reflect::ET_STRING, my_offsetof2(GuideStep, param2_));
meta_class->SetSimpleField(4, "param3", a8::reflect::ET_STRING, my_offsetof2(GuideStep, param3_));
meta_class->SetSimpleField(5, "param4", a8::reflect::ET_STRING, my_offsetof2(GuideStep, param4_));
}
return meta_class;
}
a8::reflect::Class* WorldObject::GetClass() const
{
a8::reflect::Class* meta_class = nullptr;

View File

@ -197,6 +197,8 @@ message MFVec3
property_type: 45
property_subtype: ()
value: max时间()
property_type: 46
property_subtype: <= 0
*/
message MFPropertyChg
{
@ -1443,6 +1445,8 @@ message SMJoinedNotify
optional string server_info = 9; //使 SMMapInfo
optional int32 adjust_bullet = 12; //( 1:)
optional int32 is_newbie_room = 13; //
}
//

View File

@ -592,6 +592,16 @@ message GraspBuff
optional string effect_list = 11;
}
message GuideStep
{
optional int32 id = 1;
optional int32 target = 2;
optional string param1 = 3;
optional string param2 = 4;
optional string param3 = 5;
optional string param4 = 6;
}
message WorldObject
{
optional int32 object_id= 1;