引导修改

This commit is contained in:
by 2024-11-01 14:39:54 +08:00
parent 01bc6bfd63
commit 6f6926dd9f
3 changed files with 11 additions and 5 deletions

View File

@ -811,9 +811,10 @@ var (
) )
const ( const (
AttributeGuideStep = 1 // 引导步骤 AttributeGuideStep = 1 // 引导步骤
AttributeGuideSkip = 2 // 跳过引导 AttributeGuideSkip = 2 // 跳过引导
AttributeGuideTest = 3 // 测试引导 AttributeGuideTest = 3 // 测试引导
AttributeGuideCustom = 4 // 竞技馆引导页
) )
const ( const (

View File

@ -1344,7 +1344,7 @@ message WindowsInfo{
//PACKET_CSUpdateAttribute //PACKET_CSUpdateAttribute
message CSUpdateAttribute{ message CSUpdateAttribute{
int32 Tp = 1; // 1. 2. 3.() int32 Tp = 1; // 1. 2. 3.() 4.
repeated int64 Param = 2; repeated int64 Param = 2;
int32 GuideId = 3; //ID 1- 2- int32 GuideId = 3; //ID 1- 2-
} }
@ -1364,7 +1364,7 @@ message GuideInfo {
int32 On = 2; // 1 2 int32 On = 2; // 1 2
int32 Skip = 3; // 1 2 int32 Skip = 3; // 1 2
int32 GuideId = 4; // 1- 2- int32 GuideId = 4; // 1- 2-
repeated ItemInfo Awards = 5; // repeated ItemInfo Awards = 5; //
int32 MaxStep = 6; // int32 MaxStep = 6; //
int32 AwardStep = 7;// int32 AwardStep = 7;//
} }

View File

@ -3249,6 +3249,11 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
send() send()
return nil return nil
case common.AttributeGuideCustom:
p.MarkFlag(common.PlayerFlagsGuideCustom)
pack.OpRetCode = player_proto.OpResultCode_OPRC_Sucess
send()
return nil
} }
return nil return nil
} }